Skip to main content

Universal Measurement Contract Protocol (UMCP): Production-grade 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

UMCP

๐Ÿ”ฌ Universal Measurement Contract Protocol

Transform computational experiments into auditable, reproducible artifacts with formal mathematical foundations

CI Python 3.11+ License: MIT Tests: 1060 passing Version: 2.0.0 API: 37+ endpoints

Quick Start โ€ข Core Axiom โ€ข Features โ€ข Architecture โ€ข Documentation โ€ข Contributing


Core Axiom: "What Returns Through Collapse Is Real"

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.


๐Ÿ“‹ Table of Contents

Click to expand

๐Ÿš€ Quick Start

Prerequisites

Requirement Version Purpose
Python 3.11+ Runtime
pip Latest Package management
git Any Version control

Installation

# Clone the repository
git clone https://github.com/calebpruett927/UMCP-Metadata-Runnable-Code.git
cd UMCP-Metadata-Runnable-Code

# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install (choose your level)
pip install -e "."                    # Core only
pip install -e ".[api]"               # + REST API
pip install -e ".[viz]"               # + Dashboard
pip install -e ".[dev]"               # + Dev tools
pip install -e ".[all]"               # Everything

Verify Installation

umcp health           # System health check
umcp validate .       # Validate repository
pytest                # Run 1060 tests
๐Ÿ“ฑ One-liner install
git clone https://github.com/calebpruett927/UMCP-Metadata-Runnable-Code.git && cd UMCP-Metadata-Runnable-Code && python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[all]" && umcp health

๐ŸŽฏ Core Axiom

The Foundational Principle

UMCP is built on a single axiom that drives all design decisions:

"What Returns Through Collapse Is Real"

This means:

  • โœ… Only measurements that return (survive transformation) are valid
  • โœ… No credit without reproducibility
  • โœ… Mathematical contracts are frozen artifacts
  • โœ… Provenance is cryptographically verified
# Encoded in every UMCP contract
typed_censoring:
  no_return_no_credit: true

Core Principle

One-way dependency flow within a frozen run, with return-based canonization between runs.

Context Rule
Within-run Frozen causes onlyโ€”no back-edges, no retroactive tuning
Between-run Continuity only by return-weldโ€”new runs are canon-continuous only if seam returns and closes

โœจ What Makes UMCP Different

Traditional Approaches UMCP Adds
Tool Purpose
Version control Tracks code changes
Docker Reproducible environments
Unit tests Validates specific outputs
Checksums File integrity
Feature Purpose
Return time (ฯ„_R) Measures temporal coherence
Budget identity Conservation law validation
Frozen contracts Immutable mathematical specs
Seam testing Budget conservation
Regime classification System health monitoring
Uncertainty propagation Delta-method through invariants
Human-verifiable checksums mod-97 triads

๐Ÿ“Š System Overview

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                    UMCP SYSTEM AT A GLANCE                        โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                                                                   โ•‘
โ•‘   ๐Ÿ“Š 1060 Tests        ๐Ÿ”Œ 37+ API Endpoints    ๐Ÿ“ˆ 21 Dashboard    โ•‘
โ•‘   ๐Ÿ“ฆ 13 Casepacks      ๐Ÿ”ง 10 CLI Commands      ๐Ÿงฎ 46 Lemmas       โ•‘
โ•‘   ๐Ÿ”ฌ 60 Closures       ๐Ÿ“œ 9 Frameworks         ๐Ÿ”’ SHA256 Verified โ•‘
โ•‘                                                                   โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                                                                   โ•‘
โ•‘   FRAMEWORKS:                                                     โ•‘
โ•‘   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”           โ•‘
โ•‘   โ”‚ GCD (Tier-2) โ”‚  โ”‚ KIN (Tier-0) โ”‚  โ”‚ RCFT (Tier-2)โ”‚           โ•‘
โ•‘   โ”‚ Energy/      โ”‚  โ”‚ Phase Space  โ”‚  โ”‚ Fractal/     โ”‚           โ•‘
โ•‘   โ”‚ Collapse     โ”‚  โ”‚ Return       โ”‚  โ”‚ Recursive    โ”‚           โ•‘
โ•‘   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜           โ•‘
โ•‘                                                                   โ•‘
โ•‘   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                             โ•‘
โ•‘   โ”‚ WEYL         โ”‚  โ”‚ Security     โ”‚                             โ•‘
โ•‘   โ”‚ Cosmological โ”‚  โ”‚ Validation   โ”‚                             โ•‘
โ•‘   โ”‚ Analysis     โ”‚  โ”‚ Framework    โ”‚                             โ•‘
โ•‘   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                             โ•‘
โ•‘                                                                   โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Kernel Invariants (The Seven Core Metrics)

