Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/blob/main/formal/invariants/SCHEMA.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / formal / invariants / SCHEMA.md` 42 lines ยท 3675 bytes Raw Blame History Rendered 1 # Invariant manifest schema (version 0, provisional) 2 3 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). 4 5 One TOML file per invariant, named `--v.toml`. The invariant ID survives migration between oracles and implementations. Lean theorem names, Rust function names, and file offsets do not identify an invariant. 6 7 ## Fields 8 9 | Field | Type | Meaning | 10 |---|---|---| 11 | `schema_version` | integer | Manifest format version. `0` today. | 12 | `id` | string | Stable ID, `AIEN.INV...V`. Never reused for a different meaning. A changed meaning gets a new `V`. | 13 | `version` | integer | Same `N` as in the ID. | 14 | `status` | string | `PROPOSED`, `SEEDED`, or `ACTIVE`. `SEEDED` = text written, no oracle model yet. Nothing here is `ACTIVE` until an oracle result is bound to evidence. | 15 | `statement` | string | The invariant in plain words, implementation neutral. | 16 | `assumptions` | array of strings | What is taken as given (for example cryptographic soundness). | 17 | `semantic_types` | array of strings | The abstract kinds of thing the statement ranges over. | 18 | `positive_examples` | array of tables | Cases that must be accepted. Each has `name` and `description`. | 19 | `negative_examples` | array of tables | Cases that must be rejected. Same shape. | 20 | `counterexamples` | array of tables | Known violation patterns a correct checker must catch. Same shape. Failed receipts and counterexamples are preserved, never deleted. | 21 | `required_counterexamples` | array of strings | Names of `counterexamples` that a mutant suite must kill for the invariant to count as covered. | 22 | `implementation_surfaces` | array of tables | Where the invariant is currently expected to hold. Fields: `repo`, `path`, `kind` (`production`, `reference`, `executable_spec`), `observed_at` (commit), `note`. | 23 | `observations` | array of tables | Facts 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. | 24 | `oracle_models` | array of strings | Which oracles are planned to check it (`lean` today). A name here is a plan, not a result. | 25 | `evidence_requirements` | array of strings | What evidence is needed besides any proof (tests, mutants, differential runs, receipts). | 26 | `omega_takeover_condition` | string | The condition under which Omega replaces every oracle for this invariant. Required before an oracle proof is accepted. | 27 28 ## Rules 29 30 - Observed implementation and proposed invariant stay separate: `statement` is proposed, `observations` is what the code does today. 31 - Cryptographic correctness is an assumption unless a separate invariant covers it. 32 - A manifest is not evidence. It never records PASS or FAIL. Results live in the evidence machinery and cite the invariant `id`. 33 - Paths in `implementation_surfaces` are relative to the named repository and were checked on the commit in `observed_at`. 34 - No manifest may contain `--skip-proof`, `--trust-model`, or `--assume-safe` style escape hatches (ARCH-0027, RSI rule). 35 36 ## Index 37 38 - `capability-attenuation-v1.toml`: AIEN.INV.CAP.ATTENUATION.V1 39 - `capability-revocation-v1.toml`: AIEN.INV.CAP.REVOCATION_CLOSURE.V1 40 - `artifact-receipt-v1.toml`: AIEN.INV.RECEIPT.REJECTION_CONSISTENCY.V1 41 - `sequence-stale-id-v1.toml`: AIEN.INV.SEQUENCE.STALE_ID.V1 42 - `kv-layout-bounds-v1.toml`: AIEN.INV.KV.LAYOUT_BOUNDS.V1