Universal Measurement Contract Protocol (UMCP): Interconnected contract-first validation framework with GCD and RCFT. Core Axiom: What Returns Through Collapse Is Real. Features bidirectional cross-references, closure registries, and full reproducibility.
Project description
โ Verify Everything Yourself
Don't trust badges - verify the code:
pytest -v # Should show 325 passing
# Check UMCP validation (should show CONFORMANT, 0 errors)
umcp validate .
# Check file integrity (should show 1 file)
cat integrity/sha256.txt
# Check version
python -c "import tomli; print(tomli.load(open('pyproject.toml','rb'))['project']['version'])"
# Check CI status
gh run list --limit 1
All metrics are verifiable from source code - no marketing hype.
๐ Live System HUD
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ UMCP PRODUCTION SYSTEM STATUS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๏ฟฝ CORE AXIOM: "What Returns Through Collapse Is Real"
no_return_no_credit: true
๏ฟฝ๐ Canon: UMCP.CANON.v1
๐ Contract: UMA.INTSTACK.v1
๐ Weld: W-2025-12-31-PHYS-COHERENCE
๐ DOI References:
PRE: 10.5281/zenodo.17756705 (The Episteme of Return)
POST: 10.5281/zenodo.18072852 (Physics of Coherence)
PACK: 10.5281/zenodo.18226878 (CasePack Publication)
โ๏ธ Tier-1 Kernel:
p=3 ฮฑ=1.0 ฮป=0.2 ฮท=0.001
๐ฏ Regime Gates:
Stable: ฯ<0.038 F>0.90 S<0.15 C<0.14
Collapse: ฯโฅ0.30
๐ Current State:
Status: CONFORMANT โ
Regime: Stable
Errors: 0
Warnings: 0
โก Performance:
Cache: Intelligent + Persistent
Speedup: 20-25% faster (warm)
Skipping: 4/4 casepacks (unchanged)
Learning: Progressive acceleration
๐ง CLI Commands:
umcp validate # Run validation
umcp-visualize # Launch dashboard (port 8501)
umcp-api # Start REST API (port 8000)
umcp-ext list # List extensions
umcp-format --all # Format contracts
๐ฆ Ledger: ledger/return_log.csv (continuous append)
๐งช CasePacks: hello_world | gcd_complete | rcft_complete
---
## ๐ก๏ธ Automation & Integrity
- **325 tests** run automatically on every commit (pytest, CI/CD)
- **Code style** enforced with ruff and black (auto-formatting)
- **Integrity checks**: Every key file is tracked with SHA256 in integrity/sha256.txt
- **Automated script**: Run `python scripts/update_integrity.py` after any change to api_umcp.py to update the integrity file
- **No manual steps missed**: All validation, formatting, and integrity are enforced before release
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
"No improvisation. Contract-first. Tier-1 reserved."
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Quick Access:
- ๐ Glossary โ Authoritative term definitions (protocol infrastructure)
- ๐ค Symbol Index โ Fast Unicode/ASCII symbol lookup with collision prevention
- ๐ Term Index โ Alphabetical term cross-reference
- ๐๏ธ Tier System โ Tier-0/1/1.5/2 separation, freeze gates, weld accounting
- ๏ฟฝ Publication Infrastructure โ Publication rows, Case IDs, make_pubrow.py, contract variants
- ๐ Kernel Specification โ Formal definitions and lemmas (F, ฯ, S, C, ฮบ, IC, ฯ_R, seam accounting)
- ๐ UHMP โ Universal Hash Manifest Protocol (5-phase mint, identity governance)
- ๐ฆ CasePack Reference โ Complete CasePack structure (manifests, receipts, integrity ledger, validation)
- ๐ฏ Face Policy โ Boundary governance and admissible clipping rules
- ๐จ Visualization Dashboard โ Phase space, time series, regime monitoring
- ๐ API Endpoints โ
/health,/latest-receipt,/ledger,/stats,/regime - ๐ Extensions Guide โ Dashboard & API usage
- ๐งช Theory Docs โ Mathematical foundations
๐ Protocol Infrastructure
UMCP includes comprehensive protocol governance and indexing systems:
Core Protocol Documents
- AXIOM.md โ Core axiom: "Collapse is generative; only what returns is real" (operational definitions)
- TIER_SYSTEM.md โ Tier-0 (interface), Tier-1 (kernel), Tier-1.5 (weld), Tier-2 (overlays) with freeze gates, one-way dependency flow, and nonconformance criteria
- KERNEL_SPECIFICATION.md โ Formal mathematical specification: Definitions and lemmas for kernel invariants (F, ฯ, S, C, ฮบ, IC), return machinery (ฯ_R), seam accounting (residuals, weld gates), and implementation bounds (Lemmas 1-19). Critical for debugging, conformance testing, and understanding well-posedness guarantees.
- PUBLICATION_INFRASTRUCTURE.md โ Publication row format, Case ID conventions (CPOC-*), make_pubrow.py tool, contract variants, Weld ID vs EID distinction, ASCII header mapping
- UHMP.md โ Universal Hash Manifest Protocol (5-phase mint, SHA-256 identity, ledger governance)
- FACE_POLICY.md โ Boundary governance: admissible face policies, OOR handling, clipping rules
- CASEPACK_REFERENCE.md โ Complete CasePack structure: manifests (YAML/JSON), receipts (ss1m_receipt.json, seam_receipt.json), integrity ledger (sha256.txt), validation rules (rules.yml). Reference format for publishable units.
- Protocol Reference Guide โ Master navigation and quick lookup
Term and Symbol References
- Glossary โ Structured definitions for all protocol terms (Tier-0 through Tier-2)
- Symbol Index โ Authoritative one-page symbol table with namespace collision guidance
- Term Index โ Alphabetical term cross-reference with file locations
Why this matters: Prevents ambiguous definitions, symbol capture, and "reader imports" that silently redefine protocol meanings. Every term has one authoritative meaning, enabling reproducibility and dispute resolution without private clarification.
UMCP is a production-grade system for creating, validating, and sharing reproducible computational workflows. It enforces mathematical contracts, tracks provenance, generates cryptographic receipts, and validates results against frozen specificationsโensuring reviewers can verify exactly what was computed, how, and under what assumptions.
๐ฏ What is UMCP?
UMCP is a measurement discipline for claims. It requires that every serious claim be published as a reproducible record (a row) with declared inputs, frozen rules, computed integrity outputs, and receipts that allow independent review.
Core Axiom (operational): "Collapse is generative; only what returns is real."
If you claim a system is continuous, stable, or real, you must show returnโthe system can re-enter its admissible neighborhood after drift, perturbation, or delay.
๐ Operational Terms Defined
These terms are operational and enforcement-tied. Do not import everyday meanings.
Tier-0 (Interface Layer):
- Trace (ฮจ): Bounded representation ฮจ(t) โ [0,1]โฟ of raw measurements
- Row: Minimal publishable unit (observations + frozen rules + kernel outputs + receipts)
- Contract: Frozen interface snapshot pinning units, embedding, clipping, weights, and return settings
Tier-1 (GCD Framework - Kernel Invariants):
| Symbol | Name | Definition | Range | NOT confused with |
|---|---|---|---|---|
| ฯ | Drift | ฯ = 1 - F (collapse proximity) | [0,1] | Randomness, velocity |
| F | Fidelity | F = ฮฃ wแตขยทcแตข (weighted coherence) | [0,1] | Accuracy, allegiance |
| S | Entropy | S = -ฮฃ wแตข[cแตข ln(cแตข) + (1-cแตข)ln(1-cแตข)] | โฅ0 | Thermodynamic entropy, chaos |
| C | Curvature | C = stddev(cแตข)/0.5 (instability proxy) | [0,1] | Geometric curvature |
| ฮบ | Log-integrity | ฮบ = ฮฃ wแตข ln(cแตข,ฮต) | โค0 | Information content |
| IC | Integrity | IC = exp(ฮบ) (composite stability) | (0,1] | Moral integrity, truth |
| ฯ_R | Return time | Re-entry delay to domain Dฮธ | โโช{โแตฃโ๊} | Periodicity, repetition |
Tier-2 (RCFT Framework - Geometric Extensions):
- D๊ฐ: Fractal dimension (trajectory complexity), 1 โค D๊ฐ โค 3
- ฮจแตฃ: Recursive field (self-referential strength)
- B: Basin strength (attractor robustness)
Tier-1.5 (Governance):
- Weld: Seam audit (PASS/FAIL) with explicit ledger/budget accounting across structural changes
- Closure: Declared non-identity term required for weld budgeting (e.g., ฮ, R, curvature neighborhood)
๐ฌ Why These Definitions Matter
The axiom "what returns is real" means:
- Drift (ฯ) tracks collapse proximity
- Entropy (S) measures disorder
- Integrity (IC) quantifies stability
- Return (ฯ_R) proves the system can recover
These are not metaphorsโthey are computed quantities with enforcement rules.
UMCP transforms computational experiments into auditable artifacts based on this foundational principle:
๐ท The Core Axiom: What Returns Through Collapse Is Real
# Encoded in every UMCP contract
typed_censoring:
no_return_no_credit: true
Meaning: Reality is defined by what persists through collapse-reconstruction cycles. Only measurements that returnโthat survive transformation and can be reproducedโreceive credit as real, valid observations.
This axiom unifies:
- Measurement Theory: Only reproducible (returning) measurements are valid
- Generative Collapse Dynamics (GCD): Collapse produces new structure
- Recursive Collapse Field Theory (RCFT): Returns accumulate memory across scales
UMCP Workflow
Raw Measurements โ Invariants โ Closures โ Validation โ Receipt
(CSV) (JSON) (Python) (Contract) (SHA256)
โ
Only what returns receives credit
Key Concepts:
- Contracts: Frozen mathematical specifications (GCD, RCFT) encoding the return axiom
- Invariants: Core metrics (ฯ, F, S, C) that must return through validation
- Closures: Computational functions computing what returns from collapse
- CasePacks: Self-contained reproducible units proving return verification
- Validation: Automated verification that results return conformantly
๐ Read the full axiom documentation for philosophical foundations, mathematical formulation, and physical interpretations.
๐ System Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ UMCP WORKFLOW โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ 1. INPUT โ
โ โโ raw_measurements.csv (your experimental data) โ
โ โ
โ 2. INVARIANTS COMPUTATION โ
โ โโ ฯ (drift) โ
โ โโ F (fidelity) โ
โ โโ S (entropy) โ
โ โโ C (curvature) โ
โ โ
โ 3. CLOSURE EXECUTION (choose framework) โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ GCD (Tier-1) โ โ RCFT (Tier-2) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโโโโโค โ
โ โ โข Energy (E) โ OR โ โข Fractal (D_f) โ โ
โ โ โข Collapse (ฮฆ_c) โ โ โข Recursive (ฮจ_r) โ โ
โ โ โข Flux (ฮฆ_gen) โ โ โข Pattern (ฮป, ฮ) โ โ
โ โ โข Resonance (R) โ โ + all GCD closures โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ 4. VALIDATION โ
โ โโ Contract conformance (schema validation) โ
โ โโ Regime classification (Low/Medium/High, etc.) โ
โ โโ Mathematical identities (F = 1-ฯ, IC โ exp(ฮบ), etc.) โ
โ โโ Tolerance checks (within tol_seam, tol_id, etc.) โ
โ โ
โ 5. OUTPUT โ
โ โโ invariants.json (computed metrics) โ
โ โโ closure_results.json (GCD/RCFT outputs) โ
โ โโ seam_receipt.json (validation status + SHA256) โ
โ โโ CONFORMANT or NONCONFORMANT status โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Quick Start (5 Minutes)
Installation
git clone https://github.com/calebpruett927/UMCP-Metadata-Runnable-Code.git
cd UMCP-Metadata-Runnable-Code
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[production]"
Verify Installation
umcp health
# โ All systems operational
pytest
# 325 tests passed
# List available extensions
umcp-ext list
# โ 4 extensions registered
# Update integrity after code/format changes
python scripts/update_integrity.py
๐ Extension System
UMCP features an auto-discovery extension system with 4 built-in plugins:
1. Visualization Dashboard
Interactive Streamlit dashboard for real-time monitoring:
# Launch dashboard
umcp-visualize
# Or: streamlit run visualize_umcp.py
# Opens on http://localhost:8501
Features: Phase space plots, time series analysis, regime tracking, export capabilities
2. Public Audit API
REST API for programmatic access:
# Start API server
umcp-api
# Or: uvicorn api_umcp:app --reload
# Available at http://localhost:8000
Endpoints:
GET /health- Health checkGET /latest-receipt- Latest validation receiptGET /ledger- Historical validation logGET /stats- Aggregate statisticsGET /regime- Current regime classification
3. Continuous Ledger
Automatic logging of all validation runs:
# Ledger updates automatically on validation
umcp validate
# View history
cat ledger/return_log.csv
4. Contract Auto-Formatter
Validate and format all contracts:
# Format all contracts
umcp-format --all
# Validate specific contract
umcp-format --validate contracts/GCD.INTSTACK.v1.yaml
See EXTENSION_INTEGRATION.md for complete documentation.
๐ How to Use UMCP
Step 1: Prepare Your Data
Create a CSV file with your measurements. Example my_data.csv:
timestamp,c,p_x,p_y,p_z
0.0,0.999,0.001,-0.002,0.003
1.0,0.998,0.002,-0.001,0.004
2.0,0.997,0.003,0.000,0.002
Required columns:
c: Fidelity measurement (0 to 1)p_x,p_y,p_z: Momentum components
Step 2: Create a CasePack
# Create new casepack directory
mkdir -p casepacks/my_experiment
# Copy your data
cp my_data.csv casepacks/my_experiment/raw_measurements.csv
# Generate manifest (choose framework: GCD or RCFT)
./scripts/create_manifest.sh my_experiment RCFT.INTSTACK.v1
This creates casepacks/my_experiment/manifest.json:
{
"casepack_id": "my_experiment",
"contract_id": "RCFT.INTSTACK.v1",
"version": "1.0.0",
"description": "My experimental data with RCFT analysis",
"closures_to_run": [
"energy_potential",
"entropic_collapse",
"generative_flux",
"field_resonance",
"fractal_dimension",
"recursive_field",
"resonance_pattern"
]
}
Step 3: Generate Expected Outputs
# Run computation pipeline
python casepacks/my_experiment/generate_expected.py
# This creates:
# - expected/invariants.json (ฯ, F, S, C, ฯ_R, ฮบ, IC)
# - expected/gcd_energy.json (E_potential, regime)
# - expected/gcd_collapse.json (ฮฆ_collapse, regime)
# - expected/gcd_flux.json (ฮฆ_gen, regime)
# - expected/gcd_resonance.json (R, regime)
# - expected/rcft_fractal.json (D_fractal, regime)
# - expected/rcft_recursive.json (ฮจ_r, regime)
# - expected/rcft_pattern.json (ฮป_p, ฮ, pattern_type)
# - expected/seam_receipt.json (validation status)
Example generate_expected.py:
import numpy as np
import json
from pathlib import Path
from closures.gcd.energy_potential import compute_energy_potential
from closures.rcft.fractal_dimension import compute_fractal_dimension, compute_trajectory_from_invariants
# Load raw data
data = np.genfromtxt('raw_measurements.csv', delimiter=',', skip_header=1)
# Compute invariants
omega = np.mean(data[:, 1] - 1.0) # drift from fidelity
F = np.mean(data[:, 1]) # fidelity
S = np.std(data[:, 1]) # entropy
C = np.mean(np.abs(np.diff(data[:, 1]))) # curvature
invariants = {"omega": omega, "F": F, "S": S, "C": C}
# Save invariants
Path("expected").mkdir(exist_ok=True)
with open("expected/invariants.json", "w") as f:
json.dump(invariants, f, indent=2)
# Run GCD closures
energy = compute_energy_potential(omega, S, C)
with open("expected/gcd_energy.json", "w") as f:
json.dump(energy, f, indent=2)
# Run RCFT closures
trajectory = compute_trajectory_from_invariants({
"omega": data[:, 1] - 1.0,
"S": np.full(len(data), S),
"C": np.full(len(data), C)
})
fractal = compute_fractal_dimension(trajectory)
with open("expected/rcft_fractal.json", "w") as f:
json.dump(fractal, f, indent=2)
# Generate receipt
receipt = {
"casepack_id": "my_experiment",
"contract_id": "RCFT.INTSTACK.v1",
"run_status": "CONFORMANT",
"tier_hierarchy_validated": True,
"sha256_manifest": "...",
"timestamp": "2026-01-18T00:00:00Z"
}
with open("expected/seam_receipt.json", "w") as f:
json.dump(receipt, f, indent=2)
Step 4: Validate Your CasePack
# Validate against contract
umcp validate casepacks/my_experiment
# Expected output:
# โ Schema validation passed
# โ Invariants conform to contract
# โ All closures executed successfully
# โ Regime classifications valid
# โ Mathematical identities satisfied
# โ Status: CONFORMANT
Step 5: Compare Results
# Generate new results from same data
python casepacks/my_experiment/generate_expected.py
# Compare with original expected outputs
umcp diff \
casepacks/my_experiment/expected/seam_receipt.json \
casepacks/my_experiment/new_receipt.json
# Shows differences in:
# - Invariant values
# - Closure outputs
# - Regime classifications
# - Validation status
๐ Framework Selection Guide
When to Use GCD (Tier-1)
Best for:
- Energy and collapse dynamics analysis
- Boundary-interior coupling (resonance)
- Generative potential extraction
- Basic regime classification
Example use cases:
- Phase transitions
- Thermodynamic systems
- Field theories
- Quantum collapse models
Closure outputs:
E_potential: Total system energyฮฆ_collapse: Collapse potentialฮฆ_gen: Generative fluxR: Boundary-interior resonance
When to Use RCFT (Tier-2)
Best for:
- Geometric complexity analysis
- Memory and history effects
- Oscillatory pattern detection
- Multi-scale recursive structures
Example use cases:
- Fractal attractors
- Time series with memory
- Periodic or quasi-periodic systems
- Chaotic dynamics
Closure outputs (includes all GCD outputs plus):
D_fractal: Trajectory complexity (1 โค D_f โค 3)ฮจ_recursive: Collapse memory (ฮจ_r โฅ 0)ฮป_pattern: Resonance wavelengthฮ_phase: Phase angle [0, 2ฯ)
Decision Matrix:
| Need | Framework | Why |
|---|---|---|
| Basic energy/collapse analysis | GCD | Simpler, faster, foundational |
| Trajectory complexity | RCFT | Box-counting fractal dimension |
| History/memory effects | RCFT | Exponential decay field |
| Oscillation detection | RCFT | FFT-based pattern analysis |
| Zero entropy (S=0) state | Either | Both handle deterministic states |
| Maximum insight | RCFT | Includes all GCD + 3 new metrics |
๐ Example CasePacks
Hello World (Zero Entropy)
cd casepacks/hello_world
cat raw_measurements.csv
# timestamp,c,p_x,p_y,p_z
# 0.0,0.99999999,0.0,0.0,0.0
# 1.0,0.99999999,0.0,0.0,0.0
# 2.0,0.99999999,0.0,0.0,0.0
python generate_expected.py
umcp validate .
# Result: CONFORMANT
# - ฯ = 0, F = 1.0, S = 0, C = 0
# - All GCD regimes: Low/Minimal/Dormant/Coherent
# - RCFT: D_f=0 (point), ฮจ_r=0 (no memory), ฮป=โ (constant)
RCFT Complete (Full Analysis)
cd casepacks/rcft_complete
umcp validate .
# Result: CONFORMANT with tier_hierarchy_validated=true
# - Validates UMCP โ GCD โ RCFT tier chain
# - All 7 closures executed
# - Zero entropy example with RCFT overlay
๐ ๏ธ Advanced Usage
Programmatic API
from closures.gcd.energy_potential import compute_energy_potential
from closures.rcft.fractal_dimension import compute_fractal_dimension
import numpy as np
# Compute GCD metrics
omega, S, C = 0.01, 0.05, 0.02
energy = compute_energy_potential(omega, S, C)
print(f"Energy: {energy['E_potential']:.6f} ({energy['regime']})")
# Energy: 0.001234 (Low)
# Compute RCFT metrics
trajectory = np.array([[0, 0, 0], [0.01, 0, 0], [0.02, 0.01, 0]])
fractal = compute_fractal_dimension(trajectory)
print(f"Fractal dimension: {fractal['D_fractal']:.4f} ({fractal['regime']})")
# Fractal dimension: 1.0234 (Smooth)
Custom Validation Rules
Edit validator_rules.yaml to add custom checks:
semantic_rules:
- rule_id: "CUSTOM-001"
description: "Custom regime boundary check"
check_type: "regime_check"
target: "energy"
condition: "E_potential < custom_threshold"
severity: "error"
Health Monitoring
# System health check
umcp health
# Output:
# โ Python version: 3.12.1
# โ Dependencies: numpy, scipy, jsonschema
# โ Closures: 7 registered (4 GCD + 3 RCFT)
# โ Schemas: 10 valid
# โ Contracts: 2 loaded (GCD, RCFT)
# โ Status: OPERATIONAL
# Performance metrics
umcp validate --verbose casepacks/my_experiment
# Output includes:
# - Validation duration
# - Memory usage
# - CPU utilization
# - Schema validation time
# - Closure execution time
Production Deployment
# Enable JSON logging
export UMCP_JSON_LOGS=1
# Run with strict validation
umcp validate --strict --out result.json
# Integrate with monitoring systems (ELK, Splunk, CloudWatch)
umcp validate --strict 2>&1 | tee validation.log
See Production Deployment Guide for Docker, Kubernetes, and CI/CD integration.
๐ Documentation
Core Documentation
- Quickstart Guide: Get started in 10 minutes
- Python Coding Standards: Development guidelines
- Production Deployment: Enterprise setup
Framework Documentation
- GCD Theory: Generative Collapse Dynamics (Tier-1)
- RCFT Theory: Recursive Collapse Field Theory (Tier-2)
- RCFT Usage Guide: Practical examples and parameter tuning
Contract Specifications
- GCD Contract: Tier-1 specification
- RCFT Contract: Tier-2 specification
- Contract Versioning: Version history and migration
API Reference
- Closure Registry: All 7 closure definitions
- Schema Library: JSON schemas for all artifacts
- Validator Usage: CLI reference
๐งช Testing
Run All Tests
pytest # All 221 tests (~7s)
pytest -v # Verbose output
pytest -k "gcd" # GCD tests only
pytest -k "rcft" # RCFT tests only
pytest --cov # Coverage report
Test Structure
tests/
โโโ test_00_schemas_valid.py # Schema validation
โโโ test_10_canon_contract_closures_validate.py # Core validation
โโโ test_100_gcd_canon.py # GCD canon tests
โโโ test_101_gcd_closures.py # GCD closure tests
โโโ test_102_gcd_contract.py # GCD contract tests
โโโ test_110_rcft_canon.py # RCFT canon tests
โโโ test_111_rcft_closures.py # RCFT closure tests
โโโ test_112_rcft_contract.py # RCFT contract tests
โโโ test_113_rcft_tier2_layering.py # Tier hierarchy tests
โโโ test_* # Additional integration tests
๐ค What's New in v1.4.0
Complete Protocol Infrastructure & Manuscript Integration:
- 8 Major Protocol Documents: AXIOM, TIER_SYSTEM, KERNEL_SPECIFICATION, PUBLICATION_INFRASTRUCTURE, UHMP, FACE_POLICY, SYMBOL_INDEX, CASEPACK_REFERENCE
- Formal Specifications: 19 lemmas, complete kernel definitions (F, ฯ, S, C, ฮบ, IC, ฯ_R), seam accounting
- Publication Standards: CasePack structure, manifests, receipts (SS1m, Seam), integrity ledgers
- 325 Tests Passing: Full GCD + RCFT frameworks with complete backward compatibility
- Production Ready: Manuscript-aligned documentation, frozen contracts, reproducible workflows
See CHANGELOG.md for full release notes.
Contents
- Canon anchors โ Stable identifiers and default numeric thresholds (UMCP, GCD, RCFT).
- Contracts โ Frozen boundaries defining Tierโ1 and Tier-2 semantics (
GCD.INTSTACK.v1,RCFT.INTSTACK.v1). - Closures โ Explicit complements implementing the frameworks:
- GCD Tier-1 (4 closures): Energy potential, entropic collapse, generative flux, field resonance
- RCFT Tier-2 (3 closures): Fractal dimension, recursive field, resonance pattern
- Schemas โ JSON Schema files describing valid structures for all artifacts.
- Validator rules โ Portable semantic checks enforced at runtime.
- Validator CLI โ A Python entrypoint (
umcp validate,umcp health) with structured logging. - CasePacks โ Runnable publication units (inputs, invariants, receipts) for GCD and RCFT.
- Tests โ Comprehensive pytest suite (221 tests: 142 original + 56 RCFT + 23 integration).
- CI workflow โ GitHub Actions configuration (
validate.yml) that runs the validator and tests. - Production deployment โ Complete guide for enterprise deployment.
- Monitoring & Observability โ Structured JSON logging, performance metrics, health checks.
- RCFT Documentation โ Theory and Usage Guide for Tier-2 overlay.
Production Features โญ
- ๐ฅ Health Checks:
umcp healthcommand for system readiness monitoring - ๐ Performance Metrics: Track validation duration, memory usage, CPU utilization
- ๐ Structured Logging: JSON-formatted logs for ELK, Splunk, CloudWatch integration
- ๐ณ Container Ready: Docker support with health check endpoints
- โธ๏ธ Kubernetes: Liveness and readiness probe examples
- ๐ Audit Trail: Cryptographic SHA256 receipts with git provenance
- โก High Performance: <5 second validation for typical repositories
- ๐ฏ Zero Technical Debt: No TODO/FIXME/HACK markers, production-grade code quality
See the Production Deployment Guide for details.
Quick Start
Installation
# Clone and install
git clone https://github.com/calebpruett927/UMCP-Metadata-Runnable-Code.git
cd UMCP-Metadata-Runnable-Code
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[production]"
Basic Usage
# Check system health
umcp health
# Validate repository (development mode)
umcp validate .
# Validate repository (production/strict mode)
umcp validate --strict
# Enable performance monitoring
umcp validate --strict --verbose
# Output validation receipt
umcp validate --strict --out validation-result.json
# Compare two receipts
umcp diff old-receipt.json new-receipt.json
JSON Logging for Production
# Enable structured JSON logs for monitoring systems
export UMCP_JSON_LOGS=1
umcp validate --strict --verbose 2>&1 | tee validation.log
Merge Verification
To verify that content has been successfully merged and the repository is in a healthy state, run:
./scripts/check_merge_status.sh
This script checks:
- Git status (clean working tree)
- Merge conflict artifacts
- Test suite (all tests passing)
- UMCP validator (CONFORMANT status)
For a detailed merge verification report, see MERGE_VERIFICATION.md.
Root-Level UMCP Files
In addition to CasePacks, this repository includes root-level UMCP configuration files for direct reference:
Configuration (YAML):
manifest.yamlโ Root-level CasePack manifestcontract.yamlโ Contract specificationobservables.yamlโ Observable variable definitionsembedding.yamlโ Embedding transformation configreturn.yamlโ Return domain specificationsclosures.yamlโ Closure registry references
Data Files:
weights.csvโ Weight coefficientsderived/trace.csvโ Bounded trace ฮจ_ฮต(t)derived/trace_meta.yamlโ Trace metadata
Outputs:
outputs/invariants.csvโ Tier-1 invariantsoutputs/regimes.csvโ Regime classificationsoutputs/welds.csvโ Continuity verificationoutputs/report.txtโ Validation report
Integrity:
integrity/sha256.txtโ File checksumsintegrity/env.txtโ Python environmentintegrity/code_version.txtโ Git provenance
Programmatic Access
from umcp import get_umcp_files, get_closure_loader, get_root_validator
# Load any UMCP file
umcp = get_umcp_files()
manifest = umcp.load_manifest()
contract = umcp.load_contract()
invariants = umcp.load_invariants()
# Execute closures
loader = get_closure_loader()
result = loader.execute_closure("F_from_omega", omega=10.0, r=0.5, m=1.0)
# Validate system integrity
validator = get_root_validator()
validation_result = validator.validate_all()
print(f"Status: {validation_result['status']}")
See docs/file_reference.md and docs/interconnected_architecture.md for complete documentation.
Demonstration
Run the interconnected system demonstration:
python examples/interconnected_demo.py
CasePacks (runnable publication units)
A CasePack is a selfโcontained folder under casepacks/<id>/ that holds:
manifest.jsonโ Pins the contract ID, version, closure registry ID, and any explicit overrides.raw_measurements.*โ Inputs used to produce a bounded trace (optional for L0 examples).expected/psi.csvโ Bounded trace row(s) with out-of-range (OOR) and missingness flags.expected/invariants.jsonโ Tierโ1 invariants (ฯ,F,S,C,ฯ_R,ฮบ,IC) computed onย ฮจ_ฮต(t).expected/ss1m_receipt.jsonโ The minimum audit receipt for the run.expected/seam_receipt.jsonโ Only when continuity (weld) is claimed.
Example CasePack: casepacks/hello_world/
Quick start
All commands assume you are in the repository root (the folder containing pyproject.toml). Python 3.11 or later is required (3.12+ recommended).
Set up a virtual environment
Linux/macOS:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install -e ".[test]"
---
## ๐ Repository Structure
UMCP-Metadata-Runnable-Code/ โโโ canon/ # Canonical anchors (specifications) โ โโโ anchors.yaml # Core UMCP definitions โ โโโ gcd_anchors.yaml # GCD Tier-1 specification โ โโโ rcft_anchors.yaml # RCFT Tier-2 specification โโโ contracts/ # Frozen contracts โ โโโ GCD.INTSTACK.v1.yaml # GCD Tier-1 contract โ โโโ RCFT.INTSTACK.v1.yaml # RCFT Tier-2 contract โโโ closures/ # Computational functions โ โโโ gcd/ # 4 GCD closures โ โ โโโ energy_potential.py โ โ โโโ entropic_collapse.py โ โ โโโ generative_flux.py โ โ โโโ field_resonance.py โ โโโ rcft/ # 3 RCFT closures โ โ โโโ fractal_dimension.py โ โ โโโ recursive_field.py โ โ โโโ resonance_pattern.py โ โโโ registry.yaml # Closure registry (all 7) โโโ casepacks/ # Reproducible examples โ โโโ hello_world/ # Zero entropy example โ โโโ rcft_complete/ # Full RCFT validation โโโ schemas/ # JSON schemas (10 files) โโโ tests/ # Test suite (325 tests) โโโ docs/ # Documentation โ โโโ rcft_theory.md # RCFT mathematical foundation โ โโโ rcft_usage.md # RCFT usage guide โโโ scripts/ # Utility scripts โโโ src/umcp/ # UMCP CLI and core โโโ validator_rules.yaml # Validation rules โโโ pyproject.toml # Project config (v1.4.0)
---
## ๐ก Common Questions
**Q: What's the difference between GCD and RCFT?**
- **GCD (Tier-1)**: Energy, collapse, flux, resonance analysis
- **RCFT (Tier-2)**: Adds fractal, recursive, pattern analysis + all GCD
**Q: Can I use both frameworks together?**
- Yes! RCFT includes all GCD closures. Just specify `RCFT.INTSTACK.v1` as your contract.
**Q: How do I know which framework to use?**
- Use GCD for basic energy/collapse analysis
- Use RCFT when you need trajectory complexity, memory effects, or oscillation detection
**Q: What if my tests fail?**
- Check `validator_rules.yaml` for tolerance settings
- Verify your raw data format matches expected schema
- Run `umcp validate --verbose` for detailed error messages
**Q: How do I contribute new closures?**
- Add closure to `closures/` directory
- Register in `closures/registry.yaml`
- Add tests to `tests/`
- Update contract YAML if needed
**Q: Can I use UMCP without Python?**
- Core validation works with any language that can write JSON/CSV
- Closures are Python-based, but outputs are language-agnostic
---
## ๐ฆ CI/CD Integration
### GitHub Actions
```yaml
name: UMCP Validation
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: pip install -e ".[production]"
- run: umcp health
- run: pytest
- run: umcp validate --strict
Docker
# Build container
docker build -t umcp:latest .
# Run validation
docker run -v $(pwd)/casepacks:/data umcp:latest validate /data/my_experiment
# Health check
docker run umcp:latest health
See Production Deployment for Kubernetes, monitoring, and enterprise setup.
๐ Performance
- Test Execution: 221 tests in ~7 seconds
- Validation: <5 seconds for typical casepacks
- Memory: <100MB for most operations
- Scalability: Sublinear growth with test count
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Add tests for new functionality
- Ensure all tests pass (
pytest) - Validate code quality (
ruff check,mypy) - Commit changes (
git commit -m 'feat: Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
See Python Coding Standards for style guide.
๐ License
MIT License - see LICENSE for details.
๐ Acknowledgments
Framework: UMCP (Universal Measurement Contract Protocol)
Core Axiom: "What Returns Through Collapse Is Real"
Tier-1: GCD (Generative Collapse Dynamics)
Tier-2: RCFT (Recursive Collapse Field Theory)
Author: Clement Paulus
Version: 1.3.2-immutable
Release: January 20, 2026
Tests: 233 passing (100% success)
Integrity: 165 files SHA256 checksummed
Extensions: 4 auto-discovered plugins
๐ Support
- Issues: GitHub Issues
- Documentation: docs/
- Examples: casepacks/
- Immutable Release: IMMUTABLE_RELEASE.md
- Core Axiom: AXIOM.md
- Extensions: EXTENSION_INTEGRATION.md
๐ Immutable Release v1.4.0
This is the production-ready snapshot of UMCP with:
- โ Complete manuscript integration (ยง2.3, ยง3, ยง5, ยง8 - 8 protocol documents, ~5,500 lines)
- โ Formal kernel specification (19 lemmas, complete definitions)
- โ CasePack reference structure (manifests, receipts, integrity ledgers)
- โ 325 tests passing (GCD + RCFT frameworks)
- โ All files cryptographically verified (SHA256)
- โ Zero uncommitted changes
- โ
Git tagged:
v1.4.0-immutable
Verify integrity: sha256sum -c integrity/sha256.txt
Read full details: IMMUTABLE_RELEASE.md
Built with โค๏ธ for reproducible science
"What Returns Through Collapse Is Real"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file umcp-1.4.0.tar.gz.
File metadata
- Download URL: umcp-1.4.0.tar.gz
- Upload date:
- Size: 104.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625ca42801a55e17bf5d4528f3df5ea78c41a51e337885f9414b57fcc8c053e4
|
|
| MD5 |
5e9adb74e968cd013f3931422e6fa88f
|
|
| BLAKE2b-256 |
35ef77a021c27e4263ea70a796759327cd2afd516a226228b250d52e482773ba
|
File details
Details for the file umcp-1.4.0-py3-none-any.whl.
File metadata
- Download URL: umcp-1.4.0-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95cf6c956cf1976b421d7cb6ac55824d52a666165ae76a77b6f407128075e115
|
|
| MD5 |
a9f81f0acc9b3277d563d670801d2773
|
|
| BLAKE2b-256 |
4dc3635a30721d1881f4fba0112593ed8768e81f2c736f8dd6a864b03d4a6923
|