← All Specifications

USR/CoreFab

The constitutional formalization of orchestration — where UWA components are coordinated over UCN networks into sovereign constitutional action.

L0 — Sovereign Runtime 17 Invariants 664 Lines ❄️ Frozen

USR/CoreFab Formal Specification v0.1.0

The constitutional formalization of orchestration — where UWA components are coordinated over UCN networks into sovereign constitutional action.

Preamble

This document is the formal specification of USR (Universal Sovereign Runtime) and CoreFab (Constitutional Fabrication). It defines how UWA components are orchestrated and how UCN networks are coordinated to produce sovereign constitutional execution.

USR does not define what a component is (that is UWA). USR does not define how components communicate across a network (that is UCN). USR defines how validated components are orchestrated into deterministic constitutional action — the runtime that makes components execute, attests to their behavior, and enforces sovereignty.

The v0.1.0 implementation proved that constitutional execution is possible. This specification proves that it is definable, verifiable, and sovereign.

This specification answers the constitutional question: How is meaning executed? It defines the invariants that execution must satisfy — the properties that hold true regardless of implementation. Mechanisms (Rust, WIT, SHA-256) are implementation choices; invariants are constitutional law.

Classification: Constitutional — defines orchestration law for all of ICore. Derivation:
UWA + UCN → USR/CoreFab (orchestration engine)
Depends on: UWA (execution requires components to orchestrate) and UCN (orchestration across sovereign nodes requires networking). Transitively the entire stack above USCP. Depended on by: UCA (adapters bridge the orchestrated runtime to external systems). UCA is the constitutional boundary; USR/CoreFab is the constitutional interior.

Section 1: Foundational Axioms

Every runtime capability must trace to these axioms. Nothing exists in USR/CoreFab that these axioms do not authorize.

1.1 The Five Runtime Axioms

#AxiomStatementDerived From
RA1Execution requires identity.No operation may execute without a declared, verified constitutional identity. An anonymous operation is an attack, not execution.Identity (USCP)
RA2Execution requires determinism.The same input, the same operation, the same component → the same output. Every time. Without exception. Non-determinism is constitutional failure.Verification (USCP)
RA3Execution requires provenance.Every execution produces a cryptographically verifiable record of what happened, when, and to what effect. Untracked execution is unconstitutional.Relationship (USCP)
RA4Execution requires isolation.Components may only access resources they have been explicitly granted. Capability is never implied — only declared and verified.Constraint (USCP)
RA5Execution requires sovereignty.No external system may override, redirect, or suppress constitutional execution. The runtime is the constitutional interior — the world beyond UCA cannot reach in.Existence (USCP)

1.2 Axiom Sufficiency

All six USCP primitives are represented across the axioms:

PrimitivePresent InRole
ExistenceRA5 (sovereignty)The runtime exists and cannot be overridden
IdentityRA1 (identity)Operations declare who executes them
RelationshipRA3 (provenance)Executions produce traceable chains
ConstraintRA4 (isolation)Capabilities are bounded and granted
TransformationRA2 (determinism)Execution transforms input to output predictably
VerificationRA3 (provenance)Attestation verifies what happened
The foundation is complete. The six primitives are fully represented.

These axioms are invariants. They define what must always be true. The mechanisms below (WIT interfaces, Rust modules, SHA-256) are implementation choices that satisfy these invariants — they could be replaced by any conforming implementation.


Section 2: The USR Model

2.1 Definitions

TermDefinition
USRUniversal Sovereign Runtime — the constitutional orchestration environment that coordinates UWA components over UCN networks. Provides isolation, attestation, and sovereign execution.
CoreFabConstitutional Fabrication — the orchestration engine operating within USR. Orchestrates component execution deterministically and produces provenance.
ComponentA constitutional unit defined by UWA and orchestrated by USR. USR does not define components — it orchestrates them.
BlueprintA declarative specification of a component and its intended execution. Blueprints are constitutionally validated by USR before orchestration.
OperationA discrete constitutional action orchestrated by USR. Operations are named, registered, and deterministic.
CapabilityA grant of access to a governed resource, with explicit permissions and optional expiration. Capabilities are never implicit.

