Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FormaSL — Remediation Phase 3 H1 Computational Regime Closure Contract

Status: STABLE / NORMATIVE PHASE-3 IMPLEMENTATION-HANDOFF CONTRACT — CURRENT
Authority: REMEDIATION-CANDIDATE PHASE-3 COMPUTATIONAL CAPABILITY / CONFORMANCE OWNER
Stage: CONTRACT MATERIALIZATION
Acceptance horizon: FormaSL remediation candidate — Phase 3
Date: 2026-09-10
Parent product-support owner: REMEDIATION-CANDIDATE-PRODUCT-SUPPORT-AMENDMENT.md
Parent implementation/conformance owner: IMPLEMENTATION-CONFORMANCE-CONTRACT.md
Computational regime owner: COMPUTATIONAL-REGIME-BOUNDARIES.md
Semantic handoff owner: EXECUTABLE-SEMANTIC-INTERFACE-CONTRACT.md
Method authority: DESIGN-METHOD.md
Semantic authorities: ../foundations/FORMASL-INTENT.md, ../foundations/FORMAL-WORLD-MODEL.md, ../foundations/SEMANTIC-INVARIANTS.md, ../foundations/SEMANTIC-CONTINUITY.md

This contract materializes the Phase-3 design selected after verified closure of Remediation Phase 2. It defines the implementation/conformance boundary for the next remediation campaign. It does not authorize implementation. RM-04 through RM-07 begin only after a separate explicit PROJECT_OWNER campaign authorization.


1. Jurisdiction

Phase 3 owns the executable semantic adequacy of the four H1 computational regimes owned by CB-L3:

QUERY
ANALYSIS / PREDICTION
REASONING
SEMANTIC TRANSFORMATION

These are semantic computational jurisdictions, not a requirement for four primitive keywords, four crates, four physical engines or mutually exclusive source constructs.

REGIME != ENGINE
REGIME != KEYWORD
REGIME != PROVIDER
REGIME != RUNTIME SCHEDULER

Phase 3 answers one cohesive question:

For every mandatory H1 computational capability/profile, does the remediation candidate possess a concrete, falsifiable computational route from semantically intact inputs and exact contracts/bases to owner-permitted typed outcomes, preserving every material standing, identity, dependence, witness/lineage, completion and resource distinction without payload wrapping, provider assertion, physical-order semantics or false completion?

Phase 3 is not public product integration. It closes computational capability behind the semantic boundary before the later public facade/machine/CLI campaign.

PHASE-3 COMPUTATIONAL CLOSURE
!= PUBLIC `run` WHOLE-H1 CLOSURE
!= MACHINE-SCHEMA SUCCESSOR
!= CLI CLOSURE
!= GENERIC COMPOSITION EXECUTION
!= RUNTIME SCHEDULING
!= LIFECYCLE / GOVERNANCE / SCENARIO CLOSURE
!= RELEASE REACCREDITATION

2. Explicit boundary: Scenario is not Phase 3

COMPUTATIONAL-REGIME-BOUNDARIES.md owns exactly the four computational regimes above. Hypothetical/Scenario semantics belong to the lifecycle/world-context plane and remain outside this campaign.

COMPUTE OVER A BASIS
!= CONSTRUCT / FORK / EVOLVE A HYPOTHETICAL WORLD CONTEXT

Scenario/Hypothetical execution, Validation, Governance, Revision, Source Evolution, Execution Request and Observation Acquisition route to the later lifecycle/operational phase unless a Phase-3 computation consumes an already-admitted typed result merely to test its own input/admission boundary.

Cross-regime fixtures may use typed carriers from other planes as inputs. They do not authorize implementation of those planes.


3. Campaign structure and FIOP discipline

Phase 3 is one campaign composed of four sequential semantic macro-WPs:

RM-04 — QUERY H1 COMPUTATIONAL CLOSURE
  -> RM-05 — REASONING H1 R1/R2/R3 CLOSURE
      -> RM-06 — TRANSFORMATION H1 T1/T2 CLOSURE
          -> RM-07 — ANALYSIS / PREDICTION H1 REFERENCE CAPABILITY CLOSURE
              -> PHASE_3_COMPLETE