Symbol Name Definition Range Purpose
ฯ‰ Drift ฯ‰ = 1 - F [0,1] Collapse proximity
F Fidelity F = ฮฃ wแตขยทcแตข [0,1] Weighted coherence
S Entropy S = -ฮฃ wแตข[cแตข ln(cแตข) + (1-cแตข)ln(1-cแตข)] โ‰ฅ0 Disorder measure
C Curvature C = stddev(cแตข)/0.5 [0,1] Instability proxy
ฯ„_R Return time Re-entry delay to domain Dฮธ โ„•โˆช{โˆž} Recovery measure
ฮบ Log-integrity ฮบ = ฮฃ wแตข ln(cแตข,ฮต) โ‰ค0 Composite stability
IC Integrity IC = exp(ฮบ) (0,1] System stability

Regime Classification

Regime Conditions ๐Ÿšฆ
STABLE ฯ‰ < 0.038, F > 0.90, S < 0.15, C < 0.14 ๐ŸŸข
WATCH 0.038 โ‰ค ฯ‰ < 0.30 ๐ŸŸก
COLLAPSE ฯ‰ โ‰ฅ 0.30 ๐Ÿ”ด

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     UMCP WORKFLOW (v2.0.0)                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ INPUT   โ”‚โ”€โ”€โ”€โ–ถโ”‚ KERNEL      โ”‚โ”€โ”€โ”€โ–ถโ”‚ CLOSURES    โ”‚โ”€โ”€โ”€โ–ถโ”‚ OUTPUT   โ”‚ โ”‚
โ”‚  โ”‚ ฮจ(t)    โ”‚    โ”‚ ฯ‰,F,S,C,ฯ„_R โ”‚    โ”‚ ฮ“(ฯ‰),D_C    โ”‚    โ”‚ Receipts โ”‚ โ”‚
โ”‚  โ”‚ [0,1]โฟ  โ”‚    โ”‚ ฮบ, IC       โ”‚    โ”‚ Budget      โ”‚    โ”‚ Ledger   โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚       โ”‚                โ”‚                 โ”‚                 โ”‚        โ”‚
โ”‚       โ–ผ                โ–ผ                 โ–ผ                 โ–ผ        โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ Tier-0  โ”‚    โ”‚ Tier-1      โ”‚    โ”‚ Tier-0 Seam โ”‚    โ”‚ SHA256   โ”‚ โ”‚
โ”‚  โ”‚ Protocolโ”‚    โ”‚ Invariants  โ”‚    โ”‚ |s| โ‰ค 0.005 โ”‚    โ”‚ Verified โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚                                                                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚ COST CLOSURES (Frozen Contract v2.0.0)                      โ”‚   โ”‚
โ”‚  โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚   โ”‚
โ”‚  โ”‚ ฮ“(ฯ‰) = ฯ‰ยณ/(1-ฯ‰+ฮต)           [Drift cost - cubic barrier]   โ”‚   โ”‚
โ”‚  โ”‚ D_C = ฮฑยทC                    [Curvature cost]               โ”‚   โ”‚
โ”‚  โ”‚ Budget: Rยทฯ„_R = D_ฯ‰ + D_C + ฮ”ฮบ  [Conservation law]          โ”‚   โ”‚
โ”‚  โ”‚ Seam: |s| โ‰ค tol_seam         [PASS condition]               โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Canonical Constants

Symbol Name Value Purpose
ฮต Guard band 10โปโธ Numerical stability
p Power exponent 3 ฮ“(ฯ‰) cubic exponent
ฮฑ Curvature scale 1.0 D_C cost closure
ฮป Damping 0.2 Reserved
tol_seam Seam tolerance 0.005 Budget residual threshold

๐Ÿ”ง CLI Commands

UMCP provides 10 built-in CLI commands:

# Core validation
umcp validate [path]        # Validate artifacts, CasePacks, schemas
umcp health                 # System health check
umcp preflight              # Pre-validation checks

# Testing
umcp test                   # Run pytest (supports --coverage, -k, -m)
umcp casepack <name>        # Run specific casepack

# Discovery
umcp list <type>            # List casepacks|closures|contracts|schemas
umcp integrity <path>       # Verify SHA256 hashes

