elanous 0.3.5 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2863) hide show
  1. package/catalog/sim-world-device-catalog-fragments/README.md +16 -0
  2. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-CONTRACT-SECRET-ENTROPY-TS.json +24 -0
  3. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-KILL-SWITCH-WORLD-TS.json +20 -0
  4. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-SCRATCH-BOOTSTRAP-TS.json +9 -0
  5. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-UPGRADE-PATH-WORLD-TS.json +9 -0
  6. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ARG-MACRO-CANVAS-SIM-TS.json +16 -0
  7. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ASIDE-FEEDBACK-LOOP-TS.json +33 -0
  8. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-AUTHOR-REVIEWER-PRECHECK-DEVICE-TS.json +33 -0
  9. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BACKEND-TIER-DEVICE-TS.json +29 -0
  10. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BOOT-DAEMON-TOOLS-PTY-SHELL-DEVICE-TS.json +33 -0
  11. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BROWSER-HAND-TS.json +33 -0
  12. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BURST-READY-LADDER-SIM-TS.json +33 -0
  13. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CENSUS-ORACLE-AXIS-WORLD-TS.json +8 -0
  14. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CHAIN-LAND-TS.json +29 -0
  15. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLASSIC-TUI-SEAT-SCENARIOS-TS.json +33 -0
  16. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLI-CONFIG-AUDIT-DEVICE-TS.json +33 -0
  17. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CODEX-WIRE-CAPTURE-TS.json +33 -0
  18. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-COMPUTER-USE-TS.json +33 -0
  19. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DASHBOARD-EVENT-LOOP-STALL-MONITOR-DEVICE-TS.json +33 -0
  20. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-CATALOG-SNAPSHOT-FRAGMENTS-TS.json +12 -0
  21. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-FIDELITY-TS.json +31 -0
  22. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DRAFT-INVENTORY-BUILDER-TS.json +33 -0
  23. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-NIGHTLY-TS.json +11 -0
  24. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-TS.json +18 -0
  25. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EVENT-MONKEY-TS.json +33 -0
  26. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ABSORB-INGEST-TS.json +9 -0
  27. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ADB-PHONE-WORLD-TS.json +15 -0
  28. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-AGENT-HOOK-HOST-TS.json +6 -0
  29. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ANDROID-CLIENT-TS.json +10 -0
  30. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-AUTH-TS.json +29 -0
  31. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-BACKUP-WORLD-TS.json +14 -0
  32. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-WORLD-TS.json +25 -0
  33. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DRIVE-WORLD-TS.json +23 -0
  34. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-FAILURES-TS.json +9 -0
  35. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-HOST-TS.json +29 -0
  36. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-REALTIME-TS.json +29 -0
  37. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-CONCURRENT-WRITER-TS.json +23 -0
  38. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-WORLD-TS.json +23 -0
  39. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-STORAGE-TS.json +29 -0
  40. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-TRAFFIC-TS.json +29 -0
  41. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-ARGS-SIM-TS.json +17 -0
  42. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-TS.json +33 -0
  43. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BROWSER-PAGE-TS.json +33 -0
  44. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOCK-TS.json +33 -0
  45. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-BILLING-WORLD-TS.json +8 -0
  46. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-VM-TS.json +33 -0
  47. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DATA-GUARD-BOUNDARY-TS.json +29 -0
  48. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DNS-CERT-TS.json +29 -0
  49. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ELEVENLABS-TS.json +29 -0
  50. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FEEDS-TS.json +9 -0
  51. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FETCH-TS.json +29 -0
  52. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FLEET-TS.json +33 -0
  53. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GH-TS.json +33 -0
  54. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GOOGLE-DRIVE-WORLD-TS.json +23 -0
  55. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HERDR-TS.json +33 -0
  56. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HIGGSFIELD-TS.json +29 -0
  57. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-KUBECTL-TS.json +33 -0
  58. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LAND-QUEUE-TS.json +33 -0
  59. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LINEAR-DEVICE-TS.json +33 -0
  60. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LLM-TS.json +33 -0
  61. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MEMBER-OIDC-WORLD-TS.json +8 -0
  62. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MOBILE-TOOLCHAIN-TS.json +9 -0
  63. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-NEXUS-BOARD-SERVER-TS.json +9 -0
  64. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PAYMENT-TS.json +29 -0
  65. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PS-TS.json +30 -0
  66. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-RELAY-WORLD-TS.json +20 -0
  67. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-SSH-TS.json +33 -0
  68. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-STT-TS.json +29 -0
  69. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-OUTBOUND-TS.json +9 -0
  70. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-VIDEO-TS.json +33 -0
  71. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TEMP-CLEANUP-TS.json +21 -0
  72. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-CRED-EXPIRY-TS.json +33 -0
  73. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-GLM-NO-CREDENTIAL-TS.json +33 -0
  74. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEEDS-HUMAN-REASON-REPAIR-TS.json +33 -0
  75. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXTMOVE-DISPATCH-TS.json +33 -0
  76. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXUS-STALL-TS.json +29 -0
  77. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CHILD-RESULT-TS.json +33 -0
  78. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CODEX-503-TS.json +33 -0
  79. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-DEATH-TS.json +33 -0
  80. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-REUSE-RESIDUE-TS.json +29 -0
  81. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POOL-CAP-TS.json +33 -0
  82. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SCOPE-ESCAPE-LIFT-TS.json +33 -0
  83. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SQLITE-BUSY-TS.json +33 -0
  84. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-TUI-400-AUTOHEAL-TS.json +33 -0
  85. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FIXTURES-GIT-WORKTREE-ACCEL-LINUX-JSON.json +33 -0
  86. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FLUTTER-DEPLOY-JOURNEY-TS.json +10 -0
  87. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-LAYERED-DELTA-SIM-TS.json +11 -0
  88. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-PREFLIGHT-RUNTIME-IDENTITY-FLOW-SIM-TS.json +13 -0
  89. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-ROSTER-SECOND-POOL-TS.json +28 -0
  90. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-SHARD-HOST-REROUTE-TS.json +33 -0
  91. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-STEADY-STATE-PROOF-SIM-TS.json +11 -0
  92. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GIT-PUSH-TIMEOUT-PARTIAL-OUTCOME-REMOTE-VERIFY-TS.json +22 -0
  93. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-DEVICE-TS.json +33 -0
  94. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-INTERIM-TRACE-TS.json +33 -0
  95. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-DIFF-APPLY-TS.json +9 -0
  96. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-ENGINE-SIM-TS.json +33 -0
  97. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-EVENT-ENTRY-WORLD-TS.json +4 -0
  98. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-PLACEMENT-LEASE-WORLD-TS.json +4 -0
  99. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUN-LIFECYCLE-WORLD-TS.json +7 -0
  100. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-TS.json +33 -0
  101. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-WORKER-TS.json +33 -0
  102. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-TRIGGER-HOOK-DEVICE-TS.json +4 -0
  103. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-CHAOS-DRIVER-TS.json +33 -0
  104. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-LEDGER-TS.json +33 -0
  105. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-READY-TIERS-TS.json +33 -0
  106. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEADLESS-TUI-TS.json +33 -0
  107. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEAL-REAUTHOR-MATERIALIZED-TS.json +33 -0
  108. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HOTSPOT-FILE-LEASE-WORLD-TS.json +4 -0
  109. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HQ-MOVE-SIM-TS.json +30 -0
  110. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-539-FILE-ADOPTION-SIM-TS.json +17 -0
  111. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-TS.json +33 -0
  112. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INPUT-HISTORY-TS.json +33 -0
  113. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INSTALL-CONSENT-DEVICE-TS.json +31 -0
  114. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INTERACTION-TS.json +33 -0
  115. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IOS-CHAT-EDGE-ADAPTER-TS.json +9 -0
  116. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-LINEAR-SECRETARY-TS.json +33 -0
  117. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MAPREDUCE-MULTIHOST-SIM-TS.json +8 -0
  118. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-CHILD-TS.json +33 -0
  119. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-TS.json +33 -0
  120. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-DEVICE-REQUESTS-TS.json +33 -0
  121. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-JSON.json +19 -0
  122. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-TS.json +33 -0
  123. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-CHILD-TS.json +33 -0
  124. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-TS.json +33 -0
  125. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-CHILD-TS.json +33 -0
  126. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-TS.json +33 -0
  127. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-ACTOR-WORLD-TS.json +9 -0
  128. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-TENANT-RELAY-WORLD-TS.json +20 -0
  129. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NETWORK-SANDBOX-TS.json +9 -0
  130. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-CORE-INPUT-TS.json +9 -0
  131. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-ROUTE-DEVICE-TS.json +9 -0
  132. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-SEAT-SCENARIOS-TS.json +33 -0
  133. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NL-SCENARIO-TS.json +9 -0
  134. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ONBOARDING-FIRST-RUN-DEVICE-TS.json +33 -0
  135. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-OUTBOUND-GUARD-SIM-TS.json +7 -0
  136. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-RELEASE-OBSERVE-ROUTE-WORLD-TS.json +11 -0
  137. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-YAML-GEN-WORLD-TS.json +9 -0
  138. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-FEDERATION-SIM-TS.json +9 -0
  139. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-PHASE-PREWARM-TS.json +17 -0
  140. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-MATCH-BY-KIND-SIM-TS.json +25 -0
  141. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-SHARED-FAKE-BOUNDARY-TS.json +26 -0
  142. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-WORLD-TS.json +27 -0
  143. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-AUTOREPAIR-DEVICE-TS.json +17 -0
  144. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-GATE-DEVICE-TS.json +26 -0
  145. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PTY-KEY-MODIFIERS-DEVICE-TS.json +33 -0
  146. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PUBLIC-AUTH-PROVIDER-CLOUD-VM-SIM-TS.json +7 -0
  147. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-PROVENANCE-BADGE-WORLD-TS.json +4 -0
  148. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-RETAINED-ROUTES-WORLD-TS.json +11 -0
  149. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-READINESS-COUNTDOWN-TS.json +24 -0
  150. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-REAL-TARGET-SANDBOX-TS.json +9 -0
  151. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-EVENT-TRACE-TS.json +28 -0
  152. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-PUBLISH-DEVICES-TS.json +28 -0
  153. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SAME-VERSION-RUN-ADOPTION-SIM-TS.json +15 -0
  154. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-SEAT-GUARD-CHILD-TS.json +11 -0
  155. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-TS.json +33 -0
  156. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RENDER-FRAME-TS.json +33 -0
  157. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESEARCH-DECISION-CHAIN-TS.json +33 -0
  158. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESUME-PICKER-DEVICE-TS.json +33 -0
  159. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-EVENT-RESPONSE-SCORECARD-TS.json +28 -0
  160. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-MACROPHAGE-HEAL-TIMEOUT-STALE-OUTPUT-SIM-TS.json +4 -0
  161. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SAFE-PUBLIC-COPY-PUBLISH-TS.json +33 -0
  162. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TS.json +33 -0
  163. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SECRET-CANARY-TS.json +29 -0
  164. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SEMINAR-REHEARSAL-TS.json +33 -0
  165. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SERVICE-KEY-SETUP-TS.json +33 -0
  166. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SESSION-ID-SEED-TS.json +33 -0
  167. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-COVERAGE-TS.json +30 -0
  168. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-RECEIPT-TS.json +8 -0
  169. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SKILLS-TOOLS-SHELL-DEVICE-TS.json +33 -0
  170. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SLASH-MENU-FRAMES-TS.json +33 -0
  171. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SMART-MERGE-WORLD-TS.json +17 -0
  172. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SUBAGENT-TOOLS-DEVICE-TS.json +33 -0
  173. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TA-LAND-COUNT-DISPATCHER-SIM-TS.json +17 -0
  174. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-PARENT-HOST-DEVICE-TS.json +33 -0
  175. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-REJUDGE-ON-HEAD-DEVICE-TS.json +33 -0
  176. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-ORCHESTRATOR-SURFACES-SELF-IMPLEMENT-POD-DEVICE-TS.json +33 -0
  177. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REMOTE-TS.json +33 -0
  178. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REPO-TS.json +29 -0
  179. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TERM-SLASH-DEVICE-TS.json +33 -0
  180. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ASYNC-FAIL-LOOP-TS.json +30 -0
  181. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ROUTER-WORLD-TS.json +9 -0
  182. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-DECISION-SIM-TS.json +18 -0
  183. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-WORLD-TS.json +9 -0
  184. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TTY-FOREGROUND-STEAL-CHILD-TS.json +33 -0
  185. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-STATES-TS.json +33 -0
  186. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-THROW-SIM-TS.json +33 -0
  187. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-DEFAULT-SPARSE-SIM-TS.json +11 -0
  188. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-TUI-DIET-SIM-TS.json +11 -0
  189. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SIM-TS.json +33 -0
  190. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SWITCH-SIM-TS.json +29 -0
  191. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-SI-REUSE-SIM-TS.json +29 -0
  192. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-CHAOS-RUNTIME-TS.json +31 -0
  193. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-HOST-CHAOS-TS.json +30 -0
  194. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-REGRESSION-SUITE-TS.json +9 -0
  195. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SCHEMA-TS.json +33 -0
  196. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SNAPSHOT-TS.json +31 -0
  197. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-STORE-TS.json +33 -0
  198. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-TS.json +33 -0
  199. package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-WATCH-TS.json +27 -0
  200. package/catalog/sim-world-device-catalog-fragments/metadata.json +3 -0
  201. package/catalog/ux-sim/fixtures/adaptive-graph-v1.yaml +18 -0
  202. package/catalog/ux-sim/mock-scenario-catalog-fragments/README.md +15 -0
  203. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00010--scripts-tui-sim-bench-ts-adf79d7e.json +8 -0
  204. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00020--scripts-tui-sim-ts-c9bd7af7.json +8 -0
  205. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00030--scripts-ux-sim-ts-e5b4dead.json +8 -0
  206. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00040--scripts-voice-dogfood-sim-ts-0e5441cd.json +8 -0
  207. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00050--scripts-voice-pwa-sim-ts-831ba2c9.json +8 -0
  208. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00060--scripts-release-loop-gate-autoheal-sim-evidence--1dfbf6e9.json +11 -0
  209. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00070--scripts-release-loop-gate-node-sim-ts-bb18473a.json +11 -0
  210. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00080--scripts-release-loop-gate-bisect-ts-0a24b781.json +11 -0
  211. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00090--scripts-release-loop-gate-bisect-test-ts-93276556.json +11 -0
  212. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00100--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +11 -0
  213. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00110--scripts-release-loop-tui-sim-node-ts-81456cc3.json +8 -0
  214. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00120--scripts-lib-pwa-scenarios-acp-replay-ts-f5b22233.json +8 -0
  215. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00130--scripts-lib-pwa-scenarios-cdp-driver-ts-f888fe21.json +8 -0
  216. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00140--scripts-lib-pwa-scenarios-runner-ts-482bae4e.json +8 -0
  217. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00150--scripts-lib-pwa-scenarios-scenarios-ts-b6642642.json +8 -0
  218. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00160--test-fixtures-acp-initialize-stub-ts-dda92993.json +8 -0
  219. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00170--test-fixtures-mock-lsp-server-ts-5607efec.json +8 -0
  220. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00180--test-helpers-intake-fake-repo-ts-313e4fab.json +8 -0
  221. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00190--test-ux-sim-aimock-local-ts-346e03cb.json +8 -0
  222. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00200--scenarios-dashboard-default-yaml-f2d56850.json +8 -0
  223. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00210--scenarios-heap-graph-yaml-d9d0d2a9.json +8 -0
  224. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00220--scenarios-iul-timeline-viewer-yaml-449a5fc2.json +8 -0
  225. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00230--scenarios-ux-sim-provider-4xx-no-provider-yaml-0d620991.json +11 -0
  226. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00240--scenarios-ux-sim-release-sim-rig-yaml-3ec55c14.json +13 -0
  227. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00250--tests-scenarios-4provider-feature-impl-yaml-d76ada66.json +8 -0
  228. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00260--tests-scenarios-capability-level-11-yaml-2f16c5ed.json +8 -0
  229. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00270--tests-scenarios-codex-baseline-yaml-8a635e8e.json +8 -0
  230. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00280--tests-scenarios-codex-opus-2way-yaml-5e0502d6.json +8 -0
  231. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00290--tests-scenarios-codex-variance-w5f-yaml-4ec32047.json +8 -0
  232. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00300--tests-scenarios-multi-turn-cache-rate-yaml-eb8a6f86.json +8 -0
  233. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00310--tests-scenarios-repl-rotation-chain-yaml-6e9a6646.json +8 -0
  234. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00320--tests-scenarios-repl-self-debug-arc-yaml-549e12af.json +8 -0
  235. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00330--tests-scenarios-repl-tool-doom-recovery-yaml-06a7412a.json +8 -0
  236. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00340--src-playground-scenario-default-scenarios-ts-45b5ee3e.json +8 -0
  237. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00350--src-playground-scenario-fake-harness-ts-870235f6.json +8 -0
  238. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00360--src-showroom-outbound-channels-stubs-ts-d2dee3b2.json +8 -0
  239. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00370--test-telegram-surface-hitl-test-ts-1a40e9ff.json +8 -0
  240. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00380--src-ux-sim-author-reviewer-precheck-device-ts-92e65331.json +12 -0
  241. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00390--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +11 -0
  242. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00400--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +11 -0
  243. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00410--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +8 -0
  244. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00420--src-release-loop-macrophage-heal-ts-30c76fcb.json +11 -0
  245. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00430--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +8 -0
  246. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00440--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +8 -0
  247. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00450--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +11 -0
  248. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00460--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +11 -0
  249. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00470--src-ux-sim-readiness-countdown-ts-7955f662.json +11 -0
  250. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00480--src-ux-sim-readiness-countdown-test-ts-74503e51.json +11 -0
  251. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00490--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +11 -0
  252. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00500--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +11 -0
  253. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00510--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +11 -0
  254. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00520--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +11 -0
  255. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00530--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +11 -0
  256. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00540--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +11 -0
  257. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00550--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +11 -0
  258. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00560--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +11 -0
  259. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00570--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +11 -0
  260. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00580--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +11 -0
  261. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00590--src-ux-sim-release-same-version-run-adoption-sim-ts-0a0b3e7e.json +11 -0
  262. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00600--src-ux-sim-release-same-version-run-adoption-sim-test-ts-e50288fb.json +11 -0
  263. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00610--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +11 -0
  264. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00620--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +11 -0
  265. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00630--src-ux-sim-graph-compose-trigger-sim-test-ts.json +8 -0
  266. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +9 -0
  267. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +9 -0
  268. package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00660--scripts-release-loop-gate-node-test-ts.json +11 -0
  269. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--scripts-release-loop-gate-node-test-ts.json +4 -0
  270. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +4 -0
  271. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00020--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +4 -0
  272. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00030--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +4 -0
  273. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00040--scripts-release-loop-gate-bisect-ts-0a24b781.json +4 -0
  274. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00050--scripts-release-loop-gate-bisect-test-ts-93276556.json +4 -0
  275. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00060--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +4 -0
  276. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00070--src-release-loop-macrophage-heal-ts-30c76fcb.json +4 -0
  277. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00080--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +4 -0
  278. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00090--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +4 -0
  279. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00100--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +4 -0
  280. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00110--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +4 -0
  281. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00120--src-ux-sim-readiness-countdown-ts-7955f662.json +4 -0
  282. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00130--src-ux-sim-readiness-countdown-test-ts-74503e51.json +4 -0
  283. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00140--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +4 -0
  284. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00150--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +4 -0
  285. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00160--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +4 -0
  286. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00170--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +4 -0
  287. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00180--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +4 -0
  288. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00190--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +4 -0
  289. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00200--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +4 -0
  290. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00210--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +4 -0
  291. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00220--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +4 -0
  292. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00230--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +4 -0
  293. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00240--src-ux-sim-release-same-version-run-adoption-sim-ts-0a0b3e7e.json +4 -0
  294. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00250--src-ux-sim-release-same-version-run-adoption-sim-test-ts-e50288fb.json +4 -0
  295. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00260--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +4 -0
  296. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00270--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +4 -0
  297. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00280--src-ux-sim-graph-compose-trigger-sim-test-ts.json +4 -0
  298. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +4 -0
  299. package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +4 -0
  300. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00000--multi-actor-world-20261110.json +38 -0
  301. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00010--sim-fake-providers-av-4883a32d.json +33 -0
  302. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00020--codex-wire-capture-1bb11a5e.json +27 -0
  303. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00030--fake-app-auth-a12b9d72.json +34 -0
  304. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00040--fake-app-traffic-10bb14b5.json +38 -0
  305. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00050--fake-app-realtime-b675ae5d.json +37 -0
  306. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00060--fake-llm-4e9d0461.json +27 -0
  307. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00070--fake-fetch-24e15acf.json +37 -0
  308. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00080--fake-data-guard-boundary-6d63fa1b.json +27 -0
  309. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00090--fake-executable-0d4932e9.json +52 -0
  310. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00100--fake-payment-36658cf7.json +35 -0
  311. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00110--git-worktree-accel-measure-f2e46787.json +30 -0
  312. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00120--fake-github-4447f89b.json +27 -0
  313. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00121--fake-cred.json +14 -0
  314. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00122--fake-feeds.json +14 -0
  315. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00130--fake-kubectl-1d602089.json +28 -0
  316. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00140--fault-nexus-stall-7854e333.json +29 -0
  317. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00150--warm-pool-reuse-sim-7748cb2f.json +45 -0
  318. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00160--fake-fleet-55e1776a.json +28 -0
  319. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00170--fake-herdr-61d3593c.json +27 -0
  320. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00180--fake-clock-89a347a7.json +26 -0
  321. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00190--fake-dns-cert-b17dcd51.json +36 -0
  322. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00200--fake-ssh-6012493b.json +29 -0
  323. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00210--fake-cloud-vm-990dc784.json +61 -0
  324. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00220--temp-git-remote-03a486eb.json +24 -0
  325. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00230--fake-land-queue-bc0138c9.json +39 -0
  326. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00240--world-runtime-d26d02c9.json +83 -0
  327. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00250--secret-canary-e8fd8f58.json +31 -0
  328. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00260--scenario-runner-a9afa458.json +42 -0
  329. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00270--sim-mailbox-d26bb613.json +27 -0
  330. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00280--draft-inventory-34f59a02.json +38 -0
  331. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00290--linear-secretary-ecf757fe.json +33 -0
  332. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00300--release-graph-rig-069c8c3b.json +133 -0
  333. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00310--graph-engine-selector-1b47d4df.json +27 -0
  334. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00320--sim-event-log-path-74a7df46.json +52 -0
  335. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00330--tui-interaction-8e9968ff.json +65 -0
  336. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00340--fault-injection-60e2a635.json +49 -0
  337. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--gate-receipt-file-closure-cas.json +35 -0
  338. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--grid-chaos-driver-312fbd1c.json +36 -0
  339. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00360--product-devices-b83cabdd.json +61 -0
  340. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00370--turn-throw-sim-fa6bd37b.json +30 -0
  341. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00380--first-run-and-seminar-f7ec0d9a.json +50 -0
  342. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00390--support-fakes-4ac8f28e.json +67 -0
  343. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00400--author-reviewer-precheck-29e760be.json +36 -0
  344. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00410--research-decision-chain-312201c5.json +30 -0
  345. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00420--sim-universe-world-lifecycle-0ccd91ce.json +32 -0
  346. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00430--sim-universe-world-yaml-schema-3a0c6c68.json +35 -0
  347. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00440--grid-ledger-95b7955f.json +30 -0
  348. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00450--telegram-video-receipt-3b9512a2.json +32 -0
  349. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00451--fake-telegram-outbound-briefing.json +13 -0
  350. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00460--aside-feedback-loop-4e4a0842.json +33 -0
  351. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00470--heal-reauthor-materialized-f16c0ffc.json +28 -0
  352. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00480--device-fidelity-b30563a6.json +28 -0
  353. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00490--install-consent-d43aab59.json +28 -0
  354. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00500--warm-si-reuse-sim-cd2ce529.json +44 -0
  355. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--pod-reuse-residue-fault-faeb368d.json +33 -0
  356. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--public-auth-provider-cloud-vm-sim-161386f5.json +43 -0
  357. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--warm-pool-declare-path-sim-553b1d90.json +37 -0
  358. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00520--fake-ps-d6df0bab.json +28 -0
  359. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00530--fake-app-storage-48587412.json +42 -0
  360. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00540--backend-tier-device-f32db49f.json +23 -0
  361. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00550--fake-higgsfield-b3207190.json +29 -0
  362. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00560--temp-git-repo-114a0526.json +23 -0
  363. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00570--rla-event-response-scorecard-a2c92bfd.json +31 -0
  364. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00580--app-contract-secret-entropy-e9beed1f.json +30 -0
  365. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00590--fake-app-drive-world-f2c3e58c.json +39 -0
  366. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00600--fake-app-source-world-445af8b0.json +32 -0
  367. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00610--fake-google-drive-world-c81301f3.json +40 -0
  368. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00620--fake-temp-cleanup-1d778211.json +36 -0
  369. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00630--git-push-timeout-partial-outcome-remote-verify-f90afeae.json +31 -0
  370. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00640--pod-reuse-match-by-kind-sim-ccc95426.json +37 -0
  371. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00650--pod-reuse-world-e1c91756.json +28 -0
  372. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00660--pr-land-drift-gate-31434d33.json +32 -0
  373. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--edge-creator-4d59199b.json +45 -0
  374. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--readiness-countdown-db1a7536.json +35 -0
  375. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00680--rla-context-release-status-arrival-event-740d889b.json +28 -0
  376. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00690--sim-catalog-manual-fragment-merge-sim-9a35f50d.json +30 -0
  377. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--git-fetch-fresh-skip-10e18190.json +30 -0
  378. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--smart-merge-world.json +28 -0
  379. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--pod-phase-prewarm-3bc0dd35.json +33 -0
  380. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--release-graph-receipt-audit.json +33 -0
  381. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--ta-land-count-dispatcher-sim.json +25 -0
  382. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00720--fake-bin-args-sim.json +29 -0
  383. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00730--pr-land-drift-autorepair-device.json +27 -0
  384. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00740--gate-closure-lazy-require-sim.json +36 -0
  385. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00890--worktree-deps-shared-store.json +33 -0
  386. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00900--fake-adb-phone-world.json +37 -0
  387. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--fake-android-client-b8b02ae9.json +14 -0
  388. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--gate-repair-multi-file-sim.json +14 -0
  389. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--phone-pwa-selfheal.json +35 -0
  390. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--release-same-version-run-adoption-sim-ff3df430.json +30 -0
  391. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00920--repo-git-maintenance.json +31 -0
  392. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01000--install-one-liner-failsafe.json +31 -0
  393. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--relay-edge-first-host-sim.json +33 -0
  394. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--seat-mail-wake-4e271489.json +38 -0
  395. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--control-serve-lease-default-sim.json +14 -0
  396. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--flutter-deploy-journey.json +28 -0
  397. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--pod-phase-prewarm-sim.json +32 -0
  398. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01030--pod-phase-prewarm-hit-sim.json +33 -0
  399. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--adaptive-graph-design.json +34 -0
  400. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--app-upgrade-path.json +35 -0
  401. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--fake-market-feed.json +27 -0
  402. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--graph-v2-lowering.json +27 -0
  403. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--light-rc-long-run-device-0d845681.json +26 -0
  404. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--sim-impact-unified-check-804f7466.json +35 -0
  405. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01041--plugin-yaml-gen.json +33 -0
  406. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--absorb-graph-v2-rungraph-4b5a6751.json +28 -0
  407. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--graph-policy-lint.json +30 -0
  408. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--mini-board-card-deb603f7.json +29 -0
  409. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01100--graph-trigger-hook-device.json +32 -0
  410. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01101--graph-trigger-registry-world.json +13 -0
  411. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01103--graph-event-entry-world.json +13 -0
  412. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01104--graph-placement-lease-world.json +13 -0
  413. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01110--sim-mapreduce-multihost.json +14 -0
  414. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01600--fake-absorb-ingest.json +14 -0
  415. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01610--graph-compose-trigger-sim.json +32 -0
  416. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01620--app-scratch-bootstrap.json +13 -0
  417. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01630--nl-scenario-proposal.json +13 -0
  418. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01650--network-sandbox.json +13 -0
  419. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01670--pod-federation-sim.json +13 -0
  420. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01680--fake-mobile-toolchain.json +13 -0
  421. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01690--fake-app-failures.json +21 -0
  422. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--sim-receipt-proof-658f05e1.json +38 -0
  423. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--world-regression-suite.json +13 -0
  424. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-cloud-billing-world.json +41 -0
  425. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-member-oidc-world.json +47 -0
  426. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--log-volume-world-4cfcdfcd.json +15 -0
  427. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--tool-router-world.json +13 -0
  428. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--train-manager-world.json +46 -0
  429. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--census-oracle-axis-world-6918999a.json +28 -0
  430. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--fake-agent-hook-host.json +39 -0
  431. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--next-tui-plugin-wizard.json +23 -0
  432. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01730--outbound-guard-sim-b65e7aca.json +26 -0
  433. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01740--graph-run-lifecycle-world-99feb920.json +27 -0
  434. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01750--hotspot-file-lease-world.json +27 -0
  435. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01850--pwa-static-swap.json +32 -0
  436. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01860--pwa-provenance-badge-world-6505d1f7.json +31 -0
  437. package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01870--rla-macrophage-heal-timeout-stale-output.json +28 -0
  438. package/catalog/ux-sim/mock-scenario-catalog-fragments/metadata.json +36 -0
  439. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00010--test-ux-sim-aimock-local-ts-346e03cb.json +1 -0
  440. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00020--test-telegram-surface-hitl-test-ts-1a40e9ff.json +1 -0
  441. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00030--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +1 -0
  442. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00040--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +1 -0
  443. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +1 -0
  444. package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +1 -0
  445. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-fake-agent-hook-host--d684e4e6.json +4 -0
  446. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-graph-policy-lint--a3217972.json +4 -0
  447. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-duplicate-36330--00a4c628.json +4 -0
  448. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-glm-fallback-regression--3008ce2b.json +4 -0
  449. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-notify-capability--377e3b9b.json +4 -0
  450. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-sim-fake-app-failures-android-voice-photo-note--2cf7eecc.json +4 -0
  451. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-guardian-train-worker-lifecycle--81fc2727.json +4 -0
  452. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-simkit-receipt-badge--403f2c90.json +4 -0
  453. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-brief-graph-contract-36172--adebc8d7.json +4 -0
  454. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-36414-mapreduce-core--3d93d2ed.json +4 -0
  455. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-graph-instance-pause-cancel-fork--03ed48f5.json +4 -0
  456. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-mapreduce-core--8e0f99c7.json +4 -0
  457. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/graph-hook--6004207a.json +4 -0
  458. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/hotspot-file-lease-world--7a989baf.json +4 -0
  459. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-a-36129-numguard--6bf14d0e.json +4 -0
  460. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-graph-v2-lower--5cfb0e37.json +4 -0
  461. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-train-manager-world--d8aadd96.json +4 -0
  462. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-c-app-scratch-bootstrap-sim--5bc6aa66.json +4 -0
  463. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-core-input--d3b85b0e.json +4 -0
  464. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-fold-default--aee623bd.json +4 -0
  465. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-absorb-brief-graph-contract--322f06ec.json +4 -0
  466. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-sim-multi-actor--70a91caa.json +4 -0
  467. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-mock-catalog-4--6f2ee6aa.json +4 -0
  468. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-fake-feeds--5f8bba8e.json +4 -0
  469. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-real-target-sandbox--17a5454a.json +4 -0
  470. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-kaist-deploy-from-tui-pwa--e1c5986f.json +4 -0
  471. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-census-oracle-axis--eac8e1dd.json +4 -0
  472. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-gate-no-wallclock-1--a8ad27a8.json +4 -0
  473. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-log-volume-world--24e1d1ea.json +4 -0
  474. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-mkt-sim-regression-suite--c8633fb2.json +4 -0
  475. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-first-party-plugins-all--b202b190.json +4 -0
  476. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-graph-route-allowlist--565dc688.json +4 -0
  477. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-plugin-multi-active--a95dc218.json +4 -0
  478. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-search-only--f91a0e19.json +4 -0
  479. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-tool-router-world--4e6a7c56.json +4 -0
  480. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-warmpool-pod-warm-normalize--dc25fd37.json +4 -0
  481. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/sim-fake-cred--ef5d3497.json +4 -0
  482. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/tool-router-low-risk-native--4fcc1519.json +4 -0
  483. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-mini-board-card-projection--1a257324.json +4 -0
  484. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-resource-ledger-public-auth--9372a56f.json +4 -0
  485. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-rla-pwa-formal-update--8b6d47f1.json +4 -0
  486. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-cloud-billing-world--1dace52e.json +4 -0
  487. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-market-feed-sim-impact-app-upgrade--7bbacec6.json +4 -0
  488. package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-outbound-guard-sim--4c230f2f.json +4 -0
  489. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00010--ux-ms-01-73ee5d56.json +19 -0
  490. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00020--ux-ms-02-88d521fa.json +32 -0
  491. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00025--release-macrophage-heal-fd63c32d.json +28 -0
  492. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00030--release-graph-prepub-fanout-1beb8236.json +23 -0
  493. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00035--arg-macro-canvas-sim.json +21 -0
  494. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00036--release-graph-absorb-all-0307.json +26 -0
  495. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--release-macro-chain-e2e-1109.json +22 -0
  496. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--rla-rehearsal-cloud-resume-sim-1f54baa1.json +22 -0
  497. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--ux-ms-03-0888aa4c.json +19 -0
  498. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00050--ux-ms-04-46d9b0ff.json +21 -0
  499. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00060--ux-ms-05-d309d631.json +20 -0
  500. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00070--ux-ms-06-b87b5f50.json +19 -0
  501. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00080--ux-ms-07-45b8212b.json +21 -0
  502. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00090--ux-ms-08-d047fc5e.json +22 -0
  503. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00100--ux-ms-09-75e68cac.json +22 -0
  504. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00110--ux-ms-11-e621d4ea.json +20 -0
  505. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00120--ux-ms-12-af6a74c3.json +22 -0
  506. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00130--night-train-dead-pid-lock-9f67d397.json +21 -0
  507. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00140--author-precheck-applied-4a55eaf2.json +22 -0
  508. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00150--author-precheck-rejected-unprovable-08ab0402.json +22 -0
  509. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00160--safe-public-copy-publish-redaction-e80f0180.json +26 -0
  510. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00170--sw-freeze-d66deac8.json +20 -0
  511. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00180--sim-hq-move-7fc41ad6.json +26 -0
  512. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00190--sim-chain-land-c1305d4c.json +25 -0
  513. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00200--ux-ms-13-995bb160.json +25 -0
  514. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00210--app-contract-secret-entropy-bd4fecf8.json +19 -0
  515. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00220--app-source-snapshot-896a2618.json +21 -0
  516. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00230--app-web-drive-tenant-cd467e6c.json +21 -0
  517. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00240--git-push-timeout-partial-outcome-remote-verify-52419971.json +19 -0
  518. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--google-drive-list-readonly-90287835.json +21 -0
  519. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--ux-ms-pod-phase-prewarm.json +22 -0
  520. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--rla-launch-countdown-1107-f4b4bc86.json +20 -0
  521. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--ux-ms-pod-phase-prewarm-hit.json +20 -0
  522. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00270--task-temp-cleanup-a5f4b922.json +19 -0
  523. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00280--sim-release-same-version-run-adoption-0bc8d711.json +22 -0
  524. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00290--simkit-receipt-badge-dcacf46e.json +26 -0
  525. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01010--graph-resume-any-entry-sim-9bc2289f.json +20 -0
  526. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--flutter-deploy-journey.json +19 -0
  527. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--seat-mail-wake-all-addresses-365812cf.json +22 -0
  528. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01030--graph-run-lifecycle-pause-owner-death-6011d381.json +11 -0
  529. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01031--graph-run-lifecycle-cancel-owner-death-60832435.json +11 -0
  530. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01032--graph-run-lifecycle-fork-owner-death-b857f8a0.json +11 -0
  531. package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01720--fake-agent-hook-host.json +11 -0
  532. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-exclusions/00010--scenarios-ux-sim-mk-ms-01-yaml-917748f2.json +4 -0
  533. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00010--md-ux-sim-aside-feedback-loop-ts-f21f1507.json +10 -0
  534. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00020--md-ux-sim-author-reviewer-precheck-device-ts-b2a9abd6.json +10 -0
  535. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00030--md-ux-sim-backend-tier-device-ts-54b7fd84.json +10 -0
  536. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00040--md-ux-sim-boot-daemon-tools-pty-shell-device-ts-dd80678b.json +10 -0
  537. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00050--md-ux-sim-browser-hand-ts-d06db15a.json +10 -0
  538. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00060--md-ux-sim-burst-ready-ladder-sim-ts-6dad5f6c.json +10 -0
  539. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00070--md-ux-sim-chain-land-ts-0343338c.json +10 -0
  540. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00080--md-ux-sim-classic-tui-seat-scenarios-ts-20fee020.json +10 -0
  541. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00090--md-ux-sim-cli-config-audit-device-ts-ce53777f.json +10 -0
  542. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00100--md-ux-sim-codex-wire-capture-ts-8cda31a6.json +10 -0
  543. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00110--md-ux-sim-computer-use-ts-ce46f504.json +10 -0
  544. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00120--md-ux-sim-dashboard-event-loop-stall-monitor-dev-aa29de9c.json +10 -0
  545. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00130--md-ux-sim-device-fidelity-ts-f5cd1c2c.json +10 -0
  546. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00140--md-ux-sim-draft-inventory-builder-ts-c942f9a2.json +10 -0
  547. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00150--md-ux-sim-event-monkey-ts-7a173131.json +11 -0
  548. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00160--md-ux-sim-fake-app-auth-ts-36fadfd1.json +10 -0
  549. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00170--md-ux-sim-fake-app-host-ts-f97c7aa0.json +11 -0
  550. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00180--md-ux-sim-fake-app-realtime-ts-25496e57.json +10 -0
  551. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00190--md-ux-sim-fake-app-storage-ts-4dd69d8d.json +10 -0
  552. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00200--md-ux-sim-fake-app-traffic-ts-f1f5e552.json +10 -0
  553. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00210--md-ux-sim-fake-bin-ts-cf8e7614.json +10 -0
  554. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00220--md-ux-sim-fake-browser-page-ts-cd408a66.json +10 -0
  555. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00230--md-ux-sim-fake-clock-ts-8ad5fbca.json +12 -0
  556. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00240--md-ux-sim-fake-cloud-vm-ts-6dd59466.json +10 -0
  557. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00250--md-ux-sim-fake-data-guard-boundary-ts-47048355.json +10 -0
  558. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00260--md-ux-sim-fake-dns-cert-ts-32045bf7.json +10 -0
  559. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00270--md-ux-sim-fake-elevenlabs-ts-35e342bf.json +10 -0
  560. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00280--md-ux-sim-fake-fetch-ts-65584925.json +10 -0
  561. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00290--md-ux-sim-fake-fleet-ts-1375b9f5.json +10 -0
  562. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00300--md-ux-sim-fake-gh-ts-7f98dfa3.json +10 -0
  563. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00310--md-ux-sim-fake-herdr-ts-b888704c.json +11 -0
  564. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00320--md-ux-sim-fake-higgsfield-ts-998bff8d.json +10 -0
  565. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00330--md-ux-sim-fake-kubectl-ts-3c86b0f0.json +12 -0
  566. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00340--md-ux-sim-fake-land-queue-ts-8180eab3.json +10 -0
  567. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00350--md-ux-sim-fake-linear-device-ts-b5add3d0.json +10 -0
  568. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00360--md-ux-sim-fake-llm-ts-df79e477.json +10 -0
  569. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00370--md-ux-sim-fake-payment-ts-75de40a0.json +10 -0
  570. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00380--md-ux-sim-fake-ps-ts-a0e17feb.json +10 -0
  571. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00390--md-ux-sim-fake-ssh-ts-6a7a68f5.json +10 -0
  572. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00400--md-ux-sim-fake-stt-ts-a4be8d74.json +10 -0
  573. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00410--md-ux-sim-fake-telegram-video-ts-0a411065.json +10 -0
  574. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00420--md-ux-sim-fault-cred-expiry-ts-46ce5b1a.json +10 -0
  575. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00430--md-ux-sim-fault-glm-no-credential-ts-c9d22ea7.json +10 -0
  576. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00440--md-ux-sim-fault-needs-human-reason-repair-ts-79e657b4.json +10 -0
  577. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00450--md-ux-sim-fault-nextmove-dispatch-ts-732fedbb.json +10 -0
  578. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00460--md-ux-sim-fault-nexus-stall-ts-a9476e07.json +10 -0
  579. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00470--md-ux-sim-fault-pod-child-result-ts-029c2b11.json +10 -0
  580. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00480--md-ux-sim-fault-pod-codex-503-ts-2095dc24.json +10 -0
  581. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00490--md-ux-sim-fault-pod-death-ts-c4332c01.json +11 -0
  582. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00500--md-ux-sim-fault-pod-reuse-residue-ts-f6ec0683.json +10 -0
  583. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00510--md-ux-sim-fault-pool-cap-ts-704a8fd1.json +10 -0
  584. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00520--md-ux-sim-fault-scope-escape-lift-ts-89d70ebb.json +10 -0
  585. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00530--md-ux-sim-fault-sqlite-busy-ts-e55c6596.json +10 -0
  586. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00540--md-ux-sim-fault-tui-400-autoheal-ts-9c8c4c90.json +10 -0
  587. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00550--md-ux-sim-fixtures-git-worktree-accel-linux-json-292d13eb.json +10 -0
  588. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00560--md-ux-sim-gate-roster-second-pool-ts-71ab79a0.json +10 -0
  589. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00570--md-ux-sim-gate-shard-host-reroute-ts-d53fb003.json +10 -0
  590. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00580--md-ux-sim-goal-device-ts-081f27d5.json +10 -0
  591. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00590--md-ux-sim-goal-interim-trace-ts-a294f6eb.json +10 -0
  592. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00600--md-ux-sim-graph-engine-sim-ts-b396d6cd.json +10 -0
  593. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00610--md-ux-sim-graph-runtime-overlay-event-path-ts-85e231ed.json +10 -0
  594. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00620--md-ux-sim-graph-runtime-overlay-event-path-worke-44d01497.json +10 -0
  595. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00630--md-ux-sim-grid-chaos-driver-ts-3aeaa007.json +10 -0
  596. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00640--md-ux-sim-grid-ledger-ts-47aa3bbf.json +11 -0
  597. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00650--md-ux-sim-grid-ready-tiers-ts-ce1a3d02.json +10 -0
  598. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00660--md-ux-sim-headless-tui-ts-efe53045.json +10 -0
  599. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00670--md-ux-sim-heal-reauthor-materialized-ts-f0885108.json +10 -0
  600. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00680--md-ux-sim-hq-move-sim-ts-3f87b093.json +10 -0
  601. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00690--md-ux-sim-in-process-cli-ts-a7cf98f0.json +10 -0
  602. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00700--md-ux-sim-input-history-ts-373c28e3.json +10 -0
  603. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00710--md-ux-sim-install-consent-device-ts-049427b0.json +10 -0
  604. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00720--md-ux-sim-interaction-ts-1864df2b.json +10 -0
  605. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00730--md-ux-sim-linear-secretary-ts-325a38c0.json +10 -0
  606. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00740--md-ux-sim-mock-authoring-first-run-child-ts-58346a8b.json +10 -0
  607. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00750--md-ux-sim-mock-authoring-first-run-ts-f6fa0f7c.json +10 -0
  608. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00760--md-ux-sim-mock-device-requests-ts-eeefc29f.json +10 -0
  609. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00780--md-ux-sim-mock-scenario-catalog-ts-d5697910.json +11 -0
  610. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00790--md-ux-sim-mock-seat-pty-frame-child-ts-a918240e.json +10 -0
  611. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00800--md-ux-sim-mock-seat-pty-frame-ts-64ad26cd.json +10 -0
  612. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00810--md-ux-sim-mock-seat-pty-sequence-child-ts-942048e3.json +10 -0
  613. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00820--md-ux-sim-mock-seat-pty-sequence-ts-6ea89eee.json +10 -0
  614. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00830--md-ux-sim-next-tui-seat-scenarios-ts-f6041f67.json +10 -0
  615. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00840--md-ux-sim-onboarding-first-run-device-ts-04866faf.json +10 -0
  616. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00850--md-ux-sim-pty-key-modifiers-device-ts-c223afb6.json +10 -0
  617. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00860--md-ux-sim-release-event-trace-ts-2a3b45ba.json +10 -0
  618. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00870--md-ux-sim-release-publish-devices-ts-b6bcf64b.json +10 -0
  619. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00880--md-ux-sim-release-sim-rig-ts-05f20f16.json +10 -0
  620. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00890--md-ux-sim-render-frame-ts-275662e1.json +10 -0
  621. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00900--md-ux-sim-research-decision-chain-ts-9ba3915b.json +10 -0
  622. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00910--md-ux-sim-resume-picker-device-ts-9057ce38.json +10 -0
  623. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00920--md-ux-sim-rla-event-response-scorecard-ts-005ca7af.json +10 -0
  624. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-arg-macro-canvas-sim-ts.json +10 -0
  625. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-safe-public-copy-publish-ts-b46b6ba6.json +10 -0
  626. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00940--md-ux-sim-scenario-ts-409febfe.json +13 -0
  627. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00950--md-ux-sim-secret-canary-ts-b9d5f354.json +10 -0
  628. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00960--md-ux-sim-seminar-rehearsal-ts-c0dcc1cf.json +10 -0
  629. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00970--md-ux-sim-service-key-setup-ts-fc2578e7.json +10 -0
  630. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00980--md-ux-sim-session-id-seed-ts-12206acb.json +10 -0
  631. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00990--md-ux-sim-sim-coverage-ts-fd46c0fe.json +10 -0
  632. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01000--md-ux-sim-skills-tools-shell-device-ts-a63ab153.json +10 -0
  633. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01010--md-ux-sim-slash-menu-frames-ts-fc04d9ce.json +10 -0
  634. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-flutter-deploy-journey-ts.json +10 -0
  635. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-subagent-tools-device-ts-6ecdf005.json +10 -0
  636. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01030--md-ux-sim-task-agent-parent-host-device-ts-7a97b5f6.json +10 -0
  637. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01040--md-ux-sim-task-agent-rejudge-on-head-device-ts-33893bfb.json +10 -0
  638. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01050--md-ux-sim-task-orchestrator-surfaces-self-implem-18bdb425.json +10 -0
  639. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01060--md-ux-sim-temp-git-remote-ts-f64f9359.json +10 -0
  640. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01070--md-ux-sim-temp-git-repo-ts-cd68ece3.json +10 -0
  641. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01080--md-ux-sim-term-slash-device-ts-e7ee79b6.json +10 -0
  642. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01090--md-ux-sim-tool-async-fail-loop-ts-057c354d.json +10 -0
  643. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01100--md-ux-sim-tty-foreground-steal-child-ts-bfe16e86.json +10 -0
  644. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01110--md-ux-sim-turn-states-ts-c18238ab.json +10 -0
  645. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01120--md-ux-sim-turn-throw-sim-ts-36260397.json +10 -0
  646. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01130--md-ux-sim-warm-pool-reuse-sim-ts-47a18b34.json +10 -0
  647. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01140--md-ux-sim-warm-pool-reuse-switch-sim-ts-2b0a1583.json +11 -0
  648. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01150--md-ux-sim-warm-si-reuse-sim-ts-6e790b8d.json +10 -0
  649. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01160--md-ux-sim-world-chaos-runtime-ts-45e1a99c.json +10 -0
  650. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01170--md-ux-sim-world-host-chaos-ts-9d61588e.json +12 -0
  651. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01180--md-ux-sim-world-schema-ts-7b596511.json +10 -0
  652. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01190--md-ux-sim-world-snapshot-ts-7d31ed92.json +11 -0
  653. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01200--md-ux-sim-world-store-ts-64cd54bf.json +10 -0
  654. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01210--md-ux-sim-world-ts-ad60826b.json +11 -0
  655. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01220--md-ux-sim-world-watch-ts-d45007fd.json +10 -0
  656. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01230--md-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +11 -0
  657. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01240--md-ux-sim-app-contract-secret-entropy-ts-e4d19d66.json +10 -0
  658. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01250--md-ux-sim-app-kill-switch-world-ts-e89b604d.json +10 -0
  659. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01260--md-ux-sim-fake-app-db-world-ts-d394fe23.json +10 -0
  660. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01270--md-ux-sim-fake-app-drive-world-ts-f5bb931e.json +10 -0
  661. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01280--md-ux-sim-fake-app-source-concurrent-writer-ts-d342114a.json +10 -0
  662. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01290--md-ux-sim-fake-app-source-world-ts-4cdf1a61.json +10 -0
  663. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01300--md-ux-sim-fake-google-drive-world-ts-11b7f0da.json +10 -0
  664. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01310--md-ux-sim-fake-relay-world-ts-d4c096f5.json +10 -0
  665. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01320--md-ux-sim-fake-temp-cleanup-ts-299fbf77.json +10 -0
  666. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01330--md-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-c5185fb3.json +10 -0
  667. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01340--md-ux-sim-multi-tenant-relay-world-ts-e2fc28d2.json +10 -0
  668. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01350--md-ux-sim-pod-reuse-match-by-kind-sim-ts-782c5911.json +10 -0
  669. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01360--md-ux-sim-pod-reuse-shared-fake-boundary-ts-a16285a5.json +10 -0
  670. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01370--md-ux-sim-pr-land-drift-gate-device-ts-3df0178e.json +10 -0
  671. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01380--md-ux-sim-readiness-countdown-ts-48cf04b4.json +10 -0
  672. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01390--md-ux-sim-train-manager-decision-sim-ts-9b4695ad.json +10 -0
  673. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01410--md-ux-sim-edge-creator-ts-b25cb517.json +10 -0
  674. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-pod-phase-prewarm-ts-a137c8d1.json +10 -0
  675. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-smart-merge-world-ts.json +10 -0
  676. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01430--md-ux-sim-ta-land-count-dispatcher-sim-ts.json +10 -0
  677. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01440--md-ux-sim-fake-bin-args-sim-ts.json +10 -0
  678. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01450--md-ux-sim-pr-land-drift-autorepair-device-ts.json +10 -0
  679. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01460--md-ux-sim-in-process-cli-539-file-adoption-sim-ts.json +10 -0
  680. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01470--md-ux-sim-release-same-version-run-adoption-sim-ts-9e32e7d0.json +10 -0
  681. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01480--md-ux-sim-fake-adb-phone-world-ts-76033333.json +10 -0
  682. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01490--md-ux-sim-fake-app-db-backup-world-ts.json +10 -0
  683. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01500--md-ux-sim-gate-image-preflight-runtime-identity-flow-sim-ts.json +10 -0
  684. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01510--md-ux-sim-device-catalog-snapshot-fragments-ts.json +10 -0
  685. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-fake-android-client-ts-77f6d965.json +8 -0
  686. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-plugin-release-observe-route-world-ts.json +10 -0
  687. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01530--md-ux-sim-pwa-retained-routes-world-ts.json +10 -0
  688. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01540--md-ux-sim-gate-image-layered-delta-sim-ts.json +8 -0
  689. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01550--md-ux-sim-user-config-default-sparse-sim-ts.json +8 -0
  690. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01560--md-ux-sim-release-sim-rig-seat-guard-child-ts.json +8 -0
  691. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01570--md-ux-sim-gate-steady-state-proof-sim-ts.json +8 -0
  692. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01580--md-ux-sim-user-config-tui-diet-sim-ts.json +8 -0
  693. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01590--md-ux-sim-edge-creator-nightly-ts.json +8 -0
  694. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-absorb-ingest-ts.json +8 -0
  695. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-telegram-outbound.json +8 -0
  696. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-app-upgrade-path-world-ts.json +8 -0
  697. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-next-tui-core-input-ts.json +8 -0
  698. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01611--md-ux-sim-plugin-yaml-gen-world-ts.json +8 -0
  699. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01620--md-ux-sim-app-scratch-bootstrap-ts.json +10 -0
  700. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01621--md-ux-sim-fake-nexus-board-server-ts.json +8 -0
  701. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01622--md-ux-sim-graph-diff-apply-ts.json +8 -0
  702. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01623--md-ux-sim-mapreduce-multihost.json +8 -0
  703. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01630--md-ux-sim-ios-chat-edge-adapter-ts.json +8 -0
  704. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01640--md-ux-sim-nl-scenario-ts.json +8 -0
  705. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01650--md-ux-sim-network-sandbox-ts.json +8 -0
  706. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01660--md-ux-sim-next-tui-route-device-ts.json +8 -0
  707. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01670--md-ux-sim-pod-federation-sim-ts.json +8 -0
  708. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01680--md-ux-sim-fake-mobile-toolchain-ts.json +8 -0
  709. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-fake-feeds-ts.json +8 -0
  710. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-multi-actor-world-ts.json +8 -0
  711. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-sim-receipt-ts-fbac5ddd.json +8 -0
  712. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01691--md-ux-sim-fake-app-failures-ts.json +8 -0
  713. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01700--md-ux-sim-world-regression-suite-ts.json +8 -0
  714. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-cloud-billing-world-ts.json +8 -0
  715. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-member-oidc-world-ts.json +10 -0
  716. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-real-target-sandbox-ts.json +8 -0
  717. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-tool-router-world-ts.json +8 -0
  718. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-train-manager-world-ts.json +10 -0
  719. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-census-oracle-axis-world-ts-0dd03008.json +10 -0
  720. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-fake-agent-hook-host-ts.json +8 -0
  721. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-next-tui-plugin-wizard-world-ts.json +8 -0
  722. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01730--md-ux-sim-outbound-guard-sim-ts-a885ec98.json +8 -0
  723. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01730--md-ux-sim-public-auth-provider-cloud-vm-sim-ts-6e424ea6.json +8 -0
  724. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01740--md-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +8 -0
  725. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-hotspot-file-lease-world-ts.json +8 -0
  726. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-pwa-provenance-badge-world-ts-cf2acbfe.json +8 -0
  727. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01760--md-ux-sim-graph-trigger-hook-device-ts.json +8 -0
  728. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01760--md-ux-sim-rla-macrophage-heal-timeout-stale-output-sim-ts.json +8 -0
  729. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01762--md-ux-sim-graph-event-entry-world-ts.json +8 -0
  730. package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01763--md-ux-sim-graph-placement-lease-world-ts.json +8 -0
  731. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00010--ev-0042-8a37502e.json +5 -0
  732. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00020--ev-0107-09ba5618.json +5 -0
  733. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00030--hq-move-75a88e80.json +5 -0
  734. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00040--rla-er-01-68d954af.json +5 -0
  735. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00050--rla-er-02-1e5e64d1.json +5 -0
  736. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00060--rla-er-03-51a1b3d4.json +5 -0
  737. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00070--rla-er-04-8e22f866.json +5 -0
  738. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00080--rla-er-05-df87c68d.json +5 -0
  739. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00090--rla-er-06-ad13c028.json +5 -0
  740. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00100--rla-er-07-d2204757.json +5 -0
  741. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00110--rla-er-08-5ffce874.json +5 -0
  742. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00120--rla-er-09-f575779c.json +5 -0
  743. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00130--rla-er-10-ac9154fd.json +5 -0
  744. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00140--gate-pools-pinned-sweep-0c5e1f58.json +5 -0
  745. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00150--gate-mshq-unavailable-6f38fbd8.json +5 -0
  746. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00160--gate-both-unavailable-c4956825.json +5 -0
  747. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00170--gate-digest-mismatch-7b971872.json +5 -0
  748. package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00180--gate-no-pinned-image-33bda9d9.json +5 -0
  749. package/graphs/apps/lecture-scrap-extract.yaml +10 -0
  750. package/graphs/apps/recipes.yaml +1 -0
  751. package/graphs/catalog/catalog.yaml +2 -2
  752. package/graphs/demo/kaist-key-feature/kaist-key-feature.yaml +30 -0
  753. package/graphs/demo/kaist-key-feature/recipes.yaml +1 -0
  754. package/graphs/demo/recipes.yaml +13 -0
  755. package/graphs/demo/solar-scene4.yaml +24 -0
  756. package/graphs/heal/heal-loop.yaml +10 -1
  757. package/graphs/heal/recipes.yaml +2 -0
  758. package/graphs/overlays/stop-heal-ladder.yaml +21 -0
  759. package/graphs/release/derive.json +37 -0
  760. package/graphs/release/macrophage-subscriber.yaml +21 -0
  761. package/graphs/release/node-command-bindings.json +18 -0
  762. package/graphs/release/plugin.json +34 -0
  763. package/graphs/release/recipes.yaml +78 -1
  764. package/graphs/release/release-edge-vocabulary.yaml +11 -0
  765. package/graphs/release/release-gate-domain-pack.yaml +9 -0
  766. package/graphs/release/release-graph.schema.yaml +7 -0
  767. package/graphs/release/release-loop-fanout.yaml +107 -0
  768. package/graphs/release/release-loop.yaml +84 -40
  769. package/graphs/release/rla/loop.yaml +30 -0
  770. package/graphs/release/rla/plugin.json +19 -0
  771. package/graphs/release/rla/recipes.yaml +11 -0
  772. package/graphs/release/rla/supervisor.yaml +23 -0
  773. package/graphs/templates/release/plugin.json +132 -0
  774. package/graphs/templates/release/recipes.yaml +20 -0
  775. package/graphs/templates/release/release-step.ts +27 -0
  776. package/graphs/templates/release/release.yaml +24 -0
  777. package/graphs/units/pod-reuse-prep.yaml +17 -0
  778. package/graphs/units/recipes.yaml +3 -0
  779. package/graphs/units/verbs/decide.yaml +19 -0
  780. package/graphs/units/verbs/make.yaml +19 -0
  781. package/graphs/units/verbs/recipes.yaml +10 -0
  782. package/graphs/units/verbs/watch.yaml +18 -0
  783. package/package.json +6 -1
  784. package/packs/gcp-architect-expand/content/decision-table.md +25 -0
  785. package/packs/gcp-architect-expand/content/security-decision-table.md +17 -0
  786. package/packs/gcp-architect-expand/knowledge-pack.json +12 -0
  787. package/plugins/absorb/graph/absorb-brief.yaml +63 -0
  788. package/plugins/absorb/graph/absorb-build.yaml +42 -0
  789. package/plugins/absorb/graph/absorb-ingest.yaml +18 -0
  790. package/plugins/absorb/graph/absorb-suggest-list.yaml +16 -0
  791. package/plugins/absorb/graph/recipes.yaml +1 -0
  792. package/plugins/absorb/graph/units/recipes.yaml +1 -0
  793. package/plugins/absorb/handlers/board-approval.ts +99 -0
  794. package/plugins/absorb/packs/member-apps/pack.yaml +14 -0
  795. package/plugins/absorb/plugin.json +276 -0
  796. package/plugins/absorb/plugin.yaml +102 -0
  797. package/plugins/absorb/sims/absorb-demo-world.yaml +44 -0
  798. package/plugins/absorb/skills/absorb/brief/SKILL.md +10 -0
  799. package/plugins/absorb/skills/absorb/build/SKILL.md +8 -0
  800. package/plugins/absorb/skills/absorb/card/SKILL.md +10 -0
  801. package/plugins/absorb/skills/absorb/suggest/SKILL.md +10 -0
  802. package/plugins/doc-draft/README.md +1 -1
  803. package/plugins/doc-draft/graphs/run-step.ts +7 -11
  804. package/plugins/elanous-app-deploy/plugin.json +34 -0
  805. package/plugins/elanous-app-deploy/skills/app-deploy/SKILL.md +5 -0
  806. package/plugins/elanous-observe/plugin.json +41 -0
  807. package/plugins/elanous-release/plugin.json +41 -0
  808. package/plugins/gcp-architect-expand/README.md +9 -0
  809. package/plugins/gcp-architect-expand/entitlements.json +28 -0
  810. package/plugins/gcp-architect-expand/graph.yaml +22 -0
  811. package/plugins/gcp-architect-expand/plugin.json +15 -0
  812. package/plugins/gcp-architect-expand/recipes.yaml +13 -0
  813. package/plugins/geo-check/README.md +2 -2
  814. package/plugins/geo-check/graphs/run-step.ts +6 -12
  815. package/plugins/graph-instance-view/fixtures/graph.view.json +24 -0
  816. package/plugins/graph-instance-view/fixtures/harness.view.json +21 -0
  817. package/plugins/graph-instance-view/fixtures/release.view.json +23 -0
  818. package/plugins/graph-instance-view/fixtures/resource.view.json +25 -0
  819. package/plugins/graph-instance-view/schema/view-model.v1.schema.json +126 -0
  820. package/plugins/iul-shared/materialize-intent-tool.ts +2 -1
  821. package/plugins/iul-shared/materializer.ts +2 -1
  822. package/plugins/kr-flow-composites/README.md +45 -0
  823. package/plugins/kr-flow-composites/graphs/battery-signal.yaml +22 -0
  824. package/plugins/kr-flow-composites/graphs/etf-price.yaml +12 -0
  825. package/plugins/kr-flow-composites/graphs/recipes.yaml +9 -0
  826. package/plugins/kr-flow-composites/graphs/sector-flow.yaml +18 -0
  827. package/plugins/kr-flow-composites/plugin.json +16 -0
  828. package/plugins/marketplace-market-data/graphs/units/market-ohlcv.yaml +23 -0
  829. package/plugins/marketplace-market-data/graphs/units/market-quote.yaml +21 -0
  830. package/plugins/marketplace-market-data/graphs/units/recipes.yaml +1 -0
  831. package/plugins/marketplace-market-data/plugin.json +23 -0
  832. package/plugins/marketplace-market-data/sims/n8n/execute-workflow-default.json +15 -0
  833. package/plugins/marketplace-market-data/sims/n8n/execute-workflow-explicit-contract.json +18 -0
  834. package/scripts/check-graph-declaration.ts +20 -2
  835. package/scripts/ci-android-unit-tests.ts +46 -2
  836. package/scripts/ci-pwa-build-gate.ts +22 -2
  837. package/scripts/ci-typecheck-changed.ts +22 -8
  838. package/scripts/cli-spawn-sites.ts +114 -0
  839. package/scripts/corpus-process-group.ts +55 -0
  840. package/scripts/corpus-worker-lifecycle.ts +2 -7
  841. package/scripts/cron-run.ts +1 -1
  842. package/scripts/device-real-drive.mjs +216 -0
  843. package/scripts/device-real-drive.test.mjs +168 -0
  844. package/scripts/docs/generate-cli-anatomy.ts +3 -4
  845. package/scripts/fixtures/nl-routing/corpus.jsonl +17 -0
  846. package/scripts/fleet/host-readiness-sim.sh +198 -0
  847. package/scripts/fleet/host-readiness.sh +218 -0
  848. package/scripts/fleet/node-setup.sh +9 -4
  849. package/scripts/fleet/wsl-node-setup.sh +1 -1
  850. package/scripts/gate-contract-shadow-collector.py +417 -0
  851. package/scripts/gate-contract-shadow-collector.test.py +176 -0
  852. package/scripts/generate-conductor-cell-map.ts +73 -0
  853. package/scripts/generate-mock-scenario-catalog.ts +26 -0
  854. package/scripts/generate-sim-world-device-catalogs.ts +38 -17
  855. package/scripts/generate-ux-sim-device-manual.ts +1 -1
  856. package/scripts/graph-dryrun-baseline.ts +166 -0
  857. package/scripts/heal/run-role.ts +8 -3
  858. package/scripts/hq-repo-maintenance-cycle.ts +24 -0
  859. package/scripts/import-graph-scc.ts +54 -8
  860. package/scripts/install.ps1 +234 -50
  861. package/scripts/install.sh +144 -10
  862. package/scripts/isolation-hardcode-baseline.txt +1 -1
  863. package/scripts/kr-flow-composites.ts +86 -0
  864. package/scripts/land-enqueue.test.sh +18 -4
  865. package/scripts/land-preflight.ts +103 -0
  866. package/scripts/lib/deterministic-env.ts +2 -5
  867. package/scripts/lib/install-test-package.ts +31 -0
  868. package/scripts/lib/install-test-tier.ts +13 -0
  869. package/scripts/lib/next-tui-budget.ts +189 -0
  870. package/scripts/lib/nl-routing-screening.ts +13 -0
  871. package/scripts/lib/tui-runtime-static-closure.ts +59 -0
  872. package/scripts/load/app-serve-burst.ts +203 -0
  873. package/scripts/load/app-serve-live.ts +68 -0
  874. package/scripts/load/members-signup-burst.ts +141 -0
  875. package/scripts/marketing/generate-feature-map.ts +14 -6
  876. package/scripts/measure-goal-grounding-corpus.ts +3 -4
  877. package/scripts/measure-nl-routing-corpus.ts +108 -12
  878. package/scripts/measure-tool-display-lines.ts +1 -1
  879. package/scripts/migrate-omni-market-secrets.ts +98 -0
  880. package/scripts/mission-request-judge.ts +6 -0
  881. package/scripts/morning-report.ts +2 -2
  882. package/scripts/next-tui-budget.ts +113 -0
  883. package/scripts/plugin-only-ratchet-baseline.json +267 -0
  884. package/scripts/plugin-only-ratchet.ts +213 -0
  885. package/scripts/plugins/generate-plugin-json.ts +95 -0
  886. package/scripts/public-leak-baseline.txt +0 -1
  887. package/scripts/qwen-pipeline-bench.ts +3 -7
  888. package/scripts/ratchets/test-interference-patterns.allowlist.txt +2 -22
  889. package/scripts/release-build.ts +5 -1
  890. package/scripts/release-loop/adaptive-gate-heal-adapter.ts +132 -0
  891. package/scripts/release-loop/adaptive-gate-heal.ts +191 -0
  892. package/scripts/release-loop/auto-approve-node.ts +35 -5
  893. package/scripts/release-loop/checklist-gate-node.ts +9 -1
  894. package/scripts/release-loop/contract-test-select.ts +127 -0
  895. package/scripts/release-loop/cut-branch.ts +248 -3
  896. package/scripts/release-loop/docs-node.ts +10 -10
  897. package/scripts/release-loop/emergency-publish-authorization.ts +29 -0
  898. package/scripts/release-loop/emergency-publish-gate-node.ts +129 -0
  899. package/scripts/release-loop/emergency-publish-switch-sim.ts +65 -0
  900. package/scripts/release-loop/emergency-publish-switch.ts +46 -0
  901. package/scripts/release-loop/export-check-node.ts +121 -11
  902. package/scripts/release-loop/export-check-remote.ts +146 -0
  903. package/scripts/release-loop/fixtures/gate-0307-key-diff.json +3293 -0
  904. package/scripts/release-loop/formal-receipt-radius.ts +32 -0
  905. package/scripts/release-loop/gate-api-leaf.ts +19 -0
  906. package/scripts/release-loop/gate-append-recheck-plan-node.ts +27 -0
  907. package/scripts/release-loop/gate-autoheal-sim-evidence.ts +2 -1
  908. package/scripts/release-loop/gate-baseline-isolated.ts +80 -0
  909. package/scripts/release-loop/gate-baseline-manifest.ts +12 -0
  910. package/scripts/release-loop/gate-baseline-receipt.ts +52 -14
  911. package/scripts/release-loop/gate-baseline.ts +14 -0
  912. package/scripts/release-loop/gate-bisect-owner-mail.ts +106 -0
  913. package/scripts/release-loop/gate-bisect-sidecar.ts +159 -0
  914. package/scripts/release-loop/gate-bisect.ts +146 -0
  915. package/scripts/release-loop/gate-closure.ts +771 -28
  916. package/scripts/release-loop/gate-constants.ts +2 -0
  917. package/scripts/release-loop/gate-contract-surfaces.json +150 -0
  918. package/scripts/release-loop/gate-cut-snapshot.ts +67 -0
  919. package/scripts/release-loop/gate-cutover-switch-node.ts +32 -0
  920. package/scripts/release-loop/gate-file-receipt-audit-node.ts +142 -0
  921. package/scripts/release-loop/gate-file-receipts.ts +195 -0
  922. package/scripts/release-loop/gate-git.ts +68 -0
  923. package/scripts/release-loop/gate-image-pin-handshake.ts +57 -0
  924. package/scripts/release-loop/gate-image-pin.ts +242 -3
  925. package/scripts/release-loop/gate-image-repair-node.ts +104 -0
  926. package/scripts/release-loop/gate-image-runtime-identity.ts +41 -0
  927. package/scripts/release-loop/gate-key-diff.ts +138 -0
  928. package/scripts/release-loop/gate-lazy-require-measure.ts +55 -0
  929. package/scripts/release-loop/gate-nightly-audits.ts +11 -0
  930. package/scripts/release-loop/gate-node-cli.ts +17 -0
  931. package/scripts/release-loop/gate-node-sim.ts +68 -16
  932. package/scripts/release-loop/gate-node.ts +5 -5157
  933. package/scripts/release-loop/gate-partial.ts +83 -2
  934. package/scripts/release-loop/gate-radius-live.ts +181 -22
  935. package/scripts/release-loop/gate-radius-shadow.ts +19 -4
  936. package/scripts/release-loop/gate-receipt-hash.ts +147 -0
  937. package/scripts/release-loop/gate-recheck-plan-node.ts +9 -4
  938. package/scripts/release-loop/gate-repair-node.ts +549 -0
  939. package/scripts/release-loop/gate-reuse-identity.ts +48 -0
  940. package/scripts/release-loop/gate-runtime.ts +5958 -0
  941. package/scripts/release-loop/gate-same-run-recheck-node.ts +102 -0
  942. package/scripts/release-loop/gate-shard-artifacts.ts +134 -0
  943. package/scripts/release-loop/gate-shard-dispatch.ts +158 -20
  944. package/scripts/release-loop/gate-shard-load-flaky.ts +84 -0
  945. package/scripts/release-loop/gate-shard-receipt-carry.ts +106 -0
  946. package/scripts/release-loop/gate-shard-receipts.ts +547 -30
  947. package/scripts/release-loop/gate-shard-shell.ts +227 -0
  948. package/scripts/release-loop/gate-skip-by-evidence-node.ts +80 -0
  949. package/scripts/release-loop/gate-stalled-evidence.ts +106 -0
  950. package/scripts/release-loop/gate-test-summary.ts +11 -0
  951. package/scripts/release-loop/gate-train-cas-adapter.ts +56 -0
  952. package/scripts/release-loop/gate-train-file-cas.ts +123 -0
  953. package/scripts/release-loop/gate-train-receipts.ts +24 -18
  954. package/scripts/release-loop/gate-triage-node.ts +427 -51
  955. package/scripts/release-loop/gate-triage-types.ts +51 -0
  956. package/scripts/release-loop/gate-types.ts +320 -0
  957. package/scripts/release-loop/gate-warm-artifacts.ts +48 -2
  958. package/scripts/release-loop/hand-response-node.ts +258 -0
  959. package/scripts/release-loop/import-graph-scc-run.ts +46 -1
  960. package/scripts/release-loop/import-graph-scc.ts +2 -1
  961. package/scripts/release-loop/known-issues-node.ts +2 -1
  962. package/scripts/release-loop/mac-smoke-node.ts +1 -1
  963. package/scripts/release-loop/node-verdict.ts +29 -3
  964. package/scripts/release-loop/preflight.ts +148 -51
  965. package/scripts/release-loop/publish-node.ts +43 -7
  966. package/scripts/release-loop/pwa-build-typecheck.ts +183 -0
  967. package/scripts/release-loop/pwa-formal-update-node.ts +19 -0
  968. package/scripts/release-loop/pwa-formal-update.ts +196 -0
  969. package/scripts/release-loop/pwa-remote.ts +29 -0
  970. package/scripts/release-loop/pwa-scenarios-node.ts +38 -4
  971. package/scripts/release-loop/regression-suite-node.ts +44 -0
  972. package/scripts/release-loop/release-readiness.ts +185 -5
  973. package/scripts/release-loop/remote-worktree-setup.sh +53 -0
  974. package/scripts/release-loop/render-warm-control-manifest.ts +33 -4
  975. package/scripts/release-loop/repair-pr-landed.ts +174 -0
  976. package/scripts/release-loop/resume-cap.ts +1 -1
  977. package/scripts/release-loop/resume-release.ts +302 -176
  978. package/scripts/release-loop/resume-types.ts +29 -0
  979. package/scripts/release-loop/resume.ts +38 -36
  980. package/scripts/release-loop/rla-event-response-scorecard-report.ts +277 -0
  981. package/scripts/release-loop/rolling-main-gate.ts +363 -0
  982. package/scripts/release-loop/sweep-cert.ts +300 -0
  983. package/scripts/release-loop/traffic-event-hook-sim.ts +26 -0
  984. package/scripts/release-loop/traffic-event-hook.ts +383 -0
  985. package/scripts/release-loop/train-verdict.ts +162 -0
  986. package/scripts/release-loop/unattended-release.ts +196 -7
  987. package/scripts/release-loop/version-node.ts +205 -25
  988. package/scripts/replay-phone-pwa-selfheal-trace.ts +16 -0
  989. package/scripts/resource-ledger-url.ts +60 -0
  990. package/scripts/seat-worktree-add.sh +32 -0
  991. package/scripts/signal-digest-photo.ts +1 -1
  992. package/scripts/sim-impact-check.ts +119 -0
  993. package/scripts/sim-impact.ts +413 -0
  994. package/scripts/sim-real-target-worker.ts +19 -0
  995. package/scripts/smoke-higgsfield-app-cli-session.ts +90 -0
  996. package/scripts/test-census/similar-search.ts +382 -0
  997. package/scripts/test-census-similar-search.ts +141 -0
  998. package/scripts/test-census.ts +570 -0
  999. package/scripts/test-deterministic.ts +64 -9
  1000. package/scripts/test-diet/node.ts +1 -1
  1001. package/scripts/tsc-diet-measure.ts +225 -0
  1002. package/scripts/update-cli-spawn-allowlist.ts +46 -0
  1003. package/scripts/update-tui-size-ratchet.ts +10 -0
  1004. package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier-lanes.py +170 -0
  1005. package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier.py +179 -0
  1006. package/scripts/ux-sim/fixtures/op-snapshot-1109/train-batch-live.py +2881 -0
  1007. package/scripts/ux-sim/fixtures/op-snapshot-1109/train-manager.py +1845 -0
  1008. package/scripts/ux-sim/fixtures/train-gate-tier-1109/README.md +9 -0
  1009. package/scripts/ux-sim/fixtures/train-gate-tier-1109/gate-tier.py +179 -0
  1010. package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-batch-live.py +2881 -0
  1011. package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-memory.py +102 -0
  1012. package/scripts/ux-sim/sim-fake-bin-args-evidence.ts +179 -0
  1013. package/scripts/ux-sim/test-train-edge-operational-replay.py +411 -0
  1014. package/scripts/ux-sim/test-train-retry-file-map.py +71 -0
  1015. package/scripts/ux-sim.ts +54 -3
  1016. package/scripts/validate-graph-instance-view.ts +47 -0
  1017. package/scripts/warm-pool-provider-config.ts +201 -23
  1018. package/skills/omni-crawl/SKILL.md +31 -54
  1019. package/skills/omni-crawl/scripts/main.ts +86 -276
  1020. package/skills/omni-crawl/src/free.ts +1 -6
  1021. package/skills/omni-crawl/src/registry.ts +124 -36
  1022. package/skills/omni-crawl/src/router.ts +42 -85
  1023. package/skills/omni-crawl/src/test-fetch-preload.ts +7 -0
  1024. package/skills/omni-crawl/src/types.ts +5 -2
  1025. package/src/acp/acp-surface-channels.ts +3 -2
  1026. package/src/acp/client.ts +14 -14
  1027. package/src/acp/codex-app-server-client.ts +157 -20
  1028. package/src/acp/codex-elicitation-ask.ts +1 -4
  1029. package/src/acp/core-turn-bridge.ts +3 -2
  1030. package/src/acp/event-router.ts +5 -1
  1031. package/src/acp/fs-roots.ts +1 -1
  1032. package/src/acp/multi-llm-bridge.ts +2 -1
  1033. package/src/acp/server.ts +52 -4
  1034. package/src/acp/turn-runner.ts +1 -1
  1035. package/src/ad-pipeline/fixtures/marketing-studio-video.schema.json +154 -0
  1036. package/src/ad-pipeline/fixtures/seedance-2-0.schema.json +143 -0
  1037. package/src/ad-pipeline/higgsfield-backend.ts +2 -1
  1038. package/src/ad-pipeline/model-contracts.ts +1 -4
  1039. package/src/ad-pipeline/product-video-command.ts +27 -0
  1040. package/src/ad-pipeline/production-contract.ts +6 -0
  1041. package/src/ad-pipeline/production.ts +1 -1
  1042. package/src/ad-pipeline/qc.ts +1 -4
  1043. package/src/ad-pipeline/run.ts +4 -6
  1044. package/src/ad-pipeline/shoot-plan.ts +1 -1
  1045. package/src/agent/agent-list-tool.ts +2 -1
  1046. package/src/agent/agent-output-tool.ts +2 -1
  1047. package/src/agent/agent-stop-tool.ts +2 -1
  1048. package/src/agent/app-deploy-plugin.ts +237 -0
  1049. package/src/agent/autonomous-tools.ts +2 -1
  1050. package/src/agent/coding-core-tools.ts +2 -1
  1051. package/src/agent/loader.ts +2 -1
  1052. package/src/agent/monad-agent-turn.ts +1 -1
  1053. package/src/agent/nest-depth.ts +2 -2
  1054. package/src/agent/runner.ts +10 -8
  1055. package/src/agent/shared-app-tools.ts +8 -4
  1056. package/src/agent/subagent-callable.ts +2 -1
  1057. package/src/agent/terminal-surface.ts +2 -1
  1058. package/src/agent/types.ts +2 -1
  1059. package/src/agent-mission/driver.ts +7 -4
  1060. package/src/agent-substrate/acp-implementer.ts +1 -1
  1061. package/src/agent-substrate/pr-reviewer.ts +3 -0
  1062. package/src/agent-substrate/self-review-cli.ts +79 -11
  1063. package/src/agent-team/team-tools.ts +2 -1
  1064. package/src/approval-modal.ts +14 -4
  1065. package/src/ask-user-question/inline-resolver.ts +2 -1
  1066. package/src/ask-user-question/tool.ts +2 -1
  1067. package/src/auth/setup-link-tokens.fixture.ts +10 -1
  1068. package/src/auth/setup-link-tokens.ts +176 -0
  1069. package/src/auto-research/auto-mode/tool-enter.ts +2 -1
  1070. package/src/auto-research/auto-mode/tool-exit.ts +2 -1
  1071. package/src/auto-research/question-ladder-contract.ts +2 -9
  1072. package/src/auto-research/tools/budget.ts +2 -1
  1073. package/src/auto-research/tools/question-queue.ts +2 -1
  1074. package/src/auto-research/tools/research-plan.ts +2 -1
  1075. package/src/auto-research/tools/termination-check.ts +2 -1
  1076. package/src/autopilot/build/llm-conflict-merge.ts +1 -1
  1077. package/src/autopilot/build/nocturnal-deps.ts +1 -1
  1078. package/src/autopilot/elanous-builtin-runner.ts +3 -2
  1079. package/src/autopilot/gh-rest-fallback.ts +8 -4
  1080. package/src/autopilot/lineage/timeline.ts +1 -1
  1081. package/src/autopilot/llm-control-brain.ts +1 -1
  1082. package/src/autopilot/mission-arc-preflight.ts +7 -2
  1083. package/src/autopilot/mission-briefing-live.ts +1 -1
  1084. package/src/autopilot/mission-budget.ts +1 -1
  1085. package/src/autopilot/mission-codebase-gate.ts +9 -17
  1086. package/src/autopilot/mission-decide-tool.ts +2 -1
  1087. package/src/autopilot/mission-engine.ts +1 -1
  1088. package/src/autopilot/mission-grounding-ladder.ts +17 -329
  1089. package/src/autopilot/mission-history.ts +1 -1
  1090. package/src/autopilot/mission-incident-context.ts +2 -1
  1091. package/src/autopilot/mission-loop-policy.ts +1 -1
  1092. package/src/autopilot/mission-notify.ts +1 -1
  1093. package/src/autopilot/mission-origin.ts +1 -1
  1094. package/src/autopilot/mission-phase-budget.ts +1 -1
  1095. package/src/autopilot/mission-registry.ts +3 -7
  1096. package/src/autopilot/mission-route-decision.ts +1 -1
  1097. package/src/autopilot/mission-se-bridge.ts +2 -1
  1098. package/src/autopilot/mission-tool.ts +2 -1
  1099. package/src/autopilot/mission-trace.ts +1 -1
  1100. package/src/autopilot/pr-manager.ts +134 -10
  1101. package/src/autopilot/reuse-existence-explorer.ts +1 -1
  1102. package/src/autopilot/state-paths.ts +2 -2
  1103. package/src/autopilot/tool-registry.ts +2 -1
  1104. package/src/autopilot/track-agent.ts +1 -1
  1105. package/src/autopilot/track-courier.ts +2 -1
  1106. package/src/background-reasoning/patcher-llm-resolver.ts +1 -1
  1107. package/src/boot/daemon-prompt-turn.ts +8 -2
  1108. package/src/boot/daemon-tools/delegate-agent.ts +3 -2
  1109. package/src/boot/daemon-tools/edit.ts +2 -1
  1110. package/src/boot/daemon-tools/grep.ts +2 -1
  1111. package/src/boot/daemon-tools/index.ts +4 -1
  1112. package/src/boot/daemon-tools/plan.ts +2 -1
  1113. package/src/boot/daemon-tools/pty-shell.ts +2 -1
  1114. package/src/boot/daemon-tools/read.ts +2 -1
  1115. package/src/boot/daemon-tools/self-implement.ts +2 -1
  1116. package/src/boot/daemon-tools/types.ts +6 -1
  1117. package/src/boot/daemon-tools/web-search.ts +2 -1
  1118. package/src/boot/daemon-tools/web-terminal.ts +2 -1
  1119. package/src/boot/daemon-tools/write.ts +2 -1
  1120. package/src/briefing/brief-items.ts +3 -6
  1121. package/src/briefing/claim-key.ts +4 -0
  1122. package/src/budget/llm-cost.ts +6 -11
  1123. package/src/capture/capture-tools.ts +2 -1
  1124. package/src/capture/compare-panes.ts +2 -1
  1125. package/src/capture/watch-pane.ts +2 -1
  1126. package/src/cft/tools/andon-list.ts +2 -1
  1127. package/src/cft/tools/emit-process-health.ts +2 -1
  1128. package/src/cft/tools/escalate-ladder.ts +2 -1
  1129. package/src/cft/tools/escalate-signal.ts +2 -1
  1130. package/src/cft/tools/ishikawa-analyze.ts +2 -1
  1131. package/src/cft/tools/pareto-analyze.ts +2 -1
  1132. package/src/cft/tools/quick-kill-triage.ts +2 -1
  1133. package/src/cft/tools/resolve-escalation.ts +2 -1
  1134. package/src/cft/tools/root-cause-analyze.ts +2 -1
  1135. package/src/cft/tools/run-dmaic.ts +2 -1
  1136. package/src/cft/tools/run-fmea.ts +2 -1
  1137. package/src/cft/tools/run-pdca.ts +2 -1
  1138. package/src/cft/tools/write-a3.ts +2 -1
  1139. package/src/channel-bot-token.ts +1 -1
  1140. package/src/chat/chat-cli.ts +4 -1
  1141. package/src/chat/hud-render.ts +1 -1
  1142. package/src/chat/hud-segments-wire.ts +1 -1
  1143. package/src/chat/index.ts +81 -58
  1144. package/src/chat/pickers/state.ts +31 -4
  1145. package/src/chat/solar-scene5-context.ts +65 -0
  1146. package/src/chat/tool-render/dispatch.ts +12 -15
  1147. package/src/chat/tool-render/types.ts +1 -1
  1148. package/src/cli/agent-cli.ts +127 -12
  1149. package/src/cli/app-cli.ts +108 -2
  1150. package/src/cli/brief-cli.ts +1 -1
  1151. package/src/cli/child-plugin-runtime.ts +62 -0
  1152. package/src/cli/control-cli.ts +153 -13
  1153. package/src/cli/cred-cli.ts +144 -0
  1154. package/src/cli/decisions-cli.ts +1 -1
  1155. package/src/cli/doctor-cli.ts +5 -2
  1156. package/src/cli/doctor-readiness.ts +2 -2
  1157. package/src/cli/guardian-cli.ts +1 -1
  1158. package/src/cli/hooks-cli.ts +1 -1
  1159. package/src/cli/hotspot-start-forecast.ts +57 -0
  1160. package/src/cli/intake-source-cli.ts +1 -1
  1161. package/src/cli/light-entry-route.ts +4 -1
  1162. package/src/cli/llm-cli.ts +44 -0
  1163. package/src/cli/llm-detect-cli.ts +31 -6
  1164. package/src/cli/llm-mode-flag.ts +37 -0
  1165. package/src/cli/logs-cli.ts +5 -2
  1166. package/src/cli/logs-timeline.ts +1 -1
  1167. package/src/cli/machine-apply-from-capture.ts +133 -0
  1168. package/src/cli/machine-capture.ts +356 -0
  1169. package/src/cli/machine-cli.ts +14 -1
  1170. package/src/cli/machine-membership.ts +350 -0
  1171. package/src/cli/machine-setup-apply.ts +176 -0
  1172. package/src/cli/machine-setup-plan.ts +392 -0
  1173. package/src/cli/machine-wsl-diagnosis.ts +342 -0
  1174. package/src/cli/machine-wsl-setup.ts +710 -0
  1175. package/src/cli/mcp-diagnose.ts +2 -2
  1176. package/src/cli/mcp-login.ts +41 -14
  1177. package/src/cli/member-key-token-cli.ts +75 -0
  1178. package/src/cli/mission-config.ts +1 -1
  1179. package/src/cli/msg-cli.ts +94 -14
  1180. package/src/cli/msg-list-cli.ts +2 -2
  1181. package/src/cli/nexus-show.ts +9 -210
  1182. package/src/cli/open-guard.ts +95 -0
  1183. package/src/cli/ops-cli.ts +2 -34
  1184. package/src/cli/ops-status-remote.ts +2 -41
  1185. package/src/cli/pod-cli.ts +1 -1
  1186. package/src/cli/pr-cli.ts +373 -44
  1187. package/src/cli/pr-land-conductor-map.ts +99 -0
  1188. package/src/cli/pr-land-contract-shadow.ts +39 -0
  1189. package/src/cli/pr-land-drift-radar.ts +348 -0
  1190. package/src/cli/pr-land-drift-repair.ts +7 -5
  1191. package/src/cli/pr-land-heavy-remote.ts +32 -13
  1192. package/src/cli/pr-land-overlap-evidence.ts +135 -2
  1193. package/src/cli/pr-land-pod-shadow-job.ts +1 -1
  1194. package/src/cli/pr-land-refusal.ts +9 -0
  1195. package/src/cli/pr-land-remote-git.ts +125 -0
  1196. package/src/cli/provider-cli.ts +4 -10
  1197. package/src/cli/pty-drive-cli.ts +1 -1
  1198. package/src/cli/pwa-show-contract.ts +49 -0
  1199. package/src/cli/pwa-show.ts +4 -24
  1200. package/src/cli/pwa-test.ts +3 -3
  1201. package/src/cli/q-cli.ts +124 -0
  1202. package/src/cli/release-checklist-read-cli.ts +40 -3
  1203. package/src/cli/release-checklist-remote.ts +114 -0
  1204. package/src/cli/release-checklist-write.ts +1 -1
  1205. package/src/cli/release-cli.ts +181 -45
  1206. package/src/cli/release-run-status-cli.ts +135 -0
  1207. package/src/cli/remote-eln-pty.ts +1 -1
  1208. package/src/cli/resource-ledger-cli.ts +61 -1
  1209. package/src/cli/review-carry.ts +82 -0
  1210. package/src/cli/role-cli.ts +1 -1
  1211. package/src/cli/secret-cli.test-helpers.ts +7 -0
  1212. package/src/cli/secret-cli.ts +251 -101
  1213. package/src/cli/self-update.ts +22 -6
  1214. package/src/cli/setup-cli.ts +3 -1
  1215. package/src/cli/setup-keys.ts +91 -4
  1216. package/src/cli/shell-confirmation-policy.ts +45 -0
  1217. package/src/cli/sim-cli.ts +190 -8
  1218. package/src/cli/sim-suggest-cli.ts +34 -0
  1219. package/src/cli/tailscale-serve.ts +2 -2
  1220. package/src/cli/task-launch-supervisor.ts +79 -0
  1221. package/src/cli/tasks-cli.ts +185 -44
  1222. package/src/cli/usage-cli.ts +1 -1
  1223. package/src/cli/voice-nl-switch.ts +2 -1
  1224. package/src/cli/voice-status.ts +2 -1
  1225. package/src/clipboard/image-attachment.ts +21 -0
  1226. package/src/clipboard/paste.ts +28 -0
  1227. package/src/code-edit/apply.ts +1 -1
  1228. package/src/code-edit/plan-tool.ts +2 -1
  1229. package/src/code-edit/tools.ts +2 -1
  1230. package/src/codex/setup.ts +2 -4
  1231. package/src/compact/auto.ts +1 -1
  1232. package/src/conductor/tools/classify-goal.ts +2 -1
  1233. package/src/context-bus/context-now-surfaces.ts +9 -4
  1234. package/src/context-bus/context-now.ts +315 -29
  1235. package/src/context-bus/external-events.ts +22 -9
  1236. package/src/control-plane/member-tokens.ts +38 -11
  1237. package/src/control-plane/remote-primary-candidates.ts +58 -0
  1238. package/src/control-plane/server.ts +12 -0
  1239. package/src/conv-substrate/message-block.ts +11 -0
  1240. package/src/core-turn/child-liveness-heartbeat.ts +4 -2
  1241. package/src/core-turn/run-core-turn.ts +8 -6
  1242. package/src/core-turn/run-goal-loop.ts +2 -1
  1243. package/src/core-turn/types.ts +2 -1
  1244. package/src/crawl-capabilities/contracts.ts +130 -0
  1245. package/src/crawl-capabilities/graph-extract.ts +41 -0
  1246. package/src/crawl-capabilities/graph-registry.ts +66 -0
  1247. package/src/crawl-capabilities/reddit.ts +44 -0
  1248. package/src/crawl-capabilities/scrap-extract.ts +11 -0
  1249. package/src/dashboard/acp-active-model.ts +1 -1
  1250. package/src/dashboard/acp-boot.ts +2 -1
  1251. package/src/dashboard/auto-compact-runtime.ts +1 -1
  1252. package/src/dashboard/browser-chord-runtime.ts +3 -13
  1253. package/src/dashboard/chat/acp-chat.ts +1 -1
  1254. package/src/dashboard/classic-sidetab-mission.ts +2 -1
  1255. package/src/dashboard/classic-tui-dispatch.ts +22 -0
  1256. package/src/dashboard/compact-surface-assembly.ts +0 -2
  1257. package/src/dashboard/compact-surface-dispatch.ts +0 -5
  1258. package/src/dashboard/compact-surface-inventory.ts +0 -1
  1259. package/src/dashboard/compact-surface-runtime.ts +0 -2
  1260. package/src/dashboard/first-screen-band.ts +2 -50
  1261. package/src/dashboard/index.ts +258 -2168
  1262. package/src/dashboard/input/chat-main-acp-dispatch.ts +0 -120
  1263. package/src/dashboard/input/chat-main-interaction-opts.ts +0 -32
  1264. package/src/dashboard/input/chat-main-plain-turn-runtime.ts +0 -14
  1265. package/src/dashboard/input/chat-main-visibility.ts +0 -2
  1266. package/src/dashboard/input/dashboard-default-tool-builders.ts +2 -1
  1267. package/src/dashboard/input/dashboard-plain-turn-stream.ts +7 -97
  1268. package/src/dashboard/input/dashboard-priority-key-route.ts +0 -56
  1269. package/src/dashboard/input/dashboard-view-shortcuts.ts +2 -7
  1270. package/src/dashboard/input/mouse-conversation-popup-runtime.ts +1 -1
  1271. package/src/dashboard/input/mouse-modal-hit-runtime.ts +1 -1
  1272. package/src/dashboard/input/mouse-modal-surface-runtime.ts +1 -1
  1273. package/src/dashboard/input/mouse-mode-switch-runtime.ts +1 -1
  1274. package/src/dashboard/input/mouse-pane-hit-runtime.ts +1 -1
  1275. package/src/dashboard/input/mouse-picker-runtime.ts +2 -2
  1276. package/src/dashboard/input/mouse-status-line.ts +134 -0
  1277. package/src/dashboard/input/mouse-wiring-loader.ts +13 -0
  1278. package/src/dashboard/input/mouse-wiring-types.ts +346 -0
  1279. package/src/dashboard/input/mouse-wiring.ts +33 -897
  1280. package/src/dashboard/input/slash-executor.ts +1 -24
  1281. package/src/dashboard/modals/pane.ts +0 -1
  1282. package/src/dashboard/optional-tool-spec-runtime.ts +5 -36
  1283. package/src/dashboard/panes/nav.ts +1 -1
  1284. package/src/dashboard/plan-board-runtime.ts +1 -4
  1285. package/src/dashboard/plan-mode-toggle-action.ts +2 -4
  1286. package/src/dashboard/plugin-route-adapter.ts +350 -0
  1287. package/src/dashboard/preview-widget-runtime.ts +0 -12
  1288. package/src/dashboard/runtime/approvers.ts +14 -0
  1289. package/src/dashboard/runtime/tui-deploy-confirm-channel.ts +59 -0
  1290. package/src/dashboard/scenario-tools-boot.ts +32 -0
  1291. package/src/dashboard/setup-inline.ts +2 -7
  1292. package/src/dashboard/shell-slash-runtime.ts +0 -1
  1293. package/src/dashboard/slash-runtime/dashboard-handlers.ts +32 -194
  1294. package/src/dashboard/slash-runtime/decide-slash.ts +1 -60
  1295. package/src/dashboard/slash-runtime/model-choices.ts +1 -1
  1296. package/src/dashboard/slash-runtime/shell-slash.ts +0 -6
  1297. package/src/dashboard/tool-catalog-observability.ts +2 -1
  1298. package/src/dashboard/turn-lifecycle-runtime.ts +2 -1
  1299. package/src/dashboard/widget-modal-popup.ts +2 -2
  1300. package/src/debug/log.ts +17 -100
  1301. package/src/debug/secret-redaction.ts +98 -0
  1302. package/src/debug/tui-log-tag.ts +2 -7
  1303. package/src/decisions/decide-slash.ts +60 -0
  1304. package/src/decisions/decision-ledger.ts +84 -10
  1305. package/src/decisions/decision-linear-projection.ts +2 -1
  1306. package/src/decisions/discord-decision-cards.ts +1 -1
  1307. package/src/decisions/telegram-decision-cards.ts +1 -1
  1308. package/src/design/open-design-client.ts +2 -1
  1309. package/src/design/screen-contrast.ts +1 -1
  1310. package/src/discord-agent.ts +1 -1
  1311. package/src/discord-self-message.ts +4 -4
  1312. package/src/discord-slash-wire.ts +1 -1
  1313. package/src/discord-test-runner.ts +2 -1
  1314. package/src/discord-voice-wire.ts +1 -1
  1315. package/src/discord.ts +1 -1
  1316. package/src/dispatch/authored-goal-queue.ts +1 -4
  1317. package/src/dispatch/continuation-turn-runner.ts +3 -2
  1318. package/src/dispatch/dig-goal-armer.ts +1 -1
  1319. package/src/dispatch/replay-goal-armer.ts +1 -1
  1320. package/src/display/hit-target.ts +1 -1
  1321. package/src/display/modal-types-registry.ts +2 -7
  1322. package/src/domains/coo-admin-tool.ts +3 -2
  1323. package/src/domains/core-tools.ts +59 -2
  1324. package/src/domains/cron-match.ts +2 -1
  1325. package/src/domains/dart.ts +3 -2
  1326. package/src/domains/dashboard-data.ts +1 -1
  1327. package/src/domains/dig-engine.ts +3 -2
  1328. package/src/domains/elanous-data-dir.ts +7 -3
  1329. package/src/domains/fact-check.ts +2 -1
  1330. package/src/domains/finance-tools.ts +4 -3
  1331. package/src/domains/finance.ts +1 -1
  1332. package/src/domains/guardian-tick.ts +2 -1
  1333. package/src/domains/kg-consolidate.ts +1 -1
  1334. package/src/domains/kg-extract.ts +3 -2
  1335. package/src/domains/knowledge.ts +10 -0
  1336. package/src/domains/logs-tool.ts +2 -1
  1337. package/src/domains/macro-store.ts +1 -1
  1338. package/src/domains/market-posture-store.ts +13 -28
  1339. package/src/domains/market-quote.ts +1 -1
  1340. package/src/domains/morning-detail.ts +96 -1
  1341. package/src/domains/morning-essential.ts +3 -2
  1342. package/src/domains/morning-report.ts +2 -2
  1343. package/src/domains/morning-synthesis.ts +1 -1
  1344. package/src/domains/opportunity-analysis.ts +1 -1
  1345. package/src/domains/ops-facts-tool.ts +2 -1
  1346. package/src/domains/ops-status-tool.ts +2 -1
  1347. package/src/domains/outbound-alert.ts +2 -1
  1348. package/src/domains/regime-db-path.ts +3 -0
  1349. package/src/domains/regime-store.ts +2 -3
  1350. package/src/domains/release-tool.ts +5 -4
  1351. package/src/domains/retro-report.ts +3 -2
  1352. package/src/domains/schedule-health-report.ts +1 -1
  1353. package/src/domains/schedule-manage-tool.ts +2 -1
  1354. package/src/domains/schedule-registry.ts +1 -1
  1355. package/src/domains/schedule-runner.ts +1 -1
  1356. package/src/domains/schedule-state.ts +2 -1
  1357. package/src/domains/se-build-tool.ts +2 -1
  1358. package/src/domains/sec-13f.ts +1 -1
  1359. package/src/domains/self-awareness-tool.ts +2 -1
  1360. package/src/domains/session-query-tool.ts +2 -1
  1361. package/src/domains/taste-capture.ts +1 -1
  1362. package/src/domains/taste-propose.ts +1 -1
  1363. package/src/domains/taste-sentiment.ts +1 -1
  1364. package/src/domains/telegram-channels.ts +1 -1
  1365. package/src/domains/telegram-kind-route.ts +1 -1
  1366. package/src/domains/trade-decision-tool.ts +2 -1
  1367. package/src/domains/trailing-stops.ts +2 -1
  1368. package/src/domains/us-pulse.ts +3 -2
  1369. package/src/domains/watch-default-scheduler.ts +2 -2
  1370. package/src/domains/weekly-alpha.ts +3 -2
  1371. package/src/drag-session-dashboard-wire.ts +1 -2
  1372. package/src/error-report/report.ts +1 -1
  1373. package/src/esc-abort-gate.ts +19 -1
  1374. package/src/eval-prompt-cli.ts +78 -20
  1375. package/src/execution-history.ts +4 -3
  1376. package/src/expression/a11y.ts +1 -1
  1377. package/src/expression/config/layers.ts +3 -11
  1378. package/src/expression/i18n/types.ts +1 -1
  1379. package/src/feedback/media.ts +10 -14
  1380. package/src/finder/finder-modal.ts +1 -11
  1381. package/src/fleet/cloud-burst-auto.ts +265 -0
  1382. package/src/fleet/cloud-burst-runtime.ts +146 -0
  1383. package/src/git-fs/git-cli.ts +508 -10
  1384. package/src/git-fs/runner.ts +252 -1
  1385. package/src/git-fs/worktree.ts +626 -41
  1386. package/src/goals/slash.ts +0 -2
  1387. package/src/graph-kinds/registry.ts +2 -2
  1388. package/src/graph-runner/arg-open-proposal.ts +171 -0
  1389. package/src/graph-runner/arg-supervisor.ts +281 -0
  1390. package/src/graph-runner/capabilities.ts +243 -0
  1391. package/src/graph-runner/capability-providers/market-data/INVENTORY-1109.md +48 -0
  1392. package/src/graph-runner/capability-providers/market-data/README.md +25 -0
  1393. package/src/graph-runner/capability-providers/market-data/arg-stock-all-providers-sim.ts +83 -0
  1394. package/src/graph-runner/capability-providers/market-data/arg-stock-sim.ts +179 -0
  1395. package/src/graph-runner/capability-providers/market-data/coingecko.ts +20 -0
  1396. package/src/graph-runner/capability-providers/market-data/contract.ts +69 -0
  1397. package/src/graph-runner/capability-providers/market-data/ecos.ts +38 -0
  1398. package/src/graph-runner/capability-providers/market-data/eodhd.ts +56 -0
  1399. package/src/graph-runner/capability-providers/market-data/finnhub.ts +49 -0
  1400. package/src/graph-runner/capability-providers/market-data/fred.ts +28 -0
  1401. package/src/graph-runner/capability-providers/market-data/free-declarations.ts +49 -0
  1402. package/src/graph-runner/capability-providers/market-data/index.ts +14 -0
  1403. package/src/graph-runner/capability-providers/market-data/kis.ts +118 -0
  1404. package/src/graph-runner/capability-providers/market-data/kr-daily-sources.ts +42 -0
  1405. package/src/graph-runner/capability-providers/market-data/krx.ts +54 -0
  1406. package/src/graph-runner/capability-providers/market-data/market-secrets.ts +14 -0
  1407. package/src/graph-runner/capability-providers/market-data/omni-sources.ts +133 -0
  1408. package/src/graph-runner/capability-providers/market-data/registry.ts +85 -0
  1409. package/src/graph-runner/capability-providers/market-data/stock-common.ts +54 -0
  1410. package/src/graph-runner/capability-providers/market-data/toss.ts +124 -0
  1411. package/src/graph-runner/capability-providers/market-data/upbit.ts +20 -0
  1412. package/src/graph-runner/capability-providers/notify.ts +138 -0
  1413. package/src/graph-runner/declared-heal-edges.ts +158 -0
  1414. package/src/graph-runner/graph-approval-card.ts +6 -5
  1415. package/src/graph-runner/graph-cli.ts +93 -6
  1416. package/src/graph-runner/graph-events.ts +202 -0
  1417. package/src/graph-runner/graph-grow-llm.ts +2 -1
  1418. package/src/graph-runner/graph-instance.ts +254 -0
  1419. package/src/graph-runner/graph-manifest-loader.ts +254 -0
  1420. package/src/graph-runner/graph-notify.ts +1 -1
  1421. package/src/graph-runner/graph-subscriptions.ts +112 -0
  1422. package/src/graph-runner/graph-tick.ts +103 -27
  1423. package/src/graph-runner/in-process-registry.ts +14 -0
  1424. package/src/graph-runner/plugin-graph-entry.ts +120 -0
  1425. package/src/graph-runner/provider-context.ts +28 -0
  1426. package/src/graph-runner/release-gate-cutover-policy.ts +10 -0
  1427. package/src/graph-runner/release-graph-manifest.ts +237 -0
  1428. package/src/graph-runner/runner-primitives.ts +16 -0
  1429. package/src/graph-runner/runner-routing.ts +136 -0
  1430. package/src/graph-runner/runner-types.ts +243 -0
  1431. package/src/graph-runner/runner.ts +2393 -334
  1432. package/src/graph-runner/unit-shape.ts +76 -0
  1433. package/src/graph-v2/lower.ts +514 -0
  1434. package/src/graph-v2/n8n-import.ts +105 -0
  1435. package/src/graph-wizard/generate.ts +1 -4
  1436. package/src/graph-wizard/steps.ts +2 -2
  1437. package/src/grok/credential.ts +3 -1
  1438. package/src/grok.ts +1 -1
  1439. package/src/grounding/sources-cli.ts +2 -1
  1440. package/src/guardian/host-lease-policy.ts +21 -0
  1441. package/src/guardian/host-lease.ts +219 -0
  1442. package/src/harness/browser-verify.ts +1 -1
  1443. package/src/harness/dispatch-backpressure.ts +1 -1
  1444. package/src/harness/generic-skill-executor.ts +2 -4
  1445. package/src/harness/grounding/mission-grounding-ladder.ts +346 -0
  1446. package/src/harness/harness-cli-command.ts +1 -53
  1447. package/src/harness/harness-salvage-cli.ts +1 -1
  1448. package/src/harness/harness-substrate-default.ts +6 -2
  1449. package/src/harness/helper-repair.ts +2 -1
  1450. package/src/harness/launch-stamp.ts +2 -1
  1451. package/src/harness/nested-elanous-policy.ts +1 -1
  1452. package/src/harness/pod-memory-policy.ts +188 -0
  1453. package/src/harness/repository-name.ts +2 -1
  1454. package/src/hitl/confirm.ts +3 -0
  1455. package/src/hooks/dispatch.ts +2 -2
  1456. package/src/hooks/receiver.ts +2 -1
  1457. package/src/hq/fence.ts +1 -1
  1458. package/src/hq/hq.ts +25 -1
  1459. package/src/hq/promote.ts +1 -1
  1460. package/src/hq/repo-maintenance-schedule.ts +60 -0
  1461. package/src/hq/repo-maintenance.ts +344 -0
  1462. package/src/hq/seats.ts +34 -20
  1463. package/src/hq/transfer.ts +1 -1
  1464. package/src/import/apply.ts +1 -1
  1465. package/src/index.ts +123 -128
  1466. package/src/input-core/audit-tail.ts +1 -1
  1467. package/src/input-core/slash-filter.ts +32 -0
  1468. package/src/instance/child-scope.ts +2 -1
  1469. package/src/instance/test-write-guard.ts +3 -3
  1470. package/src/instance-identity.ts +2 -2
  1471. package/src/intake-plane/absorb-extract.ts +83 -0
  1472. package/src/intake-plane/adapters/discord-ambient.ts +1 -1
  1473. package/src/intake-plane/adapters/telegram-ambient.ts +1 -1
  1474. package/src/intake-plane/ambient.ts +1 -1
  1475. package/src/intake-plane/core.ts +32 -0
  1476. package/src/intake-plane/discord-seat-work.ts +2 -1
  1477. package/src/intake-plane/event-state.ts +61 -0
  1478. package/src/intake-plane/items.ts +92 -37
  1479. package/src/intake-plane/linear-secretary-runtime.ts +4 -3
  1480. package/src/intake-plane/requirement-funnel.ts +4 -3
  1481. package/src/intake-plane/route.ts +5 -62
  1482. package/src/intake-plane/runtime-callables.ts +1 -1
  1483. package/src/intake-plane/slash.ts +2 -1
  1484. package/src/intake-plane/telegram-seat-work.ts +2 -1
  1485. package/src/intake-plane/wish-benchmark-ledger.ts +91 -11
  1486. package/src/intake-plane/wish-reply.ts +1 -1
  1487. package/src/intelligence-map/model-watch-mission.ts +2 -2
  1488. package/src/intelligence-map/tools/intelligence-map.ts +2 -1
  1489. package/src/intelligence-map/tools/route-to-model.ts +2 -1
  1490. package/src/keybindings.ts +2 -9
  1491. package/src/knowhow/pack.ts +1 -4
  1492. package/src/knowledge/tools/knowledge-query.ts +2 -1
  1493. package/src/knowledge/tools/knowledge-write.ts +2 -1
  1494. package/src/light-cli.ts +5 -0
  1495. package/src/llm/bedrock-provider.ts +2 -2
  1496. package/src/llm/difficulty.ts +2 -1
  1497. package/src/llm/hq-proxy-provider.ts +84 -0
  1498. package/src/llm/judge-layer.ts +2 -1
  1499. package/src/llm/model-defaults.ts +2 -1
  1500. package/src/llm/output-budget.ts +19 -0
  1501. package/src/llm/provider-capabilities.ts +80 -0
  1502. package/src/llm/provider-credentials.ts +44 -3
  1503. package/src/llm/provider-detect.ts +2 -1
  1504. package/src/llm/role-llm-cli.ts +2 -7
  1505. package/src/llm/role-stream.ts +57 -0
  1506. package/src/llm/route-decision.ts +1 -1
  1507. package/src/llm/runtime-model-family.ts +1 -1
  1508. package/src/llm/stream-fallback.ts +38 -0
  1509. package/src/llm/stream-text.ts +8 -0
  1510. package/src/llm/subscription-first.ts +4 -3
  1511. package/src/llm/tool-spec.ts +45 -0
  1512. package/src/llm/usable-llm.ts +2 -1
  1513. package/src/llm/wire/harmony.ts +365 -0
  1514. package/src/llm/zai-coding-plan.ts +1 -1
  1515. package/src/llm.ts +174 -534
  1516. package/src/loops/agent-reply.ts +4 -2
  1517. package/src/loops/budget.ts +1 -1
  1518. package/src/loops/checker-contract.ts +39 -0
  1519. package/src/loops/checker.ts +6 -56
  1520. package/src/loops/fixtures/checker-registry-cycle/checker.js +1 -0
  1521. package/src/loops/fixtures/checker-registry-cycle/helper.js +1 -0
  1522. package/src/loops/fixtures/checker-registry-cycle/registry.js +1 -0
  1523. package/src/loops/fixtures/checker-registry-cycle/schedule-checker.js +1 -0
  1524. package/src/loops/fixtures/checker-registry-cycle/schedule-due.js +1 -0
  1525. package/src/loops/graph-trigger-dispatch-lease.ts +227 -0
  1526. package/src/loops/graph-trigger-dispatch.ts +95 -0
  1527. package/src/loops/msg-address.ts +29 -9
  1528. package/src/loops/msg-wake.ts +299 -45
  1529. package/src/loops/orchestrator/coordinator-shadow.ts +4 -1
  1530. package/src/loops/orchestrator/inbox-once.ts +1 -1
  1531. package/src/loops/orchestrator/inbox.ts +1 -1
  1532. package/src/loops/orchestrator/overlap.ts +53 -12
  1533. package/src/loops/orchestrator/seat-share.ts +1 -1
  1534. package/src/loops/orchestrator/sim-impact-audit.ts +67 -0
  1535. package/src/loops/orchestrator/tick.ts +129 -10
  1536. package/src/loops/registry-contract.ts +39 -0
  1537. package/src/loops/registry.ts +27 -36
  1538. package/src/loops/schedule-due.ts +18 -0
  1539. package/src/loops/seat-registry.ts +72 -0
  1540. package/src/loops/train/decisions.ts +242 -0
  1541. package/src/loops/train/hotspot-radius-ordering.ts +63 -0
  1542. package/src/loops/train/worker-lifecycle.ts +228 -0
  1543. package/src/maturity/bot-command-maturity.ts +1 -1
  1544. package/src/maturity/feature-maturity.ts +15 -49
  1545. package/src/maturity/tui-slash-maturity.ts +3 -5
  1546. package/src/mcp/mcp-oauth.ts +168 -145
  1547. package/src/mcp/server.ts +1 -1
  1548. package/src/memory-intent.ts +13 -0
  1549. package/src/memory.ts +5 -1
  1550. package/src/model-tier/auto-route.ts +2 -2
  1551. package/src/model-tier/llm-tier-map.ts +4 -2
  1552. package/src/model-tier/review-effort.ts +1 -1
  1553. package/src/model-tier/setup-suggest.ts +1 -1
  1554. package/src/model-tier/simple-question-fast-route.ts +24 -0
  1555. package/src/model-tier/tier-resolver.ts +1 -1
  1556. package/src/model-tier/turn-tier.ts +2 -2
  1557. package/src/models/prompts.ts +1 -1
  1558. package/src/mouse-action-recipes.ts +5 -362
  1559. package/src/msg/msg-hook.ts +115 -0
  1560. package/src/msg/msg-post-office.ts +145 -11
  1561. package/src/msg/msg-sse-server.ts +45 -1
  1562. package/src/msg/msg-store.ts +22 -10
  1563. package/src/mss/identity-store.ts +62 -0
  1564. package/src/mss/log-enrich.ts +1 -1
  1565. package/src/mss/logging/diagnostic-sink.ts +90 -0
  1566. package/src/mss/logging/gate-correlation.ts +110 -0
  1567. package/src/mss/logging/horizon-watch.ts +4 -4
  1568. package/src/mss/logging/log-federation.ts +19 -9
  1569. package/src/mss/logging/log-safety-net.ts +7 -7
  1570. package/src/mss/logging/log-store.ts +44 -22
  1571. package/src/mss/logging/sinks/otel-genai-sink.ts +2 -2
  1572. package/src/mss/trace-context.ts +1 -1
  1573. package/src/mss/ulid.ts +36 -0
  1574. package/src/mss/uri/builder.ts +1 -1
  1575. package/src/native-tool-catalog.ts +81 -7
  1576. package/src/nexus/api/app-host-scoped-resolver.ts +11 -0
  1577. package/src/nexus/api/audio-stt.ts +15 -13
  1578. package/src/nexus/api/autopilot-api.ts +1 -68
  1579. package/src/nexus/api/board-api.ts +437 -0
  1580. package/src/nexus/api/briefings-api.ts +108 -0
  1581. package/src/nexus/api/channel-ask-op.ts +3 -38
  1582. package/src/nexus/api/chat-tier-intent.ts +2 -1
  1583. package/src/nexus/api/config-model-tier.ts +2 -6
  1584. package/src/nexus/api/consult-requests.ts +2 -1
  1585. package/src/nexus/api/design-check.ts +1 -1
  1586. package/src/nexus/api/discord-trigger-bot.ts +1 -1
  1587. package/src/nexus/api/event-bus.ts +17 -0
  1588. package/src/nexus/api/events.ts +11 -1
  1589. package/src/nexus/api/field-uploads.ts +73 -0
  1590. package/src/nexus/api/graph-approvals-feed.ts +1 -1
  1591. package/src/nexus/api/graph-route-allowlist.ts +8 -0
  1592. package/src/nexus/api/grid.ts +1 -1
  1593. package/src/nexus/api/grokbot-trigger-bot.ts +1 -1
  1594. package/src/nexus/api/hq-llm-proxy.ts +154 -0
  1595. package/src/nexus/api/http-server.ts +500 -87
  1596. package/src/nexus/api/ingest-token.ts +3 -46
  1597. package/src/nexus/api/intake-route.ts +1 -1
  1598. package/src/nexus/api/llm-rotation.ts +2 -11
  1599. package/src/nexus/api/mcp-widget-call-route.ts +22 -20
  1600. package/src/nexus/api/member-event-store.ts +205 -0
  1601. package/src/nexus/api/merge-approvals.ts +1 -1
  1602. package/src/nexus/api/meta-api.ts +12 -1
  1603. package/src/nexus/api/next-fluent-wiring.ts +1 -1
  1604. package/src/nexus/api/openrouter-oauth.ts +184 -0
  1605. package/src/nexus/api/operator.ts +1 -1
  1606. package/src/nexus/api/ops-api.ts +154 -9
  1607. package/src/nexus/api/ops-seats-sources.ts +1 -1
  1608. package/src/nexus/api/outbound-report.ts +1 -1
  1609. package/src/nexus/api/private-file-lock.ts +61 -0
  1610. package/src/nexus/api/public-routes.ts +89 -2
  1611. package/src/nexus/api/resource-ledger.ts +10 -5
  1612. package/src/nexus/api/scraps.ts +154 -0
  1613. package/src/nexus/api/seat-requests.ts +1 -1
  1614. package/src/nexus/api/setup-child-llm.ts +8 -18
  1615. package/src/nexus/api/setup-codex-login.ts +15 -3
  1616. package/src/nexus/api/setup-credentials.fixture.ts +12 -0
  1617. package/src/nexus/api/setup-credentials.ts +144 -0
  1618. package/src/nexus/api/setup-obsidian-skills.ts +2 -1
  1619. package/src/nexus/api/static-app.ts +8 -7
  1620. package/src/nexus/api/telegram-trigger-bot.ts +5 -3
  1621. package/src/nexus/api/tls-edge.ts +23 -0
  1622. package/src/nexus/api/ux-sim-devices.ts +1 -4
  1623. package/src/nexus/api/worktrees.ts +1 -1
  1624. package/src/nexus/apps/app-actions.ts +361 -0
  1625. package/src/nexus/apps/app-auth.ts +204 -0
  1626. package/src/nexus/apps/app-contract.ts +151 -11
  1627. package/src/nexus/apps/app-credential-capability.ts +14 -0
  1628. package/src/nexus/apps/app-db-backup.ts +443 -0
  1629. package/src/nexus/apps/app-db.ts +984 -0
  1630. package/src/nexus/apps/app-deployment-owner.ts +28 -0
  1631. package/src/nexus/apps/app-github-mirror.ts +224 -0
  1632. package/src/nexus/apps/app-host.ts +456 -25
  1633. package/src/nexus/apps/app-jobs.ts +347 -0
  1634. package/src/nexus/apps/app-lifecycle-ledger.race-worker.ts +12 -0
  1635. package/src/nexus/apps/app-lifecycle-ledger.ts +245 -0
  1636. package/src/nexus/apps/app-promote.ts +116 -0
  1637. package/src/nexus/apps/app-publish.ts +231 -0
  1638. package/src/nexus/apps/app-realtime.ts +224 -0
  1639. package/src/nexus/apps/app-screen-render.ts +207 -0
  1640. package/src/nexus/apps/app-simulate.ts +5 -5
  1641. package/src/nexus/apps/app-simulation-db.ts +113 -0
  1642. package/src/nexus/apps/app-simulation-route.ts +104 -0
  1643. package/src/nexus/apps/app-simulation-runner.ts +392 -0
  1644. package/src/nexus/apps/app-simulation.ts +103 -0
  1645. package/src/nexus/apps/app-site-deploy.ts +321 -0
  1646. package/src/nexus/apps/app-source-snapshot.ts +385 -0
  1647. package/src/nexus/apps/app-storage-route.ts +127 -0
  1648. package/src/nexus/apps/app-storage.ts +416 -0
  1649. package/src/nexus/apps/app-upload.ts +49 -0
  1650. package/src/nexus/apps/console-address.ts +41 -0
  1651. package/src/nexus/apps/drive-contract.ts +59 -0
  1652. package/src/nexus/apps/funnel-observe.ts +194 -0
  1653. package/src/nexus/apps/higgsfield-backend.ts +200 -0
  1654. package/src/nexus/apps/higgsfield-cli-session.ts +157 -0
  1655. package/src/nexus/apps/made-with-badge.ts +216 -0
  1656. package/src/nexus/boot/register-mcp-clients.ts +1 -1
  1657. package/src/nexus/config/secrets/app-secret-ledger.ts +241 -0
  1658. package/src/nexus/config/secrets/cred-health.ts +58 -0
  1659. package/src/nexus/config/secrets/cred-owner.ts +116 -0
  1660. package/src/nexus/config/secrets/cred-slot-schema.ts +27 -0
  1661. package/src/nexus/config/secrets/cred-slot-wizard.ts +37 -0
  1662. package/src/nexus/config/secrets/cred-slots.ts +53 -0
  1663. package/src/nexus/config/secrets/file-backend.ts +239 -10
  1664. package/src/nexus/config/secrets/index.ts +80 -2
  1665. package/src/nexus/config/secrets/registry.ts +71 -5
  1666. package/src/nexus/config/secrets/types.ts +8 -0
  1667. package/src/nexus/config/secrets.ts +8 -0
  1668. package/src/nexus/config/types.ts +4 -0
  1669. package/src/nexus/daemon-endpoint.ts +2 -1
  1670. package/src/nexus/index.ts +449 -21
  1671. package/src/nexus/members/google-signin.ts +157 -0
  1672. package/src/nexus/members/member-store.ts +658 -0
  1673. package/src/nexus/members/member-token-api.ts +66 -0
  1674. package/src/nexus/members/members-api.ts +531 -0
  1675. package/src/nexus/outbound/format.ts +2 -0
  1676. package/src/nexus/outbound/grokbot-adapter.ts +1 -1
  1677. package/src/nexus/outbound/router.ts +7 -4
  1678. package/src/nexus/pwa-resolution.ts +116 -0
  1679. package/src/nexus/setup-status.ts +67 -2
  1680. package/src/nexus/state/state.ts +8 -0
  1681. package/src/nexus/static-dir-resolve.ts +1 -1
  1682. package/src/notifications/bell-modal.ts +2 -0
  1683. package/src/notifications/outbound-boot.ts +1 -1
  1684. package/src/notifications/store.ts +2 -1
  1685. package/src/oauth/codex-account-store.ts +27 -15
  1686. package/src/oauth/codex-browser-login.ts +16 -0
  1687. package/src/oauth/codex-owner-mirror.ts +44 -10
  1688. package/src/oauth/codex.ts +1 -0
  1689. package/src/oauth/provider-access-mirror.ts +46 -0
  1690. package/src/oauth/store.ts +102 -10
  1691. package/src/obsidian/vault-write-guard.ts +1 -1
  1692. package/src/onboarding/first-chat-gate.ts +1 -1
  1693. package/src/onboarding/first-run.ts +2 -4
  1694. package/src/onboarding/help/llm.md +13 -0
  1695. package/src/onboarding/key-setup.ts +1 -1
  1696. package/src/onboarding/summary.ts +1 -1
  1697. package/src/onboarding/web-first.ts +13 -8
  1698. package/src/onboarding.ts +2 -5
  1699. package/src/ops/overview-cache.ts +4 -3
  1700. package/src/org/seat-budget.ts +2 -1
  1701. package/src/org/stall-escalation.ts +1 -1
  1702. package/src/plan-mode/tool-enter.ts +5 -3
  1703. package/src/plan-mode/tool-exit.ts +3 -2
  1704. package/src/platform/host-id.ts +1 -1
  1705. package/src/plugin-hooks/events.ts +2 -1
  1706. package/src/plugin-missions/llm-tools.ts +2 -1
  1707. package/src/plugin-routes/llm-tools.ts +2 -1
  1708. package/src/plugin-workflows/llm-tools.ts +2 -1
  1709. package/src/plugins/core/declared-handler.ts +51 -0
  1710. package/src/plugins/core/host.ts +221 -146
  1711. package/src/plugins/core/manifest.ts +61 -1
  1712. package/src/plugins/core/plugin-yaml.ts +157 -0
  1713. package/src/plugins/core/route-adapter.ts +215 -0
  1714. package/src/plugins/core/trust-store.ts +4 -3
  1715. package/src/plugins/core/types.ts +7 -0
  1716. package/src/plugins/install/plugin-install.ts +30 -3
  1717. package/src/plugins/maker/plugin-maker.ts +1 -1
  1718. package/src/policy/llm-policy.ts +2 -1
  1719. package/src/pr-tool/census.ts +32 -10
  1720. package/src/primitives/guards.ts +48 -0
  1721. package/src/prompt-cache/anthropic.ts +2 -1
  1722. package/src/prompt-cache/types.ts +2 -0
  1723. package/src/prompt-enhance/enhance.ts +8 -4
  1724. package/src/prompt-library/chat-conciseness.ts +1 -1
  1725. package/src/prompt-library/registry.ts +1 -1
  1726. package/src/provider-summary.ts +2 -1
  1727. package/src/pty-shell/herdr-prompt.ts +62 -18
  1728. package/src/pty-shell/pty-control-ipc.ts +5 -2
  1729. package/src/registry/discovery/config.ts +2 -1
  1730. package/src/relay/app-kill-switch.ts +310 -0
  1731. package/src/relay/channel.ts +5 -0
  1732. package/src/relay/host-connector.ts +577 -0
  1733. package/src/relay/mux.ts +43 -12
  1734. package/src/relay/relay-cli.ts +131 -6
  1735. package/src/relay/relay-member-verifier.ts +36 -0
  1736. package/src/relay/relay-server.ts +590 -20
  1737. package/src/release-loop/auto-start.ts +32 -7
  1738. package/src/release-loop/checklist.ts +25 -9
  1739. package/src/release-loop/cloud-vm-adapter.ts +64 -0
  1740. package/src/release-loop/feature-store.ts +1 -1
  1741. package/src/release-loop/gate-host-reservation.ts +71 -2
  1742. package/src/release-loop/gate-shard-ledger.ts +195 -6
  1743. package/src/release-loop/gate-shards.ts +85 -15
  1744. package/src/release-loop/gate-timeout-owner-cell.ts +266 -0
  1745. package/src/release-loop/graph-event-adapters.ts +172 -0
  1746. package/src/release-loop/incident-policy-handler.ts +78 -0
  1747. package/src/release-loop/knowhow/pwa-host-heal.ts +92 -0
  1748. package/src/release-loop/light-rc.ts +160 -15
  1749. package/src/release-loop/macrophage-heal-node.ts +309 -0
  1750. package/src/release-loop/macrophage-heal.ts +238 -0
  1751. package/src/release-loop/macrophage-incident-recovery.ts +132 -0
  1752. package/src/release-loop/macrophage-repair-ladder.ts +246 -0
  1753. package/src/release-loop/macrophage-safe-cleanup.ts +150 -0
  1754. package/src/release-loop/merged-pr-checklist.ts +151 -1
  1755. package/src/release-loop/op-channel.ts +117 -0
  1756. package/src/release-loop/placement-ceo-load.ts +72 -0
  1757. package/src/release-loop/placement-config.ts +28 -0
  1758. package/src/release-loop/placement.ts +10 -85
  1759. package/src/release-loop/rehearsal-cloud-host.ts +190 -0
  1760. package/src/release-loop/rehearsal.ts +183 -35
  1761. package/src/release-loop/release-failure-attribution.ts +410 -0
  1762. package/src/release-loop/release-note.ts +1 -4
  1763. package/src/release-loop/release-schedule.ts +6 -3
  1764. package/src/release-loop/rubric.ts +1 -1
  1765. package/src/release-loop/stage-mail.ts +16 -11
  1766. package/src/release-loop/waiver-events.ts +328 -0
  1767. package/src/repl/agent-turn.ts +3 -2
  1768. package/src/repl/dispatch-meta.ts +2 -6
  1769. package/src/repl/index.ts +218 -16
  1770. package/src/repl/next-tui-message-blocks.ts +71 -0
  1771. package/src/repl/shell-snapshot-router.ts +55 -0
  1772. package/src/research/axis-fanout.ts +13 -13
  1773. package/src/research/bloom-exemplars.ts +1 -3
  1774. package/src/research/edge-decision.ts +1 -4
  1775. package/src/research/lenses/working-backwards.ts +2 -9
  1776. package/src/research/plugin-discovery.ts +1 -1
  1777. package/src/research-bridge/crawl.ts +5 -0
  1778. package/src/research-bridge/index.ts +5 -0
  1779. package/src/resource-ledger/guardian-host-lease-heartbeat-worker.ts +27 -0
  1780. package/src/resource-ledger/guardian-reconcile.ts +4 -1
  1781. package/src/resource-ledger/host-readiness.ts +27 -0
  1782. package/src/resource-ledger/resource-ledger.ts +336 -6
  1783. package/src/retro/daily.ts +1 -1
  1784. package/src/roles/machine-name.ts +3 -8
  1785. package/src/roles/machine-profile-contract.ts +8 -0
  1786. package/src/roles/machine-profile.ts +22 -4
  1787. package/src/roles/role-lease-read.ts +1 -0
  1788. package/src/runtime-identity.ts +68 -0
  1789. package/src/scenarios/catalog.ts +1 -4
  1790. package/src/scenarios/shorthand.ts +1 -4
  1791. package/src/seat-dispatch/ceo-intent.ts +1 -1
  1792. package/src/seat-loop/seat-loop.ts +2 -1
  1793. package/src/seat-loop/seat-report.ts +2 -1
  1794. package/src/self-dev/app-scratch-bootstrap.ts +47 -0
  1795. package/src/self-dev/decompose.ts +2 -5
  1796. package/src/self-dev/dev-cli.ts +18 -4
  1797. package/src/self-dev/dev-pipeline.ts +29 -4
  1798. package/src/self-dev/draft-sweep.ts +1 -2
  1799. package/src/self-dev/entrance-baseline.ts +0 -52
  1800. package/src/self-dev/review-provider-fallback.ts +1 -1
  1801. package/src/self-dev/run-record-mirror.ts +1 -1
  1802. package/src/self-dev/run-store-checkpoint.ts +53 -0
  1803. package/src/self-dev/run-store-contract.ts +56 -0
  1804. package/src/self-dev/run-store.ts +11 -110
  1805. package/src/self-dev/run-supervisor.ts +131 -1
  1806. package/src/self-dev/run-types.ts +4 -1
  1807. package/src/self-dev/self-orchestrate-runtime.ts +3 -2
  1808. package/src/self-dev/shard-run.ts +29 -7
  1809. package/src/self-dev/sim-impact-wording.ts +51 -0
  1810. package/src/self-dev/supervisor-verdict-edges.ts +1 -0
  1811. package/src/self-implement/auto-open-pr.ts +1 -1
  1812. package/src/self-implement/budget-gate.ts +2 -6
  1813. package/src/self-implement/child-llm-preference.ts +1 -7
  1814. package/src/self-implement/context-capsule-store.ts +1 -4
  1815. package/src/self-implement/execution-clarification.ts +1 -1
  1816. package/src/self-implement/follow-up-goals.ts +1 -1
  1817. package/src/self-implement/gate-cli.ts +251 -4
  1818. package/src/self-implement/gate-receipt-registry.ts +95 -4
  1819. package/src/self-implement/gate-remote.ts +23 -6
  1820. package/src/self-implement/goal-author-clarification.ts +2 -4
  1821. package/src/self-implement/goal-author-cli.ts +1 -1
  1822. package/src/self-implement/goal-author-decompose.ts +10 -13
  1823. package/src/self-implement/goal-author.ts +38 -20
  1824. package/src/self-implement/goal-documents-dir.ts +2 -1
  1825. package/src/self-implement/graph-authority.ts +1 -1
  1826. package/src/self-implement/graph-overlay-condition.ts +1 -1
  1827. package/src/self-implement/graph-unit-flatten.ts +8 -1
  1828. package/src/self-implement/graph-unit-resolver.ts +64 -16
  1829. package/src/self-implement/graph-yaml.ts +404 -17
  1830. package/src/self-implement/headless-elanous-driver.ts +21 -6
  1831. package/src/self-implement/heal-intake.ts +1 -1
  1832. package/src/self-implement/host-regate.ts +7 -3
  1833. package/src/self-implement/l8-merge-queue.ts +75 -1
  1834. package/src/self-implement/merge-train.ts +294 -28
  1835. package/src/self-implement/observe-only.ts +1 -1
  1836. package/src/self-implement/orchestrator.ts +1 -1
  1837. package/src/self-implement/pod-warm-pool-profile.ts +64 -5
  1838. package/src/self-implement/run-checkpoint.ts +2 -2
  1839. package/src/self-implement/run-ledger-archive.ts +252 -0
  1840. package/src/self-implement/run-ledger-compact.ts +6 -248
  1841. package/src/self-implement/run-ledger-paths.ts +27 -0
  1842. package/src/self-implement/run-ledger.ts +4 -19
  1843. package/src/self-implement/seams.ts +2 -1
  1844. package/src/self-implement/self-implement-cli.ts +1 -1
  1845. package/src/self-implement/self-implement-runtime.ts +3 -2
  1846. package/src/self-implement/stop-autoheal.ts +12 -2
  1847. package/src/self-implement/train-gate-receipt.ts +6 -2
  1848. package/src/session/channel-op-reply-route.ts +12 -0
  1849. package/src/session/chat.ts +50 -14
  1850. package/src/session/compact-session.ts +1 -1
  1851. package/src/session/index.ts +3 -0
  1852. package/src/session/request-size-guard.ts +2 -1
  1853. package/src/session/search-index.ts +16 -4
  1854. package/src/session/session-context.ts +3 -1
  1855. package/src/session-runtime/index.ts +16 -7
  1856. package/src/session-runtime/tier-flip.ts +70 -24
  1857. package/src/setup/cred-import-scan.ts +307 -0
  1858. package/src/setup/llm-env-detect.ts +1 -1
  1859. package/src/setup/service-key-catalog.ts +13 -6
  1860. package/src/setup/service-keys.ts +5 -3
  1861. package/src/shell-runner/index.ts +0 -2
  1862. package/src/sidetab-core/model.ts +2 -1
  1863. package/src/signal/lifecycle-record.ts +1 -8
  1864. package/src/sim-world-device-catalog-history.json +3747 -0
  1865. package/src/skills/connect.ts +2 -1
  1866. package/src/skills/runner.ts +35 -215
  1867. package/src/skills/shared-agent-skill-roots.ts +0 -3
  1868. package/src/skills/skill-manifest.ts +211 -0
  1869. package/src/skills/tools/acp-session.ts +3 -2
  1870. package/src/skills/tools/agent-handoff.ts +2 -1
  1871. package/src/skills/tools/agent-reply.ts +2 -1
  1872. package/src/skills/tools/agent-room.ts +2 -1
  1873. package/src/skills/tools/agent.ts +2 -1
  1874. package/src/skills/tools/announce-completion.ts +2 -1
  1875. package/src/skills/tools/api-call.ts +2 -1
  1876. package/src/skills/tools/ast-grep.ts +2 -1
  1877. package/src/skills/tools/browser-iphone.ts +2 -1
  1878. package/src/skills/tools/budget.ts +2 -1
  1879. package/src/skills/tools/capture-inject.ts +2 -1
  1880. package/src/skills/tools/capture-source.ts +2 -1
  1881. package/src/skills/tools/context.ts +2 -1
  1882. package/src/skills/tools/control.ts +2 -1
  1883. package/src/skills/tools/dashboard-config.ts +2 -1
  1884. package/src/skills/tools/dashboard-slash.ts +2 -1
  1885. package/src/skills/tools/dashboard-state.ts +2 -1
  1886. package/src/skills/tools/dashboard-view.ts +5 -16
  1887. package/src/skills/tools/dashboard-widget.ts +2 -1
  1888. package/src/skills/tools/dev-harness.ts +2 -1
  1889. package/src/skills/tools/edit.ts +2 -1
  1890. package/src/skills/tools/glob.ts +2 -1
  1891. package/src/skills/tools/grep.ts +3 -2
  1892. package/src/skills/tools/index.ts +2 -1
  1893. package/src/skills/tools/input-policy.ts +2 -1
  1894. package/src/skills/tools/kr-flow.ts +2 -1
  1895. package/src/skills/tools/lane-handoff.ts +2 -1
  1896. package/src/skills/tools/list-dir.ts +2 -1
  1897. package/src/skills/tools/llm-install.ts +2 -1
  1898. package/src/skills/tools/llm-manager.ts +2 -1
  1899. package/src/skills/tools/lsp/index.ts +3 -2
  1900. package/src/skills/tools/lsp/pool.ts +1 -1
  1901. package/src/skills/tools/lsp/server-registry.ts +2 -2
  1902. package/src/skills/tools/market-quote.ts +2 -1
  1903. package/src/skills/tools/mermaid-syntax.ts +2 -1
  1904. package/src/skills/tools/mermaid.ts +2 -1
  1905. package/src/skills/tools/msg-ask.ts +2 -1
  1906. package/src/skills/tools/omni-search.ts +2 -1
  1907. package/src/skills/tools/ops-ledger.ts +2 -1
  1908. package/src/skills/tools/persistent-grounding.ts +2 -1
  1909. package/src/skills/tools/phone-adb.ts +497 -0
  1910. package/src/skills/tools/pty.ts +2 -1
  1911. package/src/skills/tools/read.ts +2 -1
  1912. package/src/skills/tools/relay-shell.ts +2 -1
  1913. package/src/skills/tools/route.ts +2 -1
  1914. package/src/skills/tools/run-tests.ts +2 -1
  1915. package/src/skills/tools/schedule-wakeup.ts +2 -3
  1916. package/src/skills/tools/set-hint.ts +2 -1
  1917. package/src/skills/tools/shell-runner.ts +2 -1
  1918. package/src/skills/tools/shell.ts +3 -2
  1919. package/src/skills/tools/solve-mission.ts +2 -1
  1920. package/src/skills/tools/spawn-coding-agent-headless.ts +2 -1
  1921. package/src/skills/tools/terminal-matrix.ts +2 -1
  1922. package/src/skills/tools/terminal-modal-inject.ts +2 -1
  1923. package/src/skills/tools/terminal-modal.ts +2 -1
  1924. package/src/skills/tools/theme-control.ts +2 -1
  1925. package/src/skills/tools/tool-search-route.ts +5 -3
  1926. package/src/skills/tools/tool-search-spec.ts +4 -2
  1927. package/src/skills/tools/tool-search.ts +96 -3
  1928. package/src/skills/tools/tty-snapshot.ts +2 -1
  1929. package/src/skills/tools/web-search.ts +2 -1
  1930. package/src/skills/tools/webfetch.ts +2 -1
  1931. package/src/skills/tools/widget-inspector.ts +2 -1
  1932. package/src/skills/tools/write.ts +2 -1
  1933. package/src/skills/tools/youtube-transcript.ts +2 -1
  1934. package/src/state/bridges/index.ts +0 -2
  1935. package/src/state/bridges/plugin-host.ts +60 -29
  1936. package/src/state/index.ts +0 -1
  1937. package/src/status/bar.ts +0 -43
  1938. package/src/status/popups.ts +2 -3
  1939. package/src/status/status-provider-info.ts +2 -1
  1940. package/src/steward/directive.ts +1 -1
  1941. package/src/steward/rejudge-tick.ts +1 -1
  1942. package/src/steward/triage.ts +1 -1
  1943. package/src/storage/file-lock.ts +6 -3
  1944. package/src/storage/object-store.ts +47 -4
  1945. package/src/storage/s3.ts +1 -1
  1946. package/src/surface/llm-tools.ts +4 -3
  1947. package/src/task-agent/entrance-shadow.ts +1 -4
  1948. package/src/task-agent/map-reduce.ts +103 -12
  1949. package/src/task-agent/map-run-ledger.ts +113 -0
  1950. package/src/task-agent/parent-host.ts +37 -4
  1951. package/src/task-agent/rejudge-on-head.ts +1 -1
  1952. package/src/task-agent/task-hand.ts +1 -1
  1953. package/src/task-agent/task-parent-role-llm.ts +2 -1
  1954. package/src/task-orchestrator/boot.ts +1 -1
  1955. package/src/task-orchestrator/external-policy.ts +1 -1
  1956. package/src/task-orchestrator/runtimes/create.ts +2 -1
  1957. package/src/task-orchestrator/runtimes/decompose.ts +2 -1
  1958. package/src/task-orchestrator/runtimes/dispatch.ts +2 -1
  1959. package/src/task-orchestrator/runtimes/get.ts +2 -1
  1960. package/src/task-orchestrator/runtimes/kill.ts +2 -1
  1961. package/src/task-orchestrator/runtimes/list.ts +2 -1
  1962. package/src/task-orchestrator/runtimes/update.ts +2 -1
  1963. package/src/task-orchestrator/surfaces/pod-command-job.ts +265 -26
  1964. package/src/task-orchestrator/surfaces/pod-config-snapshot.ts +1 -1
  1965. package/src/task-orchestrator/surfaces/pod-gate-deps.ts +19 -2
  1966. package/src/task-orchestrator/surfaces/pod-gate-volume-ref.ts +308 -0
  1967. package/src/task-orchestrator/surfaces/pod-host-acp-review.ts +1 -1
  1968. package/src/task-orchestrator/surfaces/pod-image-source.ts +18 -3
  1969. package/src/task-orchestrator/surfaces/pod-install-slots.ts +110 -0
  1970. package/src/task-orchestrator/surfaces/pod-lease.ts +6 -1
  1971. package/src/task-orchestrator/surfaces/pod-pool.ts +170 -36
  1972. package/src/task-orchestrator/surfaces/pod-si-warm-host.ts +18 -3
  1973. package/src/task-orchestrator/surfaces/pod-si-warm-provider.ts +90 -11
  1974. package/src/task-orchestrator/surfaces/pod-si-warm-runner.ts +10 -1
  1975. package/src/task-orchestrator/surfaces/pod-source-receive.ts +41 -17
  1976. package/src/task-orchestrator/surfaces/pod-warm-provenance.ts +79 -0
  1977. package/src/task-orchestrator/surfaces/pod-warm-switch.ts +176 -5
  1978. package/src/task-orchestrator/surfaces/pod-warm-worker-pod.ts +25 -13
  1979. package/src/task-orchestrator/surfaces/pod-warm-worker-protocol.ts +10 -0
  1980. package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +702 -37
  1981. package/src/task-orchestrator/surfaces/pod-warm-worker-runtime.ts +21 -1
  1982. package/src/task-orchestrator/surfaces/self-implement-pod.ts +40 -15
  1983. package/src/task-orchestrator/surfaces/warm-host-probe.ts +31 -0
  1984. package/src/task-orchestrator/tox-loop.ts +1 -1
  1985. package/src/telegram-agent.ts +1 -1
  1986. package/src/telegram-away-command.ts +6 -5
  1987. package/src/telegram-commands.ts +45 -2
  1988. package/src/telegram-project-command.ts +1 -1
  1989. package/src/telegram-report.ts +9 -2
  1990. package/src/telegram-run.ts +1 -1
  1991. package/src/telegram-test-runner.ts +2 -1
  1992. package/src/telegram.ts +80 -17
  1993. package/src/test-utils/temp-dir-cleanup.ts +45 -0
  1994. package/src/time/calendar.ts +70 -0
  1995. package/src/time/clock.ts +21 -0
  1996. package/src/time/format-core.ts +44 -0
  1997. package/src/time/format.ts +7 -227
  1998. package/src/time/time-zone.ts +95 -0
  1999. package/src/tool-router/index.ts +311 -0
  2000. package/src/tool-runtime/artifact-runtimes.ts +2 -1
  2001. package/src/tool-runtime/aside-selection-runtime.ts +2 -1
  2002. package/src/tool-runtime/bash-approval.ts +14 -0
  2003. package/src/tool-runtime/bash-runtime.ts +44 -0
  2004. package/src/tool-runtime/browser-runtime.ts +2 -1
  2005. package/src/tool-runtime/display-control-runtimes.ts +4 -3
  2006. package/src/tool-runtime/elanous-asana-runtimes.ts +2 -1
  2007. package/src/tool-runtime/elanous-autopilot-launch-runtime.ts +3 -2
  2008. package/src/tool-runtime/elanous-control-runtimes.ts +2 -1
  2009. package/src/tool-runtime/elanous-fs-list-runtime.ts +2 -1
  2010. package/src/tool-runtime/elanous-fs-read-runtime.ts +2 -1
  2011. package/src/tool-runtime/elanous-linear-issue-runtime.ts +3 -2
  2012. package/src/tool-runtime/elanous-linear-secretary-runtime.ts +2 -1
  2013. package/src/tool-runtime/elanous-obsidian-info-runtime.ts +2 -1
  2014. package/src/tool-runtime/elanous-obsidian-search-runtime.ts +2 -1
  2015. package/src/tool-runtime/elanous-showroom-broadcast-runtime.ts +2 -1
  2016. package/src/tool-runtime/elanous-skills-list-runtime.ts +2 -1
  2017. package/src/tool-runtime/elanous-task-submit-runtime.ts +2 -1
  2018. package/src/tool-runtime/elanous-ux-sim-devices-runtime.ts +2 -1
  2019. package/src/tool-runtime/find-repo-runtime.ts +2 -1
  2020. package/src/tool-runtime/git-commit-runtime.ts +2 -1
  2021. package/src/tool-runtime/git-pr-runtime.ts +2 -1
  2022. package/src/tool-runtime/git-worktree-runtimes.ts +2 -1
  2023. package/src/tool-runtime/goal-author-runtime.ts +2 -1
  2024. package/src/tool-runtime/graph-mcp-runtimes.ts +2 -1
  2025. package/src/tool-runtime/mcp-proxy-bootstrap.ts +2 -1
  2026. package/src/tool-runtime/mirror-hints.ts +2 -1
  2027. package/src/tool-runtime/pane-runtimes.ts +2 -1
  2028. package/src/tool-runtime/persistent-grounding-runtime.ts +2 -1
  2029. package/src/tool-runtime/pty-recording-runtimes.ts +2 -1
  2030. package/src/tool-runtime/recording-runtimes.ts +2 -1
  2031. package/src/tool-runtime/ref-consult-runtime.ts +2 -1
  2032. package/src/tool-runtime/refs-gc-runtime.ts +2 -1
  2033. package/src/tool-runtime/self-cognition-catalog.ts +1 -0
  2034. package/src/tool-runtime/self-cognition-runtimes.ts +2 -1
  2035. package/src/tool-runtime/set-working-dir-runtime.ts +2 -1
  2036. package/src/tool-runtime/skill-exec-runtime.ts +3 -2
  2037. package/src/tool-runtime/sync-repo-runtime.ts +2 -1
  2038. package/src/tool-runtime/tool-search-runtime.ts +7 -3
  2039. package/src/tool-runtime/truncation-store.ts +1 -1
  2040. package/src/tool-runtime/types.ts +8 -1
  2041. package/src/tool-runtime/undo-turn-runtime.ts +2 -1
  2042. package/src/tool-runtime/web-terminal-live-camera.ts +2 -1
  2043. package/src/tool-runtime/web-terminal-runtimes.ts +2 -1
  2044. package/src/tool-runtime/web-terminal-screenshot.ts +2 -1
  2045. package/src/tui/branches/app/index.ts +125 -0
  2046. package/src/tui/branches/context.ts +102 -0
  2047. package/src/tui/branches/decide.ts +11 -0
  2048. package/src/tui/branches/first-screen.ts +20 -0
  2049. package/src/tui/branches/harness.ts +32 -0
  2050. package/src/tui/branches/memory.ts +9 -0
  2051. package/src/tui/branches/now.ts +25 -0
  2052. package/src/tui/branches/plugin-wizard.ts +149 -0
  2053. package/src/tui/branches/sidetab/mission.ts +298 -0
  2054. package/src/tui/branches/sidetab/route.ts +54 -0
  2055. package/src/tui/branches/status.ts +75 -0
  2056. package/src/tui/branches/term/route.ts +7 -0
  2057. package/src/tui/chat/background-job-status.ts +36 -1
  2058. package/src/tui/chat/execution-badge.ts +1 -1
  2059. package/src/tui/chat/log-view.ts +137 -17
  2060. package/src/tui/chat/message-block-view.ts +115 -0
  2061. package/src/tui/core/agents.ts +87 -0
  2062. package/src/tui/core/input.ts +70 -0
  2063. package/src/tui/core/message-block-raw-ref.ts +53 -0
  2064. package/src/tui/core/message-block-session.ts +33 -0
  2065. package/src/tui/core/queue.ts +67 -0
  2066. package/src/tui/core/registry.ts +426 -0
  2067. package/src/tui/core/render.ts +307 -0
  2068. package/src/tui/core/screen-paint-cache.ts +41 -0
  2069. package/src/tui/core/turn.ts +126 -0
  2070. package/src/tui/entry.ts +1107 -363
  2071. package/src/tui/inline-choice.ts +163 -47
  2072. package/src/tui/input/composer.ts +51 -26
  2073. package/src/tui/input/inline-panel.ts +30 -0
  2074. package/src/tui/input/pickers.ts +16 -218
  2075. package/src/tui/input/slash-complete.ts +27 -0
  2076. package/src/tui/mission-watch.ts +41 -0
  2077. package/src/tui/persistent-user-memory.ts +53 -0
  2078. package/src/tui/sidetab/attach.ts +20 -266
  2079. package/src/tui/sidetab/herdr-portal.ts +7 -10
  2080. package/src/tui/sidetab/remote.ts +1 -1
  2081. package/src/tui/size-contract.ratchet.json +4 -0
  2082. package/src/tui/slash/compact.ts +1 -1
  2083. package/src/tui/slash/mission.ts +546 -0
  2084. package/src/tui/slash/model.ts +49 -0
  2085. package/src/tui/slash/new-session.ts +4 -3
  2086. package/src/tui/slash/term/contracts.ts +273 -0
  2087. package/src/tui/slash/term/handlers.ts +477 -0
  2088. package/src/tui/slash/term.ts +15 -646
  2089. package/src/tui-client/first-screen-guidance.ts +61 -0
  2090. package/src/tui-client/local-chat-turn.ts +221 -18
  2091. package/src/tui-client/mini-board-feed.ts +125 -0
  2092. package/src/tui-client/mini-board-projection.ts +173 -0
  2093. package/src/tui-client/next-shell-approval.ts +130 -0
  2094. package/src/tui-client/next-wakeup.ts +7 -1
  2095. package/src/tui-client/nexus-board-adapter.ts +179 -0
  2096. package/src/tui-render-cache.ts +1 -1
  2097. package/src/tui-terminal-contract.ts +54 -0
  2098. package/src/tui.ts +4 -58
  2099. package/src/ui/chrome/sidebar-shell-presentation.ts +0 -17
  2100. package/src/ui/context-menu-host.ts +1 -2
  2101. package/src/ui/context-menu-presenter.ts +3 -231
  2102. package/src/ui/declarative/builder.ts +2 -16
  2103. package/src/ui/declarative/builtin-view-catalog.ts +0 -22
  2104. package/src/ui/declarative/decode.ts +1 -4
  2105. package/src/ui/declarative/encode-specs.ts +52 -0
  2106. package/src/ui/declarative/encode.ts +8 -42
  2107. package/src/ui/declarative/index.ts +0 -2
  2108. package/src/ui/declarative/presets.ts +0 -23
  2109. package/src/ui/declarative/spec.ts +1 -4
  2110. package/src/ui/drag-machine.ts +1 -2
  2111. package/src/ui/modal-adapter.ts +1 -1
  2112. package/src/ui/view.ts +2 -2
  2113. package/src/ui/widgets/context-menu.ts +1 -1
  2114. package/src/ui/widgets/dialog.ts +1 -1
  2115. package/src/ui/widgets/file-dialog.ts +1 -1
  2116. package/src/ui/widgets/permission-prompt.ts +1 -1
  2117. package/src/ui/widgets/request-user-input-overlay.ts +1 -1
  2118. package/src/ui/widgets/slash-menu.ts +1 -1
  2119. package/src/user-config/chat.ts +316 -0
  2120. package/src/user-config/orchestrator.ts +70 -0
  2121. package/src/user-config/read.ts +103 -0
  2122. package/src/user-config/reader.ts +11 -0
  2123. package/src/user-config/schema.ts +178 -0
  2124. package/src/user-config/shell.ts +8 -0
  2125. package/src/user-config/sparse-config.ts +57 -0
  2126. package/src/user-config/types.ts +1796 -0
  2127. package/src/user-config/write.ts +451 -0
  2128. package/src/user-config.ts +169 -3110
  2129. package/src/user-intent/logger.ts +1 -1
  2130. package/src/ux/ux-config.ts +1 -1
  2131. package/src/ux-sim/absorb-v2-runGraph-sim.ts +634 -0
  2132. package/src/ux-sim/app-contract-secret-entropy.ts +164 -0
  2133. package/src/ux-sim/app-kill-switch-world.ts +69 -0
  2134. package/src/ux-sim/app-scratch-bootstrap.ts +59 -0
  2135. package/src/ux-sim/app-upgrade-path-world.ts +109 -0
  2136. package/src/ux-sim/arg-macro-canvas-sim.ts +145 -0
  2137. package/src/ux-sim/author-reviewer-precheck-device.ts +1 -1
  2138. package/src/ux-sim/census-oracle-axis-world.ts +37 -0
  2139. package/src/ux-sim/chain-land.ts +26 -4
  2140. package/src/ux-sim/classic-tui-seat-scenarios.ts +87 -5
  2141. package/src/ux-sim/cli-config-audit-device.ts +2 -2
  2142. package/src/ux-sim/device-catalog-snapshot-fragments.ts +83 -0
  2143. package/src/ux-sim/device-fidelity.ts +35 -5
  2144. package/src/ux-sim/edge-creator-nightly.ts +611 -0
  2145. package/src/ux-sim/edge-creator.ts +796 -0
  2146. package/src/ux-sim/fake-absorb-ingest.ts +60 -0
  2147. package/src/ux-sim/fake-adb-phone-world.ts +99 -0
  2148. package/src/ux-sim/fake-agent-hook-host.ts +58 -0
  2149. package/src/ux-sim/fake-android-client.ts +111 -0
  2150. package/src/ux-sim/fake-app-auth.ts +12 -11
  2151. package/src/ux-sim/fake-app-db-backup-world.ts +65 -0
  2152. package/src/ux-sim/fake-app-db-world.ts +200 -0
  2153. package/src/ux-sim/fake-app-drive-world.ts +258 -0
  2154. package/src/ux-sim/fake-app-failures.ts +63 -0
  2155. package/src/ux-sim/fake-app-host.ts +51 -3
  2156. package/src/ux-sim/fake-app-source-concurrent-writer.ts +16 -0
  2157. package/src/ux-sim/fake-app-source-world.ts +59 -0
  2158. package/src/ux-sim/fake-app-storage.ts +1 -1
  2159. package/src/ux-sim/fake-bin-args-sim.ts +136 -0
  2160. package/src/ux-sim/fake-bin-install-helper.mjs +1 -1
  2161. package/src/ux-sim/fake-bin.ts +111 -87
  2162. package/src/ux-sim/fake-clock.ts +8 -0
  2163. package/src/ux-sim/fake-cloud-billing-world.ts +518 -0
  2164. package/src/ux-sim/fake-cloud-vm.ts +2 -0
  2165. package/src/ux-sim/fake-cred.ts +78 -0
  2166. package/src/ux-sim/fake-data-guard-boundary.ts +111 -0
  2167. package/src/ux-sim/fake-dns-cert.ts +58 -5
  2168. package/src/ux-sim/fake-feeds.ts +189 -0
  2169. package/src/ux-sim/fake-fetch.ts +47 -4
  2170. package/src/ux-sim/fake-gh.ts +41 -2
  2171. package/src/ux-sim/fake-google-drive-world.ts +81 -0
  2172. package/src/ux-sim/fake-google-oauth.ts +88 -0
  2173. package/src/ux-sim/fake-herdr.ts +39 -0
  2174. package/src/ux-sim/fake-higgsfield.ts +13 -0
  2175. package/src/ux-sim/fake-kubectl.ts +7 -0
  2176. package/src/ux-sim/fake-land-queue.ts +39 -8
  2177. package/src/ux-sim/fake-llm.ts +468 -13
  2178. package/src/ux-sim/fake-market-feed.ts +114 -0
  2179. package/src/ux-sim/fake-member-oidc-world.ts +92 -0
  2180. package/src/ux-sim/fake-mobile-toolchain.ts +72 -0
  2181. package/src/ux-sim/fake-nexus-board-server.ts +68 -0
  2182. package/src/ux-sim/fake-nexus-plugin-wizard.ts +47 -0
  2183. package/src/ux-sim/fake-ps.ts +10 -0
  2184. package/src/ux-sim/fake-relay-world.ts +513 -0
  2185. package/src/ux-sim/fake-telegram-outbound.ts +71 -0
  2186. package/src/ux-sim/fake-temp-cleanup.ts +96 -0
  2187. package/src/ux-sim/fault-pod-codex-503.ts +61 -41
  2188. package/src/ux-sim/fixtures/kaist-child-artifacts/bad-search/search.html +1 -0
  2189. package/src/ux-sim/fixtures/kaist-child-artifacts/home/index.html +1 -0
  2190. package/src/ux-sim/fixtures/kaist-child-artifacts/search/search/index.html +1 -0
  2191. package/src/ux-sim/fixtures/task-launch-entry.mjs +14 -0
  2192. package/src/ux-sim/fixtures/train-manager-decision-v1.json +66 -0
  2193. package/src/ux-sim/flutter-deploy-journey.ts +111 -0
  2194. package/src/ux-sim/gate-closure-lazy-require-sim.ts +102 -0
  2195. package/src/ux-sim/gate-image-layered-delta-sim.ts +93 -0
  2196. package/src/ux-sim/gate-image-pin-handshake-sim.ts +147 -0
  2197. package/src/ux-sim/gate-image-preflight-runtime-identity-flow-sim.ts +270 -0
  2198. package/src/ux-sim/gate-image-preflight-runtime-identity-sim.ts +61 -0
  2199. package/src/ux-sim/gate-receipt-file-closure-cas.ts +183 -0
  2200. package/src/ux-sim/gate-repair-multi-file-sim.ts +132 -0
  2201. package/src/ux-sim/gate-roster-second-pool.ts +220 -0
  2202. package/src/ux-sim/gate-shard-host-reroute.ts +14 -3
  2203. package/src/ux-sim/gate-steady-state-proof-sim.ts +76 -0
  2204. package/src/ux-sim/gcp-architect-expand-fake-world.ts +133 -0
  2205. package/src/ux-sim/git-push-timeout-partial-outcome-remote-verify.ts +45 -0
  2206. package/src/ux-sim/graph-design-sim.ts +260 -0
  2207. package/src/ux-sim/graph-diff-apply.ts +169 -0
  2208. package/src/ux-sim/graph-event-entry-world.ts +71 -0
  2209. package/src/ux-sim/graph-placement-lease-world.ts +109 -0
  2210. package/src/ux-sim/graph-resume-any-entry.ts +134 -0
  2211. package/src/ux-sim/graph-run-lifecycle-world.ts +99 -0
  2212. package/src/ux-sim/graph-trigger-hook-device.ts +146 -0
  2213. package/src/ux-sim/hotspot-file-lease-world.ts +16 -0
  2214. package/src/ux-sim/in-process-cli-539-file-adoption-sim.ts +124 -0
  2215. package/src/ux-sim/in-process-cli.ts +254 -23
  2216. package/src/ux-sim/install-consent-device.ts +8 -5
  2217. package/src/ux-sim/install-one-liner-failsafe-device.ts +157 -0
  2218. package/src/ux-sim/interaction.ts +36 -2
  2219. package/src/ux-sim/ios-chat-edge-adapter.ts +147 -0
  2220. package/src/ux-sim/light-rc-long-run-device.ts +44 -0
  2221. package/src/ux-sim/log-volume-device.ts +41 -0
  2222. package/src/ux-sim/mapreduce-multihost-sim.ts +158 -0
  2223. package/src/ux-sim/mini-board-card.ts +95 -0
  2224. package/src/ux-sim/mock-scenario-catalog.ts +100 -8
  2225. package/src/ux-sim/mock-seat-pty-sequence.ts +9 -4
  2226. package/src/ux-sim/multi-actor-world.ts +206 -0
  2227. package/src/ux-sim/multi-tenant-relay-world.ts +531 -0
  2228. package/src/ux-sim/network-sandbox.ts +31 -0
  2229. package/src/ux-sim/next-tui-core-input.ts +65 -0
  2230. package/src/ux-sim/next-tui-plugin-wizard-world.ts +27 -0
  2231. package/src/ux-sim/next-tui-route-device.ts +20 -0
  2232. package/src/ux-sim/next-tui-seat-scenarios.ts +366 -64
  2233. package/src/ux-sim/nl-scenario.ts +56 -0
  2234. package/src/ux-sim/outbound-guard-sim.ts +82 -0
  2235. package/src/ux-sim/phone-pwa-selfheal.ts +163 -0
  2236. package/src/ux-sim/plugin-release-observe-route-world.ts +92 -0
  2237. package/src/ux-sim/plugin-yaml-gen-world.ts +62 -0
  2238. package/src/ux-sim/pod-federation-sim.ts +196 -0
  2239. package/src/ux-sim/pod-phase-prewarm-sim.ts +12 -0
  2240. package/src/ux-sim/pod-phase-prewarm.ts +36 -0
  2241. package/src/ux-sim/pod-reuse-match-by-kind-sim.ts +56 -0
  2242. package/src/ux-sim/pod-reuse-shared-fake-boundary.ts +69 -0
  2243. package/src/ux-sim/pod-reuse-world.ts +300 -0
  2244. package/src/ux-sim/pr-land-drift-autorepair-device.ts +58 -0
  2245. package/src/ux-sim/pr-land-drift-gate-device.ts +14 -0
  2246. package/src/ux-sim/public-auth-provider-cloud-vm-sim.ts +111 -0
  2247. package/src/ux-sim/pwa-provenance-badge-world.ts +25 -0
  2248. package/src/ux-sim/pwa-retained-routes-world.ts +25 -0
  2249. package/src/ux-sim/pwa-static-swap.ts +28 -0
  2250. package/src/ux-sim/readiness-countdown.ts +332 -0
  2251. package/src/ux-sim/real-target-sandbox.ts +209 -0
  2252. package/src/ux-sim/release-day-0307-replay.ts +529 -0
  2253. package/src/ux-sim/release-event-trace.ts +79 -0
  2254. package/src/ux-sim/release-publish-devices.ts +43 -0
  2255. package/src/ux-sim/release-same-version-run-adoption-sim.ts +186 -0
  2256. package/src/ux-sim/release-sim-rig-seat-guard-child.ts +57 -0
  2257. package/src/ux-sim/release-sim-rig.ts +1780 -121
  2258. package/src/ux-sim/repo-maintenance.ts +142 -0
  2259. package/src/ux-sim/rla-context-release-status-arrival-event.ts +107 -0
  2260. package/src/ux-sim/rla-event-response-scorecard.ts +275 -0
  2261. package/src/ux-sim/rla-macrophage-heal-timeout-stale-output-sim.ts +41 -0
  2262. package/src/ux-sim/scenarios/rla-sim-vocab-node-edge.yaml +23 -0
  2263. package/src/ux-sim/sim-coverage.ts +19 -1
  2264. package/src/ux-sim/sim-receipt.ts +185 -0
  2265. package/src/ux-sim/smart-merge-world.ts +693 -0
  2266. package/src/ux-sim/ta-land-count-dispatcher-sim.ts +93 -0
  2267. package/src/ux-sim/task-orchestrator-surfaces-self-implement-pod-device.ts +1 -1
  2268. package/src/ux-sim/temp-git-remote.ts +25 -2
  2269. package/src/ux-sim/tool-router-world.ts +137 -0
  2270. package/src/ux-sim/train-manager-decision-sim.ts +6 -0
  2271. package/src/ux-sim/train-manager-world.ts +188 -0
  2272. package/src/ux-sim/user-config-default-sparse-sim.ts +68 -0
  2273. package/src/ux-sim/user-config-tui-diet-sim.ts +71 -0
  2274. package/src/ux-sim/warm-pool-declare-path-sim.ts +19 -0
  2275. package/src/ux-sim/warm-pool-reuse-sim.ts +53 -16
  2276. package/src/ux-sim/warm-pool-reuse-switch-sim.ts +111 -4
  2277. package/src/ux-sim/warm-si-reuse-sim.ts +127 -31
  2278. package/src/ux-sim/worktree-deps-shared-store.ts +45 -0
  2279. package/src/ux-sim/world-chaos-runtime.ts +55 -19
  2280. package/src/ux-sim/world-host-chaos.ts +185 -5
  2281. package/src/ux-sim/world-regression-suite.ts +197 -0
  2282. package/src/ux-sim/world-schema.ts +32 -12
  2283. package/src/ux-sim/world-store.ts +7 -2
  2284. package/src/ux-sim/world-watch.ts +95 -0
  2285. package/src/ux-sim/world.ts +1157 -35
  2286. package/src/version/packed-revision.json +1 -1
  2287. package/src/video-pipeline/vflow-reference.ts +1 -2
  2288. package/src/views/config.ts +0 -24
  2289. package/src/views/product-compact-mode.ts +0 -6
  2290. package/src/voice/channel-adapters/discord-voice-channel-adapter.ts +2 -5
  2291. package/src/voice/channel-adapters/discord-voice-channel-commands.ts +1 -1
  2292. package/src/voice/channel-adapters/discord-voice-channel-harness.ts +1 -1
  2293. package/src/voice/voice-streaming-stt-singleton.ts +1 -1
  2294. package/src/voice/voice-tts-singleton.ts +1 -1
  2295. package/src/widget-routing/pane-to-widget.ts +2 -3
  2296. package/src/widget-routing/widget-dispatcher.ts +1 -2
  2297. package/src/widgets/host.ts +2 -3
  2298. package/src/widgets/mini-board.ts +72 -0
  2299. package/src/widgets/types.ts +1 -1
  2300. package/src/workflow-runtime/daemon.ts +11 -0
  2301. package/src/workflow-runtime/executor.ts +1 -3
  2302. package/src/workflow-runtime/parser.ts +3 -2
  2303. package/src/workflow-runtime/schema.ts +1 -4
  2304. package/src/workflow-runtime/triggers/scheduler.ts +1 -1
  2305. package/src/workflow-runtime/triggers/webhook-source.ts +12 -0
  2306. package/src/workspace-types.ts +0 -1
  2307. package/templates/event-landing-editorial/DESIGN.md +12 -0
  2308. package/templates/flutter-app-lecture-scrap/README.md +32 -0
  2309. package/templates/flutter-app-lecture-scrap/android/app/build.gradle.kts +79 -0
  2310. package/templates/flutter-app-lecture-scrap/android/app/src/debug/AndroidManifest.xml +7 -0
  2311. package/templates/flutter-app-lecture-scrap/android/app/src/main/AndroidManifest.xml +46 -0
  2312. package/templates/flutter-app-lecture-scrap/android/app/src/main/kotlin/ai/elanous/lecture_scrap/MainActivity.kt +5 -0
  2313. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable/launch_background.xml +12 -0
  2314. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
  2315. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  2316. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  2317. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  2318. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  2319. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  2320. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values/styles.xml +18 -0
  2321. package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values-night/styles.xml +18 -0
  2322. package/templates/flutter-app-lecture-scrap/android/app/src/profile/AndroidManifest.xml +7 -0
  2323. package/templates/flutter-app-lecture-scrap/android/build.gradle.kts +24 -0
  2324. package/templates/flutter-app-lecture-scrap/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  2325. package/templates/flutter-app-lecture-scrap/android/gradle.properties +6 -0
  2326. package/templates/flutter-app-lecture-scrap/android/settings.gradle.kts +26 -0
  2327. package/templates/flutter-app-lecture-scrap/app.yaml +60 -0
  2328. package/templates/flutter-app-lecture-scrap/lib/main.dart +392 -0
  2329. package/templates/flutter-app-lecture-scrap/out/index.html +7 -0
  2330. package/templates/flutter-app-lecture-scrap/pubspec.lock +348 -0
  2331. package/templates/flutter-app-lecture-scrap/pubspec.yaml +14 -0
  2332. package/templates/flutter-app-translator/README.md +41 -0
  2333. package/templates/flutter-app-translator/lib/main.dart +602 -0
  2334. package/templates/flutter-app-translator/lib/recording_cleanup.dart +8 -0
  2335. package/templates/flutter-app-translator/lib/session_epoch.dart +22 -0
  2336. package/templates/flutter-app-translator/pubspec.yaml +24 -0
  2337. package/templates/flutter-app-translator/test/session_lifecycle_test.dart +168 -0
  2338. package/templates/flutter-app-voice-note/README.md +34 -0
  2339. package/templates/flutter-app-voice-note/android/app/build.gradle.kts +85 -0
  2340. package/templates/flutter-app-voice-note/android/app/src/debug/AndroidManifest.xml +7 -0
  2341. package/templates/flutter-app-voice-note/android/app/src/main/AndroidManifest.xml +59 -0
  2342. package/templates/flutter-app-voice-note/android/app/src/main/kotlin/com/example/flutter_app_voice_note/MainActivity.kt +5 -0
  2343. package/templates/flutter-app-voice-note/android/app/src/main/res/drawable/launch_background.xml +12 -0
  2344. package/templates/flutter-app-voice-note/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
  2345. package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  2346. package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  2347. package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  2348. package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  2349. package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  2350. package/templates/flutter-app-voice-note/android/app/src/main/res/values/styles.xml +18 -0
  2351. package/templates/flutter-app-voice-note/android/app/src/main/res/values-night/styles.xml +18 -0
  2352. package/templates/flutter-app-voice-note/android/app/src/profile/AndroidManifest.xml +7 -0
  2353. package/templates/flutter-app-voice-note/android/build.gradle.kts +24 -0
  2354. package/templates/flutter-app-voice-note/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  2355. package/templates/flutter-app-voice-note/android/gradle.properties +6 -0
  2356. package/templates/flutter-app-voice-note/android/settings.gradle.kts +26 -0
  2357. package/templates/flutter-app-voice-note/app.yaml +18 -0
  2358. package/templates/flutter-app-voice-note/ios/Flutter/AppFrameworkInfo.plist +24 -0
  2359. package/templates/flutter-app-voice-note/ios/Flutter/Debug.xcconfig +1 -0
  2360. package/templates/flutter-app-voice-note/ios/Flutter/Release.xcconfig +1 -0
  2361. package/templates/flutter-app-voice-note/ios/Runner/AppDelegate.swift +16 -0
  2362. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
  2363. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
  2364. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
  2365. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
  2366. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
  2367. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
  2368. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
  2369. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
  2370. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
  2371. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
  2372. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
  2373. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
  2374. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
  2375. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
  2376. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
  2377. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
  2378. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
  2379. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
  2380. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
  2381. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
  2382. package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
  2383. package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
  2384. package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/Main.storyboard +26 -0
  2385. package/templates/flutter-app-voice-note/ios/Runner/Info.plist +83 -0
  2386. package/templates/flutter-app-voice-note/ios/Runner/Runner-Bridging-Header.h +1 -0
  2387. package/templates/flutter-app-voice-note/ios/Runner/SceneDelegate.swift +6 -0
  2388. package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.pbxproj +647 -0
  2389. package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  2390. package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  2391. package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  2392. package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +119 -0
  2393. package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/contents.xcworkspacedata +7 -0
  2394. package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  2395. package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  2396. package/templates/flutter-app-voice-note/ios/RunnerTests/RunnerTests.swift +12 -0
  2397. package/templates/flutter-app-voice-note/lib/main.dart +765 -0
  2398. package/templates/flutter-app-voice-note/lib/voice_note_service.dart +341 -0
  2399. package/templates/flutter-app-voice-note/out/index.html +11 -0
  2400. package/templates/flutter-app-voice-note/pubspec.lock +777 -0
  2401. package/templates/flutter-app-voice-note/pubspec.yaml +24 -0
  2402. package/templates/flutter-app-voice-note/test/voice_note_service_test.dart +559 -0
  2403. package/templates/next-app-lecture-scrap/app/layout.jsx +3 -0
  2404. package/templates/next-app-lecture-scrap/app/notes/new/page.jsx +12 -0
  2405. package/templates/next-app-lecture-scrap/app/page.jsx +9 -0
  2406. package/templates/next-app-lecture-scrap/app/search/page.jsx +10 -0
  2407. package/templates/next-app-lecture-scrap/app.yaml +88 -0
  2408. package/templates/next-app-lecture-scrap/next.config.mjs +1 -0
  2409. package/templates/next-app-lecture-scrap/package.json +20 -0
  2410. package/templates/next-app-shop-studio/app/layout.tsx +15 -0
  2411. package/templates/next-app-shop-studio/app/page.tsx +32 -0
  2412. package/templates/next-app-shop-studio/app.yaml +90 -0
  2413. package/templates/next-app-shop-studio/next.config.ts +8 -0
  2414. package/templates/next-app-shop-studio/package.json +20 -0
  2415. package/templates/next-app-translator/app/layout.tsx +15 -0
  2416. package/templates/next-app-translator/app/page.tsx +16 -0
  2417. package/templates/next-app-translator/app.yaml +69 -0
  2418. package/templates/next-app-translator/next.config.ts +8 -0
  2419. package/templates/next-app-translator/package.json +21 -0
  2420. package/templates/next-app-voice-note/app.yaml +99 -0
  2421. package/templates/next-app-voice-note/package.json +22 -0
  2422. package/apps/pwa/out/404/index.html +0 -1
  2423. package/apps/pwa/out/404.html +0 -1
  2424. package/apps/pwa/out/_next/static/chunks/01af03c4.71e22e1e1aca813e.js +0 -18
  2425. package/apps/pwa/out/_next/static/chunks/0e3e9261.84afa98360d3b889.js +0 -1
  2426. package/apps/pwa/out/_next/static/chunks/1163.de587836684ae0e8.js +0 -74
  2427. package/apps/pwa/out/_next/static/chunks/124-5c8fb000f2fef6fd.js +0 -1
  2428. package/apps/pwa/out/_next/static/chunks/147.48bf376824f7df0a.js +0 -8
  2429. package/apps/pwa/out/_next/static/chunks/1623-0cd4aabb94e3fc0d.js +0 -1
  2430. package/apps/pwa/out/_next/static/chunks/1689-5ee3c3dd16ab8667.js +0 -1
  2431. package/apps/pwa/out/_next/static/chunks/1783.708de9a0182ac571.js +0 -41
  2432. package/apps/pwa/out/_next/static/chunks/1807-778f3031dc089a09.js +0 -1
  2433. package/apps/pwa/out/_next/static/chunks/1911-bc30f2d39d2b318e.js +0 -25
  2434. package/apps/pwa/out/_next/static/chunks/1968.4f77d6f940c26d94.js +0 -1
  2435. package/apps/pwa/out/_next/static/chunks/1985.ab97a36d1b3a9458.js +0 -36
  2436. package/apps/pwa/out/_next/static/chunks/2169.709268f6190a67e4.js +0 -1
  2437. package/apps/pwa/out/_next/static/chunks/2215.90b2a595c9880580.js +0 -1
  2438. package/apps/pwa/out/_next/static/chunks/2233.061c80f2a79abb24.js +0 -1
  2439. package/apps/pwa/out/_next/static/chunks/2466.ff652b24ae9dee2a.js +0 -32
  2440. package/apps/pwa/out/_next/static/chunks/2541-70d25b112ae1960d.js +0 -1
  2441. package/apps/pwa/out/_next/static/chunks/2556-14a3c1858511d4b2.js +0 -1
  2442. package/apps/pwa/out/_next/static/chunks/259.ff45e655e5e41a4d.js +0 -193
  2443. package/apps/pwa/out/_next/static/chunks/2592.cc0b9dc547aca123.js +0 -104
  2444. package/apps/pwa/out/_next/static/chunks/2708-f51dd5bc56aed2a7.js +0 -1
  2445. package/apps/pwa/out/_next/static/chunks/2845ea08.c590f5c7ddc06b98.js +0 -122
  2446. package/apps/pwa/out/_next/static/chunks/2856-d3c6d2706d6cc45e.js +0 -1
  2447. package/apps/pwa/out/_next/static/chunks/2883-5b4aaa3950d416c2.js +0 -1
  2448. package/apps/pwa/out/_next/static/chunks/2999.c462d95ab66dba3a.js +0 -1
  2449. package/apps/pwa/out/_next/static/chunks/2c8c2385.34ce9456dac99420.js +0 -1
  2450. package/apps/pwa/out/_next/static/chunks/3085.59001f746a9a2e8c.js +0 -1
  2451. package/apps/pwa/out/_next/static/chunks/3162-94995e3e8f1524f3.js +0 -1
  2452. package/apps/pwa/out/_next/static/chunks/3176.fcf82fd6b3fcfff5.js +0 -1
  2453. package/apps/pwa/out/_next/static/chunks/3177-151f3b49f3b2d2ef.js +0 -1
  2454. package/apps/pwa/out/_next/static/chunks/3196.4d0730f411899434.js +0 -1
  2455. package/apps/pwa/out/_next/static/chunks/3235.7b9c3e9c55ea6d98.js +0 -1
  2456. package/apps/pwa/out/_next/static/chunks/3414-037ce9f127904fe2.js +0 -1
  2457. package/apps/pwa/out/_next/static/chunks/348.b77e8e6b6ed5230c.js +0 -1
  2458. package/apps/pwa/out/_next/static/chunks/3483-f7f5f9a66e1780ad.js +0 -1
  2459. package/apps/pwa/out/_next/static/chunks/3501.d2b92806ac1d949e.js +0 -287
  2460. package/apps/pwa/out/_next/static/chunks/3552.e6be7ac885976039.js +0 -1
  2461. package/apps/pwa/out/_next/static/chunks/366-eb724714d15eb3f4.js +0 -1
  2462. package/apps/pwa/out/_next/static/chunks/3700.422355522e15e182.js +0 -2
  2463. package/apps/pwa/out/_next/static/chunks/3789.443ac3d6037b503c.js +0 -1
  2464. package/apps/pwa/out/_next/static/chunks/4278.5624379f0c23ee3d.js +0 -1
  2465. package/apps/pwa/out/_next/static/chunks/4365-9e2bea90e6243b8e.js +0 -1
  2466. package/apps/pwa/out/_next/static/chunks/4388.42598a55da8c47cf.js +0 -1
  2467. package/apps/pwa/out/_next/static/chunks/4530.3a14a074896302f2.js +0 -1
  2468. package/apps/pwa/out/_next/static/chunks/4557-3b576c4706df592d.js +0 -1
  2469. package/apps/pwa/out/_next/static/chunks/4647.a6e02754d5dcf398.js +0 -5
  2470. package/apps/pwa/out/_next/static/chunks/4793-a77c3acf9ffc4454.js +0 -1
  2471. package/apps/pwa/out/_next/static/chunks/4806.d7a41078ec5f9e6f.js +0 -1
  2472. package/apps/pwa/out/_next/static/chunks/4881.ad56fcbdcfb39a23.js +0 -1
  2473. package/apps/pwa/out/_next/static/chunks/4983.cb812be748dd07e5.js +0 -1
  2474. package/apps/pwa/out/_next/static/chunks/5054.cef07be26f74f202.js +0 -1
  2475. package/apps/pwa/out/_next/static/chunks/5075.b30af8ae9aadc959.js +0 -226
  2476. package/apps/pwa/out/_next/static/chunks/5323.277ad337906fe70a.js +0 -309
  2477. package/apps/pwa/out/_next/static/chunks/5464-5837a4fba34df983.js +0 -1
  2478. package/apps/pwa/out/_next/static/chunks/5535-3d077c5296902ba6.js +0 -1
  2479. package/apps/pwa/out/_next/static/chunks/5640.b32a01e556340532.js +0 -38
  2480. package/apps/pwa/out/_next/static/chunks/5654.1b52dfa2ffb08352.js +0 -1
  2481. package/apps/pwa/out/_next/static/chunks/6.aa2a99e9454c9a8d.js +0 -1
  2482. package/apps/pwa/out/_next/static/chunks/6208.70eba139a9c68af3.js +0 -1
  2483. package/apps/pwa/out/_next/static/chunks/6251.a547705e850c5149.js +0 -9
  2484. package/apps/pwa/out/_next/static/chunks/6253.d4f0940b616f889d.js +0 -1
  2485. package/apps/pwa/out/_next/static/chunks/6281-8492f70e843316fa.js +0 -1
  2486. package/apps/pwa/out/_next/static/chunks/6289-3c8732cbeeeb62a2.js +0 -1
  2487. package/apps/pwa/out/_next/static/chunks/6332-d5edcc5c35500524.js +0 -1
  2488. package/apps/pwa/out/_next/static/chunks/6433.e0006a1e924a2131.js +0 -1
  2489. package/apps/pwa/out/_next/static/chunks/6437.3cd4d04efb8ab871.js +0 -286
  2490. package/apps/pwa/out/_next/static/chunks/6461-5584cf24a661817a.js +0 -1
  2491. package/apps/pwa/out/_next/static/chunks/6618-9b8d9a46ede0c41e.js +0 -1
  2492. package/apps/pwa/out/_next/static/chunks/6715-f1316dd169ff9f50.js +0 -1
  2493. package/apps/pwa/out/_next/static/chunks/6735-e62669175cce8686.js +0 -1
  2494. package/apps/pwa/out/_next/static/chunks/6841.ed452e7d06f598ee.js +0 -1
  2495. package/apps/pwa/out/_next/static/chunks/6937.0bdc3185f2ace9e4.js +0 -79
  2496. package/apps/pwa/out/_next/static/chunks/6c25ab46.9d19c4994d7f5495.js +0 -160
  2497. package/apps/pwa/out/_next/static/chunks/7015-6abc8f1809ff071f.js +0 -1
  2498. package/apps/pwa/out/_next/static/chunks/7056-c994bfc3e3701439.js +0 -1
  2499. package/apps/pwa/out/_next/static/chunks/712-4496b0c3ac3e4b75.js +0 -1
  2500. package/apps/pwa/out/_next/static/chunks/7151.d2511e5f23155242.js +0 -1
  2501. package/apps/pwa/out/_next/static/chunks/7228.8cb7ac9d98e331d5.js +0 -34
  2502. package/apps/pwa/out/_next/static/chunks/725.63b4017563b04379.js +0 -93
  2503. package/apps/pwa/out/_next/static/chunks/7250-70e47260b60cd47e.js +0 -1
  2504. package/apps/pwa/out/_next/static/chunks/7263-34fefd269746719c.js +0 -1
  2505. package/apps/pwa/out/_next/static/chunks/7663.e4ea6f8c14df314c.js +0 -66
  2506. package/apps/pwa/out/_next/static/chunks/77.b432098b663eb23e.js +0 -1
  2507. package/apps/pwa/out/_next/static/chunks/770.f7b4481b25fe01c4.js +0 -148
  2508. package/apps/pwa/out/_next/static/chunks/7746.c8b9b75e18472c54.js +0 -115
  2509. package/apps/pwa/out/_next/static/chunks/7923.35fed012b66d1420.js +0 -217
  2510. package/apps/pwa/out/_next/static/chunks/7959.4e02edd1fdf86b05.js +0 -1
  2511. package/apps/pwa/out/_next/static/chunks/7974-b134a047264b1e55.js +0 -1
  2512. package/apps/pwa/out/_next/static/chunks/8089-c13a0ed6973e7490.js +0 -1
  2513. package/apps/pwa/out/_next/static/chunks/8101.31728c5a01a6167b.js +0 -77
  2514. package/apps/pwa/out/_next/static/chunks/8231.297058c760d62aee.js +0 -1
  2515. package/apps/pwa/out/_next/static/chunks/8389.af75612ea24ceba6.js +0 -24
  2516. package/apps/pwa/out/_next/static/chunks/8427.085d79f7afbb3825.js +0 -149
  2517. package/apps/pwa/out/_next/static/chunks/8473.20a465ef76441b50.js +0 -1
  2518. package/apps/pwa/out/_next/static/chunks/8541.3a501dabd3140fd0.js +0 -1
  2519. package/apps/pwa/out/_next/static/chunks/8739-f0deba2b3e06427c.js +0 -1
  2520. package/apps/pwa/out/_next/static/chunks/8818.02938c951b1000d1.js +0 -94
  2521. package/apps/pwa/out/_next/static/chunks/8846.3103ace634243ee8.js +0 -64
  2522. package/apps/pwa/out/_next/static/chunks/8847.72b1b3e33bcad95a.js +0 -1
  2523. package/apps/pwa/out/_next/static/chunks/8883-30b5a763ec36eafa.js +0 -1
  2524. package/apps/pwa/out/_next/static/chunks/9052.0be41f794a5fb029.js +0 -86
  2525. package/apps/pwa/out/_next/static/chunks/9086.b691a72402d521d5.js +0 -27
  2526. package/apps/pwa/out/_next/static/chunks/9133.0be4ebb6c50cd78a.js +0 -1
  2527. package/apps/pwa/out/_next/static/chunks/916.3a04c642f0e5ff90.js +0 -1
  2528. package/apps/pwa/out/_next/static/chunks/9240.1637f5e69335d06b.js +0 -62
  2529. package/apps/pwa/out/_next/static/chunks/9298-cd7b117f1a5be480.js +0 -1
  2530. package/apps/pwa/out/_next/static/chunks/9340-c2ac8651b03e94b2.js +0 -1
  2531. package/apps/pwa/out/_next/static/chunks/9376.35941fbddcbfe1d4.js +0 -1
  2532. package/apps/pwa/out/_next/static/chunks/9424.9062e8119fae997a.js +0 -24
  2533. package/apps/pwa/out/_next/static/chunks/9486.8ef4e64969908842.js +0 -1
  2534. package/apps/pwa/out/_next/static/chunks/9488.98d1b3c092da470a.js +0 -23
  2535. package/apps/pwa/out/_next/static/chunks/9648-42f1d4648cfa7eb8.js +0 -1
  2536. package/apps/pwa/out/_next/static/chunks/9781-946d591f1e66da8d.js +0 -1
  2537. package/apps/pwa/out/_next/static/chunks/9844.72bbf73fd214af65.js +0 -90
  2538. package/apps/pwa/out/_next/static/chunks/9850.90badc8e9b213e5a.js +0 -1
  2539. package/apps/pwa/out/_next/static/chunks/9868.027b845025f57183.js +0 -1
  2540. package/apps/pwa/out/_next/static/chunks/9948-dbde92fff6625cad.js +0 -1
  2541. package/apps/pwa/out/_next/static/chunks/9951-b903d4a257c01657.js +0 -1
  2542. package/apps/pwa/out/_next/static/chunks/9ccc18c7-87a6c1410d97d560.js +0 -1
  2543. package/apps/pwa/out/_next/static/chunks/abec6764.4a84c474be416fb7.js +0 -62
  2544. package/apps/pwa/out/_next/static/chunks/app/_not-found/page-a76e282302331a47.js +0 -1
  2545. package/apps/pwa/out/_next/static/chunks/app/approvals/page-9c79d56c52c3b39c.js +0 -1
  2546. package/apps/pwa/out/_next/static/chunks/app/autopilot/page-cd45c61031d63214.js +0 -1
  2547. package/apps/pwa/out/_next/static/chunks/app/board/page-e133c057c3c62663.js +0 -1
  2548. package/apps/pwa/out/_next/static/chunks/app/botlab/page-89ff7827ff5f449f.js +0 -1
  2549. package/apps/pwa/out/_next/static/chunks/app/bots/page-0cd71686fa026045.js +0 -1
  2550. package/apps/pwa/out/_next/static/chunks/app/ceo/page-a0b329a1295e9704.js +0 -1
  2551. package/apps/pwa/out/_next/static/chunks/app/chat/page-f4b64283a86189e3.js +0 -1
  2552. package/apps/pwa/out/_next/static/chunks/app/consult/page-c6567da3170d92b7.js +0 -1
  2553. package/apps/pwa/out/_next/static/chunks/app/control/page-90bff14d4d1104a9.js +0 -1
  2554. package/apps/pwa/out/_next/static/chunks/app/decisions/page-bc7f2d53539f1599.js +0 -1
  2555. package/apps/pwa/out/_next/static/chunks/app/design-check/page-51dd1cfa869e3e9e.js +0 -1
  2556. package/apps/pwa/out/_next/static/chunks/app/editor/page-734e98ce83fcb338.js +0 -1
  2557. package/apps/pwa/out/_next/static/chunks/app/exec/page-0dbd78003825005e.js +0 -1
  2558. package/apps/pwa/out/_next/static/chunks/app/field/page-d716d9e3eebe01c9.js +0 -1
  2559. package/apps/pwa/out/_next/static/chunks/app/healthz/route-a76e282302331a47.js +0 -1
  2560. package/apps/pwa/out/_next/static/chunks/app/inside/page-35ac985a392a23da.js +0 -1
  2561. package/apps/pwa/out/_next/static/chunks/app/intake/page-8169a6d36aca9d00.js +0 -1
  2562. package/apps/pwa/out/_next/static/chunks/app/layout-c07319ebc55c858f.js +0 -1
  2563. package/apps/pwa/out/_next/static/chunks/app/live/page-e74b1236e3318957.js +0 -1
  2564. package/apps/pwa/out/_next/static/chunks/app/live-run/page-f2d9e65f2fa34919.js +0 -1
  2565. package/apps/pwa/out/_next/static/chunks/app/loops/page-e44e85553f3d1747.js +0 -1
  2566. package/apps/pwa/out/_next/static/chunks/app/market/page-9786452dd87449f8.js +0 -1
  2567. package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-c01f73b8ca382e89.js +0 -1
  2568. package/apps/pwa/out/_next/static/chunks/app/morning/page-4ba4b24fc4aa2262.js +0 -1
  2569. package/apps/pwa/out/_next/static/chunks/app/not-found-e4f1cff672c21cf5.js +0 -1
  2570. package/apps/pwa/out/_next/static/chunks/app/observatory/page-7408295e90c5f3da.js +0 -1
  2571. package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-5145d13713aa12ba.js +0 -1
  2572. package/apps/pwa/out/_next/static/chunks/app/ops/release/page-4b40d62f2182addf.js +0 -1
  2573. package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-cbf974b1f9c988e2.js +0 -1
  2574. package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-e63ff6bd28f8c0c9.js +0 -1
  2575. package/apps/pwa/out/_next/static/chunks/app/outputs/page-a9dd827a1ab83e4f.js +0 -1
  2576. package/apps/pwa/out/_next/static/chunks/app/page-367850708c52c660.js +0 -1
  2577. package/apps/pwa/out/_next/static/chunks/app/reflection/page-b1456fb9b51a4fd7.js +0 -1
  2578. package/apps/pwa/out/_next/static/chunks/app/scheduler/page-26867b3d37b1e7a8.js +0 -1
  2579. package/apps/pwa/out/_next/static/chunks/app/sessions/page-82c9de5c8c37b051.js +0 -1
  2580. package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-7f03bb1e52c1a43d.js +0 -1
  2581. package/apps/pwa/out/_next/static/chunks/app/settings/page-8b9f729cfc8ebc14.js +0 -1
  2582. package/apps/pwa/out/_next/static/chunks/app/setup/done/page-f2dec730b93abfab.js +0 -1
  2583. package/apps/pwa/out/_next/static/chunks/app/setup/layout-a76e282302331a47.js +0 -1
  2584. package/apps/pwa/out/_next/static/chunks/app/setup/page-fa6f33a05e473556.js +0 -1
  2585. package/apps/pwa/out/_next/static/chunks/app/share/page-5e0e3113bfda415d.js +0 -1
  2586. package/apps/pwa/out/_next/static/chunks/app/showroom/page-7864eff18ce702ba.js +0 -1
  2587. package/apps/pwa/out/_next/static/chunks/app/tasks/page-e29cc254c3ee0054.js +0 -1
  2588. package/apps/pwa/out/_next/static/chunks/app/term/page-cd2f7856a7dc4849.js +0 -1
  2589. package/apps/pwa/out/_next/static/chunks/app/today/page-2de3d35eb5a86aae.js +0 -1
  2590. package/apps/pwa/out/_next/static/chunks/app/trace/page-cdb70038ead4a184.js +0 -1
  2591. package/apps/pwa/out/_next/static/chunks/app/vault/page-e093c97ee87aca70.js +0 -1
  2592. package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-fb97121241bc7cfc.js +0 -1
  2593. package/apps/pwa/out/_next/static/chunks/app/workflows/page-3072b3b9e14ea04d.js +0 -1
  2594. package/apps/pwa/out/_next/static/chunks/app/workspace/page-a976e10f6c3f82bd.js +0 -1
  2595. package/apps/pwa/out/_next/static/chunks/app/worktrees/page-dfbc7268ba631190.js +0 -1
  2596. package/apps/pwa/out/_next/static/chunks/c9c445f7.15a7d747f61c56e6.js +0 -1
  2597. package/apps/pwa/out/_next/static/chunks/d1dc888b.cc6ca4afda9a5ef8.js +0 -66
  2598. package/apps/pwa/out/_next/static/chunks/dc5145c8.9547e252e2e1d3d1.js +0 -1
  2599. package/apps/pwa/out/_next/static/chunks/e5a2a050-4b51c1f86f5cc4bb.js +0 -1
  2600. package/apps/pwa/out/_next/static/chunks/framework-5a93f9a572271e1c.js +0 -1
  2601. package/apps/pwa/out/_next/static/chunks/main-1c2ba214755ef1d0.js +0 -1
  2602. package/apps/pwa/out/_next/static/chunks/main-app-55b1247a78f22727.js +0 -1
  2603. package/apps/pwa/out/_next/static/chunks/pages/_app-239264d5fa7469e1.js +0 -1
  2604. package/apps/pwa/out/_next/static/chunks/pages/_error-8184168567215c6b.js +0 -1
  2605. package/apps/pwa/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  2606. package/apps/pwa/out/_next/static/chunks/webpack-0144ea4a99833df5.js +0 -1
  2607. package/apps/pwa/out/_next/static/css/085673d826b98b62.css +0 -1
  2608. package/apps/pwa/out/_next/static/css/32b8e1b8996dbf5e.css +0 -1
  2609. package/apps/pwa/out/_next/static/css/599369d853c61df7.css +0 -31
  2610. package/apps/pwa/out/_next/static/css/659eccb5db697b76.css +0 -1
  2611. package/apps/pwa/out/_next/static/css/9e19f9d740cf4dcb.css +0 -1
  2612. package/apps/pwa/out/_next/static/iXeJzCRg0ENSSl_RTbGIN/_buildManifest.js +0 -1
  2613. package/apps/pwa/out/_next/static/iXeJzCRg0ENSSl_RTbGIN/_ssgManifest.js +0 -1
  2614. package/apps/pwa/out/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  2615. package/apps/pwa/out/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  2616. package/apps/pwa/out/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  2617. package/apps/pwa/out/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  2618. package/apps/pwa/out/_next/static/media/f639721981034f88-s.woff2 +0 -0
  2619. package/apps/pwa/out/approvals/index.html +0 -1
  2620. package/apps/pwa/out/approvals/index.txt +0 -33
  2621. package/apps/pwa/out/autopilot/index.html +0 -1
  2622. package/apps/pwa/out/autopilot/index.txt +0 -33
  2623. package/apps/pwa/out/board/index.html +0 -1
  2624. package/apps/pwa/out/board/index.txt +0 -33
  2625. package/apps/pwa/out/botlab/index.html +0 -1
  2626. package/apps/pwa/out/botlab/index.txt +0 -30
  2627. package/apps/pwa/out/bots/index.html +0 -1
  2628. package/apps/pwa/out/bots/index.txt +0 -30
  2629. package/apps/pwa/out/ceo/index.html +0 -1
  2630. package/apps/pwa/out/ceo/index.txt +0 -33
  2631. package/apps/pwa/out/chat/index.html +0 -1
  2632. package/apps/pwa/out/chat/index.txt +0 -30
  2633. package/apps/pwa/out/consult/index.html +0 -1
  2634. package/apps/pwa/out/consult/index.txt +0 -33
  2635. package/apps/pwa/out/control/index.html +0 -1
  2636. package/apps/pwa/out/control/index.txt +0 -33
  2637. package/apps/pwa/out/decisions/index.html +0 -1
  2638. package/apps/pwa/out/decisions/index.txt +0 -30
  2639. package/apps/pwa/out/design-check/index.html +0 -1
  2640. package/apps/pwa/out/design-check/index.txt +0 -33
  2641. package/apps/pwa/out/editor/index.html +0 -1
  2642. package/apps/pwa/out/editor/index.txt +0 -35
  2643. package/apps/pwa/out/exec/index.html +0 -1
  2644. package/apps/pwa/out/exec/index.txt +0 -33
  2645. package/apps/pwa/out/field/index.html +0 -1
  2646. package/apps/pwa/out/field/index.txt +0 -33
  2647. package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
  2648. package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
  2649. package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
  2650. package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
  2651. package/apps/pwa/out/healthz +0 -1
  2652. package/apps/pwa/out/icons/elanous-16.png +0 -0
  2653. package/apps/pwa/out/icons/elanous-180.png +0 -0
  2654. package/apps/pwa/out/icons/elanous-192.png +0 -0
  2655. package/apps/pwa/out/icons/elanous-32.png +0 -0
  2656. package/apps/pwa/out/icons/elanous-512.png +0 -0
  2657. package/apps/pwa/out/index.html +0 -1
  2658. package/apps/pwa/out/index.txt +0 -30
  2659. package/apps/pwa/out/inside/index.html +0 -1
  2660. package/apps/pwa/out/inside/index.txt +0 -32
  2661. package/apps/pwa/out/intake/index.html +0 -1
  2662. package/apps/pwa/out/intake/index.txt +0 -33
  2663. package/apps/pwa/out/live/index.html +0 -1
  2664. package/apps/pwa/out/live/index.txt +0 -35
  2665. package/apps/pwa/out/live-run/index.html +0 -1
  2666. package/apps/pwa/out/live-run/index.txt +0 -35
  2667. package/apps/pwa/out/loops/index.html +0 -1
  2668. package/apps/pwa/out/loops/index.txt +0 -31
  2669. package/apps/pwa/out/manifest.webmanifest +0 -31
  2670. package/apps/pwa/out/market/index.html +0 -1
  2671. package/apps/pwa/out/market/index.txt +0 -30
  2672. package/apps/pwa/out/missions/placeholder/index.html +0 -1
  2673. package/apps/pwa/out/missions/placeholder/index.txt +0 -30
  2674. package/apps/pwa/out/morning/index.html +0 -1
  2675. package/apps/pwa/out/morning/index.txt +0 -33
  2676. package/apps/pwa/out/observatory/index.html +0 -1
  2677. package/apps/pwa/out/observatory/index.txt +0 -33
  2678. package/apps/pwa/out/offline.html +0 -84
  2679. package/apps/pwa/out/ops/checklist/index.html +0 -1
  2680. package/apps/pwa/out/ops/checklist/index.txt +0 -30
  2681. package/apps/pwa/out/ops/release/index.html +0 -1
  2682. package/apps/pwa/out/ops/release/index.txt +0 -30
  2683. package/apps/pwa/out/ops/resources/index.html +0 -1
  2684. package/apps/pwa/out/ops/resources/index.txt +0 -30
  2685. package/apps/pwa/out/ops/seats/index.html +0 -1
  2686. package/apps/pwa/out/ops/seats/index.txt +0 -30
  2687. package/apps/pwa/out/outputs/index.html +0 -1
  2688. package/apps/pwa/out/outputs/index.txt +0 -30
  2689. package/apps/pwa/out/reflection/index.html +0 -1
  2690. package/apps/pwa/out/reflection/index.txt +0 -31
  2691. package/apps/pwa/out/scheduler/index.html +0 -1
  2692. package/apps/pwa/out/scheduler/index.txt +0 -33
  2693. package/apps/pwa/out/sessions/index.html +0 -1
  2694. package/apps/pwa/out/sessions/index.txt +0 -30
  2695. package/apps/pwa/out/settings/devices/index.html +0 -1
  2696. package/apps/pwa/out/settings/devices/index.txt +0 -33
  2697. package/apps/pwa/out/settings/index.html +0 -1
  2698. package/apps/pwa/out/settings/index.txt +0 -33
  2699. package/apps/pwa/out/setup/done/index.html +0 -1
  2700. package/apps/pwa/out/setup/done/index.txt +0 -33
  2701. package/apps/pwa/out/setup/index.html +0 -1
  2702. package/apps/pwa/out/setup/index.txt +0 -33
  2703. package/apps/pwa/out/share/index.html +0 -1
  2704. package/apps/pwa/out/share/index.txt +0 -33
  2705. package/apps/pwa/out/showroom/index.html +0 -1
  2706. package/apps/pwa/out/showroom/index.txt +0 -30
  2707. package/apps/pwa/out/sw-strategies.js +0 -44
  2708. package/apps/pwa/out/sw.js +0 -385
  2709. package/apps/pwa/out/tasks/index.html +0 -1
  2710. package/apps/pwa/out/tasks/index.txt +0 -33
  2711. package/apps/pwa/out/term/index.html +0 -1
  2712. package/apps/pwa/out/term/index.txt +0 -33
  2713. package/apps/pwa/out/today/index.html +0 -1
  2714. package/apps/pwa/out/today/index.txt +0 -33
  2715. package/apps/pwa/out/trace/index.html +0 -1
  2716. package/apps/pwa/out/trace/index.txt +0 -33
  2717. package/apps/pwa/out/vault/index.html +0 -1
  2718. package/apps/pwa/out/vault/index.txt +0 -33
  2719. package/apps/pwa/out/workflows/chat-ui/index.html +0 -1
  2720. package/apps/pwa/out/workflows/chat-ui/index.txt +0 -33
  2721. package/apps/pwa/out/workflows/index.html +0 -1
  2722. package/apps/pwa/out/workflows/index.txt +0 -33
  2723. package/apps/pwa/out/workspace/index.html +0 -1
  2724. package/apps/pwa/out/workspace/index.txt +0 -33
  2725. package/apps/pwa/out/worktrees/index.html +0 -1
  2726. package/apps/pwa/out/worktrees/index.txt +0 -33
  2727. package/plugins/hello/manifest.json +0 -7
  2728. package/plugins/hello/missions/count-to-5/evaluator.sh +0 -32
  2729. package/plugins/hello/missions/count-to-5/mission.md +0 -17
  2730. package/plugins/hello/missions/count-to-5/sandbox.md +0 -10
  2731. package/plugins/hello/plugin.ts +0 -97
  2732. package/src/acp/grok-leader-manager.ts +0 -160
  2733. package/src/autopilot/build/build-status-label.ts +0 -19
  2734. package/src/autopilot/discovery/preexisting-red-rows.ts +0 -83
  2735. package/src/autopilot/mission-replay-decision.ts +0 -136
  2736. package/src/browser-pane/mount.ts +0 -242
  2737. package/src/budget/cost-tier-advisor.ts +0 -91
  2738. package/src/cli/ask-bare.ts +0 -43
  2739. package/src/cli/autopilot-cli.ts +0 -839
  2740. package/src/cli/autopilot-run.ts +0 -176
  2741. package/src/dashboard/auto-tts/auto-tts-controller.ts +0 -347
  2742. package/src/dashboard/auto-tts/auto-tts-host-boot.ts +0 -162
  2743. package/src/dashboard/auto-tts/pfc-voice-runtime.ts +0 -138
  2744. package/src/dashboard/browser-help-runtime.ts +0 -95
  2745. package/src/dashboard/compact-surface-popup.ts +0 -61
  2746. package/src/dashboard/input/chat-main-cache-command.ts +0 -11
  2747. package/src/dashboard/input/chat-main-submit-control.ts +0 -24
  2748. package/src/dashboard/input/control-signal-consumers.ts +0 -46
  2749. package/src/dashboard/input/dashboard-plain-turn-settle-sink.ts +0 -96
  2750. package/src/dashboard/input/dictation-surface-allowlist.ts +0 -78
  2751. package/src/dashboard/input/mouse-shell-rollup-runtime.ts +0 -114
  2752. package/src/dashboard/input/space-longpress-detector.ts +0 -311
  2753. package/src/dashboard/input/voice-dictation.ts +0 -80
  2754. package/src/dashboard/media-preview-surface-runtime.ts +0 -81
  2755. package/src/dashboard/modals/browser-preview-modal-seams.ts +0 -887
  2756. package/src/dashboard/modals/preview.ts +0 -151
  2757. package/src/dashboard/scenario-runtime-boot.ts +0 -113
  2758. package/src/dashboard/shell-rollup-popup.ts +0 -116
  2759. package/src/dashboard/voice-chat/voice-chat-host-boot.ts +0 -418
  2760. package/src/dashboard/voice-chat/voice-chat-mode-controller.ts +0 -148
  2761. package/src/dashboard/voice-chat/voice-chat-pipeline.ts +0 -357
  2762. package/src/dashboard/voice-host-boot.ts +0 -109
  2763. package/src/dashboard/voice-input-host.ts +0 -540
  2764. package/src/dashboard/voice-runtime.ts +0 -174
  2765. package/src/directive/interpretation-card.ts +0 -36
  2766. package/src/display/bounds-validate.ts +0 -113
  2767. package/src/display/image-emit.ts +0 -247
  2768. package/src/display/picker-layout.ts +0 -199
  2769. package/src/display/terminal-capability.ts +0 -161
  2770. package/src/display/terminal-frame.ts +0 -32
  2771. package/src/display/terminal-snapshot.ts +0 -58
  2772. package/src/display/transient-overlay-policy.ts +0 -59
  2773. package/src/domains/alert-audit.ts +0 -271
  2774. package/src/domains/conatus-verify.ts +0 -466
  2775. package/src/domains/proactive-recall.ts +0 -85
  2776. package/src/graph-runner/release-manifest.ts +0 -93
  2777. package/src/grounding/ensure-grounding.ts +0 -131
  2778. package/src/grounding/ref-vector.ts +0 -61
  2779. package/src/harness/artifact-launch-vocabulary.ts +0 -45
  2780. package/src/harness/shell-prompt-watcher.ts +0 -0
  2781. package/src/harness/user-terminal-injector.ts +0 -51
  2782. package/src/input/turn-output-bundle.ts +0 -105
  2783. package/src/intake-plane/ref-prefetch.ts +0 -110
  2784. package/src/intelligence-map/catalog-feed.ts +0 -119
  2785. package/src/intelligence-map/model-bench-scores.ts +0 -102
  2786. package/src/iul/asset-registry.ts +0 -980
  2787. package/src/iul/lab-tabs.ts +0 -283
  2788. package/src/iul/lane-registry.ts +0 -25
  2789. package/src/iul/lane-select-view.ts +0 -62
  2790. package/src/iul/scene-registry.ts +0 -25
  2791. package/src/iul/sidebar-shell-catalog.ts +0 -41
  2792. package/src/iul/sidebar-shell-copy.ts +0 -38
  2793. package/src/iul/sidebar-shell.ts +0 -40
  2794. package/src/iul/theme-lab-lane-view.ts +0 -291
  2795. package/src/iul/top-control-rail.ts +0 -7
  2796. package/src/model-tier/tier-to-model.ts +0 -23
  2797. package/src/mss/identity.ts +0 -105
  2798. package/src/nexus/api/mission-showroom.ts +0 -182
  2799. package/src/nexus/api/missions-emit.ts +0 -214
  2800. package/src/nexus/api/missions.ts +0 -230
  2801. package/src/onboarding/widget-impl.ts +0 -118
  2802. package/src/panes/alt-skip-predicate.ts +0 -40
  2803. package/src/panes/files-pane.ts +0 -39
  2804. package/src/panes/pane-cycle.ts +0 -61
  2805. package/src/panes/skills-pane.ts +0 -47
  2806. package/src/panes/terminal-bg-query.ts +0 -152
  2807. package/src/panes/visibility-badge.ts +0 -50
  2808. package/src/playground/catalog.ts +0 -1306
  2809. package/src/playground/lab.ts +0 -439
  2810. package/src/playground/widget.ts +0 -1588
  2811. package/src/plugins/legacy-classify.ts +0 -479
  2812. package/src/plugins/maker/connector-maker.ts +0 -41
  2813. package/src/plugins/maker/skill-maker.ts +0 -42
  2814. package/src/preview/pager.ts +0 -135
  2815. package/src/preview-pane/mount.ts +0 -202
  2816. package/src/prompt-library/family-prompt-coverage.ts +0 -97
  2817. package/src/release-loop/proposal-auto-place.ts +0 -83
  2818. package/src/seat-dispatch/seat-request-eligibility.ts +0 -19
  2819. package/src/self-dev/decompose-compose-graph.ts +0 -136
  2820. package/src/self-dev/external-call-zero.ts +0 -77
  2821. package/src/self-dev/local-supervisor-judge.ts +0 -185
  2822. package/src/self-dev/shard-pod-run.ts +0 -77
  2823. package/src/self-implement/follow-up-placement.ts +0 -79
  2824. package/src/self-implement/run-controls.ts +0 -74
  2825. package/src/shell-runner/modal-surface.ts +0 -171
  2826. package/src/sim-world-device-catalogs.json +0 -493
  2827. package/src/skills/skill-route-ux.ts +0 -62
  2828. package/src/state/bridges/widget-host-focus.ts +0 -96
  2829. package/src/state/bridges/widget-host.ts +0 -273
  2830. package/src/steward/entrance-dispatch-shadow-adapter-child.ts +0 -26
  2831. package/src/steward/entrance-dispatch-shadow-adapter.ts +0 -196
  2832. package/src/storage/object-store-visibility.ts +0 -169
  2833. package/src/task-orchestrator/surfaces/pod-warm-ta-shadow.ts +0 -85
  2834. package/src/theme/auto-theme.ts +0 -73
  2835. package/src/tool-runtime/widget-schema-runtime.ts +0 -94
  2836. package/src/ui/chrome/tooltip-chrome.ts +0 -16
  2837. package/src/ui/decor.ts +0 -75
  2838. package/src/ui/hover-presenter.ts +0 -202
  2839. package/src/ui/hover-tracker.ts +0 -249
  2840. package/src/ui/layout/dsl.ts +0 -210
  2841. package/src/ui/layout/scroll.ts +0 -104
  2842. package/src/ui/slash-launcher.ts +0 -58
  2843. package/src/ui/submenu-popup-menu-contract.ts +0 -44
  2844. package/src/ui/submenu-popup-pair.ts +0 -175
  2845. package/src/ui/submenu-popup-theme.ts +0 -81
  2846. package/src/ui/widgets/accordion.ts +0 -122
  2847. package/src/ui/widgets/combo-box.ts +0 -221
  2848. package/src/ui/widgets/draggable-list.ts +0 -247
  2849. package/src/ui/widgets/list-view.ts +0 -221
  2850. package/src/ui/widgets/menu-tree-controller.ts +0 -136
  2851. package/src/ui/widgets/progress-bar.ts +0 -164
  2852. package/src/ui/widgets/selection-browse.ts +0 -26
  2853. package/src/ui/widgets/tabs.ts +0 -174
  2854. package/src/ui/widgets/title-bar.ts +0 -149
  2855. package/src/ui/widgets/tooltip.ts +0 -130
  2856. package/src/ui/widgets/tree-view.ts +0 -266
  2857. package/src/ux/ux-learn.ts +0 -58
  2858. package/src/ux-sim/mock-scenario-catalog.json +0 -3898
  2859. package/src/vi-editor.ts +0 -407
  2860. package/src/webclone/qa-table.ts +0 -22
  2861. package/src/widget-routing/terminal-pane-behavior.ts +0 -114
  2862. package/src/widgets/plan-board.ts +0 -124
  2863. /package/src/{dashboard/auto-tts → voice/tts}/sentence-segmenter.ts +0 -0
@@ -1,23 +1,589 @@
1
- import { chmodSync, mkdirSync, readFileSync, rmSync, symlinkSync, writeFileSync } from 'node:fs';
1
+ import { chmodSync, copyFileSync, cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, symlinkSync, writeFileSync } from 'node:fs';
2
+ import { createHash, randomUUID } from 'node:crypto';
2
3
  import { delimiter, dirname, join } from 'node:path';
3
- import { parse as parseYaml } from 'yaml';
4
+ import { parse as parseYaml, stringify as stringifyYaml } from 'yaml';
4
5
  import { getTestStateRoot } from '../nexus/paths.js';
5
6
  import { resetEffectiveInstanceRoot } from '../instance/resolve.js';
6
7
  import { getElanousConfigDirOverride, resetElanousConfigDir, setElanousConfigDir } from '../elanous-config-dir.js';
7
8
  import { execFileSync, spawnSync } from 'node:child_process';
8
- import { listGraphRuns, runGraph, type GraphRunState } from '../graph-runner/runner.js';
9
+ import { listGraphRuns, runGraph as runGraphCore, STOPPED_NODE_ERROR, type GraphRunOptions, type GraphRunState } from '../graph-runner/runner.js';
10
+ import { parseGraphTemplateYaml } from '../self-implement/graph-yaml.js';
9
11
  import { releaseResumeWaiver } from '../../scripts/release-loop/resume.js';
10
12
  import { runKnownIssues } from '../../scripts/release-loop/known-issues-node.js';
11
- import { graphGateResult, judgeGate, type GateResult, type GateRunner } from '../../scripts/release-loop/gate-node.js';
13
+ import { createGateRunner, graphGateResult, judgeGate } from '../../scripts/release-loop/gate-api-leaf.js';
14
+ import type { GateResult, GateRunner } from '../../scripts/release-loop/gate-types.js';
12
15
  import { runNpmPublish } from '../../scripts/release-loop/npm-publish-node.js';
13
16
  import { runPublish } from '../../scripts/release-loop/publish-node.js';
14
17
  import { resumeReleaseRun } from '../../scripts/release-loop/resume-release.js';
15
18
  import { runAutoApprove } from '../../scripts/release-loop/auto-approve-node.js';
16
19
  import { runVerify } from '../../scripts/release-loop/verify-node.js';
20
+ import { latestGateOutput, readGraphContext, runNodeVerdict } from '../../scripts/release-loop/node-verdict.js';
21
+ import { runGateRepairNode } from '../../scripts/release-loop/gate-repair-node.js';
22
+ import { auditGateFileReceipts } from '../../scripts/release-loop/gate-file-receipt-audit-node.js';
17
23
  import { resolveScenarioFilePath } from './scenario.js';
18
- import { planGateReceiptRadius, reduceGateShardReceipts, type GateShardIdentity, type GateShardReceipt } from '../../scripts/release-loop/gate-shard-dispatch.js';
19
- import { inspectGateShardReceipts, type GateShardReceiptInspection } from '../../scripts/release-loop/gate-shard-receipts.js';
24
+ import { makeGateFileReceiptSimulationReceipt, simGateReceiptFileClosureCas } from './gate-receipt-file-closure-cas.js';
25
+ import { gateFileReceiptIdentityFromClosure, type GateFileReceiptIdentity } from '../../scripts/release-loop/gate-file-receipts.js';
26
+
27
+ /** The sim world executes the same live subscribers against its isolated state root. */
28
+ function runGraph(path: string, options: GraphRunOptions): ReturnType<typeof runGraphCore> {
29
+ return runGraphCore(path, { ...options, deps: { ...options.deps, releaseGraphEventAdapters: true } });
30
+ }
31
+ import { planGateReceiptRadius, reduceGateShardReceipts, gateShardRuntimeIdentityKey, type GateShardIdentity, type GateShardReceipt } from '../../scripts/release-loop/gate-shard-dispatch.js';
32
+ import { inspectGateShardReceipts, saveGateShardResult, type GateShardReceiptInspection } from '../../scripts/release-loop/gate-shard-receipts.js';
20
33
  import { gateEnvFingerprint, gateSourcePins } from '../../scripts/release-loop/gate-baseline-receipt.js';
34
+ import { runMacrophageHeal, type MacrophageScrap } from '../release-loop/macrophage-heal.js';
35
+ import { createMacrophageRuntime } from '../release-loop/macrophage-heal-node.js';
36
+ import { checkReleaseEventTrace, type ReleaseEventExpectation, type ReleaseEventRecord } from './release-event-trace.js';
37
+ import { createReleasePublishDevices } from './release-publish-devices.js';
38
+ import { PodPoolScheduler } from '../task-orchestrator/surfaces/pod-pool.js';
39
+ import { createGraphEventBus, type GraphEvent, type GraphEventBus } from '../graph-runner/graph-events.js';
40
+ import { planMacrophageIncident, recordMacrophageGraphRecovery, simulateMacrophageRecovery, type MacrophageIncidentSignal } from '../release-loop/macrophage-incident-recovery.js';
41
+ import { attributeReleaseFailures, type ReleaseFailureAttribution } from '../release-loop/release-failure-attribution.js';
42
+ import { planMacrophageRepairLadder, type MacrophageRepairLadderInput, type MacrophageRepairLadderDecision } from '../release-loop/macrophage-repair-ladder.js';
43
+ import { runArgMacroCanvasSim, type ArgMacroCanvasIncident, type ArgMacroCanvasManifest } from './arg-macro-canvas-sim.js';
44
+ import { createIncidentPolicyHandler } from '../release-loop/incident-policy-handler.js';
45
+ import { parseAppManifest } from '../nexus/apps/app-contract.js';
46
+ import { createFakeAppHost } from './fake-app-host.js';
47
+
48
+ /** Release rig entry for the ARG + macrophage declared-canvas simulation; delegates to the in-memory rig. */
49
+ export function runArgMacroCanvasRig(input: { runId: string; manifest: ArgMacroCanvasManifest; incidents: readonly ArgMacroCanvasIncident[]; now?: Date }) {
50
+ return runArgMacroCanvasSim(input);
51
+ }
52
+
53
+ export interface MacrophageRepairLadderFiveStepCapSim {
54
+ readonly injector: 'macrophage-repair-ladder-five-step-cap-sim';
55
+ readonly pass: boolean;
56
+ readonly decisions: readonly { readonly id: string; readonly expectedStep: string; readonly decision: MacrophageRepairLadderDecision; readonly pass: boolean }[];
57
+ readonly checks: Readonly<Record<string, boolean>>;
58
+ readonly inputMutationCount: number;
59
+ }
60
+
61
+ /** GREEN-V injection seam: run the production five-step decision policy without PR, graph, or file writes. */
62
+ export function runMacrophageRepairLadderFiveStepCapSim(): MacrophageRepairLadderFiveStepCapSim {
63
+ const common: Omit<MacrophageRepairLadderInput, 'evidence' | 'failureIds'> = {
64
+ runId: 'sim-macrophage-repair-ladder', signature: 'simulated-release-gate-failure',
65
+ repairChildrenUsed: 0, elapsedMs: 0, minutesToCut: 180, estimatedStepMs: 5 * 60_000,
66
+ };
67
+ const cases: Array<{ id: string; input: MacrophageRepairLadderInput; expectedStep: string }> = [
68
+ { id: 'R0-same-slice-remeasure', expectedStep: 'R0-remeasure', input: { ...common, evidence: 'load-flaky', failureIds: ['test/a.test.ts > timeout'], r0Attempts: 0 } },
69
+ { id: 'R1-one-file-fixture', expectedStep: 'R1-single-file', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > stale expectation'],
70
+ sourceFiles: ['src/a.ts'], changeKind: 'expectation' } },
71
+ { id: 'R2-independent-file-split', expectedStep: 'R2-split-files', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
72
+ sourceFiles: ['src/a.ts', 'src/b.ts', 'src/c.ts'], independentFiles: true } },
73
+ { id: 'R2-exact-four-child-cap', expectedStep: 'R2-split-files', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
74
+ sourceFiles: ['src/a.ts', 'src/b.ts', 'src/c.ts', 'src/d.ts'], independentFiles: true } },
75
+ { id: 'R3-safe-revert-draft', expectedStep: 'R3-revert-proposal', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
76
+ sourceFiles: ['src/a.ts'], previousStep: 'R1-single-file', previousStepOutcome: 'failed', causePr: 123,
77
+ causePrFailureIds: ['test/a.test.ts > regression'], attributionConfidence: 'high', revertSafe: true,
78
+ attemptedSteps: ['R1-single-file'], attemptedStepsRunId: common.runId, attemptedFiles: ['src/a.ts'] } },
79
+ { id: 'R4-human-decision', expectedStep: 'R4-hitl', input: { ...common, evidence: 'unmeasured', failureIds: ['unattributed gate failure'] } },
80
+ { id: 'four-children-exhausted', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
81
+ sourceFiles: ['src/a.ts'], changeKind: 'fixture', repairChildrenUsed: 4 } },
82
+ { id: 'R2-no-partial-over-cap', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
83
+ sourceFiles: ['src/a.ts', 'src/b.ts', 'src/c.ts'], independentFiles: true, repairChildrenUsed: 2 } },
84
+ { id: 'ninety-minute-cap', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
85
+ sourceFiles: ['src/a.ts'], changeKind: 'fixture', elapsedMs: 90 * 60_000 } },
86
+ { id: 'step-would-overrun-cap', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
87
+ sourceFiles: ['src/a.ts'], changeKind: 'fixture', elapsedMs: 85 * 60_000, estimatedStepMs: 6 * 60_000 } },
88
+ { id: 'cut-minus-thirty-restricts-to-R3-R4', expectedStep: 'R3-revert-proposal', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
89
+ sourceFiles: ['src/a.ts'], previousStep: 'R2-split-files', previousStepOutcome: 'failed', causePr: 123,
90
+ causePrFailureIds: ['test/a.test.ts > regression'], attributionConfidence: 'high', revertSafe: true,
91
+ attemptedSteps: ['R2-split-files'], attemptedStepsRunId: common.runId, attemptedFiles: ['src/a.ts'], minutesToCut: 30 } },
92
+ { id: 'cut-minus-thirty-one-allows-R1', expectedStep: 'R1-single-file', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > stale expectation'],
93
+ sourceFiles: ['src/a.ts'], changeKind: 'expectation', minutesToCut: 31, estimatedStepMs: 30_000 } },
94
+ { id: 'projected-step-crosses-cutoff', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > stale expectation'],
95
+ sourceFiles: ['src/a.ts'], changeKind: 'expectation', minutesToCut: 31, estimatedStepMs: 5 * 60_000 } },
96
+ { id: 'cut-minus-thirty-blocks-R0', expectedStep: 'R4-hitl', input: { ...common, evidence: 'load-flaky', failureIds: ['test/a.test.ts > timeout'], minutesToCut: 30 } },
97
+ { id: 'unknown-countdown-fails-closed', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
98
+ sourceFiles: ['src/a.ts'], changeKind: 'fixture', minutesToCut: null } },
99
+ { id: 'R3-proposal-used-once', expectedStep: 'R4-hitl', input: { ...common, evidence: 'introduced', failureIds: ['test/a.test.ts > regression'],
100
+ sourceFiles: ['src/a.ts'], previousStep: 'R2-split-files', previousStepOutcome: 'failed', causePr: 123,
101
+ causePrFailureIds: ['test/a.test.ts > regression'], attributionConfidence: 'high', revertSafe: true,
102
+ r3ProposalUsed: true, attemptedSteps: ['R2-split-files', 'R3-revert-proposal'], attemptedStepsRunId: common.runId,
103
+ attemptedFiles: ['src/a.ts'] } },
104
+ ];
105
+ let inputMutationCount = 0;
106
+ const decisions = cases.map(({ id, input, expectedStep }) => {
107
+ const before = structuredClone(input);
108
+ const result = planMacrophageRepairLadder(input);
109
+ const unchanged = JSON.stringify(input) === JSON.stringify(before);
110
+ if (!unchanged) inputMutationCount++;
111
+ return { id, expectedStep, decision: result, pass: result.step === expectedStep && unchanged };
112
+ });
113
+ const r1 = decisions.find(({ id }) => id === 'R1-one-file-fixture')!.decision;
114
+ const r2 = decisions.find(({ id }) => id === 'R2-independent-file-split')!.decision;
115
+ const r3 = decisions.find(({ id }) => id === 'R3-safe-revert-draft')!.decision;
116
+ const r4 = decisions.find(({ id }) => id === 'R4-human-decision')!.decision;
117
+ const checks = {
118
+ allFiveSteps: ['R0-remeasure', 'R1-single-file', 'R2-split-files', 'R3-revert-proposal', 'R4-hitl']
119
+ .every((step) => decisions.some(({ decision }) => decision.step === step)),
120
+ repairPlansTargetCutAppendOnly: [r1, r2].every((item) => item.repositoryWrite === 'cut-append-only'
121
+ && item.repairUnits.every((unit) => unit.writeTarget === 'cut-append')),
122
+ r2ParallelismBounded: r2.childrenPlanned === 3 && r2.maxParallelChildren === 2,
123
+ exactFourChildrenAllowed: decisions.find(({ id }) => id === 'R2-exact-four-child-cap')?.decision.childrenPlanned === 4,
124
+ r3IsDraftOnly: r3.revertDraft?.draftOnly === true && r3.action === 'propose-revert-draft',
125
+ r4ProducesDecisionCard: r4.action === 'raise-decision' && r4.decisionCard !== undefined,
126
+ childLimitAndNoPartialSplit: decisions.find(({ id }) => id === 'four-children-exhausted')?.decision.childrenPlanned === 0
127
+ && decisions.find(({ id }) => id === 'R2-no-partial-over-cap')?.decision.childrenPlanned === 0,
128
+ ninetyMinuteBudget: decisions.find(({ id }) => id === 'ninety-minute-cap')?.decision.step === 'R4-hitl'
129
+ && decisions.find(({ id }) => id === 'step-would-overrun-cap')?.decision.step === 'R4-hitl',
130
+ cutoffBoundary: decisions.find(({ id }) => id === 'cut-minus-thirty-restricts-to-R3-R4')?.decision.step === 'R3-revert-proposal'
131
+ && decisions.find(({ id }) => id === 'cut-minus-thirty-one-allows-R1')?.decision.step === 'R1-single-file'
132
+ && decisions.find(({ id }) => id === 'projected-step-crosses-cutoff')?.decision.step === 'R4-hitl'
133
+ && decisions.find(({ id }) => id === 'cut-minus-thirty-blocks-R0')?.decision.step === 'R4-hitl',
134
+ unknownCountdownFailsClosed: decisions.find(({ id }) => id === 'unknown-countdown-fails-closed')?.decision.step === 'R4-hitl',
135
+ r3ProposalOnePerRun: decisions.find(({ id }) => id === 'R3-proposal-used-once')?.decision.step === 'R4-hitl',
136
+ };
137
+ return { injector: 'macrophage-repair-ladder-five-step-cap-sim', pass: decisions.every((item) => item.pass)
138
+ && inputMutationCount === 0 && Object.values(checks).every(Boolean), decisions, checks, inputMutationCount };
139
+ }
140
+
141
+ export interface ReleaseMacrophageIncidentSimInput {
142
+ readonly runId: string;
143
+ readonly incidents: readonly MacrophageIncidentSignal[];
144
+ readonly repairLandedIds: readonly string[];
145
+ readonly hitlApprovedIds: readonly string[];
146
+ readonly version?: string;
147
+ readonly attributionContext?: { readonly repo: string; readonly previousTag: string; readonly cutCommit: string };
148
+ readonly graphDrivenIncidentIds?: readonly string[];
149
+ /** Start with an actual receipt-key mismatch, then surface the introduced failures through residual-run. */
150
+ readonly receiptAuditKeyMismatchFirst?: boolean;
151
+ readonly repairLandingFailure?: boolean;
152
+ readonly repairArtifactFailure?: boolean;
153
+ /** Fake child copies built fixture artifacts; host effects run only after the repair PR is verified landed. */
154
+ readonly onRepairLanded?: (files: readonly string[], artifacts: readonly { readonly sourceFile: string; readonly files: Readonly<Record<string, string>> }[]) => void;
155
+ }
156
+
157
+ export interface ReleaseMacrophageIncidentSimCase {
158
+ readonly signal: MacrophageIncidentSignal;
159
+ readonly plan: ReturnType<typeof planMacrophageIncident>;
160
+ readonly resumed: boolean;
161
+ readonly receipt?: ReturnType<typeof simulateMacrophageRecovery>['receipt'];
162
+ readonly receiptJsonl: string;
163
+ readonly eventNames: readonly string[];
164
+ readonly pass: boolean;
165
+ }
166
+
167
+ const GRAPH_DRIVEN_MACROPHAGE_INCIDENT = 'c-three-file-regression';
168
+
169
+ const RELEASE_SIM_RIG_WORKTREE_MARKER = '.elanous-release-sim-rig';
170
+
171
+ /** Fake Git boundary used by the simulator's real PWA worktree creation and teardown path. */
172
+ export function createReleaseSimRigFakeGitScript(): string {
173
+ return [
174
+ '#!/bin/sh',
175
+ 'if [ "$1" = "worktree" ] && [ "$2" = "add" ]; then',
176
+ ' if ! mkdir "$4" 2>/dev/null; then echo "[release-sim-rig] refused existing worktree path: $4" >&2; printf "add-refused-existing\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; exit 1; fi',
177
+ ' if ! mkdir -p "$4/apps/pwa"; then echo "[release-sim-rig] failed to prepare new worktree path: $4" >&2; printf "add-prepare-failed\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; exit 1; fi',
178
+ ` if ! (set -C; printf 'release-sim-rig-worktree-v1\\n%s\\n' "$ELANOUS_SIM_RIG_RUN_ID" > "$4/${RELEASE_SIM_RIG_WORKTREE_MARKER}"); then echo "[release-sim-rig] could not create ownership marker: $4" >&2; printf "add-marker-create-failed\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; exit 1; fi`,
179
+ ` if printf 'release-sim-rig-worktree-v1\\n%s\\n' "$ELANOUS_SIM_RIG_RUN_ID" | cmp -s - "$4/${RELEASE_SIM_RIG_WORKTREE_MARKER}"; then if [ -n "$ELANOUS_SIM_RIG_MARKER_SNAPSHOT" ]; then cp "$4/${RELEASE_SIM_RIG_WORKTREE_MARKER}" "$ELANOUS_SIM_RIG_MARKER_SNAPSHOT" || exit 1; printf '%s\\n' "$4" > "$ELANOUS_SIM_RIG_WORKTREE_PATH_SNAPSHOT" || exit 1; fi; printf "add-marker-verified\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; else echo "[release-sim-rig] marker verification failed: $4" >&2; exit 1; fi`,
180
+ ' exit 0',
181
+ 'fi',
182
+ 'if [ "$1" = "worktree" ] && [ "$2" = "remove" ]; then',
183
+ ` marker="$4/${RELEASE_SIM_RIG_WORKTREE_MARKER}"`,
184
+ ` if [ ! -f "$marker" ] || ! printf 'release-sim-rig-worktree-v1\\n%s\\n' "$ELANOUS_SIM_RIG_RUN_ID" | cmp -s - "$marker"; then`,
185
+ ' if [ -f "$marker" ]; then echo "[release-sim-rig] preserved worktree owned by another simulation run: $4" >&2; printf "remove-preserved-other-run\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; else echo "[release-sim-rig] preserved unmarked worktree: $4" >&2; printf "remove-preserved-unmarked\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; fi',
186
+ ' exit 0',
187
+ ' fi',
188
+ ' quarantine="$4.release-sim-rig-teardown-$ELANOUS_SIM_RIG_RUN_ID-$$"',
189
+ ' if ! mkdir "$quarantine" 2>/dev/null; then echo "[release-sim-rig] could not reserve teardown path for: $4" >&2; exit 1; fi',
190
+ ' chmod 700 "$quarantine" || exit 1',
191
+ ' if ! mv "$4" "$quarantine/worktree"; then rmdir "$quarantine" 2>/dev/null; echo "[release-sim-rig] worktree changed before teardown: $4" >&2; exit 1; fi',
192
+ ` if [ -f "$quarantine/worktree/${RELEASE_SIM_RIG_WORKTREE_MARKER}" ] && printf 'release-sim-rig-worktree-v1\\n%s\\n' "$ELANOUS_SIM_RIG_RUN_ID" | cmp -s - "$quarantine/worktree/${RELEASE_SIM_RIG_WORKTREE_MARKER}"; then`,
193
+ ' rm -rf "$quarantine/worktree"',
194
+ ' if [ ! -e "$quarantine/worktree" ] && rmdir "$quarantine" 2>/dev/null && [ ! -e "$quarantine" ]; then printf "remove-marker-matched-path-absent\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; exit 0; fi',
195
+ ' echo "[release-sim-rig] verified worktree remains in teardown quarantine: $4" >&2; exit 1',
196
+ ' fi',
197
+ ' if [ ! -e "$4" ]; then mv "$quarantine/worktree" "$4"; rmdir "$quarantine" 2>/dev/null; fi',
198
+ ' echo "[release-sim-rig] preserved worktree after ownership changed: $4" >&2; printf "remove-preserved-changed-marker\\n" >> "$ELANOUS_SIM_RIG_WORKTREE_LOG"; exit 0',
199
+ 'fi',
200
+ 'echo "unexpected git boundary: $*" >&2',
201
+ 'exit 97',
202
+ '',
203
+ ].join('\n');
204
+ }
205
+
206
+ /** Extends the existing release graph rig with fake incident/PR/owner boundaries and the production recovery decision core. */
207
+ export async function runReleaseMacrophageIncidentSim(input: ReleaseMacrophageIncidentSimInput): Promise<{
208
+ readonly pass: boolean;
209
+ readonly runId: string;
210
+ readonly graphState: GraphRunState;
211
+ readonly graphDrivenIncidentId: string;
212
+ readonly graphRepairFailureIds: readonly string[];
213
+ readonly graphRepairInputFailureIds: readonly string[];
214
+ readonly graphRepairInputGateExecutionId?: string;
215
+ readonly graphRepairInputFiles: readonly string[];
216
+ readonly graphRepairAttributions: readonly ReleaseFailureAttribution[];
217
+ readonly graphRepairMeasured: boolean;
218
+ readonly graphRepairChecks: Readonly<Record<string, boolean | number>>;
219
+ readonly productionTriageEvidence?: Readonly<Record<string, unknown>>;
220
+ readonly statePath: string;
221
+ readonly receiptPath: string;
222
+ readonly recoveryReceiptPath: string;
223
+ readonly cases: readonly ReleaseMacrophageIncidentSimCase[];
224
+ readonly eventTrace: readonly GraphEvent[];
225
+ readonly runtimeDecisions: readonly GraphEvent[];
226
+ readonly jsonl: string;
227
+ }> {
228
+ const bus = createGraphEventBus();
229
+ const injectedType = 'release.macrophage.incident.injected';
230
+ const outputTypes = ['release.macrophage.detected', 'release.macrophage.attributed', 'release.macrophage.classified',
231
+ 'release.macrophage.repair-pr-landed', 'release.macrophage.hitl-approved', 'release.macrophage.run-resumed',
232
+ 'release.macrophage.receipt-written'];
233
+ bus.registerType(injectedType);
234
+ for (const type of outputTypes) bus.registerType(type);
235
+ const root = getTestStateRoot();
236
+ if (!root) throw new Error('release macrophage incident simulation requires --test isolated mode');
237
+ const eventTrace: GraphEvent[] = [];
238
+ bus.subscribe((event) => { eventTrace.push(event); });
239
+ const runtimeDecisions: GraphEvent[] = [];
240
+ const macrophageRuntime = createMacrophageRuntime({ root, runId: input.runId, eventBus: bus, mode: 'simulation',
241
+ inventory: (event) => event.source.nodeId === 'pre-gate-join' ? [{ id: 'simulated-stale-output', kind: 'stale-generated-artifact',
242
+ evidence: { sourceFingerprint: 'cut-current', generatedFingerprint: 'stale' } }] : [] });
243
+ bus.subscribe((event) => { if (event.type === 'release.macrophage.decision') runtimeDecisions.push(event); }, { type: 'release.macrophage.decision' });
244
+ const jsonlRows: string[] = [];
245
+ const cases: ReleaseMacrophageIncidentSimCase[] = [];
246
+ const repairLanded = new Set(input.repairLandedIds);
247
+ const hitlApproved = new Set(input.hitlApprovedIds);
248
+ const graphDrivenIncidentIds = new Set(input.graphDrivenIncidentIds ?? [GRAPH_DRIVEN_MACROPHAGE_INCIDENT]);
249
+ bus.subscribe(async (event) => {
250
+ if (event.type !== injectedType) return;
251
+ const signal = event.data?.signal as MacrophageIncidentSignal;
252
+ const plan = planMacrophageIncident(signal);
253
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.detected', source: { kind: 'runner' }, data: { incidentId: signal.id } });
254
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.attributed', source: { kind: 'runner' },
255
+ data: { incidentId: signal.id, sourceFiles: plan.files, causePr: plan.causePr ?? null, method: signal.evidence } });
256
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.classified', source: { kind: 'runner' },
257
+ data: { incidentId: signal.id, label: plan.label, step: plan.step, reason: plan.reason } });
258
+ const graphDriven = graphDrivenIncidentIds.has(signal.id);
259
+ const recovery = graphDriven ? undefined : simulateMacrophageRecovery({ runId: event.runId, plan, changedShardId: `shard-${cases.length}`,
260
+ carriedShardIds: ['shard-0', 'shard-1', 'shard-2', 'shard-3'], repairLanded: repairLanded.has(signal.id),
261
+ hitlApproved: hitlApproved.has(signal.id) });
262
+ if (plan.label === 'fix' && repairLanded.has(signal.id) && !graphDriven) {
263
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.repair-pr-landed', source: { kind: 'runner' },
264
+ data: { incidentId: signal.id, files: plan.files } });
265
+ }
266
+ if (plan.label === 'hitl' && hitlApproved.has(signal.id)) {
267
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.hitl-approved', source: { kind: 'runner' }, data: { incidentId: signal.id } });
268
+ }
269
+ if (recovery?.resumed) {
270
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.run-resumed', source: { kind: 'runner' },
271
+ data: { incidentId: signal.id, disposition: recovery.receipt.disposition, gateVisit: recovery.receipt.gateVisit } });
272
+ jsonlRows.push(recovery.jsonl);
273
+ await bus.publish({ graphId: event.graphId, runId: event.runId, type: 'release.macrophage.receipt-written', source: { kind: 'runner' },
274
+ data: { incidentId: signal.id, schema: recovery.receipt.schema, jsonl: recovery.jsonl } });
275
+ }
276
+ const expectedResume = plan.label === 'noise' || (plan.label === 'fix' && repairLanded.has(signal.id))
277
+ || (plan.label === 'hitl' && hitlApproved.has(signal.id));
278
+ cases.push({ signal, plan, resumed: recovery?.resumed ?? false, ...(recovery ? { receipt: recovery.receipt } : {}),
279
+ receiptJsonl: recovery?.jsonl ?? '', eventNames: [], pass: graphDriven ? false
280
+ : recovery!.resumed === expectedResume && (!recovery!.resumed || recovery!.receipt.runId === event.runId)
281
+ && (plan.label !== 'fix' || !recovery!.resumed || recovery!.receipt.gateVisit === 2) });
282
+ }, { type: injectedType });
283
+ const version = input.version ?? '0.3.6';
284
+ let incidentsInjected = false;
285
+ let gateVisits = 0;
286
+ let receiptAuditVisits = 0;
287
+ let productionTriageEvidence: Record<string, unknown> | undefined;
288
+ let graphRepairInputFiles: string[] = [];
289
+ let graphRepairInputFailureIds: string[] = [];
290
+ let graphRepairInputGateExecutionId: string | undefined;
291
+ let graphState: GraphRunState;
292
+ try { graphState = await runGraph(RELEASE_GRAPH, { runId: input.runId,
293
+ input: { version, previousVersion: '0.3.5' }, eventBus: bus, pinChildUniverse: true, quiet: true,
294
+ deps: { root, runBash: async (_command: string, options: { env?: NodeJS.ProcessEnv }) => {
295
+ const { nodeId } = parseContext(options.env ?? process.env);
296
+ if (!incidentsInjected && nodeId === 'gate') {
297
+ incidentsInjected = true;
298
+ for (const incident of input.incidents) {
299
+ await bus.publish({ graphId: 'release-loop', runId: input.runId, type: injectedType, source: { kind: 'runner' }, data: { signal: incident } });
300
+ }
301
+ await bus.flush({ graphId: 'release-loop', runId: input.runId });
302
+ }
303
+ if (nodeId === 'gate') {
304
+ gateVisits++;
305
+ const graphDriven = cases.filter(({ signal }) => graphDrivenIncidentIds.has(signal.id));
306
+ if (graphDriven.length === 0 || graphDriven.some((item) => item.plan.label !== 'fix'
307
+ || !repairLanded.has(item.signal.id) || (item.signal.id === GRAPH_DRIVEN_MACROPHAGE_INCIDENT
308
+ && (item.plan.step !== 'R2-split-files' || item.plan.files.length < 2)))) {
309
+ throw new Error('graph-driven incidents must resolve to landed repair plans');
310
+ }
311
+ const commit = cutTip();
312
+ const introduced = graphDriven.flatMap(({ signal, plan }) => signal.failureIds?.length
313
+ ? signal.failureIds : plan.files.map((file) => `${file}.test.ts > injected R2 regression in ${file}`));
314
+ const gate = gateVisits === 1 && !input.receiptAuditKeyMismatchFirst
315
+ ? { outcome: 'fail', commit, introduced, preexisting: 0, fixed: null,
316
+ knownEnv: 0, knownEnvCleared: [], stalledEnv: [], rcNonzeroNoFailures: [], durationMs: 1 }
317
+ : { outcome: 'ok', commit, introduced: [], preexisting: 0, fixed: null,
318
+ knownEnv: 0, knownEnvCleared: [], stalledEnv: [], rcNonzeroNoFailures: [], durationMs: 1 };
319
+ return { exitCode: gate.outcome === 'fail' ? 1 : 0, stdout: `${JSON.stringify(gate)}\n`,
320
+ stderr: gate.outcome === 'fail' ? 'TypeScript TS2322: simulated gate regression' : '' };
321
+ }
322
+ if (nodeId === 'receipt-audit' && input.receiptAuditKeyMismatchFirst) {
323
+ receiptAuditVisits++;
324
+ const context = readGraphContext(options.env);
325
+ const file = 'scripts/release-loop/macro-chain-fixture.test.ts';
326
+ const source = "test('receipt fixture', () => {});\n";
327
+ const tree = { files: [file], read: (path: string) => path === file ? source : undefined, preload: [] as string[] };
328
+ const imageDigest = `sha256:${'a'.repeat(64)}`;
329
+ const identity = gateFileReceiptIdentityFromClosure(tree, file, imageDigest);
330
+ if (!identity) throw new Error('macro-chain receipt fixture has an opaque closure');
331
+ const repairCommit = Object.entries(context.outputs).filter(([id, output]) => /^gate-repair-[a-f0-9]{12}$/.test(id)
332
+ && output.outcome === 'ok' && typeof output.commit === 'string').at(-1)?.[1]?.commit;
333
+ const commit = typeof repairCommit === 'string' ? repairCommit
334
+ : context.outputs.cutoff?.commit ?? context.outputs['version-release']?.commit;
335
+ if (typeof commit !== 'string' || !/^[a-f0-9]{40}$/i.test(commit)) throw new Error('macro-chain receipt audit has no pinned commit');
336
+ const receipt = makeGateFileReceiptSimulationReceipt(identity, commit, input.runId, 'cut');
337
+ const badKey = `${receipt.key[0] === '0' ? '1' : '0'}${receipt.key.slice(1)}`;
338
+ const selectedReceipt = receiptAuditVisits === 1 ? { ...receipt, key: badKey } : receipt;
339
+ const audit = auditGateFileReceipts(context, {
340
+ repo: root, roots: { instance: join(root, 'instance'), ledger: join(root, 'ledger') },
341
+ testsAtCommit: () => [file], closureTree: () => tree, pinnedImage: () => imageDigest,
342
+ readReceipt: () => ({ ...selectedReceipt, recordSha256: 'b'.repeat(64) }),
343
+ });
344
+ if (receiptAuditVisits === 1 && audit.summary.includes('identity mismatch') === false
345
+ && audit.summary.includes('invalid content key') === false) {
346
+ throw new Error(`receipt-key fault did not reach the production audit: ${audit.summary}`);
347
+ }
348
+ return { exitCode: audit.outcome === 'ok' ? 0 : 1, stdout: `${JSON.stringify(audit)}\n`,
349
+ stderr: audit.outcome === 'ok' ? '' : audit.summary };
350
+ }
351
+ if (nodeId === 'residual-run' && input.receiptAuditKeyMismatchFirst) {
352
+ const graphDriven = cases.filter(({ signal }) => graphDrivenIncidentIds.has(signal.id));
353
+ const commit = cutTip();
354
+ const introduced = graphDriven.flatMap(({ signal, plan }) => signal.failureIds?.length
355
+ ? signal.failureIds : plan.files.map((file) => `${file}.test.ts > injected R2 regression in ${file}`));
356
+ return { exitCode: 1, stdout: `${JSON.stringify({ outcome: 'fail', commit, introduced,
357
+ preexisting: 0, fixed: null, knownEnv: 0, knownEnvCleared: [], stalledEnv: [],
358
+ rcNonzeroNoFailures: [], durationMs: 1 })}\n`, stderr: 'TypeScript TS2322: simulated introduced regression after receipt-key mismatch' };
359
+ }
360
+ if (nodeId === 'gate-triage') {
361
+ const context = readGraphContext(options.env);
362
+ const latest = latestGateOutput(context);
363
+ if (!latest) throw new Error('gate-triage simulation did not receive the latest gate or residual-run output');
364
+ const child = spawnSync('bun', ['scripts/release-loop/gate-triage-node.ts'], {
365
+ cwd: REPOSITORY_ROOT, env: { ...process.env, ...options.env }, encoding: 'utf8', maxBuffer: 1024 * 1024,
366
+ });
367
+ let result: Record<string, unknown> = {};
368
+ try { result = record(JSON.parse((child.stdout ?? '').trim().split('\n').at(-1) ?? 'null'), 'production gate-triage output'); }
369
+ catch { /* Preserve child diagnostics in the graph node result. */ }
370
+ const latestExecutionId = typeof latest.executionId === 'string' ? latest.executionId : undefined;
371
+ const priorGate = [...(context.nodeHistory ?? [])].reverse().find((entry) => entry.nodeId === 'gate');
372
+ const priorGateExecutionId = typeof priorGate?.executionId === 'string' ? priorGate.executionId : undefined;
373
+ const triageFailureIds = Array.isArray(result.failureIds) ? result.failureIds.filter((id): id is string => typeof id === 'string') : [];
374
+ const latestFailureIds = Array.isArray(latest.introduced) ? latest.introduced.filter((id): id is string => typeof id === 'string') : [];
375
+ const latestNode = [...(context.nodeHistory ?? [])].reverse().find((entry) => entry.nodeId === 'gate' || entry.nodeId === 'residual-run')?.nodeId;
376
+ productionTriageEvidence = { exitCode: child.status, latestNode, priorGateExecutionId,
377
+ latestExecutionId, triageExecutionId: result.gateExecutionId, latestFailureIds, triageFailureIds,
378
+ matched: child.status === 0 && latestNode === 'residual-run' && !!latestExecutionId
379
+ && !!priorGateExecutionId && priorGateExecutionId !== latestExecutionId && result.gateExecutionId === latestExecutionId
380
+ && JSON.stringify([...triageFailureIds].sort()) === JSON.stringify([...latestFailureIds].sort()),
381
+ stderr: child.stderr ?? '' };
382
+ return { exitCode: child.status ?? 2, stdout: child.stdout ?? '', stderr: child.stderr ?? '' };
383
+ }
384
+ if (/^gate-repair-[a-f0-9]{12}$/.test(nodeId)) {
385
+ const graphDriven = cases.filter(({ signal }) => graphDrivenIncidentIds.has(signal.id));
386
+ if (graphDriven.length === 0 || graphDriven.some(({ signal }) => !repairLanded.has(signal.id))) throw new Error('repair PR landing was not supplied to the graph-driven incident');
387
+ const graphContext = readGraphContext(options.env);
388
+ const failureIds = graphContext.nodeInput?.failureIds;
389
+ graphRepairInputGateExecutionId = typeof graphContext.nodeInput?.gateExecutionId === 'string'
390
+ ? graphContext.nodeInput.gateExecutionId : undefined;
391
+ const expectedFailureIds = graphDriven.flatMap(({ signal, plan }) => signal.failureIds?.length
392
+ ? signal.failureIds : plan.files.map((file) => `${file}.test.ts > injected R2 regression in ${file}`));
393
+ if (!Array.isArray(failureIds) || expectedFailureIds.some((id) => !failureIds.includes(id))) {
394
+ throw new Error('adaptive repair input does not preserve the original gate failure IDs');
395
+ }
396
+ const attributions = input.attributionContext
397
+ ? attributeReleaseFailures({ ...input.attributionContext, failureIds: failureIds as string[] })
398
+ : graphDriven.flatMap(({ signal, plan }) => (signal.failureIds?.length ? signal.failureIds : plan.files.map((file) => `${file}.test.ts > injected R2 regression in ${file}`))
399
+ .map((failureId) => {
400
+ const testFile = failureId.split(' > ')[0] ?? '';
401
+ const inferredSource = testFile.endsWith('.test.ts') ? testFile.slice(0, -8) : testFile;
402
+ const sourceFiles = plan.files.includes(inferredSource) ? [inferredSource] : plan.files.length === 1 ? [...plan.files] : [];
403
+ return { failureId, testFile, sourceFiles,
404
+ causePrs: signal.causePr ? [signal.causePr] : [], confidence: 'high' as const, method: 'first-parent-source-overlap' as const,
405
+ evidence: [], unresolvedImports: [] };
406
+ }));
407
+ for (const item of graphDriven) {
408
+ const itemAttributions = attributions.filter((row) => item.signal.failureIds?.includes(row.failureId)
409
+ || (!item.signal.failureIds?.length && item.plan.files.some((file) => row.sourceFiles.includes(file))));
410
+ const attributedFiles = new Set(itemAttributions.flatMap((row) => row.sourceFiles));
411
+ if (itemAttributions.length === 0 || itemAttributions.some((row) => row.confidence === 'unmeasured')
412
+ || !item.plan.files.every((file) => attributedFiles.has(file))) {
413
+ throw new Error(`adaptive repair input could not attribute original failures for ${item.signal.id}`);
414
+ }
415
+ }
416
+ const attributedRepairFailureIds = [...new Set(attributions.flatMap((row) => row.sourceFiles
417
+ .map((file) => `${file} > ${row.failureId}`)))];
418
+ if (!attributedRepairFailureIds.length) throw new Error('production attribution produced no repairable source files');
419
+ const repairPrFiles = new Map<number, string>();
420
+ const repairArtifactDirs = new Map<number, string>();
421
+ let nextRepairPr = 90000;
422
+ const repairContext = { ...graphContext, nodeInput: { ...graphContext.nodeInput, failureIds: attributedRepairFailureIds,
423
+ independenceEvidence: attributions.map(({ failureId, sourceFiles, unresolvedImports }) => ({ failureId, sourceFiles, unresolvedImports })) } };
424
+ graphRepairInputFailureIds = [...attributedRepairFailureIds];
425
+ const repairResult = await runGateRepairNode(repairContext, {
426
+ root, repo: input.attributionContext?.repo,
427
+ attributeFailures: () => attributions,
428
+ startRepairChild: async (featurePath) => {
429
+ const body = readFileSync(featurePath, 'utf8');
430
+ const file = /^Attributed source file: (.+)$/m.exec(body)?.[1];
431
+ if (!file) throw new Error('production repair feature omitted its attributed source file');
432
+ const prNumber = nextRepairPr++;
433
+ repairPrFiles.set(prNumber, file);
434
+ const fixtureName = file === 'templates/next-app-lecture-scrap/app/page.jsx' ? 'home'
435
+ : file === 'templates/next-app-lecture-scrap/app/search/page.jsx' ? input.repairArtifactFailure ? 'bad-search' : 'search' : undefined;
436
+ if (fixtureName) {
437
+ const artifactName = fixtureName === 'home' ? 'index.html' : fixtureName === 'search' ? 'search/index.html' : 'search.html';
438
+ const artifactSource = join(REPOSITORY_ROOT, 'src/ux-sim/fixtures/kaist-child-artifacts', fixtureName, artifactName);
439
+ const artifactDir = join(root, 'release', 'repair-child-artifacts', input.runId, `pr-${prNumber}`, 'out');
440
+ const publishedName = fixtureName === 'bad-search' ? 'missing-search.html' : artifactName;
441
+ mkdirSync(dirname(join(artifactDir, publishedName)), { recursive: true });
442
+ writeFileSync(join(artifactDir, publishedName), readFileSync(artifactSource), { mode: 0o600 });
443
+ repairArtifactDirs.set(prNumber, artifactDir);
444
+ }
445
+ return { ok: true, prNumber, prUrl: `https://github.com/ElanvitalAI/elanous/pull/${prNumber}` };
446
+ },
447
+ inspectRepairPr: async (prNumber) => {
448
+ const file = repairPrFiles.get(prNumber);
449
+ if (!file) throw new Error(`unknown simulated repair PR ${prNumber}`);
450
+ return { isDraft: false, files: [file], headRefOid: createHash('sha1').update(file).digest('hex') };
451
+ },
452
+ waitForLanded: async (prNumber) => {
453
+ const file = repairPrFiles.get(prNumber);
454
+ if (!file) throw new Error(`unknown simulated landing PR ${prNumber}`);
455
+ if (input.repairLandingFailure) throw new Error(`simulated repair PR #${prNumber} did not land`);
456
+ return { schema: 1, prNumber, repairRunId: input.runId,
457
+ head: createHash('sha1').update(file).digest('hex'), mergeSha: 'f'.repeat(40), base: 'main', mergedAt: '2026-11-07T00:00:00.000Z' };
458
+ },
459
+ isAncestor: () => true,
460
+ refreshMainlineHead: () => 'f'.repeat(40),
461
+ });
462
+ if (repairResult.outcome !== 'ok') throw new Error(`production repair entrypoint did not land every attributed file: ${repairResult.summary}`);
463
+ graphRepairInputFiles = repairResult.repairs.map(({ file }) => file).sort();
464
+ const landedArtifacts = repairResult.repairs.filter((repair) => repair.status === 'repaired').map((repair) => {
465
+ const artifactDir = repairArtifactDirs.get(repair.prNumber);
466
+ const files = artifactDir ? Object.fromEntries((function walk(directory: string, prefix = ''): Array<[string, string]> {
467
+ return readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
468
+ const relative = prefix ? `${prefix}/${entry.name}` : entry.name;
469
+ const fullPath = join(directory, entry.name);
470
+ return entry.isDirectory() ? walk(fullPath, relative)
471
+ : [[relative, readFileSync(fullPath, 'utf8')] as [string, string]];
472
+ });
473
+ })(artifactDir)) : {};
474
+ return { sourceFile: repair.file, files };
475
+ });
476
+ input.onRepairLanded?.(repairResult.repairedFiles, landedArtifacts);
477
+ for (const item of graphDriven) {
478
+ const itemAttributions = attributions.filter((row) => item.signal.failureIds?.includes(row.failureId)
479
+ || (!item.signal.failureIds?.length && item.plan.files.some((file) => row.sourceFiles.includes(file))));
480
+ await bus.publish({ graphId: 'release-loop', runId: input.runId, type: 'release.macrophage.repair-pr-landed', source: { kind: 'runner' },
481
+ data: { incidentId: item.signal.id, files: item.plan.files, failureIds,
482
+ attribution: itemAttributions, adaptiveRepairInputFiles: graphRepairInputFiles, nodeId } });
483
+ }
484
+ return { exitCode: 0, stdout: `${JSON.stringify(repairResult)}\n`, stderr: '' };
485
+ }
486
+ return resultForNode(nodeId, undefined, version);
487
+ } } });
488
+ } finally { macrophageRuntime.dispose(); }
489
+ if (graphState.runId !== input.runId) throw new Error(`incident simulation run ${input.runId} does not match graph run ${graphState.runId}`);
490
+ await bus.flush({ graphId: 'release-loop', runId: input.runId });
491
+ const statePath = graphState.statePath;
492
+ if (!statePath) throw new Error('release graph simulation did not persist a run state path');
493
+ const receiptPath = `${statePath}.contexts/macrophage.jsonl`;
494
+ const recoveryReceiptPath = `${statePath}.contexts/macrophage-recovery.jsonl`;
495
+ const graphLifecycleMeasured = graphState.status === 'done'
496
+ && graphState.path.filter((nodeId) => nodeId === 'gate').length === 2
497
+ && graphState.path.some((nodeId) => /^gate-repair-[a-f0-9]{12}$/.test(nodeId));
498
+ const graphDriven = cases.filter(({ signal }) => graphDrivenIncidentIds.has(signal.id));
499
+ const graphRepairAppend = graphState.adaptiveGateNodeAppends?.find(({ request }) => request.rerunGateAt === 'gate'
500
+ && request.node.recipe === 'cmd:gate-repair');
501
+ const graphRepairFailureIds = graphRepairAppend?.request.node.recipe === 'cmd:gate-repair'
502
+ ? graphRepairAppend.request.node.input.failureIds : [];
503
+ const graphRepairAttributions = input.attributionContext && graphRepairFailureIds.length
504
+ ? attributeReleaseFailures({ ...input.attributionContext, failureIds: graphRepairFailureIds }) : [];
505
+ const graphDrivenRepairMeasured = graphLifecycleMeasured && graphDriven.length > 0
506
+ && graphDriven.every(({ plan }) => plan.files.every((file) => graphRepairInputFiles.includes(file)))
507
+ && graphDriven.every(({ signal, plan }) => plan.files.every((file) => graphRepairInputFailureIds.some((id) =>
508
+ signal.failureIds?.includes(id) || id.startsWith(`${file} > `))))
509
+ && (!input.attributionContext || graphDriven.every(({ signal, plan }) => {
510
+ const rows = graphRepairAttributions.filter((row) => signal.failureIds?.includes(row.failureId));
511
+ return rows.length > 0 && rows.every((row) => row.confidence !== 'unmeasured')
512
+ && plan.files.every((file) => rows.some((row) => row.sourceFiles.includes(file)));
513
+ }));
514
+ const graphRepairChecks = { lifecycle: graphLifecycleMeasured, graphDrivenCount: graphDriven.length,
515
+ inputFiles: graphDriven.every(({ plan }) => plan.files.every((file) => graphRepairInputFiles.includes(file))),
516
+ failureMapping: graphDriven.every(({ signal, plan }) => plan.files.every((file) => graphRepairInputFailureIds.some((id) =>
517
+ signal.failureIds?.includes(id) || id.startsWith(`${file} > `)))), attribution: !input.attributionContext || graphDriven.every(({ signal, plan }) => {
518
+ const rows = graphRepairAttributions.filter((row) => signal.failureIds?.includes(row.failureId));
519
+ return rows.length > 0 && rows.every((row) => row.confidence !== 'unmeasured')
520
+ && plan.files.every((file) => rows.some((row) => row.sourceFiles.includes(file)));
521
+ }) };
522
+ const graphDrivenRepairNodeId = graphRepairAppend?.request.node.nodeId;
523
+ if (graphDrivenRepairMeasured) {
524
+ for (const [index, item] of graphDriven.entries()) {
525
+ const itemFailureIds = item.signal.failureIds?.length ? item.signal.failureIds
526
+ : graphRepairInputFailureIds.filter((id) => item.plan.files.some((file) => id.startsWith(`${file} > `)));
527
+ const itemAttributions = input.attributionContext
528
+ ? graphRepairAttributions.filter((row) => itemFailureIds.includes(row.failureId))
529
+ : itemFailureIds.map((failureId) => ({ failureId, sourceFiles: item.plan.files, confidence: 'high' as const }));
530
+ const recovery = recordMacrophageGraphRecovery({ runId: input.runId, plan: item.plan,
531
+ repairLanded: repairLanded.has(item.signal.id), repairNodeId: graphDrivenRepairNodeId,
532
+ gateVisits: graphState.path.filter((nodeId) => nodeId === 'gate').length, failureIds: itemFailureIds,
533
+ attributedFailures: itemAttributions,
534
+ changedShardId: item.signal.id === 'd-receipt-reuse-zero-of-81' ? 'shard-d-receipt-reuse-zero-of-81' : `shard-${index}`,
535
+ carriedShardIds: ['shard-0', 'shard-1', 'shard-2', 'shard-3'] });
536
+ await bus.publish({ graphId: 'release-loop', runId: input.runId, type: 'release.macrophage.run-resumed', source: { kind: 'runner' },
537
+ data: { incidentId: item.signal.id, disposition: recovery.receipt.disposition,
538
+ gateVisit: graphState.path.filter((nodeId) => nodeId === 'gate').length } });
539
+ jsonlRows.push(recovery.jsonl);
540
+ await bus.publish({ graphId: 'release-loop', runId: input.runId, type: 'release.macrophage.receipt-written', source: { kind: 'runner' },
541
+ data: { incidentId: item.signal.id, schema: recovery.receipt.schema, jsonl: recovery.jsonl } });
542
+ }
543
+ }
544
+ await bus.flush({ graphId: 'release-loop', runId: input.runId });
545
+ mkdirSync(dirname(receiptPath), { recursive: true });
546
+ writeFileSync(recoveryReceiptPath, jsonlRows.join(''), { mode: 0o600 });
547
+ const runtimeApplied = runtimeDecisions.some((event) => event.data?.id === 'simulated-stale-output'
548
+ && event.data.action === 'regenerate' && event.data.applied === true);
549
+ const runtimeFailureDetected = runtimeDecisions.some((decision) => {
550
+ const sourceEventId = decision.data?.sourceEventId;
551
+ const sourceEvent = typeof sourceEventId === 'string' ? eventTrace.find((event) => event.eventId === sourceEventId) : undefined;
552
+ const expectedFailureNode = input.receiptAuditKeyMismatchFirst ? 'residual-run' : 'gate';
553
+ return decision.data?.sourceNodeId === expectedFailureNode && decision.data.action === 'attempt-repair'
554
+ && decision.data.failureSignature === 'type-error' && decision.data.applied === false
555
+ && sourceEvent?.type === 'node-end' && sourceEvent.data?.ok === false
556
+ && sourceEvent.source.kind === 'node' && sourceEvent.source.nodeId === expectedFailureNode;
557
+ });
558
+ const finalized = cases.map((item) => {
559
+ if (graphDrivenIncidentIds.has(item.signal.id) && graphDrivenRepairMeasured) {
560
+ const receipt = JSON.parse(jsonlRows.find((line) => JSON.parse(line).incidentId === item.signal.id) ?? 'null') as NonNullable<typeof item.receipt>;
561
+ item = { ...item, resumed: true, receipt, receiptJsonl: `${JSON.stringify(receipt)}\n`, pass: true };
562
+ }
563
+ const eventNames = eventTrace.filter((row) => row.runId === input.runId && row.data?.incidentId === item.signal.id).map((row) => row.type);
564
+ const expectedPrefix = ['release.macrophage.incident.injected', 'release.macrophage.detected', 'release.macrophage.attributed',
565
+ 'release.macrophage.classified'];
566
+ const expectedTail = item.resumed ? [
567
+ ...(item.plan.label === 'fix' ? ['release.macrophage.repair-pr-landed'] : []),
568
+ ...(item.plan.label === 'hitl' ? ['release.macrophage.hitl-approved'] : []),
569
+ 'release.macrophage.run-resumed', 'release.macrophage.receipt-written',
570
+ ] : [];
571
+ const relevantNames = eventNames.filter((name) => name !== 'release.macrophage.incident.injected');
572
+ const completeTrace = expectedPrefix.slice(1).every((name, index) => relevantNames[index] === name)
573
+ && expectedTail.every((name, index) => relevantNames[index + 3] === name)
574
+ && relevantNames.length === 3 + expectedTail.length;
575
+ return { ...item, eventNames, pass: item.pass && completeTrace };
576
+ });
577
+ return { pass: runtimeApplied && runtimeFailureDetected && graphDrivenRepairMeasured && graphState.runId === input.runId
578
+ && finalized.length === input.incidents.length && finalized.every((item) => item.pass)
579
+ && jsonlRows.length === finalized.filter((item) => item.resumed).length
580
+ && readFileSync(recoveryReceiptPath, 'utf8') === jsonlRows.join(''),
581
+ runId: input.runId, graphState, graphDrivenIncidentId: [...graphDrivenIncidentIds][0] ?? GRAPH_DRIVEN_MACROPHAGE_INCIDENT,
582
+ graphRepairFailureIds, graphRepairInputFailureIds, graphRepairInputGateExecutionId, graphRepairInputFiles, graphRepairAttributions, graphRepairMeasured: graphDrivenRepairMeasured,
583
+ graphRepairChecks,
584
+ productionTriageEvidence,
585
+ statePath, receiptPath, recoveryReceiptPath, cases: finalized, eventTrace, runtimeDecisions, jsonl: jsonlRows.join('') };
586
+ }
21
587
 
22
588
  const REPOSITORY_ROOT = join(import.meta.dir, '../..');
23
589
  const RELEASE_GRAPH = join(REPOSITORY_ROOT, 'graphs/release/release-loop.yaml');
@@ -47,13 +613,29 @@ function cutTip(): string {
47
613
  return cachedCutTip;
48
614
  }
49
615
 
616
+ function createResumeCommandRoot(root: string): string {
617
+ const commandRoot = join(root, 'resume-command-root');
618
+ mkdirSync(join(commandRoot, 'node_modules'), { recursive: true });
619
+ mkdirSync(join(commandRoot, 'apps/pwa/node_modules'), { recursive: true });
620
+ mkdirSync(join(commandRoot, 'graphs/release'), { recursive: true });
621
+ for (const name of ['release-loop.yaml', 'recipes.yaml']) {
622
+ copyFileSync(join(REPOSITORY_ROOT, 'graphs/release', name), join(commandRoot, 'graphs/release', name));
623
+ }
624
+ return commandRoot;
625
+ }
626
+
50
627
 
51
628
  export interface ReleaseSimRigCase {
52
629
  id: string;
53
- mode?: 'baseline' | 'cut-tip-moved-after-resume' | 'cutoff-cli-notes-empty' | 'docs-node-cli-in-sim' | 'gate-waive-introduced-regression' | 'owner-waive-missing-schema' | 'owner-waive-0246-fixture' | 'append-receipt-continuity';
630
+ mode?: 'baseline' | 'cut-tip-moved-after-resume' | 'approval-graph-path-mismatch' | 'pwa-costly-opt-in-required' | 'cutoff-cli-notes-empty' | 'docs-node-cli-in-sim' | 'gate-waive-introduced-regression' | 'owner-waive-unmeasured-gate' | 'owner-waive-missing-schema' | 'owner-waive-0246-fixture' | 'owner-waive-downstream-failure' | 'append-receipt-continuity' | 'resume-fanout-branch-refused' | 'macrophage-heal' | 'macro-chain-e2e' | 'kaist-selfheal-stage' | 'old-graph-measured-waiver' | 'appended-tip-regate-before-waiver' | 'prod-seat-launch-refused' | 'incident-policy-handler';
631
+ repairFault?: 'bad-artifact' | 'unlanded';
632
+ incidentEventType?: string;
633
+ incidentDescription?: string;
634
+ incidentRationale?: string;
635
+ unmeasuredGateShape?: 'stopped' | 'sweep-incomplete' | 'killed';
54
636
  fault?: { node: string; outcome: 'fail' | 'error' | 'timeout'; evidence?: Record<string, unknown> };
55
- nodeOutcomes?: Record<string, { outcome: 'ok' | 'fail' | 'error'; delayMs?: number }>;
56
- expect: { status: 'done' | 'failed' | 'resume-refused'; mustVisit: string[]; mustNotVisit: string[]; overlap?: [string, string]; refusalIncludes?: string };
637
+ nodeOutcomes?: Record<string, { outcome: 'ok' | 'fail' | 'error' | 'unknown'; delayMs?: number }>;
638
+ expect: { status: 'done' | 'failed' | 'resume-refused' | 'awaiting-approval'; mustVisit: string[]; mustNotVisit: string[]; overlap?: [string, string]; refusalIncludes?: string; events?: ReleaseEventExpectation[] };
57
639
  }
58
640
 
59
641
  export interface ReleaseSimGateReceiptStage {
@@ -67,6 +649,19 @@ export interface ReleaseSimGateReceiptStage {
67
649
  formalGateRun?: { outcome: 'ok' | 'regression' | 'error'; formalReceiptDecision?: string; cutSweepCount: number; fullSweep: boolean; baselineVersion?: string };
68
650
  gateOutcome: 'pass' | 'fail' | 'unmeasured';
69
651
  publishDecision: 'eligible' | 'blocked';
652
+ requestedSweepConcurrency?: number;
653
+ observedSweepConcurrency?: number;
654
+ }
655
+
656
+ function runSimulatedGateWorkerPool(files: readonly string[], workerCount: number): number {
657
+ if (!Number.isSafeInteger(workerCount) || workerCount < 1) throw new Error('invalid simulated gate worker count');
658
+ const workers = Array.from({ length: workerCount }, () => ({ completedFiles: [] as string[], run(file: string) { this.completedFiles.push(file); } }));
659
+ files.forEach((file, index) => workers[index % workerCount]!.run(file));
660
+ const completedFiles = workers.flatMap((worker) => worker.completedFiles);
661
+ if (completedFiles.length !== files.length || files.some((file) => !completedFiles.includes(file)))
662
+ throw new Error('simulated gate worker pool lost a file');
663
+ // The executor reports its allocated Pod worker profile after dispatching the selected work.
664
+ return workers.length;
70
665
  }
71
666
 
72
667
  /** Production receipt-radius planner seam. The optional final hook is reserved for p13's gate fault helper. */
@@ -76,6 +671,8 @@ export function runReleaseSimGateReceiptSeam(input: {
76
671
  priorCommit: string;
77
672
  commit: string;
78
673
  selectedFiles: string[];
674
+ requestedSweepConcurrency?: number;
675
+ executorWorkerCount?: number;
79
676
  stage: string;
80
677
  formalReceiptInspection?: GateShardReceiptInspection;
81
678
  formalGateRun?: ReleaseSimGateReceiptStage['formalGateRun'];
@@ -114,6 +711,9 @@ export function runReleaseSimGateReceiptSeam(input: {
114
711
  : measuredOutcome === 'unmeasured' || formalGateOutcome === 'unmeasured' ? 'unmeasured' : 'pass';
115
712
  const planned: ReleaseSimGateReceiptStage = { name: input.stage, commit: input.commit,
116
713
  selectedFiles: [...input.selectedFiles], plan: { carriedShardIds, rerunShardIds, fullSweep },
714
+ ...(input.requestedSweepConcurrency !== undefined ? { requestedSweepConcurrency: input.requestedSweepConcurrency } : {}),
715
+ ...(input.executorWorkerCount !== undefined
716
+ ? { observedSweepConcurrency: runSimulatedGateWorkerPool(input.selectedFiles, input.executorWorkerCount) } : {}),
117
717
  receiptIds: reduction.status === 'complete' ? reduction.receipts.map((receipt) => receipt.id) : [],
118
718
  ...(input.formalGateRun ? { formalGateRun: input.formalGateRun } : {}),
119
719
  ...(input.formalGateRun?.formalReceiptDecision === 'formal-receipt-set-absent'
@@ -138,7 +738,7 @@ async function runProductionMissingReceiptGate(root: string, tests: string[], ve
138
738
  writeFileSync(join(repo, 'apps/pwa/bun.lock'), 'lockfileVersion = 1\n');
139
739
  writeFileSync(join(repo, 'docker/harness/Dockerfile'), 'FROM ubuntu:24.04\n');
140
740
  writeFileSync(join(repo, 'graphs/release/release-loop.yaml'), " - { node_id: gate, kind: gate, recipe: 'cmd:gate', max_visits: 1 }\n");
141
- writeFileSync(join(repo, 'graphs/release/recipes.yaml'), "gate:\n command: 'bun scripts/release-loop/gate-node.ts --json'\n timeout_ms: 14400000\n");
741
+ writeFileSync(join(repo, 'graphs/release/recipes.yaml'), "gate:\n command: 'bun scripts/release-loop/gate-node-cli.ts --json'\n timeout_ms: 14400000\n");
142
742
  for (const file of tests) {
143
743
  const path = join(repo, file);
144
744
  mkdirSync(dirname(path), { recursive: true });
@@ -186,22 +786,95 @@ async function runProductionMissingReceiptGate(root: string, tests: string[], ve
186
786
  const SIM_BASE_COMMIT = 'b'.repeat(40);
187
787
  const SIM_IMAGE_DIGEST = `sha256:${'a'.repeat(64)}`;
188
788
  const SIM_ENV_FINGERPRINT = 'c'.repeat(64);
789
+ // 출처: RFC-release-gate-file-receipts § dirty-ratio threshold is 0.1; two changed files must stay below it.
790
+ const SIM_FILE_CAS_SWEEP_FILE_COUNT = 40;
791
+ // 출처: RFC-release-gate-file-receipts § sweep and supplemental use the same fixed Pod profile.
792
+ const SIM_GATE_EXECUTOR_CONCURRENCY = 24;
189
793
  const SIM_RUNTIME_IDENTITY = { bunVersion: '1.4.2', platform: 'linux', architecture: 'x64', envFingerprint: SIM_ENV_FINGERPRINT,
190
794
  baseImageDigest: `sha256:${'d'.repeat(64)}` };
795
+ const SIM_LOCKFILE_BODY = 'lockfileVersion = 1\n';
796
+ const SIM_LOCKFILE_HASH = createHash('sha256').update(Buffer.concat([
797
+ Buffer.from(SIM_LOCKFILE_BODY), Buffer.from('\0'), Buffer.from(SIM_LOCKFILE_BODY), Buffer.from('\0'),
798
+ ])).digest('hex');
799
+ const SIM_TEST_SOURCE = "import { expect, test } from 'bun:test'; test('saved shard', () => expect(true).toBe(true));\n";
800
+ const SIM_TEST_HASH = createHash('sha256').update(SIM_TEST_SOURCE).digest('hex');
191
801
 
192
802
  function simulatedReceipt(id: string, file: string, commit: string): GateShardReceipt {
193
803
  return { id, files: [file], version: '0.3.1', graphSha: '0'.repeat(64), recipeSha: '1'.repeat(64),
194
804
  graphEntry: 'release-sim-gate', recipeCommand: 'simulated gate receipt', recipeTimeoutMs: 1000,
195
805
  head40: commit, base40: SIM_BASE_COMMIT, host: 'sim-host', imageDigest: SIM_IMAGE_DIGEST,
196
806
  runtimeIdentity: SIM_RUNTIME_IDENTITY, envFingerprint: SIM_ENV_FINGERPRINT,
197
- envKey: `${SIM_ENV_FINGERPRINT}:${SIM_IMAGE_DIGEST}`,
807
+ lockfileHash: SIM_LOCKFILE_HASH, testedFileHashes: { [file]: SIM_TEST_HASH },
808
+ envKey: gateShardRuntimeIdentityKey(SIM_RUNTIME_IDENTITY, SIM_LOCKFILE_HASH)!,
198
809
  executions: [{ branch: 'test-release', attemptId: `sim-${id}-${commit.slice(0, 8)}`, host: 'sim-host',
199
810
  imageDigest: SIM_IMAGE_DIGEST, runtimeIdentity: SIM_RUNTIME_IDENTITY }],
200
811
  status: 'complete', failureIds: [], errorIds: [], evidencePath: `sim/${id}-${commit.slice(0, 8)}.json`,
201
812
  evidenceSha256: '2'.repeat(64), measuredAt: '2026-11-04T00:00:00.000Z', attempt: 1 };
202
813
  }
203
814
 
204
- async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string): Promise<ReleaseSimRigCaseResult> {
815
+ async function simulatePersistedSameCommitCarry(root: string, version: string) {
816
+ const repo = join(root, 'ux-sim', 'same-commit-gate-repo');
817
+ const receiptRoot = join(root, 'ux-sim', 'same-commit-receipts');
818
+ const tests = Array.from({ length: 4 }, (_, index) => `test/gate-shard-${index}.test.ts`);
819
+ const shards = tests.map((file, index) => ({ id: `pod-${index}`, files: [file] }));
820
+ rmSync(repo, { recursive: true, force: true });
821
+ mkdirSync(join(repo, 'scripts'), { recursive: true });
822
+ mkdirSync(join(repo, 'apps', 'pwa'), { recursive: true });
823
+ writeFileSync(join(repo, 'bun.lock'), SIM_LOCKFILE_BODY);
824
+ writeFileSync(join(repo, 'apps', 'pwa', 'bun.lock'), SIM_LOCKFILE_BODY);
825
+ writeFileSync(join(repo, 'package.json'), JSON.stringify({ name: 'same-commit-gate-sim', version }) + '\n');
826
+ for (const file of tests) {
827
+ const path = join(repo, file);
828
+ mkdirSync(dirname(path), { recursive: true });
829
+ writeFileSync(path, SIM_TEST_SOURCE);
830
+ }
831
+ execFileSync('git', ['init', '-q'], { cwd: repo });
832
+ execFileSync('git', ['config', 'user.name', 'Release sim'], { cwd: repo });
833
+ execFileSync('git', ['config', 'user.email', 'release-sim@example.invalid'], { cwd: repo });
834
+ execFileSync('git', ['add', '.'], { cwd: repo });
835
+ execFileSync('git', ['commit', '-qm', 'same-commit receipt source'], { cwd: repo,
836
+ env: { ...process.env, GIT_AUTHOR_DATE: '2026-11-05T00:00:00Z', GIT_COMMITTER_DATE: '2026-11-05T00:00:00Z' } });
837
+ const commit = execFileSync('git', ['rev-parse', 'HEAD'], { cwd: repo, encoding: 'utf8' }).trim();
838
+ for (const shard of shards) {
839
+ saveGateShardResult(receiptRoot, { receipt: { ...simulatedReceipt(shard.id, shard.files[0]!, commit), version }, runs: [{
840
+ output: '1 pass\n0 fail\nRan 1 test across 1 file.\n', rc: 0, pass: 1, fail: 0, errors: 0, ran: 1, files: 1,
841
+ passedIds: [`${shard.files[0]} > carries prior result`],
842
+ }] });
843
+ }
844
+ const expected = { version, commit, base40: SIM_BASE_COMMIT, envFingerprint: SIM_ENV_FINGERPRINT,
845
+ runtimeIdentity: SIM_RUNTIME_IDENTITY, lockHash: SIM_LOCKFILE_HASH,
846
+ graphPins: { graphSha: '0'.repeat(64), recipeSha: '1'.repeat(64) }, graphEntry: 'release-sim-gate',
847
+ recipeCommand: 'simulated gate receipt', recipeTimeoutMs: 1000, shards, tests };
848
+ const inspection = inspectGateShardReceipts(receiptRoot, expected);
849
+ const events: Array<Record<string, unknown>> = [{ event: 'receipt-preflight', kind: inspection.kind,
850
+ receiptCount: inspection.kind === 'valid' ? inspection.receipts.length : 0 }];
851
+ let podCalls = 0;
852
+ const command: GateRunner['command'] = async (cmd, args, cwd) => {
853
+ const result = spawnSync(cmd, args, { cwd, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 });
854
+ return { rc: result.status ?? 2, output: `${result.stdout ?? ''}\n${result.stderr ?? ''}` };
855
+ };
856
+ const runner = createGateRunner(repo, undefined, command, async () => {
857
+ podCalls++;
858
+ return { exitCode: 2, artifactsDir: '', job: 'unexpected-pod' };
859
+ }, new PodPoolScheduler([{ context: 'sim-host', capacity: 4, k3dCluster: 'release-sim' }]));
860
+ const progress: Array<{ executor: 'host' | 'pod'; groups: readonly { id: string; state: string; host?: string }[] }> = [];
861
+ const result = await runner.sweep(repo, undefined, { pool: 'sim-pool', shards: 4, isolationConcurrency: 1,
862
+ shardsFile: { path: join(root, 'ux-sim', 'same-commit-shards.json'), version, receiptRoot, base40: SIM_BASE_COMMIT,
863
+ envFingerprint: SIM_ENV_FINGERPRINT, expectedImageDigest: SIM_IMAGE_DIGEST,
864
+ graphPins: { ...expected.graphPins, graphEntry: expected.graphEntry, recipeCommand: expected.recipeCommand, recipeTimeoutMs: expected.recipeTimeoutMs },
865
+ executionIdentity: { ...SIM_RUNTIME_IDENTITY, imageDigest: SIM_IMAGE_DIGEST } },
866
+ }, undefined, (row) => { progress.push(row); });
867
+ const doneIds = [...new Set(progress.flatMap((row) => row.groups.filter((group) => group.state === 'done').map((group) => group.id)))].sort();
868
+ const carriedShardIds = podCalls === 0 && result.rc === 0 ? doneIds : [];
869
+ for (const shardId of carriedShardIds) events.push({ event: 'shard-carried', shardId });
870
+ events.push({ event: 'gate-sweep-complete', rc: result.rc, totalPods: podCalls, output: result.output.trim() });
871
+ return { commit, expectedCarry: shards.map((shard) => shard.id), inspectionKind: inspection.kind,
872
+ inspectedReceiptCount: inspection.kind === 'valid' ? inspection.receipts.length : 0,
873
+ carriedShardIds, rerunShardIds: podCalls > 0 ? shards.map((shard) => shard.id) : [], totalPods: podCalls, output: result.output, events };
874
+ }
875
+
876
+ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
877
+ executorConcurrency = SIM_GATE_EXECUTOR_CONCURRENCY, supplementalFailureAt?: string): Promise<ReleaseSimRigCaseResult> {
205
878
  const tests = Array.from({ length: 81 }, (_, index) => `test/shard-${String(index).padStart(2, '0')}.test.ts`);
206
879
  const cut = 'a'.repeat(40), appendA = 'c'.repeat(40), appendB = 'd'.repeat(40);
207
880
  const graphId = `release-sim-${scenario.id}-append-continuity`;
@@ -217,10 +890,12 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
217
890
  const edges = new Map<string, Record<string, unknown>>(nodeSequence.slice(0, -1).map((from, index) => [from,
218
891
  { map: { ok: nodeSequence[index + 1], fail: 'failed', error: 'failed' } }]));
219
892
  const ledgerEvents: Array<Record<string, unknown>> = [];
893
+ const eventBus = createReleaseTraceBus(ledgerEvents);
220
894
  const formalReceiptDir = join(root, 'release', scenario.input.version, 'gate-logs', 'cut', 'receipts');
221
895
  mkdirSync(formalReceiptDir, { recursive: true });
222
896
  const formalReceiptInspection = inspectGateShardReceipts(formalReceiptDir, { version: scenario.input.version, commit: cut,
223
- base40: SIM_BASE_COMMIT, envFingerprint: SIM_ENV_FINGERPRINT, graphPins: { graphSha: '0'.repeat(64), recipeSha: '1'.repeat(64) },
897
+ base40: SIM_BASE_COMMIT, envFingerprint: SIM_ENV_FINGERPRINT, runtimeIdentity: SIM_RUNTIME_IDENTITY, lockHash: SIM_LOCKFILE_HASH,
898
+ graphPins: { graphSha: '0'.repeat(64), recipeSha: '1'.repeat(64) },
224
899
  graphEntry: 'release-sim-gate', recipeCommand: 'simulated gate receipt', recipeTimeoutMs: 1000,
225
900
  shards: tests.map((file, index) => ({ id: `pod-${index}`, files: [file] })), tests });
226
901
  const formalGateRun = await runProductionMissingReceiptGate(root, tests, scenario.input.version, scenario.input.previousVersion);
@@ -229,6 +904,7 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
229
904
  let selectedFiles: string[] = [];
230
905
  let receipts: GateShardReceipt[] = [];
231
906
  const stages: ReleaseSimGateReceiptStage[] = [];
907
+ const fileCasRuns: Array<{ nodeId: string; sourceRunId: string; changedIndex: number; observation: ReturnType<typeof simGateReceiptFileClosureCas> }> = [];
232
908
  const runBash = async (_command: string, options: { env?: NodeJS.ProcessEnv }) => {
233
909
  const { nodeId } = parseContext(options.env ?? process.env);
234
910
  if (nodeId === 'append-a') { previousCommit = cut; currentCommit = appendA; selectedFiles = [tests[0]!]; }
@@ -237,9 +913,50 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
237
913
  ledgerEvents.push({ event: 'resume', stage: nodeId, priorCommit: previousCommit, commit: currentCommit, selectedFiles: [...selectedFiles], radiusOnly: true });
238
914
  }
239
915
  if (nodeId.startsWith('gate-')) {
916
+ const changedIndex = nodeId === 'gate-cut' ? 0 : nodeId === 'gate-a' ? 1 : 2;
917
+ const sourceRunId = nodeId === 'gate-a' ? '1475eed8' : 'c159bb8d';
918
+ const priorFiles: GateFileReceiptIdentity[] = Array.from({ length: SIM_FILE_CAS_SWEEP_FILE_COUNT }, (_, index) => {
919
+ const file = `test/append-cas-${index}.test.ts`;
920
+ const closureFiles = [file, `apps/pwa/config-${index}.json`, `src/release/module-${index}.ts`].sort();
921
+ const contentHashes = Object.fromEntries(closureFiles.map((path) => [path, createHash('sha256').update(path).digest('hex')]));
922
+ return { file, closureFiles, contentHashes, imageDigest: SIM_IMAGE_DIGEST };
923
+ });
924
+ const appendedFiles = priorFiles.map((identity, index) => {
925
+ if (index !== changedIndex) return identity;
926
+ const changedPath = sourceRunId === 'c159bb8d' ? `apps/pwa/config-${index}.json` : `src/release/module-${index}.ts`;
927
+ return { ...identity, contentHashes: { ...identity.contentHashes,
928
+ [changedPath]: createHash('sha256').update(`${changedPath}:append`).digest('hex') } };
929
+ });
930
+ appendedFiles.push({ file: 'test/append-cas-new.test.ts', closureFiles: ['src/release/new.ts', 'test/append-cas-new.test.ts'],
931
+ contentHashes: { 'src/release/new.ts': createHash('sha256').update('src/release/new.ts').digest('hex'),
932
+ 'test/append-cas-new.test.ts': createHash('sha256').update('test/append-cas-new.test.ts').digest('hex') }, imageDigest: SIM_IMAGE_DIGEST });
933
+ const neighborIndex = (changedIndex + 1) % priorFiles.length;
934
+ const receiptFileCas = simGateReceiptFileClosureCas({ sourceRunId, trainHead40: 'e'.repeat(40), cutHead40: currentCommit,
935
+ imageDigest: SIM_IMAGE_DIGEST, prior: priorFiles,
936
+ priorReceipts: priorFiles.map((identity) => makeGateFileReceiptSimulationReceipt(identity, 'e'.repeat(40), 'baseline-sweep')),
937
+ appended: appendedFiles, isolated: [appendedFiles[changedIndex]!, appendedFiles.at(-1)!],
938
+ interference: { [priorFiles[changedIndex]!.file]: [priorFiles[neighborIndex]!.file] },
939
+ ...(nodeId === supplementalFailureAt ? { supplementalOutcome: 'fail' as const } : {}),
940
+ runSupplemental: (input, outcome) => {
941
+ const supplemental = runReleaseSimGateReceiptSeam({ stage: `${nodeId}-append-supplemental`, tests: input.tests,
942
+ receipts: [], priorCommit: input.priorCommit, commit: input.commit, selectedFiles: input.selectedFiles,
943
+ requestedSweepConcurrency: input.concurrency, executorWorkerCount: executorConcurrency },
944
+ () => ({ gateOutcome: outcome }));
945
+ return { aggregate: supplemental.aggregate === 'complete' ? 'complete' as const : 'incomplete' as const,
946
+ gateOutcome: supplemental.gateOutcome, publishDecision: supplemental.publishDecision,
947
+ executedConcurrency: supplemental.observedSweepConcurrency ?? 0,
948
+ plan: { fullSweep: supplemental.plan.fullSweep, rerunShardIds: supplemental.plan.rerunShardIds } };
949
+ } });
950
+ fileCasRuns.push({ nodeId, sourceRunId, changedIndex, observation: receiptFileCas });
951
+ ledgerEvents.push({ event: 'file-cas-replay', nodeId, sourceRunId, supplementalOutcome: receiptFileCas.supplementalGate.gateOutcome,
952
+ requestedConcurrency: receiptFileCas.appendInvalidation.supplementalConcurrency,
953
+ observedConcurrency: receiptFileCas.supplementalGate.executedConcurrency,
954
+ dirtyFiles: receiptFileCas.appendInvalidation.dirtyFiles, supplementalFiles: receiptFileCas.appendInvalidation.supplementalFiles,
955
+ certificateRefreshed: receiptFileCas.refreshedSweepCertificate !== undefined });
240
956
  const stage = runReleaseSimGateReceiptSeam({ stage: nodeId, tests, receipts,
241
957
  priorCommit: previousCommit, commit: currentCommit, selectedFiles,
242
- ...(nodeId === 'gate-cut' ? { formalReceiptInspection, formalGateRun } : {}) });
958
+ ...(nodeId === 'gate-cut' ? { formalReceiptInspection, formalGateRun } : {}) },
959
+ () => ({ gateOutcome: receiptFileCas.supplementalGate.gateOutcome }));
243
960
  stages.push(stage);
244
961
  receipts = [...receipts.filter((receipt) => stage.plan.carriedShardIds.includes(receipt.id)).map((receipt) => ({ ...receipt, head40: currentCommit })),
245
962
  ...stage.plan.rerunShardIds.map((id) => simulatedReceipt(id, tests[Number(id.slice(4))]!, currentCommit))];
@@ -257,7 +974,7 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
257
974
  };
258
975
  const capture = (event: string, data: Record<string, unknown>) => ledgerEvents.push({ event, ...data });
259
976
  const state = await runGraph(graphPath, { runId: graphId, input: { version: scenario.input.version, previousVersion: scenario.input.previousVersion },
260
- pinChildUniverse: true, quiet: true, deps: { root, runBash, log: capture } });
977
+ pinChildUniverse: true, quiet: true, eventBus, deps: { root, runBash, log: capture } });
261
978
  const path = state.path;
262
979
  const visited = new Set([...path, ...Object.values(state.fanOuts ?? {}).flatMap((fanout) => Object.keys(fanout.branches))]);
263
980
  const statusOk = state.status === item.expect.status;
@@ -265,6 +982,21 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
265
982
  const notVisitOk = item.expect.mustNotVisit.every((id) => !visited.has(id));
266
983
  const edgeIssues = unexpectedEdges(path, state, edges);
267
984
  const receiptCase = stages[0], appendStageA = stages[1], appendStageB = stages[2];
985
+ const sameCommitResume = await simulatePersistedSameCommitCarry(root, scenario.input.version);
986
+ const carryRegressionFixture = {
987
+ source: 'OPT #35384 draft body + preserved AWS evidence',
988
+ expected: { carriedShardIds: ['pod-0', 'pod-1', 'pod-2', 'pod-3'], rerunShardIds: [], totalPods: 0 },
989
+ draftObserved: { head40: 'd79513b192c591a82c89ed80a617af4b314c9337', host: 'node-b', rerunShardIds: ['pod-0', 'pod-1', 'pod-2'], totalPods: 3 },
990
+ optObserved: { head40: 'acb26b11af8dac1b4592d9b0f5081a5d48005212', host: 'aws1', cohort: 2,
991
+ introduced: 1, preexisting: 3, failedIdentity: 'gate-radius-live.test.ts > GATE-RECEIPT-CARRY-ANY-RUN sim: regression + focused side pass carries across append-free resume; image drift remeasures all',
992
+ reason: 'pinned graph or recipe SHA absent' },
993
+ };
994
+ const sameCommitCarryOk = sameCommitResume.inspectionKind === 'valid' && sameCommitResume.inspectedReceiptCount === 4
995
+ && JSON.stringify(sameCommitResume.carriedShardIds) === JSON.stringify(sameCommitResume.expectedCarry)
996
+ && sameCommitResume.rerunShardIds.length === 0 && sameCommitResume.totalPods === 0
997
+ && sameCommitResume.output.includes('Ran 4 tests across 4 files.')
998
+ && sameCommitResume.events[1]?.event === 'shard-carried'
999
+ && sameCommitResume.events.filter((event) => event.event === 'shard-carried').length === 4;
268
1000
  const receiptFlowOk = !!receiptCase && receiptCase.formalReceiptDecision?.reason === 'formal-receipt-set-absent'
269
1001
  && receiptCase.formalGateRun?.formalReceiptDecision === 'formal-receipt-set-absent'
270
1002
  && receiptCase.formalGateRun.outcome === 'ok' && receiptCase.formalGateRun.fullSweep
@@ -274,15 +1006,31 @@ async function runAppendReceiptCase(scenario: ReleaseSimRigScenario, item: Relea
274
1006
  && appendStageA.aggregate === 'complete' && appendStageA.receiptIds.length === 81
275
1007
  && appendStageB?.plan.carriedShardIds.length === 80 && appendStageB.plan.rerunShardIds.join() === 'pod-1'
276
1008
  && appendStageB.aggregate === 'complete' && appendStageB.receiptIds.length === 81;
1009
+ // 출처: 내부 문서 `RFC-release-gate-file-receipts-2026-11-08` §6 requires two replay events and one failed supplemental run.
1010
+ const fileCasReplayOk = fileCasRuns.length === 3
1011
+ && fileCasRuns[0]?.sourceRunId === 'c159bb8d' && fileCasRuns[0].observation.supplementalGate.gateOutcome === 'pass'
1012
+ && !fileCasRuns[0].observation.appendInvalidation.fullSweepRequired
1013
+ && fileCasRuns[0].observation.appendInvalidation.supplementalFiles.join() === ['test/append-cas-0.test.ts', 'test/append-cas-1.test.ts', 'test/append-cas-new.test.ts'].sort().join()
1014
+ && fileCasRuns[0].observation.refreshedSweepCertificate?.sourceHead40 === cut
1015
+ && fileCasRuns[0].observation.measuredAfterAppend.every((receipt) => receipt.sourceHead40 === cut)
1016
+ && fileCasRuns[1]?.sourceRunId === '1475eed8' && fileCasRuns[1].observation.supplementalGate.gateOutcome === 'pass'
1017
+ && !fileCasRuns[1].observation.appendInvalidation.fullSweepRequired
1018
+ && fileCasRuns[1].observation.refreshedSweepCertificate?.sourceHead40 === appendA
1019
+ && fileCasRuns[1].observation.measuredAfterAppend.every((receipt) => receipt.sourceHead40 === appendA)
1020
+ && fileCasRuns[0].observation.appendInvalidation.dirtyFiles.join() !== fileCasRuns[1].observation.appendInvalidation.dirtyFiles.join()
1021
+ && fileCasRuns[2]?.observation.supplementalGate.gateOutcome === 'pass'
1022
+ && !fileCasRuns[2].observation.certificateRefreshBlocked && fileCasRuns[2].observation.refreshedSweepCertificate !== undefined;
277
1023
  const publishOk = stages.at(-1)?.publishDecision === 'eligible' && path.includes('publish');
278
1024
  const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
279
1025
  && ledgerEvents.some((row) => row.event === 'append') && ledgerEvents.filter((row) => row.event === 'resume').length === 2;
280
- const pass = statusOk && visitOk && notVisitOk && receiptFlowOk && publishOk && ledgerOk && edgeIssues.length === 0;
1026
+ const eventTrace = checkExpectedEvents(item.expect.events, ledgerEvents);
1027
+ const pass = statusOk && visitOk && notVisitOk && receiptFlowOk && fileCasReplayOk && sameCommitCarryOk && publishOk
1028
+ && ledgerOk && (eventTrace?.pass ?? true) && edgeIssues.length === 0;
281
1029
  return { id: item.id, pass, status: state.status, path, dispatchedNodes: path.filter((node) => nodeSequence.includes(node)),
282
- unexpectedEdges: edgeIssues, checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk },
1030
+ unexpectedEdges: edgeIssues, checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk, ...(eventTrace ? { events: eventTrace.pass } : {}) },
283
1031
  injectedEvidence: { universe: 'test', releaseVersion: scenario.input.version, formalReceiptInspection, receiptCase, appendA: appendStageA, appendB: appendStageB,
284
- appendedOnlyChangedTestRadius: receiptFlowOk, fakePublish: stages.at(-1)?.publishDecision,
285
- executionStatePath: state.statePath }, fanOuts: state.fanOuts, ledgerEvents, statePath: state.statePath };
1032
+ sameCommitResume, sameCommitCarryOk, carryRegressionFixture, appendedOnlyChangedTestRadius: receiptFlowOk, fileCasReplayOk, fileCasRuns, fakePublish: stages.at(-1)?.publishDecision,
1033
+ executionStatePath: state.statePath, ...(eventTrace ? { eventTrace } : {}) }, fanOuts: state.fanOuts, ledgerEvents, statePath: state.statePath };
286
1034
  }
287
1035
 
288
1036
  export interface ReleaseSimRigScenario {
@@ -290,7 +1038,7 @@ export interface ReleaseSimRigScenario {
290
1038
  kind: 'release-graph';
291
1039
  id: string;
292
1040
  isolation: 'test';
293
- input: { version: string; previousVersion: string };
1041
+ input: { version: string; previousVersion: string; releaseGateFanout?: boolean; graphCutover?: 'legacy' | 'audit'; graphCutoverEvidenceId?: string };
294
1042
  cases: ReleaseSimRigCase[];
295
1043
  }
296
1044
 
@@ -301,7 +1049,9 @@ export interface ReleaseSimRigCaseResult {
301
1049
  path: string[];
302
1050
  dispatchedNodes: string[];
303
1051
  unexpectedEdges: Array<{ from: string; to: string; outcome: string; expectedTo?: string }>;
304
- checks: { status: boolean; mustVisit: boolean; mustNotVisit: boolean; overlap: boolean; ledgerEvents: boolean };
1052
+ checks: { status: boolean; mustVisit: boolean; mustNotVisit: boolean; overlap: boolean; ledgerEvents: boolean; events?: boolean; adaptiveRepair?: boolean;
1053
+ productionTriage?: boolean; repairInputMatchesResidualExecution?: boolean; receiptMismatchRoutedToResidual?: boolean;
1054
+ appBugDetected?: boolean; appRepairRoutesGreen?: boolean; oneSameRunReceipt?: boolean };
305
1055
  fanOuts?: GraphRunState['fanOuts'];
306
1056
  nodeTimings?: Record<string, { startedAtMs: number; endedAtMs: number }>;
307
1057
  injectedEvidence: Record<string, unknown>;
@@ -311,19 +1061,28 @@ export interface ReleaseSimRigCaseResult {
311
1061
  }
312
1062
 
313
1063
  function unexpectedEdges(path: string[], state: GraphRunState, edges: Map<string, Record<string, unknown>>): ReleaseSimRigCaseResult['unexpectedEdges'] {
314
- const nodes = new Map(state.nodes.map((node) => [node.nodeId, node]));
1064
+ const nodes = new Map<string, typeof state.nodes[number][]>();
1065
+ for (const node of state.nodes) nodes.set(node.nodeId, [...(nodes.get(node.nodeId) ?? []), node]);
1066
+ const visits = new Map<string, number>();
315
1067
  const issues: ReleaseSimRigCaseResult['unexpectedEdges'] = [];
316
1068
  for (let index = 0; index + 1 < path.length; index++) {
317
1069
  const from = path[index]!;
318
1070
  const to = path[index + 1]!;
1071
+ const visit = visits.get(from) ?? 0;
1072
+ visits.set(from, visit + 1);
1073
+ const adaptiveAppend = state.adaptiveGateNodeAppends?.some(({ request }) =>
1074
+ (from === request.afterNodeId && to === request.node.nodeId)
1075
+ || (from === request.node.nodeId && to === request.rerunGateAt));
1076
+ if (adaptiveAppend) continue;
319
1077
  const edge = edges.get(from);
320
1078
  if (edge?.branches && edge.join === to) continue; // The runner records a fan-out's barrier as the parent-path successor.
321
- const output = nodes.get(from)?.output;
1079
+ const node = nodes.get(from)?.[visit] ?? nodes.get(from)?.at(-1);
1080
+ const output = node?.output;
322
1081
  let parsed: Record<string, unknown> = {};
323
1082
  if (typeof output === 'string') {
324
1083
  try { parsed = record(JSON.parse(output.trim().split('\n').at(-1) ?? ''), `${from} output`); } catch { /* use runner fallback below */ }
325
1084
  } else if (output && typeof output === 'object' && !Array.isArray(output)) parsed = output as Record<string, unknown>;
326
- const named = typeof parsed.outcome === 'string' ? parsed.outcome : nodes.get(from)?.ok ? 'ok' : 'fail';
1085
+ const named = typeof parsed.outcome === 'string' ? parsed.outcome : node?.ok ? 'ok' : 'fail';
327
1086
  const map = edge?.map && typeof edge.map === 'object' ? edge.map as Record<string, unknown> : {};
328
1087
  const mappedOutcome = named === 'pass(owner-waived)' ? 'ok' : named;
329
1088
  const expectedTo = typeof map[mappedOutcome] === 'string' ? map[mappedOutcome] as string : typeof map[mappedOutcome === 'ok' ? 'ok' : 'fail'] === 'string'
@@ -339,6 +1098,89 @@ function recordObservedEdges(path: string[], events: Array<Record<string, unknow
339
1098
  }
340
1099
  }
341
1100
 
1101
+ function checkExpectedEvents(expected: ReleaseEventExpectation[] | undefined, actual: Array<Record<string, unknown>>) {
1102
+ const graphBusTrace = actual.filter((row) => row.observedBy === 'GraphEventBus');
1103
+ return expected ? checkReleaseEventTrace(graphBusTrace as ReleaseEventRecord[], expected) : undefined;
1104
+ }
1105
+
1106
+ function createReleaseTraceBus(events: Array<Record<string, unknown>>): GraphEventBus {
1107
+ const bus = createGraphEventBus();
1108
+ bus.subscribe((event: GraphEvent) => {
1109
+ events.push({ event: event.type, graphId: event.graphId, runId: event.runId,
1110
+ ...(event.source.nodeId === undefined ? {} : { nodeId: event.source.nodeId }),
1111
+ ...event.data, eventId: event.eventId, sequence: event.sequence, observedBy: 'GraphEventBus' });
1112
+ });
1113
+ return bus;
1114
+ }
1115
+
1116
+ async function runIncidentPolicyHandlerCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string): Promise<ReleaseSimRigCaseResult> {
1117
+ const eventType = item.incidentEventType;
1118
+ const description = item.incidentDescription;
1119
+ const rationale = item.incidentRationale;
1120
+ if (!eventType || !description || !rationale) throw new Error('incident-policy-handler case requires event type, description, and rationale');
1121
+ const graphDocument = parseYaml(readFileSync(RELEASE_GRAPH, 'utf8')) as Record<string, unknown> & { nodes: Array<Record<string, unknown>> };
1122
+ const gateTriage = graphDocument.nodes.find((node) => node.node_id === 'gate-triage');
1123
+ const expectedSubscription = { event: eventType, match: { nodeId: 'gate' }, action: 'reroute' };
1124
+ const subscriptions = Array.isArray(gateTriage?.subscribes) ? gateTriage.subscribes : [];
1125
+ const subscriptionOk = subscriptions.some((row) => {
1126
+ if (!row || typeof row !== 'object' || Array.isArray(row)) return false;
1127
+ const subscription = row as Record<string, unknown>;
1128
+ const match = subscription.match;
1129
+ return subscription.event === eventType && subscription.action === 'reroute'
1130
+ && !!match && typeof match === 'object' && !Array.isArray(match)
1131
+ && (match as Record<string, unknown>).nodeId === 'gate';
1132
+ });
1133
+ graphDocument.entry_node = 'gate';
1134
+
1135
+ const runId = `release-sim-${scenario.id}-${item.id}`;
1136
+ const ledgerEvents: Array<Record<string, unknown>> = [];
1137
+ const eventBus = createReleaseTraceBus(ledgerEvents);
1138
+ const incidentPolicy = createIncidentPolicyHandler(async (dispatch) => ({
1139
+ vocabularyLine: dispatch.event.type,
1140
+ repairSummary: description,
1141
+ rationale,
1142
+ }));
1143
+ const state = await runGraph(RELEASE_GRAPH, {
1144
+ graphSource: stringifyYaml(graphDocument), runId, input: scenario.input, pinChildUniverse: true, quiet: true, eventBus,
1145
+ deps: {
1146
+ root,
1147
+ runBash: async (_command, options) => {
1148
+ const { nodeId } = readGraphContext(options.env ?? process.env);
1149
+ if (nodeId === 'gate') {
1150
+ await eventBus.publish({ graphId: 'release-loop', runId, type: eventType,
1151
+ source: { kind: 'node', nodeId: 'gate' }, data: { incidentId: item.id, description } });
1152
+ await eventBus.flush({ graphId: 'release-loop', runId });
1153
+ }
1154
+ return { exitCode: 0, stdout: '{"outcome":"ok"}\n', stderr: '' };
1155
+ },
1156
+ dispatchGraphSubscription: async (dispatch) => incidentPolicy(dispatch),
1157
+ },
1158
+ });
1159
+ const persisted = listGraphRuns(root).runs.find((run) => run.graphId === 'release-loop' && run.runId === runId);
1160
+ const appendedNodeId = state.subscriptionGraphAppends?.[0]?.proposal.entryNodeId;
1161
+ const appendedReason = state.subscriptionGraphAppends?.[0]?.proposal.reason;
1162
+ const expectedPath = appendedNodeId ? ['gate', 'gate-triage', appendedNodeId, 'done'] : [];
1163
+ const mutationOk = state.adaptiveGraphVocabulary?.includes(eventType) === true
1164
+ && state.adaptiveGraphEdges?.some((edge) => edge.from === 'gate' && edge.to === 'gate-triage' && edge.triggerEvent === eventType && edge.rationale === rationale) === true
1165
+ && !!appendedNodeId && /^gate-repair-[a-f0-9]{12}$/.test(appendedNodeId)
1166
+ && state.subscriptionGraphAppends?.length === 1 && appendedReason === `${description}: ${rationale}`;
1167
+ const persistenceOk = !!persisted
1168
+ && JSON.stringify(persisted.adaptiveGraphVocabulary) === JSON.stringify(state.adaptiveGraphVocabulary)
1169
+ && JSON.stringify(persisted.subscriptionGraphAppends) === JSON.stringify(state.subscriptionGraphAppends)
1170
+ && JSON.stringify(persisted.adaptiveGraphEdges ?? []) === JSON.stringify(state.adaptiveGraphEdges ?? []);
1171
+ const pathOk = !!appendedNodeId && JSON.stringify(state.path) === JSON.stringify(expectedPath);
1172
+ const busEventOk = ledgerEvents.some((event) => event.event === eventType && event.runId === runId && event.observedBy === 'GraphEventBus');
1173
+ const statusOk = state.status === item.expect.status && state.status === 'done';
1174
+ const mustVisit = item.expect.mustVisit.every((nodeId) => state.path.includes(nodeId)) && pathOk;
1175
+ const mustNotVisit = item.expect.mustNotVisit.every((nodeId) => !state.path.includes(nodeId));
1176
+ recordObservedEdges(state.path, ledgerEvents);
1177
+ const pass = subscriptionOk && mutationOk && persistenceOk && statusOk && mustVisit && mustNotVisit && busEventOk;
1178
+ return { id: item.id, pass, status: state.status, path: state.path, dispatchedNodes: state.path, unexpectedEdges: [],
1179
+ checks: { status: statusOk, mustVisit, mustNotVisit, overlap: true, ledgerEvents: busEventOk && persistenceOk, events: subscriptionOk && mutationOk },
1180
+ injectedEvidence: { universe: 'test', eventType, subscriptionOk, mutationOk, persistenceOk, appendedNodeId, statePath: state.statePath },
1181
+ ledgerEvents, statePath: state.statePath };
1182
+ }
1183
+
342
1184
  export interface ReleaseSimRigResult {
343
1185
  id: string;
344
1186
  pass: boolean;
@@ -353,6 +1195,13 @@ function record(value: unknown, where: string): Record<string, unknown> {
353
1195
  return value as Record<string, unknown>;
354
1196
  }
355
1197
 
1198
+ function outputRecord(value: unknown): Record<string, unknown> | undefined {
1199
+ if (value && typeof value === 'object' && !Array.isArray(value)) return value as Record<string, unknown>;
1200
+ if (typeof value !== 'string') return undefined;
1201
+ try { return record(JSON.parse(value.trim().split('\n').at(-1) ?? ''), 'node output'); }
1202
+ catch { return undefined; }
1203
+ }
1204
+
356
1205
  function exactKeys(value: Record<string, unknown>, allowed: readonly string[], where: string): void {
357
1206
  const extra = Object.keys(value).filter((key) => !allowed.includes(key));
358
1207
  if (extra.length) throw new Error(`${where} has unsupported key(s): ${extra.join(', ')}`);
@@ -365,21 +1214,20 @@ function stringList(value: unknown, where: string): string[] {
365
1214
  return value as string[];
366
1215
  }
367
1216
 
368
- function releaseGraphShape(): { nodeIds: Set<string>; edges: Map<string, Record<string, unknown>> } {
369
- const graph = record(parseYaml(readFileSync(RELEASE_GRAPH, 'utf8')), 'release graph');
370
- if (!Array.isArray(graph.nodes) || !Array.isArray(graph.edges)) throw new Error('release graph nodes or edges missing');
371
- const nodeIds = new Set(graph.nodes.map((value) => record(value, 'release graph node').node_id)
372
- .filter((id): id is string => typeof id === 'string'));
1217
+ function releaseGraphShape(fanout = false): { nodeIds: Set<string>; edges: Map<string, Record<string, unknown>> } {
1218
+ const graphPath = fanout ? join(dirname(RELEASE_GRAPH), 'release-loop-fanout.yaml') : RELEASE_GRAPH;
1219
+ const parsed = parseGraphTemplateYaml(readFileSync(graphPath, 'utf8'));
1220
+ if (!parsed.template || parsed.errors.length) throw new Error(`release graph is invalid: ${parsed.errors.map((issue) => issue.message).join('; ')}`);
1221
+ const nodeIds = new Set(parsed.template.nodes.map((node) => node.nodeId));
373
1222
  const edges = new Map<string, Record<string, unknown>>();
374
- for (const raw of graph.edges) {
375
- const edge = record(raw, 'release edge');
1223
+ for (const edge of parsed.template.edges) {
376
1224
  const mapped = !!edge.map && typeof edge.map === 'object';
377
1225
  const branched = !!edge.branches && typeof edge.branches === 'object' && typeof edge.join === 'string';
378
1226
  if (typeof edge.from !== 'string' || edge.on !== 'outcome' || (!mapped && !branched)) {
379
1227
  throw new Error('release simulation requires outcome edges with explicit maps or fan-out joins');
380
1228
  }
381
1229
  if (edges.has(edge.from)) throw new Error(`release graph has multiple outcome edges from ${edge.from}`);
382
- edges.set(edge.from, edge);
1230
+ edges.set(edge.from, edge as unknown as Record<string, unknown>);
383
1231
  }
384
1232
  return { nodeIds, edges };
385
1233
  }
@@ -392,25 +1240,51 @@ export function parseReleaseSimRigScenario(source: string): ReleaseSimRigScenari
392
1240
  }
393
1241
  if (typeof root.id !== 'string' || !/^[a-z0-9][a-z0-9-]{0,63}$/.test(root.id)) throw new Error('scenario.id must be lowercase letters, digits, and hyphens');
394
1242
  const input = record(root.input, 'scenario.input');
395
- exactKeys(input, ['version', 'previousVersion'], 'scenario.input');
1243
+ exactKeys(input, ['version', 'previousVersion', 'releaseGateFanout', 'graphCutover', 'graphCutoverEvidenceId'], 'scenario.input');
1244
+ if (input.releaseGateFanout !== undefined && typeof input.releaseGateFanout !== 'boolean') {
1245
+ throw new Error('scenario.input.releaseGateFanout must be boolean');
1246
+ }
1247
+ if (input.graphCutover !== undefined && input.graphCutover !== 'legacy' && input.graphCutover !== 'audit') {
1248
+ throw new Error('scenario.input.graphCutover must be legacy or audit');
1249
+ }
1250
+ if (input.graphCutoverEvidenceId !== undefined && typeof input.graphCutoverEvidenceId !== 'string') {
1251
+ throw new Error('scenario.input.graphCutoverEvidenceId must be a string');
1252
+ }
396
1253
  if (typeof input.version !== 'string' || !/^\d+\.\d+\.\d+$/.test(input.version)
397
1254
  || typeof input.previousVersion !== 'string' || !/^\d+\.\d+\.\d+$/.test(input.previousVersion)) {
398
1255
  throw new Error('scenario.input requires release version and previousVersion');
399
1256
  }
400
1257
  const rawCases = root.cases;
401
1258
  if (!Array.isArray(rawCases) || rawCases.length === 0 || rawCases.length > 32) throw new Error('scenario.cases must contain 1–32 cases');
402
- const { nodeIds } = releaseGraphShape();
1259
+ const { nodeIds } = releaseGraphShape(input.releaseGateFanout === true);
403
1260
  const ids = new Set<string>();
404
1261
  const cases = rawCases.map((raw, index): ReleaseSimRigCase => {
405
1262
  const row = record(raw, `scenario.cases[${index}]`);
406
- exactKeys(row, ['id', 'mode', 'fault', 'nodeOutcomes', 'expect'], `scenario.cases[${index}]`);
1263
+ exactKeys(row, ['id', 'mode', 'fault', 'repairFault', 'nodeOutcomes', 'unmeasuredGateShape', 'incidentEventType', 'incidentDescription', 'incidentRationale', 'expect'], `scenario.cases[${index}]`);
407
1264
  if (typeof row.id !== 'string' || !/^[a-z0-9][a-z0-9-]{0,63}$/.test(row.id) || ids.has(row.id)) throw new Error(`scenario.cases[${index}].id must be unique lowercase text`);
408
1265
  ids.add(row.id);
409
1266
  let mode: ReleaseSimRigCase['mode'];
410
1267
  if (row.mode !== undefined) {
411
- if (row.mode !== 'baseline' && row.mode !== 'cut-tip-moved-after-resume' && row.mode !== 'cutoff-cli-notes-empty' && row.mode !== 'docs-node-cli-in-sim' && row.mode !== 'gate-waive-introduced-regression' && row.mode !== 'owner-waive-missing-schema' && row.mode !== 'owner-waive-0246-fixture' && row.mode !== 'append-receipt-continuity') throw new Error(`scenario.cases[${index}].mode is unregistered`);
1268
+ if (row.mode !== 'baseline' && row.mode !== 'cut-tip-moved-after-resume' && row.mode !== 'approval-graph-path-mismatch' && row.mode !== 'pwa-costly-opt-in-required' && row.mode !== 'cutoff-cli-notes-empty' && row.mode !== 'docs-node-cli-in-sim' && row.mode !== 'gate-waive-introduced-regression' && row.mode !== 'owner-waive-unmeasured-gate' && row.mode !== 'owner-waive-missing-schema' && row.mode !== 'owner-waive-0246-fixture' && row.mode !== 'owner-waive-downstream-failure' && row.mode !== 'append-receipt-continuity' && row.mode !== 'resume-fanout-branch-refused' && row.mode !== 'macrophage-heal' && row.mode !== 'macro-chain-e2e' && row.mode !== 'kaist-selfheal-stage' && row.mode !== 'old-graph-measured-waiver' && row.mode !== 'appended-tip-regate-before-waiver' && row.mode !== 'prod-seat-launch-refused' && row.mode !== 'incident-policy-handler') throw new Error(`scenario.cases[${index}].mode is unregistered`);
412
1269
  mode = row.mode;
413
1270
  }
1271
+ const incidentEventType = row.incidentEventType;
1272
+ const incidentDescription = row.incidentDescription;
1273
+ const incidentRationale = row.incidentRationale;
1274
+ if (mode === 'incident-policy-handler') {
1275
+ if (typeof incidentEventType !== 'string' || !/^release\.incident\.[a-z0-9][a-z0-9.-]{0,100}$/.test(incidentEventType)
1276
+ || typeof incidentDescription !== 'string' || !incidentDescription.trim()
1277
+ || typeof incidentRationale !== 'string' || !incidentRationale.trim()) {
1278
+ throw new Error(`scenario.cases[${index}] incident-policy-handler requires a release incident event, description, and rationale`);
1279
+ }
1280
+ } else if (incidentEventType !== undefined || incidentDescription !== undefined || incidentRationale !== undefined) {
1281
+ throw new Error(`scenario.cases[${index}] incident fields require incident-policy-handler mode`);
1282
+ }
1283
+ const unmeasuredGateShape = row.unmeasuredGateShape;
1284
+ if (unmeasuredGateShape !== undefined && unmeasuredGateShape !== 'stopped' && unmeasuredGateShape !== 'sweep-incomplete' && unmeasuredGateShape !== 'killed') {
1285
+ throw new Error(`scenario.cases[${index}].unmeasuredGateShape is unregistered`);
1286
+ }
1287
+ if (unmeasuredGateShape !== undefined && mode !== 'owner-waive-unmeasured-gate') throw new Error(`scenario.cases[${index}].unmeasuredGateShape requires owner-waive-unmeasured-gate mode`);
414
1288
  let fault: ReleaseSimRigCase['fault'];
415
1289
  if (row.fault !== undefined) {
416
1290
  const parsed = record(row.fault, `scenario.cases[${index}].fault`);
@@ -419,7 +1293,13 @@ export function parseReleaseSimRigScenario(source: string): ReleaseSimRigScenari
419
1293
  if (parsed.outcome !== 'fail' && parsed.outcome !== 'error' && parsed.outcome !== 'timeout') throw new Error(`scenario.cases[${index}].fault.outcome is unregistered`);
420
1294
  fault = { node: parsed.node, outcome: parsed.outcome, ...(parsed.evidence === undefined ? {} : { evidence: record(parsed.evidence, `scenario.cases[${index}].fault.evidence`) }) };
421
1295
  }
1296
+ if (mode === 'incident-policy-handler' && fault !== undefined) throw new Error(`scenario.cases[${index}] incident-policy-handler does not accept fault`);
422
1297
  if ((mode === undefined) === (fault === undefined)) throw new Error(`scenario.cases[${index}] requires exactly one of mode or fault`);
1298
+ const repairFault = row.repairFault;
1299
+ if (repairFault !== undefined && (mode !== 'kaist-selfheal-stage'
1300
+ || (repairFault !== 'bad-artifact' && repairFault !== 'unlanded'))) {
1301
+ throw new Error(`scenario.cases[${index}].repairFault is only valid for KAIST self-heal and must be bad-artifact or unlanded`);
1302
+ }
423
1303
  const nodeOutcomes: ReleaseSimRigCase['nodeOutcomes'] = {};
424
1304
  if (row.nodeOutcomes !== undefined) {
425
1305
  const rawOutcomes = record(row.nodeOutcomes, `scenario.cases[${index}].nodeOutcomes`);
@@ -427,14 +1307,17 @@ export function parseReleaseSimRigScenario(source: string): ReleaseSimRigScenari
427
1307
  if (!nodeIds.has(node)) throw new Error(`scenario.cases[${index}].nodeOutcomes names unknown release node ${node}`);
428
1308
  const injection = record(value, `scenario.cases[${index}].nodeOutcomes.${node}`);
429
1309
  exactKeys(injection, ['outcome', 'delayMs'], `scenario.cases[${index}].nodeOutcomes.${node}`);
430
- if (injection.outcome !== 'ok' && injection.outcome !== 'fail' && injection.outcome !== 'error') throw new Error(`scenario.cases[${index}].nodeOutcomes.${node}.outcome is invalid`);
1310
+ if (injection.outcome !== 'ok' && injection.outcome !== 'fail' && injection.outcome !== 'error' && injection.outcome !== 'unknown') throw new Error(`scenario.cases[${index}].nodeOutcomes.${node}.outcome is invalid`);
431
1311
  if (injection.delayMs !== undefined && (!Number.isSafeInteger(injection.delayMs) || (injection.delayMs as number) < 0 || (injection.delayMs as number) > 60_000)) throw new Error(`scenario.cases[${index}].nodeOutcomes.${node}.delayMs must be 0–60000`);
432
1312
  nodeOutcomes[node] = { outcome: injection.outcome, ...(injection.delayMs === undefined ? {} : { delayMs: injection.delayMs as number }) };
433
1313
  }
434
1314
  }
435
1315
  const expected = record(row.expect, `scenario.cases[${index}].expect`);
436
- exactKeys(expected, ['status', 'mustVisit', 'mustNotVisit', 'overlap', 'refusalIncludes'], `scenario.cases[${index}].expect`);
437
- if (expected.status !== 'done' && expected.status !== 'failed' && expected.status !== 'resume-refused') throw new Error(`scenario.cases[${index}].expect.status is invalid`);
1316
+ exactKeys(expected, ['status', 'mustVisit', 'mustNotVisit', 'overlap', 'refusalIncludes', 'events'], `scenario.cases[${index}].expect`);
1317
+ if (mode === 'incident-policy-handler' && (row.nodeOutcomes !== undefined || expected.overlap !== undefined || expected.events !== undefined)) {
1318
+ throw new Error(`scenario.cases[${index}] incident-policy-handler does not accept nodeOutcomes, overlap, or events expectations`);
1319
+ }
1320
+ if (expected.status !== 'done' && expected.status !== 'failed' && expected.status !== 'resume-refused' && expected.status !== 'awaiting-approval') throw new Error(`scenario.cases[${index}].expect.status is invalid`);
438
1321
  const mustVisit = stringList(expected.mustVisit, `scenario.cases[${index}].expect.mustVisit`);
439
1322
  const mustNotVisit = stringList(expected.mustNotVisit, `scenario.cases[${index}].expect.mustNotVisit`);
440
1323
  const refusalIncludes = expected.refusalIncludes;
@@ -445,58 +1328,112 @@ export function parseReleaseSimRigScenario(source: string): ReleaseSimRigScenari
445
1328
  if (pair.length !== 2 || pair[0] === pair[1] || pair.some((id) => !nodeIds.has(id))) throw new Error(`scenario.cases[${index}].expect.overlap must name two different release nodes`);
446
1329
  overlap = [pair[0]!, pair[1]!];
447
1330
  }
1331
+ let events: ReleaseEventExpectation[] | undefined;
1332
+ if (expected.events !== undefined) {
1333
+ if (!Array.isArray(expected.events)) throw new Error(`scenario.cases[${index}].expect.events must be an array`);
1334
+ events = expected.events.map((rawEvent, eventIndex) => {
1335
+ const event = record(rawEvent, `scenario.cases[${index}].expect.events[${eventIndex}]`);
1336
+ if (Object.hasOwn(event, 'concurrent')) {
1337
+ exactKeys(event, ['concurrent'], `scenario.cases[${index}].expect.events[${eventIndex}]`);
1338
+ if (!Array.isArray(event.concurrent) || event.concurrent.length === 0) throw new Error(`scenario.cases[${index}].expect.events[${eventIndex}].concurrent must be a non-empty array`);
1339
+ return { concurrent: event.concurrent.map((rawMember, memberIndex) => {
1340
+ const member = record(rawMember, `scenario.cases[${index}].expect.events[${eventIndex}].concurrent[${memberIndex}]`);
1341
+ if (typeof member.event !== 'string' || member.event.trim() === '') throw new Error(`scenario.cases[${index}].expect.events[${eventIndex}] requires event names`);
1342
+ return member as ReleaseEventRecord;
1343
+ }) };
1344
+ }
1345
+ if (typeof event.event !== 'string' || event.event.trim() === '') throw new Error(`scenario.cases[${index}].expect.events[${eventIndex}] requires an event name`);
1346
+ return event as ReleaseEventRecord;
1347
+ });
1348
+ }
448
1349
  const expectedNodeIds = mode === 'append-receipt-continuity' ? new Set([...nodeIds, ...RECEIPT_SIM_NODE_IDS]) : nodeIds;
449
1350
  for (const id of [...mustVisit, ...mustNotVisit]) if (!expectedNodeIds.has(id)) throw new Error(`scenario.cases[${index}] names unknown release node ${id}`);
450
1351
  if (mustVisit.some((id) => mustNotVisit.includes(id))) throw new Error(`scenario.cases[${index}] visits and excludes the same node`);
451
- return { id: row.id, ...(mode ? { mode } : {}), ...(fault ? { fault } : {}), ...(Object.keys(nodeOutcomes).length ? { nodeOutcomes } : {}),
452
- expect: { status: expected.status, mustVisit, mustNotVisit, ...(overlap ? { overlap } : {}), ...(typeof refusalIncludes === 'string' ? { refusalIncludes } : {}) } };
1352
+ return { id: row.id, ...(mode ? { mode } : {}), ...(fault ? { fault } : {}), ...(repairFault ? { repairFault } : {}), ...(mode === 'incident-policy-handler' ? {
1353
+ incidentEventType: incidentEventType as string, incidentDescription: incidentDescription as string, incidentRationale: incidentRationale as string,
1354
+ } : {}), ...(Object.keys(nodeOutcomes).length ? { nodeOutcomes } : {}),
1355
+ ...(unmeasuredGateShape ? { unmeasuredGateShape } : {}),
1356
+ expect: { status: expected.status, mustVisit, mustNotVisit, ...(overlap ? { overlap } : {}), ...(typeof refusalIncludes === 'string' ? { refusalIncludes } : {}), ...(events ? { events } : {}) } };
453
1357
  });
454
1358
  return { version: 1, kind: 'release-graph', id: root.id, isolation: 'test',
455
- input: { version: input.version, previousVersion: input.previousVersion }, cases };
1359
+ input: { version: input.version, previousVersion: input.previousVersion,
1360
+ ...(input.releaseGateFanout === true ? { releaseGateFanout: true } : {}),
1361
+ ...(input.graphCutover === undefined ? {} : { graphCutover: input.graphCutover as 'legacy' | 'audit' }),
1362
+ ...(input.graphCutoverEvidenceId === undefined ? {} : { graphCutoverEvidenceId: input.graphCutoverEvidenceId as string }) }, cases };
456
1363
  }
457
1364
 
458
- function parseContext(env: NodeJS.ProcessEnv): { nodeId: string } {
1365
+ function parseContext(env: NodeJS.ProcessEnv): { nodeId: string; executionId: string } {
459
1366
  const location = env.ELANOUS_GRAPH_CONTEXT;
460
1367
  if (!location) throw new Error('ELANOUS_GRAPH_CONTEXT missing in release simulation');
461
1368
  const context = record(JSON.parse(readFileSync(location, 'utf8')), 'release graph context');
462
1369
  if (typeof context.nodeId !== 'string') throw new Error('release graph context nodeId missing');
463
- return { nodeId: context.nodeId };
1370
+ if (typeof context.executionId !== 'string') throw new Error('release graph context executionId missing');
1371
+ return { nodeId: context.nodeId, executionId: context.executionId };
464
1372
  }
465
1373
 
466
- function resultForNode(nodeId: string, fault: ReleaseSimRigCase['fault'], version: string): { exitCode: number; stdout: string; stderr: string; evidence: Record<string, unknown> } {
1374
+ type SimulatedNodeFault = NonNullable<ReleaseSimRigCase['fault']> | { node: string; outcome: 'unknown'; evidence?: Record<string, unknown> };
1375
+
1376
+ function resultForNode(nodeId: string, fault: SimulatedNodeFault | undefined, version: string): { exitCode: number; stdout: string; stderr: string; evidence: Record<string, unknown> } {
467
1377
  const triggeredFault = fault?.node === nodeId ? fault : undefined;
468
1378
  const outcome = triggeredFault ? triggeredFault.outcome === 'timeout' ? 'error' : triggeredFault.outcome : 'ok';
469
1379
  const evidence = triggeredFault?.evidence ?? {};
470
1380
  const commit = nodeId === 'version-release' ? { commit: cutTip(), tag: `v${version}` } : {};
471
1381
  const introduced = Array.isArray(evidence.introduced) && evidence.introduced.every((id) => typeof id === 'string')
472
1382
  ? evidence.introduced as string[] : [];
473
- // Only a named, nonempty introduced set can stand in for a measured remote regression verdict.
474
- const gateOutput = nodeId === 'gate' && triggeredFault && evidence.realGateTriage === true && introduced.length > 0 ? {
1383
+ // Triage is production code, so its simulated gate input must satisfy the
1384
+ // same GateResult contract as runGate. Attribution gaps are errors with no
1385
+ // introduced IDs; measured regressions require explicit identities.
1386
+ const gateOutput = nodeId === 'gate' && triggeredFault && evidence.realGateTriage === true ? {
475
1387
  commit: cutTip(), introduced, preexisting: 0, fixed: null, knownEnv: 0, knownEnvCleared: [], stalledEnv: [],
476
- durationMs: 1, ...(outcome === 'fail' ? { outcome: 'fail', autoheal: { action: 'hitl', cause: 'true-regression',
477
- shardKey: 'gate', reason: 'measured regression requires a human decision', shardElapsedMs: 1, overallElapsedMs: 1 } } : {}),
1388
+ durationMs: 1, ...(outcome === 'fail' && introduced.length > 0 ? { outcome: 'fail', autoheal: { action: 'hitl', cause: 'true-regression',
1389
+ shardKey: 'gate', reason: 'measured regression requires a human decision', shardElapsedMs: 1, overallElapsedMs: 1 } }
1390
+ : outcome === 'error' ? { outcome: 'error', error: String(evidence.error ?? 'failure attribution incomplete') } : {}),
478
1391
  } : {};
479
1392
  const payload = { outcome, verdict: outcome === 'ok' ? 'pass' : 'fail', summary: triggeredFault ? `simulated ${triggeredFault.outcome}` : `simulated ${nodeId} success`, ...commit, ...gateOutput,
480
1393
  simulation: { injected: triggeredFault !== undefined, node: nodeId, evidence } };
481
- return { exitCode: !triggeredFault ? 0 : triggeredFault.outcome === 'fail' ? 1 : triggeredFault.outcome === 'timeout' ? 124 : 2,
1394
+ return { exitCode: !triggeredFault || triggeredFault.outcome === 'unknown' ? 0 : triggeredFault.outcome === 'fail' ? 1 : triggeredFault.outcome === 'timeout' ? 124 : 2,
482
1395
  stdout: `${JSON.stringify(payload)}\n`, stderr: triggeredFault ? `SIMULATED_${triggeredFault.outcome.toUpperCase()}` : '', evidence };
483
1396
  }
484
1397
 
1398
+ interface SharedUnmeasuredGateFixture {
1399
+ runId: string;
1400
+ state?: GraphRunState;
1401
+ snapshotRoot?: string;
1402
+ dispatchedNodes?: string[];
1403
+ ledgerEvents?: Array<Record<string, unknown>>;
1404
+ nodeTimings?: NonNullable<ReleaseSimRigCaseResult['nodeTimings']>;
1405
+ initialRuns: number;
1406
+ }
1407
+
485
1408
  async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
486
- edges: Map<string, Record<string, unknown>>): Promise<ReleaseSimRigCaseResult> {
487
- const runId = `release-sim-${scenario.id}-${item.id}`;
1409
+ edges: Map<string, Record<string, unknown>>, shared?: SharedUnmeasuredGateFixture): Promise<ReleaseSimRigCaseResult> {
1410
+ const runId = item.unmeasuredGateShape && shared ? shared.runId : `release-sim-${scenario.id}-${item.id}`;
1411
+ if (item.unmeasuredGateShape && shared) {
1412
+ const testRoot = root;
1413
+ root = shared.state
1414
+ ? join(testRoot, 'ux-sim', 'unmeasured-gate-cases', item.id)
1415
+ : join(testRoot, 'ux-sim', 'unmeasured-gate-base');
1416
+ mkdirSync(root, { recursive: true });
1417
+ }
488
1418
  if (item.mode === 'owner-waive-0246-fixture') {
489
1419
  root = join(root, runId);
490
1420
  mkdirSync(root, { recursive: true });
491
1421
  }
492
- const ownerWaived = item.mode === 'owner-waive-missing-schema' || item.mode === 'owner-waive-0246-fixture';
493
- const fixtureOwnerWaiver = item.mode === 'owner-waive-0246-fixture';
494
- const input = fixtureOwnerWaiver ? { ...scenario.input, version: '0.2.46', previousVersion: '0.2.45', branchCut: true }
495
- : ownerWaived ? { ...scenario.input, version: '0.2.45', previousVersion: '0.2.44' } : scenario.input;
496
- const gateFixture = fixtureOwnerWaiver
1422
+ const downstreamFailure = item.mode === 'owner-waive-downstream-failure';
1423
+ const ownerWaived = (item.mode === 'owner-waive-unmeasured-gate' && item.unmeasuredGateShape === undefined) || item.mode === 'owner-waive-0246-fixture' || downstreamFailure;
1424
+ const fixtureOwnerWaiver = item.mode === 'owner-waive-0246-fixture' || downstreamFailure;
1425
+ let input: { version: string; previousVersion: string; branchCut?: boolean; [key: string]: unknown } = fixtureOwnerWaiver ? { ...scenario.input, version: '0.2.46', previousVersion: '0.2.45', branchCut: true }
1426
+ : ownerWaived ? { ...scenario.input, version: '0.2.45', previousVersion: '0.2.44' }
1427
+ : item.unmeasuredGateShape ? { ...scenario.input, branchCut: true } : { ...scenario.input };
1428
+ const gateFixture = item.mode === 'owner-waive-0246-fixture'
497
1429
  ? JSON.parse(readFileSync(join(REPOSITORY_ROOT, 'scripts/release-loop/fixtures/gate-verdict-0.2.46.json'), 'utf8')) as Record<string, unknown>
498
1430
  : undefined;
499
1431
  const fixtureIntroducedIds = Array.isArray(gateFixture?.introduced) ? gateFixture.introduced as string[] : [];
1432
+ if (fixtureOwnerWaiver) {
1433
+ const fixtureCommit = typeof gateFixture?.commit === 'string' ? gateFixture.commit : cutTip();
1434
+ const prior = { classification: 'regression' as const, commit: fixtureCommit, failureIds: [...fixtureIntroducedIds].sort() };
1435
+ input = { ...input, gateTriageEvidence: { priorDecisions: [prior, prior] } };
1436
+ }
500
1437
  const introducedId = 'src/example.test.ts > reports the known regression';
501
1438
  const acceptedRegressions = [{ id: introducedId, note: 'The example capability may fail during use.' }];
502
1439
  const reason = 'Known gate failures remain in this release. Users may encounter these issues during normal use.';
@@ -506,16 +1443,25 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
506
1443
  let npmPublishEvidence: Record<string, unknown> | undefined;
507
1444
  let verifyEvidence: Record<string, unknown> | undefined;
508
1445
  const ledgerEvents: Array<Record<string, unknown>> = [];
1446
+ const eventBus = createReleaseTraceBus(ledgerEvents);
509
1447
  const nodeTimings: NonNullable<ReleaseSimRigCaseResult['nodeTimings']> = {};
510
1448
  let knownIssuesAccepted: unknown;
511
1449
  const runBash = async (command: string, options: { env?: NodeJS.ProcessEnv }) => {
512
- const { nodeId } = parseContext(options.env ?? process.env);
1450
+ const { nodeId, executionId } = parseContext(options.env ?? process.env);
513
1451
  if (!command.trim()) throw new Error(`empty command at simulated node ${nodeId}`);
514
1452
  dispatchedNodes.push(nodeId);
515
1453
  if (!resumedPhase) firstAttemptDispatchedNodes.push(nodeId);
516
1454
  const startedAtMs = performance.now();
1455
+ if (resumedPhase && downstreamFailure && nodeId === 'pwa') {
1456
+ const failed = resultForNode(nodeId, { node: nodeId, outcome: 'fail', evidence: { source: 'owner-waive-downstream-failure' } }, input.version);
1457
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1458
+ return { exitCode: failed.exitCode, stdout: failed.stdout, stderr: failed.stderr };
1459
+ }
517
1460
  if (nodeId === 'gate') {
518
1461
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1462
+ if (item.unmeasuredGateShape === 'killed' || (item.unmeasuredGateShape && shared && shared.initialRuns === 0)) {
1463
+ return { exitCode: null as unknown as number, stdout: `${JSON.stringify({ executionId, error: 'process terminated by SIGTERM' })}\n`, stderr: 'process terminated by SIGTERM' };
1464
+ }
519
1465
  if (gateFixture) {
520
1466
  const persisted = gateFixture as unknown as { outcome: 'regression'; introduced: string[]; preexisting: string[]; knownEnv: string[] };
521
1467
  const normalized = graphGateResult({ ...persisted, preexisting: persisted.preexisting.length, knownEnv: persisted.knownEnv.length,
@@ -523,10 +1469,32 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
523
1469
  unmeasuredErrors: [], abortedShards: 0, rcNonzeroNoFailures: [] } as unknown as GateResult, true);
524
1470
  return { exitCode: 1, stdout: `${JSON.stringify(normalized)}\n`, stderr: '' };
525
1471
  }
526
- return { exitCode: 1, stdout: `${JSON.stringify(item.mode === 'owner-waive-missing-schema' ? { outcome: 'fail', introduced: 1, introducedIds: [] } : { outcome: 'fail', verdict: 'fail', introduced: [introducedId],
1472
+ const unmeasuredGateResult = item.unmeasuredGateShape === 'sweep-incomplete'
1473
+ ? { outcome: 'error', verdict: 'fail', commit: cutTip(), introduced: [], preexisting: 0, fixed: null, knownEnv: 0, knownEnvCleared: [],
1474
+ stalledEnv: [], stalledShards: [{ shard: 3, files: ['a.test.ts'], reason: 'no-output' }], durationMs: 1, error: 'pod sweep incomplete: stalled shards 3' }
1475
+ : { outcome: 'error', verdict: 'fail', commit: cutTip(), introduced: [], preexisting: 0, fixed: null,
1476
+ knownEnv: 0, knownEnvCleared: [], stalledEnv: [], durationMs: 1, error: 'failure attribution incomplete' };
1477
+ return { exitCode: 1, stdout: `${JSON.stringify(item.unmeasuredGateShape ? unmeasuredGateResult : item.mode === 'owner-waive-unmeasured-gate' || downstreamFailure ? unmeasuredGateResult : { outcome: 'fail', verdict: 'fail', commit: cutTip(), introduced: [introducedId],
527
1478
  preexisting: 0, knownEnv: 0, durationMs: 1, stalledEnv: [], stalledShards: [], unmeasuredRecheckFiles: [], unmeasuredErrors: [], rcNonzeroNoFailures: [], abortedShards: 0 })}
528
1479
  `, stderr: '' };
529
1480
  }
1481
+ if (nodeId === 'version-release' && item.unmeasuredGateShape) {
1482
+ const value = { outcome: 'ok', version: input.version, commit: cutTip(), branch: `release/${input.version}` };
1483
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1484
+ return { exitCode: 0, stdout: `${JSON.stringify(value)}\n`, stderr: '' };
1485
+ }
1486
+ if (nodeId === 'gate-triage') {
1487
+ if (downstreamFailure) {
1488
+ const triage = resultForNode(nodeId, undefined, input.version);
1489
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1490
+ return { exitCode: triage.exitCode, stdout: triage.stdout, stderr: triage.stderr };
1491
+ }
1492
+ const child = spawnSync('bun', ['scripts/release-loop/gate-triage-node.ts'], {
1493
+ cwd: REPOSITORY_ROOT, env: { ...process.env, ...options.env }, encoding: 'utf8', maxBuffer: 1024 * 1024,
1494
+ });
1495
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1496
+ return { exitCode: child.status ?? 2, stdout: child.stdout ?? '', stderr: child.stderr ?? '' };
1497
+ }
530
1498
  if (nodeId === 'version-release' && fixtureOwnerWaiver) {
531
1499
  const value = { outcome: 'ok', version: input.version, commit: cutTip(), branch: `release/${input.version}` };
532
1500
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
@@ -561,7 +1529,16 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
561
1529
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
562
1530
  return { exitCode: 0, stdout: JSON.stringify(result) + '\n', stderr: '' };
563
1531
  }
564
- if (nodeId === 'known-issues' && ownerWaived) {
1532
+ if (nodeId === 'docs' && item.unmeasuredGateShape) {
1533
+ const worktree = join(root, 'unmeasured-release-docs');
1534
+ const notes = join(worktree, 'release/public/docs/releases', `${input.version}.md`);
1535
+ mkdirSync(dirname(notes), { recursive: true });
1536
+ writeFileSync(notes, '# Release\n');
1537
+ const result = { outcome: 'ok', branch: `release-docs/${input.version}`, worktree };
1538
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1539
+ return { exitCode: 0, stdout: `${JSON.stringify(result)}\n`, stderr: '' };
1540
+ }
1541
+ if (nodeId === 'known-issues' && (ownerWaived || item.unmeasuredGateShape)) {
565
1542
  const contextPath = options.env?.ELANOUS_GRAPH_CONTEXT;
566
1543
  if (!contextPath) throw new Error('known-issues context missing in owner waiver rig');
567
1544
  const previous = process.env.ELANOUS_GRAPH_CONTEXT;
@@ -573,7 +1550,10 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
573
1550
  resetEffectiveInstanceRoot();
574
1551
  try {
575
1552
  const graphContext = record(JSON.parse(readFileSync(contextPath, 'utf8')), 'known-issues context');
576
- const output = runKnownIssues(graphContext as never, (program, args, cwd) => program === 'git' ? { status: 0, stdout: '', stderr: '' } : { status: 1, stdout: '', stderr: `unexpected ${program} ${args.join(' ')}` });
1553
+ const output = runKnownIssues(graphContext as never, (program, args, cwd) => program === 'git'
1554
+ ? { status: 0, stdout: args[0] === 'rev-list' ? '0' : '', stderr: '' }
1555
+ : program === 'elanous' && args[0] === '--test' && args[1] === 'ask' ? { status: 1, stdout: '', stderr: 'simulated model unavailable' }
1556
+ : { status: 1, stdout: '', stderr: `unexpected ${program} ${args.join(' ')}` });
577
1557
  knownIssuesAccepted = record(graphContext.input, 'known-issues input').acceptedRegressions;
578
1558
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
579
1559
  return { exitCode: 0, stdout: JSON.stringify(output) + '\n', stderr: '' };
@@ -613,23 +1593,12 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
613
1593
  const graphContext = record(JSON.parse(readFileSync(contextPath, 'utf8')), 'npm-publish context');
614
1594
  const tokenFile = join(root, 'npm-token');
615
1595
  writeFileSync(tokenFile, 'fixture-token\n', { mode: 0o600 });
616
- const registryReads = new Map<string, number>();
617
- const published: string[] = [];
1596
+ const devices = createReleasePublishDevices('0.2.46');
618
1597
  const result = await runNpmPublish({ ...graphContext, input: { ...record(graphContext.input, 'npm-publish input'), npmWaitMinutes: 0, npmTokenFile: tokenFile } } as never, {
619
- stateDir: root, productionRoot: root, sleep: async () => {},
620
- exec: (command, args) => {
621
- if (command === 'tar') return { status: 0, stdout: JSON.stringify({ name: 'elanous', version: '0.2.46' }), stderr: '' };
622
- if (command === 'npm' && args[0] === 'publish') { published.push(args.join(' ')); return { status: 0, stdout: 'published', stderr: '' }; }
623
- return { status: 2, stdout: '', stderr: `unexpected ${command} ${args.join(' ')}` };
624
- },
625
- registry: async (url) => {
626
- const count = (registryReads.get(url) ?? 0) + 1;
627
- registryReads.set(url, count);
628
- if (url.endsWith('/0.2.46')) return count === 1 ? { status: 404, body: null } : { status: 200, body: { name: 'elanous', version: '0.2.46' } };
629
- return { status: 200, body: { 'dist-tags': { latest: count === 1 ? '0.2.45' : '0.2.46' } } };
630
- },
1598
+ ...devices.npm, stateDir: root, productionRoot: root,
631
1599
  });
632
- npmPublishEvidence = { ...(npmPublishEvidence ?? {}), result, publishedCommands: published, registryReads: Object.fromEntries(registryReads) };
1600
+ npmPublishEvidence = { ...(npmPublishEvidence ?? {}), result,
1601
+ publishedCommands: devices.npmCalls.filter((call) => call.startsWith('npm publish ')) };
633
1602
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
634
1603
  return { exitCode: result.outcome === 'ok' ? 0 : 1, stdout: `${JSON.stringify(result)}\n`, stderr: '' };
635
1604
  }
@@ -643,19 +1612,11 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
643
1612
  process.env.ELANOUS_STATE_DIR = root;
644
1613
  setElanousConfigDir(root);
645
1614
  resetEffectiveInstanceRoot();
646
- const externalCalls: string[] = [];
1615
+ const devices = createReleasePublishDevices(input.version);
647
1616
  try {
648
- const result = runPublish((program, args) => {
649
- externalCalls.push(`${program} ${args.join(' ')}`);
650
- if (program === 'git' && args[0] === 'show' && args[1]?.endsWith(`release/public/docs/releases/${input.version}.md`))
651
- return { status: 0, stdout: `# ${input.version}\n\nKnown Issues\n`, stderr: '' };
652
- if (program === 'git' && args[0] === 'show' && args[1]?.endsWith('website/pages.json'))
653
- return { status: 0, stdout: JSON.stringify({ pages: [] }), stderr: '' };
654
- if (program === 'bun' && args[0] === 'bin/elanous.mjs' && args[1] === 'release' && args[2] === 'publish')
655
- return { status: 0, stdout: JSON.stringify({ ok: true, published: true, tag: `v${input.version}`, publicRepo: 'elanous/elanous', assets: [] }), stderr: '' };
656
- return { status: 2, stdout: '', stderr: `unexpected publish boundary ${program} ${args.join(' ')}` };
657
- }, undefined, { now: () => Date.now(), sleep: () => {} }, root);
658
- npmPublishEvidence = { ...(npmPublishEvidence ?? {}), publishNodeResult: result, publishNodeExternalCalls: externalCalls };
1617
+ const result = runPublish(devices.publishRunner, undefined, { now: () => Date.now(), sleep: () => {} }, root);
1618
+ npmPublishEvidence = { ...(npmPublishEvidence ?? {}), publishNodeResult: result,
1619
+ publishNodeExternalCalls: devices.publishCalls };
659
1620
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
660
1621
  return { exitCode: result.outcome === 'ok' ? 0 : 1, stdout: `${JSON.stringify(result)}\n`, stderr: '' };
661
1622
  } finally {
@@ -682,8 +1643,65 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
682
1643
  return { exitCode: result.exitCode, stdout: result.stdout, stderr: result.stderr };
683
1644
  };
684
1645
  const capture = (event: string, data: Record<string, unknown>) => ledgerEvents.push({ event, ...data });
685
- const first = await runGraph(RELEASE_GRAPH, { runId, input, pinChildUniverse: true, quiet: true,
686
- deps: { root, runBash, log: capture } });
1646
+ let first: GraphRunState;
1647
+ if (item.unmeasuredGateShape && shared?.state) {
1648
+ const statePath = join(root, 'graph-runs', 'release-loop', `${runId}.json`);
1649
+ const snapshotRoot = shared.snapshotRoot;
1650
+ if (!snapshotRoot) throw new Error('shared unmeasured gate snapshot is missing');
1651
+ mkdirSync(dirname(statePath), { recursive: true });
1652
+ const restoredState = { ...shared.state, statePath };
1653
+ writeFileSync(statePath, `${JSON.stringify(restoredState, null, 2)}\n`);
1654
+ for (const suffix of ['.graph', '.contexts']) {
1655
+ rmSync(`${statePath}${suffix}`, { recursive: true, force: true });
1656
+ cpSync(`${snapshotRoot}${suffix}`, `${statePath}${suffix}`, { recursive: true });
1657
+ }
1658
+ firstAttemptDispatchedNodes.push(...(shared.dispatchedNodes ?? []));
1659
+ ledgerEvents.push(...(shared.ledgerEvents ?? []));
1660
+ Object.assign(nodeTimings, shared.nodeTimings ?? {});
1661
+ first = JSON.parse(JSON.stringify(restoredState)) as GraphRunState;
1662
+ } else {
1663
+ first = await runGraph(RELEASE_GRAPH, { runId, input, pinChildUniverse: true, quiet: true, eventBus,
1664
+ deps: { root, runBash, log: capture } });
1665
+ if (item.unmeasuredGateShape && shared) {
1666
+ shared.initialRuns += 1;
1667
+ shared.state = JSON.parse(readFileSync(first.statePath, 'utf8')) as GraphRunState;
1668
+ shared.snapshotRoot = join(root, 'ux-sim', 'shared-unmeasured-gate-base');
1669
+ mkdirSync(dirname(shared.snapshotRoot), { recursive: true });
1670
+ rmSync(`${shared.snapshotRoot}.graph`, { recursive: true, force: true });
1671
+ rmSync(`${shared.snapshotRoot}.contexts`, { recursive: true, force: true });
1672
+ for (const suffix of ['.graph', '.contexts']) cpSync(`${first.statePath}${suffix}`, `${shared.snapshotRoot}${suffix}`, { recursive: true });
1673
+ shared.dispatchedNodes = [...firstAttemptDispatchedNodes];
1674
+ shared.ledgerEvents = [...ledgerEvents];
1675
+ shared.nodeTimings = { ...nodeTimings };
1676
+ }
1677
+ }
1678
+ if (item.unmeasuredGateShape) {
1679
+ const statePath = join(root, 'graph-runs', 'release-loop', `${runId}.json`);
1680
+ const state = JSON.parse(readFileSync(statePath, 'utf8')) as GraphRunState;
1681
+ const gateIndex = state.nodes.findIndex((node) => node.nodeId === 'gate');
1682
+ if (gateIndex < 0) throw new Error('unmeasured gate simulation did not persist gate state');
1683
+ if (item.unmeasuredGateShape === 'stopped') {
1684
+ state.path.splice(gateIndex + 1);
1685
+ state.nodes.splice(gateIndex + 1);
1686
+ state.nodes[gateIndex] = { nodeId: 'gate', ok: false, exit: null, executed: false, error: STOPPED_NODE_ERROR, endedAt: '2026-11-07T00:00:00.000Z' };
1687
+ } else if (item.unmeasuredGateShape === 'sweep-incomplete') {
1688
+ const output = { outcome: 'error', verdict: 'fail', commit: cutTip(), introduced: [], preexisting: 0, fixed: null, knownEnv: 0,
1689
+ knownEnvCleared: [], stalledEnv: [], stalledShards: [{ shard: 3, files: ['a.test.ts'], reason: 'no-output' }], durationMs: 1,
1690
+ error: 'pod sweep incomplete: stalled shards 3' };
1691
+ state.nodes[gateIndex] = { nodeId: 'gate', ok: false, exit: 1, executed: true, error: 'bash exit 1',
1692
+ output: `${JSON.stringify(output)}\n`, endedAt: '2026-11-07T00:00:00.000Z' };
1693
+ }
1694
+ state.executed = state.nodes.filter((node) => node.executed).length;
1695
+ writeFileSync(statePath, `${JSON.stringify(state, null, 2)}\n`);
1696
+ first.path.splice(0, first.path.length, ...state.path);
1697
+ first.nodes.splice(0, first.nodes.length, ...state.nodes);
1698
+ first.executed = state.executed;
1699
+ }
1700
+ let missingReasonRejected = true;
1701
+ if (item.unmeasuredGateShape) {
1702
+ try { releaseResumeWaiver(first, { from: 'gate', waive: 'gate' }); missingReasonRejected = false; }
1703
+ catch (error) { missingReasonRejected = String(error).includes('supplied together'); }
1704
+ }
687
1705
  const waiver = releaseResumeWaiver(first, { from: 'gate', ...(ownerWaived ? { ownerWaive: 'gate' } : { waive: 'gate' }), reason, acceptedRegressions: ownerWaived ? [] : acceptedRegressions, approvedBy: 'OP' });
688
1706
  if (!waiver) throw new Error('measured gate waiver was not produced');
689
1707
  resumedPhase = true;
@@ -700,72 +1718,575 @@ async function runGateWaiveCase(scenario: ReleaseSimRigScenario, item: ReleaseSi
700
1718
  };
701
1719
  const trafficFile = join(root, 'traffic.json');
702
1720
  writeFileSync(trafficFile, '{}\n');
703
- const resumed = fixtureOwnerWaiver
704
- ? (await resumeReleaseRun({ runId, from: 'gate', ownerWaive: 'gate', reason, acceptedRegressions: [], approvedBy: 'OP',
705
- partial: false, commandRoot: REPOSITORY_ROOT }, {
1721
+ const resumed = fixtureOwnerWaiver || item.unmeasuredGateShape
1722
+ ? (await resumeReleaseRun({ runId, from: 'gate', ...(fixtureOwnerWaiver ? { ownerWaive: 'gate' as const, acceptedRegressions: [] }
1723
+ : { waive: 'gate' as const, acceptedRegressions }), reason, approvedBy: 'OP',
1724
+ partial: false, commandRoot: downstreamFailure ? createResumeCommandRoot(root) : REPOSITORY_ROOT }, {
706
1725
  root, repo: REPOSITORY_ROOT, graphPath: RELEASE_GRAPH, runBash, trafficFile, ledgerRoot: root,
1726
+ eventBus,
707
1727
  git, isAncestor: () => true,
708
1728
  })).state
709
1729
  : await runGraph(RELEASE_GRAPH, { resumeRunId: runId, fromNodeId: 'gate', input,
710
- releaseWaiver: { ...waiver, requestedRegressions: ownerWaived ? [] : acceptedRegressions }, pinChildUniverse: true, quiet: true,
1730
+ releaseWaiver: { ...waiver, requestedRegressions: ownerWaived ? [] : acceptedRegressions }, pinChildUniverse: true, quiet: true, eventBus,
711
1731
  deps: { root, runBash, log: capture } });
1732
+ let secondWaiverRejected = true;
1733
+ if (item.unmeasuredGateShape) {
1734
+ try { secondWaiverRejected = releaseResumeWaiver(resumed, { from: 'gate', waive: 'gate', reason }) === undefined; }
1735
+ catch { secondWaiverRejected = true; }
1736
+ }
712
1737
  const path = resumed.path;
713
1738
  const visited = new Set([...path, ...Object.values(resumed.fanOuts ?? {}).flatMap((fanout) => Object.keys(fanout.branches))]);
714
1739
  recordObservedEdges(path, ledgerEvents);
715
1740
  const edgeIssues = unexpectedEdges(path, resumed, edges);
716
1741
  const gate = resumed.nodes.find((node) => node.nodeId === 'gate');
717
1742
  const issueRows = Array.isArray(knownIssuesAccepted) ? knownIssuesAccepted as Array<{ id?: unknown; note?: unknown }> : [];
718
- const knownIssueOk = (ownerWaived ? !issueRows.some((issue) => issue.id === introducedId) : issueRows.some((issue) => issue.id === introducedId))
719
- && issueRows.some((issue) => issue.id === 'waive:gate' && issue.note === reason);
720
- const ownerNotes = ownerWaived ? readFileSync(join(root, 'owner-waive-docs', 'release/public/docs/releases', `${input.version}.md`), 'utf8') : '';
1743
+ const knownIssueOk = downstreamFailure || ((ownerWaived ? !issueRows.some((issue) => issue.id === introducedId) : issueRows.some((issue) => issue.id === introducedId))
1744
+ && issueRows.some((issue) => issue.id === 'waive:gate' && issue.note === reason));
1745
+ const ownerNotes = ownerWaived && resumed.path.includes('docs') ? readFileSync(join(root, 'owner-waive-docs', 'release/public/docs/releases', `${input.version}.md`), 'utf8') : '';
1746
+ const docsOutput = resumed.nodes.find((node) => node.nodeId === 'docs')?.output;
1747
+ const docsWorktree = typeof docsOutput === 'string' ? record(JSON.parse(docsOutput), 'release docs output').worktree : undefined;
1748
+ const releaseNotes = item.unmeasuredGateShape && typeof docsWorktree === 'string'
1749
+ ? readFileSync(join(docsWorktree, 'release/public/docs/releases', `${input.version}.md`), 'utf8') : '';
1750
+ const releaseNotesOk = !item.unmeasuredGateShape || releaseNotes.includes(`- ${reason}`);
721
1751
  const ownerRunLedger = ownerWaived ? JSON.parse(readFileSync(resumed.statePath, 'utf8')) as GraphRunState : undefined;
722
1752
  const ownerLedger = ownerRunLedger?.nodes.find((node) => node.nodeId === 'gate')?.waiver;
1753
+ const unmeasuredRunLedger = item.unmeasuredGateShape ? JSON.parse(readFileSync(resumed.statePath, 'utf8')) as GraphRunState : undefined;
1754
+ const unmeasuredLedgerGate = unmeasuredRunLedger?.nodes.find((node) => node.nodeId === 'gate');
1755
+ const initialGateRecord = first.nodes.find((node) => node.nodeId === 'gate');
723
1756
  const ownerLedgerHasApproval = ownerRunLedger?.path.includes('gate') === true && ownerRunLedger.runId === resumed.runId;
724
1757
  const knownIssuesOutput = resumed.nodes.find((node) => node.nodeId === 'known-issues')?.output;
725
1758
  const knownIssuesResult = typeof knownIssuesOutput === 'string' ? JSON.parse(knownIssuesOutput) as Record<string, unknown> : {};
1759
+ const actualGateTriage = outputRecord(first.nodes.find((node) => node.nodeId === 'gate-triage')?.output);
726
1760
  const auditLine = ownerNotes.match(/<!-- (\{[^\n]*\}) -->/)?.[1];
727
1761
  const audit = auditLine ? JSON.parse(auditLine) as Record<string, unknown> : undefined;
728
1762
  const expectedOwnerIds = fixtureOwnerWaiver ? fixtureIntroducedIds : [];
729
1763
  const ownerRecordOk = !ownerWaived || (ownerLedgerHasApproval && ownerLedger?.ownerWaived === true && ownerLedger.approvedBy === 'OP'
730
1764
  && ownerLedger.reason === reason && JSON.stringify(ownerLedger.introducedIds ?? []) === JSON.stringify(expectedOwnerIds)
731
- && audit?.type === 'release-owner-waiver' && audit.approvedBy === 'OP' && audit.reason === reason
732
- && JSON.stringify(audit.introducedIds ?? []) === JSON.stringify(expectedOwnerIds)
733
- && Array.isArray(knownIssuesResult.bullets) && knownIssuesResult.bullets.includes(reason));
734
- const statusOk = resumed.status === item.expect.status && resumed.path.includes('publish');
1765
+ && (downstreamFailure || (audit?.type === 'release-owner-waiver' && audit.approvedBy === 'OP' && audit.reason === reason
1766
+ && JSON.stringify(audit.introducedIds ?? []) === JSON.stringify(expectedOwnerIds)
1767
+ && Array.isArray(knownIssuesResult.bullets) && knownIssuesResult.bullets.includes(reason))));
1768
+ const failedJoin = resumed.nodes.find((node) => node.nodeId === 'pre-prepare-join');
1769
+ const statusOk = resumed.status === item.expect.status
1770
+ && (downstreamFailure ? failedJoin?.ok === false && !resumed.path.includes('prepare') : resumed.path.includes('publish'));
735
1771
  const visitOk = item.expect.mustVisit.every((id) => visited.has(id));
736
1772
  const notVisitOk = item.expect.mustNotVisit.every((id) => !visited.has(id));
737
1773
  const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
738
1774
  && ledgerEvents.filter((row) => row.event === 'edge-observed').length === Math.max(0, path.length - 1);
1775
+ const expectedUnmeasured = item.unmeasuredGateShape === 'stopped' ? `stopped: ${STOPPED_NODE_ERROR}`
1776
+ : item.unmeasuredGateShape === 'killed' ? /^no-verdict: gate process ended with exit null and no result line — .*SIGTERM/
1777
+ : item.unmeasuredGateShape === 'sweep-incomplete' ? /^sweep incomplete:/ : undefined;
739
1778
  const waiverOk = gate?.ok === true && gate.executed === false && gate.waiver?.reason === reason
740
- && gate.waiver.approvedBy === 'OP' && (ownerWaived ? gate.waiver.ownerWaived === true
1779
+ && (item.unmeasuredGateShape ? (typeof expectedUnmeasured === 'string' ? gate.waiver.unmeasured === expectedUnmeasured
1780
+ : expectedUnmeasured?.test(gate.waiver.unmeasured ?? '') === true)
1781
+ : gate.waiver.approvedBy === 'OP' && (ownerWaived ? gate.waiver.ownerWaived === true
741
1782
  && JSON.parse(String(gate.output)).outcome === 'ok' && JSON.parse(String(gate.output)).verdict === 'owner-waived'
742
- : JSON.stringify(gate.waiver.introducedIds) === JSON.stringify([introducedId]));
743
- const releaseTailOk = !fixtureOwnerWaiver || (dispatchedNodes.includes('publish') && dispatchedNodes.includes('npm-publish') && dispatchedNodes.includes('verify')
1783
+ : JSON.stringify(gate.waiver.introducedIds) === JSON.stringify([introducedId])));
1784
+ const originalGateRecord = initialGateRecord ? { exit: initialGateRecord.exit,
1785
+ ...(initialGateRecord.executionId === undefined ? {} : { executionId: initialGateRecord.executionId }),
1786
+ ...(initialGateRecord.output === undefined ? {} : { output: initialGateRecord.output }),
1787
+ ...(initialGateRecord.error === undefined ? {} : { error: initialGateRecord.error }) } : undefined;
1788
+ const originalWaiverRecord = initialGateRecord ? { exit: initialGateRecord.exit,
1789
+ ...(initialGateRecord.output === undefined ? {} : { output: initialGateRecord.output }),
1790
+ ...(initialGateRecord.error === undefined ? {} : { error: initialGateRecord.error }) } : undefined;
1791
+ const unmeasuredLedgerOk = !item.unmeasuredGateShape || (!!originalGateRecord && !!gate?.waiver && !!unmeasuredLedgerGate?.waiver
1792
+ && JSON.stringify(gate.waiver.original) === JSON.stringify(originalWaiverRecord)
1793
+ && JSON.stringify(unmeasuredLedgerGate.waiver) === JSON.stringify(gate.waiver));
1794
+ const gateNotRerun = !item.unmeasuredGateShape || !dispatchedNodes.includes('gate');
1795
+ const releaseTailOk = downstreamFailure ? !dispatchedNodes.includes('prepare') && !dispatchedNodes.includes('publish') && !dispatchedNodes.includes('npm-publish')
1796
+ : !fixtureOwnerWaiver || (dispatchedNodes.includes('publish') && dispatchedNodes.includes('npm-publish') && dispatchedNodes.includes('verify')
744
1797
  && (npmPublishEvidence?.publishNodeResult as { outcome?: string } | undefined)?.outcome === 'ok'
745
1798
  && Array.isArray(npmPublishEvidence?.publishNodeExternalCalls)
746
1799
  && npmPublishEvidence?.result !== undefined && (npmPublishEvidence.result as { outcome?: string; npm?: string }).outcome === 'ok'
747
1800
  && (npmPublishEvidence.result as { npm?: string }).npm === 'published'
748
1801
  && Array.isArray(npmPublishEvidence.publishedCommands) && npmPublishEvidence.publishedCommands.length === 1
749
1802
  && verifyEvidence?.result !== undefined && (verifyEvidence.result as { outcome?: string }).outcome === 'ok');
750
- const pass = statusOk && visitOk && notVisitOk && knownIssueOk && waiverOk && ownerRecordOk && releaseTailOk && ledgerOk && edgeIssues.length === 0;
1803
+ const eventTrace = checkExpectedEvents(item.expect.events, ledgerEvents);
1804
+ const pass = statusOk && visitOk && notVisitOk && knownIssueOk && waiverOk && unmeasuredLedgerOk && gateNotRerun && missingReasonRejected
1805
+ && secondWaiverRejected && ownerRecordOk && releaseTailOk && releaseNotesOk && ledgerOk && (eventTrace?.pass ?? true) && edgeIssues.length === 0;
751
1806
  const result: ReleaseSimRigCaseResult = { id: item.id, pass, status: resumed.status, path, dispatchedNodes, unexpectedEdges: edgeIssues,
752
- checks: { status: statusOk, mustVisit: visitOk && knownIssueOk && waiverOk && ownerRecordOk, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk },
753
- injectedEvidence: { introducedId, introducedIds: fixtureIntroducedIds, acceptedRegressions, reason, waived: waiverOk, knownIssuesAccepted, initialStatus: first.status, initialPath: first.path, initialDispatchedNodes: firstAttemptDispatchedNodes, publishReached: path.includes('publish'), npmPublishEvidence, verifyEvidence, ownerNotes, ownerRecordOk, releaseTailOk, ownerLedgerPath: ownerWaived ? resumed.statePath : undefined },
1807
+ checks: { status: statusOk, mustVisit: visitOk && knownIssueOk && waiverOk && unmeasuredLedgerOk && ownerRecordOk, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk,
1808
+ ...(item.unmeasuredGateShape ? { waiverOriginalPersisted: unmeasuredLedgerOk, gateNotRerun, missingReasonRejected, secondWaiverRejected } : {}),
1809
+ ...(eventTrace ? { events: eventTrace.pass } : {}), ...(downstreamFailure ? { failedJoin: failedJoin?.ok === false } : {}) },
1810
+ injectedEvidence: { introducedId, introducedIds: fixtureIntroducedIds, acceptedRegressions, reason, waived: waiverOk,
1811
+ actualGateTriage, waiverResult: waiver, knownIssuesAccepted, initialStatus: first.status, initialPath: first.path,
1812
+ ...(item.unmeasuredGateShape ? { originalGateRecord, persistedWaiver: unmeasuredLedgerGate?.waiver,
1813
+ sharedInitialGraphRuns: shared?.initialRuns, sharedRunId: shared?.runId, releaseNotes, releaseNotesOk } : {}),
1814
+ initialDispatchedNodes: firstAttemptDispatchedNodes, publishReached: path.includes('publish'), failedJoin: failedJoin ? { ok: failedJoin.ok, exit: failedJoin.exit, error: failedJoin.error } : undefined, npmPublishEvidence,
1815
+ verifyEvidence, ownerNotes, ownerRecordOk, releaseTailOk, ownerLedgerPath: ownerWaived ? resumed.statePath : undefined,
1816
+ ...(eventTrace ? { eventTrace } : {}) },
754
1817
  fanOuts: resumed.fanOuts, nodeTimings, ledgerEvents, statePath: resumed.statePath };
755
1818
  return result;
756
1819
  }
757
1820
 
758
- async function runCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
1821
+ async function runOldGraphMeasuredWaiverCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
1822
+ edges: Map<string, Record<string, unknown>>): Promise<ReleaseSimRigCaseResult> {
1823
+ const commandRoot = join(root, `${scenario.id}-${item.id}-command-root`);
1824
+ const graphDir = join(commandRoot, 'graphs', 'release');
1825
+ const graphPath = join(graphDir, 'release-loop.yaml');
1826
+ const sourceGraph = readFileSync(RELEASE_GRAPH, 'utf8');
1827
+ const oldGraph = sourceGraph
1828
+ .replace(" - { node_id: known-issues, kind: agent, recipe: 'cmd:known-issues', max_visits: 1 }\n", '')
1829
+ .replace(' - { from: docs, on: outcome, map: { ok: known-issues, fail: traffic-failed-restore, error: traffic-failed-restore } }\n',
1830
+ ' - { from: docs, on: outcome, map: { ok: notes-check, fail: traffic-failed-restore, error: traffic-failed-restore } }\n')
1831
+ .replace(' - { from: known-issues, on: outcome, map: { ok: notes-check, fail: traffic-failed-restore, error: traffic-failed-restore } }\n', '');
1832
+ if (oldGraph === sourceGraph || oldGraph.includes('node_id: known-issues')) throw new Error('old graph fixture did not remove the known-issues path');
1833
+ mkdirSync(graphDir, { recursive: true });
1834
+ mkdirSync(join(commandRoot, 'apps', 'pwa'), { recursive: true });
1835
+ symlinkSync(join(REPOSITORY_ROOT, 'node_modules'), join(commandRoot, 'node_modules'), 'dir');
1836
+ symlinkSync(join(REPOSITORY_ROOT, 'apps/pwa/node_modules'), join(commandRoot, 'apps', 'pwa', 'node_modules'), 'dir');
1837
+ writeFileSync(graphPath, oldGraph);
1838
+ writeFileSync(join(graphDir, 'recipes.yaml'), readFileSync(join(REPOSITORY_ROOT, 'graphs/release/recipes.yaml')));
1839
+
1840
+ const runId = `release-sim-${scenario.id}-${item.id}`;
1841
+ const releaseVersion = '0.2.45';
1842
+ const introducedId = 'src/task-orchestrator/surfaces/pod-pool-cli.test.ts > harness CLI reads gatePodPool from the explicit isolated config';
1843
+ const reason = 'Known gate failures remain in this release. Users may encounter these issues during normal use.';
1844
+ const acceptedRegressions = [{ id: introducedId, note: 'The isolated-config test still fails under the published cut.' }];
1845
+ const trafficFile = join(root, `${runId}-traffic.json`);
1846
+ writeFileSync(trafficFile, '{}\n');
1847
+ const dispatchedNodes: string[] = [];
1848
+ const ledgerEvents: Array<Record<string, unknown>> = [];
1849
+ const nodeTimings: NonNullable<ReleaseSimRigCaseResult['nodeTimings']> = {};
1850
+ const eventBus = createReleaseTraceBus(ledgerEvents);
1851
+ const runBash = async (_command: string, options: { env?: NodeJS.ProcessEnv }) => {
1852
+ const { nodeId } = parseContext(options.env ?? process.env);
1853
+ dispatchedNodes.push(nodeId);
1854
+ const startedAtMs = performance.now();
1855
+ const result = nodeId === 'version-release'
1856
+ ? { exitCode: 0, stdout: `${JSON.stringify({ outcome: 'ok', version: releaseVersion, commit: cutTip(), branch: `release/${releaseVersion}` })}\n`, stderr: '' }
1857
+ : nodeId === 'gate'
1858
+ ? { exitCode: 1, stdout: `${JSON.stringify({ outcome: 'fail', verdict: 'fail', commit: cutTip(), introduced: [introducedId],
1859
+ preexisting: 0, knownEnv: 0, durationMs: 1, stalledEnv: [], stalledShards: [], unmeasuredRecheckFiles: [], unmeasuredErrors: [],
1860
+ rcNonzeroNoFailures: [], abortedShards: 0 })}\n`, stderr: '' }
1861
+ : { exitCode: 0, stdout: '{"outcome":"ok","verdict":"pass"}\n', stderr: '' };
1862
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
1863
+ return result;
1864
+ };
1865
+ const git = (args: string[]) => args[0] === 'ls-remote' ? `${cutTip()}\trefs/heads/release/${releaseVersion}`
1866
+ : args[0] === 'rev-parse' ? cutTip() : '';
1867
+ const first = await runGraph(graphPath, { runId, input: { version: releaseVersion, branchCut: true, previousVersion: '0.2.44' },
1868
+ pinChildUniverse: true, quiet: true, eventBus, deps: { root, runBash } });
1869
+ const initialState = JSON.parse(readFileSync(first.statePath, 'utf8')) as GraphRunState;
1870
+ const snapshotGraph = readFileSync(`${first.statePath}.graph/graph.yaml`, 'utf8');
1871
+ const initialOk = first.status === 'failed' && initialState.status === 'failed' && first.path.includes('gate')
1872
+ && snapshotGraph.includes('node_id: known-issues') === false;
1873
+ if (!initialOk) throw new Error(`old graph fixture did not persist the expected failed run and graph snapshot: ${first.status}`);
1874
+ const initialDispatchedNodes = [...dispatchedNodes];
1875
+ dispatchedNodes.length = 0;
1876
+ const ledgerBeforeResume = readFileSync(first.statePath, 'utf8');
1877
+
1878
+ let refusal = '';
1879
+ try {
1880
+ await resumeReleaseRun({ runId, from: 'gate', waive: 'gate', reason, approvedBy: 'OP', commandRoot,
1881
+ acceptedRegressions }, { root, ledgerRoot: root, repo: commandRoot, graphPath, git, runBash, trafficFile });
1882
+ } catch (error) { refusal = error instanceof Error ? error.message : String(error); }
1883
+ const saved = JSON.parse(readFileSync(first.statePath, 'utf8')) as GraphRunState;
1884
+ const expectedRefusal = item.expect.refusalIncludes ?? 'waived node must reach known-issues before publication';
1885
+ const statusOk = first.status === 'failed' && refusal.includes(expectedRefusal);
1886
+ const visitOk = item.expect.mustVisit.every((nodeId) => first.path.includes(nodeId));
1887
+ const notVisitOk = item.expect.mustNotVisit.every((nodeId) => !first.path.includes(nodeId));
1888
+ const noDispatch = dispatchedNodes.length === 0;
1889
+ const noMutation = readFileSync(first.statePath, 'utf8') === ledgerBeforeResume
1890
+ && saved.status === 'failed' && saved.nodes.every((node) => !node.waiver);
1891
+ recordObservedEdges(first.path, ledgerEvents);
1892
+ const edgeIssues = unexpectedEdges(first.path, first, edges);
1893
+ const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
1894
+ && ledgerEvents.filter((row) => row.event === 'edge-observed').length === Math.max(0, first.path.length - 1);
1895
+ const pass = initialOk && statusOk && visitOk && notVisitOk && noDispatch && noMutation && ledgerOk && edgeIssues.length === 0;
1896
+ return { id: item.id, pass, status: statusOk ? 'resume-refused' : saved.status, path: first.path, dispatchedNodes,
1897
+ unexpectedEdges: edgeIssues, checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk && noDispatch && noMutation,
1898
+ overlap: true, ledgerEvents: ledgerOk }, injectedEvidence: { initialRunId: runId, initialPath: first.path,
1899
+ oldGraphMissingKnownIssues: !snapshotGraph.includes('node_id: known-issues'), refusal, resumeDispatchedNodes: dispatchedNodes,
1900
+ stateStayedFailedWithoutWaiver: noMutation, initialDispatchedNodes }, nodeTimings, ledgerEvents, statePath: first.statePath,
1901
+ ...(refusal ? { refusal } : {}) };
1902
+ }
1903
+
1904
+ async function runAppendedTipReGateCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
759
1905
  edges: Map<string, Record<string, unknown>>): Promise<ReleaseSimRigCaseResult> {
760
- if (item.mode === 'append-receipt-continuity') return runAppendReceiptCase(scenario, item, root);
761
1906
  const runId = `release-sim-${scenario.id}-${item.id}`;
1907
+ const releaseVersion = '0.2.45';
1908
+ const graphPath = RELEASE_GRAPH;
1909
+ const initialTip = cutTip();
1910
+ const appendedTip = 'b'.repeat(40);
1911
+ const introducedId = 'src/task-orchestrator/surfaces/pod-pool-cli.test.ts > harness CLI reads gatePodPool from the explicit isolated config';
1912
+ const reason = 'The gatePodPool isolated-config test remains failing. Users may encounter this failure during release use.';
1913
+ const acceptedRegressions = [{ id: introducedId, note: 'The gatePodPool isolated-config test still fails.' }];
1914
+ const docsTree = join(root, `${runId}-docs`);
1915
+ const notes = join(docsTree, 'release/public/docs/releases', `${releaseVersion}.md`);
1916
+ mkdirSync(dirname(notes), { recursive: true });
1917
+ writeFileSync(notes, '# Release\n');
1918
+
1919
+ let branchTip = initialTip;
1920
+ let gateRuns = 0;
1921
+ let phase: 'initial' | 'regate' | 'waiver' = 'initial';
1922
+ const nodesByPhase: Record<'initial' | 'regate' | 'waiver', string[]> = { initial: [], regate: [], waiver: [] };
1923
+ const seenKnownIssues: Array<Array<{ id: string; note: string }>> = [];
762
1924
  const ledgerEvents: Array<Record<string, unknown>> = [];
1925
+ const eventBus = createReleaseTraceBus(ledgerEvents);
1926
+ const runBash = async (_command: string, options: { env?: NodeJS.ProcessEnv }) => {
1927
+ const { nodeId } = parseContext(options.env ?? process.env);
1928
+ nodesByPhase[phase].push(nodeId);
1929
+ if (nodeId === 'version-release') {
1930
+ return { exitCode: 0, stdout: `${JSON.stringify({ outcome: 'ok', version: releaseVersion, commit: branchTip, branch: `release/${releaseVersion}` })}\n`, stderr: '' };
1931
+ }
1932
+ if (nodeId === 'gate') {
1933
+ gateRuns += 1;
1934
+ return { exitCode: 1, stdout: `${JSON.stringify({ outcome: 'fail', verdict: 'fail', commit: branchTip, introduced: [introducedId],
1935
+ preexisting: 0, knownEnv: 0, durationMs: 1, stalledEnv: [], stalledShards: [], unmeasuredRecheckFiles: [], unmeasuredErrors: [],
1936
+ rcNonzeroNoFailures: [], abortedShards: 0 })}\n`, stderr: '' };
1937
+ }
1938
+ if (nodeId === 'docs') {
1939
+ return { exitCode: 0, stdout: `${JSON.stringify({ outcome: 'ok', branch: `release-docs/${releaseVersion}`, worktree: docsTree })}\n`, stderr: '' };
1940
+ }
1941
+ if (nodeId === 'known-issues') {
1942
+ const contextPath = options.env?.ELANOUS_GRAPH_CONTEXT;
1943
+ if (!contextPath) throw new Error('known-issues context missing in appended-tip simulation');
1944
+ const context = record(JSON.parse(readFileSync(contextPath, 'utf8')), 'known-issues context');
1945
+ const issues = record(context.input, 'known-issues input').acceptedRegressions as Array<{ id: string; note: string }>;
1946
+ seenKnownIssues.push(issues);
1947
+ const previous = process.env.ELANOUS_GRAPH_CONTEXT;
1948
+ const previousStateDir = process.env.ELANOUS_STATE_DIR;
1949
+ const previousConfigDir = getElanousConfigDirOverride();
1950
+ process.env.ELANOUS_GRAPH_CONTEXT = contextPath;
1951
+ process.env.ELANOUS_STATE_DIR = root;
1952
+ setElanousConfigDir(root);
1953
+ resetEffectiveInstanceRoot();
1954
+ try {
1955
+ const output = runKnownIssues(context as never, (program, args) => program === 'git'
1956
+ ? { status: 0, stdout: args[0] === 'rev-list' ? '0' : '', stderr: '' }
1957
+ : program === 'elanous' && args[0] === '--test' && args[1] === 'ask'
1958
+ ? { status: 0, stdout: JSON.stringify({ reply: JSON.stringify([{ id: introducedId,
1959
+ bullet: 'The gatePodPool setting fails to load from isolated configuration.' }]) }), stderr: '' }
1960
+ : { status: 1, stdout: '', stderr: `unexpected ${program} ${args.join(' ')}` });
1961
+ return { exitCode: 0, stdout: `${JSON.stringify(output)}\n`, stderr: '' };
1962
+ } finally {
1963
+ if (previous === undefined) delete process.env.ELANOUS_GRAPH_CONTEXT; else process.env.ELANOUS_GRAPH_CONTEXT = previous;
1964
+ if (previousStateDir === undefined) delete process.env.ELANOUS_STATE_DIR; else process.env.ELANOUS_STATE_DIR = previousStateDir;
1965
+ if (previousConfigDir === undefined) resetElanousConfigDir(); else setElanousConfigDir(previousConfigDir);
1966
+ resetEffectiveInstanceRoot();
1967
+ }
1968
+ }
1969
+ const result = resultForNode(nodeId, undefined, releaseVersion);
1970
+ return { exitCode: result.exitCode, stdout: result.stdout, stderr: result.stderr };
1971
+ };
1972
+ const git = (args: string[]) => {
1973
+ if (args[0] === 'ls-remote' && args.at(-1) === `refs/heads/release/${releaseVersion}`) return `${branchTip}\trefs/heads/release/${releaseVersion}`;
1974
+ if (args[0] === 'ls-remote') return '';
1975
+ if (args[0] === 'rev-parse') return branchTip;
1976
+ if (args[0] === 'show-ref' || args[0] === 'worktree' || args[0] === 'fetch' || args[0] === 'ls-files' || args[0] === 'merge-base') return '';
1977
+ if (args[0] === '-c' && args.includes('status.showUntrackedFiles=all')) return '';
1978
+ throw new Error(`unexpected appended-tip simulated git ${args.join(' ')}`);
1979
+ };
1980
+ const trafficFile = join(root, `${runId}-traffic.json`);
1981
+ writeFileSync(trafficFile, '{}\n');
1982
+ const deps = { root, graphPath, git, runBash, trafficFile, ledgerRoot: root, eventBus, isAncestor: () => true };
1983
+ const first = await runGraph(graphPath, { runId, input: { version: releaseVersion, branchCut: true, previousVersion: '0.2.44' },
1984
+ pinChildUniverse: true, quiet: true, eventBus, deps: { root, runBash } });
1985
+ const stateBefore = readFileSync(first.statePath, 'utf8');
1986
+ const invalidId = 'another.test.ts > not enough';
1987
+ let invalidWaiverRejected = false;
1988
+ try {
1989
+ await resumeReleaseRun({ runId, from: 'gate', waive: 'gate', reason, approvedBy: 'OP',
1990
+ acceptedRegressions: [{ id: invalidId, note: 'Another failure remains' }] }, deps);
1991
+ } catch (error) { invalidWaiverRejected = String(error).includes(introducedId); }
1992
+ const invalidAttemptUnchanged = readFileSync(first.statePath, 'utf8') === stateBefore;
1993
+
1994
+ branchTip = appendedTip;
1995
+ let movedTipWaiverRefused = false;
1996
+ try {
1997
+ await resumeReleaseRun({ runId, from: 'gate', waive: 'gate', reason, approvedBy: 'OP', acceptedRegressions }, deps);
1998
+ } catch (error) { movedTipWaiverRefused = String(error).includes('release branch moved — re-gate the new tip before waiving a node'); }
1999
+ const movedTipAttemptUnchanged = readFileSync(first.statePath, 'utf8') === stateBefore;
2000
+
2001
+ phase = 'regate';
2002
+ // In the current graph the gate runs before export-check, so a gate failure cannot resume from export-check.
2003
+ const regated = await resumeReleaseRun({ runId, from: 'gate' }, deps);
2004
+ const regatedState = readFileSync(first.statePath, 'utf8');
2005
+ const reGateTip = regated.tip;
2006
+ const regateFailed = regated.state.status === 'failed';
2007
+ const regatePartial = regated.partial;
2008
+ const regateGateCount = gateRuns;
2009
+
2010
+ phase = 'waiver';
2011
+ const resumed = await resumeReleaseRun({ runId, from: 'gate', waive: 'gate', reason, approvedBy: 'OP', acceptedRegressions }, deps);
2012
+ const finalState = resumed.state;
2013
+ const knownIssueRows = seenKnownIssues.at(-1) ?? [];
2014
+ const notesText = readFileSync(notes, 'utf8');
2015
+ const statusOk = first.status === 'failed' && regateFailed && finalState.status === item.expect.status;
2016
+ const visitOk = item.expect.mustVisit.every((nodeId) => finalState.path.includes(nodeId));
2017
+ const notVisitOk = item.expect.mustNotVisit.every((nodeId) => !finalState.path.includes(nodeId));
2018
+ const acceptedIssuesOk = knownIssueRows.some((issue) => issue.id === introducedId && issue.note === acceptedRegressions[0]!.note)
2019
+ && knownIssueRows.some((issue) => issue.id === 'waive:gate' && issue.note === reason);
2020
+ const notesOk = notesText.includes('- The gatePodPool setting fails to load from isolated configuration.')
2021
+ && notesText.includes(`- ${reason}`);
2022
+ const gateNotRerunAfterWaiver = !nodesByPhase.waiver.includes('gate');
2023
+ const sameTipWaiver = resumed.tip?.from === appendedTip && resumed.tip.to === appendedTip && resumed.tip.changed === false;
2024
+ const reGateChangedTip = reGateTip?.from === initialTip && reGateTip.to === appendedTip && reGateTip.changed === true;
2025
+ const releaseTailOk = ['known-issues', 'publish', 'npm-publish', 'done'].every((nodeId) => finalState.path.includes(nodeId));
2026
+ recordObservedEdges(finalState.path, ledgerEvents);
2027
+ const edgeIssues = unexpectedEdges(finalState.path, finalState, edges);
2028
+ const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
2029
+ && ledgerEvents.some((row) => row.event === 'edge-observed');
2030
+ const pass = statusOk && visitOk && notVisitOk && invalidWaiverRejected && invalidAttemptUnchanged
2031
+ && movedTipWaiverRefused && movedTipAttemptUnchanged && reGateChangedTip && regatePartial?.requested === true
2032
+ && regatePartial.applied === false && regatePartial.auto === true && regateGateCount === 2 && gateRuns === 2
2033
+ && sameTipWaiver && gateNotRerunAfterWaiver && acceptedIssuesOk && notesOk && releaseTailOk && ledgerOk && edgeIssues.length === 0;
2034
+ return { id: item.id, pass, status: finalState.status, path: finalState.path, dispatchedNodes: nodesByPhase.waiver,
2035
+ unexpectedEdges: edgeIssues,
2036
+ checks: { status: statusOk, mustVisit: visitOk && releaseTailOk, mustNotVisit: notVisitOk && gateNotRerunAfterWaiver,
2037
+ overlap: true, ledgerEvents: ledgerOk },
2038
+ injectedEvidence: { initialTip, appendedTip, invalidWaiverRejected, invalidAttemptUnchanged, movedTipWaiverRefused,
2039
+ movedTipAttemptUnchanged, reGateTip, regateFailed, regatePartial, regateDispatchedNodes: nodesByPhase.regate,
2040
+ regateState: JSON.parse(regatedState) as GraphRunState, gateRuns, sameTipWaiver, acceptedRegressions: knownIssueRows,
2041
+ acceptedIssuesOk, releaseNotes: notesText, notesOk, releaseTailOk, initialPath: first.path,
2042
+ initialDispatchedNodes: nodesByPhase.initial }, fanOuts: finalState.fanOuts, ledgerEvents, statePath: finalState.statePath };
2043
+ }
2044
+
2045
+ async function runCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase, root: string,
2046
+ edges: Map<string, Record<string, unknown>>, sharedUnmeasuredGateFixture: SharedUnmeasuredGateFixture,
2047
+ executorConcurrency: number, supplementalFailureAt?: string,
2048
+ ): Promise<ReleaseSimRigCaseResult> {
2049
+ if (item.mode === 'incident-policy-handler') return runIncidentPolicyHandlerCase(scenario, item, root);
2050
+ if (item.mode === 'prod-seat-launch-refused') {
2051
+ const attempts = ['a8cdf30b', '28b034de', '443a89b8'];
2052
+ const home = join(root, `${scenario.id}-seat-launch-home`);
2053
+ mkdirSync(home, { recursive: true });
2054
+ const childEnv: NodeJS.ProcessEnv = { PATH: process.env.PATH ?? '', HOME: process.env.HOME ?? '',
2055
+ NODE_ENV: process.env.NODE_ENV ?? 'test', ELANOUS_TRACK: 'POD-REUSE-2' };
2056
+ if (process.env.TMPDIR) childEnv.TMPDIR = process.env.TMPDIR;
2057
+ const child = spawnSync(process.execPath, [join(import.meta.dir, 'release-sim-rig-seat-guard-child.ts'), join(home, '.elanous')], {
2058
+ cwd: process.cwd(), encoding: 'utf8', timeout: 60_000,
2059
+ env: childEnv,
2060
+ });
2061
+ let childEvidence: { graphStarts: number; results: Array<{ incidentRunId: string; seat: string; exitCode: number | null;
2062
+ output: Record<string, unknown>; stderr: string; error: string | null;
2063
+ debugEvents: Array<{ category: string; event: string; data: Record<string, unknown> }> }> } = { graphStarts: -1, results: [] };
2064
+ try { childEvidence = record(JSON.parse(child.stdout.trim().split('\n').at(-1) ?? ''), 'seat guard child result') as typeof childEvidence; }
2065
+ catch { /* the failed child output is retained in injected evidence below */ }
2066
+ const { graphStarts, results } = childEvidence;
2067
+ const path: string[] = [];
2068
+ const launchCount = graphStarts;
2069
+ const statusOk = item.expect.status === 'failed';
2070
+ const mustVisit = item.expect.mustVisit.length === 0;
2071
+ const mustNotVisit = launchCount === 0 && item.expect.mustNotVisit.every((nodeId) => !path.includes(nodeId));
2072
+ const denied = results.every(({ exitCode, output, debugEvents }) => exitCode === 1 && output.reason === 'seat-launch-refused'
2073
+ && typeof output.error === 'string' && output.error.includes('--test') && debugEvents.length === 1
2074
+ && debugEvents.every(({ category, event, data }) => category === 'release.run' && event === 'seat-launch-refused'
2075
+ && data.seat === 'POD-REUSE-2' && typeof data.cwd === 'string'
2076
+ && typeof data.reason === 'string' && data.reason.includes('--test')));
2077
+ const checks = { status: statusOk, mustVisit, mustNotVisit, overlap: true, ledgerEvents: launchCount === 0 };
2078
+ return { id: item.id, pass: child.status === 0 && statusOk && mustVisit && mustNotVisit && denied, status: launchCount ? 'done' : 'failed',
2079
+ path, dispatchedNodes: [], unexpectedEdges: [], checks,
2080
+ injectedEvidence: { universe: 'production', incidentRunIds: attempts, launchCount, cliResults: results,
2081
+ childExitCode: child.status, childError: child.error?.message ?? child.stderr ?? null },
2082
+ ledgerEvents: [], statePath: '' };
2083
+ }
2084
+ if (item.mode === 'append-receipt-continuity') return runAppendReceiptCase(scenario, item, root, executorConcurrency, supplementalFailureAt);
2085
+ if (item.mode === 'old-graph-measured-waiver') return runOldGraphMeasuredWaiverCase(scenario, item, root, edges);
2086
+ if (item.mode === 'appended-tip-regate-before-waiver') return runAppendedTipReGateCase(scenario, item, root, edges);
2087
+ if (item.mode === 'macrophage-heal') {
2088
+ const inventory: MacrophageScrap[] = [
2089
+ { id: 'pr-repair', kind: 'parked-pr', owner: 'seat-a', evidence: { repairRecipe: 'retry-review' } },
2090
+ { id: 'draft-stale', kind: 'stale-draft', owner: 'seat-b', evidence: { draftAction: 'close' } },
2091
+ { id: 'test-repeated', kind: 'repeated-failing-test', owner: 'seat-c', evidence: { consecutiveFailures: 5 } },
2092
+ { id: 'test-timeout', kind: 'flaky-timeout-test', evidence: { timeoutBurned: true } },
2093
+ { id: 'artifact-stale', kind: 'stale-generated-artifact', evidence: { sourceFingerprint: 'new', generatedFingerprint: 'old' } },
2094
+ { id: 'worktree-orphan', kind: 'orphan-worktree', evidence: { ownerRunStatus: 'done', ownershipVerified: true, mergedMainline: true, worktreePath: '/sim/worktree' } },
2095
+ { id: 'pod-orphan', kind: 'orphan-pod', evidence: { ownerRunStatus: 'failed', ownershipVerified: true } },
2096
+ { id: 'job-orphan', kind: 'orphan-job', evidence: { ownerRunStatus: 'done', ownershipVerified: true } },
2097
+ { id: 'hold-expired', kind: 'expired-hold', owner: 'seat-d', evidence: { holdUntil: '2026-11-05T00:00:00Z' } },
2098
+ { id: 'hold-live-owner', kind: 'expired-hold', owner: 'seat-e', evidence: { holdUntil: '2026-11-05T00:00:00Z', ownerRunStatus: 'running' } },
2099
+ { id: 'draft-live-owner', kind: 'stale-draft', owner: 'seat-f', evidence: { draftAction: 'close', ownerRunStatus: 'running' } },
2100
+ { id: 'receipt-stale', kind: 'stale-receipt', evidence: { receiptStale: true, receiptVerified: true, ownerRunStatus: 'done' } },
2101
+ { id: 'worktree-live', kind: 'orphan-worktree', owner: 'seat-live', evidence: { ownerRunStatus: 'running', ownershipVerified: true, mergedMainline: true, worktreePath: '/sim/live-worktree' } },
2102
+ { id: 'land-row-merged', kind: 'merged-land-queue-row', evidence: { mergedMainline: true, queueRow: `123\t${'a'.repeat(40)}\t/tree\t/evidence` } },
2103
+ { id: 'receipt-unverified', kind: 'stale-receipt', evidence: { receiptStale: true, receiptVerified: false, ownerRunStatus: 'done' } },
2104
+ ];
2105
+ const now = new Date('2026-11-06T00:00:00Z');
2106
+ const active = runMacrophageHeal({ phase: 'active', mode: 'simulation', now, consecutiveFailureLimit: 3, inventory });
2107
+ const simulation = runMacrophageHeal({ phase: 'idle', mode: 'simulation', now, consecutiveFailureLimit: 3, inventory });
2108
+ const expectedApplied = ['draft-stale', 'test-timeout', 'artifact-stale', 'worktree-orphan', 'pod-orphan', 'job-orphan', 'hold-expired', 'receipt-stale', 'land-row-merged'];
2109
+ const appliedIds = simulation.events.filter((event) => event.applied).map((event) => event.id);
2110
+ const runId = `release-sim-${scenario.id}-macrophage`;
2111
+ const liveRuntime = createMacrophageRuntime({ runId, inventory: () => inventory, now: () => now });
2112
+ let state: GraphRunState;
2113
+ try {
2114
+ state = await runGraph(RELEASE_GRAPH, { runId, eventBus: liveRuntime.eventBus, input: scenario.input, pinChildUniverse: true, quiet: true, deps: {
2115
+ root, runBash: async (_command: string, options: { env?: NodeJS.ProcessEnv }) => {
2116
+ const { nodeId } = parseContext(options.env ?? process.env);
2117
+ return resultForNode(nodeId, undefined, scenario.input.version);
2118
+ },
2119
+ } });
2120
+ } finally { liveRuntime.dispose(); }
2121
+ const allLiveEvents = liveRuntime.decisions.map((event) => event.data ?? {});
2122
+ const phaseIds = ['pre-gate-join', 'pre-prepare-join', 'release-post-publish-join'];
2123
+ const liveEvents = allLiveEvents.filter((event) => event.phaseNodeId === phaseIds[0]);
2124
+ const checks = {
2125
+ activeDeferred: active.status === 'deferred' && active.events.length === 0 && active.remaining.length === inventory.length,
2126
+ actualBusTrace: state.status === 'done' && phaseIds.every((phaseId) => state.path.includes(phaseId)
2127
+ && allLiveEvents.filter((event) => event.phaseNodeId === phaseId).length === inventory.length)
2128
+ && liveEvents.length === inventory.length && liveEvents.every((event) => typeof event.sourceEventId === 'string'
2129
+ && event.result === `planned ${String(event.action)}; no cleanup applied` && event.applied === false),
2130
+ simulationBounded: expectedApplied.every((id) => appliedIds.includes(id)) && appliedIds.every((id) => expectedApplied.includes(id)),
2131
+ protectedRetained: ['worktree-live', 'receipt-unverified', 'hold-live-owner', 'draft-live-owner'].every((id) => simulation.remaining.includes(id)),
2132
+ };
2133
+ const path = state.path;
2134
+ const expectedStatusOk = state.status === item.expect.status;
2135
+ const expectedVisitOk = item.expect.mustVisit.every((node) => path.includes(node));
2136
+ const expectedNotVisitOk = item.expect.mustNotVisit.every((node) => !path.includes(node));
2137
+ const actualOverlap = false; // This planner case dispatches no graph nodes, so no node overlap occurred.
2138
+ const expectedOverlap = item.expect.overlap !== undefined;
2139
+ const overlapMatches = actualOverlap === expectedOverlap;
2140
+ const pass = Object.values(checks).every(Boolean) && overlapMatches
2141
+ && expectedStatusOk && expectedVisitOk && expectedNotVisitOk;
2142
+ const ledgerEvents = liveEvents.map((event) => ({ event: 'release.macrophage.decision', id: event.id, kind: event.kind,
2143
+ evidence: event.evidence, result: event.result, action: event.action, applied: event.applied,
2144
+ sourceEventId: event.sourceEventId, phaseNodeId: event.phaseNodeId }));
2145
+ return { id: item.id, pass, status: 'done', path, dispatchedNodes: [],
2146
+ unexpectedEdges: [], checks: { status: expectedStatusOk && Object.values(checks).every(Boolean), mustVisit: expectedVisitOk && checks.actualBusTrace,
2147
+ mustNotVisit: expectedNotVisitOk && checks.simulationBounded && checks.protectedRetained,
2148
+ overlap: overlapMatches, ledgerEvents: ledgerEvents.length === inventory.length },
2149
+ injectedEvidence: { scrapCount: inventory.length, active, live: liveEvents, simulation, expectedApplied,
2150
+ overlap: { expected: expectedOverlap, actual: actualOverlap } }, ledgerEvents,
2151
+ statePath: state.statePath };
2152
+ }
2153
+ if (item.mode === 'macro-chain-e2e' || item.mode === 'kaist-selfheal-stage') {
2154
+ const kaist = item.mode === 'kaist-selfheal-stage';
2155
+ const sourceFiles = kaist ? ['templates/next-app-lecture-scrap/app/page.jsx', 'templates/next-app-lecture-scrap/app/search/page.jsx']
2156
+ : ['scripts/release-loop/gate-node.ts', 'scripts/release-loop/gate-partial.ts', 'scripts/release-loop/gate-repair-node.ts'];
2157
+ const incidentId = kaist ? 'kaist-lecture-scrap-search-route-regression' : 'receipt-audit-repair-resume';
2158
+ const draftManifest = `apiVersion: elanous.app/v0\nslug: lecture-scrap\ntitle: 강의 스크랩 노트\ntemplate: next-app-lecture-scrap\nfrontend: { kind: static-export, out: out/, routes: [/, /notes/new, /search] }\ntables:\n notes:\n columns:\n id: { type: text, primary: true }\n title: { type: text }\n body: { type: text }\nroles:\n owner: { via: nexus-session }\n`;
2159
+ const templateManifestPath = join(REPOSITORY_ROOT, 'templates/next-app-lecture-scrap/app.yaml');
2160
+ const manifestSource = kaist && existsSync(templateManifestPath) ? readFileSync(templateManifestPath, 'utf8') : draftManifest;
2161
+ const appManifest = kaist ? parseAppManifest(manifestSource) : undefined;
2162
+ const parsedAppManifest = appManifest?.ok ? appManifest.manifest : undefined;
2163
+ if (kaist && !parsedAppManifest) throw new Error('KAIST draft app.yaml is invalid');
2164
+ const appSlug = parsedAppManifest?.slug ?? 'lecture-scrap';
2165
+ const frontend = parsedAppManifest ? record(parsedAppManifest.frontend, 'KAIST app.yaml frontend') : undefined;
2166
+ const design = parsedAppManifest?.design ? record(parsedAppManifest.design, 'KAIST app.yaml design') : undefined;
2167
+ const appRoutes = Array.isArray(frontend?.routes)
2168
+ ? frontend.routes.filter((route): route is string => typeof route === 'string')
2169
+ : Array.isArray(design?.screens) ? design.screens.map((screen) => record(screen, 'KAIST app.yaml screen').path).filter((route): route is string => typeof route === 'string') : undefined;
2170
+ const expectedAppRoutes = ['/', '/notes/new', '/search'];
2171
+ if (kaist && (appSlug !== 'lecture-scrap' || parsedAppManifest?.template !== 'next-app-lecture-scrap'
2172
+ || frontend?.kind !== 'static-export' || frontend.out !== 'out/' || !Array.isArray(appRoutes)
2173
+ || JSON.stringify([...appRoutes].sort()) !== JSON.stringify([...expectedAppRoutes].sort()))) {
2174
+ throw new Error('KAIST app.yaml must declare the lecture-scrap static export route contract');
2175
+ }
2176
+ const appInitialFiles = { 'index.html': '<main>스크랩 목록</main>', 'notes/new': '<main>노트 작성</main>' };
2177
+ const appHost = kaist ? createFakeAppHost([{ slug: appSlug, current: 'bug-injected', versions: [
2178
+ { id: 'bug-injected', files: appInitialFiles },
2179
+ ] }]) : undefined;
2180
+ const appHostName = `${appSlug}.app.sim.invalid`;
2181
+ const appUrl = kaist ? `https://${appHostName}` : undefined;
2182
+ const beforeSearch = kaist ? appHost!.fetch(appHostName, '/search') : undefined;
2183
+ const beforeHome = kaist ? appHost!.fetch(appHostName, '/') : undefined;
2184
+ const failureIds = kaist && beforeSearch?.status === 404 && !beforeHome?.body.includes('/search')
2185
+ ? [`${sourceFiles[0]}.test.ts > /search navigation link is missing`, `${sourceFiles[1]}.test.ts > injected /search route returned 404`]
2186
+ : sourceFiles.map((file, index) => `${file}.test.ts > injected macro-chain failure ${index + 1}`);
2187
+ const incident: MacrophageIncidentSignal = { id: incidentId, source: 'release-graph',
2188
+ signature: kaist ? 'KAIST lecture-scrap injected missing search route detected by fake app-host probe'
2189
+ : 'receipt-audit key mismatch followed by complete introduced failure collection',
2190
+ evidence: kaist && beforeSearch?.status !== 404 ? 'unmeasured' : 'introduced',
2191
+ failureIds, sourceFiles, independentFiles: true, causePr: kaist ? 36051 : 36027 };
2192
+ const runId = `release-sim-${scenario.id}-${item.id}-${randomUUID()}`;
2193
+ let deployedRepairFiles: string[] = [];
2194
+ let deployedRepairArtifactPaths: string[] = [];
2195
+ const macro = await runReleaseMacrophageIncidentSim({ runId, incidents: [incident], repairLandedIds: [incidentId],
2196
+ hitlApprovedIds: [], version: scenario.input.version, graphDrivenIncidentIds: [incidentId], receiptAuditKeyMismatchFirst: true,
2197
+ repairLandingFailure: item.repairFault === 'unlanded',
2198
+ repairArtifactFailure: item.repairFault === 'bad-artifact',
2199
+ ...(kaist ? {
2200
+ onRepairLanded: (files: readonly string[], artifacts: readonly { readonly sourceFile: string; readonly files: Readonly<Record<string, string>> }[]) => {
2201
+ if (!sourceFiles.every((file) => files.includes(file) && artifacts.some((artifact) => artifact.sourceFile === file
2202
+ && Object.keys(artifact.files).length > 0))) return;
2203
+ const repairedFiles: Record<string, string> = { ...appInitialFiles };
2204
+ for (const artifact of artifacts) Object.assign(repairedFiles, artifact.files);
2205
+ appHost!.deployArtifact(appSlug, { id: 'repair-landed', files: repairedFiles });
2206
+ deployedRepairFiles = [...files];
2207
+ deployedRepairArtifactPaths = artifacts.flatMap((artifact) => Object.keys(artifact.files));
2208
+ },
2209
+ } : {}) });
2210
+ const appRouteChecks = kaist ? [
2211
+ ['/', appHost!.fetch(appHostName, '/')],
2212
+ ['/notes/new', appHost!.fetch(appHostName, '/notes/new')],
2213
+ ['/search', appHost!.fetch(appHostName, '/search')],
2214
+ ] as const : [];
2215
+ const appChecks = !kaist || (beforeSearch?.status === 404 && beforeHome?.status === 200 && !beforeHome.body.includes('/search') && appRouteChecks.length === 3
2216
+ && appRouteChecks.every(([, response]) => response.status === 200)
2217
+ && JSON.stringify(appRouteChecks.map(([route]) => route).sort()) === JSON.stringify([...(appRoutes as string[])].sort())
2218
+ && appRouteChecks[0]?.[1].body.includes('/search') === true
2219
+ && deployedRepairFiles.length === sourceFiles.length && sourceFiles.every((file) => deployedRepairFiles.includes(file))
2220
+ && deployedRepairArtifactPaths.includes('index.html') && deployedRepairArtifactPaths.includes('search/index.html')
2221
+ && appUrl === 'https://lecture-scrap.app.sim.invalid');
2222
+ const kaistReceipts = kaist ? macro.jsonl.trim().split('\n').filter(Boolean).map((line) => JSON.parse(line) as { runId?: string; incidentId?: string; disposition?: string }) : [];
2223
+ const oneSameRunReceipt = !kaist || (kaistReceipts.length === 1 && kaistReceipts[0]?.runId === macro.runId
2224
+ && kaistReceipts[0]?.incidentId === incidentId && kaistReceipts[0]?.disposition === 'resumed-after-land'
2225
+ && macro.cases.length === 1 && macro.cases[0]?.receipt?.runId === macro.runId
2226
+ && macro.cases[0]?.receipt?.incidentId === incidentId && macro.cases[0]?.receipt?.disposition === 'resumed-after-land'
2227
+ && macro.cases[0]?.receipt?.gateVisit === 2
2228
+ && JSON.stringify(macro.cases[0]?.receipt?.rerunFiles) === JSON.stringify(sourceFiles));
2229
+ const path = macro.graphState.path;
2230
+ const gate = path.indexOf('gate');
2231
+ const firstAudit = path.indexOf('receipt-audit');
2232
+ const residual = path.indexOf('residual-run', firstAudit + 1);
2233
+ const triage = path.indexOf('gate-triage', residual + 1);
2234
+ const repair = path.findIndex((nodeId) => /^gate-repair-[a-f0-9]{12}$/.test(nodeId));
2235
+ const repairGate = path.indexOf('gate', repair + 1);
2236
+ const secondAudit = path.indexOf('receipt-audit', repairGate + 1);
2237
+ const pathOk = gate >= 0 && firstAudit > gate && residual > firstAudit && triage > residual && repair > triage
2238
+ && repairGate > repair && secondAudit > repairGate && path.filter((nodeId) => nodeId === 'receipt-audit').length === 2;
2239
+ const statusOk = macro.graphState.status === item.expect.status;
2240
+ const mustVisit = item.expect.mustVisit.every((nodeId) => path.includes(nodeId));
2241
+ const mustNotVisit = item.expect.mustNotVisit.every((nodeId) => !path.includes(nodeId));
2242
+ const edgeIssues = unexpectedEdges(path, macro.graphState, edges);
2243
+ const firstReceiptAudit = outputRecord(macro.graphState.nodes.find((node) => node.nodeId === 'receipt-audit')?.output);
2244
+ const receiptAuditEdge = edges.get('receipt-audit')?.map;
2245
+ const receiptAuditFailTarget = receiptAuditEdge && typeof receiptAuditEdge === 'object' && !Array.isArray(receiptAuditEdge)
2246
+ ? (receiptAuditEdge as Record<string, unknown>).fail : undefined;
2247
+ const injectedMismatchRoutedToResidual = firstReceiptAudit?.outcome === 'fail'
2248
+ && receiptAuditFailTarget === 'residual-run' && path.indexOf('residual-run') > firstAudit && edgeIssues.length === 0;
2249
+ const sameRun = macro.runId === runId && macro.graphState.runId === runId
2250
+ && macro.cases.every((entry) => entry.receipt?.runId === runId && entry.receipt.gateVisit === 2);
2251
+ const applied = macro.runtimeDecisions.some((event) => event.runId === runId && event.data?.applied === true);
2252
+ const triageMatched = macro.productionTriageEvidence?.matched === true;
2253
+ const repairInputMatchesResidualExecution = typeof macro.productionTriageEvidence?.latestExecutionId === 'string'
2254
+ && macro.graphRepairInputGateExecutionId === macro.productionTriageEvidence.latestExecutionId;
2255
+ const pass = macro.pass && pathOk && statusOk && mustVisit && mustNotVisit && sameRun && applied && triageMatched
2256
+ && repairInputMatchesResidualExecution
2257
+ && injectedMismatchRoutedToResidual && edgeIssues.length === 0 && appChecks && oneSameRunReceipt;
2258
+ return { id: item.id, pass, status: macro.graphState.status, path,
2259
+ dispatchedNodes: macro.graphState.nodes.map((node) => node.nodeId), unexpectedEdges: edgeIssues,
2260
+ checks: { status: statusOk, mustVisit, mustNotVisit, overlap: true, ledgerEvents: macro.eventTrace.length > 0,
2261
+ adaptiveRepair: pathOk && sameRun && applied, productionTriage: triageMatched,
2262
+ repairInputMatchesResidualExecution,
2263
+ receiptMismatchRoutedToResidual: injectedMismatchRoutedToResidual, events: macro.pass,
2264
+ ...(kaist ? { appBugDetected: beforeSearch?.status === 404 && !beforeHome?.body.includes('/search'), appRepairRoutesGreen: appChecks, oneSameRunReceipt } : {}) },
2265
+ injectedEvidence: { runId, receiptAuditKeyMismatchFirst: true, sourceFiles, failureIds,
2266
+ ...(kaist ? { app: { slug: appSlug, source: existsSync(templateManifestPath) ? 'template app.yaml' : 'app.yaml draft fixture', manifestValid: appManifest?.ok === true,
2267
+ simulatedUrl: appUrl, externalNetworkAttempts: 0, injectedSearchResponse: beforeSearch?.status,
2268
+ injectedHomeHasSearchLink: beforeHome?.body.includes('/search') ?? false,
2269
+ deployedRepairFiles, deployedRepairArtifactPaths, repairedRouteStatuses: Object.fromEntries(appRouteChecks.map(([route, response]) => [route, response.status])), oneSameRunReceipt },
2270
+ incidentPlan: macro.cases.map(({ plan }) => ({ label: plan.label, step: plan.step, files: plan.files })) } : {}),
2271
+ receiptAuditFirstOutcome: firstReceiptAudit?.outcome, receiptAuditFailTarget,
2272
+ graphRepairChecks: macro.graphRepairChecks, graphRepairFailureIds: macro.graphRepairFailureIds,
2273
+ graphRepairInputFiles: macro.graphRepairInputFiles, graphRepairInputGateExecutionId: macro.graphRepairInputGateExecutionId,
2274
+ ...(kaist ? { repairNodeResults: macro.graphState.nodes.filter((node) => /^gate-repair-[a-f0-9]{12}$/.test(node.nodeId))
2275
+ .map((node) => ({ nodeId: node.nodeId, output: outputRecord(node.output) })) } : {}),
2276
+ productionTriageEvidence: macro.productionTriageEvidence,
2277
+ graphPath: path, runtimeDecisions: macro.runtimeDecisions },
2278
+ ledgerEvents: macro.eventTrace as unknown as Array<Record<string, unknown>>, statePath: macro.graphState.statePath ?? '' };
2279
+ }
2280
+ const runId = `release-sim-${scenario.id}-${item.id}`;
2281
+ const ledgerEvents: Array<Record<string, unknown>> = [];
2282
+ const eventBus = createReleaseTraceBus(ledgerEvents);
763
2283
  const dispatchedNodes: string[] = [];
764
2284
  const nodeTimings: NonNullable<ReleaseSimRigCaseResult['nodeTimings']> = {};
765
2285
  let versionReleaseCliStdout = '';
766
2286
  let cutoffCliStdout = '';
767
2287
  let docsNodeCliStdout = '';
768
2288
  let docsNodeEvidence: Record<string, unknown> = {};
2289
+ let pwaNodeEvidence: Record<string, unknown> = {};
769
2290
  let cutoffWorld: { world: string; repo: string; stateRoot: string; home: string; tmp: string; emptyGitConfig: string } | undefined;
770
2291
  const runBash = async (command: string, options: { env?: NodeJS.ProcessEnv }) => {
771
2292
  const { nodeId } = parseContext(options.env ?? process.env);
@@ -933,37 +2454,117 @@ async function runCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase,
933
2454
  throw new Error(`actual docs node CLI did not publish complete docs evidence: ${JSON.stringify(docsNodeEvidence)}`);
934
2455
  return { exitCode: cli.status ?? 2, stdout: cli.stdout ?? '', stderr: cli.stderr ?? '' };
935
2456
  }
2457
+ if (item.mode === 'pwa-costly-opt-in-required' && nodeId === 'pwa') {
2458
+ let nodeStdout = '';
2459
+ const fakeBin = join(root, `${runId}-fake-bin`);
2460
+ const fakeNexusServer = join(root, `${runId}-fake-nexus-server.cjs`);
2461
+ const worktreeLifecycleLog = join(root, `${runId}-worktree-lifecycle.log`);
2462
+ mkdirSync(fakeBin, { recursive: true });
2463
+ writeFileSync(fakeNexusServer, "const http=require('node:http'); const server=http.createServer((req,res)=>{res.statusCode=200;res.end('simulated nexus');}); server.listen(0,'127.0.0.1',()=>console.log('nexus :'+server.address().port+' pid '+process.pid));\n");
2464
+ writeFileSync(worktreeLifecycleLog, '');
2465
+ const fakeBun = join(fakeBin, 'bun');
2466
+ writeFileSync(fakeBun, '#!/bin/sh\nif [ "$1" = "-e" ]; then printf \'[{"id":"regular","costly":false},{"id":"C1","costly":true}]\\n\'; exit 0; fi\nif [ "$1" = "scripts/pwa-scenarios.ts" ]; then printf \'{"results":[{"id":"regular","pass":true}]}\\n\'; exit 0; fi\nif [ "$1" = "bin/elanous.mjs" ] && [ "$2" = "nexus" ] && [ "$3" = "build" ]; then exit 0; fi\nif [ "$1" = "bin/elanous.mjs" ] && [ "$2" = "--test" ] && [ "$3" = "nexus" ] && [ "$4" = "run" ]; then\n if [ "$5" = "--stop" ]; then exit 0; fi\n "$ELANOUS_SIM_NODE_EXECUTABLE" "$ELANOUS_SIM_NEXUS_SERVER" &\n exit 0\nfi\necho "unexpected bun boundary: $*" >&2\nexit 97\n');
2467
+ const fakeGit = join(fakeBin, 'git');
2468
+ writeFileSync(fakeGit, createReleaseSimRigFakeGitScript());
2469
+ chmodSync(fakeBun, 0o755); chmodSync(fakeGit, 0o755);
2470
+ const trafficPath = join(root, `${runId}-traffic.json`);
2471
+ writeFileSync(trafficPath, `${JSON.stringify({ global: 'green', seats: { OP: {}, TC: {}, MK: {}, UX: {} } })}\n`);
2472
+ const originalLog = console.log;
2473
+ try {
2474
+ console.log = (...values: unknown[]) => { nodeStdout += `${values.map(String).join(' ')}\n`; };
2475
+ const pwaEnv: NodeJS.ProcessEnv = { ...process.env, ...options.env, ELANOUS_TRAFFIC_SIGNAL: trafficPath };
2476
+ const exitCode = await runNodeVerdict(['pwa'], pwaEnv, (program, args) => {
2477
+ if (program !== 'bun' || args[0] !== 'scripts/release-loop/pwa-scenarios-node.ts')
2478
+ return { status: 97, stdout: '', stderr: `unexpected PWA boundary ${program} ${args.join(' ')}` };
2479
+ const bunExecutable = Bun.which('bun');
2480
+ const nodeExecutable = Bun.which('node');
2481
+ if (!bunExecutable || !nodeExecutable) return { status: 97, stdout: '', stderr: 'bun/node executable unavailable for isolated PWA simulation' };
2482
+ const child = spawnSync(bunExecutable, args, { cwd: REPOSITORY_ROOT, encoding: 'utf8', timeout: 120_000,
2483
+ maxBuffer: 4 * 1024 * 1024, env: { ...process.env, ...options.env, PATH: [fakeBin, process.env.PATH ?? ''].join(delimiter),
2484
+ ELANOUS_SIM_NODE_EXECUTABLE: nodeExecutable, ELANOUS_SIM_NEXUS_SERVER: fakeNexusServer, ELANOUS_SIM_RIG_RUN_ID: runId,
2485
+ ELANOUS_SIM_RIG_WORKTREE_LOG: worktreeLifecycleLog,
2486
+ ELANOUS_SIM_RIG_MARKER_SNAPSHOT: join(root, `${runId}-worktree-marker.snapshot`),
2487
+ ELANOUS_SIM_RIG_WORKTREE_PATH_SNAPSHOT: join(root, `${runId}-worktree-path.snapshot`) } });
2488
+ let externalResult: Record<string, unknown> | null = null;
2489
+ try { externalResult = JSON.parse((child.stdout ?? '').trim().split('\n').at(-1) ?? 'null') as Record<string, unknown> | null; } catch { /* Preserve child diagnostics below. */ }
2490
+ pwaNodeEvidence = { actualNode: 'runNodeVerdict(pwa)', actualCli: 'scripts/release-loop/pwa-scenarios-node.ts',
2491
+ externalBoundary: [program, ...args], costlyRequested: args.includes('--with-costly'), externalResult, stderr: child.stderr ?? '',
2492
+ worktreeLifecycle: readFileSync(worktreeLifecycleLog, 'utf8').trim().split('\n').filter(Boolean) };
2493
+ return { status: child.status, stdout: child.stdout ?? '', stderr: child.stderr ?? '' };
2494
+ });
2495
+ pwaNodeEvidence = { ...pwaNodeEvidence, exitCode, capturedOutput: nodeStdout };
2496
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
2497
+ return { exitCode, stdout: nodeStdout, stderr: '' };
2498
+ } finally { console.log = originalLog; }
2499
+ }
936
2500
  const injection = item.nodeOutcomes?.[nodeId];
937
- if (item.fault?.evidence?.realGateTriage === true && nodeId === 'gate-triage') {
2501
+ if (nodeId === 'gate-triage') {
938
2502
  const child = spawnSync('bun', ['scripts/release-loop/gate-triage-node.ts'], {
939
2503
  cwd: REPOSITORY_ROOT, env: { ...process.env, ...options.env }, encoding: 'utf8', maxBuffer: 1024 * 1024,
940
2504
  });
941
2505
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
942
2506
  return { exitCode: child.status ?? 2, stdout: child.stdout ?? '', stderr: child.stderr ?? '' };
943
2507
  }
2508
+ if (command.trim() === 'bun scripts/release-loop/gate-cutover-switch-node.ts') {
2509
+ const child = spawnSync('bun', ['scripts/release-loop/gate-cutover-switch-node.ts'], {
2510
+ cwd: REPOSITORY_ROOT, env: { ...process.env, ...options.env }, encoding: 'utf8', maxBuffer: 1024 * 1024,
2511
+ });
2512
+ nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
2513
+ return { exitCode: child.status ?? 2, stdout: child.stdout ?? '', stderr: child.stderr ?? '' };
2514
+ }
2515
+ const injectedFault = item.mode === 'approval-graph-path-mismatch' && nodeId === 'auto-approve'
2516
+ ? { node: nodeId, outcome: 'error' as const, evidence: { approvalSnapshot: 'other graph path' } } : item.fault;
944
2517
  const result = injection ? resultForNode(nodeId, injection.outcome === 'ok' ? undefined : {
945
2518
  node: nodeId, outcome: injection.outcome, evidence: {},
946
- }, scenario.input.version) : resultForNode(nodeId, item.fault, scenario.input.version);
2519
+ }, scenario.input.version) : resultForNode(nodeId, injectedFault, scenario.input.version);
947
2520
  if (injection?.delayMs) await new Promise((resolve) => setTimeout(resolve, injection.delayMs));
948
2521
  nodeTimings[nodeId] = { startedAtMs, endedAtMs: performance.now() };
949
2522
  return { exitCode: result.exitCode, stdout: result.stdout, stderr: result.stderr };
950
2523
  };
951
2524
  const capture = (event: string, data: Record<string, unknown>) => ledgerEvents.push({ event, ...data });
952
2525
 
953
- if (item.mode === 'gate-waive-introduced-regression' || item.mode === 'owner-waive-missing-schema' || item.mode === 'owner-waive-0246-fixture') return runGateWaiveCase(scenario, item, root, edges);
2526
+ if (item.mode === 'gate-waive-introduced-regression' || item.mode === 'owner-waive-unmeasured-gate' || item.mode === 'owner-waive-0246-fixture' || item.mode === 'owner-waive-downstream-failure') return runGateWaiveCase(scenario, item, root, edges,
2527
+ item.unmeasuredGateShape ? sharedUnmeasuredGateFixture : undefined);
2528
+
2529
+ if (item.mode === 'approval-graph-path-mismatch') {
2530
+ const waiting = await runGraph(RELEASE_GRAPH, { runId, input: scenario.input, pinChildUniverse: true, quiet: true, eventBus,
2531
+ deps: { root, runBash, log: capture } });
2532
+ let refusal = '';
2533
+ try {
2534
+ await runGraph(RELEASE_GRAPH, { resumeRunId: runId, input: scenario.input, useCurrentGraph: true,
2535
+ graphSource: `${readFileSync(RELEASE_GRAPH, 'utf8')}\n# simulated alternate approval graph source\n`, pinChildUniverse: true, quiet: true, eventBus,
2536
+ deps: { root, runBash, log: capture } });
2537
+ } catch (error) { refusal = error instanceof Error ? error.message : String(error); }
2538
+ const saved = listGraphRuns(root).runs.find((run) => run.runId === runId);
2539
+ const path = saved?.path ?? waiting.path;
2540
+ recordObservedEdges(path, ledgerEvents);
2541
+ const edgeIssues = saved ? unexpectedEdges(path, saved, edges) : [];
2542
+ const visited = new Set([...path, ...Object.values(saved?.fanOuts ?? {}).flatMap((fanout) => Object.keys(fanout.branches))]);
2543
+ const statusOk = waiting.status === 'awaiting-approval' && refusal.includes(item.expect.refusalIncludes ?? 'approval source changed since run was paused');
2544
+ const visitOk = item.expect.mustVisit.every((id) => visited.has(id));
2545
+ const notVisitOk = item.expect.mustNotVisit.every((id) => !visited.has(id));
2546
+ const eventTrace = checkExpectedEvents(item.expect.events, ledgerEvents);
2547
+ const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
2548
+ && ledgerEvents.filter((row) => row.event === 'edge-observed').length === Math.max(0, path.length - 1);
2549
+ return { id: item.id, pass: statusOk && visitOk && notVisitOk && ledgerOk && (eventTrace?.pass ?? true) && edgeIssues.length === 0,
2550
+ status: statusOk ? 'resume-refused' : waiting.status, path, dispatchedNodes, unexpectedEdges: edgeIssues,
2551
+ checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk, ...(eventTrace ? { events: eventTrace.pass } : {}) },
2552
+ injectedEvidence: { approvalDecision: 'not recorded', changedGraphSource: true, refusal, ...(eventTrace ? { eventTrace } : {}) },
2553
+ fanOuts: waiting.fanOuts, nodeTimings, ledgerEvents, statePath: waiting.statePath, ...(refusal ? { refusal } : {}) };
2554
+ }
954
2555
 
955
2556
  if (item.mode === 'cut-tip-moved-after-resume') {
956
2557
  let beforeNode = 0;
957
2558
  const simulatedStop = new Error('simulated runner stop after cut');
958
2559
  try {
959
- await runGraph(RELEASE_GRAPH, { runId, input: scenario.input, pinChildUniverse: true, quiet: true,
2560
+ await runGraph(RELEASE_GRAPH, { runId, input: scenario.input, pinChildUniverse: true, quiet: true, eventBus,
960
2561
  deps: { root, runBash, log: capture, beforeNode: () => { if (++beforeNode === 2) throw simulatedStop; } } });
961
2562
  } catch (error) {
962
2563
  if (error !== simulatedStop) throw error;
963
2564
  }
964
2565
  let refusal = '';
965
2566
  try {
966
- await runGraph(RELEASE_GRAPH, { resumeRunId: runId, pinChildUniverse: true, quiet: true,
2567
+ await runGraph(RELEASE_GRAPH, { resumeRunId: runId, pinChildUniverse: true, quiet: true, eventBus,
967
2568
  releaseCommandSource: { root: REPOSITORY_ROOT, cutTip: 'b'.repeat(40), git: () => { throw new Error('git must not be consulted after the saved tip differs'); } },
968
2569
  deps: { root, runBash, log: capture } });
969
2570
  } catch (error) { refusal = error instanceof Error ? error.message : String(error); }
@@ -982,13 +2583,14 @@ async function runCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase,
982
2583
  nodeTimings[overlapPair[1]]!.startedAtMs < nodeTimings[overlapPair[0]]!.endedAtMs);
983
2584
  const ledgerOk = ledgerEvents.some((row) => row.event === 'node-end')
984
2585
  && ledgerEvents.filter((row) => row.event === 'edge-observed').length === Math.max(0, path.length - 1);
985
- return { id: item.id, pass: statusOk && visitOk && notVisitOk && overlapOk && ledgerOk && edgeIssues.length === 0, status: statusOk ? 'resume-refused' : interrupted?.status ?? 'missing',
986
- path, dispatchedNodes, unexpectedEdges: edgeIssues, checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: overlapOk, ledgerEvents: ledgerOk }, injectedEvidence: {}, ledgerEvents,
2586
+ const eventTrace = checkExpectedEvents(item.expect.events, ledgerEvents);
2587
+ return { id: item.id, pass: statusOk && visitOk && notVisitOk && overlapOk && ledgerOk && (eventTrace?.pass ?? true) && edgeIssues.length === 0, status: statusOk ? 'resume-refused' : interrupted?.status ?? 'missing',
2588
+ path, dispatchedNodes, unexpectedEdges: edgeIssues, checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: overlapOk, ledgerEvents: ledgerOk, ...(eventTrace ? { events: eventTrace.pass } : {}) }, injectedEvidence: eventTrace ? { eventTrace } : {}, ledgerEvents,
987
2589
  statePath: stateFile, ...(refusal ? { refusal } : {}) };
988
2590
  }
989
2591
 
990
2592
  // Initial runs have no releaseCommandSource (the runner only accepts it on resume); all node shell work is intercepted here.
991
- const state = await runGraph(RELEASE_GRAPH, { runId, input: scenario.input, pinChildUniverse: true, quiet: true,
2593
+ const state = await runGraph(RELEASE_GRAPH, { runId, input: scenario.input, pinChildUniverse: true, quiet: true, eventBus,
992
2594
  deps: { root, runBash, log: capture } });
993
2595
  const path = state.path;
994
2596
  const visited = new Set([...path, ...Object.values(state.fanOuts ?? {}).flatMap((fanout) => Object.keys(fanout.branches))]);
@@ -1003,22 +2605,79 @@ async function runCase(scenario: ReleaseSimRigScenario, item: ReleaseSimRigCase,
1003
2605
  nodeTimings[overlapPair[1]]!.startedAtMs < nodeTimings[overlapPair[0]]!.endedAtMs);
1004
2606
  const ledgerOk = ledgerEvents.some((row) => row.event === 'node-start') && ledgerEvents.some((row) => row.event === 'node-end')
1005
2607
  && ledgerEvents.filter((row) => row.event === 'edge-observed').length === Math.max(0, path.length - 1);
2608
+ if (item.mode === 'resume-fanout-branch-refused') {
2609
+ const beforeResume = JSON.parse(readFileSync(state.statePath, 'utf8')) as GraphRunState;
2610
+ const beforeFanouts = JSON.stringify(beforeResume.fanOuts ?? {});
2611
+ let refusal = '';
2612
+ try {
2613
+ await runGraph(RELEASE_GRAPH, { resumeRunId: runId, fromNodeId: 'pwa', input: scenario.input, pinChildUniverse: true, quiet: true,
2614
+ deps: { root, runBash, log: capture } });
2615
+ } catch (error) { refusal = error instanceof Error ? error.message : String(error); }
2616
+ const refused = item.expect.status === 'resume-refused'
2617
+ && refusal.includes(item.expect.refusalIncludes ?? "--from cannot resume fan-out branch 'pwa'");
2618
+ const persisted = JSON.parse(readFileSync(state.statePath, 'utf8')) as GraphRunState;
2619
+ const persistedFanout = persisted.fanOuts?.['traffic-gate-passed:ok'];
2620
+ const branchFailed = persistedFanout?.branches.pwa?.status === 'failed';
2621
+ const sourceRetained = persistedFanout?.from === 'traffic-gate-passed';
2622
+ const completeFanoutRetained = JSON.stringify(persisted.fanOuts ?? {}) === beforeFanouts;
2623
+ const pass = refused && branchFailed && sourceRetained && completeFanoutRetained && visitOk && notVisitOk && ledgerOk && edgeIssues.length === 0;
2624
+ return { id: item.id, pass, status: 'resume-refused', path, dispatchedNodes, unexpectedEdges: edgeIssues,
2625
+ checks: { status: refused, mustVisit: visitOk && branchFailed && sourceRetained, mustNotVisit: notVisitOk, overlap: true, ledgerEvents: ledgerOk, completeFanoutRetained },
2626
+ injectedEvidence: { refusal, branchFailed, source: persistedFanout?.from, branchFailedAfter: branchFailed, sourceRetainedAfter: sourceRetained, completeFanoutRetained },
2627
+ fanOuts: state.fanOuts, nodeTimings, ledgerEvents, statePath: state.statePath };
2628
+ }
2629
+ const eventTrace = checkExpectedEvents(item.expect.events, ledgerEvents);
2630
+ const actualGateOutput = state.nodes.find((node) => node.nodeId === 'gate')?.output;
2631
+ const actualTriageOutput = state.nodes.find((node) => node.nodeId === 'gate-triage')?.output;
2632
+ const adaptiveRepairRequired = item.fault?.node === 'gate' && item.fault.outcome === 'fail'
2633
+ && item.fault.evidence?.realGateTriage === true && Array.isArray(item.fault.evidence.introduced)
2634
+ && item.fault.evidence.introduced.length > 0;
2635
+ const triageOutput = outputRecord(actualTriageOutput);
2636
+ const adaptiveHeal = triageOutput?.adaptiveHeal && typeof triageOutput.adaptiveHeal === 'object'
2637
+ ? record(triageOutput.adaptiveHeal, 'gate-triage adaptiveHeal') : undefined;
2638
+ const disposition = adaptiveHeal?.disposition && typeof adaptiveHeal.disposition === 'object'
2639
+ ? record(adaptiveHeal.disposition, 'gate-triage adaptiveHeal.disposition') : undefined;
2640
+ const firstTriageIndex = path.indexOf('gate-triage');
2641
+ const repairNodeId = firstTriageIndex >= 0 ? path[firstTriageIndex + 1] : undefined;
2642
+ const adaptiveAppend = state.adaptiveGateNodeAppends?.find(({ request }) => request.node.nodeId === repairNodeId);
2643
+ const adaptiveRepairOk = !adaptiveRepairRequired || (state.status === 'failed'
2644
+ && path.filter((nodeId) => nodeId === 'gate').length === 2
2645
+ && typeof repairNodeId === 'string' && /^gate-repair-[a-f0-9]{12}$/.test(repairNodeId)
2646
+ && path[firstTriageIndex + 2] === 'gate'
2647
+ && adaptiveAppend?.request.rerunGateAt === 'gate'
2648
+ && disposition?.action === 'append-repair-and-resume'
2649
+ && path.includes('traffic-failed-restore') && !path.includes('publish'));
1006
2650
  const injectedEvidence = { ...(item.fault ? item.fault.evidence ?? {} : {}),
2651
+ ...(item.fault?.evidence?.realGateTriage === true ? { actualGateTriage: {
2652
+ gate: outputRecord(actualGateOutput),
2653
+ triage: outputRecord(actualTriageOutput),
2654
+ } } : {}),
2655
+ ...(Object.keys(pwaNodeEvidence).length ? { pwaNode: pwaNodeEvidence } : {}),
1007
2656
  ...(item.mode === 'cutoff-cli-notes-empty' ? { actualCli: 'version-node.ts release → node-verdict.ts cutoff → cutoff.ts',
1008
2657
  actualVersionReleaseCliOutput: versionReleaseCliStdout, actualCutoffCliOutput: cutoffCliStdout } : {}),
1009
2658
  ...(item.mode === 'docs-node-cli-in-sim' ? docsNodeEvidence : {}) };
1010
- return { id: item.id, pass: statusOk && visitOk && notVisitOk && overlapOk && ledgerOk && edgeIssues.length === 0, status: state.status, path, dispatchedNodes, unexpectedEdges: edgeIssues,
1011
- checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: overlapOk, ledgerEvents: ledgerOk }, injectedEvidence,
2659
+ return { id: item.id, pass: statusOk && visitOk && notVisitOk && overlapOk && ledgerOk && adaptiveRepairOk && (eventTrace?.pass ?? true) && edgeIssues.length === 0, status: state.status, path, dispatchedNodes, unexpectedEdges: edgeIssues,
2660
+ checks: { status: statusOk, mustVisit: visitOk, mustNotVisit: notVisitOk, overlap: overlapOk, ledgerEvents: ledgerOk,
2661
+ ...(adaptiveRepairRequired ? { adaptiveRepair: adaptiveRepairOk } : {}), ...(eventTrace ? { events: eventTrace.pass } : {}) },
2662
+ injectedEvidence: { ...injectedEvidence, ...(adaptiveRepairRequired ? { adaptiveRepair: { disposition: disposition?.action ?? null, appendCount: state.adaptiveGateNodeAppends?.length ?? 0 } } : {}), ...(eventTrace ? { eventTrace } : {}) },
1012
2663
  fanOuts: state.fanOuts, nodeTimings, ledgerEvents, statePath: state.statePath };
1013
2664
  }
1014
2665
 
1015
2666
  export async function runReleaseSimRigScenario(source: string): Promise<ReleaseSimRigResult> {
2667
+ return runReleaseSimRigScenarioWithExecutor(source);
2668
+ }
2669
+
2670
+ export async function runReleaseSimRigScenarioWithExecutor(source: string, options: { executorConcurrency?: number; supplementalFailureAt?: string } = {}): Promise<ReleaseSimRigResult> {
1016
2671
  const scenario = parseReleaseSimRigScenario(source);
1017
2672
  const root = getTestStateRoot();
1018
2673
  if (!root) throw new Error('release simulation rig requires --test isolated mode');
1019
- const { edges } = releaseGraphShape();
2674
+ const { edges } = releaseGraphShape(scenario.input.releaseGateFanout === true);
1020
2675
  const cases = [];
1021
- for (const item of scenario.cases) cases.push(await runCase(scenario, item, root, edges));
2676
+ const sharedUnmeasuredGateFixture: SharedUnmeasuredGateFixture = {
2677
+ runId: `release-sim-${scenario.id}-unmeasured-gate-shared`, initialRuns: 0,
2678
+ };
2679
+ for (const item of scenario.cases) cases.push(await runCase(scenario, item, root, edges, sharedUnmeasuredGateFixture,
2680
+ options.executorConcurrency ?? SIM_GATE_EXECUTOR_CONCURRENCY, options.supplementalFailureAt));
1022
2681
  const result: ReleaseSimRigResult = { id: scenario.id, pass: cases.every((item) => item.pass), universe: root, cases,
1023
2682
  table: cases.map((item) => ({ scenario: item.id, path: item.path.join(' → '), status: item.status,
1024
2683
  unexpectedEdges: item.unexpectedEdges.length ? JSON.stringify(item.unexpectedEdges) : 'none' })),