Exactly one WP may be active at a time.

The owner may later authorize the whole campaign with an R2 ceiling. Under such authorization the executor may continue automatically RM-04 -> RM-05 -> RM-06 -> RM-07 after each ordinary R0-R2 terminal closure, provided authority remains sufficient. Any R3 ambiguity stops campaign progression for owner decision.

Session/API boundaries, local compile failures, helper refactors, individual findings and test count do not create sub-WPs.

Each WP must independently pass the FIOP four-NO closure audit. After RM-07, Phase 3 has a second campaign-level four-NO audit so that four locally green regimes cannot hide a broken cross-regime boundary.


4. Shared Phase-3 invariant

For every mandatory computational application/profile in scope:

EXACT SEMANTIC INPUTS
+ EXACT CONTRACT / PROFILE REVISION
+ EXACT INTERPRETATION / PREMISE / TRANSFORMATION / ANALYSIS BASIS
+ REQUIRED COMPLETION / RESOURCE / ADMISSION CONDITIONS
-> CONCRETE COMPUTATION
-> TYPED OWNER-PERMITTED OUTCOME

The following are insufficient:

crate exists
unit tests exist
carrier can store a payload
caller supplied the expected SemanticOutcome
provider says it supports capability X
physical iterator happened to produce expected order
computation terminated

Therefore:

CARRIER ADEQUACY != COMPUTATIONAL ADEQUACY
TERMINATION != SEMANTIC COMPLETION
PROVIDER SUCCESS != SEMANTIC STANDING
EXPECTED FIXTURE VALUE != INDEPENDENT ORACLE

A computation may be delegated to a conforming provider under the product-support owner, but provider conformance itself must be falsifiable against FormaSL-owned semantics.


Part I — RM-04 Query H1 Computational Closure

5. RM-04 objective

RM-04 closes the mandatory functional floor of QUERY-CAPABILITY-CONTRACT.md as an actual computational capability over bounded reference domains.

The floor includes, where required by the current owner:

typed pattern matching
solution bindings / occurrence witnesses
conjunction / joins
alternatives
authored optional / outer matching
correlated EXISTS / NOT EXISTS
presence-aware partial bindings
pure filters / definedness
projection / computed expressions
nested / reusable queries
aggregation / grouping / post-aggregation filtering
distinct with lineage preservation
explicit ordering
offset / slice / limit
AnyK / top-k with declared tie and completion semantics
multi-hop and variable-length / recursive traversal
compositional path expressions
bounded and admissible unbounded repetition
empty-path semantics where contracted
path/group bindings and path-local predicates
reuse policies / shortest selectors
basis-relative absence tests
QueryGraphView and re-queryability
native semantic-coordinate querying

Different syntax or implementation strategy does not create a capability gap when the same contracted semantics are demonstrably present.

6. RM-04 mandatory repairs and hostile classes

RM-04 must at minimum reconcile the Query-owned portions of:

SRA-H12 — query variable overwrite / binding coherence
SRA-H13 — ordering / unbound / direction / tie semantics

Sibling defects under the same Query invariants enter conditional scope when leaving them unresolved would falsify Query H1 closure.

Required hostile classes include:

shared-variable incompatible bind
optional absence collapsed to semantic NULL/Unknown
NO_MATCH_COMPLETE claimed without closure
EXISTENCE_UNRESOLVED treated as completed absence
aggregate prefix treated as complete aggregate
physical iteration order treated as query order
RejectUnbound ignored
direction ignored
tie policy ignored
SEEN_K_RESULTS treated as TOP_K_COMPLETE
path reuse decided from physical/storage identity
unbounded traversal completed without admitted completion basis
witness/multiplicity lineage discarded by distinct

7. RM-04 completion

RM-04 may close only when the mandatory Query H1 floor has a concrete evaluator/reference route with discriminating evidence for denotation, binding, witness, lineage, definedness, path semantics and completion.

A small-domain exhaustive oracle, independently specified evaluator, metamorphic/property oracle or another bug-diverse reference mechanism is required for the classes where the production implementation could otherwise certify itself.

