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