omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / docs / r16-operator-brief.md
| 1 | # R16 operator brief (Part II, verbatim) |
| 2 | |
| 3 | Source: operator prompt "FINISH ADR 0016 — R15 PERFORMANCE PROOF, THEN R16 |
| 4 | ORCHESTRATOR RETIREMENT", Part II, decoded 2026-09-28 from the Codex session log |
| 5 | `~/.codex/sessions/2026/09/27/rollout-2026-09-27T21-37-13-01a0e5df-a2e0-7100-852c-53a7e4ce2b34.jsonl`. |
| 6 | It was not in any repository before this commit. Text below is unedited. |
| 7 | The binding acceptance criteria are in `spec/r16-orchestrator-retirement.md`. |
| 8 | |
| 9 | ```text |
| 10 | PART II — R16 RETIRE CENTRAL ORCHESTRATION |
| 11 | ============================================================ |
| 12 | |
| 13 | BEGIN ONLY AFTER: |
| 14 | |
| 15 | R15_REACTION_PERFORMANCE_PASS |
| 16 | |
| 17 | is merged and candidate-bound. |
| 18 | |
| 19 | First perform an organization-wide CODE audit. |
| 20 | |
| 21 | At minimum inspect: |
| 22 | |
| 23 | aien-spark/omega |
| 24 | aien-spark/aien-sovereign-core |
| 25 | aien-spark/aegis-runtime |
| 26 | aien-dev/aienux |
| 27 | aien-spark/physics |
| 28 | |
| 29 | Search for: |
| 30 | |
| 31 | run_until_complete |
| 32 | for/while semantic step loops |
| 33 | max_steps |
| 34 | max_turns |
| 35 | manual faculty invocation |
| 36 | polling for semantic readiness |
| 37 | central switch statements choosing subsystem order |
| 38 | synchronous AIEN → Omega calls |
| 39 | synchronous Omega → AEGIS calls |
| 40 | heartbeat task dispatch |
| 41 | duplicate schedulers |
| 42 | duplicate world ownership |
| 43 | duplicate authority ownership |
| 44 | service/RPC boundaries now replaced by shared reactions |
| 45 | |
| 46 | Produce: |
| 47 | |
| 48 | spec/r16-orchestrator-retirement-map.md |
| 49 | |
| 50 | Classify every central loop as exactly one of: |
| 51 | |
| 52 | A. RETIRE |
| 53 | Production semantic sequencing now replaced by reactions. |
| 54 | |
| 55 | B. KEEP — MAINTENANCE CONTROL |
| 56 | Explicit deterministic operator or maintenance mechanism. |
| 57 | |
| 58 | C. KEEP — RECOVERY |
| 59 | Needed for boot/recovery/repair. |
| 60 | |
| 61 | D. KEEP — REFERENCE ORACLE |
| 62 | Non-authoritative comparison/test path. |
| 63 | |
| 64 | E. KEEP — PHYSICAL SCHEDULER |
| 65 | Schedules physical resources/work, not faculty semantics. |
| 66 | |
| 67 | F. KEEP — EXTERNAL PROTOCOL LOOP |
| 68 | Network/socket/event-loop mechanics that do not decide semantic faculty order. |
| 69 | |
| 70 | Do not delete a loop merely because it is a loop. |
| 71 | |
| 72 | The forbidden thing is CENTRAL SEMANTIC ORCHESTRATION. |
| 73 | |
| 74 | ============================================================ |
| 75 | R16 TARGET 1 — aien-sovereign-core |
| 76 | ============================================================ |
| 77 | |
| 78 | Current known path: |
| 79 | |
| 80 | crates/aien-runtime/src/spine.rs |
| 81 | |
| 82 | contains: |
| 83 | |
| 84 | AienRuntimeSpine::run_until_complete() |
| 85 | |
| 86 | which loops: |
| 87 | |
| 88 | for _ in 0..max_steps { |
| 89 | self.step(backend).await |
| 90 | } |
| 91 | |
| 92 | This is the clearest known legacy semantic orchestrator. |
| 93 | |
| 94 | Determine whether the new resident reaction path now provides equivalent or |
| 95 | stronger production behavior. |
| 96 | |
| 97 | If yes: |
| 98 | |
| 99 | remove this path from production semantic authority. |
| 100 | |
| 101 | Possible acceptable end states include: |
| 102 | |
| 103 | - move behind an explicit legacy/reference build feature; |
| 104 | - restrict to tests/benchmark oracle; |
| 105 | - preserve an operator-only deterministic compatibility mode; |
| 106 | - remove entirely if nothing legitimately needs it. |
| 107 | |
| 108 | Do not choose the mechanism based on aesthetics. |
| 109 | |
| 110 | Production AIEN must no longer require a caller to repeatedly call `step()` to |
| 111 | decide semantic progress. |
| 112 | |
| 113 | If `step()` remains because a physical inference backend needs a primitive |
| 114 | advance operation, clearly separate: |
| 115 | |
| 116 | PHYSICAL ENGINE STEP |
| 117 | |
| 118 | from |
| 119 | |
| 120 | SEMANTIC SYSTEM SCHEDULING. |
| 121 | |
| 122 | A physical engine step may remain. |
| 123 | |
| 124 | A master semantic loop deciding when the system thinks/realizes/authorizes may |
| 125 | not. |
| 126 | |
| 127 | ============================================================ |
| 128 | R16 TARGET 2 — aegis-runtime |
| 129 | ============================================================ |
| 130 | |
| 131 | Current live code contains: |
| 132 | |
| 133 | src/agent.rs |
| 134 | AgentEngine::execute_task() |
| 135 | |
| 136 | for turn in 1..=max_turns { |
| 137 | model |
| 138 | tool |
| 139 | model |
| 140 | tool |
| 141 | } |
| 142 | |
| 143 | and: |
| 144 | |
| 145 | src/heartbeat.rs |
| 146 | start_loop() |
| 147 | pulse_once() |
| 148 | |
| 149 | which periodically scans SQLite pending tasks and dispatches actions. |
| 150 | |
| 151 | The resident R8 AEGIS faculty is already a different authority model. |
| 152 | |
| 153 | Audit whether these legacy components remain needed for: |
| 154 | |
| 155 | - compatibility; |
| 156 | - operator maintenance; |
| 157 | - reference testing; |
| 158 | - old standalone tool-agent mode. |
| 159 | |
| 160 | If they remain, explicitly mark them LEGACY/NON-AUTHORITATIVE and ensure the |
| 161 | production resident architecture does not depend on them for policy or |
| 162 | semantic progression. |
| 163 | |
| 164 | Do not rename the old runtime and pretend it became the resident faculty. |
| 165 | |
| 166 | ============================================================ |
| 167 | R16 TARGET 3 — DUPLICATE OWNERSHIP |
| 168 | ============================================================ |
| 169 | |
| 170 | Find places where old subsystems still independently own: |
| 171 | |
| 172 | - scheduler; |
| 173 | - world state; |
| 174 | - authority state; |
| 175 | - semantic task queues; |
| 176 | - model of generation; |
| 177 | - resource pool; |
| 178 | - causal state. |
| 179 | |
| 180 | Where the reaction architecture is authoritative, eliminate or demote duplicate |
| 181 | production ownership. |
| 182 | |
| 183 | There should not be: |
| 184 | |
| 185 | AIEN scheduler |
| 186 | Omega scheduler |
| 187 | AEGIS scheduler |
| 188 | |
| 189 | independently deciding semantic order. |
| 190 | |
| 191 | There may still be physical worker pools. |
| 192 | |
| 193 | ============================================================ |
| 194 | R16 PRODUCTION LAW |
| 195 | ============================================================ |
| 196 | |
| 197 | After R16, the normal semantic progression must be: |
| 198 | |
| 199 | state publication |
| 200 | ↓ |
| 201 | dependency readiness |
| 202 | ↓ |
| 203 | resource admission |
| 204 | ↓ |
| 205 | authority validation |
| 206 | ↓ |
| 207 | reaction execution |
| 208 | ↓ |
| 209 | atomic publication |
| 210 | ↓ |
| 211 | new readiness |
| 212 | |
| 213 | No production function may encode: |
| 214 | |
| 215 | call AIEN |
| 216 | wait |
| 217 | call Omega |
| 218 | wait |
| 219 | call AEGIS |
| 220 | wait |
| 221 | dispatch GPU |
| 222 | wait |
| 223 | |
| 224 | as the authoritative path. |
| 225 | |
| 226 | ============================================================ |
| 227 | DO NOT REMOVE THESE |
| 228 | ============================================================ |
| 229 | |
| 230 | Per ADR 0016, retain: |
| 231 | |
| 232 | - known-good fallback; |
| 233 | - recovery path; |
| 234 | - deterministic maintenance controls; |
| 235 | - trusted capability root; |
| 236 | - generation mechanism; |
| 237 | - evidence. |
| 238 | |
| 239 | Also preserve: |
| 240 | |
| 241 | - R9 crash recovery; |
| 242 | - R10 verifier; |
| 243 | - R12 seat-loss handling; |
| 244 | - R14 recovery paths; |
| 245 | - operator emergency controls; |
| 246 | - benchmark reference paths where needed. |
| 247 | |
| 248 | Do not optimize the architecture by deleting the evidence that proved it. |
| 249 | |
| 250 | ============================================================ |
| 251 | R16 AUTHORITATIVE-PATH TEST |
| 252 | ============================================================ |
| 253 | |
| 254 | Create an explicit test proving that the production golden path works with |
| 255 | legacy semantic orchestrators unavailable. |
| 256 | |
| 257 | For example: |
| 258 | |
| 259 | build/run configuration where: |
| 260 | |
| 261 | AienRuntimeSpine::run_until_complete |
| 262 | legacy AEGIS AgentEngine loop |
| 263 | legacy AEGIS heartbeat task dispatcher |
| 264 | |
| 265 | are unavailable as semantic authorities. |
| 266 | |
| 267 | Then run: |
| 268 | |
| 269 | R13 living system |
| 270 | R14 recovery subset/full qualification as appropriate |
| 271 | |
| 272 | The organism must still: |
| 273 | |
| 274 | receive goal |
| 275 | AIEN reacts |
| 276 | Omega reacts |
| 277 | authority works |
| 278 | GPU works |
| 279 | evidence returns |
| 280 | generation promotes |
| 281 | recovery works |
| 282 | |
| 283 | If disabling a legacy orchestrator breaks the new production path, R16 is not |
| 284 | done. |
| 285 | |
| 286 | ============================================================ |
| 287 | R16 NEGATIVE TEST |
| 288 | ============================================================ |
| 289 | |
| 290 | Also prove the reverse: |
| 291 | |
| 292 | legacy/reference paths cannot mutate authoritative resident state except |
| 293 | through the same normal capability/publication boundaries. |
| 294 | |
| 295 | A legacy oracle must not be able to: |
| 296 | |
| 297 | - write authoritative AIEN belief directly; |
| 298 | - select Omega realization directly; |
| 299 | - mint authority; |
| 300 | - promote generation; |
| 301 | - bypass Effect/authority boundaries; |
| 302 | - manually advance world generation. |
| 303 | |
| 304 | ============================================================ |
| 305 | R16 API / BUILD SURFACE |
| 306 | ============================================================ |
| 307 | |
| 308 | Make the distinction visible in code. |
| 309 | |
| 310 | Avoid ambiguous APIs where a future developer can accidentally re-enable the |
| 311 | old architecture. |
| 312 | |
| 313 | Use explicit naming/features/modules such as: |
| 314 | |
| 315 | legacy_oracle |
| 316 | maintenance |
| 317 | recovery |
| 318 | reference |
| 319 | |
| 320 | where appropriate. |
| 321 | |
| 322 | Do not leave: |
| 323 | |
| 324 | run_until_complete() |
| 325 | |
| 326 | as the obvious default production entry point if it is no longer authoritative. |
| 327 | |
| 328 | Document the supported production entry point. |
| 329 | |
| 330 | ============================================================ |
| 331 | R16 DEAD-CODE / DEPENDENCY AUDIT |
| 332 | ============================================================ |
| 333 | |
| 334 | After retiring orchestration: |
| 335 | |
| 336 | - remove unreachable central scheduling code where safe; |
| 337 | - remove service glue used only by retired sequencing; |
| 338 | - remove duplicate queues where safe; |
| 339 | - remove duplicate state ownership; |
| 340 | - remove stale dependencies. |
| 341 | |
| 342 | But do this only where evidence proves replacement. |
| 343 | |
| 344 | Do not perform a giant unrelated cleanup. |
| 345 | |
| 346 | ============================================================ |
| 347 | R16 CORRECTNESS REGRESSION |
| 348 | ============================================================ |
| 349 | |
| 350 | R16 must rerun EVERY R gate. |
| 351 | |
| 352 | At minimum: |
| 353 | |
| 354 | R1 |
| 355 | R2 |
| 356 | R3 |
| 357 | R4 |
| 358 | R5 |
| 359 | R6 |
| 360 | R7 |
| 361 | R8 |
| 362 | R9 |
| 363 | R10 |
| 364 | R11 |
| 365 | R12 host |
| 366 | R12 silicon |
| 367 | R13 host |
| 368 | R13 silicon |
| 369 | R14 host |
| 370 | R14 silicon |
| 371 | R15 physical performance qualification |
| 372 | |
| 373 | R15 numbers do not have to be byte-identical after code removal, but the |
| 374 | pre-registered R15 acceptance policy must still pass. |
| 375 | |
| 376 | If performance changes materially, record a new R15-compatible measurement |
| 377 | bundle in the R16 qualification. |
| 378 | |
| 379 | ============================================================ |
| 380 | R16 CODE SEARCH GATE |
| 381 | ============================================================ |
| 382 | |
| 383 | Create a machine-readable inventory of all remaining central loops matching |
| 384 | patterns such as: |
| 385 | |
| 386 | run_until_complete |
| 387 | max_steps |
| 388 | max_turns |
| 389 | manual step loops |
| 390 | heartbeat semantic task dispatch |
| 391 | faculty service sequencing |
| 392 | |
| 393 | For each surviving match, attach classification: |
| 394 | |
| 395 | maintenance |
| 396 | recovery |
| 397 | reference |
| 398 | physical scheduler |
| 399 | external protocol |
| 400 | |
| 401 | No unclassified production semantic orchestrator may remain. |
| 402 | |
| 403 | Gate fails if one remains. |
| 404 | |
| 405 | ============================================================ |
| 406 | R16 RECEIPT |
| 407 | ============================================================ |
| 408 | |
| 409 | Create: |
| 410 | |
| 411 | spec/r16-orchestrator-retirement.md |
| 412 | |
| 413 | evidence/R16/<sha256>.json |
| 414 | |
| 415 | Suggested schema: |
| 416 | |
| 417 | AIEN_RX_R16_ORCHESTRATOR_RETIRED_V1 |
| 418 | |
| 419 | Include: |
| 420 | |
| 421 | candidate_commit |
| 422 | run_commit |
| 423 | candidate_bound |
| 424 | tree_dirty |
| 425 | silicon_observed |
| 426 | |
| 427 | R1–R15 rerun results |
| 428 | |
| 429 | retirement inventory: |
| 430 | repo |
| 431 | path |
| 432 | symbol |
| 433 | old role |
| 434 | new role |
| 435 | classification |
| 436 | authoritative = true/false |
| 437 | |
| 438 | production entry point |
| 439 | |
| 440 | legacy orchestrators disabled test |
| 441 | |
| 442 | legacy cannot bypass authority test |
| 443 | |
| 444 | remaining central-loop count |
| 445 | remaining unclassified semantic-loop count = 0 |
| 446 | |
| 447 | known-good fallback present = true |
| 448 | recovery present = true |
| 449 | maintenance controls present = true |
| 450 | trusted capability root present = true |
| 451 | generation mechanism present = true |
| 452 | evidence present = true |
| 453 | |
| 454 | R15 acceptance still passing = true |
| 455 | |
| 456 | gate: |
| 457 | R16_ORCHESTRATOR_RETIRED = PASS |
| 458 | |
| 459 | ============================================================ |
| 460 | R16 QUALIFICATION DISCIPLINE |
| 461 | ============================================================ |
| 462 | |
| 463 | 1. complete retirement map first; |
| 464 | 2. commit map/spec; |
| 465 | 3. make minimal code changes; |
| 466 | 4. add explicit authoritative-path tests; |
| 467 | 5. commit candidate; |
| 468 | 6. clean tree; |
| 469 | 7. run entire R1–R15 ladder; |
| 470 | 8. run physical GB10 qualification; |
| 471 | 9. verify R15 acceptance remains satisfied; |
| 472 | 10. candidate == run commit; |
| 473 | 11. generate receipt; |
| 474 | 12. commit evidence unchanged; |
| 475 | 13. open PR; |
| 476 | 14. merge with merge commit. |
| 477 | |
| 478 | ============================================================ |
| 479 | FINAL ADR 0016 COMPLETION CHECK |
| 480 | ============================================================ |
| 481 | |
| 482 | After R16 merge, perform one fresh clean checkout of the merged tree. |
| 483 | |
| 484 | From that checkout verify: |
| 485 | |
| 486 | R1 PASS |
| 487 | R2 PASS |
| 488 | R3 PASS |
| 489 | R4 PASS |
| 490 | R5 PASS |
| 491 | R6 PASS |
| 492 | R7 PASS |
| 493 | R8 PASS |
| 494 | R9 PASS |
| 495 | R10 PASS |
| 496 | R11 PASS |
| 497 | R12 PASS |
| 498 | R13 PASS |
| 499 | R14 PASS |
| 500 | R15 PASS |
| 501 | R16 PASS |
| 502 | |
| 503 | Then inspect production code again. |
| 504 | |
| 505 | The final architecture must truthfully be describable as: |
| 506 | |
| 507 | AIEN is a persistent resident computational system in which cognition, |
| 508 | realization, authority, resource arbitration, CPU/GPU execution, evidence, |
| 509 | recovery and durable promotion operate over one generation-addressed object |
| 510 | world. |
| 511 | |
| 512 | Work progresses because dependencies become ready, not because a master loop |
| 513 | chooses which faculty goes next. |
| 514 | |
| 515 | ============================================================ |
| 516 | DO NOT OVERCLAIM |
| 517 | ============================================================ |
| 518 | |
| 519 | Completion of R16 means: |
| 520 | |
| 521 | ADR 0016 / Resident Reaction Architecture migration COMPLETE. |
| 522 | |
| 523 | It does NOT mean the entire AIEN 42-phase master plan is complete. |
| 524 | |
| 525 | Do not claim: |
| 526 | |
| 527 | - full Skill Network completion; |
| 528 | - complete J-Space productization; |
| 529 | - complete Fabric deployment; |
| 530 | - complete whole-product Effect Broker path; |
| 531 | - full Cortex product integration; |
| 532 | - full RSI product integration; |
| 533 | - final install/update UX; |
| 534 | - Phase 41 whole-AIEN golden path; |
| 535 | - Phase 42 final release qualification; |
| 536 | |
| 537 | unless separately proven by their own current evidence. |
| 538 | |
| 539 | ============================================================ |
| 540 | FINAL REPORT TO OPERATOR |
| 541 | ============================================================ |
| 542 | |
| 543 | When both gates are merged, report: |
| 544 | |
| 545 | R15: |
| 546 | - implementation commit |
| 547 | - evidence commit |
| 548 | - receipt SHA |
| 549 | - raw evidence location |
| 550 | - exact hardware |
| 551 | - benchmark methodology |
| 552 | - legacy vs resident table |
| 553 | - every mandatory ADR metric |
| 554 | - statistically supported wins |
| 555 | - regressions/tradeoffs |
| 556 | - energy method |
| 557 | - acceptance criteria and result |
| 558 | |
| 559 | R16: |
| 560 | - implementation commit |
| 561 | - evidence commit |
| 562 | - receipt SHA |
| 563 | - every retired orchestrator |
| 564 | - every surviving loop and its classification |
| 565 | - production entry point |
| 566 | - proof that legacy loops are unnecessary for the resident golden path |
| 567 | - proof legacy paths cannot bypass authority |
| 568 | - full R1–R16 rerun |
| 569 | - remaining limitations |
| 570 | |
| 571 | Finish with exactly one architectural status statement: |
| 572 | |
| 573 | ADR 0016 RESIDENT REACTION MIGRATION: |
| 574 | COMPLETE |
| 575 | |
| 576 | Only say that if both: |
| 577 | |
| 578 | R15_REACTION_PERFORMANCE_PASS |
| 579 | and |
| 580 | R16_ORCHESTRATOR_RETIRED |
| 581 | |
| 582 | are genuinely proven. |
| 583 | |
| 584 | ============================================================ |
| 585 | FIRST ACTION NOW |
| 586 | ============================================================ |
| 587 | |
| 588 | Fetch current main in every relevant repository. |
| 589 | |
| 590 | Do not trust README claims. |
| 591 | |
| 592 | Inspect actual code. |
| 593 | |
| 594 | Produce the R15 benchmark/instrumentation map. |
| 595 | |
| 596 | Commit the R15 methodology BEFORE looking at final qualification results. |
| 597 | |
| 598 | Then execute R15. |
| 599 | |
| 600 | If and only if R15 passes, proceed immediately to R16 and finish the |
| 601 | migration. |
| 602 | |
| 603 | Do not stop merely because one benchmark looks impressive. |
| 604 | Do not stop merely because old code was marked deprecated. |
| 605 | Finish both gates with candidate-bound evidence. |
| 606 | ``` |