RM-04 CLOSED
-/-> PUBLIC `formasl run` QUERY H1 CLOSED

Public facade routing defects such as historical SRA-H07 remain assigned to the later public-integration phase.


Part II — RM-05 Reasoning H1 R1/R2/R3 Closure

8. RM-05 objective

RM-05 closes the owner-ratified mandatory reasoning reference set:

R1 — PositiveSafeRules.v1
R2 — StratifiedRules.v1
R3 — WardedExistentialRules.v1

The implementation must preserve the distinction between candidate input availability and the exact PremiseAdmissible relation required by the Reasoning owner.

InputAccepts != PremiseAdmissible
QueryFound -/-> PremiseAdmissible
GraphContains -/-> InReasoningPremiseWorld

The executable path must not turn a caller-side insertion method into proof that premise admissibility has been established.

9. RM-05 mandatory semantic obligations

R1 must preserve at least:

positive typed recursion
range restriction
finite admitted domain
least-fixpoint completion
non-self-grounding
GroundedDerivationWitness capability on the bounded reference slice

R2 must preserve at least:

stratified NAF only over complete closed lower strata
signed conflict-preserving consequences
typed pure constraints / computed values
COUNT / SUM / MIN / MAX aggregates
aggregate multiplicity / empty-group semantics
stratified fixpoint completion

R3 must preserve at least:

warded existential reasoning
anonymous local model witnesses
shared existential correlation
named/admitted answer-domain discipline
certain substitutions
goal-relative completion

10. RM-05 mandatory repairs and resource channels

RM-05 must at minimum reconcile:

SRA-H14  — R2 consequences lacking required derivation capability
SRA-H15a — R2 aggregates ignored by evaluation
SRA-H15b — gas exhaustion conflated with witness-budget exhaustion

The resource/result surface must keep distinct every materially distinct terminal/non-terminal class. In particular:

OUT_OF_GAS != FIXPOINT
OUT_OF_GAS != NO_PROOF
WITNESS_BUDGET_EXHAUSTED != GAS_EXHAUSTED
INCOMPLETE LOWER STRATUM -/-> SUCCESSFUL NAF

Historical SRA-H08 — wrong/omitted theory/application selection in the public run bridge — remains a later public-integration defect after the reasoning engines themselves are conformant.

11. RM-05 completion

RM-05 requires bug-diverse evidence for formation, premise admission, R1 fixpoint, R2 stratification/NAF/aggregate semantics and R3 wardedness/witness/certain-answer semantics.

Relevant formal/correspondence rows include FO-L3-04..08 and FO-REASON-01..08. Formal evidence never substitutes for concrete Rust correspondence, and production evaluator output never substitutes for an independent semantic oracle where one is required.


Part III — RM-06 Transformation H1 T1/T2 Closure

12. RM-06 objective

RM-06 closes the mandatory Transformation reference profiles:

T1 — StructuralMapping.v1
T2 — GraphMLProjection.v1

Transformation must perform semantic source-to-target construction. Merely accepting a caller-computed payload and wrapping it in TransformedArtifact is carrier evidence, not computational closure.

CALLER-SUPPLIED FINISHED PAYLOAD
-> RESULT WRAPPER
!=
SOURCE SEMANTIC BASIS
+ TransformationContract
-> TARGET CONSTRUCTION

13. T1 mandatory slice

The bounded T1 reference implementation must demonstrate, where required by the owner:

exact finite source domains
Query-driven source matching
PER_MATCH / PER_DISTINCT_SOURCE_KEY / PER_GROUP behavior
declarative TargetContributions
one-to-one / one-to-many / many-to-one construction
N-ary role-aware target construction
TargetIdentityNamespace and target-local identities
cross-rule TargetReferenceKeys
order-independent finalization
collision / coalescence / explicit merge semantics
typed pure value and collection construction
coverage / preservation / explicit-loss dispositions
fine-grained direct/transitive transformation dependence
well-formed / well-typed target finalization

Physical input order must not define T1 semantics where the profile is declarative.

