Goal and grounding
Add a scoped source-to-machine-code secrecy guarantee under #623/#625. Main omc currently emits ordinary branches, loads and traps; no constant-time guarantee follows from source language safety. omnet main 505709e3785bdb92edbedf691f3b830f99bd7de1 explicitly marks om/argon2/argon2.om as not audited; om/ed25519/ed25519.om is public-input variable-time verification, including early equality exit. Public-only verification is not automatically a secret leak, and this issue must not silently repurpose it for signing/secrets.
Implement
- Specify secret/public information-flow labels, permitted disclosures, and an explicit observation model: branches, addresses, loops, traps/errors, instruction latency assumptions and relevant I/O. Track secret influence transitively through helpers and data structures.
- Reject secret-dependent forbidden operations or lower through qualified constant-time primitives. Variable-time public-input routines require public input; a secret-to-public cast is not authorization to disclose.
- Establish a relational source contract and preserve it through the actual native lowering/optimization path. Reuse #623's independent checker/certificate machinery; bind exact output bytes, target, optimizer, leakage model and assumptions.
- Ordinary output equivalence/trace inclusion and an IR no-trap proof are insufficient. Add a nondeterminism fixture where source allows {0,1} independently of a secret but faulty compilation selects the secret bit: per-run inclusion holds, secrecy fails.
- Freeze the first architectural leakage model and explicitly separate speculative, cache/shared-resource and other physical models. Never advertise an architectural proof as physical timing immunity. Unsupported targets reject the stronger claim.
- Start with a small secret-comparison primitive and one actual secret-consuming omnet path; audit the crypto dependency closure before expanding claims. Preserve existing public verification semantics and vectors.
Acceptance
- Paired executions agree on allowed observations for different secret inputs; check secret branches, early exits, table indexes, variable divisions, errors and helper-call leakage.
- Mutated compiler output that reintroduces a secret branch/address is rejected despite identical functional outputs. Wrong target/bytes/model/disclosure policy or checker version invalidate evidence.
- Source fixtures, machine-code checks and target measurements are separate results. Statistical timing tests are regression evidence, not proof.
- Runtime scheduling/allocation/reclamation secrecy is supplied by the linked resource-envelope leaf; component crypto proofs alone do not close service secrecy.
Research: https://doi.org/10.1145/3729318 (nondeterministic CT compilation); https://doi.org/10.1145/3763101 (hyperproperty-preserving optimization); https://doi.org/10.1145/3704880 (speculative CT); https://doi.org/10.1109/SP40001.2021.00003 (SeLoC). Name exact theorems and assumptions used.
Delivery contract
Parent: aien-dev/omega-mv#673. Additive scoped work; preserve existing programme, compiler, authority/store, verifier and publication owners. Reconcile main, live branches/PRs, issue comments and applicable repository instructions before edits. One writer per shared path. New first-party implementation, test and runner logic is seeded .om; independent third-party provers/Wolfram may be development oracles outside the delivered runtime. No second compiler, scheduler, authority or store. Version semantic changes; qualify consumers before removing superseded active implementations; preserve historical evidence.
Separate implementation status from assurance: formal proof, exact finite-model result, differential tests, native/emulated run and hardware qualification are distinct. Unknown/timeouts/build errors/missing evidence never establish safety. Record exact source, semantic profile, compiler, target, executable, checker, model/config/fixtures, raw commands/exits and independent final-source review. No deployment or live workload interruption is authorized by this issue.
Linked dependencies
Contracts/checker: #625 and #623. Service-level observation composition: #759. Consumer and secret-path qualification: aien-dev/omnet#3.