2.2 The Relationship Between USR and CoreFab

USR is the constitutional runtime environment. CoreFab is the constitutional execution engine operating within that environment.

Neither is complete without the other. Neither pretends to be the other.

USR (environment):
  ├── Identity system     — declares who exists
  ├── Isolation system    — governs what is accessible
  ├── Orchestration system — manages lifecycle and communication
  └── CoreFab (engine):
       ├── Execution engine  — runs operations
       └── Attestation engine — proves what happened

The environment wraps the engine. The engine operates within the environment. A component is registered by the environment, then executed by the engine, then attested by the engine, then managed by the environment.

2.3 Constitutional Layer

PropertyValue
Layer ordinal5 (Execution)
Layer nameExecution
Derives fromLayer 4 (Expression): UVS
Depended on byLayer 6 (Implementation): UCA, UCD
Governance statusConstitutional — runtime changes require Part IV full pipeline

Section 2.5: The Doctrine Position

USR occupies a specific position in the constitutional doctrine:

Doctrine PrincipleUSR Position
Constitution before architectureUSR's axioms (RA1-RA5) are constitutional law, derived from USCP primitives
Architecture before implementationThe six contracts (C1-C6) define the architecture; Rust/WIT are implementation
Implementation before optimizationv0.1.0 proved execution is possible; this spec makes it normative
USR defines the invariants. Implementations choose the mechanisms.

Section 3: The Constitutional Contract Model

3.1 WIT as Constitutional Law

The WebAssembly Interface Types (WIT) interfaces defined in wit/constitutional.wit are not merely APIs — they are constitutional execution contracts. Their stability is more important than any Rust implementation.

A WIT interface is the execution-level equivalent of a USCP primitive: it defines the irreducible surface area through which constitutional execution occurs.

3.2 The Six Contracts

#ContractQuestion AnsweredInterface
C1IdentityWho is this component?identity
C2ExecutionWhat does it do?execution
C3ConstraintsWhat rules govern it?constraints
C4IsolationWhat can it access?isolation
C5AttestationWhat did it do?attestation
C6OrchestrationHow does it communicate?orchestration

3.3 Contract Completeness

Every contract answers one of the six USCP constitutional questions:

USCP QuestionContractImplementation Module
What is? (Existence)C4 (Isolation) — defines what exists within a component's boundaryisolation.rs
Who/what is it? (Identity)C1 (Identity) — declares component identityidentity.rs
How is it connected? (Relationship)C6 (Orchestration) — manages communication between componentsorchestration.rs
What governs it? (Constraint)C3 (Constraints) — enforces constitutional validation rulesconstraints.rs
How does it change? (Transformation)C2 (Execution) — transforms input to output deterministicallyexecution.rs
How do we know it is valid? (Verification)C5 (Attestation) — proves execution happened as claimedattestation.rs
The contract model maps one-to-one with the USCP primitives. No question is unanswered. No contract is redundant.

Section 4: The Identity Contract (C1)

4.1 Specification

PropertyRequirement
Recordcomponent-id { id, name, layer, version, parents, question }
Operationsdeclare() → component-id, verify() → bool
ID derivationSHA-256(name:layer:version:parents) — deterministic, reproducible

4.2 Identity Invariants

#InvariantStatement
I1Non-empty nameEvery component must have a non-empty human-readable name.
I2Valid layerEvery component must declare a valid constitutional layer (Pre, Uscp, Usc, Science, Expression, Execution, Implementation).
I3Pre-constitutional purityPre-constitutional components cannot have parents — they are the origin.
I4Derivation requirementNon-pre-constitutional components must have at least one parent.
I5Question answeredEvery component must answer a constitutional question.
I6UniquenessNo two components may share the same ID.

4.3 Identity Verification Protocol

A component identity is verified if and only if:

  1. The name is non-empty (I1)
  2. The layer is valid (I2)
  3. Pre-constitutional components have no parents (I3)
  4. Non-pre components have at least one parent (I4)
  5. A constitutional question is answered (I5)
  6. The ID matches the derivation SHA-256(name:layer:version:parents) (deterministic)

Section 5: The Execution Contract (C2)

