interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / adr / 0010-fabric-machine-identity-and-capability-advertisement.md

167 lines · 8967 bytes Raw Blame History Rendered
1# ADR 0010: Fabric Machine Identity and Capability Advertisement
2
3Status: Proposed.
4
5Open for early discussion per
6[issue #37](https://github.com/aien-dev/aienux/issues/37). Not yet accepted.
7Nothing in this record is active before native networking
8([M6](../MILESTONES.md)) and the preconditions below are met. No code is
9mandated by this record.
10
11Governing: [ARCHITECTURE.md section 2](../ARCHITECTURE.md) (Personal Fabric),
12[BLUEPRINT.md section 25](../BLUEPRINT.md) (Phase 8 Personal Fabric),
13[BLUEPRINT.md section 26](../BLUEPRINT.md) (state mobility),
14[BLUEPRINT.md section 21](../BLUEPRINT.md) (Machine Capsule),
15[MILESTONES.md Phase 8](../MILESTONES.md), [ADR 0004](0004-reversibility-definition-and-network-effect-boundary.md),
16[ADR 0007](0007-continuous-existence-provisioning-once.md).
17
18## Context
19
20The architecture already fixes the endpoint: a given computer is Machine N,
21not "the AIEN computer"; hardware and vendor details are capabilities, not
22identities (ARCHITECTURE.md section 2). One logical AIEN spans several
23machines, and the machines are resources of the operator's environment
24(BLUEPRINT.md section 25). Phase 8 assigns this work to a future
25`crates/aienos-fabric/` crate covering peer-to-peer capability discovery,
26state synchronization, and RPC.
27
28Issue #37 asks for early design discussion on the two questions that precede
29everything else in the fabric:
30
311. Under what identity does a machine join the fabric.
322. What a joining machine advertises about itself, and how that advertisement
33 is represented, authorized, bounded, and kept current.
34
35Deciding these two points early keeps M6 networking work from accidentally
36hardening brand-based identity, unsolicited broadcast behaviour, or an
37advertisement format that bypasses AEGIS. This record captures the design
38constraints so that early work can proceed in parallel with the M0 to M6
39critical path without premature protocol commitment.
40
41## Decision
42
43### Identity: machines join under a Machine ID, never a brand
44
451. A machine joins the fabric under a `MachineId`: a stable, opaque,
46 operator-provisioned identifier generated locally at provisioning time and
47 bound to the operator's AIEN environment. Following the continuous-existence
48 rule (ADR 0007), a `MachineId` is created once per physical machine at
49 provisioning; boot, reboot, kernel restart, and model reload resume it and
50 never mint a replacement.
512. Vendor, brand, model name, and marketing identifiers ("NVIDIA", "DGX
52 Spark") are capability data, never identity. A replacement machine with the
53 same brand is a different `MachineId`; the same machine with replaced parts
54 keeps its `MachineId`. The DGX Spark is the reference machine, not AIEN's
55 identity (BLUEPRINT.md section 24).
563. The machine's hardware description is a Machine Capsule (BLUEPRINT.md
57 section 21): CPU, accelerator, memory, storage, network, display, audio,
58 USB, Bluetooth, input, known drivers, and compatibility requirements.
59 The capsule is a property of the machine record, not of the identity.
604. The `MachineId` is distinct from the `LogicalAgentId`. The agent identity
61 exists above machines (Blueprint section 25); a machine never impersonates
62 the agent, and agent migration between machines is an execution-state
63 transition recorded with a continuity receipt, not a new agent.
64
65### Advertisement: declared capability set
66
675. A joining machine advertises exactly the categories named in issue #37:
68 - **CPU**: topology, architecture, efficiency classes, frequency
69 envelopes, as discovered by native topology discovery (M2 already
70 provides the baseline).
71 - **Memory**: total and available capacity, unified-memory properties and
72 block budgets per ADR 0005.
73 - **Accelerators**: presence, class, and driver status (for example the
74 GB10 GPU as a characterized capability, per issue #36 work; accelerator
75 presence is capability data even before accelerator execution exists).
76 - **Models**: model identities and versions currently loadable on this
77 machine, behind the Model ABI; a model is a replaceable component, never
78 an identity.
79 - **Tools**: the capability surface the machine can execute, in the same
80 vocabulary AEGIS uses for capability scope (`fs.write`, `code.build`,
81 and similar names), so placement decisions and authorization decisions
82 read the same data.
83 - **Load**: current dynamic pressure (scheduler occupancy, memory
84 pressure, thermal and power state where measurable), advertised as a
85 separate, short-lived class of data from the static capability set.
866. Static capabilities and dynamic load are distinct records with distinct
87 lifetimes. Static data changes only on provisioning, hardware change, or
88 software update and is signed once per change; load data is unsigned
89 telemetry-grade information refreshed periodically and never used for
90 authorization decisions.
917. Advertisement is pull-or-respond within the operator's own fabric, not
92 open broadcast. A machine answers capability queries from machines it has
93 been provisioned to trust; it does not announce itself to the local
94 network at large, and it does not respond to unprovisioned requesters.
958. Every advertisement exchange is an outbound network effect and therefore
96 crosses the AEGIS boundary (ADR 0004): even read-only capability queries
97 are `EffectIntent`s evaluated against capability grants. Fabric
98 participation never bypasses AEGIS under the label of discovery or
99 research.
100
101### Representation and scope
102
1039. The capability advertisement derives from the Machine Capsule and reuses
104 the machine's existing discovered evidence (CPU topology, memory map,
105 identity reports) rather than introducing a parallel inventory path.
10610. Advertisements are bounded in size, versioned in schema, and validated on
107 receipt. A received advertisement grants the sender nothing; it is input
108 to the receiving machine's own placement and scheduling decisions.
10911. Partition sovereignty (MILESTONES.md Phase 8) applies to identity:
110 disconnection never invalidates a `MachineId` or an advertised
111 capability record; a disconnected machine falls back to autonomous local
112 operation with its last committed records.
113
114### Activation boundary (post-M6)
115
11612. This design activates only after M6 minimal networking provides the
117 secure control transport. Until then, no crate implements this record;
118 host-side prototypes may model the data structures for discussion, but
119 nothing ships in the trusted base.
120
121## Preconditions
122
123Before any implementation of this record may merge:
124
1251. M6 minimal networking (DHCP/static IP, ARP/NDP, IP, UDP/TCP, secure
126 control transport) is complete and evidenced.
1272. The `MachineId` provisioning flow is defined with the same
128 provisioning-once discipline as `LogicalAgentId` (ADR 0007), including
129 Recovery Core behaviour when machine identity state cannot be verified.
1303. The advertisement wire format is specified with its schema version,
131 size bounds, signature scheme, and validation rules, and reviewed as an
132 irreversible data format per CONTRIBUTING.md.
1334. Operator approval per the governance rule in this directory, since this
134 record touches persistent identity and a security boundary.
135
136## Invariants
137
1381. **Identity above machines**: the `LogicalAgentId` never depends on any
139 `MachineId`; machines are replaceable substrate.
1402. **Brand is not identity**: no protocol field, log line, or proof receipt
141 may use vendor or product names where a `MachineId` belongs.
1423. **AEGIS boundary**: all fabric traffic, including read-only capability
143 advertisement, is an external effect under AEGIS evaluation (ADR 0004).
1444. **Capsule-derived advertisement**: the advertised static capability set is
145 derived from the Machine Capsule and native discovery evidence, not from
146 hand-maintained configuration.
1475. **Partition sovereignty**: loss of fabric connectivity never blocks local
148 core operation or corrupts identity state.
1496. **Secrets invariant**: NO PLAINTEXT SECRETS IN REPOSITORY OR BUILD
150 ARTIFACTS.
1517. **Unslop standard**: zero em dashes, zero en dashes, and direct technical
152 documentation.
153
154## Consequences
155
156- M6 networking work can proceed knowing the fabric will use
157 operator-scoped pull-or-respond discovery, avoiding accidental broadcast
158 protocol commitments.
159- Issue #36 (GB10 characterization) output feeds the accelerator entry of
160 the capability advertisement when the fabric activates.
161- The future `crates/aienos-fabric/` crate starts from a defined identity
162 model and capability vocabulary rather than inventing them during Phase 8.
163- State mobility (Blueprint section 26) and the heterogeneous compute
164 scheduler (MILESTONES.md Phase 8) consume the capability advertisement as
165 their placement input.
166- This record remains a design record until the operator accepts it; early
167 discussion continues on issue #37.