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/aienux/blob/main/docs/BLUEPRINT.md # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / docs / BLUEPRINT.md` 1611 lines · 31188 bytes Raw Blame History Rendered 1 # AIENOS — Final Architectural Blueprint 2 3 > **REFERENCE DESIGN SNAPSHOT, NOT AN ACTIVE EXECUTION PLAN.** Current AIENOS sequencing is [../ROADMAP.md](../ROADMAP.md). Whole-system sequencing is owned by `aien-spark/aien-architecture/CURRENT_EXECUTION_PLAN.md`. See [PLAN_AUTHORITY.md](PLAN_AUTHORITY.md). 4 5 ## 1. The final vision 6 7 AIENOS is an agent-native operating system. 8 9 The end state is a machine where the user presses the power button and AIEN wakes up directly. 10 11 Not: 12 13 Windows → AIEN application. 14 15 Not: 16 17 macOS → AIEN application. 18 19 Not: 20 21 Ubuntu → desktop → containers → Python → HTTP server → AIEN. 22 23 The target is: 24 25 ```text 26 Power 27 ↓ 28 Firmware 29 ↓ 30 AIEN Boot Trust 31 ↓ 32 AIENOS 33 ↓ 34 Hardware 35 ↕ 36 AIEN Runtime 37 ↕ 38 Persistent AIEN Agent 39 ↓ 40 User 41 ``` 42 43 AIEN itself is the persistent thing. 44 45 The physical computer can change. 46 47 The model can change. 48 49 The GPU can change. 50 51 The user interface can change. 52 53 Individual implementations can change. 54 55 But the agent's identity, state, memory, authority, history, evidence and relationship to the operator survive those changes. 56 57 The computer is no longer organized around applications. 58 59 It is organized around: 60 61 ```text 62 identity 63 state 64 memory 65 capabilities 66 effects 67 hardware 68 models 69 Worlds 70 evidence 71 ``` 72 73 The model is an intelligence component inside the system. 74 75 It is not the operating system. 76 77 It is not the root of trust. 78 79 It is not the authority that decides what it is allowed to do. 80 81 --- 82 83 # 2. The central architectural principle 84 85 AIENOS separates four things that conventional AI systems usually blur together: 86 87 ```text 88 WHO AM I? 89 ↓ 90 Persistent logical agent identity 91 92 WHAT DO I KNOW? 93 ↓ 94 Cortex / evidence-aware memory 95 96 WHAT AM I ALLOWED TO DO? 97 ↓ 98 AEGIS / capabilities / effect authorization 99 100 WHERE AM I CURRENTLY EXECUTING? 101 ↓ 102 Physical compute, inference state, memory and hardware 103 ``` 104 105 Those must remain separable. 106 107 The foundational rule remains: 108 109 > Losing physical inference state should cost computation, not identity. 110 111 A GPU crash must not create a new agent. 112 113 Evicting KV memory must not create a new agent. 114 115 Changing models must not create a new agent. 116 117 Rebooting the computer must not create a new agent. 118 119 Moving to another machine must eventually not create a new agent. 120 121 Physical execution is replaceable. 122 123 Logical identity is persistent. 124 125 --- 126 127 # 3. Final system architecture 128 129 The target stack is approximately: 130 131 ```text 132 ┌────────────────────────────────────────────┐ 133 │ OPERATOR │ 134 └─────────────────────┬──────────────────────┘ 135 │ 136 ┌─────────────────────▼──────────────────────┐ 137 │ AIEN AGENT │ 138 │ │ 139 │ reasoning • planning • interface • routing │ 140 └──────────┬───────────┬───────────┬─────────┘ 141 │ │ │ 142 ▼ ▼ ▼ 143 J-Space Cortex Capability 144 Worlds Memory Graph 145 │ │ │ 146 └───────────┼───────────┘ 147 ▼ 148 ┌────────────────────────────────────────────┐ 149 │ AEGIS │ 150 │ │ 151 │ policy • authorization • provenance │ 152 │ effect approval • capability enforcement │ 153 └─────────────────────┬──────────────────────┘ 154 │ 155 ▼ 156 ┌────────────────────────────────────────────┐ 157 │ EFFECT BROKER │ 158 │ │ 159 │ converts authorized intent into real │ 160 │ effects on machines, networks and data │ 161 └─────────────────────┬──────────────────────┘ 162 │ 163 ┌─────────────────────▼──────────────────────┐ 164 │ AIEN NEURAL RUNTIME │ 165 │ │ 166 │ Model ABI │ 167 │ Agent State ABI │ 168 │ inference scheduler │ 169 │ physical COW state │ 170 │ placement / compute │ 171 │ tools and skills │ 172 │ storage services │ 173 │ network services │ 174 └─────────────────────┬──────────────────────┘ 175 │ 176 ┌─────────────────────▼──────────────────────┐ 177 │ AIENOS KERNEL │ 178 │ │ 179 │ scheduling │ 180 │ memory │ 181 │ IPC / capabilities │ 182 │ interrupts │ 183 │ storage │ 184 │ networking │ 185 │ device access │ 186 │ isolation │ 187 │ recovery │ 188 └─────────────────────┬──────────────────────┘ 189 │ 190 ┌─────────────────────▼──────────────────────┐ 191 │ HARDWARE │ 192 │ CPU • GPU/NPU • RAM • disks • network • IO │ 193 └────────────────────────────────────────────┘ 194 ``` 195 196 The exact implementation of every box may change. 197 198 The separation between the boxes should not. 199 200 --- 201 202 # 4. What is fixed versus what the engineering agent may decide 203 204 The engineering agent should have substantial autonomy. 205 206 It may choose: 207 208 * algorithms; 209 * data structures; 210 * crate boundaries; 211 * internal APIs; 212 * schedulers; 213 * allocator designs; 214 * boot mechanisms; 215 * storage implementations; 216 * driver strategies; 217 * build tooling; 218 * testing machinery; 219 * optimization techniques; 220 * assembly versus Rust versus another appropriate open technology; 221 * whether a component should initially be replaced, wrapped, emulated or rewritten; 222 * the fastest technically sound path to the milestone. 223 224 The agent should not be forced to implement something merely because I previously imagined one implementation. 225 226 The architecture is defined by behavior and boundaries, not by arbitrary code layout. 227 228 What is not free to drift is the destination. 229 230 AIENOS must remain independently bootable. 231 232 The agent cannot become the root of trust. 233 234 Native AIENOS cannot require Windows, macOS or Linux to survive. 235 236 The trusted core cannot require a proprietary cloud service, licensing server or opaque compiler/runtime to boot, recover or control the machine. 237 238 Compatibility infrastructure cannot quietly become the permanent native architecture. 239 240 Operator authority cannot be silently broadened. 241 242 Persistent identity cannot be reduced to a running process ID. 243 244 Correctness cannot be sacrificed merely because an implementation benchmarks faster. 245 246 Everything else is engineering territory. 247 248 --- 249 250 # 5. Boot and trust architecture 251 252 Eventually: 253 254 ```text 255 Firmware 256 ↓ 257 operator-controlled boot trust 258 ↓ 259 verified AIENOS boot artifact 260 ↓ 261 verified kernel 262 ↓ 263 verified system services 264 ↓ 265 verified AIEN Runtime 266 ↓ 267 persistent AIEN state 268 ``` 269 270 The operating principle is: 271 272 > The agent cannot authorize itself. 273 274 The model may propose: 275 276 > Send this email. 277 278 But the actual path is: 279 280 ```text 281 Model proposes action 282 ↓ 283 EffectIntent 284 ↓ 285 AEGIS 286 ↓ 287 capability + policy evaluation 288 ↓ 289 Effect Broker 290 ↓ 291 driver / network / storage 292 ↓ 293 real-world effect 294 ``` 295 296 The intelligence that proposes an action is therefore separated from the deterministic mechanism deciding whether the action may occur. 297 298 That separation is fundamental. 299 300 --- 301 302 # 6. The AIENOS kernel 303 304 The kernel should remain small relative to the whole AIEN system. 305 306 It does not need to reason. 307 308 It needs to be extremely dependable. 309 310 At maturity it owns things such as: 311 312 ```text 313 CPU scheduling 314 memory management 315 interrupts 316 timers 317 IPC 318 capability enforcement 319 device access 320 storage 321 networking 322 isolation 323 process/service lifecycle 324 recovery 325 ``` 326 327 The model must not be necessary to: 328 329 * boot; 330 * mount storage; 331 * recover data; 332 * diagnose basic failures; 333 * authenticate the operator; 334 * repair the system; 335 * roll back an update; 336 * kill a malfunctioning service. 337 338 AIENOS must remain a functioning computer even if no model loads. 339 340 --- 341 342 # 7. Hardware sovereignty 343 344 The long-term target is direct ownership of the important hardware path. 345 346 Conceptually: 347 348 ```text 349 AIEN Runtime 350 ↓ 351 AIENOS native interfaces 352 ↓ 353 hardware 354 ``` 355 356 rather than: 357 358 ```text 359 AIEN 360 ↓ 361 desktop application 362 ↓ 363 framework 364 ↓ 365 IPC 366 ↓ 367 host service 368 ↓ 369 general-purpose OS stack 370 ↓ 371 driver stack 372 ↓ 373 hardware 374 ``` 375 376 But this does not mean rewriting everything simply for ideological reasons. 377 378 The engineering agent should optimize toward the native path where it provides actual value. 379 380 The objective is: 381 382 ```text 383 fewer copies 384 fewer boundaries 385 less serialization 386 less unnecessary scheduling 387 predictable latency 388 persistent model residency 389 direct memory management 390 direct accelerator state 391 direct storage paths 392 direct network paths 393 lower overhead 394 higher agent density 395 ``` 396 397 The project measures each of these instead of assuming bare metal is automatically faster. 398 399 --- 400 401 # 8. Compatibility islands 402 403 During the transition, AIENOS is allowed to use compatibility islands. 404 405 For example: 406 407 ```text 408 AIENOS 409 │ 410 ┌──────────┴──────────┐ 411 │ │ 412 native capability compatibility island 413 │ │ 414 ▼ ▼ 415 hardware Linux/vendor stack 416 ``` 417 418 An island can temporarily provide: 419 420 * GPU access; 421 * legacy applications; 422 * unsupported hardware; 423 * specialized vendor functionality. 424 425 It can even be faster than the native implementation temporarily. 426 427 That is acceptable. 428 429 What matters is: 430 431 > The island is not AIENOS's foundation. 432 433 Removing it must not make the native system impossible to build, boot, recover or control. 434 435 Over time: 436 437 ```text 438 Era I 439 large compatibility island 440 small native system 441 442 Era II 443 rough parity 444 445 Era III 446 mostly native 447 small legacy island 448 449 End state 450 islands exist only where useful 451 ``` 452 453 --- 454 455 # 9. Agent State ABI 456 457 This may become one of AIEN's most important contributions. 458 459 An agent should have logical state that is separate from whatever runtime instance happens to execute it. 460 461 The hierarchy becomes roughly: 462 463 ```text 464 LogicalAgentId 465 │ 466 ├── LogicalBranchId 467 │ 468 ├── TokenHistory 469 │ 470 ├── memory references 471 │ 472 ├── capability state 473 │ 474 ├── lineage 475 │ 476 └── evidence/provenance 477 │ 478 ▼ 479 Execution incarnation 480 │ 481 ▼ 482 SequenceId 483 │ 484 ▼ 485 physical inference state 486 │ 487 ├── KV pages 488 ├── accelerator buffers 489 └── temporary compute 490 ``` 491 492 A branch can: 493 494 ```text 495 fork 496 run 497 suspend 498 resume 499 evict 500 reconstruct 501 crash 502 restart 503 ``` 504 505 without silently changing semantic identity. 506 507 Eventually: 508 509 ```text 510 fork(agent_state) 511 checkpoint(agent_state) 512 suspend(agent_state) 513 resume(agent_state) 514 migrate(agent_state) 515 destroy(agent_state) 516 ``` 517 518 become well-defined system operations. 519 520 --- 521 522 # 10. Copy-on-write agent computation 523 524 AIEN's branch model should allow many reasoning branches to share their common physical inference prefix. 525 526 Instead of: 527 528 ```text 529 100 agents 530 × 531 same 100K-token prefix 532 ``` 533 534 AIEN aims toward: 535 536 ```text 537 one physical prefix 538 ↓ 539 ┌──────┼──────┬──────┐ 540 ↓ ↓ ↓ ↓ 541 B1 B2 B3 ... 542 ``` 543 544 Only divergent state becomes private. 545 546 This potentially affects: 547 548 * coding-agent swarms; 549 * planning; 550 * search; 551 * hypothesis exploration; 552 * best-of-N inference; 553 * simulation; 554 * research agents; 555 * long-context reasoning. 556 557 C1 exists to prove this behaves correctly before AIEN makes strong performance claims around it. 558 559 --- 560 561 # 11. Cortex 562 563 Cortex is the persistent knowledge system. 564 565 Its job is not merely to store embeddings. 566 567 It should maintain distinctions such as: 568 569 ```text 570 observation 571 verified fact 572 source 573 inference 574 hypothesis 575 contradiction 576 decision 577 episodic memory 578 canonical state 579 ``` 580 581 The system should understand not just: 582 583 > What do I remember? 584 585 but: 586 587 > Why do I believe this? 588 589 That avoids a failure mode where model-generated speculation gets stored, later retrieved as apparent fact, and recursively reinforces itself. 590 591 Cortex becomes durable epistemic state. 592 593 --- 594 595 # 12. Worlds / J-Space 596 597 AIEN needs a place where it can act freely without constantly asking permission. 598 599 The basic operating principle is: 600 601 > Free inside reversible state. Approval at irreversible boundaries. 602 603 A World is a reversible execution/state environment. 604 605 Inside one, AIEN can: 606 607 * modify code; 608 * restructure files; 609 * run tests; 610 * experiment; 611 * build artifacts; 612 * simulate decisions; 613 * change temporary configuration; 614 * create branches; 615 * evaluate alternative solutions. 616 617 Only when something needs to cross from reversible state into the real world does the Effect system become involved. 618 619 For example: 620 621 ```text 622 World 623 ↓ 624 AIEN modifies repository 625 ↓ 626 tests pass 627 ↓ 628 AIEN proposes publish 629 ↓ 630 EffectIntent: push code externally 631 ↓ 632 AEGIS 633 ↓ 634 operator policy/approval 635 ↓ 636 Git operation 637 ``` 638 639 This allows considerable autonomy without making autonomy equivalent to unlimited authority. 640 641 --- 642 643 # 13. Capability Graph 644 645 Traditional operating systems organize software around programs. 646 647 AIENOS should increasingly organize functionality around capabilities. 648 649 Examples: 650 651 ```text 652 filesystem.read 653 filesystem.write 654 655 mail.read 656 mail.send 657 658 calendar.read 659 calendar.schedule 660 661 code.build 662 code.test 663 code.publish 664 665 network.connect 666 667 image.edit 668 669 model.run 670 671 device.camera 672 673 hardware.inspect 674 ``` 675 676 Applications may still exist. 677 678 But an application does not own the underlying capability or data. 679 680 The agent can compose capabilities dynamically. 681 682 That is how the computer stops being a collection of application silos and becomes an environment the agent can operate coherently. 683 684 --- 685 686 # 14. Model ABI 687 688 Models are replaceable intelligence engines. 689 690 AIENOS should eventually be able to say: 691 692 ```text 693 load model A 694 695 replace with model B 696 697 run specialist model C for coding 698 699 run smaller model D for routing 700 ``` 701 702 without redefining the identity of the agent. 703 704 The Model ABI should separate: 705 706 ```text 707 model weights 708 tokenizer 709 execution backend 710 inference state 711 sampling 712 logical agent state 713 ``` 714 715 No model provider should become equivalent to AIEN itself. 716 717 --- 718 719 # 15. Phase 1 — Freeze reality 720 721 Before replacing anything, freeze the working Spark system. 722 723 This is Config A. 724 725 ```text 726 Ubuntu 727 ↓ 728 current AIEN stack 729 ↓ 730 current NVIDIA path 731 ↓ 732 DGX Spark 733 ``` 734 735 The goal is not optimization. 736 737 The goal is reproducibility. 738 739 Capture: 740 741 * hardware identity; 742 * firmware; 743 * current OS; 744 * source commits; 745 * build configuration; 746 * model hashes; 747 * tokenizer; 748 * libraries; 749 * execution environment; 750 * workloads; 751 * correctness evidence; 752 * recovery procedure; 753 * performance distributions. 754 755 Produce a verified reference bundle. 756 757 After this phase I can answer: 758 759 > What exactly did native AIENOS replace? 760 761 without relying on memory or marketing. 762 763 --- 764 765 # 16. Phase 2 — Native AIENOS boot 766 767 Now the actual operating system begins. 768 769 Objective: 770 771 > Power on the DGX Spark and boot AIENOS itself. 772 773 Minimum milestone: 774 775 ```text 776 Firmware 777 ↓ 778 AIENOS boot 779 ↓ 780 AIENOS kernel 781 ↓ 782 CPU initialized 783 ↓ 784 memory available 785 ↓ 786 interrupts/timers operating 787 ↓ 788 console available 789 ↓ 790 storage available 791 ↓ 792 recovery available 793 ``` 794 795 No agent required yet. 796 797 No GPU required yet. 798 799 No elaborate UI required. 800 801 No networking required to claim this milestone. 802 803 The proof is brutally simple: 804 805 > The machine boots AIENOS without Linux being the host. 806 807 --- 808 809 # 17. Phase 3 — The agent wakes up 810 811 Once the native machine substrate works: 812 813 ```text 814 AIENOS boots 815 ↓ 816 AIEN Runtime starts 817 ↓ 818 local model loads 819 ↓ 820 AIEN Agent starts 821 ↓ 822 operator can communicate with it 823 ↓ 824 Cortex persists 825 ↓ 826 reboot 827 ↓ 828 same logical AIEN resumes 829 ``` 830 831 CPU inference is sufficient. 832 833 The objective isn't speed yet. 834 835 The objective is continuity. 836 837 The first native AIEN should primarily understand and operate AIENOS itself. 838 839 Its earliest job is: 840 841 ```text 842 observe machine 843 diagnose machine 844 inspect itself 845 run tests 846 read logs 847 repair reversible failures 848 help develop AIENOS 849 ``` 850 851 General assistant capabilities are secondary during this stage. 852 853 --- 854 855 # 18. Phase 4 — Native system intelligence 856 857 Now make the agent genuinely useful as the operating interface. 858 859 Bring in: 860 861 ```text 862 Cortex 863 Agent State 864 AEGIS 865 Effect Broker 866 Capability Graph 867 Worlds 868 system introspection 869 storage capabilities 870 local tools 871 developer capabilities 872 ``` 873 874 The operator should increasingly be able to interact with the system through intent: 875 876 > Show me what's consuming memory. 877 878 > Fix this build. 879 880 > Find why networking stopped. 881 882 > Create a new development World. 883 884 > Roll back the last system update. 885 886 AIEN translates intent into capabilities rather than requiring the user to manually navigate traditional programs. 887 888 --- 889 890 # 19. Phase 5 — Native hardware acceleration 891 892 Only after native AIENOS itself exists do I aggressively optimize. 893 894 AIENOS progressively takes ownership of hot paths: 895 896 ```text 897 accelerator 898 storage 899 network 900 memory 901 scheduler 902 inference 903 ``` 904 905 The engineering agent is free to find the fastest correct solution. 906 907 The requirement is that the resulting native path remains sovereign according to the trusted-base rules. 908 909 Compatibility GPU paths can remain beside it while the native accelerator path matures. 910 911 The important competition becomes: 912 913 ```text 914 A — Ubuntu reference 915 B — minimal Linux / compatibility island 916 C — native AIENOS 917 ``` 918 919 Run the same workloads. 920 921 Compare separately: 922 923 ```text 924 boot → agent ready 925 926 agent ready → model ready 927 928 TTFT 929 930 steady-state throughput 931 932 memory availability 933 934 scheduler jitter 935 936 power 937 938 branch creation 939 940 branch physical memory cost 941 942 restore time 943 944 agent density 945 ``` 946 947 No single synthetic “speed score.” 948 949 --- 950 951 # 20. Phase 6 — Migration system 952 953 Once AIENOS can survive independently, adoption becomes important. 954 955 The existing OS becomes an installer. 956 957 On Windows/macOS/Linux: 958 959 ```text 960 AIEN bootstrap 961 ↓ 962 inspect machine 963 ↓ 964 Machine Capsule 965 ↓ 966 determine AIENOS support 967 ↓ 968 prepare native installation 969 ↓ 970 preserve user state 971 ↓ 972 install separate boot target 973 ↓ 974 validate 975 ↓ 976 Restart into AIEN 977 ``` 978 979 The host is scaffolding. 980 981 It is not the destination. 982 983 The core migration rule: 984 985 > AIENOS may learn from the host, but it must not require the host to survive. 986 987 --- 988 989 # 21. Machine Capsule 990 991 A host-side AIEN installation should learn enough about a machine to create a portable description of it. 992 993 Conceptually: 994 995 ```text 996 MachineCapsule 997 ├── firmware 998 ├── CPU 999 ├── accelerator 1000 ├── memory 1001 ├── storage 1002 ├── network 1003 ├── display 1004 ├── audio 1005 ├── USB 1006 ├── Bluetooth 1007 ├── input 1008 ├── known drivers 1009 ├── user state 1010 ├── critical applications 1011 └── compatibility requirements 1012 ``` 1013 1014 The Machine Capsule is not itself a driver implementation. 1015 1016 It describes what AIENOS needs to reproduce. 1017 1018 The engineering agent may then determine the best path for supporting that machine. 1019 1020 --- 1021 1022 # 22. Reversible installation 1023 1024 AIENOS should initially install beside the existing OS. 1025 1026 Conceptually: 1027 1028 ```text 1029 Disk 1030 │ 1031 ├── incumbent OS 1032 │ 1033 ├── AIENOS 1034 └── recovery 1035 ``` 1036 1037 The system validates: 1038 1039 ```text 1040 boot 1041 storage 1042 display 1043 input 1044 network where available 1045 model loading 1046 AIEN state 1047 Cortex 1048 recovery 1049 ``` 1050 1051 before encouraging broader migration. 1052 1053 If AIENOS fails: 1054 1055 > Boot the old system. 1056 1057 This dramatically lowers adoption risk. 1058 1059 --- 1060 1061 # 23. Progressive escape from the incumbent OS 1062 1063 At first, users may still rely on old software. 1064 1065 That's acceptable. 1066 1067 The progression is: 1068 1069 ```text 1070 Stage 1 1071 AIEN lives inside host. 1072 1073 Stage 2 1074 AIENOS dual-boots. 1075 1076 Stage 3 1077 AIENOS becomes primary. 1078 1079 Stage 4 1080 Legacy host is used only for a few applications. 1081 1082 Stage 5 1083 Legacy capabilities run through compatibility islands. 1084 1085 Stage 6 1086 Old OS becomes an archive/recovery image. 1087 1088 Stage 7 1089 Old OS can be removed if the operator chooses. 1090 ``` 1091 1092 The project does not force migration. 1093 1094 It makes migration increasingly unnecessary to resist. 1095 1096 --- 1097 1098 # 24. Phase 7 — Multi-hardware AIENOS 1099 1100 Once Spark proves the architecture, expand outward. 1101 1102 Do not hard-code the system conceptually around NVIDIA DGX Spark. 1103 1104 Spark is the reference machine, not AIEN's identity. 1105 1106 Port AIENOS to additional targets based on engineering value and available resources. 1107 1108 Examples could eventually include: 1109 1110 ```text 1111 desktop x86 1112 ARM systems 1113 AMD accelerator systems 1114 Apple hardware where practical 1115 embedded systems 1116 future AI appliances 1117 ``` 1118 1119 Every platform implements the same higher-level AIEN contracts. 1120 1121 Hardware becomes a replaceable substrate. 1122 1123 --- 1124 1125 # 25. Phase 8 — Personal Fabric 1126 1127 Eventually one AIEN may span several machines. 1128 1129 For example: 1130 1131 ```text 1132 AIEN 1133 │ 1134 ┌────────────┼────────────┐ 1135 │ │ │ 1136 Spark Laptop Phone 1137 │ │ │ 1138 GPU display sensors 1139 compute keyboard mobile 1140 ``` 1141 1142 Machines become resources belonging to the operator's AIEN environment. 1143 1144 AIEN can determine: 1145 1146 > This computation belongs on Machine A. 1147 1148 > This interface belongs on Machine B. 1149 1150 > These files remain physically on Machine C. 1151 1152 > This model should migrate to the workstation. 1153 1154 The identity remains above the machines. 1155 1156 --- 1157 1158 # 26. Eventually: state mobility 1159 1160 A mature system should be able to: 1161 1162 ```text 1163 run branch on machine A 1164 ↓ 1165 suspend 1166 ↓ 1167 move logical state 1168 ↓ 1169 reconstruct required physical state 1170 ↓ 1171 resume on machine B 1172 ``` 1173 1174 Physical KV state need not necessarily migrate byte-for-byte. 1175 1176 The system may decide recomputation is cheaper. 1177 1178 Again: 1179 1180 > Physical state is optimization. 1181 1182 > Logical state is identity. 1183 1184 --- 1185 1186 # 27. Evidence architecture 1187 1188 Every major AIENOS technical claim should be backed by a reproducible evidence bundle. 1189 1190 That means: 1191 1192 ```text 1193 source commit 1194 machine identity 1195 build identity 1196 model identity 1197 config 1198 workload 1199 raw measurements 1200 correctness result 1201 environment 1202 verifier 1203 artifact hashes 1204 ``` 1205 1206 No screenshot-as-proof culture. 1207 1208 No benchmark number detached from the command that generated it. 1209 1210 No “verified” because the program happened not to crash. 1211 1212 Claims should be predefined. 1213 1214 Evidence earns claims. 1215 1216 Evidence does not earn adjectives. 1217 1218 --- 1219 1220 # 28. C1's role 1221 1222 C1 remains foundational. 1223 1224 Before AIENOS uses branch-native inference as a major architectural advantage, C1 establishes that: 1225 1226 ```text 1227 identity survives 1228 branches isolate correctly 1229 COW is physically real 1230 recomputation is equivalent 1231 memory conserves correctly 1232 resources are reclaimed 1233 parents survive child behavior 1234 state continuity survives resource events 1235 ``` 1236 1237 AIENOS can inherit those semantics. 1238 1239 It should not create weaker OS-specific versions. 1240 1241 --- 1242 1243 # 29. Development model for the autonomous engineering agent 1244 1245 The engineering agent receives: 1246 1247 ```text 1248 CURRENT STATE 1249 + 1250 NEXT MILESTONE 1251 + 1252 ARCHITECTURAL INVARIANTS 1253 + 1254 ACCEPTANCE TESTS 1255 ``` 1256 1257 Then it is free to solve the engineering problem. 1258 1259 It should be allowed to: 1260 1261 ```text 1262 research 1263 prototype 1264 rewrite 1265 benchmark 1266 discard approaches 1267 change internal implementation 1268 write new tools 1269 run experiments 1270 optimize 1271 refactor 1272 ``` 1273 1274 without repeatedly asking which exact function to create. 1275 1276 The operator is not the implementation router. 1277 1278 The operator owns the architecture. 1279 1280 The agent owns engineering execution. 1281 1282 Escalation happens when the agent discovers that success appears to require changing something fundamental, such as: 1283 1284 ```text 1285 trust model 1286 operator authority 1287 persistent identity semantics 1288 security boundary 1289 irreversible data format 1290 native-vs-compatibility boundary 1291 sovereignty requirement 1292 licensing 1293 recovery guarantees 1294 external protocol contract 1295 major architecture 1296 ``` 1297 1298 Otherwise: 1299 1300 > Solve it. 1301 1302 --- 1303 1304 # 30. Failure should change implementation, not the goal 1305 1306 Suppose native storage approach A doesn't work. 1307 1308 The agent tries B. 1309 1310 Suppose B is slow. 1311 1312 Try C. 1313 1314 Suppose the planned scheduler architecture turns out to be wrong. 1315 1316 Replace it. 1317 1318 Suppose Rust isn't appropriate for a tiny low-level section. 1319 1320 Use something appropriate. 1321 1322 The blueprint should not trap the project inside guesses made before the evidence existed. 1323 1324 The destination is fixed. 1325 1326 The route evolves. 1327 1328 --- 1329 1330 # 31. “Fastest wins” properly defined 1331 1332 The rule is not: 1333 1334 > fastest benchmark result wins regardless of everything else. 1335 1336 It is: 1337 1338 > Among implementations that satisfy correctness, security, sovereignty and the required contract, the fastest measured implementation wins. 1339 1340 Conceptually: 1341 1342 ```text 1343 Correct? 1344 no → reject 1345 1346 Secure enough? 1347 no → reject 1348 1349 Sovereignty contract? 1350 no → compatibility-only 1351 1352 Passes interface/invariant tests? 1353 no → reject 1354 1355 Remaining candidates 1356 ↓ 1357 measure 1358 ↓ 1359 fastest wins 1360 ``` 1361 1362 --- 1363 1364 # 32. Self-improvement 1365 1366 Eventually AIEN should help improve AIENOS. 1367 1368 But it must not mutate its trusted foundation arbitrarily while running. 1369 1370 The model may: 1371 1372 ```text 1373 discover optimization 1374 ↓ 1375 create experimental World 1376 ↓ 1377 modify implementation 1378 ↓ 1379 build 1380 ↓ 1381 run correctness suite 1382 ↓ 1383 benchmark 1384 ↓ 1385 compare evidence 1386 ↓ 1387 produce candidate 1388 ``` 1389 1390 Promotion remains controlled: 1391 1392 ```text 1393 candidate 1394 ↓ 1395 evaluation 1396 ↓ 1397 security checks 1398 ↓ 1399 signing 1400 ↓ 1401 deployment 1402 ↓ 1403 rollback available 1404 ``` 1405 1406 AIEN may improve itself. 1407 1408 AIEN does not simply declare its own rewrite trustworthy. 1409 1410 --- 1411 1412 # 33. What the finished system feels like 1413 1414 The user presses power. 1415 1416 AIENOS verifies itself. 1417 1418 The resident agent wakes. 1419 1420 The machine already knows: 1421 1422 ```text 1423 who the operator is 1424 who the agent is 1425 what hardware exists 1426 what capabilities exist 1427 what state existed before shutdown 1428 what projects are active 1429 what memories are trusted 1430 what permissions have been granted 1431 what branches are suspended 1432 what models are available 1433 ``` 1434 1435 The user doesn't need to open an application to begin computing. 1436 1437 They interact with AIEN. 1438 1439 If they need something visual, AIEN creates an interface. 1440 1441 If they need code built, AIEN invokes build capabilities. 1442 1443 If they need mail sent, AIEN invokes mail capabilities. 1444 1445 If they need a simulation, AIEN creates a World. 1446 1447 If more reasoning is useful, AIEN forks state. 1448 1449 If hardware state disappears, AIEN reconstructs it. 1450 1451 If another machine is better suited, AIEN eventually moves work there. 1452 1453 The operating system becomes the substrate of the agent rather than the collection of applications the user manually coordinates. 1454 1455 --- 1456 1457 # 34. The adoption proposition 1458 1459 The message isn't: 1460 1461 > Throw away your computer and install an experimental OS. 1462 1463 It becomes: 1464 1465 > Let AIEN learn the machine you already own. 1466 1467 Then: 1468 1469 > Let AIEN build a native environment for it. 1470 1471 Then: 1472 1473 > Restart into AIEN. 1474 1475 Then eventually: 1476 1477 > The old operating system is no longer necessary. 1478 1479 The host exists to help AIEN escape the host. 1480 1481 --- 1482 1483 # 35. The strategic endpoint 1484 1485 The largest possible outcome is not merely an AIEN-branded operating system. 1486 1487 It is the establishment of a different abstraction for personal computing: 1488 1489 ```text 1490 old model: 1491 1492 user 1493 ↓ 1494 applications 1495 ↓ 1496 operating system 1497 ↓ 1498 hardware 1499 1500 1501 AIEN model: 1502 1503 operator 1504 ↓ 1505 persistent intelligent agent 1506 ↓ 1507 capabilities + Worlds + memory + authority 1508 ↓ 1509 AIENOS 1510 ↓ 1511 hardware 1512 ``` 1513 1514 And underneath the agent: 1515 1516 ```text 1517 logical identity ≠ physical execution 1518 knowledge ≠ speculation 1519 intelligence ≠ authority 1520 compatibility ≠ architecture 1521 performance ≠ correctness 1522 model ≠ agent 1523 machine ≠ identity 1524 ``` 1525 1526 Those separations are the real architecture. 1527 1528 --- 1529 1530 # 36. The master execution sequence 1531 1532 The overall journey is: 1533 1534 ```text 1535 CURRENT AIEN 1536 ↓ 1537 PHASE 1 1538 Freeze Linux/Spark reference 1539 ↓ 1540 PHASE 2 1541 Native AIENOS boots 1542 ↓ 1543 PHASE 3 1544 Persistent AIEN wakes natively 1545 ↓ 1546 PHASE 4 1547 Cortex + AEGIS + Worlds + capabilities 1548 ↓ 1549 PHASE 5 1550 Native high-performance hardware paths 1551 ↓ 1552 PHASE 6 1553 Host-to-AIENOS migration compiler 1554 ↓ 1555 PHASE 7 1556 Additional hardware 1557 ↓ 1558 PHASE 8 1559 Personal multi-machine fabric 1560 ↓ 1561 MATURE AIENOS 1562 Persistent sovereign agent-native computing 1563 ``` 1564 1565 The phases may overlap when engineering reality makes that useful. 1566 1567 Their order expresses dependency, not bureaucracy. 1568 1569 The engineering agent may discover a better path. 1570 1571 It should take it if the architectural invariants and milestone proofs remain intact. 1572 1573 --- 1574 1575 # 37. Final definition of success 1576 1577 AIENOS has achieved its core vision when all of these statements are true: 1578 1579 The machine can boot without Windows, macOS or Linux acting as its host. 1580 1581 AIENOS can recover without an AI model. 1582 1583 The AIEN agent survives reboot as the same logical entity. 1584 1585 Cortex survives and preserves evidence/provenance semantics. 1586 1587 The model can be replaced without replacing AIEN. 1588 1589 Agent inference state can be branched, suspended, reclaimed and reconstructed without changing logical identity. 1590 1591 The agent operates the machine through explicit capabilities. 1592 1593 Irreversible effects cross enforceable authorization boundaries. 1594 1595 The operator can recover from AIEN failure. 1596 1597 No outside company is required for ordinary continued operation. 1598 1599 Important native hardware paths are directly controlled by AIENOS. 1600 1601 Compatibility layers are optional rather than foundational. 1602 1603 The system can prove its important performance and correctness claims. 1604 1605 The user can move to another supported machine without the idea of “their AIEN” being tied permanently to the old hardware. 1606 1607 And the ordinary experience becomes: 1608 1609 > Power on the machine. AIEN wakes up. 1610 1611 That is the final vision.