14. T2 mandatory slice

The bounded T2 reference implementation must produce a real semantic graph/subgraph -> ML-ready TransformedArtifact with at least the current reference obligations for:

subject/reference correspondence
SemanticFeatureIdentity
FeatureCoordinateIdentity
feature schema / order / value domains
missing / unknown / conflict handling
role / N-ary topology representation
normalization / window / weight semantics where present
fine-grained transformation dependence
coverage / loss profile

Preserve:

MLReadyArtifact != PhysicalTensorBuffer
P3Lowering != SemanticRetransformation

A downstream Analysis provider accepting explicit T2 artifact T may lower T, but may not ignore it and silently recompute a different semantic feature/topology transformation.

15. RM-06 completion

T1 and T2 must each have positive, negative and permutation/metamorphic evidence sufficient to falsify payload-wrapper implementations, source mutation, unauthorized identity promotion, lineage loss, accidental-loss laundering and provider-local retransformation.

Relevant formal/correspondence rows include FO-L3-13..15 and any directly triggered FO-L2/FO-L5 preservation rows. Generic CB-L5 orchestration is not implemented in this WP.


Part IV — RM-07 Analysis / Prediction H1 Reference Capability Closure

16. RM-07 objective

RM-07 closes a bounded provider-independent executable slice of the owner-ratified H1 Analysis / Prediction capability.

The current semantic carrier/firewall layer is not by itself sufficient. Analysis standing must arise from satisfaction of an admitted AnalysisContract, not from a caller-supplied SemanticOutcome/payload or a provider capability label.

CALLER SUPPLIED RESULT
-/-> AnalysisStanding

ProviderSupports("pagerank")
-/-> Supports(Std.Analysis.PageRank.v1 invocation)

This closes the computational substance behind historical SRA-H19.

17. Mandatory structural/native reference slice

The portable bounded reference route must include the currently ratified structural/native contracts sufficient to exercise the H1 families, including:

Std.Analysis.PageRank.v1
Std.Analysis.WeakComponents.v1
Std.Analysis.LocalClusteringCoefficient.v1
Std.Analysis.LabelPropagationCommunity.v1
Std.Analysis.JaccardNeighborhoodSimilarity.v1
Std.Analysis.SemanticMotifConductance.v1

SemanticMotifConductance.v1 remains the native higher-order witness: its meaning must depend on typed role-incidence / Query witness semantics rather than an ungoverned binary physical graph flattening.

18. Mandatory graph-ML lifecycle slice

The bounded CPU-portable reference path must exercise the ratified graph-ML lifecycle sufficient to demonstrate:

model specification
learning-target admission
learning visibility
training / fitting
TrainingOccurrence distinction
immutable LearnedModelArtifact
application / prediction
embedding semantics where exposed
model evaluation
completion / stochastic / reproducibility contracts

The current reference contract set includes GraphSAGE-mean and the ratified classification/regression/link/graph heads, loss/init/optimizer contracts and evaluation metrics. The reference implementation is a conformance witness, not a production performance engine and not an implementation-library ceiling.

19. Provider conformance

Analysis must own a falsifiable AnalysisResultConformanceRelation for each exercised contract class. A conforming provider may later substitute for the reference engine only when exact invocation semantics, basis, input interpretation, guarantee class and result conformance are preserved.

Preserve:

AnalysisContract != AnalysisProvider
ProviderFrameworkDefault != AnalysisSemantics
ExecutionDevice != SemanticKind
Approximate -/-> Exact
ProviderExecutionSuccess -/-> AnalysisStanding

The mandatory reference capability slice must run on general-purpose CPU; accelerator or distributed realizations remain optional provider realizations.

20. RM-07 completion

RM-07 requires known-answer mathematical fixtures, metamorphic properties and/or cross-implementation/provider-differential evidence appropriate to the exercised reference contracts. A wrapper that stores caller-generated results cannot pass.

Relevant formal/correspondence rows include FO-L3-10..12 plus the standing-introduction and cross-regime rows actually triggered by the implementation.


Part V — Cross-regime campaign closure

21. Dependency order

