Universal Measurement Contract Protocol (UMCP): contract-first validation, receipts, and runnable casepacks with GCD and RCFT frameworks. Features intelligent caching and progressive optimization.
Project description
๐ Live System HUD
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ UMCP PRODUCTION SYSTEM STATUS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ 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: umcp validate
๐ Dashboard: Port 8501 (Interactive)
๐ API: Port 8000 (REST)
๐ฆ Ledger: ledger/return_log.csv (continuous append)
๐งช CasePacks: hello_world | gcd_complete | rcft_complete
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
"No improvisation. Contract-first. Tier-1 reserved."
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Quick Access:
- ๐จ 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
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 transforms computational experiments into auditable artifacts:
Raw Measurements โ Invariants โ Closures โ Validation โ Receipt
(CSV) (JSON) (Python) (Contract) (SHA256)
Key Concepts:
- Contracts: Frozen mathematical specifications (GCD, RCFT) defining valid computation
- Invariants: Core metrics (ฯ, F, S, C) computed from raw data
- Closures: Computational functions (energy, collapse, flux, resonance, fractal, recursive, pattern)
- CasePacks: Self-contained reproducible units (inputs + expected outputs + receipt)
- Validation: Automated verification that results conform to contract specifications
๐ 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
# 221 tests passed in ~7s
๐ 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.1.0
Recursive Collapse Field Theory (RCFT) - Complete Tier-2 framework:
- 3 New Closures: Fractal dimension, recursive field, resonance pattern
- Complete Integration: 221 tests passing (100% success), full backward compatibility
- Production Ready: Comprehensive documentation, validated examples
- Performance: 7s test execution (was 12s for 30 tests, now 221 tests!)
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 (221 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.1.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)
Tier-1: GCD (Generative Collapse Dynamics)
Tier-2: RCFT (Recursive Collapse Field Theory)
Author: Clement Paulus
Version: 1.1.0
Tests: 221 passing (100% success)
๐ Support
- Issues: GitHub Issues
- Documentation: docs/
- Examples: casepacks/
Built with โค๏ธ for reproducible science
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.3.1.tar.gz.
File metadata
- Download URL: umcp-1.3.1.tar.gz
- Upload date:
- Size: 74.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
117ea4ad5a33e9f7c3c2d71dc5f6d3a7f5b5145c90d0914a506b8ac28962e76f
|
|
| MD5 |
69575fb0968e9825f8b18ffa8651fa69
|
|
| BLAKE2b-256 |
03605754071fa23009572dae51b599ea71cf10164a459998f8b44619a97a4c56
|
File details
Details for the file umcp-1.3.1-py3-none-any.whl.
File metadata
- Download URL: umcp-1.3.1-py3-none-any.whl
- Upload date:
- Size: 38.4 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 |
fc60dd469144ad80de2bca899ed8dc9cdca76e271dbc43cbd1bac7039a6ea44b
|
|
| MD5 |
7b5ae1bdcbf0b1cab446c30e1c0a2a2f
|
|
| BLAKE2b-256 |
154e24c519d04b53e06a4241d4e1ac4cde99d732300d4ff3478aa37cedd8b150
|