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/patches/457ecb0276c639cf # 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 ## GitHub aien-dev/aien-architecture-mv#50 (code only) closed derived `457ecb0276c639cf` #50 Imported from GitHub aien-dev/aien-architecture-mv#50 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `ac5b763c3fb6694bc7fc99ae3b4a5586c7678195` · Head `10f042d1390d3a432bbb0f8efe4e402dc6ba88c5` ### Apply it ``` git checkout -b patch-457ecb0276c639cf ac5b763c3fb6694bc7fc99ae3b4a5586c7678195 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/457ecb0276c639cf.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/aien-architecture-mv 50 10f042d1390d3a432bbb0f8efe4e402dc6ba88c5 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":50,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/50","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:06Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/docs/adr/0017-argus-defensive-plane.md b/docs/adr/0017-argus-defensive-plane.md index 19093f3..321cd9c 100644 --- a/docs/adr/0017-argus-defensive-plane.md +++ b/docs/adr/0017-argus-defensive-plane.md @@ -174,7 +174,7 @@ Containment means limiting damage: revoking a capability, freezing or restrictin The containment class ARGUS attaches to a finding is a *recommendation*. It MUST NOT be read as a decision. -ARGUS-0 defines the request type only. ARGUS-1 wires it to AEGIS; its draft specification (section 17) makes the chain above concrete for one containment class, capability revocation, and keeps the other nine typed but not executed. +ARGUS-0 defines the request type only. ARGUS-1 implements one live action: RevokeCapability through a revoke-only executor capability, with success confirmed by the authority observer. The other nine types remain typed; the non-live types use an explicitly labelled synthetic test executor and have no production effect. The bridge records proposals, decisions, authority results, and the evidence chain. The ARGUS-1 specification defines the exact event order and failure codes. ### 5. Synchronous and asynchronous defensive action @@ -189,7 +189,7 @@ By default ARGUS is **asynchronous**: a producer writes an event into the queue A **report is not evidence**. Four event kinds are a producer saying "I saw something bad" (integrity violation, signature failure, stale generation, forged capability). When ARGUS's own shadow state does not back such a report up, the finding is recorded but is never synchronous-eligible and recommends no containment. Otherwise one producer could aim a freeze at any principal it names (the hostile review's "confused deputy"). -The initial policy (which of the sixteen detectors are synchronous-eligible) is recorded with the detector table in code and ratified with ARGUS-1. ARGUS-0 defines the flag and does not wire any synchronous refusal. +The synchronous policy is fixed in the ARGUS-1 specification and compared against `argus_hard_detectors[]` by gate G11. ARGUS-1 wires no synchronous refusal; this gate and the remaining ARGUS-1 exit checks must pass before the milestone is called complete. ### 6. Security event semantics @@ -429,7 +429,7 @@ Only the ARGUS-0 scope is binding in this ADR. Later rungs are a proposed order, | Rung | Scope | |---|---| | **ARGUS-0** | **Substrate only.** Event ABI (revision 1.1), bounded queues (one per producer thread, each single-producer/single-consumer) with class drop policy, resident deterministic shadow state, the sixteen hard-invariant detectors, findings, digest chain, benchmarks, hostile tests, test wiring into Omega's runtime behind a switch that is off by default, and the performance gate. Takes no containment action. **Complete under documented limits** (gate table below). | -| ARGUS-1 | **Containment**, pre-registered in the ARGUS-1 specification (section 17): containment requests wired to AEGIS through a containment authorizer; ESCALATE and decision records (kinds 90 to 93, closing section 16 item 4); synchronous-eligible policy ratified (section 5). Only RevokeCapability is live, executed by the capability authority and confirmed only by the authority's own observer announcement. The other nine types are typed and decided but executed only by a labelled synthetic test executor. Findings 11, 12, 13, and 16 never propose containment, because they describe producers inside the trusted boundary and producer attestation (ARGUS-3) does not exist. Specification pre-registered (aienos #162, #163); code started 2026-09-29 after the ARGUS-0 performance gate passed. | +| ARGUS-1 | **Containment**, specified in section 17. ABI v1.2, core proposal state, the live capability-revoke bridge, synthetic handling of the other nine types, and hostile tests are implemented. Only RevokeCapability has production effect and observer confirmation. Findings 11, 12, 13, and 16 never propose containment while producer attestation is absent. ARGUS-1 remains in progress: the containment corpus is PR #171, and G6 (offline chain checker), full G13 invariant coverage, G11 symbol checks, and the complete G12 sanitizer/regression run are not yet recorded as passed. | | ARGUS-2 | Live producers in Omega's reaction runtime beyond test wiring (switch on in normal runs), with the ARGUS-0 performance criterion held as a regression gate. | | ARGUS-3 | Evidence and producer identity: epoch roots persisted, ARGUS restart and reconstruction from its own chain, and **cryptographic producer attestation** (closes section 16 item 1, hostile G-5). | | ARGUS-4 | Live producers for credential leases, providers (stable provider identity from a provider registry; closes section 16 item 2, hostile G-9), and artifact admission as those exist in C (detectors 4 to 8 and 10 go live). | @@ -490,7 +490,7 @@ Items 1 to 7 are limits of event ABI version 1 (or of its producers) that the fi 1. **No producer identity (hostile G-5, OPEN).** An event does not say, and cannot prove, which producer wrote it. Any code inside the trusted boundary can write a believable event, for example a grant that makes its own later uses look legitimate, or a trigger that frames a principal. Closed by cryptographic producer attestation (ARGUS-3). Until then ARGUS-1 bounds it: every containment type except RevokeCapability needs an operator decision, execution is budgeted, and findings 11, 12, 13, and 16 never propose. 2. **No provider identity continuity (hostile G-9, WEAK).** A provider is identified by its digest, so a quarantined provider that reappears under a new digest looks new. Needs a stable provider id from a provider registry (ARGUS-4). 3. **Class strengthening by trusted producers.** A producer may label an event more urgent than its kind requires (section 6.8). A misbehaving trusted producer could label junk CRITICAL and crowd out SECURITY events in its own queue. Accepted in v1 because producers are inside the trusted boundary and each thread has its own queue. -4. **No ESCALATE kind.** AEGIS can decide GRANT, DENY, ESCALATE, or REVOKE, but the event format has no "escalated to the operator" kind, so escalations are not yet part of the record. The ARGUS-1 specification assigns kinds 91 (CONTAINMENT_DECIDED) and 93 (AUTHORITY_ESCALATED) to close this; open until ARGUS-1 is built. +4. **ESCALATE evidence is defined in ABI v1.2.** ARGUS-1 assigns kind 91 to the authority decision and kind 93 to the explicit escalation record. The kinds and bridge path are implemented; G6 still requires an independent offline checker that validates the emitted chain from observer records, so evidence completeness remains an open ARGUS-1 gate. 5. **Uses carry no rights.** A use event (and a use summary) does not say which rights were exercised, so ARGUS cannot tell a read from a write on the same capability. The effect-class check (code 8) relies on the effect class the producer reports. Needs a rights field in a later ABI revision. 6. **No authority-instance identity (runtime finding, R7 code 13).** A capability is identified by slot and generation only. A second authority instance in the same process, or an authority restart through `aienos_cap_restart`, starts slot generations again at 2, so a legitimate new grant looks like a replayed one (code 13). Fix: an authority-instance component in capability identity (event ABI version 2), or a separate producer namespace per authority start. Code 13 never proposes containment, so this does not affect ARGUS-1's false-positive containment gate. **Update (final):** the authority at aienos `d39dd5b` starts generations from a floor set at boot time, so a second instance or a restart no longer reuses a generation, and the R7 findings are gone (section 8). The event format still carries no authority-instance field, so the underlying limit stays listed here for ABI version 2. 7. **Other hostile-review limits (WEAK).** G-12: the two opaque 32-byte slots (machine identity and evidence digest) could carry a secret if a producer misuses them; the guard is on the producer side. G-17: the queues are single-producer by contract and nothing stops a caller breaking that contract; the threaded tests run clean under TSan with one producer per queue. G-21: a producer can re-key its machine identity to reset sequence tracking (same root as G-5), and ARGUS restart handling is not in ARGUS-0. G-6 (event omission) is out of scope for ABI v1. @@ -500,9 +500,9 @@ Items 1 to 7 are limits of event ABI version 1 (or of its producers) that the fi ARGUS-1 containment has a draft, pre-registered specification (target location `native/argus/docs/ARGUS1_SPEC.md` in `aien-dev/aienos`, with an implementation plan). Pre-registered means its gates are written and fixed before any ARGUS-1 production code exists; changing a gate criterion needs a new specification commit and a full rerun of every gate. -- **Twelve gates, G1 to G12:** ABI v1.2 round trip; proposal determinism; accepted path (live); denied path; refusal tolerance without retry storms; evidence completeness; bounded memory; hot-path non-regression; hostile review of containment; zero false-positive containment (benign corpus plus the recorded R7, R8, and R9 runtime streams); synchronous policy ratified; ARGUS-0 regression. +- **Thirteen gates, G1 to G13:** ABI v1.2 round trip; proposal determinism; accepted and denied live paths; refusal tolerance without retry storms; evidence completeness including an offline chain checker; bounded memory; hot-path non-regression; hostile review; zero false-positive containment across benign and recorded R7/R8/R9 streams; synchronous policy; ARGUS-0 regression; and invariant tests I1-I5. The specification defines the full criteria. The recorded results currently cover G8, G9, and G10; G6, G11, G12, and G13 remain unfinished, and the other gates require their final combined verification before ARGUS-1 can close. - **LIVE = RevokeCapability only.** One of the ten containment types has a real C executor: the capability authority's revoke, called through a revoke-only executor capability, confirmed only when the authority's observer announces the revocation. The other nine are typed and decided for real but executed only by a labelled synthetic test executor. No machine, provider, lease, artifact, policy, or effect-pause containment exists, and no principal freeze exists. -- **Preconditions:** the ARGUS-0 closing commit (all ARGUS-0 gates recorded) and the observer hook merged or pinned. Both are now met: the ARGUS-0 gates are recorded (aienos `c30f168`), the specification is pre-registered (aienos #162, #163), and ARGUS-1 code started on 2026-09-29. +- **Preconditions:** the ARGUS-0 closing commit (all ARGUS-0 gates recorded) and the observer hook merged or pinned. Both are met: the ARGUS-0 gates are recorded (aienos `c30f168`), the specification is pre-registered (aienos #162, #163), and implementation has been reviewed in merged PRs #167-#170. Lane E is under review in #171; passing the remaining gates is still required for closure. ### Consequences ```