# Analysis
umcp diff file1 file2       # Compare validation receipts
umcp report [path]          # Generate audit reports
umcp run [path]             # Operational validation
๐Ÿ“‹ Command Examples
# Validate hello_world casepack
umcp validate casepacks/hello_world

# Run tests with coverage
umcp test --coverage

# List all casepacks
umcp list casepacks

# Check system health
umcp health

# Generate report
umcp report casepacks/gcd_complete

๐ŸŒ REST API

UMCP includes a production-ready REST API with 37+ endpoints:

pip install -e ".[api]"     # Install API dependencies
umcp-api                    # Start server (port 8000)

Endpoint Categories

Category Endpoints Description
System 3 /, /health, /version
Validation 1 /validate
Casepacks 3 Browse and execute
Ledger 2 Query validation history
Contracts 1 List available contracts
Closures 1 List closure functions
Analysis 4 Statistics, correlation, timeseries
Kernel 3 Compute invariants, budget, uncertainty
Conversion 2 Unit conversion, embedding
Output 10+ SVG, Markdown, HTML, LaTeX, JUnit, JSON-LD
๐Ÿ“‹ API Examples
# Health check (no auth)
curl http://localhost:8000/health

# List casepacks
curl -H "X-API-Key: umcp-dev-key" http://localhost:8000/casepacks

# Compute kernel
curl -X POST -H "X-API-Key: umcp-dev-key" \
  -H "Content-Type: application/json" \
  -d '{"coordinates": [0.9, 0.85, 0.92], "weights": [0.5, 0.3, 0.2]}' \
  http://localhost:8000/kernel/compute

๐Ÿ“– Interactive docs: http://localhost:8000/docs (Swagger UI)


๐Ÿ“ˆ Visualization Dashboard

UMCP includes an interactive Streamlit dashboard with 21 pages:

pip install -e ".[viz]"     # Install visualization dependencies
umcp-dashboard              # Start dashboard (port 8501)

Dashboard Pages

Category Pages Description
Core Overview, Geometry, Ledger, Casepacks, Contracts, Closures, Regime, Metrics, Health System monitoring
Interactive Live Runner, Batch Validation, Test Templates Run validations
Scientific Physics, Kinematics, Formula Builder, Cosmology Domain-specific
Analysis Time Series, Comparison Data analysis
Management Exports, Bookmarks, Notifications, API Integration System management

๐Ÿ“– Dashboard URL: http://localhost:8501


๐Ÿ“ฆ Frameworks

Framework Selection Guide

Framework Tier Best For Closures
GCD 2 Energy/collapse analysis, phase transitions 5
Kinematics 0 Physics-based motion, phase space return (diagnostic) 6
RCFT 2 Trajectory complexity, memory effects 4
WEYL 2 Cosmological analysis, modified gravity 5
Security 2 Validation security, input sanitization 8
Astronomy 2 Stellar classification, HR diagram stability 6
Nuclear 2 Binding energy, decay chains, shell structure 6
Quantum Mechanics 2 Wavefunction, entanglement, tunneling, spin 6
Finance 2 Portfolio continuity, market coherence 6
๐Ÿ”ฌ GCD (Generative Collapse Dynamics)

Closures: energy_potential, entropic_collapse, generative_flux, field_resonance, boundary_detection

umcp validate casepacks/gcd_complete
โš™๏ธ Kinematics (KIN)

Closures: linear_kinematics, rotational_kinematics, energy_mechanics, momentum_dynamics, phase_space_return, kinematic_stability

umcp validate casepacks/kinematics_complete
umcp casepack kin_ref_phase_oscillator
๐ŸŒ€ RCFT (Recursive Collapse Field Theory)

Closures: All GCD + fractal_dimension, recursive_field, resonance_pattern

umcp validate casepacks/rcft_complete
๐ŸŒŒ WEYL (Cosmological Framework)

Purpose: Modified gravity analysis, DES Y3 data integration

umcp validate casepacks/weyl_des_y3
๐ŸŒŸ Astronomy (ASTRO)

Closures: stellar_luminosity, main_sequence_stability, hr_diagram_classification, spectral_type_analysis, metallicity_evolution, stellar_age_coherence

umcp validate casepacks/astronomy_complete
โ˜ข๏ธ Nuclear Physics (NUC)

Closures: binding_energy_stability, alpha_decay_chain, fissility_parameter, nuclear_shell_model, decay_chain_analysis, double_sided_collapse

umcp validate casepacks/nuclear_chain
โš—๏ธ Quantum Mechanics (QM)

