FormaSL — Semantic Continuity
Status: STABLE
Authority: NORMATIVE DESIGN CONTRACT
Parent authorities: FORMAL-WORLD-MODEL.md, SEMANTIC-INVARIANTS.md
Role: govern preservation of meaning across semantic transformations and composed computations.
1. Purpose
FormaSL is not intended merely to represent semantic information at declaration time. It must be able to compute over meaning without silently destroying distinctions required to interpret, audit, verify or continue computing over a result.
This property is Semantic Continuity.
Semantic information that remains relevant to the meaning or verification of a result must remain reconstructible across semantic transformations.
Continuity applies to individual operations and to their composition.
2. Core property
Let semantic information x cross transformations F1 ... Fn:
x --F1--> y --F2--> ... --Fn--> z
Let Q(x) be the subset of semantic qualifications and dependencies that remain relevant to interpreting or verifying z.
Semantic Continuity requires z, together with explicit context/evidence/dependence where applicable, to preserve enough information to reconstruct the required part of Q(x) and the semantic transformations connecting x to z.
Continuity does not require every output to physically copy every field of every input.
SemanticContinuity != IdentityTransformation
SemanticContinuity != UniversalRetention
3. Three questions at every boundary
Before choosing a representation, ask:
1. WHAT EXISTS SEMANTICALLY?
2. WHAT INFORMATION MUST SURVIVE?
3. HOW COULD IT BE REPRESENTED?
Semantic Continuity owns the second question.
The third must not silently redefine the first two.
4. Continuity dimensions
SC-D1 — Identity
Can later computation determine which semantic item is being referenced?
Examples include Claim identity, entity identity, policy identity, scenario identity, observation identity, relation-instance identity and decision identity when relevant.
SC-D2 — Attribution
Can later computation reconstruct who asserted, observed, assessed, produced, authorized, decided or executed the relevant information or operation?
Producer != Issuer
Executor != Authority
unless an explicit contract makes those roles coincide in the case at hand.
SC-D3 — Temporal role
Can downstream computation distinguish relevant temporal roles such as validity, observation, knowledge, decision and recording/transaction time?
Equal values do not identify roles.
SC-D4 — Scope / frame
Can downstream computation determine the context, scope or frame under which the information is meaningful/applicable?
A frame transformation must remain distinguishable from mere compatibility where relevant.
SC-D5 — Epistemic / stance
Can downstream computation distinguish information that was claimed, observed, inferred/derived, assumed hypothetically, accepted, rejected, unknown, hidden or otherwise epistemically qualified?
SC-D6 — Conflict
Does conflict survive until an explicit semantic transformation resolves, revises, selects or adjudicates it?
Storage or query behavior must not silently make conflict disappear.
SC-D7 — Normative basis
If a result depends on conformance, admission, authorization, policy, authority, obligation or decision, can the relevant normative role and basis remain reconstructible?
SC-D8 — Provenance and dependence
Can later computation recover the distinctions it needs among derivation, support, provenance, causal relation, lineage, hypothetical dependence and execution trace?
SC-D9 — Representation
Can representation change while preserving semantic identity and type/kind?
Serializer, compiler, index or storage adapter may optimize representation but may not silently erase semantic distinctions.
SC-D10 — Accountability
For computations contributing to consequential decisions/actions, can the system reconstruct the materially relevant chain of assertions, observations, derived results, policies, authorities, decisions, executions and observations?
SC-D11 — Completion / bounded computation
If a result depends on an incomplete or gas-exhausted computation, can downstream computation determine that the input/result was partial rather than complete?
5. Transformation behavior classes
For each relevant semantic dimension, a transformation should classify its behavior as one of:
PRESERVE
Information remains valid and recoverable without semantic reinterpretation.
TRANSFORM
The operation explicitly changes semantic qualification and preserves enough information to understand the change.
DERIVE
The output obtains a new semantic property/result through an explicit derivation whose required dependencies remain reconstructible.
RESTRICT
The operation narrows visibility, applicability, scope or domain without asserting nonexistence outside the restriction.
DISCARD-EXPLICIT
The operation intentionally removes semantic information and the loss is part of its contract.
NOT-APPLICABLE
The dimension is irrelevant to the transformation.
There is no implicit DROP class.
6. Loss accounting
During analysis or audit, classify each relevant piece of information as:
PRESERVED-DIRECTLY
PRESERVED-BY-REFERENCE
DERIVABLE
INTENTIONALLY-ERASED
ACCIDENTALLY-LOST
NOT-APPLICABLE
UNKNOWN
Rules:
INTENTIONALLY-ERASEDrequires an explicit semantic justification;ACCIDENTALLY-LOSTis a continuity defect;DERIVABLEis valid only when the inputs required for derivation are guaranteed to survive;UNKNOWNmust not be treated as preservation.
7. Contract for significant semantic transformations
Every significant FormaSL construct/operation/transformation SHOULD specify, at the level relevant to its semantics:
1. semantic inputs
2. semantic outputs/results
3. qualifications consumed
4. qualifications preserved
5. qualifications transformed
6. qualifications intentionally discarded
7. provenance/dependence produced
8. applicable invariants
9. failure / unresolved semantics
10. completion semantics when bounded
11. composition obligations
A specification that describes only grammar and runtime values is insufficient for a semantically significant construct.
This rule applies to transformation boundaries, not to a predetermined list of V1 families.
8. Compositional continuity
Local correctness is insufficient.
Suppose:
x --F--> y --G--> z
If F preserves a semantic qualification and G silently erases it while that qualification remains relevant to z, the composed pipeline is non-conformant.
Every intermediate boundary must preserve, explicitly transform or explicitly authorize loss of every semantic distinction still required by the composed result.
Composition does not promote semantic category:
Composition != Promotion
A derived result remains derived when consumed by another operation. A hypothetical result remains dependent on its assumptions. A partial result does not become complete because a downstream operation accepted it.
9. Claim continuity
A Claim may cross representation and communication boundaries without changing identity.
Claim C
issuer: A
content: p
|
+--> serialize
+--> transmit
+--> receive
+--> store
If these operations concern the same Claim:
Claim identity PRESERVE
issuer PRESERVE
semantic content PRESERVE or explicit TRANSFORM
representation may change
communication new lifecycle history where relevant
A second attributable assertion of semantically equivalent content may instead create a new Claim token:
C1 != C2
C1 ≈content C2
Token identity must not be silently deduplicated.
10. Computation and optional assertion
A semantic computation does not automatically produce a Claim.
Claim C1 / other semantic inputs
|
v
computation
|
v
semantic result R
|
| optional attributable assertion/adoption
v
Claim C2
For R, continuity may require:
result kind PRESERVE
scope/frame PRESERVE or explicit TRANSFORM
temporal qualifications PRESERVE / DERIVE
source dependencies PRESERVE-BY-REFERENCE
derivation PRESERVE-BY-REFERENCE when relevant
producer PRESERVE-BY-REFERENCE when relevant
completion status PRESERVE when material
If R is later asserted as C2, that transition introduces a new Claim identity, issuer/assertive stance and assertion history while retaining relevant dependence on R and its sources.
Forbidden collapse:
computed q
-> automatically Claim(producer, q)
11. Governance continuity
Validation/conformance, admission, authorization and decision have different semantic contracts.
A governed computation may look conceptually like:
target + constraints + validation world
-> conformance judgment
candidate + governance context
-> admission judgment
agent + action + normative basis
-> authorization status/judgment
judgments + evidence + decider
-> decision
These are not mandatory pipeline stages and may occur in different orders or compositions.
Continuity must preserve the role and basis of each judgment where downstream behavior depends on it.
Forbidden collapses include:
Conformant -> Admitted
Admitted -> Authorized(actor)
Authorized -> Executed
Eligible -> AlreadyCrossedBoundary
A valid negative result is also distinct from failure of the evaluation mechanism.
12. Hypothetical continuity
A hypothetical context adds scoped assumptions without mutating the baseline semantic context.
baseline B
|
+-- scenario S assumes p
|
v
derive result R
If R materially depends on p, the dependence must remain reconstructible.
Running a computation while a scenario is active does not by itself prove that every result depends on the scenario; dependence follows from semantic derivation or the declared operation contract.
Forbidden collapses:
Assumption -> Claim
HypotheticalOccurrence -> ActualOccurrence
PreflightAdmission -> ActualAdmissionDecision
HypotheticalResult -> BaselineResult without explicit promotion
Promotion is category-specific and historical. It must not retroactively rewrite the source as having never been hypothetical.
13. Occurrence, effect and observation continuity
The operational loop contains an epistemic boundary:
semantic inputs
-> computation
-> decision
-> execution/action
-> possible world occurrence/effect
-> [epistemic boundary]
-> observation / evidence / declared runtime guarantee
-> later semantic input
The bridge from possible world occurrence to semantic knowledge is never implicit.
Continuity must preserve when relevant:
Decision != Execution
ExecutionSuccess != ExternalEffectOccurred
Occurrence != Effect
Effect != Observation
Observation != Truth
If an occurrence is treated as an effect of an action, the causal relation/basis must remain explicit/reconstructible. Temporal order alone is insufficient.
14. Recording and historical multiplicity
Recording may be realized as relation, evidence item, transaction history, provenance entry or another mechanism.
No universal RecordingOccurrence carrier is required.
But when multiple independent recordings/imports are semantically relevant, Claim identity alone is insufficient to erase them.
same Claim
+ two semantically relevant recordings
!=
one recording
Revision, retraction, reassertion and promotion likewise must preserve reconstructible history when the distinction remains relevant.
15. Source and realization continuity
.fsl is authoritative semantic source/data; .fsp specifies realization.
A change in .fsp may alter cost, planner, resource budget, backend or run completion while preserving the declared semantic contract.
semantic contract identity
!= realization identity
!= execution/run identity
Static weaving must preserve this distinction. A compiled/executable artifact may combine or reference both planes, but it must not make semantic identity depend on realization identity.
Runtime output or storage mutation does not automatically update authoritative semantic source:
RuntimeOutput != AuthoritativeSourceUpdate
StorageWrite != SemanticAuthority
16. Gas and completion continuity
Gas is a deterministic logical-work budget.
A run may yield:
R + COMPLETE
or:
R + OUT_OF_GAS / PARTIAL
When incompleteness is materially relevant, downstream computations must retain enough information to distinguish the two.
OUT_OF_GAS != FIXPOINT
OUT_OF_GAS != FALSE
OUT_OF_GAS != EMPTY
A downstream computation MUST NOT silently treat a partial prefix as a complete closure.
17. Type continuity and substitution
Type identity, specialization and subtyping are distinct.
If S <: T under the FormaSL type contract, substituting an admissible S where T is expected may forget information not required by T, but MUST preserve every guarantee the consumer of T is entitled to rely on.
A coercion that actually changes semantic meaning is not mere subtype substitution; it is a semantic transformation and must be governed accordingly.
Inheritance != Subtyping
Subtyping != TypeIdentity
SemanticTransformation != TransparentSubstitution
Situated domain classification must remain distinct from compiler/type-contract judgments across operations.
18. Semantic path and reasoning artifacts
Continuity may require a reconstructible path such as:
source semantic information
|
v
semantic transformation
|
v
qualifications / scope / basis
|
v
result
Possible representations include provenance edges, derivations, witnesses, certificates, typed traces, structured metadata or another FormaSL mechanism.
No one artifact class is required universally.
A runtime trace is not automatically a derivation; provenance is not automatically proof; an explanation is not automatically a guarantee.
19. Semantic erasure
Semantic erasure occurs when a transformation makes two states that the FormaSL contract treats as distinct observationally indistinguishable without explicit authorization.
Forbidden examples include:
Claim -> Fact
GraphMembership -> Truth
ComputedResult -> Claim
Unknown -> False
Hidden -> Nonexistent
Receive -> Accept
Retransmit -> Reassert
Conformance -> Admission
Admission -> Authorization
Permission -> Occurrence
ReferenceToOccurrence -> Actuality
ExecutionSuccess -> ExternalEffect
Observation -> Truth
Assumption -> Claim
Hypothetical -> Baseline without promotion
Derivation -> TemporalPrecedence
Causation -> Provenance
Inheritance -> Subtyping
FrameTransform -> FrameCompatibility
StorageWrite -> SemanticAuthority
.fsp choice -> semantic redefinition
OldClaim -> NeverExisted
Semantic erasure is a correctness defect.
20. Continuity failure classes
Reviews SHOULD distinguish at least:
SCF-1 semantic type/kind erasure
SCF-2 attribution erasure
SCF-3 qualification erasure
SCF-4 dependence/provenance erasure
SCF-5 conflict erasure
SCF-6 identity erasure
SCF-7 lifecycle erasure
SCF-8 history erasure
SCF-9 normative-role erasure
SCF-10 hypothetical-status erasure
SCF-11 completion-status erasure
SCF-12 source/realization authority erasure
21. Continuity witness requirement
Every significant FormaSL feature SHOULD have at least one positive continuity witness and one erasure counterexample.
input semantic state
-> transformation
-> output semantic state
-> show required distinctions recoverable
and:
naive realization
-> distinction disappears
-> identify violated invariant
These witnesses should later feed Agda obligations and executable conformance tests.
22. Relationship to V1
V1 is evidence, not the continuity authority.
A relevant V1 behavior may be classified as:
SEMANTIC-EVIDENCE
BEHAVIORAL-EVIDENCE
FORMAL-EVIDENCE
COUNTEREXAMPLE
ARCHITECTURAL-LESSON
IMPLEMENTATION-TECHNIQUE
REGRESSION-CORPUS
HISTORICAL-ONLY
Preserve validated semantic knowledge and capability where justified. Do not preserve incidental V1 factorization merely because it already exists.
23. Relationship to Agda and implementation
Agda should formalize already-decided continuity obligations rather than mirror Rust structure.
Implementation MAY optimize, intern, normalize, index, cache or physically co-locate semantic data as long as required distinctions remain recoverable.
Physical equality does not establish semantic equality.
24. Feature admission gate
Before adding a semantic-core feature, ask:
- Does its absence make a required semantic distinction impossible to express?
- Is the distinction expressible locally but lost across existing transformations?
- Is a reconstructible semantic path required for verification/accountability?
- Would absence force computation to leave the FormaSL semantic domain and re-enter with material loss?
If none applies, the proposal may belong to syntax sugar, libraries, tooling, runtime architecture or optimization rather than the semantic core.
25. Success criterion
A FormaSL computation is semantically continuous when a competent downstream component can interpret and, where required, verify its result without guessing semantic information that was available earlier but silently erased by intermediate transformations.