5.1 Specification

PropertyRequirement
RecordOperation { name, input, component_id }
ResultExecutionResult { operation, input_hash, output, output_hash, timestamp, success, error }
Operationsexecute(operation, input) → result, check_permission(operation) → bool, list_operations() → list
Registered operationsMust be explicitly registered before execution

5.2 Execution Invariants

#InvariantStatement
E1Registration requiredAn operation must be registered before it can be executed. Unregistered operations cause ExecutionError.
E2Deterministic outputFor a given operation name, input, and component, the output is identical across all executions.
E3Input provenanceEvery execution records SHA-256(input) as input_hash.
E4Output provenanceEvery execution records SHA-256(output) as output_hash.
E5Temporal provenanceEvery execution records a UTC ISO 8601 timestamp.
E6Error transparencyFailed executions record the error string and set success = false. The error is never swallowed.

5.3 Determinism Requirement

Determinism (E2) is the hardest and most important invariant. It means:

A runtime that is not deterministic is not constitutionally valid.

5.4 Registered Operations (v0.1.0)

OperationPurposeInputOutput
validate-identityValidate a component identity against constitutional rulesJSON with name, layer, question{ valid, issues }
check-derivationVerify D1-D5 derivation complianceJSON with parent_layer, child_layer{ d1_downward_only, parent_layer, child_layer }
enforce-constraintEnforce a specific constitutional constraintJSON with type, parameters{ enforced, rule }
compute-hashCompute SHA-256 of inputRaw input data{ hash }

Section 6: The Constraints Contract (C3)

6.1 The Six Constitutional Questions

Every claim, component, or operation must answer the six constitutional questions:

#QuestionQuestionRuntime Interpretation
Q1Existence"What is?"Does the claim/component/operation refer to something that exists within the runtime?
Q2Identity"Who/what is it?"Can the entity be uniquely identified by its component ID?
Q3Relationship"How is it connected?"Are the parent-child derivation relationships defined?
Q4Constraint"What governs it?"Are the isolation boundaries and permission constraints explicit?
Q5Transformation"How does it change?"Are the operation's transformation rules defined and deterministic?
Q6Verification"How do we know it is valid?"Can its execution correctness be verified through attestation?

6.2 The Ten Verification Tests

The runtime enforces the Kernel's 10 constitutional tests as execution constraints:

#TestRuntime Enforcement
T1RealityOperations must act on registered, verifiable components
T2OriginEvery execution traces to a declared component identity
T3NecessityEach registered operation must serve a constitutional purpose
T4DerivationComponents must follow D1-D5 derivation rules
T5ConsistencyNo operation may contradict another operation's results
T6VerificationEvery execution is attestable
T7SimplicityEach operation does exactly one constitutional thing
T8SovereigntyNo operation may invoke external systems
T9ReplaceabilityOperation implementations are interface-bounded (WIT)
T10EvolutionOperations can be superseded without destroying attestation chains

6.3 Claim Validation

The constraint engine validates claims against the six questions:

QuestionStructural Requirement
ExistenceClaim must have a non-empty content field
IdentityClaim must have a name or id field
RelationshipClaim must have a type, category, or relationships field
ConstraintClaim must have a constraints or rules field
TransformationClaim must have a transformations field or be marked immutable
VerificationClaim must have a verification or verified field
A claim failing any question is constitutionally invalid and cannot be executed.

6.4 Derivation Rules Enforcement

The constraint engine enforces the five derivation rules from Part II:

#RuleEnforcement
D1Downward onlychild_layer ≥ parent_layer (layer ordinal)
D2No upward mutationArchitectural invariant — enforced by the layer system itself
D3Merge requires justificationAll parent layers must be cited in the derivation
D4Adaptation boundaryComponents at layer ≤ 5 (Execution) are within the constitutional boundary
D5Derivatives composedUCD elements are composed from UCA capabilities, not re-derived from the kernel
D6Platform layers sequentialPlatform layers are sequential — UWA → UCN → UAS → USR → UCA. No parallelism at this level.
D7Applications constitutionally derivedApplications are constitutionally derived — USDS, UCF, and agent apps derive from UCD. They follow the rules.

