FormaSL — Executable Semantic Interface Contract
Status: STABLE
Authority: NORMATIVE DOWNSTREAM DESIGN CONTRACT — CB-L5 / P2B
Acceptance horizon: V2-WHOLE-LANGUAGE-H1
Parent progression owner: WHOLE-LANGUAGE-ROADMAP.md
Parent project-state owner: ../FORMASL.md
Depends on: ../foundations/FORMASL-INTENT.md, ../foundations/FORMAL-WORLD-MODEL.md, ../foundations/SEMANTIC-INVARIANTS.md, ../foundations/SEMANTIC-CONTINUITY.md, ARCHITECTURE.md, LANGUAGE-DEFINITION-FOUNDATIONS.md, SITUATED-RESULT-CONTRACT.md, COMPUTATIONAL-REGIME-BOUNDARIES.md, SEMANTIC-LIFECYCLE-TRANSITIONS.md
Date: 2026-08-22
Role: close CB-L5 — INTEGRATED COMPOSITION / SEMANTIC CONTINUITY, close P2B C2/C5, and freeze the complete semantic interface that P3 executable-language architecture must preserve without choosing P3 representation, planner, runtime, provider, storage or implementation technology.
1. Jurisdiction
This contract owns one terminal P2B question:
How do the locally closed H1 language semantics compose as one language definition, and what complete semantic information must cross into P3 so executable architecture can realize that language without inventing meaning?
It closes:
C2 — HETEROGENEOUS SEMANTIC COMPOSITION
C5 — WHOLE-LANGUAGE SEMANTIC CONTINUITY
P2B — INTEGRATED LANGUAGE-DEFINITION AUDIT
EXECUTABLE SEMANTIC INTERFACE CONTRACT
It does not close:
final concrete surface grammar
AST / IR representation
planner / runtime DAG representation
.fsp grammar or provider-binding representation
runtime task/event architecture
provider protocol
physical cache / memoization
stream transport
transaction / isolation mechanism
source-history storage
proof/certificate representation
implementation technology
Therefore:
EXECUTABLE SEMANTIC INTERFACE CONTRACT
!= EXECUTABLE LANGUAGE ARCHITECTURE
!= IMPLEMENTATION / CONFORMANCE CONTRACT
!= RUNTIME MODEL
P3 is free to choose executable representations only inside the constraints below.
2. Governing whole-language laws
The local bundle contracts remain authoritative for their semantic jurisdictions. This contract does not reinterpret them for composition convenience.
At the integrated boundary preserve at least:
Claim != Truth != Assessment != Observation
Computation != Assertion
GraphMembership != Truth
Producer != Issuer
Executor != Authority
Validation != Conformance != Admission != Authorization
Decision != Execution
ExecutionSuccess != ExternalEffectOccurred
Occurrence != Effect
Effect != Observation
Observation != Truth
Assumption != Claim
Hypothetical != Baseline
Inheritance != Subtyping
WellTyped != Conformant != Admissible != Authorized
SemanticType != StorageType != RustType
Identity != Identifier != Representation
Provenance != Derivation != Support != Causation != RuntimeTrace
OUT_OF_GAS != FIXPOINT != FALSE != EMPTY != NO_PROOF
RuntimeOutput != AuthoritativeSourceUpdate
StorageWrite != SemanticAuthority
SemanticCompleteness != RunTermination
InputAccepts != PremiseAdmissible
The integrated contract adds:
DeclaredSemanticContract
!= BoundSemanticApplication
!= RuntimeRun
!= ResultArtifact
DataDependence
!= SemanticOrder
!= SourceTextOrder
!= RuntimeSchedule
ResultAvailable
!= CompositionComplete
SemanticAuthorityRequirement
!= RealizationRequirement
RealizationRequirement
!= .fsp Binding
!= ProviderIdentity
ProviderOutput
!= SituatedResult
ProgramStatus
!= CompositeSemanticOutcomeStructure
No compatibility relation above silently entails another.
3. Whole-language program roles
H1 distinguishes, as interface roles where material:
AuthoritativeSourceProgram / AuthoritativeSourceState
AdmittedResolvedProgram
ExplicitSemanticProgram
DeclaredSemanticContract
BoundSemanticApplication
SemanticApplicationReference / Locus
CompositionContract
RuntimeRun / ExecutionInstance
SituatedResult / LifecycleOutcome
These are semantic/interface roles, not a mandatory universal object hierarchy.
NecessaryDistinguishability
!= MandatoryOntologicalBox
A concrete implementation may share carriers while preserving the distinctions and correspondence relations required here.
4. Declared semantic contract
A DeclaredSemanticContract is a resolved language-semantic contract whose exact identity/revision determines meaning for one capability/transition/composition role.
Examples include, without defining one closed taxonomy:
QueryContract
AnalysisContract
ReasoningContract
TransformationContract
Validation / Governance contract
Claim / assertion transition contract
Hypothesis / ScenarioContract
SourceEvolution contract
Action / ExecutionRequest contract
ObservationContract
CompositionContract
Historical application/result interpretation preserves or references the exact contract revision materially used.
MutableContractName -/-> HistoricalContractRetarget
5. BoundSemanticApplication
A BoundSemanticApplication is a program-level application of an exact semantic contract revision to declared static/source bindings plus explicit dynamic semantic input requirements.
It is not a runtime execution occurrence.
A material application determines/references as applicable:
source correspondence / source construct locus
semantic contract identity + exact revision
semantic stage / transition category
StaticSemanticSignature
bound static/source inputs
required dynamic semantic inputs / binding rules
required input StandingContract / PayloadContract / completeness
specialized admission relations
promised output StandingContract / PayloadContract / ResultContract
Interpretation Basis requirements
material typed Dependence roles
semantic completeness / partiality policy
negative / empty / unknown / unresolved / failure distinctions
category-changing target effect if any
authority / jurisdiction requirements if any
semantic data-dependence relations
semantic order / co-realization constraints
outcome routing relation
provider-neutral RealizationRequirement if any
continuity / loss obligations
No mandatory record shape is selected.
6. Semantic application reference / locus
Where historical/accountability reference is material, the ExplicitSemanticProgram supplies a stable semantic application reference/locus sufficient to reconstruct:
which exact semantic contract revision was applied
which source construct/application site declared it
which static/source bindings belong to it
which dynamic semantic input slots/binding rules belong to it
which composition/order/routing relations apply
which completion/lifecycle/realization obligations apply
SemanticApplicationReference != RuntimeRunIdentity
SemanticApplicationReference != ResultArtifactIdentity
A single semantic application may be realized zero, one or multiple times according to its contract and the later executable architecture.
7. Complete ExplicitSemanticProgram contract
The CB-L1 ExplicitSemanticProgram role is enriched for H1 so P3 receives all semantic coordinates needed for realization.
For every material source construct/application, the program makes explicit or reconstructible the applicable dimensions below.
7.1 Static/source coordinates
source correspondence / span / construct identity
source-state revision
module/interface revision
BindingIdentity
DeclarationIdentity
BindingCategory
DeclarationKind
SemanticReferentIdentity / SemanticKind
TypeIdentity / TypeContractRevision
semantic reference/designation relations
resolution basis
inter-declaration dependencies
7.2 Semantic contract coordinates
semantic contract identity + exact revision
contract category/regime/transition class
StaticSemanticSignature
required semantic inputs
promised output/result contracts
Interpretation Basis requirements
material typed Dependence roles
semantic completeness / partiality policy
negative / empty / unknown / unresolved / failure distinctions
assurance requirements where material
7.3 Lifecycle/effect coordinates
Where applicable:
category-changing introduction relation
authority/admissibility requirement
source-authority effect
semantic occurrence identity/replay policy
semantic order / co-realization / completion coupling
historical time-role requirements
7.4 Composition coordinates
input/output slot mapping
joint input contract
semantic data/result dependence
semantic order
outcome routing
CompositeCompletionContract
LifecycleInteractionSummary where material
nested CompositionContract applications
continuity/loss dispositions
7.5 Realization-boundary coordinates
provider-neutral RealizationRequirement
semantic accuracy/equivalence/completion constraints
required external trust/acquisition boundary when material
allowed runtime-derived semantic inputs
forbidden runtime semantic invention
source / realization / run / storage authority boundary
7.6 Continuity coordinates
For every material transformation/composition boundary:
PRESERVE
TRANSFORM
DERIVE
RESTRICT
DISCARD-EXPLICIT
NOT-APPLICABLE
No implicit DROP.
8. StaticSemanticSignature
Every executable/composable semantic contract referenced by the ExplicitSemanticProgram supplies/references a complete static semantic signature adequate for CB-L1 formation/type/interface checking.
The signature determines as applicable:
input semantic type / kind / standing requirements
output payload / standing / result contract
formation constraints
contract parameters / bounds
category-changing target kind / standing
required authority/admissibility kinds
StaticSemanticSignature
!= RuntimeABI
!= StorageSchema
!= RustType
P3 may not invent operation-specific typing/formation rules omitted from the semantic contract.
9. Heterogeneous direct composition law
A consumer receiving concrete result/artifact assignment A may consume it only when all applicable independent gates pass.
Conceptually:
STATIC FORMATION / TYPE / KIND
+
InputAssignmentAccepts(A, RequiredInputContract)
+
applicable specialized semantic admission
+
applicable governance / transition authority condition
+
applicable outcome-routing condition
For one input this may reduce to CB-L2 InputAccepts plus specialized gates.
For multiple inputs, acceptance is joint unless the input contract explicitly declares decomposition valid.
Joint acceptance may constrain:
frame / scope compatibility
source / historical basis
completeness combination
conflict policy
correlation / dependence
cardinality / order
semantic type relationships
Therefore:
PairwiseInputAccepts -/-> JointInputAssignmentAccepts
WellTyped -/-> InputAccepts
InputAccepts -/-> PremiseAdmissible
PremiseAdmissible -/-> GovernanceAdmission
GovernanceAdmission -/-> Authorization
Authorization -/-> Execution
DirectlyComposable(ProvidedContract, RequiredContract) may prove an unconditional CB-L2 contract-level data edge but cannot bypass consumer-specific admission/authority relations.
10. Data dependence, semantic order and scheduling
The whole language distinguishes:
DATA / RESULT DEPENDENCE
SEMANTIC INTRODUCTION / EXECUTION ORDER
SOURCE TEXT ORDER
RUNTIME SCHEDULING ORDER
10.1 Data/result dependence
A consumer semantically depends on a particular result/artifact/standing/basis.
This need not imply a fresh producer execution if an admissible existing result can satisfy the demand.
10.2 Semantic order
Semantic order exists only when meaning/authority/standing/history/completion requires a prior stage/transition to occur or become established first.
Examples include:
T1 grants authority; T2 consumes that authority
HypothesisContextInstance exists before stages evaluated under it
Decision exists before a request consuming it
source subtransition T2 consumes standing introduced by T1
10.3 Source text order
SourceTextOrder -/-> SemanticOrder by default
Text order becomes semantic only under an explicit language/construct contract.
10.4 Runtime schedule
RuntimeSchedule != SemanticOrder
P3 may reorder/fuse/parallelize only if all semantic dependencies, orders, authority/currentness constraints, lifecycle interactions, completion contracts and histories remain preserved.
11. Ordinary composition well-foundedness
H1 ordinary inter-application composition is finite/well-founded.
OrdinaryCompositionCycle
requires
ExplicitIterationOrRecursionContract
This restriction applies to orchestration/composition recursion, not to cyclic semantic graphs or the recursion already owned by CB-L3 Query/Reasoning.
An explicit iteration/recursion contract owns as applicable:
seed / initial semantic state
step relation
input/result standing
completion/fixpoint/equality criterion
partial/incomplete semantics
failure/unresolved semantics
budget/divergence interface
category-changing/effect interactions
No runtime loop may silently become the semantic meaning of recursive composition.
12. Outcome routing
H1 has no universal truthiness/failure routing policy.
EMPTY
FALSE
DENIED
UNKNOWN
UNRESOLVED
INCONCLUSIVE
INCOMPLETE
OUT_OF_GAS
RUN / MECHANISM FAILURE
remain typed/distinguishable where material.
A direct data edge requires a concrete artifact satisfying the consumer contract. Absence of such an artifact does not by itself define whole-program failure or rollback.
A material conditional/routing construct determines behavior for its declared guard/outcome domain, including unknown/unresolved and mechanism-no-result cases where applicable.
UnknownGuard -/-> FalseBranch
MechanismFailure -/-> FalseBranch
RuntimeFailure -/-> SemanticNegativeResult
Allowed explicit policies include, by contract:
route valid negative semantic judgment
surface composite UNRESOLVED / INCOMPLETE
invoke recovery/refinement/retry branch
consume explicitly admissible incomplete result
branch on empty without treating empty as failure
The language need not invent a winner/branch where its semantic basis does not determine one.
13. Incremental / streaming consumption
Transport streaming is not semantic permission to consume partial results.
StreamingTransport -/-> IncrementalSemanticConsumption
A producer exposes partial/incremental artifacts only when its ResultContract gives them semantic standing/evolution.
A consumer may process them before finalization only under an explicit IncrementalConsumptionContract or equivalent relation covering as applicable:
valid partial/prefix input classes
completeness standing of each increment
revision/retraction semantics
increment ordering/version relation
consumer admissibility
when downstream results may be emitted
whether irreversible/category-changing transitions may fire
impact of later revision/incompleteness
finalization criterion
Default direct composition consumes a result satisfying the required final/completeness contract.
A planner cannot trigger an irreversible transition on a prefix merely because the provider happens to stream it.
14. Dynamic semantic binding
A later application may depend on an identity/basis introduced only by a prior stage.
The semantic program represents the binding derivation rule before P3, for example:
Q2.source_basis := SourceState introduced by T1
Request.decision_basis := Decision introduced by D1
Scenario.input := Result produced by A1
The exact runtime-produced identity may be unknown statically; its semantic derivation slot/rule is not.
Dynamic binding declares cardinality/selection semantics adequate to reject incidental selection, for example conceptually:
EXACTLY-ONE
ZERO-OR-ONE
ALL / COLLECTION
EXPLICIT SELECTOR / REDUCTION CONTRACT
Exact syntax/taxonomy is open.
IncidentalIterationOrder -/-> SemanticSelection
RuntimeResolveCurrentAlias -/-> ExplicitDynamicBasisBinding
Ambiguity remains explicit until an authorized selector/reduction contract resolves it.
15. Semantically material ambient state
Any environment/runtime value that can materially change semantic result, standing, basis, authority, completeness or source effect is explicit/reconstructible as:
semantic input
Interpretation Basis dependency
semantic contract parameter
lifecycle/governance basis
Examples where material:
wall clock / now
current/latest source/model alias
current principal
locale / timezone / unit default
randomness/seed policy
external semantic state
Mechanism-only state may remain hidden only if it cannot alter promised semantic observations.
SemanticallyMaterialAmbientState -/-> HiddenRuntimeDependency
16. Basis-binding time and long-running evaluation
When the exact semantic basis is bound at invocation/evaluation time, the semantic contract owns the binding rule and the resulting history preserves the exact basis and materially relevant binding time.
Distinguish as applicable:
source declaration time
application definition time
basis-binding/sealing time
Decision time
request time
execution-attempt time
runtime run start/end
observation/acquisition time
result recording/materialization time
source-incorporation time
RunStartTime -/-> BasisBindingTime by default
RecordingTime -/-> BasisBindingTime
Long-running evaluation over mutable sources/models declares a semantic basis policy such as frozen/snapshot, explicitly live/evolving, or version/window sequence semantics. Exact names/taxonomy remain open.
SourceChangedDuringRun -/-> SilentRetarget
The result preserves the material basis/window/history used.
17. Concurrency / interaction safety
Absence of semantic order does not prove semantic independence.
Potentially interacting category-changing/source/authority transitions require an explicit relation such as:
semantic order
co-realization/coupling
non-interference / commutativity contract
shared snapshot/isolation basis
fork/conflict semantics
NoOrder -/-> Independent
RuntimeIsolationLevel -/-> SemanticVisibilityPolicy
RuntimeSchedule -/-> ConflictResolution
Pure independent computations may be parallelized freely when their semantic contracts establish no material shared mutable/dynamic semantic dependency.
18. CompositeCompletionContract
Every composed program/block has an explicit/reconstructible CompositeCompletionContract.
It determines as applicable:
required terminal results/standings
required lifecycle transitions/introductions
allowed alternative terminal outcomes
whether incomplete/unresolved outputs may be terminal
which semantic/run failure classes prevent completion
which branches are optional vs required
which semantic results/lifecycle outcomes are exported
Every reachable material stage/branch has a completion role:
REQUIRED-FOR-COMPLETION
CONDITIONAL under explicit semantic condition
OPTIONAL/NON-BLOCKING under explicit composition contract
H1 has no detached/background semantic work by default.
ReachableMaterialStageWithoutCompletionRole = ILL-FORMED
CompositeSemanticCompletion != RuntimeTermination
ResultAvailable != CompositionComplete
There is no requirement for one scalar terminal result/status.
19. Semantic outcome and run/mechanism outcome
Preserve separate channels:
SEMANTIC RESULT / JUDGMENT OUTCOME
!=
RUN / MECHANISM OUTCOME
Mechanism outcomes include, for example:
provider unavailable
network timeout
process crash
missing binding
cancellation
resource/budget failure
Semantic outcomes include, for example:
empty QueryAnswer
ConformanceJudgment = violated
AdmissionJudgment = denied
SemanticCompleteness = incomplete
Reasoning completion under its declared criterion
A mechanism outcome becomes semantic only through an explicit mapping admitted by the semantic/realization contract.
A CLI/runtime aggregate status is a report over the semantic outcome structure, not a replacement for it.
20. Failure, rollback and compensation
A later stage/composite/run failure does not retroactively erase semantic history that was already introduced.
CompositeFailure
-/-> UndoPriorClaim
-/-> UndoPriorDecision
-/-> UndoPriorSourceEvolution
-/-> UndoPriorExecutionOccurrence
-/-> UndoExternalEffect
StorageRollback / RuntimeTransactionRollback
-/-> SemanticRetraction / UndoOccurrence / UndoExternalEffect
If a composition requires constitutively coupled all-or-nothing semantic introduction, that coupling is explicit in the semantic contract. P3 must select a mechanism capable of honoring it or report the application not realizable/ready under that binding.
Compensation/retraction/revision is a new explicit semantic action/transition preserving history.
21. Co-realized source/lifecycle transitions
One surface/source authoring action may realize multiple distinct semantic transitions.
Example:
source construct declaring a new Claim
may co-realize
ASSERT + SOURCE-EVOLVE
The ExplicitSemanticProgram preserves:
shared source correspondence
individual transition/application identities
individual introduction rules
authority/admissibility requirements
standing/source effects
semantic order/coupling relation
individual/coupled completion semantics
OneSourceConstruct != OneSemanticStage
AtomicCoRealization != SemanticIdentity
22. Named / reusable composition
H1 supports named/reusable composition through ordinary program/module declaration plus an explicit semantic CompositionContract.
The contract has stable identity/revision and exposes/references as applicable:
input StaticSemanticSignature / required input contracts
exported SituatedResult contract(s)
exported lifecycle outcome/target-standing contract(s)
CompositeCompletionContract
LifecycleInteractionSummary
authority/admissibility requirements
RealizationRequirements
whole-interface continuity/assurance guarantees
source correspondence
CompositionContract != BodyImplementation
Historical applications/results retain the exact CompositionContract revision used.
A CompositionContract may itself be applied by another composition, supporting hierarchical/nested programs.
23. Composition implementation compatibility
A body/implementation satisfies a CompositionContract only if every externally relied-upon semantic guarantee is preserved.
A replacement may not silently alter:
input standing/type/basis requirements
exported standing/payload/completeness
failure/unresolved surface
LifecycleInteractionSummary
authority/admissibility requirements
semantic order/coupling guarantees
RealizationRequirements
continuity/assurance guarantees
SameVisiblePayload -/-> CompositionCompatibility
Module/interface replacement under CB-L1 must preserve the complete CompositionContract, not only nominal output type.
24. LifecycleInteractionSummary
A named/reusable/opaque CompositionContract exposes a LifecycleInteractionSummary for every externally material interaction affecting safe composition.
It may summarize as applicable:
Claim/standing introductions
Decision/governance interactions
source-authority/source-evolution transitions
external Action requests / execution-capability interactions
Observation acquisitions
semantic target/source scopes touched
authority/admissibility requirements
semantic ordering/co-realization/isolation constraints
RealizationRequirements
Interaction modality is explicit conceptually:
REQUIRED-FOR-SUCCESS/COMPLETION
CONDITIONAL under an explicit semantic condition
POSSIBLE/OPTIONAL and non-blocking under the completion contract
Exact labels/representation are open.
This summary is not a causal/world-effect claim.
LifecycleInteractionSummary
!= EffectOf
!= ExternalEffectOccurred
25. Nested abstraction
Nested interaction summaries compose conservatively.
An outer composition cannot hide an externally material inner:
SourceEvolution
external Action request
Claim/Decision/Observation introduction
material authority requirement
completion obligation
unless an explicit higher-level semantic contract validly transforms/couples the interaction without erasing required history.
Pure internal stages may remain abstracted if external result/provenance/assurance/completion guarantees remain sufficient.
Category-changing semantic occurrences do not become private implementation details merely because their payload is not exported.
26. Workflow disposition
The historical V1 Workflow product capability is preserved and generalized through semantic composition contracts:
named reusable orchestration
heterogeneous stages
branching / typed outcome routing
semantic ordering
parallelizable independent work
composition completion
result/lifecycle exports
process/accountability history
H1 does not require WORKFLOW as a distinct universal semantic family.
V1 WORKFLOW CAPABILITY
= PRESERVE + GENERALIZE
V1 WORKFLOW AS MANDATORY SEMANTIC FAMILY
= REPLACE / NOT REQUIRED FOR H1
A future workflow surface keyword may exist as syntax sugar/product UX without gaining an independent semantic jurisdiction.
27. Semantic validity, realization satisfaction and execution readiness
Distinguish:
SemanticallyAdmittedProgram/Application
!= RealizationCapabilitiesSatisfied
!= ExecutionReady
!= RuntimeStarted
!= RuntimeSuccess
A semantically valid program may be not realizable/ready under the current .fsp/environment.
Missing provider/model/action/observation/source-authoring capability is normally a realization/readiness outcome, not semantic falsehood, type invalidity or governance denial.
28. RealizationRequirement
Every semantic application requiring realization declares/references a provider-neutral RealizationRequirement.
It may include, where material:
required capability class
exact semantic contract/model/operator revision
exact vs approximate envelope
required determinism/nondeterminism semantics
completion guarantee class
assurance/certification requirement
external acquisition/trust boundary
required dynamic-input provision contract
RealizationRequirement
!= .fsp Binding
!= ProviderIdentity
!= SemanticAuthorityRequirement
Semantic authority and realization mechanism requirements remain independently reconstructible.
A capable provider cannot create semantic authority merely by being bound.
29. Runtime-derived semantic inputs
A BoundSemanticApplication may require values not known until evaluation/run time, such as:
observation acquired under an ObservationContract
execution receipt
external response
identity introduced by a prior transition
run policy/budget input when semantically exposed
The semantic contract fixes what input is required, what standing/basis it must have and how it is bound.
P3/runtime supplies a concrete value through an admitted realization path.
DynamicValueUnavailableAtCompileTime
!= SemanticMeaningDeferredToRuntime
30. Provider/runtime result bridge
Provider/runtime output is raw realization evidence until admitted by an explicit semantic verification/interpretation bridge selected/closed downstream under this contract.
ProviderOutput != ValidSituatedResult
ProviderLabel != StandingIntroductionAuthority
ProviderSuccess != SourceEvolutionAuthority
The bridge verifies/reconstructs as applicable:
output shape/type correspondence
semantic contract/model revision match
Interpretation Basis
standing/result-contract satisfaction
completion/accuracy/assurance guarantees
source/application/run/result correspondence
identity/provenance requirements
external attestation/trust boundary
Bridge failure does not fabricate a semantic negative result.
RunOutput
-> verification/interpretation bridge
-> SituatedResult / LifecycleOutcome
31. Reuse, caching, memoization and fusion
Distinguish:
REFERENCE-EXISTING-RESULT
EVALUATE-APPLICATION
A cached/existing result may satisfy a requested evaluation only when a contractually admitted ReuseAdmissible/equivalence relation covers every dimension material to downstream semantics.
Consider at least:
identity
standing
issuer/authority
source/model/theory/contract basis
time/frame/scope/currentness
hypothetical dependence
observation acquisition requirements
conflict
provenance/derivation/support
completeness
assurance
lifecycle occurrence/history
stochastic/reproducibility semantics
CacheHit -/-> ReuseAdmissible
PayloadEquality -/-> ResultEquivalence
EqualVisibleRows -/-> EqualWitnessHistory
If result/run/history identity is materially observable, P3 cannot fuse it away.
32. Retry / replay / re-execution
For lifecycle/effectful applications, preserve enough semantic request/occurrence intent to distinguish:
retry/delivery of the same semantic request
replay/rehydration of prior result/receipt
new semantic request / intentional re-execution
DeliveryRetry -/-> NewSemanticOccurrence
RuntimeTimeout -/-> SafeToReExecute
A new actual re-execution is a new ExecutionAttempt/occurrence where the CB-L4 contract makes it so.
Concrete idempotency/retry mechanism is P3/P6 territory.
33. Authority/currentness time-of-check
For authority/currentness-sensitive applications, the semantic contract fixes/references the applicable time/basis rule.
Different contracts may require, for example:
AuthorizationAtDecisionTime
AuthorizationAtRequestTime
AuthorizationAtExecutionAttemptTime
AuthorizationThroughoutInterval
No equivalence is assumed.
P3ConvenientCheckTime -/-> SemanticAuthorityTime
Historical outcomes retain the basis/time actually used.
34. Source base and source evolution
A source transition bound to expected base state(s) has that basis as a semantic precondition.
BaseMismatch -/-> AutomaticRebase
BaseMismatch -/-> AutomaticMerge
Rebase/merge is an explicit semantic source transformation/evolution with its own authority, basis, conflict/history and completion contract.
A target SourceState introduced by a transition may become the exact basis of later applications through explicit dynamic binding; P3 may not substitute mutable current/latest.
Source inclusion preserves the artifact’s semantic standing unless a separate category-changing transition is also explicitly/co-realized.
35. Source -> runtime -> source loop
The complete H1 semantic interface supports:
AUTHORITATIVE .fsl SOURCE
-> resolution / formation / type / interface
-> ExplicitSemanticProgram
-> Query / Analysis / Reasoning / Transformation
-> validation / admission / authorization judgments
-> Decision
-> ExecutionRequest
-> P3 realization/runtime attempt
-> result / receipt / actuality/effect position
-> Observation
-> explicit ASSERT / ADOPT / ASSERT-BASED-ON if intended
-> explicit source-authoring / source-evolution / incorporation
-> NEW AUTHORITATIVE SOURCE STATE
No edge implies:
result -> Claim
Decision -> execution
effect -> Observation
Observation -> Claim
runtime output -> source authority
source inclusion -> truth/standing promotion
Each category-changing edge is owned by CB-L4.
36. Source/application/run/result correspondence
For every materially executable semantic outcome, preserve/reconstruct a correspondence chain equivalent to:
source construct(s)
-> resolved/static declaration basis
-> ExplicitSemanticProgram semantic application reference
-> exact semantic contract revision + bound semantic basis
-> P3 realization binding / executable-plan correspondence
-> runtime run/provider evidence where a run occurred
-> semantic verification/interpretation bridge
-> SituatedResult / LifecycleOutcome
Not every link requires a distinct runtime object. The information needed to establish the required correspondence must survive.
This prevents:
ProviderOutput == SemanticResult
RunIdentity == ApplicationIdentity
StorageRecord == SourceDeclaration
PlannerNode == SemanticStage
37. Composition history / accountability
A terminal result/output need not inline every internal stage/transition history.
Material history may be preserved directly or by reference to:
CompositionContract revision
semantic application references
SituatedResult dependencies
lifecycle occurrence references
source-state history
run/receipt references where operational accountability is material
PRESERVED-BY-REFERENCE != ACCIDENTALLY-LOST
TerminalResult / GreenStatus -/-> CompleteProcessHistory
This is the integrated repair for V1 SD-03.
38. Diagnostics / source correspondence
Every material semantic application, transition and composition edge remains traceable to source construct(s) sufficient for diagnostics/accountability.
Diagnostics distinguish the applicable gate/failure class rather than collapsing to generic type/runtime failure:
static formation / kind / type
result/input contract incompatibility
joint-input incompatibility
premise inadmissibility
governance inadmissibility / unauthorized transition
outcome-routing mismatch
completion / partiality mismatch
ambiguous dynamic binding
source-base mismatch
realization requirement unsatisfied
runtime/mechanism failure
provider semantic-bridge failure
No Rust/storage/provider type is semantic merely because it appears in implementation diagnostics.
39. Whole-language Semantic Continuity contract
Every material transformation/composition/lowering boundary evaluates applicable dimensions:
SC-D1 identity
SC-D2 attribution / authority
SC-D3 time
SC-D4 scope / context / frame
SC-D5 epistemic / semantic standing
SC-D6 conflict
SC-D7 normative basis
SC-D8 provenance / dependence
SC-D9 representation
SC-D10 accountability
SC-D11 completion
Allowed dispositions:
PRESERVE
TRANSFORM
DERIVE
RESTRICT
DISCARD-EXPLICIT
NOT-APPLICABLE
UNKNOWN at a material implementation/lowering boundary is not a conformance pass.
ACCIDENTALLY-LOST = DEFECT
Omission from a view/output is not nonexistence unless the semantic contract actually establishes that conclusion.
40. P3 lowering / optimization obligations
P3 may introduce executable representations, plans, fusion, scheduling, caching, batching and provider-specific lowering only if they preserve this contract.
P3 may not silently:
remove a semantic stage whose standing/history is externally material
fuse away category-changing transition identity/history
replace semantic order with incidental schedule
change typed outcome routing
change source/model/theory/contract basis
replace exact with approximate semantics outside contract
promote standing
change source-authority effect
turn materialization into source evolution
collapse lifecycle outcomes into one status
collapse semantic/run completion
invent currentness/freshness semantics
select among ambiguous dynamic bindings by physical order
RuntimeOutputAgreementOnOneFixture is not sufficient evidence of semantic-preserving lowering.
P3/P5 must define the actual correspondence/conformance evidence class.
41. P3 mandatory return-to-P2 triggers
P3 must return to P2/reopen the applicable semantic owner if executable design discovers a need to decide any material language-semantic issue not fixed here, including:
new semantic input or hidden ambient dependency
new semantic standing/category
new category-changing introduction relation
new compatibility/admissibility rule
new semantic authority/widening rule
new default outcome-routing rule
new semantic-order / visibility / currentness rule
new completion/partiality meaning
new semantic loss/discard not already authorized
new source-evolution meaning
new provider/result standing bridge rule
new cache/reuse semantic equivalence assumption
new externally material lifecycle interaction hidden by current interface
new semantic distinction required for the P0 horizon
P3 may not resolve any such gap by choosing the easiest IR/runtime/provider representation.
P3 SEMANTIC INVENTION
= RETURN TO P2
42. Class E handoff
This contract does not architecturally close P1 Class E. It supplies the semantic inputs that P3 must consume.
E1 — Source -> explicit semantic representation
P2B handoff: complete ExplicitSemanticProgram semantic coordinates and source correspondence.
P3 owner: concrete executable semantic representation.
E2 — IR / lowering correspondence
P2B handoff: exact preservation/loss/correspondence obligations.
P3 owner: intermediate representation(s), lowering relations and validation/correspondence mechanism.
E3 — .fsp realization capability model
P2B handoff: provider-neutral RealizationRequirement and source/realization authority boundary.
P3 owner: .fsp grammar/capability/binding model.
E4 — Planner / executable-plan contract
P2B handoff: semantic data dependencies, order, routing, completion, lifecycle interactions, incremental-consumption and reuse/fusion constraints.
P3 owner: executable plan/planner architecture.
E5 — Runtime contract
P2B handoff: run/application/result separation, dynamic-input meaning, mechanism/semantic outcome separation, gas/completion and semantic non-invention constraints.
P3 owner: runtime/run-state/task architecture.
E6 — Engine/provider capability interface
P2B handoff: provider guarantee boundary, RealizationRequirements and semantic verification/interpretation bridge obligations.
P3 owner: engine/provider interface/adapters/protocol.
E7 — Runtime/external-result reconstruction, observation and source incorporation
P2B handoff: semantic result reconstruction, actuality/effect/observation distinctions and explicit runtime-result -> source-authoring/evolution boundary.
P3 owner: concrete external/runtime integration architecture.
P2B HANDOFF E1..E7 = CLOSED / SUFFICIENT
P3 ARCHITECTURAL E1..E7 = OPEN / AUTHORIZED NEXT
43. V1 capability/regression disposition
The integrated H1 contract preserves material V1 language capabilities while refusing V1 decomposition as FormaSL authority.
43.1 Workflow
V1 named/multi-stage workflow capability = PRESERVE + GENERALIZE
V1 Workflow as mandatory semantic family = REPLACE / NOT REQUIRED FOR H1
43.2 SD-01 occurrence history
Repeated semantic lifecycle occurrences retain distinguishable identity/history; no ClaimId-keyed mutable snapshot substitutes occurrence history.
SD-01 REGRESSION = NOT PRESENT
43.3 SD-02 Projection lineage
CB-L3 semantic transformation + CB-L2 typed dependence + this contract require materially relevant representation lineage to survive downstream composition/runtime reconstruction.
SD-02 REGRESSION = NOT PRESENT
43.4 SD-03 Workflow/process history
Terminal result/program status does not replace process/accountability history; it may be preserved by reference.
SD-03 REGRESSION = NOT PRESENT
44. Canonical integrated positive witnesses
A conforming P3 architecture must be able to realize, without semantic invention, witnesses including:
W-L5-01 — heterogeneous computation
QueryAnswer
-> Analysis
-> Reasoning
with InputAccepts/PremiseAdmissible distinctions preserved.
W-L5-02 — governed action loop
computed result
-> validation/conformance
-> admission/authorization judgment
-> Decision
-> ExecutionRequest
-> runtime attempt
-> Observation
without Decision->Execution or success->effect/observation collapse.
W-L5-03 — explicit assertion after computation/observation
SemanticConsequence or Observation
-> ASSERT-BASED-ON
-> new Claim
with producer/support/issuer roles preserved.
W-L5-04 — hypothetical evaluation with target-specific exit
ScenarioContract
-> HypothesisContextInstance
-> computation
-> HypotheticalResult
-> explicit Claim/Decision/source proposal transition under independent target authority
with hypothetical dependence retained and no generic PROMOTE.
W-L5-05 — runtime result to source evolution
run/provider evidence
-> semantic bridge
-> SituatedResult/Observation
-> explicit source-authoring/evolution
-> new AuthoritativeSourceState
without runtime-output/source-authority collapse.
W-L5-06 — named reusable composition
A public CompositionContract may hide pure internal details while exposing all externally material lifecycle, authority, completion, realization and history obligations.
W-L5-07 — result available before composition complete
A consumer may explicitly depend on result availability while another consumer waits for full CompositionCompletion; neither is inferred from the other.
W-L5-08 — dynamic post-transition basis
A later application binds exactly to a SourceState/Decision/result introduced by a predecessor rather than mutable current/latest.
45. Canonical integrated negative witnesses
A conforming design rejects or preserves as non-conclusions at least:
N-L5-01 payload/type fits but InputAssignmentAccepts fails
N-L5-02 InputAccepts passes but PremiseAdmissible fails
N-L5-03 UNKNOWN/UNRESOLVED routing silently selects false branch
N-L5-04 incomplete prefix feeds irreversible consumer without explicit incremental contract
N-L5-05 Decision occurrence lacks required normative effectiveness
N-L5-06 provider labels Prediction output as Claim
N-L5-07 missing realization capability treated as semantic invalidity
N-L5-08 source expected-base mismatch silently rebases/merges
N-L5-09 unordered interacting source transitions resolved by scheduler order
N-L5-10 mutable source/model changes silently retarget frozen application basis
N-L5-11 payload-identical stale cache result reused across materially different basis
N-L5-12 uncertain external retry creates accidental duplicate semantic occurrence
N-L5-13 later stage failure erases prior Claim/source transition/effect
N-L5-14 aggregate green status while required Observation/completion remains unresolved
N-L5-15 opaque composition adds hidden source evolution/external action
N-L5-16 payload-equal results with different material provenance/identity are fused
N-L5-17 runtime DB rollback is treated as external effect/history undo
N-L5-18 hypothetical authority authorizes baseline source evolution
N-L5-19 current view omission is treated as historical/conflict erasure
N-L5-20 run identity is reused as application/result identity
N-L5-21 final output replaces complete process/accountability history
46. Formalization routing
P2B semantic closure does not authorize immediate mechanization.
The transient routing ledger ../CB-L5-FORMALIZATION-DECISION.md records at least:
FO-L5-01 composition admission-layer non-collapse
FO-L5-02 composition standing anti-promotion
FO-L5-03 typed outcome-routing distinction preservation
FO-L5-04 composite completion / run-termination non-collapse
FO-L5-05 semantic history non-rollback
FO-L5-06 opaque-composition consumer-guarantee preservation
FO-L5-07 semantic-order / runtime-schedule preservation
FO-L5-08 provider semantic non-invention
FO-L5-09 source/application/plan/run/result correspondence preservation
FO-L5-10 dynamic basis-binding non-retroactivity
FO-L5-11 reuse/fusion semantic-equivalence gate
FO-L5-12 explicit incremental-consumption safety
FO-L5-13 application/run/result identity distinguishability
FO-L5-14 composition-history reconstructibility
Several exact formal predicates require P3’s official representation bridges. A proof over an invented pre-P3 shadow model would not discharge the normative obligations.
IMMEDIATE MECHANIZATION AUTHORIZED = NO
P5 must classify/discharge these rows under the Whole-Language Roadmap formalization-obligation coverage gate.
47. Protected open questions after P2B
The following remain open without weakening this H1 interface:
final concrete grammar / keyword spellings
exact AST / IR / Fcore structure
exact lowering/correspondence representation
exact .fsp grammar and capability binding model
planner/executable-plan representation
runtime task/run/event representation
provider registry / protocol / adapter shape
cache/memoization implementation
stream transport
transaction/isolation mechanics
source-history physical storage
result/receipt physical carrier
proof/certificate format
exact content-equivalence calculus
exact delegation/authority calculus beyond closed boundaries
exact causal calculus beyond closed boundaries
exact source-history algebra beyond closed continuity requirements
exact provenance algebra beyond required typed distinguishability
exact observation carrier/schema
non-H1 reasoning extensions
These questions cannot be answered in P3 by changing the semantic meaning fixed here.
48. Reopen conditions
Reopen this contract or an applicable upstream owner on material evidence such as:
semantic counterexample
ownerless material inter-bundle relation
P0 capability/regression gap
Semantic Continuity ACCIDENTALLY-LOST
blocking UNKNOWN required for H1 interpretation
P3 implementation impossibility without changing meaning
P3 need for a new semantic default/standing/transition/admission rule
inability to preserve source/application/run/result correspondence
formal inconsistency against an applicable closed obligation
material DX impossibility showing the contract cannot be surfaced without hidden semantics
Implementation convenience, prettier IR, faster runtime or provider API shape are not reopen triggers by themselves.
49. P2B terminal contract
For V2-WHOLE-LANGUAGE-H1, this contract establishes:
C2 HETEROGENEOUS SEMANTIC COMPOSITION = PASS
C5 WHOLE-LANGUAGE SEMANTIC CONTINUITY = PASS
INTEGRATED_COMPOSITION_AUDIT = PASS
WHOLE_LANGUAGE_CONTINUITY_AT_DEFINITION = PASS
INTER_BUNDLE_OWNERLESS_INTERFACE = NONE
P2B EXECUTABLE SEMANTIC HANDOFF FOR E1..E7 = CLOSED / SUFFICIENT
DESIGN_BLOCKING_UNKNOWN_FOR_P3 = NONE FOUND
EXECUTABLE_SEMANTIC_INTERFACE_CONTRACT = CLOSED
After project-state synchronization, P2B may set:
LANGUAGE_SEMANTIC_CLOSURE = PASS
LANGUAGE_DEFINITION_CLOSURE = PASS
P2B = PASS
These statuses mean that within H1, P3 no longer needs to invent language semantics.
They do not mean:
SEMANTICALLY_WHOLE = PASS
LINGUISTICALLY_WHOLE = PASS
EXECUTABLY_WHOLE = PASS
USABLY_WHOLE = PASS
FORMASL_LANGUAGE_COMPLETE = YES
EXECUTABLE_LANGUAGE_ARCHITECTURE = PASS
IMPLEMENTATION_READINESS = PASS
IMPLEMENTATION CODE AUTHORIZED = YES
Only later Whole-Language Roadmap gates can establish those claims.
50. Next authorized phase
Once FORMASL.md and the transient closure ledger are synchronized to this contract:
P2A = PASS
P2B = PASS
P3 — EXECUTABLE LANGUAGE ARCHITECTURE CLOSURE = AUTHORIZED NEXT
P3 must consume this file as the semantic boundary it may realize but may not redefine.
51. BLOCK-B ratified amendment — shared semantic execution path
Ratified: BLOCK-B-PRODUCTION-CLOSURE-v0.1 owner decision (2026-09-24); permanent law owned here. The P2B/P3 boundary law of §§1–50 stands; this section freezes the single execution path every admitted application family must realize.
51.1 One path
ApplicationInvocation
→ BoundApplicationInvocation (exact application ref, typed arguments,
exact EvaluationBasis / sealed inputs, closure, source locus)
→ Generic Semantic Executor
→ existing native family engine (Query=QEC, Analysis, Transformation
T1/T2, Reasoning, Validation, Governance, Revision/Publication,
Composition, Scenario context algebra)
→ native typed result
→ typed result/dataflow environment
No family may implement a private binder or duplicate engine to join the
run surface. No hidden contextual parameter (no $scenario-style
ambient). The public invocation route is the same sealed typed route as
the internal carrier: typed arguments and exact basis are exposed, not
re-derived downstream.
51.2 Result/dataflow preservation contract
Every carried result preserves, when material:
native standing
exact producer identity
payload contract
interpretation basis
context
provenance / dependence
completion category
Semantic distinctions may not flatten into String, bool, or
positional order across this boundary. Completion classes
(SemanticCompletion / BasisCompletion / CompositionCompletion /
ScenarioEvolutionCompletion / MechanismTermination / RuntimeTermination /
Reachability / PublicationCompletion) stay distinguishable end-to-end;
RuntimeTermination -/-> SemanticCompletion.
51.3 Order classes
SemanticOrder != DataDependence != SourceTextOrder != RuntimeSchedule
An order statement produces SemanticOrder coordinates; encoding it
as DataDependence (or reverse-deriving schedule from source order)
violates this contract. Branches not executed report NOT_REACHED
(reachability), never FAILED/UNRESOLVED.
51.4 Run-owned occurrence authority
Contextual projections into native engines may mint run-owned representation occurrences (with mandatory sidecar) for material that exists only in the requesting context. Such occurrences never become semantic identity of the source material and never survive into persistence as authority.