aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / docs / plans / analog-realization / ANALOG_ARGUS_TELEMETRY_REQUIREMENTS.md
| 1 | # Analog Realization — ARGUS Telemetry Requirements |
| 2 | |
| 3 | **NOT A MASTER PLAN.** This is a finite workstream document for ADR 0018 (ARCH-0018, PROPOSED), substrate-neutral physical realization. `CURRENT_EXECUTION_PLAN.md` still owns cross-project sequencing (§6 C3, Lane 6), and `doctrine/ROADMAP.md` still owns milestone status. The AR-gates are ADR 0018 workstream gates, not M-milestones. |
| 4 | |
| 5 | **DOCUMENTATION ONLY. NO ABI CHANGE NOW.** Nothing here changes the ARGUS event ABI v1.1, the ARGUS code, or the ARGUS-1 invariants. These are requirements to be queued onto the ARGUS ABI v2 discussion that is already open. |
| 6 | |
| 7 | **Written:** 2026-09-29, from a read-only audit of the commits below. |
| 8 | |
| 9 | | Repository | Commit | |
| 10 | |---|---| |
| 11 | | aienos | `feat/argus-0` `a64bc55` (aienos#160, `native/argus/argus_abi.h`); aienos#162 spec at `1f5fc23` | |
| 12 | | omega | omega#70 at `cf6f45d` (pins aienos `feat/argus-0` `b375dca` via `argus.lock`) | |
| 13 | | aien-architecture | `main` `f6baa35` (ARCH-0017 ARGUS reserved, not on `main`) | |
| 14 | |
| 15 | --- |
| 16 | |
| 17 | ## 1. Roles |
| 18 | |
| 19 | - **ARGUS detects:** observes, records, raises findings. Its containment is advisory. |
| 20 | - **AEGIS verifies:** decides, revokes, quarantines, holds authority. |
| 21 | - **FORGE realizes:** attaches substrates, calibrates them, produces results, and emits the events below. |
| 22 | |
| 23 | ARGUS gains no authority from analog work. The ARGUS-1 invariants (aienos#162) stand unchanged: one-narrow-revoke only (I1), freeze is a labelled stand-in (I2), no whole-system actions (I3), no instant blocking (I4), ARGUS never grows its own authority (I5). |
| 24 | |
| 25 | ## 2. ABI v1.1 in brief (as audited) |
| 26 | |
| 27 | `ArgusEvent` is 128 bytes: version, class (CRITICAL / SECURITY / AUDIT / INFORMATIONAL), kind (u16), effect class, outcome, flags (incl. 14-bit stream id), sequence, tick, principal, code, `cap_id`, `object_id`, `cap_generation` (u64), `world_generation` (u64), `resource` (u64), `machine_id[32]` (PROVISIONAL), `evidence_digest[32]`. Kinds are append-only and stable forever; the highest is `CAPABILITY_USE_SUMMARY` = 81. v2 events are rejected by v1.1 consumers. Finding confidence is DETERMINISTIC only; STATISTICAL is reserved for ARGUS-5+. |
| 28 | |
| 29 | ## 3. The ten observations analog work will need |
| 30 | |
| 31 | "Later version" means either new kinds numbered **above 81** where the 128-byte layout suffices, or **ABI v2** where a new identity field is required. |
| 32 | |
| 33 | | # | Needed observation | Nearest v1.1 kind | How a later version could carry it without breaking v1.1 | Notes / gap | |
| 34 | |---|---|---|---|---| |
| 35 | | 1 | Substrate attach / detach | `MACHINE_JOINED` 30 / `MACHINE_REMOVED` 32, `PROVIDER_DISCOVERED` 40 | New kinds >81 `SUBSTRATE_ATTACHED` / `SUBSTRATE_DETACHED`; `evidence_digest` = substrate descriptor digest; `object_id` = substrate slot | Needs producer identity (hostile G-5: no producer identity in v1) → v2 | |
| 36 | | 2 | Calibration change | `POLICY_CHANGED` 71 (closest), `PROVIDER_CHANGED` 41 | New kind >81 `CALIBRATION_CHANGED`; `evidence_digest` = calibration record digest; `resource` = calibration epoch; `object_id` = substrate slot | AEGIS verifies the calibration record; ARGUS only records | |
| 37 | | 3 | Calibration expiry | none | New kind >81 `CALIBRATION_EXPIRED`, emitted by FORGE (or synthesized by ARGUS with the consumer flag from a declared expiry); `resource` = expiry epoch | Expiry is a clock fact; the producer must supply the clock | |
| 38 | | 4 | Unexpected drift | none | New kind >81 `DRIFT_OBSERVED`; `resource` = scaled drift magnitude; `evidence_digest` = measurement digest | Statistical judgement needs STATISTICAL confidence (ARGUS-5+); ARGUS-0/1 may only record | |
| 39 | | 5 | Hardware fault | `INTEGRITY_VIOLATION` 60 (closest) | New kind >81 `SUBSTRATE_FAULT`; `code` = fault class; `object_id` = substrate slot | Keep 60 for digest/trust breaks, not device faults | |
| 40 | | 6 | Provider substitution | `PROVIDER_CHANGED` 41 / provider `QUARANTINED` 42 (`evidence_digest` = provider id) | Same kinds, plus a stable provider identity scheme → v2 | Known gap: hostile G-9 "no stable provider identity in v1" | |
| 41 | | 7 | Out-of-envelope operation | none (`EXTERNAL_EFFECT_DENIED` 51 is authority, not physics) | New kind >81 `ENVELOPE_EXCEEDED`; `resource` = which bound; `code` = direction; `evidence_digest` = envelope / contract digest | Deterministic when the envelope is a declared contract, so it can be a hard finding | |
| 42 | | 8 | Repeated result anomaly | none | New kind >81 `RESULT_ANOMALY` per occurrence; finding on a count threshold | Counting is deterministic; judging "anomalous" is statistical (ARGUS-5+) | |
| 43 | | 9 | Device identity change | `MACHINE_TRUST_CHANGED` 31, finding `MACHINE_IDENTITY_MISMATCH` 7 | Reuse 30-32 and finding 7; a substrate inside a Machine needs its own identity slot → v2 | `machine_id` is 32 bytes but PROVISIONAL | |
| 44 | | 10 | Transport fault | `TELEMETRY_DROPPED` 80 (ARGUS ring loss only) | New kind >81 `SUBSTRATE_TRANSPORT_FAULT` for the device link | Do not overload 80 | |
| 45 | |
| 46 | Summary by mechanism: |
| 47 | |
| 48 | - **New kinds above 81 (layout unchanged):** 2, 3, 4, 5, 7, 8, 10. |
| 49 | - **Needs ABI v2 identity fields:** 1 (producer identity), 6 (stable provider identity), 9 (substrate identity slot inside a Machine). |
| 50 | |
| 51 | ## 4. Rules for the later ABI work |
| 52 | |
| 53 | - Queue these onto the ABI v2 discussion already opened by R7 code 13 (`AUTHORITY_REPLAY`, needs an authority-instance id) and hostile G-5 / G-9 (producer and provider identity). Do not open a separate ABI track. |
| 54 | - Every new kind needs a class (CRITICAL / SECURITY / AUDIT / INFORMATIONAL) so ring back-pressure stays defined. |
| 55 | - Kinds stay append-only; no existing kind is renumbered or repurposed. |
| 56 | - No vendor or product names in kind names or fields (ADR 0018 §2.2). |
| 57 | - Nothing here is started before the ARGUS performance gate is decided (aienos#160: +6.2% vs omega#70: +3.87%; 5% vs 2% bar undecided) and R16 closes. |