Closures: wavefunction_coherence, density_matrix_stability, bell_state_entanglement, tunneling_transmission, harmonic_oscillator_fidelity, spin_measurement_stability

umcp validate casepacks/quantum_mechanics_complete
๐Ÿ’ฐ Finance (FIN)

Closures: portfolio_continuity, market_coherence, volatility_regime, correlation_stability, drawdown_analysis, return_fidelity

umcp validate casepacks/finance_continuity

๐Ÿงช Testing

pytest                      # Run all 1060 tests
pytest -v                   # Verbose output
pytest --cov                # With coverage
pytest -k "gcd"             # Pattern matching
pytest -m "not slow"        # Skip slow tests

Test Distribution

Category Tests Description
Schema validation 50 JSON/YAML schema tests
Kernel invariants 84 Core metric tests
GCD framework 92 Energy/collapse tests
Kinematics 133 Motion analysis tests
RCFT framework 78 Fractal/recursive tests
WEYL framework 43 Cosmology tests
Extended Lemmas 53 Lemmas 35-46 tests
Frozen contract 36 Canonical constants
SS1m triads 35 Checksum tests
Uncertainty 23 Delta-method tests
API 32 REST endpoint tests
Dashboard 30 UI component tests
Security 45 Input validation tests
Integration 150+ End-to-end tests

๐Ÿ“š Documentation

๐Ÿ“– Core References

Document Description
AXIOM.md Core axiom: "What returns is real"
KERNEL_SPECIFICATION.md Formal definitions (46 lemmas)
MATHEMATICAL_ARCHITECTURE.md Complete mathematical framework
TIER_SYSTEM.md Tier-0/1/2 architecture (v3.0.0)
INFRASTRUCTURE_GEOMETRY.md Three-layer geometric architecture

๐Ÿ”ง Developer Guides

Document Description
QUICKSTART_TUTORIAL.md 10-minute hands-on tutorial
docs/quickstart.md Getting started guide
docs/python_coding_key.md Development standards
docs/production_deployment.md Enterprise deployment

๐Ÿ“ Framework Documentation

Document Description
canon/gcd_anchors.yaml GCD specification
canon/kin_anchors.yaml Kinematics specification
canon/rcft_anchors.yaml RCFT specification
KINEMATICS_SPECIFICATION.md Kinematics layer docs

๐Ÿ“‹ Reference

Document Description
GLOSSARY.md Authoritative term definitions
SYMBOL_INDEX.md Symbol table
CASEPACK_REFERENCE.md CasePack structure
EXTENSION_INTEGRATION.md Extension system

๐Ÿ“‚ Repository Map