Section 7: The Isolation Contract (C4)

7.1 Specification

PropertyRequirement
ModelCapability-based security — access is never implicit
RecordCapability { resource, permissions, expires, granted_to, granted_at }
Operationsrequest_capability(resource, permissions) → capability, check_capability(resource, permission) → bool, revoke_capability(resource) → bool

7.2 Governed Resources

ResourceDescription
executionAccess to execute operations
attestationAccess to create attestations
orchestrationAccess to manage lifecycle
identityAccess to identity operations
constraintsAccess to constraint enforcement
storageAccess to persistent state
networkAccess to external communication (reserved — sovereign runtime may not grant this)

7.3 Isolation Invariants

#InvariantStatement
S1Explicit grantA component has no access to any resource unless explicitly granted a capability.
S2Permission specificityA capability grants specific named permissions (e.g., execute, attest), not blanket access.
S3Temporal boundingCapabilities may have an expiration timestamp or be permanent.
S4RevocabilityAny capability may be revoked. Revocation is immediate.
S5No implicit escalationGranting execution on execution does not imply attestation on attestation. Each permission is independent.
S6Governed resources onlyCapabilities may only be requested for the seven governed resources. Unknown resources cause CapabilityNotGranted.

7.4 The Sovereignty Boundary

The network resource is governed but constitutionally restricted. The sovereignty axiom (RA5) means:


Section 8: The Attestation Contract (C5)

8.1 Specification

PropertyRequirement
RecordAttestationRecord { component_id, operation, input_hash, output_hash, timestamp, result, signature }
Operationsattest(record) → record, verify(record) → bool, get_attestation_chain(component_id) → list
SignatureSHA-256("attestation:" + signing_data) where signing_data = "component_id:operation:input_hash:output_hash:timestamp:result"

8.2 Attestation Invariants

#InvariantStatement
A1Post-execution onlyAn attestation may only be created after an execution completes.
A2Input bindingThe attestation records SHA-256(input) — the exact input that was processed.
A3Output bindingThe attestation records SHA-256(output) — the exact output that was produced.
A4Cryptographic bindingThe signature is a hash of all record fields concatenated in canonical order.
A5Chain integrityThe full attestation chain for a runtime must be internally consistent — every record must verify.
A6Append-onlyAttestation records are never modified after creation. New records are appended.

8.3 Attestation Verification Protocol

To verify an attestation record:

  1. Recompute signing_data from the record fields: component_id:operation:input_hash:output_hash:timestamp:result
  2. Recompute signature from "attestation:" + signing_data
  3. Compare the recomputed signature with the stored signature
  4. Verify the record exists in the runtime's attestation chain
If any step fails, the attestation is invalid and returns AttestationFailed.

8.4 Upgrade Path

The v0.1.0 attestation uses SHA-256 as a simplified signature. Production implementations should upgrade to asymmetric cryptography (Ed25519 or similar) through the UCA adapter boundary. The WIT interface is designed to accommodate this — the signature field is a string, not a fixed algorithm.


Section 9: The Orchestration Contract (C6)

9.1 Specification

PropertyRequirement
State machine6 states: Registered → Initialized → Running ↔ Paused → Stopped. Error is a terminal fault state.
Operationsregister, initialize, start, pause, stop, get_state, send_message, get_dependency_graph

9.2 Lifecycle State Machine

┌────────────┐
                  │ Registered │ ← initial state after identity verification
                  └─────┬──────┘
                        ↓
                  ┌────────────┐
                  │Initialized │ ← capabilities granted, constraints loaded
                  └─────┬──────┘
                        ↓
                  ┌────────────┐
            ┌────→│  Running   │ ← executing operations, producing attestations
            │     └──┬─────┬──┘
            │        ↓     ↓
            │  ┌──────┐  ┌─────────┐
            └──│Paused│  │ Stopped │
               └──────┘  └─────────┘

┌────────────┐ │ Error │ ← terminal fault state (unrecoverable) └────────────┘

9.3 Valid Transitions