The campaign order is semantic, not arbitrary:

RM-04 Query
  -> RM-05 Reasoning
  -> RM-06 Transformation
  -> RM-07 Analysis

Query closes first because T1 source matching and the native Analysis witness depend on Query semantics.

Transformation precedes Analysis because T2 creates the semantic ML-ready artifact that Analysis must be able to consume without shadow retransformation.

Reasoning may be implemented before those consumers are all present, but Phase-3 terminal closure must exercise typed outputs from the other regimes against Reasoning’s exact premise-admission boundary.

22. Required cross-regime witnesses

Before PHASE_3_COMPLETE, at least the following semantic boundary classes must be exercised with exact bases/contracts:

Query -> T1 StructuralMapping
QueryGraphView -> T2 GraphMLProjection -> Analysis
QueryAnswer -> PremiseAdmissible? -> Reasoning
TransformedArtifact -> PremiseAdmissible? -> Reasoning
AnalysisResult -> PremiseAdmissible? -> Reasoning

These are direct boundary/conformance witnesses, not a generic Composition runtime.

The campaign must preserve the regime non-collapses:

QueryAnswer != SemanticConsequence
AnalysisResult != SemanticConsequence
Prediction != Truth
TransformedArtifact != QueryAnswer
Computation != Assertion
SemanticConsequence != Claim

No cross-regime test may obtain PASS by converting one result category into another through payload shape or host-language type coincidence.


23. Finding routing after Phase-3 materialization

Historical findings remain evidence/regression inputs; they do not define the architecture.

FindingCurrent routePhase-3 disposition
SRA-H12RM-04 QueryIN SCOPE
SRA-H13RM-04 QueryIN SCOPE
SRA-H14RM-05 ReasoningIN SCOPE
SRA-H15aRM-05 ReasoningIN SCOPE
SRA-H15bRM-05 ReasoningIN SCOPE
SRA-H19RM-07 AnalysisIN SCOPE
SRA-H07later public integrationOUT OF PHASE 3
SRA-H08later public integrationOUT OF PHASE 3
SRA-N01later public facade/CLI integrationOUT OF PHASE 3
SRA-N02later public aggregate-run integrationOUT OF PHASE 3
SRA-H10later inspect/machine/public integrationOUT OF PHASE 3
SRA-H16later realization/public integrationOUT OF PHASE 3
SRA-H18later planner/realization integrationOUT OF PHASE 3
SRA-H20later assurance/reaccreditationOUT OF PHASE 3

Any newly discovered sibling defect belongs to a Phase-3 WP only when current authority already determines the correct behavior and the defect falsifies that WP’s computational completion invariant. Otherwise route it without opportunistic scope expansion.


24. Evidence discipline

For every material capability class, evidence must be strong enough to distinguish at least:

correct computation
from
correctly shaped result carrier

semantic completion
from
runtime termination

owner-defined semantics
from
provider/framework defaults

independent result evidence
from
production implementation self-certification

Appropriate evidence may include:

small-model exhaustive oracle
independently specified evaluator
known-answer mathematical fixtures
metamorphic properties
permutation invariance
cross-implementation/provider differential checks
hostile mutation / negative fixtures
representation-invariance checks

The exact evidence class is capability-specific. One universal oracle is not required.

A green workspace suite is necessary when applicable but never sufficient for semantic closure.


25. Formalization and correspondence

Phase 3 does not open a new whole-language formalization campaign by default.

The executor must inspect the current FORMALIZATION-OBLIGATION-LEDGER.md and the exact correspondence owners touched by each WP. Material Phase-3 rows include, as applicable:

FO-L3-01..15
FO-REASON-01..08

Required discipline:

FORMAL PROPERTY
!= RUST REPRESENTATION CORRESPONDENCE
!= EXECUTABLE BEHAVIOR

If an implementation change invalidates evidence currently relied upon by a formal/correspondence claim, the corresponding gate becomes mandatory before closure. Do not invent a new theorem merely because a Rust defect exists; derive proof obligations from active authority.


26. Forbidden scope for Phase 3

