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 / docs / adr / 0017-argus-defensive-plane.md

514 lines · 65399 bytes Raw Blame History Source

ADR 0017: ARGUS Is the Defensive Plane; It Observes, Detects, and Proposes, but Never Authorizes

Status: Accepted by operator Drake Stapleton, 2026-09-29. Amended 2026-09-29 after the hostile review and the first live performance measurement (event ABI v1.1); amended again 2026-09-29 with the final ARGUS-0 gate results (performance gate FAIL, ARGUS-0 not complete), the authority observer hook, the reconciled milestone ladder, and the ARGUS-1 pre-registration pointer; amended a third time 2026-09-29 with the closing ARGUS-0 results (speed test passes with a condition, runtime findings gone, 2% target amendment pending Drake). Date: 2026-09-28 (amended 2026-09-29) Status 2026-09-29: ARGUS-0 is complete under documented limits: 9 of its 10 checks pass outright, and the other two ("hostile review" and "performance") pass with their limits written down (section 13). ARGUS-1 (containment, section 17) has its specification pre-registered, meaning its tests were fixed in writing before any code (aienos #162 and #163), and its code has started. One new operator setting exists, RX_ARGUS_CONSUMER_CPU (values auto, none, or a list of cores), which chooses the processor core the watchman's reader runs on; the hostile review records it as something that can only make things slower if set badly, never something that widens what ARGUS is allowed to do. Related: ADR 0005 (effect broker), ADR 0006 (vault-only secrets), ADR 0013/0014 (FORGE realizes, AEGIS verifies, AIENOS owns capabilities), ADR 0015 (resident semantic store), ADR 0016 (resident reaction architecture; §31 failure containment), docs/07-security-effects-secrets.md. Implementation home: aien-dev/aienux, directory native/argus/, beside native/capability/ (the C capability authority). Shared contract: native/argus/argus_abi.h (event ABI version 1, revision 1.1: same 128-byte layout, new rules). Citation: from other repositories, cite this decision as ARCH-0017.


In plain words (read this first)

AIEN already has a quality-control inspector at the door. AEGIS verifies compliance against system law, stamping approval when invariants are satisfied, and the capability authority in AIENOS hands out the permission slips (capabilities) and takes them back. What AIEN does not yet have is a watchman: something that keeps an eye on the whole building, notices when something happens that should be impossible (a revoked permission slip that still worked, a forged one, a program that changed after it was approved, a machine that is not who it says it is), writes it down in a tamper-evident log, and raises the alarm.

That watchman is ARGUS. The one-line rule is:

AEGIS protects authority. ARGUS protects the system.

ARGUS can see and report. It can ask for something to be locked down. It can never lock anything down by itself, never grant or refuse permission on its own opinion, and never slow down or stop AIEN's ordinary thinking. If the watchman falls asleep, crashes, or falls behind, the building keeps running; only the one door whose safety depended on the watchman closes.

What Drake is being asked to ratify:

  1. The boundaries: what ARGUS is responsible for, and the explicit list of things it must never become (section 11).
  2. The chain for locking something down: ARGUS proposes, AEGIS verifies against policy, the existing authority carries it out, and evidence is always written (section 4).
  3. The shape of a security event (a fixed 128-byte record with no secrets in it), who is allowed to write one, the rules that decide whether an event is believed and applied, and what happens when events arrive faster than ARGUS can read them (section 6, with the gaps that remain in section 16).
  4. The speed and failure promises (sections 7 and 8). The speed test now passes the 5% limit I set in advance, with one condition. The first design made AIEN's permission checks about 60% slower. The redesign ("report changes, count routine use") brought a real test suite (R8) down to about 6% slower, which failed. The cause was then found: the watchman's reader was not using up processor time, it was jostling AIEN's own workers for the same processor cores. With the reader given a core of its own that the workload does not use (the shipped default setting does this automatically), the real test suite runs 3.87% slower (400 measured rounds; I am 95% sure the true figure is between 3.27% and 4.47%), which is inside the 5% limit. Without a spare core it is 5.31% slower and fails. The individual permission check shows no measurable slowdown at all. Section 7.4 has the numbers. I do not loosen the limit to make it pass; that is still true: the 5% limit was not changed, and only Drake can change a target. The separate, stricter 2% engineering target is met on the measure the ADR defines but not on the test-suite clock; Drake is asked to decide which reading counts (section 7.5).
  5. That the first milestone, ARGUS-0, is only the foundation: the event format, the bounded queues, the watchman's memory, and the "this should be impossible" checks. It can be switched on inside Omega's runtime for testing (off by default), and it does not lock anything down. ARGUS-0 is finished, under written-down limits: 9 of its 10 checks pass, counting the hostile review and the speed check, which pass with their limits written down; the "runs inside the real system" check now passes with no open findings (section 13).
  6. The six known gaps between the original brief and the code, and how each is handled: four standing, one resolved, and one new (the speed target: the first design missed it badly; the final design meets the 5% gate when the reader has its own core, and the 2% target question is open for Drake) (section 14).
  7. That the next milestone, ARGUS-1 (the watchman may ask AEGIS to take back one kind of permission slip), has its tests fixed in advance in a written plan; now that the speed check has passed, its code has started (section 17).

Everything below is the precise version of those seven points.


Words used in this document


Part I: Decision record

Context

ADR 0016 made AIEN, Omega, and AEGIS faculties of one resident reaction system. AEGIS became the constitutional authority faculty: it verifies compliance against capability invariants, and only the capability root turns an authorized request into an enforceable capability. ADR 0016 §31 requires that the system can stop a bad region "even if adaptive cognition is unhealthy", and §20 to §22 require that every consequential transition is causally traceable without logging everything as text.

Nothing today watches the system as a whole for violations that no single decision point can see: a capability used after its revocation was recorded, a generation that went backwards, a World commit that skipped a generation, an artifact whose digest changed after admission, a credential lease used by the wrong subject. Each producer checks its own rule at its own boundary. Nobody cross-checks the producers against each other and against history.

As of 2026-09-28, no ARGUS type, queue, detector, or document exists in any repository. The canonical authority is C (native/capability/aienos_capability.{c,h} in aienos; Omega links it). Omega's runtime has its own C policy faculty (rx_aegis) and generation store (rx_generation).

Decision

The following statements are locked. No ARGUS milestone may contradict them.

  1. ARGUS IS A DEFENSIVE PLANE, NOT AN AUTHORITY. It observes security events, keeps deterministic shadow state, detects violations of hard invariants, records evidence, and proposes containment. It never mints, validates, re-checks, grants, or revokes a capability.
  2. AEGIS PROTECTS AUTHORITY. ARGUS PROTECTS THE SYSTEM.
  3. A FINDING IS EVIDENCE, NEVER AUTHORITY. A CONTAINMENT REQUEST IS A PROPOSAL, NEVER AN ACTION.
  4. ARGUS NEVER SITS IN THE PATH OF AUTHORIZED WORK. Its failure, lag, or overflow never freezes authorized AIEN work. Fail-closed happens only at the one authority boundary that depended on the missing evidence, and only where policy said so in advance.
  5. SECURITY EVENTS ARE FIXED, SMALL, SECRET-FREE, AND DETERMINISTIC. 128 bytes, digests instead of payloads, no wall clock in anything that is hashed.
  6. EVERY FINDING AND EVERY CONTAINMENT DECISION LEAVES EVIDENCE, chained so that removal or reordering is detectable.

Part II: Normative standard

The words MUST, MUST NOT, SHOULD, and MAY carry their usual normative meaning.

1. ARGUS responsibility

ARGUS is responsible for exactly five things:

DutyMeaning
ObserveReceive security events from producers (the capability authority, AEGIS, the World/generation store, the effect broker, and later the credential vault, provider registry, artifact admission, and Fabric) through a bounded queue.
RememberMaintain resident, deterministic shadow state: what capabilities it has seen minted and revoked and at what generation, which machines joined with which identity, which artifacts were admitted with which digest, which leases exist for which subject and scope, which providers are quarantined, and which World generation was last committed.
DetectRun detectors over each event against the shadow state as it stood before that event, and emit findings. In ARGUS-0 every detector is a hard invariant with deterministic confidence.
RecordAppend every accepted event and every finding to a digest chain, so that deletion, insertion, or reordering of the record is detectable.
ProposeFor a finding that warrants it, build a typed containment request and hand it to AEGIS.

ARGUS answers the question "did something happen that the rules say cannot happen, and what is the evidence?" It does not answer "is this allowed?" (AEGIS and the authority do) or "what does this mean?" (Omega and Cortex do).

2. The separations

2.1 ARGUS and AEGIS

AEGISARGUS
Protectsauthority: who may do whatthe system: that what happened is consistent with the rules and the record
Decidesnothing (verifies compliance: evaluates GRANT, DENY, ESCALATE, REVOKE against system invariants)nothing; it reports
Holdsverification rules; the capability root holds the admin handleshadow copies of outcomes only
Actsthrough the capability rootnever; it proposes to AEGIS
When it is busywhen authority changescontinuously, off the hot path

Normative rules:

2.2 ARGUS and the World

The World (the generation-addressed object world of ADR 0015/0016) is the system's state. ARGUS is not part of it.

2.3 ARGUS and Cortex

Cortex remembers meaning. ARGUS remembers security facts.

2.4 ARGUS and Fabric

Fabric is the set of machines working as one. ARGUS on each machine watches that machine's events.

3. Hard invariants

A hard invariant is a rule whose violation is never legitimate: if the event and the shadow state disagree in this way, something is broken or someone is attacking. ARGUS-0 defines sixteen, each with a stable code that is append-only and never renumbered. Codes 1 to 12 are the original set; codes 13 to 16 were appended by this amendment after the hostile review:

CodeFindingPlain meaning
1Forged capabilityA capability reference was used or granted that ARGUS never saw minted, or the authority itself said it was forged.
2Stale generationA reference's generation is older than the current generation ARGUS knows for that slot.
3Revoked capability usedARGUS saw the revocation, then saw a use reported as successful.
4Artifact digest unexpectedSomething began executing whose digest was never admitted, or an admitted digest changed.
5Signature invalidA producer reported a signature failure on a trusted-path object.
6Credential scope violationA credential lease was used successfully by another subject or outside its scope.
7Machine identity mismatchAn event's machine identity is not the one recorded at join, or the machine is unknown.
8Effect class unauthorizedA successful operation had an effect class (ephemeral, evidence, external) beyond what the capability's rights permit.
9World provenance inconsistentFor one store: a World commit skipped ahead or went backwards, or repeated an already-committed generation with a different digest. A repeat with the same digest is the same fact reported twice: it is idempotent and silent, not a finding. A commit is adopted only at the prior generation plus one (or as the store's first commit); a flagged commit is never adopted, so a forged skip cannot drag the record along. World records are kept per store id.
10Quarantined useA provider or machine was used successfully after quarantine.
11Telemetry lossCRITICAL or SECURITY events were dropped: there is a gap in the evidence.
12Sequence anomalyA producer stream replayed or reordered its sequence numbers. (A gap is not a finding: gaps are expected when the queue refuses events, and refusals are counted separately.)
13Authority replayA grant arrived that is not strictly newer than what ARGUS already holds for that slot, or a revocation arrived for a slot ARGUS never saw issued. Raised by the core's apply step; the event is not applied.
14Subject mismatchA capability was used successfully by a principal other than the one it was granted to.
15Trust escalationAn event tried to raise a machine's trust level (or a joining machine declared itself more trusted than "observed"). The raise is ignored.
16Malformed eventThe event failed validation. Raised by the core; the event is neither applied nor chained, but the finding itself is recorded.

The list of hard invariants is exactly this table. Adding one is an append to the table under ADR amendment (codes 13 to 16 are such an append); removing or renumbering one is forbidden.

4. Containment authority

Containment means limiting damage: revoking a capability, freezing or restricting a principal, quarantining a machine or provider, revoking a credential lease, rejecting an artifact, requiring re-attestation, raising the effect class a principal needs, or pausing external effects. The chain is fixed:

  1. ARGUS proposes. It builds an ArgusContainmentRequest: incident id, recommended containment class, severity, finding code, principal, target capability reference (AienosCapRef layout), machine identity, and the digest of the finding that justifies it.
  2. AEGIS verifies. AEGIS evaluates the request against immutable system rules and authorization invariants (acting as quality control, deciding no policy of its own). It may confirm compliance, reject compliance, or escalate to the operator. AEGIS MAY decline, and declining is itself recorded.
  3. The canonical executor acts. Only the component that already owns the power carries it out: the capability root revokes, AIENOS cancels workers or resets a GPU (ADR 0016 §31), the provider registry quarantines, the effect broker pauses external effects. ARGUS never gets a second, private way to do any of these.
  4. Evidence always. The finding, the request, AEGIS's decision (including a refusal), and the executor's result are all recorded and chained. There is no containment without evidence, and no silent refusal.

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 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

By default ARGUS is asynchronous: a producer writes an event into the queue and continues immediately. Detection happens later, off the producer's path. The consequence of a finding (a containment request) arrives after the fact.

Synchronous action means an authority boundary refuses an operation in the moment, citing an ARGUS invariant. It is allowed only under all of these conditions:

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 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

6.1 The event

Every security event is an ArgusEvent of exactly 128 bytes, with the version byte first. It contains no pointers, no variable-length fields, and no field sized like a secret. Its fields, in plain terms:

Event kinds have stable numbers that are append-only. Revision 1.1 appends one kind, the capability use summary (section 7). Unknown kinds, classes, or outcomes, or any event that breaks a validate rule (section 6.9), make the event malformed; malformed events are rejected, never guessed at, and raise finding 16.

6.2 Time and determinism

6.3 Classes and drop policy

Events carry one of four classes that say what happens when the queue fills:

ClassWhen the queue is under pressure
CRITICALNever dropped silently. May use the full queue capacity. If it still cannot be queued, a sticky overflow counter is set and ARGUS raises a telemetry-loss finding (code 11): the evidence gap itself becomes evidence.
SECURITYRefused above the SECURITY watermark, and counted. Loss raises code 11.
AUDITRefused above the lower AUDIT watermark, and counted.
INFORMATIONALFirst to be refused, and counted.

Pushing onto the queue MUST never block the producer; a full queue returns "full" immediately. Refusal counts are turned by the reading side into TELEMETRY_DROPPED events marked as synthesized by ARGUS, so that loss enters the same chained record as everything else. Only ARGUS itself may produce such a loss report: the "made by ARGUS" mark is rejected on any other kind and on anything arriving from a producer, so nobody can forge an evidence gap. The queue also refuses an event whose class is weaker than its kind allows (section 6.8); those refusals are counted apart and are never reported as loss.

A producer cannot dodge this policy by mislabelling: every kind has a minimum class (section 6.8), so a revocation cannot be labelled informational and quietly dropped first.

6.4 No secrets, digests not payloads

An event carries digests and identifiers, never contents. Specifically it MUST NOT carry a capability token, a credential, a key, a prompt, a model input or output, or any payload. Where content matters, the event carries a SHA-256 digest of it.

6.5 Who may write an event (producer trust boundary, v1)

In ARGUS-0 an event's fields are believed because of where it came from, not because it proves anything. The rule is therefore about who can reach the queue:

6.6 Streams

Each producer thread owns its own queue and its own stream id (14 bits carried in the flags word; 0 is the default stream). ARGUS keys sequence checking by (machine, stream id, the "made by ARGUS" mark), so each thread counts its own sequence from 1 and never shares a counter or a lock with another thread. Replays and reordering are detected per stream (code 12).

6.7 Capability 0 and "no capability"

Slot 0 in the authority is the office capability, the authority's own standing credential. It is a real capability and ARGUS checks its use like any other. "This event concerns no capability" is a separate reserved value that can never be a real slot. (The first design used 0 for "none", which would have hidden every use of the office capability.)

6.8 Minimum class per kind

Every kind has a weakest class it may carry. Producers may label an event stronger than its minimum, never weaker; a weaker label is malformed, both at validation and at the queue.

Minimum classKinds
CRITICALcapability revoked, credential lease revoked, artifact rejected, external effect committed, machine trust changed, machine removed, provider quarantined, policy changed, runtime build changed, integrity violation, signature failure, stale generation, forged capability, telemetry dropped
SECURITYcapability granted, capability denied, credential lease created, artifact admitted, artifact activated, machine joined, provider discovered, provider changed, external effect requested, external effect denied, World committed
AUDITcapability used, capability use summary, credential lease used, provider used

No version 1 kind has an INFORMATIONAL floor. The INFORMATIONAL class exists for future kinds; today nothing may fall to it.

6.9 Validate rules (is the event well formed?)

Before anything else, an event is rejected as malformed (code 16, not applied, not chained) if any of these hold:

6.10 Apply rules (what ARGUS believes after an event)

Detectors look at the state before the event; then the core decides whether to fold the event into its shadow state. The rules below close the hostile review's findings that one event could switch an invariant off:

Every table that fills up is counted and visible in ARGUS's health report (untracked incidents, untracked streams, full tables, events not applied). A full table is never reported as ARGUS losing evidence it did not lose.

7. Performance invariants

The hot path is what a producer does on AIEN's own time. In revision 1.1 that is, for a routine successful use, one update of a per-thread use table (a count and two generations); for a transition, building one event and pushing it onto the thread's own queue. On the hot path ARGUS MUST NOT use a model, Cortex, a database, disk, network, the TPM, a blocking write, or a lock shared between threads, and SHOULD NOT allocate memory. The reading side (detection and chaining) runs resident, over bounded tables sized at start, with no allocation after start.

Engineering targets:

7.1 What was measured (first design, lane H, 2026-09-29)

The first design sent one full 128-byte event for every capability check. Lane H wired it into Omega's runtime and measured it on the Spark, pinned to one fast core, on a capability check that on its own takes about 24 nanoseconds (policy decision plus World capability check):

SettingChecks per secondChangep50 / p99 per check
ARGUS off41.4 millionbaseline48 / 64 ns
ARGUS on, one event per check16.5 million-60%80 / 96 ns

The 2% target failed by a factor of thirty. The measurement, not intuition, drove the redesign below.

7.2 The redesign: emit on transition, count on use

What this gives up: a use of a revoked capability is detected at the next flush rather than at that instant, and the summary does not say which of the N uses was first. Neither weakens a hard invariant; synchronous refusal (section 5) never depended on the asynchronous stream.

7.3 Re-measurement (the gate)

The 2% and 5% targets MUST be re-measured on revision 1.1, twice:

If the micro-operation still cannot meet 2%, the evidence is documented and the target is revised by ADR amendment. The benchmark is never tuned to make a number pass.

7.4 Result of the re-measurement: PASS with a documented condition (2026-09-29)

Final result (speed round 2, omega evidence cf6f45d, merged as omega #70). Same pre-stated criterion, unchanged: at most 5% on the micro-operation and at most 5% on R8 wall clock, measured in paired, interleaved off/on rounds.

MeasurementResult
R8 wall clock, reader on its own core (RX_ARGUS_CONSUMER_CPU=auto, the shipped default: it picks a core outside the set of cores the process runs on)+3.87% (95% confidence interval +3.27% to +4.47%, 400 paired rounds; two runs of +4.06% and +3.68%). PASS.
R8 wall clock, reader not placed (RX_ARGUS_CONSUMER_CPU=none)+5.31% (interval +4.74% to +5.89%). FAIL.
Micro-operation (the ~24 ns permission check)No measurable loss; p50 / p99 per check 48 / 64 ns, unchanged.

History: the first re-measurement failed (kept for the record). Revision 1.1 was re-measured by the Omega producer lane (branch feat/argus-producer, draft omega#70, evidence commit 20e84b8) on the Spark's fast cores, in interleaved off/on rounds run under a file lock. The criterion stated before measuring was at most 5% on the micro-operation and at most 5% on R8 wall clock. That is looser than the 2% engineering target above, and R8 misses both.

MeasurementARGUS offARGUS onChange
Micro-op, emit only, no reader (RX_ARGUS=1)41.57 M checks/s43.75 M+5.2% (faster; noise)
Micro-op, reader ingests and seals (RX_ARGUS=2)41.57 M40.34 M-3.0% (median)
Micro-op, reader drains and discards (RX_ARGUS=2)41.57 M38.92 M-6.4% (median; -3.1% mean)
Micro-op p50 / p99 per check48 / 64 ns48 / 64 nsunchanged in every mode
Producer emit cost alone2.25 ns p50
R8 host suite wall clock (30 interleaved rounds)36.00 ms38.23 ms+6.2% (95% CI about +4% to +8%)

7.5 The 2% target: amendment pending Drake's decision

The 2% target in section 7 reads "throughput reduction on an instrumented AIEN workload".

Section 7.3's rule applies: the evidence is documented here, and the target may be revised only by ADR amendment. This ADR does not change the target. Amendment pending Drake's decision: keep 2% as a clock target for a future steady-state benchmark, or restate the target as the micro-operation metric.

8. Failure behavior

ARGUS conditionEffect on AIEN
ARGUS crashesAuthorized work continues. Producers keep pushing; the queue fills; drops are counted by class. On restart ARGUS records the gap as a telemetry-loss finding.
ARGUS lagsSame as above. The producer is never made to wait.
Queue overflowsLower classes are refused first; CRITICAL loss sets a sticky flag and becomes a finding.
A synchronous-eligible check cannot completeOnly that operation at that one authority boundary fails closed, and the refusal is recorded.

ARGUS MUST NOT freeze, pause, or slow authorized AIEN work because ARGUS itself is unhealthy. The failure of the watchman is recorded; it is not a reason to stop the building.

What the live runs showed (2026-09-29, final). Omega was moved onto the AIENOS capability authority from aienos main (d39dd5b), whose permission-slip generations are 64 bits wide and start from a floor set at boot time, so a second authority, or a restart, never reuses a number an earlier one used. After that move the two "replayed grant" findings (code 13) are gone: R7, R8, and R9 each show 0 findings, with 0 events refused, lost, or late, and every recorded stream replays to the same fingerprint. One side effect: because generations now start from the clock, R7's event stream is no longer byte-for-byte identical from one run to the next. That does not affect replay: replaying the same recorded stream still always gives the same result, and with the generation numbers masked the two runs match event for event.

9. Evidence

10. Data minimization

ARGUS keeps the minimum needed to detect the sixteen invariants: identifiers, generations, states, rights masks, scopes, sequences, and digests. It keeps no contents, no secrets, and no free text on the detection path. This is enforced by a test: no field in the ARGUS contract is sized like a capability token, and the capability token length constant does not appear anywhere in ARGUS code. Finding and event records follow ADR 0006 and docs/07-security-effects-secrets.md: no plaintext secret in logs, receipts, Cortex, or World state.

11. What ARGUS does not do

This list is normative. Any design that makes ARGUS do one of these is rejected.

12. Findings and confidence

A finding (ArgusFinding) records the finding code, severity, confidence, whether policy permits synchronous refusal for it, the recommended containment class, the detector, the triggering event's sequence and digest, the earlier evidence event's sequence (for example the revocation), the principal, capability reference, and machine identity.

Confidence has three levels. Deterministic is the only level permitted in ARGUS-0 and the only level that may ever justify synchronous refusal. Statistical is reserved for ARGUS-5 and later. Hypothesis is reserved for the hunting rung. A non-deterministic finding MUST NOT appear in ARGUS-0.

13. Milestone ladder

Only the ARGUS-0 scope is binding in this ADR. Later rungs are a proposed order, set by what must exist first; each is ratified separately before it starts.

Reconciliation (2026-09-29). Earlier documents numbered the rungs differently: the originating brief put containment at ARGUS-2 in its §4 and at ARGUS-1 in its §9; a handoff note put producer attestation at ARGUS-3; the ARGUS-1 plan called Fabric quarantine ARGUS-2; and this section's own earlier draft put a "measured performance gate" at ARGUS-2 although that gate is an ARGUS-0 exit gate. This table governs and replaces all of those. ARGUS-1 is containment. Producer attestation joins ARGUS-3 (evidence). Fabric and machine identity stay at ARGUS-7. The performance gate belongs to ARGUS-0. Nothing in the ARGUS-1 specification depends on a rung number; it depends only on the capability authority's observer (section 15) and on the facts that producer attestation and Fabric identity do not exist yet.

RungScope
ARGUS-0Substrate 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-1Containment, 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 (PR #171) and dependency-direction checks (PR #172) are merged. G11 passes, and the Spark make test plus make sanitize runs pass. G6 (offline chain checker) remains unfinished; G12 still requires its Mac run, and G13 remains open because its evidence checks depend on G6.
ARGUS-2Live 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-3Evidence 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-4Live 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).
ARGUS-5Statistical detectors, asynchronous only, never synchronous.
ARGUS-6Hardware-rooted checkpoints (after TRUST-1 owner-key chain).
ARGUS-7Fabric: cross-machine evidence correlation, after cryptographic machine identity (section 14 item 3; an operator decision). Until this rung, ARGUS-1's QuarantineMachine and RequireReattestation remain synthetic.
ARGUS-8Operator surface: plain-language incident reports and review of containment decisions (ARGUS-1's ESCALATE is resolved by a test stub until then).
ARGUS-9ARGUS Hunt: hypothesis-driven investigation, off the hot path, findings as hypotheses only.

ARGUS-0 exit-gate status (2026-09-29, final). Nine of ten gates pass, counting HOSTILE_REVIEW and PERFORMANCE_GATE, which pass with documented limits. ARGUS-0 is complete under the documented limits: the speed result needs a spare core for the reader, and the 2% clock target is open for Drake (section 7.5). Gate definitions and full numbers: native/argus/docs/ARGUS0_GATES.md in aien-dev/aienux (branch feat/argus-0, commit c30f168).

GateResultCommitWhere
ARGUS_EVENT_ABI_PASSPASSaienos b375dcaSpark + Mac
ARGUS_EVENT_SECRET_NEGATIVE_PASSPASS (residual: hostile G-12, WEAK)aienos b375dcaSpark + Mac
ARGUS_EVENT_TRANSPORT_PASSPASSaienos b375dcaSpark + Mac
ARGUS_TRANSPORT_SATURATION_PASSPASSaienos b375dcaSpark + Mac
ARGUS_CORE_DETERMINISM_PASSPASSaienos b375dcaSpark + Mac
ARGUS_HARD_INVARIANTS_PASSPASSaienos b375dcaSpark + Mac
ARGUS_FALSE_POSITIVE_BASELINE_PASSPASS (synthetic corpus)aienos b375dcaSpark + Mac
ARGUS_HOSTILE_REVIEW_PASSPASS-WITH-DOCUMENTED-LIMITS: 63 tests = 58 defended, 3 expected-fail (G-5, G-9, G-21), 2 N/A-v1 (G-6, G-7); review sections = 20 DEFENDED, 4 WEAK (G-9, G-12, G-17, G-21), 1 OPEN (G-5), 1 N/A-v1 (G-6)aienos b375dcaSpark (+ASan/UBSan) + Mac
ARGUS_RUNTIME_INTEGRATION_PASSPASS: R7 0, R8 0, R9 0 findings; 0 refused, lost, or late; every stream replays to the same digest (section 8). Was PASS-WITH-OPEN-FINDINGS (R7 2 x code 13) at omega 20e84b8omega 5d98417 (merged as omega #70), authority aienos d39dd5b, detectors aienos b375dcaSpark
ARGUS_PERFORMANCE_GATE_PASSPASS-WITH-DOCUMENTED-LIMITS: R8 +3.87% [+3.27, +4.47] with the reader on its own core; +5.31% (FAIL) without one; micro-operation no loss (section 7.4). Was FAIL (+6.2%) at omega 20e84b8omega cf6f45d (merged as omega #70)Spark, X925 cores

14. Deviations and discrepancies

These are places where the originating brief and the code disagree. Each records what governs.

  1. Language and home. The originating brief assumed Rust crates in aien-sovereign-core. Drake's decision of 2026-09-27 (no Rust anywhere; target C, with assembly only where measured) governs. ARGUS therefore lives in aien-dev/aienux under native/argus/, in C, next to the C capability authority it observes. The existing Rust security crates are slated for removal and are not a base for ARGUS. [Superseded 2026-10-01 by ADR 0024: the "no Rust anywhere; target C" rule no longer applies. Rust is scaffolding, Omega is the destination, C only where hardware-justified. The home of ARGUS in aienos native/argus/ is unchanged.]
  2. Capability generation width. The C authority (AienosCapRef) uses a 64-bit generation. Omega's rx_caproot Linux stand-in uses a 32-bit generation, and so do Omega's generation-store promotion types (RxPromotionRequest.cap_generation and its authorization callback). ARGUS follows the authority: 64-bit, layout-identical to AienosCapRef. The Omega stand-in is not an event source. Omega is now a test-wired producer through the 32-bit authority it pins (c8ab65e) with the observer hook backported onto it (section 15); it must convert the 32-bit generation into the event's 64-bit field. The authority's own observer (12add16) is 64-bit. Before Omega is a live producer (ARGUS-2) it must move to the 64-bit authority or keep converting explicitly. Update (final): Omega has moved: it now pins aienos main d39dd5b, which has 64-bit generations and the observer hook, so no conversion is needed and the backport is deleted.
  3. Machine identity. No MachineId or Fabric identity exists in C. (Omega's omega_machine names an accelerator, not a Fabric member.) The 32-byte machine identity slot in the event is provisional and opaque. Cryptographic machine identity is on the operator's escalation list and is not designed here. Detector 7 checks consistency against whatever was recorded at join; it is not proof of identity.
  4. Producers that do not exist yet. Credential leases, the provider registry, and artifact admission have no C producers (artifact admission exists only in the Rust crate slated for removal). In ARGUS-0, detectors 4, 5, 6, 7, 8, and 10 are exercised by synthetic events, marked with the synthetic flag. Detectors 1 to 3 have live C producers (test-wired in Omega behind a switch; connected for real in ARGUS-1), and detector 9 via the generation store.
  5. World generation width (resolved). The first draft of the event used a 32-bit World generation, matching RxGenObject's object generation, while Omega's generation store identifies whole World generations with 64-bit ids (the active and candidate generation ids). Resolved before ARGUS-0 merged, within event ABI version 1: the event's World generation is 64 bits, the separate object-generation field was dropped, and an object's generation travels in the resource field when a kind needs it. The event stays exactly 128 bytes. No deviation remains.
  6. Performance target not met by the first design. The brief's 2% throughput target could not be met with one full event per capability check: on a ~24 ns check it cost 60% of throughput (section 7.1). The design changed (section 7.2) rather than the target. Re-measured on revision 1.1 (section 7.4), the final result is no measurable loss on the micro-operation and +3.87% on R8 wall clock with the reader on its own core, which passes the pre-stated 5% gate criterion. The 2% target is met on the micro-operation but not on the R8 clock; the target stands, and changing it needs an ADR amendment decided by the operator (section 7.5).

15. Producer coverage

ARGUS can only cross-check what it is told. Grants and revocations are the facts every capability check is compared against, so they must be reported by the one component that actually issues and revokes: the capability authority itself.

16. Remaining open in ARGUS-0

Items 1 to 7 are limits of event ABI version 1 (or of its producers) that the fixes in section 6 do not close; item 8 is the performance condition (a spare core for the reader). Each is known, tested as an expected failure or documented as an accepted risk, and assigned to a later rung.

  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. 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.
  8. Performance needs a spare core. The gate passes (+3.87% on R8) only when the reader has a core the workload does not use; without one it is +5.31% and fails (section 7.4). The 2% clock target is open for Drake (section 7.5).

17. ARGUS-1 pre-registration (pointer)

ARGUS-1 containment has a draft, pre-registered specification (target location native/argus/docs/ARGUS1_SPEC.md in aien-dev/aienux, 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.

Consequences