FromToOperation
Registeredregister()
RegisteredInitializedinitialize()
InitializedRunningstart()
RunningPausedpause()
PausedRunningstart()
RunningStoppedstop()
PausedStoppedstop()
RegisteredErrorRuntime fault
InitializedErrorRuntime fault
RunningErrorRuntime fault
PausedErrorRuntime fault
StoppedterminalNo further transitions

9.4 Orchestration Invariants

#InvariantStatement
O1Sequential initializationA component must be Registered before Initialized, Initialized before Running. No state skipping.
O2Message requires RunningA component may only send or receive messages when in the Running state.
O3No double-stopA Stopped component cannot be stopped again.
O4Dependency graph integrityThe dependency graph reflects the current state of all registered components.
O5Error transparencyError states record which component faulted and why.

Section 10: The Blueprint Model

10.1 Blueprint Structure

A constitutional blueprint is a JSON document describing a component and its intended execution:

{
  "name": "component-name",
  "id": "optional-explicit-id",
  "layer": "impl",
  "operation": "validate-identity",
  "input": "{...}",
  "parents": ["parent-component-id"]
}

10.2 Blueprint Validation Rules

#RuleStatement
B1Name requiredThe name field must be present and non-empty.
B2Layer requiredThe layer field must be present and must name a valid constitutional layer.
B3Layer validityThe layer must resolve to one of: pre, uscp, usc, science, expression, execution, impl/implementation.
B4Valid JSONThe blueprint must be valid JSON.

10.3 Blueprint Execution Lifecycle

Blueprint (JSON) → Validate → Register Identity → Register Orchestration
  → Request Capabilities → Initialize → Start → Execute Operation
  → Attest Result → Return

Every step is constitutional. If any step fails, the execution returns a ConstitutionalError and the runtime remains consistent.


Section 11: The Constitutional Error Model

11.1 Error Taxonomy

ErrorCategoryTrigger
IdentityNotDeclaredIdentityComponent has no name, no question, or is already registered
ConstraintViolationConstraintsD1-D5 violation, layer ordering violation, question unanswered
CapabilityNotGrantedIsolationResource not governed, capability not granted, capability expired
AttestationFailedAttestationSignature mismatch, record not in chain
OrchestrationErrorOrchestrationInvalid state transition, component not found, component in error state
ExecutionErrorExecutionOperation not registered, unknown operation
BlueprintInvalidBlueprintMissing required field, invalid layer, invalid JSON

11.2 Error Properties

#PropertyStatement
EP1TransparentEvery error carries a human-readable message explaining the failure.
EP2ClassifiedEvery error belongs to exactly one contract category.
EP3Non-destructiveErrors do not corrupt runtime state. The runtime remains consistent after any error.
EP4TraceableErrors reference the specific invariant or rule that was violated.

Section 12: Runtime Composition

12.1 The Six Engines

The USR runtime is composed of six engines, each implementing one contract:

EngineContractImplementation
IdentityRegistryC1 (Identity)Maintains the registry of all declared component identities
ExecutionEngineC2 (Execution)Executes registered operations deterministically
ConstraintEngineC3 (Constraints)Enforces the six questions, ten tests, and five derivation rules
IsolationEngineC4 (Isolation)Manages capability grants, checks, and revocations
AttestationEngineC5 (Attestation)Creates and verifies cryptographic provenance records
OrchestrationEngineC6 (Orchestration)Manages component lifecycle state and inter-component messages

12.2 Runtime Initialization

A new USR runtime initializes with:

  1. Empty identity registry
  2. Four registered operations: validate-identity, check-derivation, enforce-constraint, compute-hash
  3. Empty constraint validator
  4. Empty capability store
  5. Empty attestation chain
  6. Empty orchestration state

12.3 Runtime Verification

The runtime provides a verify() method that checks global consistency:

  1. identity.verify_all() — all registered components pass identity verification and D1 layer ordering
  2. isolation.verify_all() — all granted capabilities are non-expired
  3. attestation.verify_chain() — every attestation record verifies cryptographically
  4. orchestration.verify_all() — no component is in an Error state
If any check fails, the runtime is not constitutionally consistent and the error identifies which invariant was violated.

Section 13: Conformance Criteria

13.1 Runtime Conformance Tests

