interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / formal / invariants / SCHEMA.md

42 lines · 3675 bytes Raw Blame History Source

Invariant manifest schema (version 0, provisional)

This directory is the implementation-neutral registry of formal invariants (ARCH-0027, FORMAL-1). A manifest says what must be true, in AIEN terms. It never contains Lean, Rust, C, or Omega source. The semantic content is meant to be permanent; this file format is not (ARCH-0027 says the format may change, the invariant IDs may not).

One TOML file per invariant, named <area>-<name>-v<N>.toml. The invariant ID survives migration between oracles and implementations. Lean theorem names, Rust function names, and file offsets do not identify an invariant.

Fields

FieldTypeMeaning
schema_versionintegerManifest format version. 0 today.
idstringStable ID, AIEN.INV.<AREA>.<NAME>.V<N>. Never reused for a different meaning. A changed meaning gets a new V<N>.
versionintegerSame N as in the ID.
statusstringPROPOSED, SEEDED, or ACTIVE. SEEDED = text written, no oracle model yet. Nothing here is ACTIVE until an oracle result is bound to evidence.
statementstringThe invariant in plain words, implementation neutral.
assumptionsarray of stringsWhat is taken as given (for example cryptographic soundness).
semantic_typesarray of stringsThe abstract kinds of thing the statement ranges over.
positive_examplesarray of tablesCases that must be accepted. Each has name and description.
negative_examplesarray of tablesCases that must be rejected. Same shape.
counterexamplesarray of tablesKnown violation patterns a correct checker must catch. Same shape. Failed receipts and counterexamples are preserved, never deleted.
required_counterexamplesarray of stringsNames of counterexamples that a mutant suite must kill for the invariant to count as covered.
implementation_surfacesarray of tablesWhere the invariant is currently expected to hold. Fields: repo, path, kind (production, reference, executable_spec), observed_at (commit), note.
observationsarray of tablesFacts read from code, kept apart from the proposed statement. Each has surface and text. Where code differs from the statement, a divergence entry says so.
oracle_modelsarray of stringsWhich oracles are planned to check it (lean today). A name here is a plan, not a result.
evidence_requirementsarray of stringsWhat evidence is needed besides any proof (tests, mutants, differential runs, receipts).
omega_takeover_conditionstringThe condition under which Omega replaces every oracle for this invariant. Required before an oracle proof is accepted.

Rules

Index