Absent a separately activated conditional dependency required to preserve an in-scope computational invariant, Phase 3 does not own:

Scenario / Hypothetical lifecycle implementation
Validation / Conformance engine closure
Admission / Authorization / Decision engine closure
Semantic Revision / Source Evolution closure
Execution Request / Observation bridge closure
CB-L5 generic composition runtime
runtime planner / scheduler product closure
public `run --for` realization integration
machine schema successor
CLI exit/output closure
distribution / packaging
release publication
performance/scalability production optimization

No Phase-3 WP may rewrite a higher semantic owner to make current implementation easier.


27. Per-WP gates

Every RM-04..RM-07 WP must define, then satisfy after its final material change:

  1. authority-sufficiency gate;
  2. targeted formation/static gate where applicable;
  3. positive mandatory-profile capability fixtures;
  4. hostile/negative discriminators;
  5. bug-diverse oracle/property evidence;
  6. standing/identity/dependence/completion/resource preservation checks;
  7. applicable formal/correspondence revalidation;
  8. affected examples/reference corpus regression checks;
  9. workspace quality/tests required by repository instructions;
  10. FIOP four-NO closure audit.

A WP is not terminal merely because the historical reproducer that named a bug flips green.


28. Campaign-level closure gate

After RM-07 closes, Phase 3 must independently answer:

Q1. Any known CB-L3 mandatory H1 capability still without a concrete conforming computational route? NO
Q2. Any required cross-regime standing/admission/dependence/completion witness unverified? NO
Q3. Any triggered conditional scope unresolved or ungated? NO
Q4. Any proposed residual risk that, if true, would falsify computational-regime closure? NO

Only four NO answers permit PHASE_3_COMPLETE.


29. Terminal contract

A valid Phase-3 terminal state has this meaning:

PHASE_3 = COMPLETE

RM-04 QUERY_H1
= VERIFIED / CLOSED

RM-05 REASONING_H1_R1_R2_R3
= VERIFIED / CLOSED

RM-06 TRANSFORMATION_H1_T1_T2
= VERIFIED / CLOSED

RM-07 ANALYSIS_H1_REFERENCE_CAPABILITY
= VERIFIED / CLOSED

CB_L3_COMPUTATIONAL_CAPABILITY
= VERIFIED

QUERY_H1_FLOOR
= VERIFIED

REASONING_R1
= VERIFIED
REASONING_R2
= VERIFIED
REASONING_R3
= VERIFIED

TRANSFORMATION_T1
= VERIFIED
TRANSFORMATION_T2
= VERIFIED

ANALYSIS_PORTABLE_H1_REFERENCE_SLICE
= VERIFIED

CROSS_REGIME_SEMANTIC_FIREWALLS
= VERIFIED

It does not imply:

PUBLIC_RUN_FULL_H1 = VERIFIED
MACHINE_SCHEMA_SUCCESSOR = VERIFIED
GENERIC_PROVIDER_REALIZATION = VERIFIED
COMPOSITION_CB_L5 = VERIFIED
SCENARIO / GOVERNANCE / REVISION / EFFECTUATION = VERIFIED
RELEASE_REACCREDITED = YES
PUBLICATION_AUTHORIZED = YES

30. Current authorization state

Materializing this contract does not start the campaign.

PHASE_1 = VERIFIED / CLOSED
PHASE_2 = VERIFIED / CLOSED
RM-03 = VERIFIED / CLOSED

PHASE_3_CONTRACT = MATERIALIZED / STABLE
PHASE_3_CAMPAIGN = NOT_STARTED / NOT_AUTHORIZED
RM-04 = NOT_STARTED / NOT_AUTHORIZED
RM-05 = NOT_STARTED / NOT_AUTHORIZED
RM-06 = NOT_STARTED / NOT_AUTHORIZED
RM-07 = NOT_STARTED / NOT_AUTHORIZED

PUBLICATION = NOT_AUTHORIZED
FUTURE PUSHES = NOT GENERALLY AUTHORIZED

A separate explicit PROJECT_OWNER instruction is required to authorize the Phase-3 campaign and its R2 execution ceiling.