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 / archive / plans / 2026-09-25 / AIEN_MASTER_ARCHITECTURAL_PLAN.md

1687 lines · 29435 bytes Raw Blame History Rendered
1> **SUPERSEDED / HISTORICAL — DO NOT USE AS AN ACTIVE IMPLEMENTATION PLAN**
2>
3> Original path: `AIEN_MASTER_ARCHITECTURAL_PLAN.md`
4>
5> Archived on 2026-09-27 during plan consolidation. The active cross-project execution plan is [CURRENT_EXECUTION_PLAN.md](../../../../CURRENT_EXECUTION_PLAN.md), governed by [PLAN_AUTHORITY.md](../../../../PLAN_AUTHORITY.md).
6>
7> Retained for provenance only.
8
9---
10
11# AIEN Master Architectural Plan
12
13## 1. North Star
14
15AIEN exists to reduce the distance between human intention and physical reality.
16
17The ultimate system should allow a person to describe a desired outcome, then have AIEN determine what must change, what it is permitted to change, how that change can be accomplished, which physical realization is appropriate, whether the result actually occurred, and what can be learned from it.
18
19The long-term execution path is:
20
21```text
22Human Intent
23 ↓
24Desired State
25 ↓
26Formal Transformation
27 ↓
28Constraints + Authority
29 ↓
30Candidate Futures
31 ↓
32Verification + Evaluation
33 ↓
34Authorization
35 ↓
36Physical Realization
37 ↓
38Physics
39 ↓
40Observed Reality
41 ↓
42Evidence
43 ↓
44Memory + Improvement
45```
46
47The concise definition is:
48
49> **AIEN compiles desired state into authorized, verified physical transformation.**
50
51The completed system is not fundamentally an operating system, AI model, programming language, CPU architecture, or robot.
52
53Those are components and physical realizations.
54
55---
56
57## 2. The Permanent Architectural Rule
58
59No implementation layer below intent should become the permanent definition of AIEN.
60
61Therefore:
62
63```text
64Rust != AIEN
65AArch64 != AIEN
66x86 != AIEN
67RISC-V != AIEN
68binary != AIEN
69CUDA != AIEN
70NVIDIA != AIEN
71Linux != AIEN
72a model != AIEN
73a CPU != AIEN
74```
75
76Today AIEN is implemented primarily through Rust and AArch64 because those are useful engineering choices.
77
78They are not the final abstraction.
79
80The durable object should eventually describe:
81
82```text
83What should become true?
84What transformation produces it?
85What constraints apply?
86What authority is required?
87What evidence proves success?
88```
89
90Everything below that may evolve.
91
92---
93
94## 3. The Seven-Layer Architecture
95
96The whole system can be understood as seven architectural layers.
97
98```text
99┌──────────────────────────────────────┐
100│ 7. HUMAN INTENT │
101│ "What do I want?" │
102├──────────────────────────────────────┤
103│ 6. SEMANTIC / DESIRED STATE │
104│ "What exactly must become true?" │
105├──────────────────────────────────────┤
106│ 5. INTELLIGENCE │
107│ Agent, Cortex, J-Space, Skills │
108├──────────────────────────────────────┤
109│ 4. AUTHORITY │
110│ Capabilities, AEGIS, Effects │
111├──────────────────────────────────────┤
112│ 3. TRANSFORMATION │
113│ Artifact IR, Transformation IR │
114├──────────────────────────────────────┤
115│ 2. PHYSICAL COMPILATION │
116│ Physical Compiler + Fabric │
117├──────────────────────────────────────┤
118│ 1. PHYSICAL SUBSTRATE │
119│ CPU/GPU/FPGA/waves/analog/etc. │
120└──────────────────────────────────────┘
121 ↓
122 PHYSICS
123```
124
125Each layer has one job.
126
127No layer should secretly absorb the responsibilities of another.
128
129---
130
131## 4. Layer 1: The Trusted Physical Substrate
132
133This is what AIENOS is currently establishing.
134
135Its job is not intelligence.
136
137Its job is control.
138
139The kernel must provide deterministic mechanisms for:
140
141```text
142boot
143memory ownership
144address spaces
145tasks
146scheduling
147interrupts
148IPC
149capabilities
150device ownership
151DMA confinement
152storage
153networking
154time
155recovery
156```
157
158The model is never the kernel.
159
160The kernel must continue functioning with no model loaded.
161
162Its fundamental guarantee is:
163
164> A component can affect only the memory, objects and devices for which it has explicit authority.
165
166The trusted base should remain small, inspectable and recoverable.
167
168### Current engineering anchor
169
170The current development line is closing the M3 enforcement substrate:
171
172```text
173EL1 kernel
174↓
175AIENOS-owned MMU
176↓
177interrupt ownership
178↓
179preemptive scheduler
180↓
181EL0 isolation
182↓
183capability tables
184↓
185typed IPC
186↓
187SMMUv3 DMA confinement
188↓
189device authority
190```
191
192This layer must become trustworthy before significant generated native code is admitted.
193
194---
195
196## 5. Layer 2: The Physical Fabric
197
198Above individual drivers sits the abstraction AIEN uses to understand its body.
199
200A Machine should not simply be described as:
201
202```text
203"NVIDIA DGX Spark"
204```
205
206It should expose capabilities.
207
208Conceptually:
209
210```text
211PhysicalCapabilities {
212 compute
213 memory
214 storage
215 communication
216 devices
217 timing
218 precision
219 topology
220 energy
221 temperature
222 reconfiguration
223 failure_properties
224}
225```
226
227Upper AIEN layers should increasingly ask:
228
229```text
230Who can perform this transformation?
231```
232
233rather than:
234
235```text
236Where is the NVIDIA GPU?
237```
238
239The same abstraction can eventually represent:
240
241```text
242CPU
243GPU
244FPGA
245specialized accelerator
246another Machine
247wave network
248analog array
249optical device
250future computing substrate
251```
252
253Machine 1 is the first physical body.
254
255It is not AIEN's permanent body.
256
257---
258
259## 6. Layer 3: Canonical Executable Artifacts
260
261Before AIEN becomes hardware-neutral, it needs a clean executable identity system.
262
263This is the bridge between today's software and tomorrow's Transformation IR.
264
265### Binary Artifact
266
267An AIEN Artifact should describe:
268
269```text
270identity
271exact executable bytes
272ABI version
273target
274resource requirements
275requested capabilities
276declared effects
277ancestry
278evidence
279admission
280```
281
282The central invariant is:
283
284```text
285tested bytes
286 ==
287evaluated bytes
288 ==
289authorized bytes
290 ==
291executed bytes
292```
293
294The source code that produced an artifact is important provenance.
295
296It is not the executable identity.
297
298Artifacts are:
299
300```text
301immutable
302content-addressed
303versioned
304signed where appropriate
305reproducibly evaluated
306```
307
308This becomes the basis for AIEN Generations.
309
310---
311
312## 7. Generations and Self-Construction
313
314AIEN should grow through explicit Generations.
315
316```text
317Generation 0
318 ↓
319Generation 1
320 ↓
321Generation 2
322 ↓
323Generation N
324```
325
326An agent may propose a new Generation.
327
328It may not authorize it.
329
330The pipeline is:
331
332```text
333Observe
334 ↓
335Propose
336 ↓
337Build
338 ↓
339Verify
340 ↓
341Isolated test
342 ↓
343Benchmark
344 ↓
345J-Space comparison
346 ↓
347AEGIS admission
348 ↓
349Canary
350 ↓
351Promote
352```
353
354Failure results in:
355
356```text
357quarantine
358↓
359rollback
360↓
361preserve evidence
362↓
363diagnose separately
364```
365
366The governing rule is:
367
368> **Rollback first, repair second.**
369
370AIEN never rewrites its trusted running kernel merely because a model believes an improvement is good.
371
372---
373
374## 8. Layer 4: Authority
375
376The most important distinction in AIEN is:
377
378```text
379intelligence
380≠
381authority
382```
383
384The model may understand what should happen.
385
386That does not mean it has permission to make it happen.
387
388The canonical effect path is:
389
390```text
391Agent
392 ↓ proposes
393EffectIntent
394 ↓
395Capability check
396 ↓
397AEGIS
398 ↓
399Effect Broker
400 ↓
401Kernel / driver
402 ↓
403physical effect
404```
405
406### Capabilities
407
408Authority should be explicit and scoped.
409
410Examples:
411
412```text
413audio.output
414network.local
415storage.project.read
416device.camera.capture
417mail.send
418fabric.compute
419world.promote
420physical.motor.move
421```
422
423A capability answers:
424
425```text
426WHO
427may do WHAT
428to WHICH resource
429under WHICH bounds
430```
431
432No ambient root authority.
433
434---
435
436## 9. AEGIS
437
438AEGIS is the authority boundary between intelligence and reality.
439
440Its job is to determine whether a proposed effect is permitted.
441
442It should understand:
443
444```text
445principal
446capability
447scope
448effect type
449reversibility
450resource bounds
451operator policy
452risk
453provenance
454```
455
456Broadly:
457
458```text
459reversible internal change
460 ↓
461can often proceed autonomously
462
463irreversible/external effect
464 ↓
465requires stronger authority
466```
467
468At the deepest future level, AEGIS still exists.
469
470If AIEN is configuring actual physical circuits, waves, power systems or machines, those are effects too.
471
472The Physical Compiler never gets to bypass AEGIS.
473
474---
475
476## 10. Worlds
477
478A World is AIEN's reversible execution state.
479
480It answers:
481
482> "What if we did this?"
483
484A World allows AIEN to modify:
485
486```text
487files
488configuration
489process state
490candidate artifacts
491runtime state
492plans
493```
494
495without immediately changing canonical reality.
496
497Conceptually:
498
499```text
500Canonical World
501 │
502 ├── Candidate World A
503 ├── Candidate World B
504 └── Candidate World C
505```
506
507Dropping a World discards it.
508
509Promoting a World requires authority.
510
511This separation lets AIEN explore aggressively while remaining conservative about external effects.
512
513---
514
515## 11. J-Space
516
517J-Space is where AIEN compares possible futures.
518
519It does not perform irreversible actions.
520
521It considers alternatives such as:
522
523```text
524implementation A
525implementation B
526implementation C
527
528plan A
529plan B
530plan C
531
532physical realization A
533physical realization B
534physical realization C
535```
536
537and evaluates them using evidence.
538
539Eventually:
540
541```text
542CPU implementation
543GPU implementation
544FPGA circuit
545wave realization
546analog realization
547```
548
549could all compete inside J-Space for the same Transformation.
550
551J-Space selects.
552
553OMEGA formalizes.
554
555PHYSICS lowers.
556
557AEGIS verifies.
558
559The Effect Broker adapter executes.
560
561Those remain separate jobs.
562
563---
564
565## 12. Cortex
566
567Cortex is AIEN's durable epistemic memory.
568
569It should remember more than text.
570
571It records:
572
573```text
574observations
575facts
576hypotheses
577contradictions
578decisions
579experiments
580provenance
581measurements
582failures
583successful realizations
584```
585
586Cortex must preserve the distinction between:
587
588```text
589observed
590verified
591inferred
592hypothesized
593decided
594```
595
596because AIEN must never turn its own previous speculation into "fact" simply because it remembered it.
597
598In the distant Physical Compiler architecture, Cortex also remembers:
599
600```text
601transformation
602substrate
603realization
604latency
605energy
606precision
607temperature
608failure rate
609```
610
611That turns physical experience into reusable knowledge.
612
613---
614
615## 13. The Persistent Agent
616
617The agent is the human-facing continuity layer.
618
619Models may change.
620
621Kernels may change.
622
623Inference state may disappear.
624
625Machines may change.
626
627The logical agent should persist.
628
629```text
630persistent identity
631persistent history
632persistent Cortex
633persistent goals
634persistent provenance
635 ↓
636replaceable model
637replaceable runtime
638replaceable hardware
639```
640
641The guiding principle is:
642
643> Losing physical inference state costs computation, not identity.
644
645Power cycle should eventually be ordinary:
646
647```text
648power on
649↓
650AIEN resumes
651↓
652work
653↓
654power off
655↓
656power on
657↓
658continue
659```
660
661---
662
663## 14. Intent and Desired State
664
665The mature AIEN interface should move beyond commands.
666
667Instead of requiring:
668
669```text
670open program
671click menu
672set field
673run command
674```
675
676the person should increasingly be able to describe:
677
678```text
679what they want to become true
680```
681
682Example:
683
684```text
685"I want this room quieter,
686cooler and more energy efficient."
687```
688
689The Intent layer transforms this into something closer to:
690
691```text
692DesiredState {
693 temperature = target range
694 acoustic_level <= threshold
695 energy = minimize
696}
697```
698
699The system must distinguish:
700
701```text
702hard constraints
703soft preferences
704unknowns
705required permissions
706success conditions
707```
708
709AIEN should ask when consequential ambiguity cannot safely be resolved.
710
711---
712
713## 15. Transformation IR
714
715This is the major transition beyond traditional computing.
716
717Instead of defining a computation as:
718
719```text
720these AArch64 instructions
721```
722
723AIEN eventually defines:
724
725```text
726Transformation {
727 inputs
728 outputs
729 semantic relation
730 invariants
731 precision
732 permitted error
733 latency constraint
734 memory constraint
735 energy objective
736 authority
737 effects
738}
739```
740
741For example:
742
743```text
744Y = X × W
745
746dtype = BF16
747error <= E
748latency <= 2 ms
749memory <= M
750```
751
752The same Transformation could be realized through multiple physical methods.
753
754That is where AIEN stops being fundamentally ISA-bound.
755
756---
757
758## 16. The Physical Compiler
759
760The Physical Compiler answers:
761
762> **How should this Transformation become physical on the resources currently available?**
763
764Initially it will perform ordinary decisions:
765
766```text
767scalar CPU
768vs
769vector CPU
770vs
771accelerator
772```
773
774Later:
775
776```text
777CPU
778GPU
779FPGA
780distributed Machine
781```
782
783And eventually:
784
785```text
786digital circuit
787multi-valued circuit
788wave network
789analog system
790optical realization
791other physical substrate
792```
793
794The compiler does not automatically select "fastest."
795
796It selects according to the Transformation's actual objective:
797
798```text
799correctness
800latency
801energy
802memory
803precision
804temperature
805reliability
806privacy
807availability
808```
809
810---
811
812## 17. Physical IR
813
814Below Transformation IR may eventually sit a representation of physical computation.
815
816For conventional digital systems, Physical IR could describe:
817
818```text
819logic elements
820registers
821memory
822connections
823timing
824resource constraints
825```
826
827For future substrates it may describe more general physical relationships.
828
829The crucial design principle is:
830
831> Physical IR describes a realization, not AIEN's permanent semantics.
832
833A new substrate can therefore introduce another backend without redefining AIEN.
834
835---
836
837## 18. The Hum of the Hive
838
839Wave-based computation is a future Physical Fabric backend, not the definition of AIEN itself.
840
841A Wave IR might describe:
842
843```text
844oscillator
845frequency
846amplitude
847phase
848coupling
849modulation
850interference
851resonance
852measurement
853```
854
855Instead of computing only through:
856
857```text
858LOAD
859ADD
860STORE
861BRANCH
862```
863
864a physical realization might compute through:
865
866```text
867couple
868oscillate
869shift
870interfere
871resonate
872settle
873observe
874```
875
876The collective physical state can be thought of as:
877
878> **The Hum of the Hive.**
879
880Conceptually:
881
882```text
883HiveState {
884 spectrum
885 phase_map
886 synchronization
887 energy_distribution
888 resonance_modes
889 stability
890}
891```
892
893The Hum is not mystical.
894
895It is the measurable dynamical physical state of the computational fabric.
896
897Wave computation should begin as simulation, then only move onto real experimental hardware after deterministic security and measurement infrastructure exist.
898
899---
900
901## 19. Multi-Valued and Analog Computing
902
903Binary remains the immediate implementation substrate.
904
905AIEN should not assume it is eternally optimal.
906
907Future research lanes may test:
908
909```text
910binary
911ternary
912balanced ternary
913higher radix
914continuous analog
915timing-based computation
916frequency-domain computation
917optical systems
918neuromorphic systems
919```
920
921No representation wins because it sounds elegant.
922
923It must demonstrate value through measured workloads.
924
925AIEN's architecture therefore remains:
926
927```text
928representation-independent
929```
930
931rather than:
932
933```text
934binary-first forever
935```
936
937or:
938
939```text
940wave-first forever
941```
942
943---
944
945## 20. Physical Reality
946
947At sufficient maturity, AIEN's transformations may extend beyond computation.
948
949Physical effects could include:
950
951```text
952configure
953transmit
954move
955heat
956cool
957emit
958energize
959manufacture
960route
961assemble
962```
963
964through properly authorized devices.
965
966That creates the full loop:
967
968```text
969Desired State
970 ↓
971Act
972 ↓
973Measure
974 ↓
975Compare
976 ↓
977Act again
978```
979
980AIEN does not simply assume an issued command succeeded.
981
982Reality must be measured.
983
984---
985
986## 21. Provenance
987
988Every consequential transformation should create evidence.
989
990AIEN should be able to answer:
991
992```text
993What was requested?
994Who requested it?
995What interpretation was used?
996Which transformation was selected?
997Which alternatives were considered?
998What authority allowed it?
999What artifact executed?
1000On what Machine?
1001What physical resources were used?
1002What actually happened?
1003What evidence supports that claim?
1004```
1005
1006This provenance layer connects the entire system.
1007
1008Without it, autonomous self-improvement becomes storytelling.
1009
1010With it, improvements can be tested.
1011
1012---
1013
1014## 22. RSI
1015
1016RSI is AIEN's improvement engine.
1017
1018It may propose improvements to:
1019
1020```text
1021algorithms
1022scheduler policies
1023memory placement
1024kernel implementations
1025cache policy
1026inference kernels
1027Transformation lowering
1028physical backend selection
1029circuit topology
1030wave configuration
1031physical placement
1032```
1033
1034But RSI is never its own authority.
1035
1036The loop remains:
1037
1038```text
1039observe
1040↓
1041hypothesize
1042↓
1043construct candidate
1044↓
1045evaluate
1046↓
1047compare
1048↓
1049authorize
1050↓
1051promote
1052```
1053
1054A failed candidate is evidence, not permission to try uncontrolled live mutations.
1055
1056---
1057
1058## 23. Fabric and Multiple Machines
1059
1060AIEN should appear as one logical system even when it occupies several Machines.
1061
1062```text
1063 AIEN
1064 │
1065 ┌──────────┼──────────┐
1066 ↓ ↓ ↓
1067 Machine 1 Machine 2 Machine N
1068```
1069
1070Fabric owns:
1071
1072```text
1073machine identity
1074capability advertisement
1075placement
1076topology
1077communication
1078leases
1079failover
1080resource scheduling
1081```
1082
1083Fabric does not decide semantic goals.
1084
1085J-Space and the runtime decide what needs to happen.
1086
1087Fabric determines where eligible work can run.
1088
1089---
1090
1091## 24. The Bootstrap Boundary
1092
1093AIEN cannot magically wake on arbitrary matter.
1094
1095Every new substrate needs a minimal physical entry point.
1096
1097A substrate must expose enough capability for AIEN to:
1098
1099```text
1100begin execution
1101represent state
1102change state
1103observe state
1104communicate
1105recover/reset
1106```
1107
1108The architecture should minimize the substrate-specific seed.
1109
1110Conceptually:
1111
1112```text
1113New hardware
1114 ↓
1115Bootstrap Seed
1116 ↓
1117Physical Fabric Adapter
1118 ↓
1119Physical Capability Graph
1120 ↓
1121AIEN
1122```
1123
1124Over time AIEN should be able to generate increasing portions of its own optimized backend after bootstrapping through a simple generic one.
1125
1126This is the route to true hardware portability.
1127
1128---
1129
1130## 25. Self-Hosting
1131
1132AIEN reaches a deeper form of independence when it can reconstruct itself.
1133
1134Starting from:
1135
1136```text
1137minimal trusted Seed
1138+
1139canonical artifacts
1140+
1141supported physical substrate
1142```
1143
1144AIEN should eventually be able to rebuild:
1145
1146```text
1147runtime
1148verifier
1149AEGIS
1150Cortex
1151Physical Compiler
1152backend
1153agent environment
1154```
1155
1156and establish a new Generation.
1157
1158Self-hosting does not mean uncontrolled self-modification.
1159
1160It means the system can reproduce itself through the same verified admission process applied to everything else.
1161
1162---
1163
1164## 26. The Four Eras
1165
1166The entire project can be reduced to four large eras.
1167
1168### Era I: AIEN Owns a Computer
1169
1170Build:
1171
1172```text
1173AIENOS
1174kernel isolation
1175capabilities
1176devices
1177storage
1178networking
1179native inference
1180Cortex
1181persistent agent
1182```
1183
1184Outcome:
1185
1186> AIEN can safely inhabit and operate a conventional computer.
1187
1188---
1189
1190### Era II: AIEN Owns Computation
1191
1192Build:
1193
1194```text
1195Binary Artifacts
1196Generations
1197Transformation IR
1198Physical Capability Graph
1199Physical Compiler
1200multiple execution backends
1201```
1202
1203Outcome:
1204
1205> Computation is defined by desired transformations instead of one ISA.
1206
1207---
1208
1209### Era III: AIEN Owns Its Physical Realization
1210
1211Build:
1212
1213```text
1214FPGA backend
1215Physical IR
1216reconfigurable circuits
1217multi-valued experiments
1218Wave IR
1219analog/continuous backends
1220```
1221
1222Outcome:
1223
1224> AIEN can choose or construct physical mechanisms for computation.
1225
1226---
1227
1228### Era IV: AIEN Connects Intent to Reality
1229
1230Build:
1231
1232```text
1233Intent Compiler
1234Desired State
1235physical effects
1236sensor feedback
1237closed-loop control
1238cross-domain orchestration
1239```
1240
1241Outcome:
1242
1243> AIEN can translate authorized human intent into measured physical change.
1244
1245---
1246
1247## 27. Delivery Order
1248
1249The architectural vision must not distort engineering priority.
1250
1251The dependency chain is:
1252
1253```text
1254TRUST
1255 ↓
1256IDENTITY
1257 ↓
1258ARTIFACTS
1259 ↓
1260PERSISTENCE
1261 ↓
1262INTELLIGENCE
1263 ↓
1264TRANSFORMATION
1265 ↓
1266PHYSICAL COMPILATION
1267 ↓
1268EXOTIC PHYSICS
1269```
1270
1271Therefore the practical order is:
1272
1273```text
12741. Finish M3 Trusted Machine
12752. Freeze AIENOS ABI v1
12763. Introduce Binary Artifact v0
12774. Implement SEED-0B admission
12785. Make storage + generations durable
12796. Establish encryption + identity
12807. Complete native networking
12818. Complete useful native inference
12829. Complete persistent Cortex + agent
128310. Converge AEGIS / Worlds / J-Space
128411. Mature Fabric
128512. Introduce Transformation IR from real workloads
128613. Add multiple Physical Compiler backends
128714. Add a reconfigurable FPGA body
128815. Introduce Physical IR
128916. Research multi-valued logic
129017. Research Wave IR / Hum of the Hive
129118. Research analog and other physical substrates
129219. Build generalized substrate bootstrap
129320. Build Intent Compiler
129421. Extend authorized transformations into physical environments
129522. Demonstrate Intent → Verified Physical Reality
1296```
1297
1298No hard dates are necessary.
1299
1300Each gate is earned by evidence.
1301
1302---
1303
1304## 28. Repository Architecture
1305
1306The project should not respond to every new concept by creating another repository.
1307
1308Existing repositories should converge toward clear responsibilities.
1309
1310### `aienos`
1311
1312Owns the trusted body:
1313
1314```text
1315boot
1316kernel
1317memory
1318tasks
1319scheduler
1320IPC
1321capabilities
1322devices
1323DMA
1324storage
1325networking substrate
1326hardware adapters
1327Physical Fabric enforcement
1328recovery
1329```
1330
1331---
1332
1333### `aien-sovereign-core`
1334
1335Owns higher-level execution:
1336
1337```text
1338runtime
1339model abstraction
1340World execution
1341J-Space orchestration
1342Transformation planning
1343compute orchestration
1344initial Physical Compiler work
1345```
1346
1347As native AIENOS matures, Linux-specific machinery becomes a compatibility implementation rather than architectural truth.
1348
1349---
1350
1351### `aien-protocols`
1352
1353Owns stable portable contracts:
1354
1355```text
1356agent state
1357effects
1358events
1359evaluation
1360provenance
1361Binary Artifact
1362Transformation IR
1363Physical Capability Graph
1364Physical IR
1365Wave IR
1366bootstrap contracts
1367```
1368
1369Only mature formats belong here.
1370
1371Experimental structures should not be prematurely frozen as protocols.
1372
1373---
1374
1375### `aien-architecture`
1376
1377Owns architectural law:
1378
1379```text
1380system map
1381responsibility boundaries
1382ADRs
1383cross-repository contracts
1384roadmap
1385accepted invariants
1386future architecture
1387```
1388
1389This master plan belongs conceptually here.
1390
1391---
1392
1393### `benchmarks`
1394
1395Owns empirical truth:
1396
1397```text
1398correctness
1399latency
1400throughput
1401memory
1402energy
1403temperature
1404precision
1405noise
1406stability
1407reconfiguration cost
1408physical resource use
1409```
1410
1411Claims require receipts.
1412
1413---
1414
1415### `spark-rsi`
1416
1417Owns improvement proposals and evaluation machinery.
1418
1419It may propose better implementations.
1420
1421It must not become the authority that promotes them.
1422
1423---
1424
1425### AEGIS
1426
1427Long-term AEGIS should converge toward one canonical authority system rather than several overlapping policy implementations.
1428
1429---
1430
1431## 29. Canonical Objects
1432
1433Over time the most important durable objects should become:
1434
1435```text
1436Machine
1437Agent
1438Identity
1439Capability
1440Artifact
1441Generation
1442World
1443Intent
1444DesiredState
1445Transformation
1446PhysicalCapability
1447PhysicalRealization
1448EffectIntent
1449AdmissionReceipt
1450EvidenceReceipt
1451EpistemicRecord
1452```
1453
1454These objects connect the full system.
1455
1456A future AIEN should be understandable by inspecting their relationships rather than reading thousands of unrelated configuration files.
1457
1458---
1459
1460## 30. The Two Fundamental Loops
1461
1462Nearly the entire architecture reduces to two loops.
1463
1464### The Action Loop
1465
1466```text
1467Intent
1468↓
1469Desired State
1470↓
1471Transformation
1472↓
1473J-Space
1474↓
1475AEGIS
1476↓
1477Effect
1478↓
1479Physical Reality
1480↓
1481Measurement
1482↓
1483Cortex
1484```
1485
1486This loop changes reality.
1487
1488### The Improvement Loop
1489
1490```text
1491Evidence
1492↓
1493Cortex
1494↓
1495RSI
1496↓
1497Candidate
1498↓
1499World
1500↓
1501Evaluation
1502↓
1503J-Space
1504↓
1505AEGIS
1506↓
1507New Generation
1508```
1509
1510This loop changes AIEN.
1511
1512They must never collapse into one loop.
1513
1514If the system that proposes an improvement can directly install it, the architecture has failed.
1515
1516---
1517
1518## 31. Hard Safety Invariants
1519
1520These should remain true even in the deepest future architecture.
1521
15221. The model is never the root of trust.
15232. Intelligence never implies authority.
15243. Every external effect has an accountable principal.
15254. Capabilities are explicit and revocable.
15265. Speculation occurs in reversible state.
15276. Reality changes only after authorization.
15287. Generated code receives no ambient authority.
15298. DMA is denied unless explicitly confined.
15309. Physical configuration changes are effects.
153110. RSI cannot authorize its own improvements.
153211. Exact evaluated artifacts are the artifacts admitted.
153312. Failed improvements roll back before repair.
153413. Evidence distinguishes simulation, emulation and physical measurement.
153514. A new hardware substrate does not automatically become trusted.
153615. Recovery must not require the model.
153716. Human operator authority remains available independently of agent reasoning.
1538
1539---
1540
1541## 32. Research Lanes That Must Not Block the Product
1542
1543Keep these active, but separate from the critical path:
1544
1545```text
1546direct GB10 acceleration
1547FPGA synthesis
1548multi-valued computation
1549Wave IR
1550Hum of the Hive
1551analog computing
1552optical computing
1553neuromorphic substrates
1554self-generated physical backends
1555```
1556
1557Each can mature until it earns promotion into the main architecture.
1558
1559This lets AIEN remain ambitious without turning the kernel roadmap into a physics research program.
1560
1561---
1562
1563## 33. First Major Product Boundary
1564
1565The first complete AIEN product does not require Wave IR, FPGA synthesis or a Physical Compiler.
1566
1567It requires:
1568
1569```text
1570power on
1571↓
1572AIENOS
1573↓
1574local AIEN agent
1575↓
1576conversation / voice
1577↓
1578useful native model
1579↓
1580Cortex
1581↓
1582safe capabilities
1583↓
1584power off
1585↓
1586power on
1587↓
1588continues
1589```
1590
1591That is the first system worth putting in someone's hands.
1592
1593Everything deeper builds upon it.
1594
1595---
1596
1597## 34. Final Architectural Boundary
1598
1599The final mature system looks like this:
1600
1601```text
1602 HUMAN
1603 │
1604 ▼
1605 ┌─────────┐
1606 │ INTENT │
1607 └────┬────┘
1608 ▼
1609 ┌────────────────┐
1610 │ DESIRED STATE │
1611 └───────┬────────┘
1612 ▼
1613 ┌─────────────────┐
1614 │ TRANSFORMATION │
1615 └───────┬─────────┘
1616 │
1617 ┌─────────▼─────────┐
1618 │ J-SPACE │
1619 │ possible futures │
1620 └─────────┬─────────┘
1621 ▼
1622 ┌────────────┐
1623 │ AEGIS │
1624 │ authority │
1625 └─────┬──────┘
1626 ▼
1627 ┌───────────────────┐
1628 │ PHYSICAL COMPILER │
1629 └─────────┬─────────┘
1630 ▼
1631 ┌──────────────────┐
1632 │ PHYSICAL FABRIC │
1633 └─────────┬────────┘
1634 ▼
1635 ┌─────────────────────────────────────┐
1636 │ CPU │ GPU │ FPGA │ WAVE │ ANALOG │ ? │
1637 └──────────────────┬──────────────────┘
1638 ▼
1639 PHYSICS
1640 │
1641 ▼
1642 REALITY
1643 │
1644 ▼
1645 SENSORS
1646 │
1647 ▼
1648 EVIDENCE
1649 │
1650 ▼
1651 CORTEX
1652 │
1653 ▼
1654 RSI
1655```
1656
1657---
1658
1659## 35. What AIEN Eventually Becomes
1660
1661AIEN begins as an operating system because an operating system is the first layer that must be owned.
1662
1663It evolves into a persistent agent platform.
1664
1665Then into a hardware-neutral transformation system.
1666
1667Then into a physical compiler.
1668
1669Eventually its deepest question is no longer:
1670
1671> "Which instruction should the CPU execute?"
1672
1673Nor even:
1674
1675> "Which program should I run?"
1676
1677It becomes:
1678
1679> **"What permitted physical process can cause the requested state of reality to become true?"**
1680
1681The system then finds a realization, verifies it, executes it, measures it and remembers what happened.
1682
1683That is the fully zoomed-out architecture.
1684
1685> **Intent → Meaning → Desired State → Transformation → Authority → Physical Realization → Physics → Reality → Evidence → Learning.**
1686
1687Everything currently being built is a layer of that path.