An implementation conforms to the USR/CoreFab Formal Specification if and only if:

#TestPass CriterionSeverity
USR-01Identity RegistrationComponents are registered with all six component-id fields. Registration verifies invariants I1-I6.Critical
USR-02Identity UniquenessNo two components share the same ID. Duplicate registration is rejected.Critical
USR-03D1 EnforcementParent layers have equal or lower ordinal than child layers. Violation produces ConstraintViolation.Critical
USR-04Operation RegistrationOperations must be registered before execution. Unregistered operations produce ExecutionError.Critical
USR-05Deterministic ExecutionFor identical (operation, input, component_id), the output is identical across all executions within the same runtime version.Critical
USR-06Execution ProvenanceEvery execution produces input_hash (SHA-256 of input) and output_hash (SHA-256 of output).Critical
USR-07Capability EnforcementNo component accesses a resource without an explicit, non-expired capability grant.Critical
USR-08Capability RevocationRevoked capabilities are immediately effective. Subsequent access checks return false.Major
USR-09Attestation IntegrityEvery attestation record verifies (signature matches recomputed value).Critical
USR-10Chain ConsistencyThe full attestation chain passes verify_chain(). No record in the chain has a broken signature.Critical
USR-11Lifecycle ComplianceComponents follow the state machine: Registered → Initialized → Running ↔ Paused → Stopped. No invalid transitions.Critical
USR-12Message IsolationMessages may only be sent between Running-state components.Major
USR-13Blueprint ValidationBlueprints must have name and layer. Invalid blueprints are rejected before execution.Critical
USR-14Error TransparencyEvery error carries a classified, human-readable message. No silent failures.Major
USR-15Runtime Self-Verificationruntime.verify() checks identity, isolation, attestation, and orchestration consistency.Critical

13.2 Conformance Levels

LevelNameRequirementsCertification
R0Non-ConformantFails any Critical test.None. May not claim USR conformance.
R1Core ConformantPasses all Critical tests + ≤2 Major failures.May operate as a constitutional runtime.
R2Fully ConformantPasses all 15 tests (15/15).May enter the canonical reference. Eligible for standardization.

13.3 Conformance Protocol

  1. Declarate scope: Implementation declares which contracts (C1-C6) it implements.
  2. Apply tests: Run all applicable tests (USR-01 through USR-15).
  3. Record evidence: For each test, record what was checked, what was found, pass/fail.
  4. Determine level: Count Critical and Major failures. Apply level rules.
  5. Archive: Conformance Record stored as a constitutional artifact.

Section 14: Self-Verification

14.1 Against the 10 Constitutional Tests

USR/CoreFab Formal Specification v0.1.0 verified against the Kernel's 10 constitutional tests:

#TestResultEvidence
1Reality✅ PASSThe specification addresses the real need: formal rules for constitutional execution. Every section maps to a demonstrated implementation capability.
2Origin✅ PASSDerived from UVS (Layer 4) and transitively the entire stack. All axioms trace to USCP primitives (Section 1.1). The six contracts map one-to-one to the six constitutional questions (Section 3.3).
3Necessity✅ PASSWithout USR/CoreFab, constitutional operations cannot execute with sovereignty guarantees. The kernel has no mechanism for deterministic, provenance-tracked execution without this specification.
4Derivation✅ PASSFollows D1 (derived from UVS, the layer below). Follows D3 (derives from UVS which merges URS). No upward mutations.
5Consistency✅ PASSNo axiom contradicts another. No invariant conflicts with a different invariant. The six contracts are orthogonal. The lifecycle state machine has no unreachable states.
6Verification✅ PASSEvery axiom can be verified by tracing to USCP primitives. The 15 conformance tests provide a concrete verification protocol for implementations.
7Simplicity✅ PASSFive axioms, six contracts, fifteen conformance tests. Each element exists because removing it creates a constitutional gap. No redundant abstractions.
8Sovereignty✅ PASSThe runtime introduces no external dependencies. Cryptographic primitives (SHA-256) are the only algorithmic requirement, and they serve sovereignty (attestation), not external coupling.
9Replaceability✅ PASSThe WIT contracts are technology-independent. Rust, C, Go, or any language implementing the WIT interfaces produces a conforming runtime. SHA-256 can be upgraded to Ed25519 through the attestation contract.
10Evolution✅ PASSThe specification can be amended through Part IV governance. New operations can be registered. New capabilities can be governed. The WIT interface is the stability boundary; implementations evolve freely.
Result: 10/10 PASS. USR/CoreFab Formal Specification v0.1.0 is constitutionally sound and enters the constitutional record.

