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/adr/0016-resident-reaction-architecture.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 / adr / 0016-resident-reaction-architecture.md` 1804 lines · 44161 bytes Raw Blame History Rendered 1 # ADR 0016: AIEN, Omega, and AEGIS Are Faculties of One Resident Reaction System 2 3 **Status:** Accepted by operator, 2026-09-27 (directive: "Treat this document as the architectural decision. Do not redesign it back into a service pipeline.") 4 **Gate:** `R0_REACTION_ARCHITECTURE_LOCKED` — satisfied when this ADR is merged to `main`. 5 **Supersedes:** nothing. **Amends:** the runtime-composition reading of `doctrine/ARCHITECTURE.md` §1.1 and §2.6 (see "Doctrine reconciliation"). 6 **Amendment 1 (ACCEPTED 2026-10-02 by operator Drake Stapleton, decision Option B):** FORGE is a realization and memory policy, not a stage of accepting a reaction result. See "Amendment 1" under "Doctrine reconciliation". 7 8 **Related:** ADR 0005 (effect broker), ADR 0007 (J-Space effect boundary), ADR 0013/0014 (FORGE realizes, AEGIS verifies, AIENOS owns capabilities), ADR 0015 (Resident Semantic Store, accepted and merged 2026-09-27). 9 **Migration map:** [`docs/plans/CURRENT_CODE_TO_R0_R16_MIGRATION.md`](../plans/CURRENT_CODE_TO_R0_R16_MIGRATION.md) (NOT A MASTER PLAN). 10 11 --- 12 13 ## Part I — Decision record 14 15 ### Context 16 17 Until now the runtime was described as a pipeline: AIEN proposes, then Omega defines, then FORGE realizes, then AEGIS verifies, then hardware acts. Every implementation so far follows that shape. `tools/omegatool.c` sequences each step by hand, and M19's `omega_world_*` API is a synchronous call-submit-drain service. The coherent shared world (M19, M20 Stage 1 work) already points the other way: one pointer-free object world that CPU and GPU both observe. 18 19 The operator directive of 2026-09-27 (Part II, verbatim) changes the runtime composition. It keeps every sovereignty, authority, verification, evidence, rollback, generation, and semantic-identity standard. 20 21 ### Decision 22 23 The following eight statements are locked. No module migration may contradict them. 24 25 ```text 26 AIEN + OMEGA + AEGIS ARE FACULTIES OF ONE RESIDENT SYSTEM. 27 28 THE SYSTEM HAS NO SEMANTIC MASTER LOOP. 29 30 WORK ACTIVATES THROUGH DEPENDENCY READINESS. 31 32 PHYSICAL RESOURCES ARE ARBITRATED BELOW SEMANTIC READINESS. 33 34 AUTHORITY IS UNFORGEABLE. 35 36 BEHAVIOR IS CONTINUOUS. 37 38 DURABLE LEARNING USES GENERATION BARRIERS. 39 40 ALL NONTRIVIAL TRANSITIONS ARE CAUSALLY TRACEABLE. 41 ``` 42 43 Canonical architectural sentence: 44 45 > AIEN is a persistent resident computational organism in which cognition, semantics, realization, authority, memory, evidence, and action evolve concurrently over one generation-addressed object world. Work activates by readiness rather than turn-taking; physical resources are locally arbitrated; authority remains unforgeable; durable learning occurs at verified generation barriers; and every consequential state transition remains causally attributable. 46 47 ### Terminology mapping to current doctrine 48 49 Part II was written with some pre-ADR-0014 vocabulary. Read it through this table. Historical identifiers stay unchanged, per ADR 0014. 50 51 | Part II term | Current meaning | 52 |---|---| 53 | "Physics" as machine realization (§29 cost model, `physics/cpu`, `physics/accelerator`, `physics/memory`) | **FORGE** (ADR 0014). FORGE realizes; it is not a security gatekeeper. | 54 | "Trusted physical root", "capability mint and validator", `physics/capability` | The **capability root**. Natively this is the AIENOS kernel capability authority, which ADR 0014 assigns to AIENOS. On bare metal the historical M3 ledger (`aien-spark/physics` `m3/capability.s`) is the reference. For Linux-hosted development it is an out-of-process host root whose table the semantic runtime can read but never write (see the migration map). It is never an ordinary mutable semantic object. | 55 | "AEGIS and Physics must remain capable of stopping execution" (§31) | AEGIS (policy/verification) plus the capability root and AIENOS (revocation, worker cancellation, GPU reset) must be able to stop execution while cognition is unhealthy. | 56 | AEGIS "capability policy / authority relations" | AEGIS verifies authority and checks compliance against system invariants; it decides no policy and authors no law (acting as quality control verification). It issues PolicyDecision / CapabilityRequest / RevocationIntent strictly as evaluations against canonical criteria. Only the capability root turns a decision into an enforceable capability. AEGIS verifies, the root mints. | 57 | "Physics Zero" | Unrelated. It is the scientific-discovery program (M27–M35). | 58 59 ### Doctrine reconciliation 60 61 `ATLAS AWAKENS. AIEN PROPOSES. OMEGA DEFINES. FORGE REALIZES. AEGIS VERIFIES. HARDWARE ACTS. EVIDENCE TEACHES.` remains the canonical statement of **responsibilities and causal dependencies**. After this ADR it is **not** a runtime turn order. In the resident system: 62 63 - "AIEN proposes" means AIEN publishes typed proposals (`Hypothesis`, `PlanCandidate`, …) into the shared world. 64 - "OMEGA defines" and "FORGE realizes" are reactions that become ready when those proposals exist. FORGE realization is a realization and memory policy, not a step in accepting a reaction result (ADR 0016 Amendment 1, 2026-10-02, below). 65 - "AEGIS verifies" means authority state takes part in readiness. Verification reactions gate promotion. AEGIS is not a synchronous call on every step. 66 - "Evidence teaches" means evidence is appended as structured causal crumbs, and durable learning is promoted only at generation barriers. 67 68 The §2.6 "Bidirectional Lowering Protocol" still describes the dependency structure of one realization. Its numbered steps are dependencies, not a loop body. 69 70 #### Amendment 1 (ACCEPTED 2026-10-02 by operator Drake Stapleton, Option B) 71 72 - FORGE is a realization policy: hardware lowering and, inside J-Space, a memory-pressure policy (`js_forge_choose`, `js_forge_enforce`). It is not a stage of accepting a reaction result. 73 - The recorded accept chain is World -> J-Space -> `compose.verify` -> commit -> Cortex, as documented in `aien-spark/omega` `docs/runtime/COMMIT_A_REACTION_DESIGN.md` (merged `35af57d`). No FORGE step sits on it. 74 - Wherever this ADR, `doctrine/ARCHITECTURE.md` §2.6 or any other document lists FORGE before verify, act or commit, read it as a dependency for hardware realization only, not as a commit step. 75 - If hardware realization later needs a hook on the accept path, that is a new decision and a new amendment. 76 - This does not change ADR 0024: Physics and FORGE remain hardware-substrate class B. 77 78 ### Relationship to ADR 0015 (Resident Semantic Store) 79 80 ADR 0015 governs durable state: memory categories, `OmegaResidentRoot`, the Store v1 commit point, and cold recovery. This ADR governs how the live world changes. The state classes in Part II §19 map onto ADR 0015's categories as follows: 81 82 | Part II §19 | ADR 0015 §2 | 83 |---|---| 84 | Ephemeral | `EPHEMERAL`, `DEVICE_LOCAL` | 85 | Resident | `RECONSTRUCTIBLE`, `DERIVED` | 86 | Durable | `DURABLE` | 87 88 The generation barrier (Part II §17–18, gate R9) must commit through the ADR 0015 ordered commit protocol. ADR 0015 is merged (2026-09-27), so R9 may start once its own prerequisites (R5–R8) hold. R0–R8 are in-memory and do not write persistent formats, so they are not blocked by ADR 0015. 89 90 ### Invariants carried into every stage 91 92 These are I1–I16 from Part II §54. Every R-gate receipt must state which invariants its tests exercised. 93 94 ### Consequences 95 96 - New runtime code is organized by shared primitives (object, reaction, dependency, publication, causal, generation, resource, recovery), not by `aien-runtime/`, `omega-runtime/`, or `aegis-runtime/` schedulers (Part II §50–51). 97 - The legacy orchestrated paths (`omegatool` gate/demo sequencing, M19 synchronous `omega_world_*` dispatch, `aegis-runtime` orchestration) become the reference oracle. They are not deleted before R16 (Part II §32). 98 - Authority encoded as editable fields is non-conforming as authority. This includes `OmegaHandle.permissions` in M19 and `is_physics_authorized` in M13/M15, which stays frozen as a historical fingerprint field. Those fields may remain as cached views, but they must never be the thing that grants a right (Part II §3, §57; invariant I3). 99 - Gate claims follow the existing evidence discipline (M19R Gate 1): observed counts, candidate commit bound as input, and no hardware claim from mocks (Part II §60 items 7–8). 100 101 --- 102 103 ## Part II — Normative standard (operator directive, 2026-09-27) 104 105 Verbatim, except that the R0–R16 gate sections (§33–§49) and §50–§57 have their bullet lists folded onto single lines. No requirement was added, removed, or reworded. 106 107 # AIEN UNIFIED ORGANISM 108 109 ## Resident Reaction Architecture Implementation Plan 110 111 ### Status 112 113 **PROPOSED ARCHITECTURAL STANDARD** (accepted as ADR 0016 — see Part I) 114 115 This document changes the runtime composition of AIEN, Omega, and AEGIS. 116 117 It does **not** discard the existing sovereignty, authority, verification, evidence, rollback, generation, or semantic-identity standards. 118 119 The central change is: 120 121 ```text 122 OLD 123 124 AIEN 125 ↓ 126 OMEGA 127 ↓ 128 AEGIS 129 ↓ 130 PHYSICS 131 ↓ 132 MACHINE 133 ``` 134 135 becomes: 136 137 ```text 138 ONE RESIDENT SYSTEM 139 140 ┌──────────┬──────────┬──────────┐ 141 │ │ │ │ 142 AIEN OMEGA AEGIS │ 143 cognition semantics authority │ 144 learning synthesis policy │ 145 goals realization capability │ 146 │ │ │ │ 147 └──────────┴──────────┴──────────┘ 148 │ 149 SHARED LIVE WORLD 150 │ 151 TRUSTED PHYSICAL ROOT 152 │ 153 MACHINE 154 ``` 155 156 AIEN, Omega, and AEGIS are no longer sequential services. 157 158 They are three faculties operating continuously over the same resident state. 159 160 No faculty owns the main loop. 161 162 There is no semantic-level concept of: 163 164 ```text 165 "whose turn is next?" 166 ``` 167 168 The runtime is reaction-driven: 169 170 ```text 171 STATE CHANGE 172 ↓ 173 DEPENDENCIES BECOME READY 174 ↓ 175 ELIGIBLE TRANSFORMATIONS ACT 176 ↓ 177 STATE CHANGES 178 ↓ 179 OTHER DEPENDENCIES BECOME READY 180 ``` 181 182 The system lives. 183 184 --- 185 186 # 1. FUNDAMENTAL MODEL 187 188 The canonical computation becomes: 189 190 ```text 191 STATE(t) 192 │ 193 ├── cognition 194 ├── semantic transformation 195 ├── authority 196 ├── memory 197 ├── evidence 198 ├── physical realization 199 │ 200 ▼ 201 STATE(t+1) 202 ``` 203 204 A valid state transition may simultaneously possess: 205 206 ```text 207 GOAL 208 HYPOTHESIS 209 SEMANTICS 210 CONSTRAINTS 211 REALIZATION 212 CAPABILITY REQUIREMENTS 213 AUTHORITY 214 RESOURCE REQUIREMENTS 215 EVIDENCE 216 PROVENANCE 217 COST 218 RESULT 219 ``` 220 221 These are not messages between subsystems. 222 223 They are dimensions of the same object graph. 224 225 --- 226 227 # 2. THE THREE FACULTIES 228 229 ## AIEN — adaptive cognition 230 231 AIEN contributes: 232 233 ```text 234 GOALS 235 ATTENTION 236 BELIEFS 237 HYPOTHESES 238 PREDICTIONS 239 UNCERTAINTY 240 PLANS 241 PRIORITIES 242 LEARNING 243 MODEL STATE 244 MEMORY ACTIVATION 245 ``` 246 247 AIEN does not possess physical authority merely because it generated a proposal. 248 249 --- 250 251 ## OMEGA — semantic and realization faculty 252 253 Omega contributes: 254 255 ```text 256 SEMANTIC IDENTITY 257 OPERATIONS 258 RELATIONS 259 CONSTRAINTS 260 PROGRAMS 261 REALIZATIONS 262 MACHINE MODELS 263 EQUIVALENCE 264 SYNTHESIS 265 PROOFS 266 COST MODELS 267 IMPLEMENTATION SEARCH 268 ``` 269 270 Meaning remains independent of representation. 271 272 Multiple implementations may realize one semantic operation. 273 274 The existing realization rule remains: 275 276 ```text 277 REALIZE 278 VERIFY 279 MEASURE 280 RECORD 281 SELECT 282 ``` 283 284 and verification remains separate from performance selection. 285 286 --- 287 288 ## AEGIS — constitutional authority faculty 289 290 AEGIS contributes: 291 292 ```text 293 CAPABILITY POLICY 294 AUTHORITY RELATIONS 295 EFFECT CLASSIFICATION 296 RESOURCE RIGHTS 297 PRIVILEGE BOUNDS 298 REVOCATION 299 PROMOTION REQUIREMENTS 300 TRUST RELATIONSHIPS 301 SECURITY INVARIANTS 302 ``` 303 304 AEGIS ceases to behave primarily as: 305 306 ```text 307 request 308 ↓ 309 gatekeeper 310 ↓ 311 yes/no 312 ``` 313 314 Ordinary valid authority should already be represented in resident capability state. 315 316 AEGIS becomes most active when authority itself changes. 317 318 Examples: 319 320 ```text 321 CREATE CAPABILITY 322 EXPAND CAPABILITY 323 DELEGATE CAPABILITY 324 REVOKE CAPABILITY 325 PERMIT EXTERNAL EFFECT 326 PROMOTE REALIZATION 327 CHANGE TRUST ROOT 328 ``` 329 330 --- 331 332 # 3. NON-NEGOTIABLE TRUST RULE 333 334 The integration of AIEN, Omega, and AEGIS must **not** imply that cognition can forge authority. 335 336 Canonical invariant: 337 338 ```text 339 INTELLIGENCE ≠ AUTHORITY 340 ``` 341 342 The existing failure model already requires the system to remain sound when intelligence hallucinates, produces bad code or proofs, crashes, or becomes compromised. It requires capability revocation, recovery, known-good restoration, and evidence preservation. 343 344 Therefore: 345 346 ```text 347 AEGIS POLICY 348 │ 349 ▼ 350 CAPABILITY MINT 351 │ 352 ▼ 353 UNFORGEABLE CAPABILITY 354 │ 355 ▼ 356 PHYSICAL ENFORCEMENT 357 ``` 358 359 The capability mint and validator live inside the trusted physical root. 360 361 They are not ordinary mutable semantic objects. 362 363 The shared world may contain references to capabilities. 364 365 It may not invent them. 366 367 A capability should minimally bind: 368 369 ```text 370 CapabilityId 371 issuer 372 subject 373 resource 374 rights 375 bounds 376 generation 377 epoch 378 expiry / lease 379 delegation constraints 380 revocation state 381 cryptographic / kernel authenticity 382 ``` 383 384 Raw permission fields are insufficient. 385 386 This rule is absolute. 387 388 --- 389 390 # 4. NO CENTRAL SEMANTIC ORCHESTRATOR 391 392 Remove the assumption that the runtime fundamentally looks like: 393 394 ```text 395 loop { 396 task = choose_next_task(); 397 execute(task); 398 } 399 ``` 400 401 The new semantic runtime is: 402 403 ```text 404 mutation 405 ↓ 406 dependency propagation 407 ↓ 408 readiness 409 ↓ 410 resource admission 411 ↓ 412 reaction 413 ↓ 414 publication 415 ``` 416 417 A transformation is semantically ready when: 418 419 ```text 420 required inputs exist 421 AND 422 required semantic constraints hold 423 AND 424 required authority exists 425 AND 426 required predecessor state is committed 427 ``` 428 429 Physical execution additionally requires: 430 431 ```text 432 resources available 433 AND 434 realization available 435 AND 436 machine constraints satisfied 437 ``` 438 439 --- 440 441 # 5. BUILD THE REACTION FABRIC 442 443 This is a real subsystem and must be treated as such. 444 445 Do not disguise it as "the graph just reacts." 446 447 Implement explicit dependency machinery. 448 449 Each reactive transformation must declare: 450 451 ```text 452 READ SET 453 WRITE SET 454 TRIGGER SET 455 INVALIDATION SET 456 CAPABILITY SET 457 RESOURCE CLASS 458 GENERATION 459 PRIORITY CLASS 460 ``` 461 462 The runtime maintains indexes from changed semantic properties to interested reactions. 463 464 Conceptually: 465 466 ```text 467 object mutation 468 │ 469 ▼ 470 dependency index 471 │ 472 ├── reaction A 473 ├── reaction B 474 └── reaction C 475 ``` 476 477 Do not scan the complete graph after every mutation. 478 479 --- 480 481 # 6. REACTION STATE MACHINE 482 483 Every reaction should have an explicit lifecycle. 484 485 Use approximately: 486 487 ```text 488 DORMANT 489 ↓ dependency satisfied 490 READY 491 ↓ resource admitted 492 RUNNING 493 ↓ 494 PUBLISHING 495 ↓ 496 COMMITTED 497 ``` 498 499 Alternative exits: 500 501 ```text 502 READY → BLOCKED_AUTHORITY 503 READY → BLOCKED_RESOURCE 504 READY → INVALIDATED 505 506 RUNNING → FAILED 507 RUNNING → CANCELLED 508 RUNNING → INVALIDATED 509 510 PUBLISHING → CONFLICT 511 PUBLISHING → REJECTED 512 ``` 513 514 Never allow an implicit ambiguous state. 515 516 --- 517 518 # 7. VERSIONED READS AND TRANSACTIONAL PUBLICATION 519 520 Reactions may operate concurrently. 521 522 Therefore a reaction must not assume the world remained unchanged while it computed. 523 524 A reaction records: 525 526 ```text 527 input object IDs 528 input generations 529 input versions 530 capability generations 531 machine-state assumptions 532 ``` 533 534 Before publication, validate that required assumptions remain valid. 535 536 Then: 537 538 ```text 539 COMPUTE AGAINST SNAPSHOT 540 ↓ 541 PROPOSE MUTATION 542 ↓ 543 VALIDATE DEPENDENCIES 544 ↓ 545 ATOMIC PUBLISH 546 ``` 547 548 If relevant input changed: 549 550 ```text 551 candidate becomes stale 552 ``` 553 554 not silently committed. 555 556 This should use generation/version semantics already native to Omega's object model. 557 558 --- 559 560 # 8. RESOURCE ARBITRATION STILL EXISTS 561 562 The architecture does not pretend contention disappeared. 563 564 Semantic readiness and physical admission are separate. 565 566 Potentially: 567 568 ```text 569 100 reactions READY 570 3 can physically run 571 ``` 572 573 Something must allocate resources. 574 575 The crucial distinction is: 576 577 **the allocator schedules work, not personalities.** 578 579 Never allocate: 580 581 ```text 582 GPU TO AIEN 583 CPU TO AEGIS 584 GPU TO OMEGA 585 ``` 586 587 Instead reactions describe requirements: 588 589 ```text 590 WorkRequirement { 591 compute_class 592 memory 593 locality 594 accelerator_features 595 latency_class 596 energy_budget 597 deadline 598 authority 599 importance 600 } 601 ``` 602 603 Then machine policy decides placement. 604 605 --- 606 607 # 9. GLOBAL MODULATORS 608 609 Introduce a deliberately small mechanism analogous to attention/arousal/pain rather than reconstructing a giant orchestrator. 610 611 Recommended global signals: 612 613 ```text 614 CRITICAL 615 INTERACTIVE 616 FOREGROUND 617 LEARNING 618 MAINTENANCE 619 SPECULATIVE 620 BACKGROUND 621 ``` 622 623 Optional continuous factors may include: 624 625 ```text 626 urgency 627 expected utility 628 deadline pressure 629 uncertainty reduction 630 risk 631 resource cost 632 age / starvation 633 ``` 634 635 The physical scheduler can calculate a local admission score from these properties. 636 637 But do not create an all-knowing planning scheduler. 638 639 Global modulation says: 640 641 ```text 642 "this matters more right now" 643 ``` 644 645 not: 646 647 ```text 648 "here is the entire order in which the organism must think" 649 ``` 650 651 Include starvation prevention. 652 653 --- 654 655 # 10. PREVENT THUNDERING HERDS 656 657 The dependency engine must support: 658 659 ```text 660 fine-grained subscriptions 661 coalesced invalidation 662 change masks 663 generation-aware wakeups 664 deduplication 665 rate limiting 666 bounded fan-out 667 ``` 668 669 A change to: 670 671 ```text 672 Object X.attribute[temperature] 673 ``` 674 675 should not wake every reaction depending on Object X if only three actually depend on `temperature`. 676 677 Track dependencies at the narrowest reasonable semantic granularity. 678 679 --- 680 681 # 11. PREVENT OSCILLATION 682 683 The runtime needs explicit loop detection. 684 685 Examples: 686 687 ```text 688 A → B → A 689 690 A → B → C → A 691 ``` 692 693 Maintain causal ancestry sufficient to recognize immediate and bounded cycles. 694 695 Policies may include: 696 697 ```text 698 fixed-point detection 699 minimum-change threshold 700 maximum reaction depth 701 per-generation activation budget 702 oscillation quarantine 703 backoff 704 operator-visible fault 705 ``` 706 707 Some cycles are legitimate. 708 709 Therefore: 710 711 ```text 712 cycle != automatically invalid 713 ``` 714 715 The runtime must distinguish: 716 717 ```text 718 CONVERGENT LOOP 719 PERIODIC CONTROL LOOP 720 UNSTABLE OSCILLATION 721 LIVELOCK 722 ``` 723 724 --- 725 726 # 12. PROGRESS AND LIVELOCK 727 728 Define progress explicitly. 729 730 A system performing infinite reactions without increasing useful committed state is not healthy merely because hardware utilization is high. 731 732 Track: 733 734 ```text 735 committed semantic progress 736 goal advancement 737 new evidence 738 resolved uncertainty 739 useful external effect 740 verified optimization 741 ``` 742 743 Compare that against: 744 745 ```text 746 reaction count 747 compute consumed 748 memory churn 749 invalidations 750 retries 751 ``` 752 753 Detect: 754 755 ```text 756 livelock 757 retry storms 758 conflict storms 759 wakeup storms 760 ``` 761 762 and degrade or quarantine the responsible graph region. 763 764 --- 765 766 # 13. ONE SHARED OBJECT WORLD 767 768 The current architecture already points toward a shared object world and cross-engine ABI. The migration plan specifically identifies the transition from CPU-prepares/GPU-waits to CPU and GPU participating in a shared object world, and orders the work as Shared Object Pool → Cross-Engine ABI → Resident Cooperation → Generation Barrier → Physical Cost Calculus. 769 770 Make that the architectural center. 771 772 The world contains: 773 774 ```text 775 semantic graph 776 goals 777 beliefs 778 hypotheses 779 plans 780 capabilities 781 realizations 782 model state 783 tensor state 784 Cortex hot state 785 machine graph 786 evidence 787 provenance 788 active reactions 789 generation metadata 790 ``` 791 792 Use logical references: 793 794 ```text 795 ObjectId 796 SemanticId 797 Generation 798 CapabilityId 799 RealizationId 800 ``` 801 802 not cross-authority raw pointers. 803 804 Physical addresses remain implementation details of the trusted machine registry. 805 806 --- 807 808 # 14. CROSS-ENGINE OBJECT ABI 809 810 CPU and GPU both need to observe and mutate permitted portions of the resident world. 811 812 Define a narrow object ABI containing: 813 814 ```text 815 object identity 816 object generation 817 object type 818 state/version 819 ownership metadata 820 authority reference 821 dependency metadata 822 publication state 823 payload/reference descriptor 824 ``` 825 826 No raw CPU pointer should become a semantic identity. 827 828 No GPU virtual address should become a semantic identity. 829 830 Machine addresses are realizations. 831 832 --- 833 834 # 15. RESIDENT COOPERATION 835 836 Replace: 837 838 ```text 839 CPU 840 → construct command 841 → launch GPU 842 → wait 843 → consume 844 ``` 845 846 with increasingly resident execution: 847 848 ```text 849 CPU PARTICIPANTS ─┐ 850 │ 851 ▼ 852 SHARED WORLD 853 ▲ 854 │ 855 GPU PARTICIPANTS ─┘ 856 ``` 857 858 GPU-side resident workers should be able to: 859 860 ```text 861 observe eligible GPU reactions 862 claim permitted work 863 execute realization 864 publish result descriptors 865 continue 866 ``` 867 868 without reconstructing the cognitive system per launch. 869 870 The existing standard already calls for: 871 872 ```text 873 INITIALIZE ONCE 874 STAY RESIDENT 875 OBSERVE SHARED WORK 876 EXECUTE 877 PUBLISH RESULTS 878 CONTINUE 879 ``` 880 881 --- 882 883 # 16. FAST PATH / SLOW PATH 884 885 The living system must not run expensive reasoning, synthesis, or policy machinery for familiar operations. 886 887 ## Fast path 888 889 ```text 890 known semantics 891 + 892 known realization 893 + 894 valid capability 895 + 896 ready inputs 897 + 898 available resources 899 = 900 execute 901 ``` 902 903 No policy RPC. 904 905 No synthesis. 906 907 No recompilation. 908 909 No unnecessary serialization. 910 911 No model inference merely to dispatch known work. 912 913 ## Slow path 914 915 Triggered by novelty: 916 917 ```text 918 unknown realization 919 new goal 920 changed authority 921 unusual risk 922 failed verification 923 missing capability 924 unknown machine condition 925 optimization opportunity 926 ``` 927 928 Then cognition, Omega synthesis, AEGIS reasoning, verification, or operator involvement may activate. 929 930 This directly supports the existing performance objective: 931 932 ```text 933 MINIMUM PHYSICAL WORK 934 PER REQUIRED SEMANTIC RESULT 935 ``` 936 937 which explicitly calls for removing unnecessary movement, parsing, copies, synchronization, launches, context switches, recompilation, and redundant computation. 938 939 --- 940 941 # 17. CONTINUOUS BEHAVIOR, DISCRETE LEARNING 942 943 Do not attempt to make permanent belief/model promotion completely fluid. 944 945 Use two timescales. 946 947 ```text 948 FAST TIMESCALE 949 continuous reaction 950 951 SLOW TIMESCALE 952 generation promotion 953 ``` 954 955 Behavior can continue while candidate knowledge is accumulated. 956 957 At a generation boundary: 958 959 ```text 960 drain relevant in-flight work 961 freeze evidence set 962 evaluate candidate changes 963 verify invariants 964 publish committed generation 965 ``` 966 967 This becomes the organism's coherent learning boundary. 968 969 --- 970 971 # 18. GENERATION BARRIER 972 973 Canonical lifecycle: 974 975 ```text 976 Generation N active 977 ↓ 978 open candidate N+1 979 ↓ 980 continuous reactions continue 981 ↓ 982 candidate learning accumulates 983 ↓ 984 request commitment 985 ↓ 986 drain / classify relevant in-flight work 987 ↓ 988 freeze consistent reachable state 989 ↓ 990 verify 991 ↓ 992 commit Generation N+1 993 ``` 994 995 Do not freeze the entire machine for every thought. 996 997 Generation barriers are for durable semantic commitments. 998 999 --- 1000 1001 # 19. THREE CLASSES OF STATE 1002 1003 Explicitly classify state. 1004 1005 ## Ephemeral 1006 1007 ```text 1008 temporary activations 1009 scheduler queues 1010 scratch tensors 1011 temporary GPU registers 1012 speculative results 1013 ``` 1014 1015 Can disappear. 1016 1017 ## Resident 1018 1019 ```text 1020 active cognitive state 1021 hot graph 1022 model state 1023 reaction indexes 1024 working memory 1025 realization cache 1026 active capability references 1027 ``` 1028 1029 Expected to remain alive during normal operation. 1030 1031 ## Durable 1032 1033 ```text 1034 committed generations 1035 Cortex evidence 1036 semantic objects 1037 model checkpoints 1038 verified realizations 1039 policy roots 1040 lineage 1041 provenance 1042 ``` 1043 1044 Must survive recovery. 1045 1046 Never persist raw transient pointers as identity. 1047 1048 --- 1049 1050 # 20. CAUSAL CRUMBS ARE FIRST-CLASS 1051 1052 Removing the main loop makes observability more important. 1053 1054 Every meaningful reaction produces a compact causal crumb. 1055 1056 Minimum: 1057 1058 ```text 1059 ReactionId 1060 cause 1061 trigger object/version 1062 input generations 1063 reaction type 1064 faculty contributions 1065 authority used 1066 realization used 1067 machine placement 1068 start/finish 1069 published objects 1070 evidence references 1071 failure / invalidation reason 1072 parent causal IDs 1073 ``` 1074 1075 This allows reconstruction: 1076 1077 ```text 1078 Why did this happen? 1079 What woke this? 1080 What evidence caused it? 1081 What authority allowed it? 1082 What realization executed? 1083 What changed because of it? 1084 ``` 1085 1086 --- 1087 1088 # 21. DO NOT LOG EVERYTHING AS TEXT 1089 1090 Causal trace should itself be structured semantic data. 1091 1092 Use content-addressed evidence where possible. 1093 1094 Example: 1095 1096 ```text 1097 CausalEvent { 1098 id 1099 generation 1100 causes[] 1101 inputs[] 1102 transformation 1103 realization 1104 capabilities[] 1105 outputs[] 1106 evidence[] 1107 physical_cost 1108 } 1109 ``` 1110 1111 Human-readable logs are renderings. 1112 1113 The canonical record is structured. 1114 1115 --- 1116 1117 # 22. OBSERVABILITY REQUIREMENTS 1118 1119 The operator must be able to ask: 1120 1121 ```text 1122 what is active? 1123 what is blocked? 1124 what is consuming resources? 1125 what is repeatedly waking? 1126 what has highest urgency? 1127 which reactions are starved? 1128 which graph region is oscillating? 1129 which capability enables this action? 1130 why did this effect happen? 1131 which evidence promoted this belief? 1132 ``` 1133 1134 Implement causal graph inspection before allowing the reaction system to become large. 1135 1136 No opaque "organism" excuse is acceptable. 1137 1138 --- 1139 1140 # 23. EFFECTS REMAIN SPECIAL 1141 1142 Pure semantic/cognitive state transformation can be highly concurrent. 1143 1144 Irreversible external effects remain stricter. 1145 1146 Examples: 1147 1148 ```text 1149 network transmission 1150 filesystem destruction 1151 external account mutation 1152 physical actuator command 1153 repository deletion 1154 credential use 1155 ``` 1156 1157 Those require explicit effect authority. 1158 1159 A speculative thought can construct and evaluate an effect. 1160 1161 It cannot externalize one without authority. 1162 1163 --- 1164 1165 # 24. SPECULATION 1166 1167 Speculative branches should be native reactions. 1168 1169 They may: 1170 1171 ```text 1172 reason 1173 simulate 1174 synthesize 1175 benchmark in sandbox 1176 generate candidate state 1177 ``` 1178 1179 They may not silently alter canonical external reality. 1180 1181 Promotion remains explicit. 1182 1183 --- 1184 1185 # 25. CONFLICT MODEL 1186 1187 Concurrent reactions will sometimes produce incompatible writes. 1188 1189 Do not serialize all writes merely to avoid this. 1190 1191 Define conflict classes: 1192 1193 ```text 1194 COMMUTATIVE 1195 MERGEABLE 1196 LAST-WRITER-INVALID 1197 EXCLUSIVE 1198 AUTHORITY-SENSITIVE 1199 GENERATION-SENSITIVE 1200 ``` 1201 1202 Semantic object types should declare their merge behavior. 1203 1204 Examples: 1205 1206 Evidence append: `commutative` 1207 1208 Capability revocation: `authority-sensitive` 1209 1210 Canonical realization promotion: `exclusive / generation-sensitive` 1211 1212 --- 1213 1214 # 26. OBJECT TYPE CONTRACT 1215 1216 Each semantic object type should eventually declare: 1217 1218 ```text 1219 canonical encoding 1220 identity rule 1221 mutable fields 1222 immutable fields 1223 dependency granularity 1224 merge semantics 1225 authority requirements 1226 verification rules 1227 persistence class 1228 wake conditions 1229 ``` 1230 1231 This lets the runtime understand objects without hardcoding behavior for every subsystem. 1232 1233 --- 1234 1235 # 27. FACULTY OWNERSHIP IS LOGICAL, NOT MEMORY OWNERSHIP 1236 1237 Do not divide memory into: 1238 1239 ```text 1240 AIEN heap 1241 OMEGA heap 1242 AEGIS heap 1243 ``` 1244 1245 Use one object universe. 1246 1247 But preserve write authority by semantic domain. 1248 1249 For example: 1250 1251 AIEN can propose: 1252 1253 ```text 1254 Hypothesis 1255 GoalPriority 1256 Prediction 1257 PlanCandidate 1258 ``` 1259 1260 Omega can author: 1261 1262 ```text 1263 RealizationCandidate 1264 SemanticProof 1265 CostEstimate 1266 Transformation 1267 ``` 1268 1269 AEGIS can author: 1270 1271 ```text 1272 PolicyDecision 1273 CapabilityRequest 1274 RevocationIntent 1275 AuthorityConstraint 1276 ``` 1277 1278 The trusted root alone creates/revokes physically enforceable capabilities. 1279 1280 --- 1281 1282 # 28. RESOURCE OWNERSHIP 1283 1284 Hardware belongs to the whole organism. 1285 1286 Not: 1287 1288 ```text 1289 AIEN GPU 1290 OMEGA GPU 1291 AEGIS CPU 1292 ``` 1293 1294 Instead resources advertise capabilities: 1295 1296 ```text 1297 MachineResource { 1298 capabilities 1299 topology 1300 locality 1301 capacity 1302 occupancy 1303 trust domain 1304 measured costs 1305 } 1306 ``` 1307 1308 Reactions state requirements. 1309 1310 Placement chooses a realization. 1311 1312 --- 1313 1314 # 29. PHYSICAL COST MODEL 1315 1316 Retain Omega's physical optimization role. 1317 1318 Each realized reaction should be measurable in terms such as: 1319 1320 ```text 1321 bytes read 1322 bytes written 1323 coherence traffic 1324 cache pressure 1325 synchronization 1326 barriers 1327 CPU cycles 1328 GPU cycles 1329 tensor utilization 1330 latency 1331 energy 1332 peak live memory 1333 ``` 1334 1335 The target is not maximum activity. 1336 1337 The target remains: 1338 1339 ```text 1340 minimum physical work 1341 per required semantic result 1342 ``` 1343 1344 --- 1345 1346 # 30. BOOT BECOMES RECOVERY / AWAKENING 1347 1348 Normal conceptual lifecycle: 1349 1350 ```text 1351 AWAKEN 1352 ↓ 1353 RESTORE LAST VALID GENERATION 1354 ↓ 1355 RECONSTRUCT TRANSIENT PHYSICAL STATE 1356 ↓ 1357 REBUILD REACTION INDEXES 1358 ↓ 1359 REESTABLISH CAPABILITIES 1360 ↓ 1361 RESTORE RESIDENT MODEL / MEMORY 1362 ↓ 1363 RESUME LIFE 1364 ``` 1365 1366 Boot is not "launch application." 1367 1368 The active system is intended to remain resident. 1369 1370 The existing design already treats the intelligence as primarily resident state and persistence as continuity/recovery rather than normal cognitive residence. 1371 1372 --- 1373 1374 # 31. FAILURE CONTAINMENT 1375 1376 One bad reactive region must not collapse the organism. 1377 1378 Provide: 1379 1380 ```text 1381 reaction budgets 1382 graph-region quarantine 1383 capability revocation 1384 worker cancellation 1385 generation rollback 1386 GPU reset 1387 reconstruction from durable state 1388 known-good realization fallback 1389 ``` 1390 1391 AEGIS and Physics must remain capable of stopping execution even if adaptive cognition is unhealthy. 1392 1393 --- 1394 1395 # 32. MIGRATION RULE 1396 1397 DO NOT rewrite the entire system in one pass. 1398 1399 The legacy orchestrated runtime becomes the reference oracle. 1400 1401 Migration state: 1402 1403 ```text 1404 LEGACY 1405 ↓ 1406 SHARED OBJECT MIRROR 1407 ↓ 1408 REACTION SHADOW 1409 ↓ 1410 REACTION AUTHORITATIVE FOR PURE WORK 1411 ↓ 1412 REACTION AUTHORITATIVE FOR SANDBOXED WORK 1413 ↓ 1414 REACTION AUTHORITATIVE FOR CAPABILITY-BOUND EFFECTS 1415 ↓ 1416 LEGACY FALLBACK 1417 ↓ 1418 LEGACY RETIRED 1419 ``` 1420 1421 The old runtime remains available until the new path proves correctness and recovery. 1422 1423 --- 1424 1425 # 33. IMPLEMENTATION PHASE R0 — FREEZE THE CONTRACT 1426 1427 Before code changes, write one ADR defining the eight locked statements (Part I, "Decision"). No module migration until this ADR exists. 1428 1429 Gate: `R0_REACTION_ARCHITECTURE_LOCKED` 1430 1431 # 34. R1 — SHARED OBJECT POOL 1432 1433 Build the canonical resident object substrate. Requirements: logical IDs; generations; versioning; type metadata; content identity where applicable; authority references; persistence class; atomic publication; stale-reference rejection. Do not yet alter cognition. 1434 1435 Gate: `R1_SHARED_WORLD_PASS` 1436 1437 # 35. R2 — CROSS-ENGINE ABI 1438 1439 Make CPU/GPU interaction reference logical objects. Requirements: pointer-free semantic identity; generation-tagged handles; bounded rights; CPU/GPU registry; stale handle rejection; shared publication protocol. Keep physical addresses internal. 1440 1441 Gate: `R2_CROSS_ENGINE_ABI_PASS` 1442 1443 # 36. R3 — REACTION CORE 1444 1445 Implement: ReactionDescriptor; DependencyIndex; ReadySet; Invalidation; AtomicPublication; ReactionLifecycle; CausalId. Initially run only deterministic pure reactions. 1446 1447 Test: single dependency; multiple dependency; fan-out; fan-in; invalidation; concurrent publication; stale input; duplicate wake. 1448 1449 Gate: `R3_REACTION_CORE_PASS` 1450 1451 # 37. R4 — CAUSAL TRACE 1452 1453 Before scaling the system, implement causal crumbs. Require every reaction test to prove: trigger explainable; inputs explainable; authority explainable; outputs explainable; ancestry reconstructible. 1454 1455 Gate: `R4_CAUSAL_TRACE_PASS` 1456 1457 # 38. R5 — CONTENTION AND MODULATION 1458 1459 Implement resource admission and global modulation. 1460 1461 Test: 1000 ready reactions; bounded compute; interactive work outranks background; critical recovery outranks optimization; background work does not starve forever. 1462 1463 Gate: `R5_RESOURCE_ARBITRATION_PASS` 1464 1465 # 39. R6 — STORM AND LOOP CONTROL 1466 1467 Implement: deduplicated wakeups; fan-out limits; activation budgets; oscillation detection; livelock detection; backoff; quarantine. Adversarial tests should intentionally construct pathological dependency graphs. 1468 1469 Gate: `R6_REACTION_STABILITY_PASS` 1470 1471 # 40. R7 — CAPABILITY ROOT 1472 1473 Move AEGIS from synchronous gatekeeping toward resident authority semantics. But first establish the hard root: unforgeable capability mint; verification; revocation; generation binding; rights bounds; delegation; leases. 1474 1475 Attack tests — all must fail: forged capability; modified capability; stale capability; wrong subject; wrong resource; generation replay; revoked capability; rights amplification. 1476 1477 Gate: `R7_CAPABILITY_ROOT_PASS` 1478 1479 # 41. R8 — AEGIS RESIDENT AUTHORITY 1480 1481 Represent authority relationships in the live graph. Fast path: valid existing capability → execute. Slow path: new authority required → policy reasoning / approval / mint. Measure the reduction in synchronous policy round trips. 1482 1483 Gate: `R8_CONSTITUTIONAL_AEGIS_PASS` 1484 1485 **Scope note (2026-09-28).** This note fixes what R8 refers to. It does not 1486 change subsystem responsibilities. 1487 1488 - **"AEGIS" here is the verifier faculty** of ARCHITECTURE §2.5. It is not 1489 the `aegis-runtime` program. That program is legacy orchestration: it 1490 becomes the reference oracle (Part I) and is written in Rust. R8 does not 1491 build on it. 1492 - **The authority root is the native AIENOS capability authority** 1493 (ARCHITECTURE §2.7, aienos `native/capability/`, in C). 1494 - **FORGE (formerly PHYSICS) realizes.** It "is not the kernel and is not the 1495 policy authority" (FORGE.md). 1496 1497 R8 therefore means four things: 1498 1499 1. Authority relationships are live world objects: which subject holds which 1500 capability, for which object, under which lease and epoch. 1501 2. A reaction holding a valid existing capability proceeds with no policy 1502 round trip. 1503 3. A reaction that needs new authority publishes a request object. An AEGIS 1504 policy reaction evaluates it, and only the AIENOS root mints the grant. 1505 4. The reduction in synchronous policy round trips is measured against the 1506 current `spark-aegis` shell-out path. 1507 1508 # 42. R9 — GENERATION BARRIER 1509 1510 Implement coherent durable learning. 1511 1512 Test: continuous reactions during candidate generation; in-flight work at barrier; failed verification; crash during generation publication; recovery to old generation; successful promotion. 1513 1514 Required invariant — after recovery: OLD VALID GENERATION or NEW VALID GENERATION; never torn generation. 1515 1516 Gate: `R9_GENERATION_BARRIER_PASS` 1517 1518 # 43. R10 — OMEGA AS CONTINUOUS REALIZATION FACULTY 1519 1520 Connect Omega realization search to reactive demand: 1521 1522 ```text 1523 semantic operation becomes hot 1524 ↓ 1525 cost evidence crosses threshold 1526 ↓ 1527 optimization reaction activates 1528 ↓ 1529 Omega synthesizes candidate 1530 ↓ 1531 candidate verified 1532 ↓ 1533 benchmarked 1534 ↓ 1535 recorded 1536 ↓ 1537 eligible for future selection 1538 ``` 1539 1540 The production path need not stop while optimization occurs. 1541 1542 Gate: `R10_CONTINUOUS_OMEGA_PASS` 1543 1544 # 44. R11 — AIEN AS CONTINUOUS COGNITIVE FACULTY 1545 1546 Remove assumptions that cognition exists only during request handling. AIEN should react to: new observation; goal change; unexpected result; new memory; failed prediction; uncertainty; human input; resource change; new evidence. It publishes semantic objects back into the shared world. 1547 1548 Gate: `R11_CONTINUOUS_COGNITION_PASS` 1549 1550 # 45. R12 — RESIDENT CPU/GPU COOPERATION 1551 1552 Move selected reaction classes onto persistent GPU workers. Demonstrate: CPU reaction; GPU reaction; shared object dependency; capability validation; GPU result publication; CPU observation; no full-object serialization. 1553 1554 Gate: `R12_RESIDENT_COOPERATION_PASS` 1555 1556 # 46. R13 — UNIFIED GOLDEN PATH 1557 1558 Construct one end-to-end demonstration: human provides goal → AIEN reaction interprets objective → Omega reaction finds suitable realization → AEGIS state: existing capability permits sandbox experiment → resource scheduler places computation → GPU executes → evidence published → AIEN updates belief → Omega discovers improved realization candidate → verification passes → generation barrier promotes verified improvement → system continues operating throughout. 1559 1560 There must be no central function manually sequencing those steps. Their ordering must arise from dependencies. 1561 1562 Gate: `R13_LIVING_SYSTEM_PASS` 1563 1564 # 47. R14 — FAILURE GOLDEN PATH 1565 1566 While the organism is active: corrupt candidate realization; forge capability; create reaction cycle; saturate GPU; kill GPU resident worker; crash during checkpoint. System must: contain; revoke; recover; reconstruct; preserve evidence; resume. 1567 1568 Gate: `R14_LIVING_RECOVERY_PASS` 1569 1570 # 48. R15 — PERFORMANCE PROOF 1571 1572 Compare against the existing pipeline. Measure at minimum: semantic operations / second; reaction activation latency; dependency propagation cost; scheduler overhead; AEGIS fast-path cost; generation barrier latency; serialization bytes; CPU↔GPU synchronization count; memory traffic; GPU residency; resource utilization; wasted reactions; invalidation rate; conflict rate; wake amplification; causal-trace overhead; energy per semantic result. 1573 1574 Do not accept architecture on aesthetic grounds. 1575 1576 Gate: `R15_REACTION_PERFORMANCE_PASS` 1577 1578 # 49. R16 — RETIRE CENTRAL ORCHESTRATION 1579 1580 Only after prior gates pass: remove central sequencing where reactions now provide equivalent or stronger behavior. Do not remove: known-good fallback; recovery path; deterministic maintenance controls; trusted capability root; generation mechanism; evidence. 1581 1582 Gate: `R16_ORCHESTRATOR_RETIRED` 1583 1584 --- 1585 1586 # 50. CODE ORGANIZATION 1587 1588 Do not create `aien-runtime/`, `omega-runtime/`, `aegis-runtime/` that independently own schedulers and resource pools. 1589 1590 Prefer shared primitives resembling: 1591 1592 ```text 1593 runtime/ 1594 object/ 1595 reaction/ 1596 dependency/ 1597 publication/ 1598 causal/ 1599 generation/ 1600 resource/ 1601 recovery/ 1602 1603 faculties/ 1604 cognition/ 1605 semantics/ 1606 authority/ 1607 1608 physics/ 1609 capability/ 1610 memory/ 1611 cpu/ 1612 accelerator/ 1613 interrupt/ 1614 reset/ 1615 ``` 1616 1617 Exact repository placement should follow the current tree rather than forcing these names literally. 1618 1619 The important rule is dependency direction. 1620 1621 # 51. DEPENDENCY RULE 1622 1623 The faculties may depend on the common semantic/reaction abstractions. They must not depend cyclically on each other's service APIs. 1624 1625 Bad: AIEN calls Omega; Omega calls AEGIS; AEGIS calls AIEN. 1626 1627 Good: AIEN publishes semantic state; OMEGA observes eligible semantic state; AEGIS authority state participates in readiness. 1628 1629 Communication is predominantly through shared typed state. 1630 1631 # 52. REACTION DESCRIPTOR — FIRST REFERENCE FORM 1632 1633 ```rust 1634 struct ReactionDescriptor { 1635 id: ReactionId, 1636 1637 trigger_set: Vec, 1638 read_set: Vec, 1639 write_set: Vec, 1640 1641 required_capabilities: Vec, 1642 resource_requirements: ResourceRequirements, 1643 1644 priority_class: PriorityClass, 1645 generation: GenerationId, 1646 1647 realization: RealizationSelector, 1648 1649 retry_policy: RetryPolicy, 1650 conflict_policy: ConflictPolicy, 1651 causal_parent: Option, 1652 } 1653 ``` 1654 1655 This is a bootstrap representation. Do not canonize Rust layout as Omega semantics. 1656 1657 # 53. REACTION RESULT — FIRST REFERENCE FORM 1658 1659 ```rust 1660 enum ReactionOutcome { 1661 Published { mutations: Vec, evidence: Vec }, 1662 BlockedAuthority { requirements: Vec }, 1663 BlockedResource { requirements: ResourceRequirements }, 1664 Invalidated, 1665 Conflict, 1666 Failed { evidence: EvidenceRef }, 1667 } 1668 ``` 1669 1670 REFERENCE REALIZATION != PERMANENT SEMANTIC DEFINITION. 1671 1672 # 54. STANDARD TEST INVARIANTS 1673 1674 Every implementation stage must preserve: 1675 1676 ```text 1677 I1 semantic identity is not physical address 1678 I2 stale generations cannot mutate current state 1679 I3 capabilities cannot be forged by semantic code 1680 I4 revoked authority cannot execute 1681 I5 speculation cannot silently externalize effects 1682 I6 concurrent publication cannot create torn objects 1683 I7 causal history exists for meaningful committed changes 1684 I8 generation recovery produces a coherent world 1685 I9 intelligence cannot promote itself past authority policy 1686 I10 failed optimization cannot destroy last-known-good realization 1687 I11 GPU failure cannot destroy durable identity 1688 I12 resource starvation is bounded/detectable 1689 I13 reaction storms are detectable/containable 1690 I14 livelock is detectable 1691 I15 irreversible effects remain attributable 1692 I16 semantic meaning remains stable across realization changes 1693 ``` 1694 1695 # 55. VERIFICATION STANDARD 1696 1697 Preserve the existing ladder: V0 STRUCTURAL; V1 DIFFERENTIAL; V2 PROPERTY; V3 ADVERSARIAL; V4 SYMBOLIC; V5 PROOF-CARRYING. 1698 1699 Search, optimization, neural proposals, generated code, and heuristic decisions are not themselves trust. The existing plan already separates untrusted search/generation from semantic contracts, verification, physical authority, and effect admission. 1700 1701 Apply the ladder to reaction infrastructure itself. 1702 1703 # 56. DEVELOPMENT RULE 1704 1705 For every major primitive: 1. define semantics; 2. build simple human reference; 3. test; 4. adversarially break; 5. record evidence; 6. optimize; 7. allow Omega to synthesize alternatives; 8. verify them; 9. measure them; 10. select. 1706 1707 Do not let Omega optimize a primitive before its behavior is stable enough to serve as an oracle. 1708 1709 # 57. WHAT NOT TO DO 1710 1711 Do not build a massive actor framework and call it an organism. 1712 Do not create one queue for everything. 1713 Do not implement global graph scans. 1714 Do not encode authority as editable booleans. 1715 Do not make neural inference the scheduler. 1716 Do not make AEGIS approve every cache read. 1717 Do not flatten everything into JSON. 1718 Do not use text logs as canonical evidence. 1719 Do not persist raw pointer graphs. 1720 Do not make GPU launch boundaries semantic boundaries. 1721 Do not eliminate checkpoint barriers. 1722 Do not remove rollback. 1723 Do not allow "continuous learning" to silently rewrite trusted state. 1724 Do not remove deterministic operator control. 1725 Do not conflate high utilization with useful progress. 1726 1727 # 58. SUCCESS CRITERION 1728 1729 The architecture is successful when this statement is technically true: 1730 1731 ```text 1732 The system does not wait for AIEN, 1733 then Omega, 1734 then AEGIS. 1735 1736 A changing resident world continuously 1737 activates whatever cognition, 1738 semantic transformation, 1739 authority reasoning, 1740 verification, 1741 memory, 1742 and physical work is presently valid. 1743 1744 AIEN, Omega, and AEGIS are not services 1745 coordinating a machine. 1746 1747 They are faculties of one persistent 1748 computational organism. 1749 ``` 1750 1751 And simultaneously: 1752 1753 ```text 1754 No faculty can forge authority. 1755 1756 No realization can become trusted 1757 merely because intelligence proposed it. 1758 1759 No durable belief changes without 1760 a coherent generation transition. 1761 1762 No important action becomes 1763 unexplainable merely because 1764 the system is concurrent. 1765 ``` 1766 1767 # 59. CANONICAL ARCHITECTURAL SENTENCE 1768 1769 See Part I. 1770 1771 # 60. EXECUTION INSTRUCTION 1772 1773 Treat this document as the architectural decision. Do not redesign it back into a service pipeline. 1774 1775 Before modifying code: 1776 1777 1. Inspect the current repository and identify the real modules implementing runtime orchestration, Omega object state, AEGIS/capability enforcement, accelerator-world state, evidence/provenance, and generation/checkpoint behavior. 1778 2. Produce a code-grounded migration map from existing modules to R0–R16. 1779 3. Identify which pieces already satisfy each milestone and do not rewrite working implementations unnecessarily. 1780 4. Preserve every currently passing correctness, security, accelerator, and regression test. 1781 5. Implement milestones sequentially where one establishes an invariant needed by the next. 1782 6. Parallelize work only where ownership is disjoint. 1783 7. Each milestone must add adversarial tests and a machine-readable evidence receipt. 1784 8. Never claim a gate has passed from mocks when the gate requires physical hardware. 1785 9. Never replace the trusted capability boundary with semantic convention. 1786 10. Never delete the last known-good implementation before rollback and reproduction are proven. 1787 1788 When architectural documentation disagrees with executable behavior: CODE + REPRODUCIBLE EVIDENCE wins for current implementation truth. When current code disagrees with this ADR about the desired destination: THIS ADR defines the target architecture. 1789 1790 First deliverable: `CURRENT_CODE_TO_R0_R16_MIGRATION.md` (current module; current responsibility; target responsibility; keep / adapt / replace; dependencies; risk; tests; migration milestone; parallelization group). 1791 1792 Then begin with the smallest implementation that proves: 1793 1794 ```text 1795 shared object 1796 → dependency change 1797 → reaction becomes ready 1798 → capability validates 1799 → reaction executes 1800 → atomic publication 1801 → causal crumb 1802 ``` 1803 1804 with no central semantic orchestrator deciding the sequence. That is the first heartbeat of the new architecture.