UMCP-Metadata-Runnable-Code/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ src/umcp/                   # Core Python implementation
โ”‚   โ”œโ”€โ”€ frozen_contract.py         # Canonical constants & closures
โ”‚   โ”œโ”€โ”€ validator.py               # Core validation engine
โ”‚   โ”œโ”€โ”€ cli.py                     # CLI (10 commands)
โ”‚   โ”œโ”€โ”€ api_umcp.py                # REST API (37+ endpoints)
โ”‚   โ”œโ”€โ”€ dashboard.py               # Streamlit (21 pages)
โ”‚   โ”œโ”€โ”€ uncertainty.py             # Delta-method propagation
โ”‚   โ”œโ”€โ”€ ss1m_triad.py              # Mod-97 checksums
โ”‚   โ””โ”€โ”€ umcp_extensions.py         # Extension registry
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ tests/                      # Test suite (1002 tests)
โ”‚   โ”œโ”€โ”€ test_frozen_contract.py    # Frozen contract tests
โ”‚   โ”œโ”€โ”€ test_extended_lemmas.py    # Lemmas 35-46 tests
โ”‚   โ”œโ”€โ”€ test_api_umcp.py           # API tests
โ”‚   โ”œโ”€โ”€ closures/                  # Closure-specific tests
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ casepacks/                  # Reproducible examples (11)
โ”‚   โ”œโ”€โ”€ hello_world/               # Zero entropy baseline
โ”‚   โ”œโ”€โ”€ gcd_complete/              # GCD validation
โ”‚   โ”œโ”€โ”€ kinematics_complete/       # Kinematics validation
โ”‚   โ”œโ”€โ”€ rcft_complete/             # RCFT validation
โ”‚   โ”œโ”€โ”€ weyl_des_y3/               # WEYL cosmology
โ”‚   โ”œโ”€โ”€ security_validation/       # Security framework
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ closures/                   # Computational functions (28+)
โ”‚   โ”œโ”€โ”€ gcd/                       # GCD closures
โ”‚   โ”œโ”€โ”€ kinematics/                # Kinematics closures
โ”‚   โ”œโ”€โ”€ rcft/                      # RCFT closures
โ”‚   โ”œโ”€โ”€ weyl/                      # WEYL closures
โ”‚   โ”œโ”€โ”€ security/                  # Security closures
โ”‚   โ””โ”€โ”€ registry.yaml              # Closure registry
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ contracts/                  # Frozen mathematical contracts
โ”‚   โ”œโ”€โ”€ UMA.INTSTACK.v1.yaml       # Primary contract
โ”‚   โ”œโ”€โ”€ GCD.INTSTACK.v1.yaml       # GCD framework
โ”‚   โ””โ”€โ”€ RCFT.INTSTACK.v1.yaml      # RCFT framework
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ canon/                      # Canonical anchors
โ”‚   โ”œโ”€โ”€ gcd_anchors.yaml           # GCD specification
โ”‚   โ”œโ”€โ”€ kin_anchors.yaml           # Kinematics specification
โ”‚   โ””โ”€โ”€ rcft_anchors.yaml          # RCFT specification
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ schemas/                    # JSON schemas (12+)
โ”œโ”€โ”€ ๐Ÿ“ ledger/                     # Validation log
โ”œโ”€โ”€ ๐Ÿ“ integrity/                  # SHA256 checksums
โ”œโ”€โ”€ ๐Ÿ“ docs/                       # Documentation
โ”œโ”€โ”€ ๐Ÿ“ data/                       # Physics observations
โ”‚   โ””โ”€โ”€ physics_observations_complete.csv  # 38 observations
โ”‚
โ””โ”€โ”€ ๐Ÿ“„ pyproject.toml              # Project configuration

๐ŸŽ“ Getting Started Tutorial

Step 1: Understand the Core Concept

UMCP validates computational experiments as auditable artifacts. Every claim must have:

  1. โœ… Declared inputs (raw measurements)
  2. โœ… Frozen rules (mathematical contracts)
  3. โœ… Computed outputs (invariants, closures)
  4. โœ… Cryptographic receipts (SHA256 verification)

Step 2: Run Your First Validation

# Validate the hello_world casepack
umcp validate casepacks/hello_world

# Expected output:
# โœ“ CONFORMANT
# Errors: 0, Warnings: 0

Step 3: Explore the Python API

import umcp
from umcp.frozen_contract import compute_kernel, classify_regime
import numpy as np

# Validate a casepack
result = umcp.validate("casepacks/hello_world")
print(f"Status: {'CONFORMANT' if result else 'NONCONFORMANT'}")

# Compute kernel invariants
c = np.array([0.9, 0.85, 0.92])  # Coherence values
w = np.array([0.5, 0.3, 0.2])    # Weights
kernel = compute_kernel(c, w, tau_R=5.0)

print(f"Drift (ฯ‰): {kernel.omega:.4f}")
print(f"Fidelity (F): {kernel.F:.4f}")
print(f"Integrity (IC): {kernel.IC:.4f}")

# Classify regime
regime = classify_regime(
    omega=kernel.omega,
    F=kernel.F,
    S=kernel.S,
    C=kernel.C,
    integrity=kernel.IC
)
print(f"Regime: {regime.name}")  # STABLE, WATCH, or COLLAPSE

Step 4: Create Your Own CasePack

# Copy the hello_world template
cp -r casepacks/hello_world casepacks/my_experiment

# Edit the manifest
nano casepacks/my_experiment/manifest.yaml

# Validate your casepack
umcp validate casepacks/my_experiment

Step 5: Explore Extensions

# Start the REST API
pip install -e ".[api]"
umcp-api
# Open http://localhost:8000/docs

# Start the Dashboard
pip install -e ".[viz]"
umcp-dashboard
# Open http://localhost:8501

Step 6: Run the Test Suite

# Run all tests
pytest

# Run with coverage
pytest --cov=umcp --cov-report=html

# Run specific framework tests
pytest -k "gcd"
pytest -k "kinematics"
pytest -k "rcft"

Step 7: Understand the Mathematics

Read these documents in order:

  1. AXIOM.md - The foundational principle
  2. KERNEL_SPECIFICATION.md - 46 formal lemmas
  3. MATHEMATICAL_ARCHITECTURE.md - Complete framework

๐Ÿค Contributing