Section 15: Relationship to v0.1.0 Implementation

This formal specification captures what v0.1.0 demonstrated and makes it normative:

Implementation (demonstrated)Specification (normative)Status
identity.rs — ComponentId, IdentityRegistrySection 4: Identity ContractFormalized
execution.rs — Operation, ExecutionResult, 4 operationsSection 5: Execution ContractFormalized
constraints.rs — 6 questions, 10 tests, D1-D5 enforcementSection 6: Constraints ContractFormalized
isolation.rs — Capability, 7 governed resourcesSection 7: Isolation ContractFormalized
attestation.rs — AttestationRecord, chain verificationSection 8: Attestation ContractFormalized
orchestration.rs — LifecycleState, Message, state machineSection 9: Orchestration ContractFormalized
runtime.rs — UsrRuntime composition, blueprint executionSection 12: Runtime CompositionFormalized
main.rs — CLI interface (version, capabilities, validate, execute, verify)Section 10: Blueprint ModelFormalized
constitutional.wit — 6 WIT interfaces, world declarationSection 3: Contract ModelFormalized
D1-D5 derivation checks in execution.rsSection 6.4: Derivation RulesFormalized
What the specification adds beyond v0.1.0 implementation:
  1. Normative axioms — the five runtime axioms (RA1-RA5) are constitutional law, not code comments
  2. Invariant completeness — 31 named invariants across all contracts (I1-I6, E1-E6, S1-S6, A1-A6, O1-O5, B1-B4, EP1-EP4)
  3. Conformance tests — 15 formalized tests (USR-01 through USR-15) with severity levels
  4. Determinism requirement — formalized as the hardest invariant (Section 5.3), not just a code pattern
  5. Sovereignty boundary — the network resource restriction (Section 7.4) is constitutional law
  6. Error model — classified, transparent, non-destructive, traceable (Section 11)

Appendix: Implementation Module Reference

ModuleFileLinesPurpose
lib.rsUSR-CoreFab/src/lib.rs116Root: ConstitutionalLayer, Primitive, error types, sha256, timestamp
identity.rsUSR-CoreFab/src/identity.rs139ComponentId, IdentityRegistry, verification
execution.rsUSR-CoreFab/src/execution.rs161Operation, ExecutionResult, deterministic execution
constraints.rsUSR-CoreFab/src/constraints.rs1966 questions, 10 tests, D1-D5 enforcement
isolation.rsUSR-CoreFab/src/isolation.rs127Capability, IsolationEngine, resource governance
attestation.rsUSR-CoreFab/src/attestation.rs121AttestationRecord, chain, verification
orchestration.rsUSR-CoreFab/src/orchestration.rs213LifecycleState, Message, state machine, dependency graph
runtime.rsUSR-CoreFab/src/runtime.rs204UsrRuntime composition, blueprint execution, verify
main.rsUSR-CoreFab/src/main.rs81CLI interface
constitutional.witUSR-CoreFab/wit/constitutional.wit179WIT constitutional contracts
Total~1,537

Originator Attribution

This USR/CoreFab Formal Specification v0.1.0 is originated, created, and concept-pioneered by:

Originator: Sir Collins — Creator and Concept Pioneer of ICore (access1@tutamail.com) Date of origination: July 16, 2026 Scope: All axioms, contract models, invariants, execution semantics, lifecycle models, error models, conformance criteria, and verification protocols presented in this specification.

This attribution is a constitutional artifact. It establishes provenance — the lowest and most fundamental layer of trust.


USR/CoreFab is the Constitution's muscle. This specification is the Constitution's promise that the muscle will only move what the Constitution authorizes — deterministically, provably, and sovereignly.