We welcome contributions! Please read our comprehensive CONTRIBUTING.md guide.

Quick Contribution Workflow

# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/UMCP-Metadata-Runnable-Code.git
cd UMCP-Metadata-Runnable-Code

# 2. Create virtual environment
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

# 3. Create feature branch
git checkout -b feat/your-feature

# 4. Make changes and test
pytest
ruff check .
ruff format .
mypy src/umcp

# 5. Commit and push
git commit -m "feat: your feature description"
git push origin feat/your-feature

# 6. Open Pull Request

Contribution Areas

Area Description Difficulty
๐Ÿ“– Documentation Improve docs, fix typos ๐ŸŸข Easy
๐Ÿงช Tests Add test coverage ๐ŸŸข Easy
๐Ÿ› Bug fixes Fix reported issues ๐ŸŸก Medium
โœจ Features New closures, endpoints ๐ŸŸก Medium
๐Ÿ”ฌ Research New frameworks, lemmas ๐Ÿ”ด Hard

Code Quality Standards

  • โœ… All tests must pass (pytest)
  • โœ… 80%+ code coverage
  • โœ… Zero ruff errors (ruff check .)
  • โœ… Zero type errors (mypy src/umcp)
  • โœ… Proper formatting (ruff format .)

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2026 Clement Paulus

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

๐Ÿ“ž Support & Resources

๐Ÿ”— Links

๐Ÿ“š Key Files


๐Ÿ† System Status

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                    UMCP PRODUCTION SYSTEM STATUS                      โ•‘
โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ
โ•‘                                                                       โ•‘
โ•‘   ๐ŸŽฏ Core Axiom:    "What Returns Through Collapse Is Real"           โ•‘
โ•‘   ๐Ÿ“œ Contract:      UMA.INTSTACK.v1 + Frozen Contract v2.0.0          โ•‘
โ•‘   ๐Ÿ” Canon:         UMCP.CANON.v1                                     โ•‘
โ•‘                                                                       โ•‘
โ•‘   โš™๏ธ  Frozen:       ฮต=10โปโธ  p=3  ฮฑ=1.0  ฮป=0.2  tol=0.005              โ•‘
โ•‘                                                                       โ•‘
โ•‘   ๐Ÿ“Š Status:        CONFORMANT โœ…                                     โ•‘
โ•‘   ๐Ÿงช Tests:         1060 passing                                     โ•‘
โ•‘   ๐Ÿ“ฆ Casepacks:     13 validated                                     โ•‘
โ•‘   ๐Ÿ”ง CLI:           10 commands                                       โ•‘
โ•‘   ๐ŸŒ API:           37+ endpoints                                     โ•‘
โ•‘   ๐Ÿ“ˆ Dashboard:     21 pages                                          โ•‘
โ•‘   ๐Ÿงฎ Lemmas:        46 formal proofs                                  โ•‘
โ•‘   ๐Ÿ”ฌ Closures:      60+ functions                                     โ•‘
โ•‘   ๐Ÿ“ฆ Contracts:     12 domain contracts                                โ•‘
โ•‘   ๐ŸŒ Domains:       9 (GCD, KIN, RCFT, WEYL, SEC, ASTRO, NUC, QM, FIN)โ•‘
โ•‘   ๐Ÿ”’ Integrity:     SHA256 verified                                   โ•‘
โ•‘                                                                       โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Built with โค๏ธ for reproducible science

"What Returns Through Collapse Is Real"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

umcp-2.0.0.tar.gz (483.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umcp-2.0.0-py3-none-any.whl (413.0 kB view details)

Uploaded Python 3

File details

Details for the file umcp-2.0.0.tar.gz.

File metadata

  • Download URL: umcp-2.0.0.tar.gz
  • Upload date:
  • Size: 483.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for umcp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3a7835dd4e7e92f5372ecd2017ad582291cb28c4d0866210ed2e7fa7c69903db
MD5 5997c34232a460619ab4fb430a7d7376
BLAKE2b-256 29c4398046b0ad52d793db3964d869cb67e8bd344cb5e9ca37800467fde243b2

See more details on using hashes here.

File details

Details for the file umcp-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: umcp-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 413.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for umcp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f03daac7485e46363333ff9f8766247d50254ef9d6fcbeda454a6eb5c04ac9
MD5 80feb68985df3218768c1a1af8300c4d
BLAKE2b-256 e2088d3f091a5e2dee3a64338e57adfda2af35aca1c0d77cb16c5ec07815b823

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page