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.
- package/catalog/sim-world-device-catalog-fragments/README.md +16 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-CONTRACT-SECRET-ENTROPY-TS.json +24 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-KILL-SWITCH-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-SCRATCH-BOOTSTRAP-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-UPGRADE-PATH-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ARG-MACRO-CANVAS-SIM-TS.json +16 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ASIDE-FEEDBACK-LOOP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-AUTHOR-REVIEWER-PRECHECK-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BACKEND-TIER-DEVICE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BOOT-DAEMON-TOOLS-PTY-SHELL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BROWSER-HAND-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BURST-READY-LADDER-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CENSUS-ORACLE-AXIS-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CHAIN-LAND-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLASSIC-TUI-SEAT-SCENARIOS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLI-CONFIG-AUDIT-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CODEX-WIRE-CAPTURE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-COMPUTER-USE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DASHBOARD-EVENT-LOOP-STALL-MONITOR-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-CATALOG-SNAPSHOT-FRAGMENTS-TS.json +12 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-FIDELITY-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DRAFT-INVENTORY-BUILDER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-NIGHTLY-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-TS.json +18 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EVENT-MONKEY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ABSORB-INGEST-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ADB-PHONE-WORLD-TS.json +15 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-AGENT-HOOK-HOST-TS.json +6 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ANDROID-CLIENT-TS.json +10 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-AUTH-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-BACKUP-WORLD-TS.json +14 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-WORLD-TS.json +25 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DRIVE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-FAILURES-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-HOST-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-REALTIME-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-CONCURRENT-WRITER-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-STORAGE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-TRAFFIC-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-ARGS-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BROWSER-PAGE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOCK-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-BILLING-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-VM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DATA-GUARD-BOUNDARY-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DNS-CERT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ELEVENLABS-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FEEDS-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FETCH-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FLEET-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GOOGLE-DRIVE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HERDR-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HIGGSFIELD-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-KUBECTL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LAND-QUEUE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LINEAR-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LLM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MEMBER-OIDC-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MOBILE-TOOLCHAIN-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-NEXUS-BOARD-SERVER-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PAYMENT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PS-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-RELAY-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-SSH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-STT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-OUTBOUND-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-VIDEO-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TEMP-CLEANUP-TS.json +21 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-CRED-EXPIRY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-GLM-NO-CREDENTIAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEEDS-HUMAN-REASON-REPAIR-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXTMOVE-DISPATCH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXUS-STALL-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CHILD-RESULT-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CODEX-503-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-DEATH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-REUSE-RESIDUE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POOL-CAP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SCOPE-ESCAPE-LIFT-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SQLITE-BUSY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-TUI-400-AUTOHEAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FIXTURES-GIT-WORKTREE-ACCEL-LINUX-JSON.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FLUTTER-DEPLOY-JOURNEY-TS.json +10 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-LAYERED-DELTA-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-PREFLIGHT-RUNTIME-IDENTITY-FLOW-SIM-TS.json +13 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-ROSTER-SECOND-POOL-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-SHARD-HOST-REROUTE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-STEADY-STATE-PROOF-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GIT-PUSH-TIMEOUT-PARTIAL-OUTCOME-REMOTE-VERIFY-TS.json +22 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-INTERIM-TRACE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-DIFF-APPLY-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-ENGINE-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-EVENT-ENTRY-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-PLACEMENT-LEASE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUN-LIFECYCLE-WORLD-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-WORKER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-TRIGGER-HOOK-DEVICE-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-CHAOS-DRIVER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-LEDGER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-READY-TIERS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEADLESS-TUI-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEAL-REAUTHOR-MATERIALIZED-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HOTSPOT-FILE-LEASE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HQ-MOVE-SIM-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-539-FILE-ADOPTION-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INPUT-HISTORY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INSTALL-CONSENT-DEVICE-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INTERACTION-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IOS-CHAT-EDGE-ADAPTER-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-LINEAR-SECRETARY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MAPREDUCE-MULTIHOST-SIM-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-DEVICE-REQUESTS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-JSON.json +19 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-ACTOR-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-TENANT-RELAY-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NETWORK-SANDBOX-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-CORE-INPUT-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-ROUTE-DEVICE-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-SEAT-SCENARIOS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NL-SCENARIO-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ONBOARDING-FIRST-RUN-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-OUTBOUND-GUARD-SIM-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-RELEASE-OBSERVE-ROUTE-WORLD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-YAML-GEN-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-FEDERATION-SIM-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-PHASE-PREWARM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-MATCH-BY-KIND-SIM-TS.json +25 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-SHARED-FAKE-BOUNDARY-TS.json +26 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-WORLD-TS.json +27 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-AUTOREPAIR-DEVICE-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-GATE-DEVICE-TS.json +26 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PTY-KEY-MODIFIERS-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PUBLIC-AUTH-PROVIDER-CLOUD-VM-SIM-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-PROVENANCE-BADGE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-RETAINED-ROUTES-WORLD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-READINESS-COUNTDOWN-TS.json +24 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-REAL-TARGET-SANDBOX-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-EVENT-TRACE-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-PUBLISH-DEVICES-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SAME-VERSION-RUN-ADOPTION-SIM-TS.json +15 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-SEAT-GUARD-CHILD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RENDER-FRAME-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESEARCH-DECISION-CHAIN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESUME-PICKER-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-EVENT-RESPONSE-SCORECARD-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-MACROPHAGE-HEAL-TIMEOUT-STALE-OUTPUT-SIM-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SAFE-PUBLIC-COPY-PUBLISH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SECRET-CANARY-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SEMINAR-REHEARSAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SERVICE-KEY-SETUP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SESSION-ID-SEED-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-COVERAGE-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-RECEIPT-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SKILLS-TOOLS-SHELL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SLASH-MENU-FRAMES-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SMART-MERGE-WORLD-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SUBAGENT-TOOLS-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TA-LAND-COUNT-DISPATCHER-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-PARENT-HOST-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-REJUDGE-ON-HEAD-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-ORCHESTRATOR-SURFACES-SELF-IMPLEMENT-POD-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REMOTE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REPO-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TERM-SLASH-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ASYNC-FAIL-LOOP-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ROUTER-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-DECISION-SIM-TS.json +18 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TTY-FOREGROUND-STEAL-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-STATES-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-THROW-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-DEFAULT-SPARSE-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-TUI-DIET-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SWITCH-SIM-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-SI-REUSE-SIM-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-CHAOS-RUNTIME-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-HOST-CHAOS-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-REGRESSION-SUITE-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SCHEMA-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SNAPSHOT-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-STORE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-WATCH-TS.json +27 -0
- package/catalog/sim-world-device-catalog-fragments/metadata.json +3 -0
- package/catalog/ux-sim/fixtures/adaptive-graph-v1.yaml +18 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/README.md +15 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00010--scripts-tui-sim-bench-ts-adf79d7e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00020--scripts-tui-sim-ts-c9bd7af7.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00030--scripts-ux-sim-ts-e5b4dead.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00040--scripts-voice-dogfood-sim-ts-0e5441cd.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00050--scripts-voice-pwa-sim-ts-831ba2c9.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00060--scripts-release-loop-gate-autoheal-sim-evidence--1dfbf6e9.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00070--scripts-release-loop-gate-node-sim-ts-bb18473a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00080--scripts-release-loop-gate-bisect-ts-0a24b781.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00090--scripts-release-loop-gate-bisect-test-ts-93276556.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00100--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00110--scripts-release-loop-tui-sim-node-ts-81456cc3.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00120--scripts-lib-pwa-scenarios-acp-replay-ts-f5b22233.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00130--scripts-lib-pwa-scenarios-cdp-driver-ts-f888fe21.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00140--scripts-lib-pwa-scenarios-runner-ts-482bae4e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00150--scripts-lib-pwa-scenarios-scenarios-ts-b6642642.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00160--test-fixtures-acp-initialize-stub-ts-dda92993.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00170--test-fixtures-mock-lsp-server-ts-5607efec.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00180--test-helpers-intake-fake-repo-ts-313e4fab.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00190--test-ux-sim-aimock-local-ts-346e03cb.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00200--scenarios-dashboard-default-yaml-f2d56850.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00210--scenarios-heap-graph-yaml-d9d0d2a9.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00220--scenarios-iul-timeline-viewer-yaml-449a5fc2.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00230--scenarios-ux-sim-provider-4xx-no-provider-yaml-0d620991.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00240--scenarios-ux-sim-release-sim-rig-yaml-3ec55c14.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00250--tests-scenarios-4provider-feature-impl-yaml-d76ada66.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00260--tests-scenarios-capability-level-11-yaml-2f16c5ed.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00270--tests-scenarios-codex-baseline-yaml-8a635e8e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00280--tests-scenarios-codex-opus-2way-yaml-5e0502d6.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00290--tests-scenarios-codex-variance-w5f-yaml-4ec32047.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00300--tests-scenarios-multi-turn-cache-rate-yaml-eb8a6f86.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00310--tests-scenarios-repl-rotation-chain-yaml-6e9a6646.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00320--tests-scenarios-repl-self-debug-arc-yaml-549e12af.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00330--tests-scenarios-repl-tool-doom-recovery-yaml-06a7412a.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00340--src-playground-scenario-default-scenarios-ts-45b5ee3e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00350--src-playground-scenario-fake-harness-ts-870235f6.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00360--src-showroom-outbound-channels-stubs-ts-d2dee3b2.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00370--test-telegram-surface-hitl-test-ts-1a40e9ff.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00380--src-ux-sim-author-reviewer-precheck-device-ts-92e65331.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00390--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00400--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00410--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00420--src-release-loop-macrophage-heal-ts-30c76fcb.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00430--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00440--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00450--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00460--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00470--src-ux-sim-readiness-countdown-ts-7955f662.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00480--src-ux-sim-readiness-countdown-test-ts-74503e51.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00490--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00500--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00510--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00520--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00530--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00540--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00550--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +11 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00570--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00580--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00590--src-ux-sim-release-same-version-run-adoption-sim-ts-0a0b3e7e.json +11 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00610--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00620--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00630--src-ux-sim-graph-compose-trigger-sim-test-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +9 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +9 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00660--scripts-release-loop-gate-node-test-ts.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--scripts-release-loop-gate-node-test-ts.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00020--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00030--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00040--scripts-release-loop-gate-bisect-ts-0a24b781.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00050--scripts-release-loop-gate-bisect-test-ts-93276556.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00060--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00070--src-release-loop-macrophage-heal-ts-30c76fcb.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00080--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00090--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00100--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00110--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00120--src-ux-sim-readiness-countdown-ts-7955f662.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00130--src-ux-sim-readiness-countdown-test-ts-74503e51.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00140--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00150--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00160--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00170--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00180--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00190--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00200--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +4 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00220--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00230--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +4 -0
- 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
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00260--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00270--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00280--src-ux-sim-graph-compose-trigger-sim-test-ts.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00000--multi-actor-world-20261110.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00010--sim-fake-providers-av-4883a32d.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00020--codex-wire-capture-1bb11a5e.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00030--fake-app-auth-a12b9d72.json +34 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00040--fake-app-traffic-10bb14b5.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00050--fake-app-realtime-b675ae5d.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00060--fake-llm-4e9d0461.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00070--fake-fetch-24e15acf.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00080--fake-data-guard-boundary-6d63fa1b.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00090--fake-executable-0d4932e9.json +52 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00100--fake-payment-36658cf7.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00110--git-worktree-accel-measure-f2e46787.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00120--fake-github-4447f89b.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00121--fake-cred.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00122--fake-feeds.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00130--fake-kubectl-1d602089.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00140--fault-nexus-stall-7854e333.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00150--warm-pool-reuse-sim-7748cb2f.json +45 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00160--fake-fleet-55e1776a.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00170--fake-herdr-61d3593c.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00180--fake-clock-89a347a7.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00190--fake-dns-cert-b17dcd51.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00200--fake-ssh-6012493b.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00210--fake-cloud-vm-990dc784.json +61 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00220--temp-git-remote-03a486eb.json +24 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00230--fake-land-queue-bc0138c9.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00240--world-runtime-d26d02c9.json +83 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00250--secret-canary-e8fd8f58.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00260--scenario-runner-a9afa458.json +42 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00270--sim-mailbox-d26bb613.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00280--draft-inventory-34f59a02.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00290--linear-secretary-ecf757fe.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00300--release-graph-rig-069c8c3b.json +133 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00310--graph-engine-selector-1b47d4df.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00320--sim-event-log-path-74a7df46.json +52 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00330--tui-interaction-8e9968ff.json +65 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00340--fault-injection-60e2a635.json +49 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--gate-receipt-file-closure-cas.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--grid-chaos-driver-312fbd1c.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00360--product-devices-b83cabdd.json +61 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00370--turn-throw-sim-fa6bd37b.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00380--first-run-and-seminar-f7ec0d9a.json +50 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00390--support-fakes-4ac8f28e.json +67 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00400--author-reviewer-precheck-29e760be.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00410--research-decision-chain-312201c5.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00420--sim-universe-world-lifecycle-0ccd91ce.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00430--sim-universe-world-yaml-schema-3a0c6c68.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00440--grid-ledger-95b7955f.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00450--telegram-video-receipt-3b9512a2.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00451--fake-telegram-outbound-briefing.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00460--aside-feedback-loop-4e4a0842.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00470--heal-reauthor-materialized-f16c0ffc.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00480--device-fidelity-b30563a6.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00490--install-consent-d43aab59.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00500--warm-si-reuse-sim-cd2ce529.json +44 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--pod-reuse-residue-fault-faeb368d.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--public-auth-provider-cloud-vm-sim-161386f5.json +43 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--warm-pool-declare-path-sim-553b1d90.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00520--fake-ps-d6df0bab.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00530--fake-app-storage-48587412.json +42 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00540--backend-tier-device-f32db49f.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00550--fake-higgsfield-b3207190.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00560--temp-git-repo-114a0526.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00570--rla-event-response-scorecard-a2c92bfd.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00580--app-contract-secret-entropy-e9beed1f.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00590--fake-app-drive-world-f2c3e58c.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00600--fake-app-source-world-445af8b0.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00610--fake-google-drive-world-c81301f3.json +40 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00620--fake-temp-cleanup-1d778211.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00630--git-push-timeout-partial-outcome-remote-verify-f90afeae.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00640--pod-reuse-match-by-kind-sim-ccc95426.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00650--pod-reuse-world-e1c91756.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00660--pr-land-drift-gate-31434d33.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--edge-creator-4d59199b.json +45 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--readiness-countdown-db1a7536.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00680--rla-context-release-status-arrival-event-740d889b.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00690--sim-catalog-manual-fragment-merge-sim-9a35f50d.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--git-fetch-fresh-skip-10e18190.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--smart-merge-world.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--pod-phase-prewarm-3bc0dd35.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--release-graph-receipt-audit.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--ta-land-count-dispatcher-sim.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00720--fake-bin-args-sim.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00730--pr-land-drift-autorepair-device.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00740--gate-closure-lazy-require-sim.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00890--worktree-deps-shared-store.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00900--fake-adb-phone-world.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--fake-android-client-b8b02ae9.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--gate-repair-multi-file-sim.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--phone-pwa-selfheal.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--release-same-version-run-adoption-sim-ff3df430.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00920--repo-git-maintenance.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01000--install-one-liner-failsafe.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--relay-edge-first-host-sim.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--seat-mail-wake-4e271489.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--control-serve-lease-default-sim.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--flutter-deploy-journey.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--pod-phase-prewarm-sim.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01030--pod-phase-prewarm-hit-sim.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--adaptive-graph-design.json +34 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--app-upgrade-path.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--fake-market-feed.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--graph-v2-lowering.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--light-rc-long-run-device-0d845681.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--sim-impact-unified-check-804f7466.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01041--plugin-yaml-gen.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--absorb-graph-v2-rungraph-4b5a6751.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--graph-policy-lint.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--mini-board-card-deb603f7.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01100--graph-trigger-hook-device.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01101--graph-trigger-registry-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01103--graph-event-entry-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01104--graph-placement-lease-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01110--sim-mapreduce-multihost.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01600--fake-absorb-ingest.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01610--graph-compose-trigger-sim.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01620--app-scratch-bootstrap.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01630--nl-scenario-proposal.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01650--network-sandbox.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01670--pod-federation-sim.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01680--fake-mobile-toolchain.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01690--fake-app-failures.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--sim-receipt-proof-658f05e1.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--world-regression-suite.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-cloud-billing-world.json +41 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-member-oidc-world.json +47 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--log-volume-world-4cfcdfcd.json +15 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--tool-router-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--train-manager-world.json +46 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--census-oracle-axis-world-6918999a.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--fake-agent-hook-host.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--next-tui-plugin-wizard.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01730--outbound-guard-sim-b65e7aca.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01740--graph-run-lifecycle-world-99feb920.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01750--hotspot-file-lease-world.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01850--pwa-static-swap.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01860--pwa-provenance-badge-world-6505d1f7.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01870--rla-macrophage-heal-timeout-stale-output.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/metadata.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00010--test-ux-sim-aimock-local-ts-346e03cb.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00020--test-telegram-surface-hitl-test-ts-1a40e9ff.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00030--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +1 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +1 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-fake-agent-hook-host--d684e4e6.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-graph-policy-lint--a3217972.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-duplicate-36330--00a4c628.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-glm-fallback-regression--3008ce2b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-notify-capability--377e3b9b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-sim-fake-app-failures-android-voice-photo-note--2cf7eecc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-guardian-train-worker-lifecycle--81fc2727.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-simkit-receipt-badge--403f2c90.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-brief-graph-contract-36172--adebc8d7.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-36414-mapreduce-core--3d93d2ed.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-graph-instance-pause-cancel-fork--03ed48f5.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-mapreduce-core--8e0f99c7.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/graph-hook--6004207a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/hotspot-file-lease-world--7a989baf.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-a-36129-numguard--6bf14d0e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-graph-v2-lower--5cfb0e37.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-train-manager-world--d8aadd96.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-c-app-scratch-bootstrap-sim--5bc6aa66.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-core-input--d3b85b0e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-fold-default--aee623bd.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-absorb-brief-graph-contract--322f06ec.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-sim-multi-actor--70a91caa.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-mock-catalog-4--6f2ee6aa.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-fake-feeds--5f8bba8e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-real-target-sandbox--17a5454a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-kaist-deploy-from-tui-pwa--e1c5986f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-census-oracle-axis--eac8e1dd.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-gate-no-wallclock-1--a8ad27a8.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-log-volume-world--24e1d1ea.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-mkt-sim-regression-suite--c8633fb2.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-first-party-plugins-all--b202b190.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-graph-route-allowlist--565dc688.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-plugin-multi-active--a95dc218.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-search-only--f91a0e19.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-tool-router-world--4e6a7c56.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-warmpool-pod-warm-normalize--dc25fd37.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/sim-fake-cred--ef5d3497.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/tool-router-low-risk-native--4fcc1519.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-mini-board-card-projection--1a257324.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-resource-ledger-public-auth--9372a56f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-rla-pwa-formal-update--8b6d47f1.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-cloud-billing-world--1dace52e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-market-feed-sim-impact-app-upgrade--7bbacec6.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-outbound-guard-sim--4c230f2f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00010--ux-ms-01-73ee5d56.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00020--ux-ms-02-88d521fa.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00025--release-macrophage-heal-fd63c32d.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00030--release-graph-prepub-fanout-1beb8236.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00035--arg-macro-canvas-sim.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00036--release-graph-absorb-all-0307.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--release-macro-chain-e2e-1109.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--rla-rehearsal-cloud-resume-sim-1f54baa1.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--ux-ms-03-0888aa4c.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00050--ux-ms-04-46d9b0ff.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00060--ux-ms-05-d309d631.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00070--ux-ms-06-b87b5f50.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00080--ux-ms-07-45b8212b.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00090--ux-ms-08-d047fc5e.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00100--ux-ms-09-75e68cac.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00110--ux-ms-11-e621d4ea.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00120--ux-ms-12-af6a74c3.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00130--night-train-dead-pid-lock-9f67d397.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00140--author-precheck-applied-4a55eaf2.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00150--author-precheck-rejected-unprovable-08ab0402.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00160--safe-public-copy-publish-redaction-e80f0180.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00170--sw-freeze-d66deac8.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00180--sim-hq-move-7fc41ad6.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00190--sim-chain-land-c1305d4c.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00200--ux-ms-13-995bb160.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00210--app-contract-secret-entropy-bd4fecf8.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00220--app-source-snapshot-896a2618.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00230--app-web-drive-tenant-cd467e6c.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00240--git-push-timeout-partial-outcome-remote-verify-52419971.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--google-drive-list-readonly-90287835.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--ux-ms-pod-phase-prewarm.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--rla-launch-countdown-1107-f4b4bc86.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--ux-ms-pod-phase-prewarm-hit.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00270--task-temp-cleanup-a5f4b922.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00280--sim-release-same-version-run-adoption-0bc8d711.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00290--simkit-receipt-badge-dcacf46e.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01010--graph-resume-any-entry-sim-9bc2289f.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--flutter-deploy-journey.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--seat-mail-wake-all-addresses-365812cf.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01030--graph-run-lifecycle-pause-owner-death-6011d381.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01031--graph-run-lifecycle-cancel-owner-death-60832435.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01032--graph-run-lifecycle-fork-owner-death-b857f8a0.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01720--fake-agent-hook-host.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-exclusions/00010--scenarios-ux-sim-mk-ms-01-yaml-917748f2.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00010--md-ux-sim-aside-feedback-loop-ts-f21f1507.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00020--md-ux-sim-author-reviewer-precheck-device-ts-b2a9abd6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00030--md-ux-sim-backend-tier-device-ts-54b7fd84.json +10 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00050--md-ux-sim-browser-hand-ts-d06db15a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00060--md-ux-sim-burst-ready-ladder-sim-ts-6dad5f6c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00070--md-ux-sim-chain-land-ts-0343338c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00080--md-ux-sim-classic-tui-seat-scenarios-ts-20fee020.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00090--md-ux-sim-cli-config-audit-device-ts-ce53777f.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00100--md-ux-sim-codex-wire-capture-ts-8cda31a6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00110--md-ux-sim-computer-use-ts-ce46f504.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00120--md-ux-sim-dashboard-event-loop-stall-monitor-dev-aa29de9c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00130--md-ux-sim-device-fidelity-ts-f5cd1c2c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00140--md-ux-sim-draft-inventory-builder-ts-c942f9a2.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00150--md-ux-sim-event-monkey-ts-7a173131.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00160--md-ux-sim-fake-app-auth-ts-36fadfd1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00170--md-ux-sim-fake-app-host-ts-f97c7aa0.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00180--md-ux-sim-fake-app-realtime-ts-25496e57.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00190--md-ux-sim-fake-app-storage-ts-4dd69d8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00200--md-ux-sim-fake-app-traffic-ts-f1f5e552.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00210--md-ux-sim-fake-bin-ts-cf8e7614.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00220--md-ux-sim-fake-browser-page-ts-cd408a66.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00230--md-ux-sim-fake-clock-ts-8ad5fbca.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00240--md-ux-sim-fake-cloud-vm-ts-6dd59466.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00250--md-ux-sim-fake-data-guard-boundary-ts-47048355.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00260--md-ux-sim-fake-dns-cert-ts-32045bf7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00270--md-ux-sim-fake-elevenlabs-ts-35e342bf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00280--md-ux-sim-fake-fetch-ts-65584925.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00290--md-ux-sim-fake-fleet-ts-1375b9f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00300--md-ux-sim-fake-gh-ts-7f98dfa3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00310--md-ux-sim-fake-herdr-ts-b888704c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00320--md-ux-sim-fake-higgsfield-ts-998bff8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00330--md-ux-sim-fake-kubectl-ts-3c86b0f0.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00340--md-ux-sim-fake-land-queue-ts-8180eab3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00350--md-ux-sim-fake-linear-device-ts-b5add3d0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00360--md-ux-sim-fake-llm-ts-df79e477.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00370--md-ux-sim-fake-payment-ts-75de40a0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00380--md-ux-sim-fake-ps-ts-a0e17feb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00390--md-ux-sim-fake-ssh-ts-6a7a68f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00400--md-ux-sim-fake-stt-ts-a4be8d74.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00410--md-ux-sim-fake-telegram-video-ts-0a411065.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00420--md-ux-sim-fault-cred-expiry-ts-46ce5b1a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00430--md-ux-sim-fault-glm-no-credential-ts-c9d22ea7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00440--md-ux-sim-fault-needs-human-reason-repair-ts-79e657b4.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00450--md-ux-sim-fault-nextmove-dispatch-ts-732fedbb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00460--md-ux-sim-fault-nexus-stall-ts-a9476e07.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00470--md-ux-sim-fault-pod-child-result-ts-029c2b11.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00480--md-ux-sim-fault-pod-codex-503-ts-2095dc24.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00490--md-ux-sim-fault-pod-death-ts-c4332c01.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00500--md-ux-sim-fault-pod-reuse-residue-ts-f6ec0683.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00510--md-ux-sim-fault-pool-cap-ts-704a8fd1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00520--md-ux-sim-fault-scope-escape-lift-ts-89d70ebb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00530--md-ux-sim-fault-sqlite-busy-ts-e55c6596.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00540--md-ux-sim-fault-tui-400-autoheal-ts-9c8c4c90.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00550--md-ux-sim-fixtures-git-worktree-accel-linux-json-292d13eb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00560--md-ux-sim-gate-roster-second-pool-ts-71ab79a0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00570--md-ux-sim-gate-shard-host-reroute-ts-d53fb003.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00580--md-ux-sim-goal-device-ts-081f27d5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00590--md-ux-sim-goal-interim-trace-ts-a294f6eb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00600--md-ux-sim-graph-engine-sim-ts-b396d6cd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00610--md-ux-sim-graph-runtime-overlay-event-path-ts-85e231ed.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00620--md-ux-sim-graph-runtime-overlay-event-path-worke-44d01497.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00630--md-ux-sim-grid-chaos-driver-ts-3aeaa007.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00640--md-ux-sim-grid-ledger-ts-47aa3bbf.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00650--md-ux-sim-grid-ready-tiers-ts-ce1a3d02.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00660--md-ux-sim-headless-tui-ts-efe53045.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00670--md-ux-sim-heal-reauthor-materialized-ts-f0885108.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00680--md-ux-sim-hq-move-sim-ts-3f87b093.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00690--md-ux-sim-in-process-cli-ts-a7cf98f0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00700--md-ux-sim-input-history-ts-373c28e3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00710--md-ux-sim-install-consent-device-ts-049427b0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00720--md-ux-sim-interaction-ts-1864df2b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00730--md-ux-sim-linear-secretary-ts-325a38c0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00740--md-ux-sim-mock-authoring-first-run-child-ts-58346a8b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00750--md-ux-sim-mock-authoring-first-run-ts-f6fa0f7c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00760--md-ux-sim-mock-device-requests-ts-eeefc29f.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00780--md-ux-sim-mock-scenario-catalog-ts-d5697910.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00790--md-ux-sim-mock-seat-pty-frame-child-ts-a918240e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00800--md-ux-sim-mock-seat-pty-frame-ts-64ad26cd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00810--md-ux-sim-mock-seat-pty-sequence-child-ts-942048e3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00820--md-ux-sim-mock-seat-pty-sequence-ts-6ea89eee.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00830--md-ux-sim-next-tui-seat-scenarios-ts-f6041f67.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00840--md-ux-sim-onboarding-first-run-device-ts-04866faf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00850--md-ux-sim-pty-key-modifiers-device-ts-c223afb6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00860--md-ux-sim-release-event-trace-ts-2a3b45ba.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00870--md-ux-sim-release-publish-devices-ts-b6bcf64b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00880--md-ux-sim-release-sim-rig-ts-05f20f16.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00890--md-ux-sim-render-frame-ts-275662e1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00900--md-ux-sim-research-decision-chain-ts-9ba3915b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00910--md-ux-sim-resume-picker-device-ts-9057ce38.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00920--md-ux-sim-rla-event-response-scorecard-ts-005ca7af.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-arg-macro-canvas-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-safe-public-copy-publish-ts-b46b6ba6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00940--md-ux-sim-scenario-ts-409febfe.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00950--md-ux-sim-secret-canary-ts-b9d5f354.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00960--md-ux-sim-seminar-rehearsal-ts-c0dcc1cf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00970--md-ux-sim-service-key-setup-ts-fc2578e7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00980--md-ux-sim-session-id-seed-ts-12206acb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00990--md-ux-sim-sim-coverage-ts-fd46c0fe.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01000--md-ux-sim-skills-tools-shell-device-ts-a63ab153.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01010--md-ux-sim-slash-menu-frames-ts-fc04d9ce.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-flutter-deploy-journey-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-subagent-tools-device-ts-6ecdf005.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01030--md-ux-sim-task-agent-parent-host-device-ts-7a97b5f6.json +10 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01050--md-ux-sim-task-orchestrator-surfaces-self-implem-18bdb425.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01060--md-ux-sim-temp-git-remote-ts-f64f9359.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01070--md-ux-sim-temp-git-repo-ts-cd68ece3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01080--md-ux-sim-term-slash-device-ts-e7ee79b6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01090--md-ux-sim-tool-async-fail-loop-ts-057c354d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01100--md-ux-sim-tty-foreground-steal-child-ts-bfe16e86.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01110--md-ux-sim-turn-states-ts-c18238ab.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01120--md-ux-sim-turn-throw-sim-ts-36260397.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01130--md-ux-sim-warm-pool-reuse-sim-ts-47a18b34.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01140--md-ux-sim-warm-pool-reuse-switch-sim-ts-2b0a1583.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01150--md-ux-sim-warm-si-reuse-sim-ts-6e790b8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01160--md-ux-sim-world-chaos-runtime-ts-45e1a99c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01170--md-ux-sim-world-host-chaos-ts-9d61588e.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01180--md-ux-sim-world-schema-ts-7b596511.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01190--md-ux-sim-world-snapshot-ts-7d31ed92.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01200--md-ux-sim-world-store-ts-64cd54bf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01210--md-ux-sim-world-ts-ad60826b.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01220--md-ux-sim-world-watch-ts-d45007fd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01230--md-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01240--md-ux-sim-app-contract-secret-entropy-ts-e4d19d66.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01250--md-ux-sim-app-kill-switch-world-ts-e89b604d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01260--md-ux-sim-fake-app-db-world-ts-d394fe23.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01270--md-ux-sim-fake-app-drive-world-ts-f5bb931e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01280--md-ux-sim-fake-app-source-concurrent-writer-ts-d342114a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01290--md-ux-sim-fake-app-source-world-ts-4cdf1a61.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01300--md-ux-sim-fake-google-drive-world-ts-11b7f0da.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01310--md-ux-sim-fake-relay-world-ts-d4c096f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01320--md-ux-sim-fake-temp-cleanup-ts-299fbf77.json +10 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01340--md-ux-sim-multi-tenant-relay-world-ts-e2fc28d2.json +10 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01360--md-ux-sim-pod-reuse-shared-fake-boundary-ts-a16285a5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01370--md-ux-sim-pr-land-drift-gate-device-ts-3df0178e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01380--md-ux-sim-readiness-countdown-ts-48cf04b4.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01390--md-ux-sim-train-manager-decision-sim-ts-9b4695ad.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01410--md-ux-sim-edge-creator-ts-b25cb517.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-pod-phase-prewarm-ts-a137c8d1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-smart-merge-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01430--md-ux-sim-ta-land-count-dispatcher-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01440--md-ux-sim-fake-bin-args-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01450--md-ux-sim-pr-land-drift-autorepair-device-ts.json +10 -0
- 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
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01480--md-ux-sim-fake-adb-phone-world-ts-76033333.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01490--md-ux-sim-fake-app-db-backup-world-ts.json +10 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01510--md-ux-sim-device-catalog-snapshot-fragments-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-fake-android-client-ts-77f6d965.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-plugin-release-observe-route-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01530--md-ux-sim-pwa-retained-routes-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01540--md-ux-sim-gate-image-layered-delta-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01550--md-ux-sim-user-config-default-sparse-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01560--md-ux-sim-release-sim-rig-seat-guard-child-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01570--md-ux-sim-gate-steady-state-proof-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01580--md-ux-sim-user-config-tui-diet-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01590--md-ux-sim-edge-creator-nightly-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-absorb-ingest-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-telegram-outbound.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-app-upgrade-path-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-next-tui-core-input-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01611--md-ux-sim-plugin-yaml-gen-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01620--md-ux-sim-app-scratch-bootstrap-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01621--md-ux-sim-fake-nexus-board-server-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01622--md-ux-sim-graph-diff-apply-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01623--md-ux-sim-mapreduce-multihost.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01630--md-ux-sim-ios-chat-edge-adapter-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01640--md-ux-sim-nl-scenario-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01650--md-ux-sim-network-sandbox-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01660--md-ux-sim-next-tui-route-device-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01670--md-ux-sim-pod-federation-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01680--md-ux-sim-fake-mobile-toolchain-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-fake-feeds-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-multi-actor-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-sim-receipt-ts-fbac5ddd.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01691--md-ux-sim-fake-app-failures-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01700--md-ux-sim-world-regression-suite-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-cloud-billing-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-member-oidc-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-real-target-sandbox-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-tool-router-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-train-manager-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-census-oracle-axis-world-ts-0dd03008.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-fake-agent-hook-host-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-next-tui-plugin-wizard-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01730--md-ux-sim-outbound-guard-sim-ts-a885ec98.json +8 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01740--md-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-hotspot-file-lease-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-pwa-provenance-badge-world-ts-cf2acbfe.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01760--md-ux-sim-graph-trigger-hook-device-ts.json +8 -0
- 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
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01762--md-ux-sim-graph-event-entry-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01763--md-ux-sim-graph-placement-lease-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00010--ev-0042-8a37502e.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00020--ev-0107-09ba5618.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00030--hq-move-75a88e80.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00040--rla-er-01-68d954af.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00050--rla-er-02-1e5e64d1.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00060--rla-er-03-51a1b3d4.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00070--rla-er-04-8e22f866.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00080--rla-er-05-df87c68d.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00090--rla-er-06-ad13c028.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00100--rla-er-07-d2204757.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00110--rla-er-08-5ffce874.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00120--rla-er-09-f575779c.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00130--rla-er-10-ac9154fd.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00140--gate-pools-pinned-sweep-0c5e1f58.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00150--gate-mshq-unavailable-6f38fbd8.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00160--gate-both-unavailable-c4956825.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00170--gate-digest-mismatch-7b971872.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00180--gate-no-pinned-image-33bda9d9.json +5 -0
- package/graphs/apps/lecture-scrap-extract.yaml +10 -0
- package/graphs/apps/recipes.yaml +1 -0
- package/graphs/catalog/catalog.yaml +2 -2
- package/graphs/demo/kaist-key-feature/kaist-key-feature.yaml +30 -0
- package/graphs/demo/kaist-key-feature/recipes.yaml +1 -0
- package/graphs/demo/recipes.yaml +13 -0
- package/graphs/demo/solar-scene4.yaml +24 -0
- package/graphs/heal/heal-loop.yaml +10 -1
- package/graphs/heal/recipes.yaml +2 -0
- package/graphs/overlays/stop-heal-ladder.yaml +21 -0
- package/graphs/release/derive.json +37 -0
- package/graphs/release/macrophage-subscriber.yaml +21 -0
- package/graphs/release/node-command-bindings.json +18 -0
- package/graphs/release/plugin.json +34 -0
- package/graphs/release/recipes.yaml +78 -1
- package/graphs/release/release-edge-vocabulary.yaml +11 -0
- package/graphs/release/release-gate-domain-pack.yaml +9 -0
- package/graphs/release/release-graph.schema.yaml +7 -0
- package/graphs/release/release-loop-fanout.yaml +107 -0
- package/graphs/release/release-loop.yaml +84 -40
- package/graphs/release/rla/loop.yaml +30 -0
- package/graphs/release/rla/plugin.json +19 -0
- package/graphs/release/rla/recipes.yaml +11 -0
- package/graphs/release/rla/supervisor.yaml +23 -0
- package/graphs/templates/release/plugin.json +132 -0
- package/graphs/templates/release/recipes.yaml +20 -0
- package/graphs/templates/release/release-step.ts +27 -0
- package/graphs/templates/release/release.yaml +24 -0
- package/graphs/units/pod-reuse-prep.yaml +17 -0
- package/graphs/units/recipes.yaml +3 -0
- package/graphs/units/verbs/decide.yaml +19 -0
- package/graphs/units/verbs/make.yaml +19 -0
- package/graphs/units/verbs/recipes.yaml +10 -0
- package/graphs/units/verbs/watch.yaml +18 -0
- package/package.json +6 -1
- package/packs/gcp-architect-expand/content/decision-table.md +25 -0
- package/packs/gcp-architect-expand/content/security-decision-table.md +17 -0
- package/packs/gcp-architect-expand/knowledge-pack.json +12 -0
- package/plugins/absorb/graph/absorb-brief.yaml +63 -0
- package/plugins/absorb/graph/absorb-build.yaml +42 -0
- package/plugins/absorb/graph/absorb-ingest.yaml +18 -0
- package/plugins/absorb/graph/absorb-suggest-list.yaml +16 -0
- package/plugins/absorb/graph/recipes.yaml +1 -0
- package/plugins/absorb/graph/units/recipes.yaml +1 -0
- package/plugins/absorb/handlers/board-approval.ts +99 -0
- package/plugins/absorb/packs/member-apps/pack.yaml +14 -0
- package/plugins/absorb/plugin.json +276 -0
- package/plugins/absorb/plugin.yaml +102 -0
- package/plugins/absorb/sims/absorb-demo-world.yaml +44 -0
- package/plugins/absorb/skills/absorb/brief/SKILL.md +10 -0
- package/plugins/absorb/skills/absorb/build/SKILL.md +8 -0
- package/plugins/absorb/skills/absorb/card/SKILL.md +10 -0
- package/plugins/absorb/skills/absorb/suggest/SKILL.md +10 -0
- package/plugins/doc-draft/README.md +1 -1
- package/plugins/doc-draft/graphs/run-step.ts +7 -11
- package/plugins/elanous-app-deploy/plugin.json +34 -0
- package/plugins/elanous-app-deploy/skills/app-deploy/SKILL.md +5 -0
- package/plugins/elanous-observe/plugin.json +41 -0
- package/plugins/elanous-release/plugin.json +41 -0
- package/plugins/gcp-architect-expand/README.md +9 -0
- package/plugins/gcp-architect-expand/entitlements.json +28 -0
- package/plugins/gcp-architect-expand/graph.yaml +22 -0
- package/plugins/gcp-architect-expand/plugin.json +15 -0
- package/plugins/gcp-architect-expand/recipes.yaml +13 -0
- package/plugins/geo-check/README.md +2 -2
- package/plugins/geo-check/graphs/run-step.ts +6 -12
- package/plugins/graph-instance-view/fixtures/graph.view.json +24 -0
- package/plugins/graph-instance-view/fixtures/harness.view.json +21 -0
- package/plugins/graph-instance-view/fixtures/release.view.json +23 -0
- package/plugins/graph-instance-view/fixtures/resource.view.json +25 -0
- package/plugins/graph-instance-view/schema/view-model.v1.schema.json +126 -0
- package/plugins/iul-shared/materialize-intent-tool.ts +2 -1
- package/plugins/iul-shared/materializer.ts +2 -1
- package/plugins/kr-flow-composites/README.md +45 -0
- package/plugins/kr-flow-composites/graphs/battery-signal.yaml +22 -0
- package/plugins/kr-flow-composites/graphs/etf-price.yaml +12 -0
- package/plugins/kr-flow-composites/graphs/recipes.yaml +9 -0
- package/plugins/kr-flow-composites/graphs/sector-flow.yaml +18 -0
- package/plugins/kr-flow-composites/plugin.json +16 -0
- package/plugins/marketplace-market-data/graphs/units/market-ohlcv.yaml +23 -0
- package/plugins/marketplace-market-data/graphs/units/market-quote.yaml +21 -0
- package/plugins/marketplace-market-data/graphs/units/recipes.yaml +1 -0
- package/plugins/marketplace-market-data/plugin.json +23 -0
- package/plugins/marketplace-market-data/sims/n8n/execute-workflow-default.json +15 -0
- package/plugins/marketplace-market-data/sims/n8n/execute-workflow-explicit-contract.json +18 -0
- package/scripts/check-graph-declaration.ts +20 -2
- package/scripts/ci-android-unit-tests.ts +46 -2
- package/scripts/ci-pwa-build-gate.ts +22 -2
- package/scripts/ci-typecheck-changed.ts +22 -8
- package/scripts/cli-spawn-sites.ts +114 -0
- package/scripts/corpus-process-group.ts +55 -0
- package/scripts/corpus-worker-lifecycle.ts +2 -7
- package/scripts/cron-run.ts +1 -1
- package/scripts/device-real-drive.mjs +216 -0
- package/scripts/device-real-drive.test.mjs +168 -0
- package/scripts/docs/generate-cli-anatomy.ts +3 -4
- package/scripts/fixtures/nl-routing/corpus.jsonl +17 -0
- package/scripts/fleet/host-readiness-sim.sh +198 -0
- package/scripts/fleet/host-readiness.sh +218 -0
- package/scripts/fleet/node-setup.sh +9 -4
- package/scripts/fleet/wsl-node-setup.sh +1 -1
- package/scripts/gate-contract-shadow-collector.py +417 -0
- package/scripts/gate-contract-shadow-collector.test.py +176 -0
- package/scripts/generate-conductor-cell-map.ts +73 -0
- package/scripts/generate-mock-scenario-catalog.ts +26 -0
- package/scripts/generate-sim-world-device-catalogs.ts +38 -17
- package/scripts/generate-ux-sim-device-manual.ts +1 -1
- package/scripts/graph-dryrun-baseline.ts +166 -0
- package/scripts/heal/run-role.ts +8 -3
- package/scripts/hq-repo-maintenance-cycle.ts +24 -0
- package/scripts/import-graph-scc.ts +54 -8
- package/scripts/install.ps1 +234 -50
- package/scripts/install.sh +144 -10
- package/scripts/isolation-hardcode-baseline.txt +1 -1
- package/scripts/kr-flow-composites.ts +86 -0
- package/scripts/land-enqueue.test.sh +18 -4
- package/scripts/land-preflight.ts +103 -0
- package/scripts/lib/deterministic-env.ts +2 -5
- package/scripts/lib/install-test-package.ts +31 -0
- package/scripts/lib/install-test-tier.ts +13 -0
- package/scripts/lib/next-tui-budget.ts +189 -0
- package/scripts/lib/nl-routing-screening.ts +13 -0
- package/scripts/lib/tui-runtime-static-closure.ts +59 -0
- package/scripts/load/app-serve-burst.ts +203 -0
- package/scripts/load/app-serve-live.ts +68 -0
- package/scripts/load/members-signup-burst.ts +141 -0
- package/scripts/marketing/generate-feature-map.ts +14 -6
- package/scripts/measure-goal-grounding-corpus.ts +3 -4
- package/scripts/measure-nl-routing-corpus.ts +108 -12
- package/scripts/measure-tool-display-lines.ts +1 -1
- package/scripts/migrate-omni-market-secrets.ts +98 -0
- package/scripts/mission-request-judge.ts +6 -0
- package/scripts/morning-report.ts +2 -2
- package/scripts/next-tui-budget.ts +113 -0
- package/scripts/plugin-only-ratchet-baseline.json +267 -0
- package/scripts/plugin-only-ratchet.ts +213 -0
- package/scripts/plugins/generate-plugin-json.ts +95 -0
- package/scripts/public-leak-baseline.txt +0 -1
- package/scripts/qwen-pipeline-bench.ts +3 -7
- package/scripts/ratchets/test-interference-patterns.allowlist.txt +2 -22
- package/scripts/release-build.ts +5 -1
- package/scripts/release-loop/adaptive-gate-heal-adapter.ts +132 -0
- package/scripts/release-loop/adaptive-gate-heal.ts +191 -0
- package/scripts/release-loop/auto-approve-node.ts +35 -5
- package/scripts/release-loop/checklist-gate-node.ts +9 -1
- package/scripts/release-loop/contract-test-select.ts +127 -0
- package/scripts/release-loop/cut-branch.ts +248 -3
- package/scripts/release-loop/docs-node.ts +10 -10
- package/scripts/release-loop/emergency-publish-authorization.ts +29 -0
- package/scripts/release-loop/emergency-publish-gate-node.ts +129 -0
- package/scripts/release-loop/emergency-publish-switch-sim.ts +65 -0
- package/scripts/release-loop/emergency-publish-switch.ts +46 -0
- package/scripts/release-loop/export-check-node.ts +121 -11
- package/scripts/release-loop/export-check-remote.ts +146 -0
- package/scripts/release-loop/fixtures/gate-0307-key-diff.json +3293 -0
- package/scripts/release-loop/formal-receipt-radius.ts +32 -0
- package/scripts/release-loop/gate-api-leaf.ts +19 -0
- package/scripts/release-loop/gate-append-recheck-plan-node.ts +27 -0
- package/scripts/release-loop/gate-autoheal-sim-evidence.ts +2 -1
- package/scripts/release-loop/gate-baseline-isolated.ts +80 -0
- package/scripts/release-loop/gate-baseline-manifest.ts +12 -0
- package/scripts/release-loop/gate-baseline-receipt.ts +52 -14
- package/scripts/release-loop/gate-baseline.ts +14 -0
- package/scripts/release-loop/gate-bisect-owner-mail.ts +106 -0
- package/scripts/release-loop/gate-bisect-sidecar.ts +159 -0
- package/scripts/release-loop/gate-bisect.ts +146 -0
- package/scripts/release-loop/gate-closure.ts +771 -28
- package/scripts/release-loop/gate-constants.ts +2 -0
- package/scripts/release-loop/gate-contract-surfaces.json +150 -0
- package/scripts/release-loop/gate-cut-snapshot.ts +67 -0
- package/scripts/release-loop/gate-cutover-switch-node.ts +32 -0
- package/scripts/release-loop/gate-file-receipt-audit-node.ts +142 -0
- package/scripts/release-loop/gate-file-receipts.ts +195 -0
- package/scripts/release-loop/gate-git.ts +68 -0
- package/scripts/release-loop/gate-image-pin-handshake.ts +57 -0
- package/scripts/release-loop/gate-image-pin.ts +242 -3
- package/scripts/release-loop/gate-image-repair-node.ts +104 -0
- package/scripts/release-loop/gate-image-runtime-identity.ts +41 -0
- package/scripts/release-loop/gate-key-diff.ts +138 -0
- package/scripts/release-loop/gate-lazy-require-measure.ts +55 -0
- package/scripts/release-loop/gate-nightly-audits.ts +11 -0
- package/scripts/release-loop/gate-node-cli.ts +17 -0
- package/scripts/release-loop/gate-node-sim.ts +68 -16
- package/scripts/release-loop/gate-node.ts +5 -5157
- package/scripts/release-loop/gate-partial.ts +83 -2
- package/scripts/release-loop/gate-radius-live.ts +181 -22
- package/scripts/release-loop/gate-radius-shadow.ts +19 -4
- package/scripts/release-loop/gate-receipt-hash.ts +147 -0
- package/scripts/release-loop/gate-recheck-plan-node.ts +9 -4
- package/scripts/release-loop/gate-repair-node.ts +549 -0
- package/scripts/release-loop/gate-reuse-identity.ts +48 -0
- package/scripts/release-loop/gate-runtime.ts +5958 -0
- package/scripts/release-loop/gate-same-run-recheck-node.ts +102 -0
- package/scripts/release-loop/gate-shard-artifacts.ts +134 -0
- package/scripts/release-loop/gate-shard-dispatch.ts +158 -20
- package/scripts/release-loop/gate-shard-load-flaky.ts +84 -0
- package/scripts/release-loop/gate-shard-receipt-carry.ts +106 -0
- package/scripts/release-loop/gate-shard-receipts.ts +547 -30
- package/scripts/release-loop/gate-shard-shell.ts +227 -0
- package/scripts/release-loop/gate-skip-by-evidence-node.ts +80 -0
- package/scripts/release-loop/gate-stalled-evidence.ts +106 -0
- package/scripts/release-loop/gate-test-summary.ts +11 -0
- package/scripts/release-loop/gate-train-cas-adapter.ts +56 -0
- package/scripts/release-loop/gate-train-file-cas.ts +123 -0
- package/scripts/release-loop/gate-train-receipts.ts +24 -18
- package/scripts/release-loop/gate-triage-node.ts +427 -51
- package/scripts/release-loop/gate-triage-types.ts +51 -0
- package/scripts/release-loop/gate-types.ts +320 -0
- package/scripts/release-loop/gate-warm-artifacts.ts +48 -2
- package/scripts/release-loop/hand-response-node.ts +258 -0
- package/scripts/release-loop/import-graph-scc-run.ts +46 -1
- package/scripts/release-loop/import-graph-scc.ts +2 -1
- package/scripts/release-loop/known-issues-node.ts +2 -1
- package/scripts/release-loop/mac-smoke-node.ts +1 -1
- package/scripts/release-loop/node-verdict.ts +29 -3
- package/scripts/release-loop/preflight.ts +148 -51
- package/scripts/release-loop/publish-node.ts +43 -7
- package/scripts/release-loop/pwa-build-typecheck.ts +183 -0
- package/scripts/release-loop/pwa-formal-update-node.ts +19 -0
- package/scripts/release-loop/pwa-formal-update.ts +196 -0
- package/scripts/release-loop/pwa-remote.ts +29 -0
- package/scripts/release-loop/pwa-scenarios-node.ts +38 -4
- package/scripts/release-loop/regression-suite-node.ts +44 -0
- package/scripts/release-loop/release-readiness.ts +185 -5
- package/scripts/release-loop/remote-worktree-setup.sh +53 -0
- package/scripts/release-loop/render-warm-control-manifest.ts +33 -4
- package/scripts/release-loop/repair-pr-landed.ts +174 -0
- package/scripts/release-loop/resume-cap.ts +1 -1
- package/scripts/release-loop/resume-release.ts +302 -176
- package/scripts/release-loop/resume-types.ts +29 -0
- package/scripts/release-loop/resume.ts +38 -36
- package/scripts/release-loop/rla-event-response-scorecard-report.ts +277 -0
- package/scripts/release-loop/rolling-main-gate.ts +363 -0
- package/scripts/release-loop/sweep-cert.ts +300 -0
- package/scripts/release-loop/traffic-event-hook-sim.ts +26 -0
- package/scripts/release-loop/traffic-event-hook.ts +383 -0
- package/scripts/release-loop/train-verdict.ts +162 -0
- package/scripts/release-loop/unattended-release.ts +196 -7
- package/scripts/release-loop/version-node.ts +205 -25
- package/scripts/replay-phone-pwa-selfheal-trace.ts +16 -0
- package/scripts/resource-ledger-url.ts +60 -0
- package/scripts/seat-worktree-add.sh +32 -0
- package/scripts/signal-digest-photo.ts +1 -1
- package/scripts/sim-impact-check.ts +119 -0
- package/scripts/sim-impact.ts +413 -0
- package/scripts/sim-real-target-worker.ts +19 -0
- package/scripts/smoke-higgsfield-app-cli-session.ts +90 -0
- package/scripts/test-census/similar-search.ts +382 -0
- package/scripts/test-census-similar-search.ts +141 -0
- package/scripts/test-census.ts +570 -0
- package/scripts/test-deterministic.ts +64 -9
- package/scripts/test-diet/node.ts +1 -1
- package/scripts/tsc-diet-measure.ts +225 -0
- package/scripts/update-cli-spawn-allowlist.ts +46 -0
- package/scripts/update-tui-size-ratchet.ts +10 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier-lanes.py +170 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier.py +179 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/train-batch-live.py +2881 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/train-manager.py +1845 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/README.md +9 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/gate-tier.py +179 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-batch-live.py +2881 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-memory.py +102 -0
- package/scripts/ux-sim/sim-fake-bin-args-evidence.ts +179 -0
- package/scripts/ux-sim/test-train-edge-operational-replay.py +411 -0
- package/scripts/ux-sim/test-train-retry-file-map.py +71 -0
- package/scripts/ux-sim.ts +54 -3
- package/scripts/validate-graph-instance-view.ts +47 -0
- package/scripts/warm-pool-provider-config.ts +201 -23
- package/skills/omni-crawl/SKILL.md +31 -54
- package/skills/omni-crawl/scripts/main.ts +86 -276
- package/skills/omni-crawl/src/free.ts +1 -6
- package/skills/omni-crawl/src/registry.ts +124 -36
- package/skills/omni-crawl/src/router.ts +42 -85
- package/skills/omni-crawl/src/test-fetch-preload.ts +7 -0
- package/skills/omni-crawl/src/types.ts +5 -2
- package/src/acp/acp-surface-channels.ts +3 -2
- package/src/acp/client.ts +14 -14
- package/src/acp/codex-app-server-client.ts +157 -20
- package/src/acp/codex-elicitation-ask.ts +1 -4
- package/src/acp/core-turn-bridge.ts +3 -2
- package/src/acp/event-router.ts +5 -1
- package/src/acp/fs-roots.ts +1 -1
- package/src/acp/multi-llm-bridge.ts +2 -1
- package/src/acp/server.ts +52 -4
- package/src/acp/turn-runner.ts +1 -1
- package/src/ad-pipeline/fixtures/marketing-studio-video.schema.json +154 -0
- package/src/ad-pipeline/fixtures/seedance-2-0.schema.json +143 -0
- package/src/ad-pipeline/higgsfield-backend.ts +2 -1
- package/src/ad-pipeline/model-contracts.ts +1 -4
- package/src/ad-pipeline/product-video-command.ts +27 -0
- package/src/ad-pipeline/production-contract.ts +6 -0
- package/src/ad-pipeline/production.ts +1 -1
- package/src/ad-pipeline/qc.ts +1 -4
- package/src/ad-pipeline/run.ts +4 -6
- package/src/ad-pipeline/shoot-plan.ts +1 -1
- package/src/agent/agent-list-tool.ts +2 -1
- package/src/agent/agent-output-tool.ts +2 -1
- package/src/agent/agent-stop-tool.ts +2 -1
- package/src/agent/app-deploy-plugin.ts +237 -0
- package/src/agent/autonomous-tools.ts +2 -1
- package/src/agent/coding-core-tools.ts +2 -1
- package/src/agent/loader.ts +2 -1
- package/src/agent/monad-agent-turn.ts +1 -1
- package/src/agent/nest-depth.ts +2 -2
- package/src/agent/runner.ts +10 -8
- package/src/agent/shared-app-tools.ts +8 -4
- package/src/agent/subagent-callable.ts +2 -1
- package/src/agent/terminal-surface.ts +2 -1
- package/src/agent/types.ts +2 -1
- package/src/agent-mission/driver.ts +7 -4
- package/src/agent-substrate/acp-implementer.ts +1 -1
- package/src/agent-substrate/pr-reviewer.ts +3 -0
- package/src/agent-substrate/self-review-cli.ts +79 -11
- package/src/agent-team/team-tools.ts +2 -1
- package/src/approval-modal.ts +14 -4
- package/src/ask-user-question/inline-resolver.ts +2 -1
- package/src/ask-user-question/tool.ts +2 -1
- package/src/auth/setup-link-tokens.fixture.ts +10 -1
- package/src/auth/setup-link-tokens.ts +176 -0
- package/src/auto-research/auto-mode/tool-enter.ts +2 -1
- package/src/auto-research/auto-mode/tool-exit.ts +2 -1
- package/src/auto-research/question-ladder-contract.ts +2 -9
- package/src/auto-research/tools/budget.ts +2 -1
- package/src/auto-research/tools/question-queue.ts +2 -1
- package/src/auto-research/tools/research-plan.ts +2 -1
- package/src/auto-research/tools/termination-check.ts +2 -1
- package/src/autopilot/build/llm-conflict-merge.ts +1 -1
- package/src/autopilot/build/nocturnal-deps.ts +1 -1
- package/src/autopilot/elanous-builtin-runner.ts +3 -2
- package/src/autopilot/gh-rest-fallback.ts +8 -4
- package/src/autopilot/lineage/timeline.ts +1 -1
- package/src/autopilot/llm-control-brain.ts +1 -1
- package/src/autopilot/mission-arc-preflight.ts +7 -2
- package/src/autopilot/mission-briefing-live.ts +1 -1
- package/src/autopilot/mission-budget.ts +1 -1
- package/src/autopilot/mission-codebase-gate.ts +9 -17
- package/src/autopilot/mission-decide-tool.ts +2 -1
- package/src/autopilot/mission-engine.ts +1 -1
- package/src/autopilot/mission-grounding-ladder.ts +17 -329
- package/src/autopilot/mission-history.ts +1 -1
- package/src/autopilot/mission-incident-context.ts +2 -1
- package/src/autopilot/mission-loop-policy.ts +1 -1
- package/src/autopilot/mission-notify.ts +1 -1
- package/src/autopilot/mission-origin.ts +1 -1
- package/src/autopilot/mission-phase-budget.ts +1 -1
- package/src/autopilot/mission-registry.ts +3 -7
- package/src/autopilot/mission-route-decision.ts +1 -1
- package/src/autopilot/mission-se-bridge.ts +2 -1
- package/src/autopilot/mission-tool.ts +2 -1
- package/src/autopilot/mission-trace.ts +1 -1
- package/src/autopilot/pr-manager.ts +134 -10
- package/src/autopilot/reuse-existence-explorer.ts +1 -1
- package/src/autopilot/state-paths.ts +2 -2
- package/src/autopilot/tool-registry.ts +2 -1
- package/src/autopilot/track-agent.ts +1 -1
- package/src/autopilot/track-courier.ts +2 -1
- package/src/background-reasoning/patcher-llm-resolver.ts +1 -1
- package/src/boot/daemon-prompt-turn.ts +8 -2
- package/src/boot/daemon-tools/delegate-agent.ts +3 -2
- package/src/boot/daemon-tools/edit.ts +2 -1
- package/src/boot/daemon-tools/grep.ts +2 -1
- package/src/boot/daemon-tools/index.ts +4 -1
- package/src/boot/daemon-tools/plan.ts +2 -1
- package/src/boot/daemon-tools/pty-shell.ts +2 -1
- package/src/boot/daemon-tools/read.ts +2 -1
- package/src/boot/daemon-tools/self-implement.ts +2 -1
- package/src/boot/daemon-tools/types.ts +6 -1
- package/src/boot/daemon-tools/web-search.ts +2 -1
- package/src/boot/daemon-tools/web-terminal.ts +2 -1
- package/src/boot/daemon-tools/write.ts +2 -1
- package/src/briefing/brief-items.ts +3 -6
- package/src/briefing/claim-key.ts +4 -0
- package/src/budget/llm-cost.ts +6 -11
- package/src/capture/capture-tools.ts +2 -1
- package/src/capture/compare-panes.ts +2 -1
- package/src/capture/watch-pane.ts +2 -1
- package/src/cft/tools/andon-list.ts +2 -1
- package/src/cft/tools/emit-process-health.ts +2 -1
- package/src/cft/tools/escalate-ladder.ts +2 -1
- package/src/cft/tools/escalate-signal.ts +2 -1
- package/src/cft/tools/ishikawa-analyze.ts +2 -1
- package/src/cft/tools/pareto-analyze.ts +2 -1
- package/src/cft/tools/quick-kill-triage.ts +2 -1
- package/src/cft/tools/resolve-escalation.ts +2 -1
- package/src/cft/tools/root-cause-analyze.ts +2 -1
- package/src/cft/tools/run-dmaic.ts +2 -1
- package/src/cft/tools/run-fmea.ts +2 -1
- package/src/cft/tools/run-pdca.ts +2 -1
- package/src/cft/tools/write-a3.ts +2 -1
- package/src/channel-bot-token.ts +1 -1
- package/src/chat/chat-cli.ts +4 -1
- package/src/chat/hud-render.ts +1 -1
- package/src/chat/hud-segments-wire.ts +1 -1
- package/src/chat/index.ts +81 -58
- package/src/chat/pickers/state.ts +31 -4
- package/src/chat/solar-scene5-context.ts +65 -0
- package/src/chat/tool-render/dispatch.ts +12 -15
- package/src/chat/tool-render/types.ts +1 -1
- package/src/cli/agent-cli.ts +127 -12
- package/src/cli/app-cli.ts +108 -2
- package/src/cli/brief-cli.ts +1 -1
- package/src/cli/child-plugin-runtime.ts +62 -0
- package/src/cli/control-cli.ts +153 -13
- package/src/cli/cred-cli.ts +144 -0
- package/src/cli/decisions-cli.ts +1 -1
- package/src/cli/doctor-cli.ts +5 -2
- package/src/cli/doctor-readiness.ts +2 -2
- package/src/cli/guardian-cli.ts +1 -1
- package/src/cli/hooks-cli.ts +1 -1
- package/src/cli/hotspot-start-forecast.ts +57 -0
- package/src/cli/intake-source-cli.ts +1 -1
- package/src/cli/light-entry-route.ts +4 -1
- package/src/cli/llm-cli.ts +44 -0
- package/src/cli/llm-detect-cli.ts +31 -6
- package/src/cli/llm-mode-flag.ts +37 -0
- package/src/cli/logs-cli.ts +5 -2
- package/src/cli/logs-timeline.ts +1 -1
- package/src/cli/machine-apply-from-capture.ts +133 -0
- package/src/cli/machine-capture.ts +356 -0
- package/src/cli/machine-cli.ts +14 -1
- package/src/cli/machine-membership.ts +350 -0
- package/src/cli/machine-setup-apply.ts +176 -0
- package/src/cli/machine-setup-plan.ts +392 -0
- package/src/cli/machine-wsl-diagnosis.ts +342 -0
- package/src/cli/machine-wsl-setup.ts +710 -0
- package/src/cli/mcp-diagnose.ts +2 -2
- package/src/cli/mcp-login.ts +41 -14
- package/src/cli/member-key-token-cli.ts +75 -0
- package/src/cli/mission-config.ts +1 -1
- package/src/cli/msg-cli.ts +94 -14
- package/src/cli/msg-list-cli.ts +2 -2
- package/src/cli/nexus-show.ts +9 -210
- package/src/cli/open-guard.ts +95 -0
- package/src/cli/ops-cli.ts +2 -34
- package/src/cli/ops-status-remote.ts +2 -41
- package/src/cli/pod-cli.ts +1 -1
- package/src/cli/pr-cli.ts +373 -44
- package/src/cli/pr-land-conductor-map.ts +99 -0
- package/src/cli/pr-land-contract-shadow.ts +39 -0
- package/src/cli/pr-land-drift-radar.ts +348 -0
- package/src/cli/pr-land-drift-repair.ts +7 -5
- package/src/cli/pr-land-heavy-remote.ts +32 -13
- package/src/cli/pr-land-overlap-evidence.ts +135 -2
- package/src/cli/pr-land-pod-shadow-job.ts +1 -1
- package/src/cli/pr-land-refusal.ts +9 -0
- package/src/cli/pr-land-remote-git.ts +125 -0
- package/src/cli/provider-cli.ts +4 -10
- package/src/cli/pty-drive-cli.ts +1 -1
- package/src/cli/pwa-show-contract.ts +49 -0
- package/src/cli/pwa-show.ts +4 -24
- package/src/cli/pwa-test.ts +3 -3
- package/src/cli/q-cli.ts +124 -0
- package/src/cli/release-checklist-read-cli.ts +40 -3
- package/src/cli/release-checklist-remote.ts +114 -0
- package/src/cli/release-checklist-write.ts +1 -1
- package/src/cli/release-cli.ts +181 -45
- package/src/cli/release-run-status-cli.ts +135 -0
- package/src/cli/remote-eln-pty.ts +1 -1
- package/src/cli/resource-ledger-cli.ts +61 -1
- package/src/cli/review-carry.ts +82 -0
- package/src/cli/role-cli.ts +1 -1
- package/src/cli/secret-cli.test-helpers.ts +7 -0
- package/src/cli/secret-cli.ts +251 -101
- package/src/cli/self-update.ts +22 -6
- package/src/cli/setup-cli.ts +3 -1
- package/src/cli/setup-keys.ts +91 -4
- package/src/cli/shell-confirmation-policy.ts +45 -0
- package/src/cli/sim-cli.ts +190 -8
- package/src/cli/sim-suggest-cli.ts +34 -0
- package/src/cli/tailscale-serve.ts +2 -2
- package/src/cli/task-launch-supervisor.ts +79 -0
- package/src/cli/tasks-cli.ts +185 -44
- package/src/cli/usage-cli.ts +1 -1
- package/src/cli/voice-nl-switch.ts +2 -1
- package/src/cli/voice-status.ts +2 -1
- package/src/clipboard/image-attachment.ts +21 -0
- package/src/clipboard/paste.ts +28 -0
- package/src/code-edit/apply.ts +1 -1
- package/src/code-edit/plan-tool.ts +2 -1
- package/src/code-edit/tools.ts +2 -1
- package/src/codex/setup.ts +2 -4
- package/src/compact/auto.ts +1 -1
- package/src/conductor/tools/classify-goal.ts +2 -1
- package/src/context-bus/context-now-surfaces.ts +9 -4
- package/src/context-bus/context-now.ts +315 -29
- package/src/context-bus/external-events.ts +22 -9
- package/src/control-plane/member-tokens.ts +38 -11
- package/src/control-plane/remote-primary-candidates.ts +58 -0
- package/src/control-plane/server.ts +12 -0
- package/src/conv-substrate/message-block.ts +11 -0
- package/src/core-turn/child-liveness-heartbeat.ts +4 -2
- package/src/core-turn/run-core-turn.ts +8 -6
- package/src/core-turn/run-goal-loop.ts +2 -1
- package/src/core-turn/types.ts +2 -1
- package/src/crawl-capabilities/contracts.ts +130 -0
- package/src/crawl-capabilities/graph-extract.ts +41 -0
- package/src/crawl-capabilities/graph-registry.ts +66 -0
- package/src/crawl-capabilities/reddit.ts +44 -0
- package/src/crawl-capabilities/scrap-extract.ts +11 -0
- package/src/dashboard/acp-active-model.ts +1 -1
- package/src/dashboard/acp-boot.ts +2 -1
- package/src/dashboard/auto-compact-runtime.ts +1 -1
- package/src/dashboard/browser-chord-runtime.ts +3 -13
- package/src/dashboard/chat/acp-chat.ts +1 -1
- package/src/dashboard/classic-sidetab-mission.ts +2 -1
- package/src/dashboard/classic-tui-dispatch.ts +22 -0
- package/src/dashboard/compact-surface-assembly.ts +0 -2
- package/src/dashboard/compact-surface-dispatch.ts +0 -5
- package/src/dashboard/compact-surface-inventory.ts +0 -1
- package/src/dashboard/compact-surface-runtime.ts +0 -2
- package/src/dashboard/first-screen-band.ts +2 -50
- package/src/dashboard/index.ts +258 -2168
- package/src/dashboard/input/chat-main-acp-dispatch.ts +0 -120
- package/src/dashboard/input/chat-main-interaction-opts.ts +0 -32
- package/src/dashboard/input/chat-main-plain-turn-runtime.ts +0 -14
- package/src/dashboard/input/chat-main-visibility.ts +0 -2
- package/src/dashboard/input/dashboard-default-tool-builders.ts +2 -1
- package/src/dashboard/input/dashboard-plain-turn-stream.ts +7 -97
- package/src/dashboard/input/dashboard-priority-key-route.ts +0 -56
- package/src/dashboard/input/dashboard-view-shortcuts.ts +2 -7
- package/src/dashboard/input/mouse-conversation-popup-runtime.ts +1 -1
- package/src/dashboard/input/mouse-modal-hit-runtime.ts +1 -1
- package/src/dashboard/input/mouse-modal-surface-runtime.ts +1 -1
- package/src/dashboard/input/mouse-mode-switch-runtime.ts +1 -1
- package/src/dashboard/input/mouse-pane-hit-runtime.ts +1 -1
- package/src/dashboard/input/mouse-picker-runtime.ts +2 -2
- package/src/dashboard/input/mouse-status-line.ts +134 -0
- package/src/dashboard/input/mouse-wiring-loader.ts +13 -0
- package/src/dashboard/input/mouse-wiring-types.ts +346 -0
- package/src/dashboard/input/mouse-wiring.ts +33 -897
- package/src/dashboard/input/slash-executor.ts +1 -24
- package/src/dashboard/modals/pane.ts +0 -1
- package/src/dashboard/optional-tool-spec-runtime.ts +5 -36
- package/src/dashboard/panes/nav.ts +1 -1
- package/src/dashboard/plan-board-runtime.ts +1 -4
- package/src/dashboard/plan-mode-toggle-action.ts +2 -4
- package/src/dashboard/plugin-route-adapter.ts +350 -0
- package/src/dashboard/preview-widget-runtime.ts +0 -12
- package/src/dashboard/runtime/approvers.ts +14 -0
- package/src/dashboard/runtime/tui-deploy-confirm-channel.ts +59 -0
- package/src/dashboard/scenario-tools-boot.ts +32 -0
- package/src/dashboard/setup-inline.ts +2 -7
- package/src/dashboard/shell-slash-runtime.ts +0 -1
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +32 -194
- package/src/dashboard/slash-runtime/decide-slash.ts +1 -60
- package/src/dashboard/slash-runtime/model-choices.ts +1 -1
- package/src/dashboard/slash-runtime/shell-slash.ts +0 -6
- package/src/dashboard/tool-catalog-observability.ts +2 -1
- package/src/dashboard/turn-lifecycle-runtime.ts +2 -1
- package/src/dashboard/widget-modal-popup.ts +2 -2
- package/src/debug/log.ts +17 -100
- package/src/debug/secret-redaction.ts +98 -0
- package/src/debug/tui-log-tag.ts +2 -7
- package/src/decisions/decide-slash.ts +60 -0
- package/src/decisions/decision-ledger.ts +84 -10
- package/src/decisions/decision-linear-projection.ts +2 -1
- package/src/decisions/discord-decision-cards.ts +1 -1
- package/src/decisions/telegram-decision-cards.ts +1 -1
- package/src/design/open-design-client.ts +2 -1
- package/src/design/screen-contrast.ts +1 -1
- package/src/discord-agent.ts +1 -1
- package/src/discord-self-message.ts +4 -4
- package/src/discord-slash-wire.ts +1 -1
- package/src/discord-test-runner.ts +2 -1
- package/src/discord-voice-wire.ts +1 -1
- package/src/discord.ts +1 -1
- package/src/dispatch/authored-goal-queue.ts +1 -4
- package/src/dispatch/continuation-turn-runner.ts +3 -2
- package/src/dispatch/dig-goal-armer.ts +1 -1
- package/src/dispatch/replay-goal-armer.ts +1 -1
- package/src/display/hit-target.ts +1 -1
- package/src/display/modal-types-registry.ts +2 -7
- package/src/domains/coo-admin-tool.ts +3 -2
- package/src/domains/core-tools.ts +59 -2
- package/src/domains/cron-match.ts +2 -1
- package/src/domains/dart.ts +3 -2
- package/src/domains/dashboard-data.ts +1 -1
- package/src/domains/dig-engine.ts +3 -2
- package/src/domains/elanous-data-dir.ts +7 -3
- package/src/domains/fact-check.ts +2 -1
- package/src/domains/finance-tools.ts +4 -3
- package/src/domains/finance.ts +1 -1
- package/src/domains/guardian-tick.ts +2 -1
- package/src/domains/kg-consolidate.ts +1 -1
- package/src/domains/kg-extract.ts +3 -2
- package/src/domains/knowledge.ts +10 -0
- package/src/domains/logs-tool.ts +2 -1
- package/src/domains/macro-store.ts +1 -1
- package/src/domains/market-posture-store.ts +13 -28
- package/src/domains/market-quote.ts +1 -1
- package/src/domains/morning-detail.ts +96 -1
- package/src/domains/morning-essential.ts +3 -2
- package/src/domains/morning-report.ts +2 -2
- package/src/domains/morning-synthesis.ts +1 -1
- package/src/domains/opportunity-analysis.ts +1 -1
- package/src/domains/ops-facts-tool.ts +2 -1
- package/src/domains/ops-status-tool.ts +2 -1
- package/src/domains/outbound-alert.ts +2 -1
- package/src/domains/regime-db-path.ts +3 -0
- package/src/domains/regime-store.ts +2 -3
- package/src/domains/release-tool.ts +5 -4
- package/src/domains/retro-report.ts +3 -2
- package/src/domains/schedule-health-report.ts +1 -1
- package/src/domains/schedule-manage-tool.ts +2 -1
- package/src/domains/schedule-registry.ts +1 -1
- package/src/domains/schedule-runner.ts +1 -1
- package/src/domains/schedule-state.ts +2 -1
- package/src/domains/se-build-tool.ts +2 -1
- package/src/domains/sec-13f.ts +1 -1
- package/src/domains/self-awareness-tool.ts +2 -1
- package/src/domains/session-query-tool.ts +2 -1
- package/src/domains/taste-capture.ts +1 -1
- package/src/domains/taste-propose.ts +1 -1
- package/src/domains/taste-sentiment.ts +1 -1
- package/src/domains/telegram-channels.ts +1 -1
- package/src/domains/telegram-kind-route.ts +1 -1
- package/src/domains/trade-decision-tool.ts +2 -1
- package/src/domains/trailing-stops.ts +2 -1
- package/src/domains/us-pulse.ts +3 -2
- package/src/domains/watch-default-scheduler.ts +2 -2
- package/src/domains/weekly-alpha.ts +3 -2
- package/src/drag-session-dashboard-wire.ts +1 -2
- package/src/error-report/report.ts +1 -1
- package/src/esc-abort-gate.ts +19 -1
- package/src/eval-prompt-cli.ts +78 -20
- package/src/execution-history.ts +4 -3
- package/src/expression/a11y.ts +1 -1
- package/src/expression/config/layers.ts +3 -11
- package/src/expression/i18n/types.ts +1 -1
- package/src/feedback/media.ts +10 -14
- package/src/finder/finder-modal.ts +1 -11
- package/src/fleet/cloud-burst-auto.ts +265 -0
- package/src/fleet/cloud-burst-runtime.ts +146 -0
- package/src/git-fs/git-cli.ts +508 -10
- package/src/git-fs/runner.ts +252 -1
- package/src/git-fs/worktree.ts +626 -41
- package/src/goals/slash.ts +0 -2
- package/src/graph-kinds/registry.ts +2 -2
- package/src/graph-runner/arg-open-proposal.ts +171 -0
- package/src/graph-runner/arg-supervisor.ts +281 -0
- package/src/graph-runner/capabilities.ts +243 -0
- package/src/graph-runner/capability-providers/market-data/INVENTORY-1109.md +48 -0
- package/src/graph-runner/capability-providers/market-data/README.md +25 -0
- package/src/graph-runner/capability-providers/market-data/arg-stock-all-providers-sim.ts +83 -0
- package/src/graph-runner/capability-providers/market-data/arg-stock-sim.ts +179 -0
- package/src/graph-runner/capability-providers/market-data/coingecko.ts +20 -0
- package/src/graph-runner/capability-providers/market-data/contract.ts +69 -0
- package/src/graph-runner/capability-providers/market-data/ecos.ts +38 -0
- package/src/graph-runner/capability-providers/market-data/eodhd.ts +56 -0
- package/src/graph-runner/capability-providers/market-data/finnhub.ts +49 -0
- package/src/graph-runner/capability-providers/market-data/fred.ts +28 -0
- package/src/graph-runner/capability-providers/market-data/free-declarations.ts +49 -0
- package/src/graph-runner/capability-providers/market-data/index.ts +14 -0
- package/src/graph-runner/capability-providers/market-data/kis.ts +118 -0
- package/src/graph-runner/capability-providers/market-data/kr-daily-sources.ts +42 -0
- package/src/graph-runner/capability-providers/market-data/krx.ts +54 -0
- package/src/graph-runner/capability-providers/market-data/market-secrets.ts +14 -0
- package/src/graph-runner/capability-providers/market-data/omni-sources.ts +133 -0
- package/src/graph-runner/capability-providers/market-data/registry.ts +85 -0
- package/src/graph-runner/capability-providers/market-data/stock-common.ts +54 -0
- package/src/graph-runner/capability-providers/market-data/toss.ts +124 -0
- package/src/graph-runner/capability-providers/market-data/upbit.ts +20 -0
- package/src/graph-runner/capability-providers/notify.ts +138 -0
- package/src/graph-runner/declared-heal-edges.ts +158 -0
- package/src/graph-runner/graph-approval-card.ts +6 -5
- package/src/graph-runner/graph-cli.ts +93 -6
- package/src/graph-runner/graph-events.ts +202 -0
- package/src/graph-runner/graph-grow-llm.ts +2 -1
- package/src/graph-runner/graph-instance.ts +254 -0
- package/src/graph-runner/graph-manifest-loader.ts +254 -0
- package/src/graph-runner/graph-notify.ts +1 -1
- package/src/graph-runner/graph-subscriptions.ts +112 -0
- package/src/graph-runner/graph-tick.ts +103 -27
- package/src/graph-runner/in-process-registry.ts +14 -0
- package/src/graph-runner/plugin-graph-entry.ts +120 -0
- package/src/graph-runner/provider-context.ts +28 -0
- package/src/graph-runner/release-gate-cutover-policy.ts +10 -0
- package/src/graph-runner/release-graph-manifest.ts +237 -0
- package/src/graph-runner/runner-primitives.ts +16 -0
- package/src/graph-runner/runner-routing.ts +136 -0
- package/src/graph-runner/runner-types.ts +243 -0
- package/src/graph-runner/runner.ts +2393 -334
- package/src/graph-runner/unit-shape.ts +76 -0
- package/src/graph-v2/lower.ts +514 -0
- package/src/graph-v2/n8n-import.ts +105 -0
- package/src/graph-wizard/generate.ts +1 -4
- package/src/graph-wizard/steps.ts +2 -2
- package/src/grok/credential.ts +3 -1
- package/src/grok.ts +1 -1
- package/src/grounding/sources-cli.ts +2 -1
- package/src/guardian/host-lease-policy.ts +21 -0
- package/src/guardian/host-lease.ts +219 -0
- package/src/harness/browser-verify.ts +1 -1
- package/src/harness/dispatch-backpressure.ts +1 -1
- package/src/harness/generic-skill-executor.ts +2 -4
- package/src/harness/grounding/mission-grounding-ladder.ts +346 -0
- package/src/harness/harness-cli-command.ts +1 -53
- package/src/harness/harness-salvage-cli.ts +1 -1
- package/src/harness/harness-substrate-default.ts +6 -2
- package/src/harness/helper-repair.ts +2 -1
- package/src/harness/launch-stamp.ts +2 -1
- package/src/harness/nested-elanous-policy.ts +1 -1
- package/src/harness/pod-memory-policy.ts +188 -0
- package/src/harness/repository-name.ts +2 -1
- package/src/hitl/confirm.ts +3 -0
- package/src/hooks/dispatch.ts +2 -2
- package/src/hooks/receiver.ts +2 -1
- package/src/hq/fence.ts +1 -1
- package/src/hq/hq.ts +25 -1
- package/src/hq/promote.ts +1 -1
- package/src/hq/repo-maintenance-schedule.ts +60 -0
- package/src/hq/repo-maintenance.ts +344 -0
- package/src/hq/seats.ts +34 -20
- package/src/hq/transfer.ts +1 -1
- package/src/import/apply.ts +1 -1
- package/src/index.ts +123 -128
- package/src/input-core/audit-tail.ts +1 -1
- package/src/input-core/slash-filter.ts +32 -0
- package/src/instance/child-scope.ts +2 -1
- package/src/instance/test-write-guard.ts +3 -3
- package/src/instance-identity.ts +2 -2
- package/src/intake-plane/absorb-extract.ts +83 -0
- package/src/intake-plane/adapters/discord-ambient.ts +1 -1
- package/src/intake-plane/adapters/telegram-ambient.ts +1 -1
- package/src/intake-plane/ambient.ts +1 -1
- package/src/intake-plane/core.ts +32 -0
- package/src/intake-plane/discord-seat-work.ts +2 -1
- package/src/intake-plane/event-state.ts +61 -0
- package/src/intake-plane/items.ts +92 -37
- package/src/intake-plane/linear-secretary-runtime.ts +4 -3
- package/src/intake-plane/requirement-funnel.ts +4 -3
- package/src/intake-plane/route.ts +5 -62
- package/src/intake-plane/runtime-callables.ts +1 -1
- package/src/intake-plane/slash.ts +2 -1
- package/src/intake-plane/telegram-seat-work.ts +2 -1
- package/src/intake-plane/wish-benchmark-ledger.ts +91 -11
- package/src/intake-plane/wish-reply.ts +1 -1
- package/src/intelligence-map/model-watch-mission.ts +2 -2
- package/src/intelligence-map/tools/intelligence-map.ts +2 -1
- package/src/intelligence-map/tools/route-to-model.ts +2 -1
- package/src/keybindings.ts +2 -9
- package/src/knowhow/pack.ts +1 -4
- package/src/knowledge/tools/knowledge-query.ts +2 -1
- package/src/knowledge/tools/knowledge-write.ts +2 -1
- package/src/light-cli.ts +5 -0
- package/src/llm/bedrock-provider.ts +2 -2
- package/src/llm/difficulty.ts +2 -1
- package/src/llm/hq-proxy-provider.ts +84 -0
- package/src/llm/judge-layer.ts +2 -1
- package/src/llm/model-defaults.ts +2 -1
- package/src/llm/output-budget.ts +19 -0
- package/src/llm/provider-capabilities.ts +80 -0
- package/src/llm/provider-credentials.ts +44 -3
- package/src/llm/provider-detect.ts +2 -1
- package/src/llm/role-llm-cli.ts +2 -7
- package/src/llm/role-stream.ts +57 -0
- package/src/llm/route-decision.ts +1 -1
- package/src/llm/runtime-model-family.ts +1 -1
- package/src/llm/stream-fallback.ts +38 -0
- package/src/llm/stream-text.ts +8 -0
- package/src/llm/subscription-first.ts +4 -3
- package/src/llm/tool-spec.ts +45 -0
- package/src/llm/usable-llm.ts +2 -1
- package/src/llm/wire/harmony.ts +365 -0
- package/src/llm/zai-coding-plan.ts +1 -1
- package/src/llm.ts +174 -534
- package/src/loops/agent-reply.ts +4 -2
- package/src/loops/budget.ts +1 -1
- package/src/loops/checker-contract.ts +39 -0
- package/src/loops/checker.ts +6 -56
- package/src/loops/fixtures/checker-registry-cycle/checker.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/helper.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/registry.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/schedule-checker.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/schedule-due.js +1 -0
- package/src/loops/graph-trigger-dispatch-lease.ts +227 -0
- package/src/loops/graph-trigger-dispatch.ts +95 -0
- package/src/loops/msg-address.ts +29 -9
- package/src/loops/msg-wake.ts +299 -45
- package/src/loops/orchestrator/coordinator-shadow.ts +4 -1
- package/src/loops/orchestrator/inbox-once.ts +1 -1
- package/src/loops/orchestrator/inbox.ts +1 -1
- package/src/loops/orchestrator/overlap.ts +53 -12
- package/src/loops/orchestrator/seat-share.ts +1 -1
- package/src/loops/orchestrator/sim-impact-audit.ts +67 -0
- package/src/loops/orchestrator/tick.ts +129 -10
- package/src/loops/registry-contract.ts +39 -0
- package/src/loops/registry.ts +27 -36
- package/src/loops/schedule-due.ts +18 -0
- package/src/loops/seat-registry.ts +72 -0
- package/src/loops/train/decisions.ts +242 -0
- package/src/loops/train/hotspot-radius-ordering.ts +63 -0
- package/src/loops/train/worker-lifecycle.ts +228 -0
- package/src/maturity/bot-command-maturity.ts +1 -1
- package/src/maturity/feature-maturity.ts +15 -49
- package/src/maturity/tui-slash-maturity.ts +3 -5
- package/src/mcp/mcp-oauth.ts +168 -145
- package/src/mcp/server.ts +1 -1
- package/src/memory-intent.ts +13 -0
- package/src/memory.ts +5 -1
- package/src/model-tier/auto-route.ts +2 -2
- package/src/model-tier/llm-tier-map.ts +4 -2
- package/src/model-tier/review-effort.ts +1 -1
- package/src/model-tier/setup-suggest.ts +1 -1
- package/src/model-tier/simple-question-fast-route.ts +24 -0
- package/src/model-tier/tier-resolver.ts +1 -1
- package/src/model-tier/turn-tier.ts +2 -2
- package/src/models/prompts.ts +1 -1
- package/src/mouse-action-recipes.ts +5 -362
- package/src/msg/msg-hook.ts +115 -0
- package/src/msg/msg-post-office.ts +145 -11
- package/src/msg/msg-sse-server.ts +45 -1
- package/src/msg/msg-store.ts +22 -10
- package/src/mss/identity-store.ts +62 -0
- package/src/mss/log-enrich.ts +1 -1
- package/src/mss/logging/diagnostic-sink.ts +90 -0
- package/src/mss/logging/gate-correlation.ts +110 -0
- package/src/mss/logging/horizon-watch.ts +4 -4
- package/src/mss/logging/log-federation.ts +19 -9
- package/src/mss/logging/log-safety-net.ts +7 -7
- package/src/mss/logging/log-store.ts +44 -22
- package/src/mss/logging/sinks/otel-genai-sink.ts +2 -2
- package/src/mss/trace-context.ts +1 -1
- package/src/mss/ulid.ts +36 -0
- package/src/mss/uri/builder.ts +1 -1
- package/src/native-tool-catalog.ts +81 -7
- package/src/nexus/api/app-host-scoped-resolver.ts +11 -0
- package/src/nexus/api/audio-stt.ts +15 -13
- package/src/nexus/api/autopilot-api.ts +1 -68
- package/src/nexus/api/board-api.ts +437 -0
- package/src/nexus/api/briefings-api.ts +108 -0
- package/src/nexus/api/channel-ask-op.ts +3 -38
- package/src/nexus/api/chat-tier-intent.ts +2 -1
- package/src/nexus/api/config-model-tier.ts +2 -6
- package/src/nexus/api/consult-requests.ts +2 -1
- package/src/nexus/api/design-check.ts +1 -1
- package/src/nexus/api/discord-trigger-bot.ts +1 -1
- package/src/nexus/api/event-bus.ts +17 -0
- package/src/nexus/api/events.ts +11 -1
- package/src/nexus/api/field-uploads.ts +73 -0
- package/src/nexus/api/graph-approvals-feed.ts +1 -1
- package/src/nexus/api/graph-route-allowlist.ts +8 -0
- package/src/nexus/api/grid.ts +1 -1
- package/src/nexus/api/grokbot-trigger-bot.ts +1 -1
- package/src/nexus/api/hq-llm-proxy.ts +154 -0
- package/src/nexus/api/http-server.ts +500 -87
- package/src/nexus/api/ingest-token.ts +3 -46
- package/src/nexus/api/intake-route.ts +1 -1
- package/src/nexus/api/llm-rotation.ts +2 -11
- package/src/nexus/api/mcp-widget-call-route.ts +22 -20
- package/src/nexus/api/member-event-store.ts +205 -0
- package/src/nexus/api/merge-approvals.ts +1 -1
- package/src/nexus/api/meta-api.ts +12 -1
- package/src/nexus/api/next-fluent-wiring.ts +1 -1
- package/src/nexus/api/openrouter-oauth.ts +184 -0
- package/src/nexus/api/operator.ts +1 -1
- package/src/nexus/api/ops-api.ts +154 -9
- package/src/nexus/api/ops-seats-sources.ts +1 -1
- package/src/nexus/api/outbound-report.ts +1 -1
- package/src/nexus/api/private-file-lock.ts +61 -0
- package/src/nexus/api/public-routes.ts +89 -2
- package/src/nexus/api/resource-ledger.ts +10 -5
- package/src/nexus/api/scraps.ts +154 -0
- package/src/nexus/api/seat-requests.ts +1 -1
- package/src/nexus/api/setup-child-llm.ts +8 -18
- package/src/nexus/api/setup-codex-login.ts +15 -3
- package/src/nexus/api/setup-credentials.fixture.ts +12 -0
- package/src/nexus/api/setup-credentials.ts +144 -0
- package/src/nexus/api/setup-obsidian-skills.ts +2 -1
- package/src/nexus/api/static-app.ts +8 -7
- package/src/nexus/api/telegram-trigger-bot.ts +5 -3
- package/src/nexus/api/tls-edge.ts +23 -0
- package/src/nexus/api/ux-sim-devices.ts +1 -4
- package/src/nexus/api/worktrees.ts +1 -1
- package/src/nexus/apps/app-actions.ts +361 -0
- package/src/nexus/apps/app-auth.ts +204 -0
- package/src/nexus/apps/app-contract.ts +151 -11
- package/src/nexus/apps/app-credential-capability.ts +14 -0
- package/src/nexus/apps/app-db-backup.ts +443 -0
- package/src/nexus/apps/app-db.ts +984 -0
- package/src/nexus/apps/app-deployment-owner.ts +28 -0
- package/src/nexus/apps/app-github-mirror.ts +224 -0
- package/src/nexus/apps/app-host.ts +456 -25
- package/src/nexus/apps/app-jobs.ts +347 -0
- package/src/nexus/apps/app-lifecycle-ledger.race-worker.ts +12 -0
- package/src/nexus/apps/app-lifecycle-ledger.ts +245 -0
- package/src/nexus/apps/app-promote.ts +116 -0
- package/src/nexus/apps/app-publish.ts +231 -0
- package/src/nexus/apps/app-realtime.ts +224 -0
- package/src/nexus/apps/app-screen-render.ts +207 -0
- package/src/nexus/apps/app-simulate.ts +5 -5
- package/src/nexus/apps/app-simulation-db.ts +113 -0
- package/src/nexus/apps/app-simulation-route.ts +104 -0
- package/src/nexus/apps/app-simulation-runner.ts +392 -0
- package/src/nexus/apps/app-simulation.ts +103 -0
- package/src/nexus/apps/app-site-deploy.ts +321 -0
- package/src/nexus/apps/app-source-snapshot.ts +385 -0
- package/src/nexus/apps/app-storage-route.ts +127 -0
- package/src/nexus/apps/app-storage.ts +416 -0
- package/src/nexus/apps/app-upload.ts +49 -0
- package/src/nexus/apps/console-address.ts +41 -0
- package/src/nexus/apps/drive-contract.ts +59 -0
- package/src/nexus/apps/funnel-observe.ts +194 -0
- package/src/nexus/apps/higgsfield-backend.ts +200 -0
- package/src/nexus/apps/higgsfield-cli-session.ts +157 -0
- package/src/nexus/apps/made-with-badge.ts +216 -0
- package/src/nexus/boot/register-mcp-clients.ts +1 -1
- package/src/nexus/config/secrets/app-secret-ledger.ts +241 -0
- package/src/nexus/config/secrets/cred-health.ts +58 -0
- package/src/nexus/config/secrets/cred-owner.ts +116 -0
- package/src/nexus/config/secrets/cred-slot-schema.ts +27 -0
- package/src/nexus/config/secrets/cred-slot-wizard.ts +37 -0
- package/src/nexus/config/secrets/cred-slots.ts +53 -0
- package/src/nexus/config/secrets/file-backend.ts +239 -10
- package/src/nexus/config/secrets/index.ts +80 -2
- package/src/nexus/config/secrets/registry.ts +71 -5
- package/src/nexus/config/secrets/types.ts +8 -0
- package/src/nexus/config/secrets.ts +8 -0
- package/src/nexus/config/types.ts +4 -0
- package/src/nexus/daemon-endpoint.ts +2 -1
- package/src/nexus/index.ts +449 -21
- package/src/nexus/members/google-signin.ts +157 -0
- package/src/nexus/members/member-store.ts +658 -0
- package/src/nexus/members/member-token-api.ts +66 -0
- package/src/nexus/members/members-api.ts +531 -0
- package/src/nexus/outbound/format.ts +2 -0
- package/src/nexus/outbound/grokbot-adapter.ts +1 -1
- package/src/nexus/outbound/router.ts +7 -4
- package/src/nexus/pwa-resolution.ts +116 -0
- package/src/nexus/setup-status.ts +67 -2
- package/src/nexus/state/state.ts +8 -0
- package/src/nexus/static-dir-resolve.ts +1 -1
- package/src/notifications/bell-modal.ts +2 -0
- package/src/notifications/outbound-boot.ts +1 -1
- package/src/notifications/store.ts +2 -1
- package/src/oauth/codex-account-store.ts +27 -15
- package/src/oauth/codex-browser-login.ts +16 -0
- package/src/oauth/codex-owner-mirror.ts +44 -10
- package/src/oauth/codex.ts +1 -0
- package/src/oauth/provider-access-mirror.ts +46 -0
- package/src/oauth/store.ts +102 -10
- package/src/obsidian/vault-write-guard.ts +1 -1
- package/src/onboarding/first-chat-gate.ts +1 -1
- package/src/onboarding/first-run.ts +2 -4
- package/src/onboarding/help/llm.md +13 -0
- package/src/onboarding/key-setup.ts +1 -1
- package/src/onboarding/summary.ts +1 -1
- package/src/onboarding/web-first.ts +13 -8
- package/src/onboarding.ts +2 -5
- package/src/ops/overview-cache.ts +4 -3
- package/src/org/seat-budget.ts +2 -1
- package/src/org/stall-escalation.ts +1 -1
- package/src/plan-mode/tool-enter.ts +5 -3
- package/src/plan-mode/tool-exit.ts +3 -2
- package/src/platform/host-id.ts +1 -1
- package/src/plugin-hooks/events.ts +2 -1
- package/src/plugin-missions/llm-tools.ts +2 -1
- package/src/plugin-routes/llm-tools.ts +2 -1
- package/src/plugin-workflows/llm-tools.ts +2 -1
- package/src/plugins/core/declared-handler.ts +51 -0
- package/src/plugins/core/host.ts +221 -146
- package/src/plugins/core/manifest.ts +61 -1
- package/src/plugins/core/plugin-yaml.ts +157 -0
- package/src/plugins/core/route-adapter.ts +215 -0
- package/src/plugins/core/trust-store.ts +4 -3
- package/src/plugins/core/types.ts +7 -0
- package/src/plugins/install/plugin-install.ts +30 -3
- package/src/plugins/maker/plugin-maker.ts +1 -1
- package/src/policy/llm-policy.ts +2 -1
- package/src/pr-tool/census.ts +32 -10
- package/src/primitives/guards.ts +48 -0
- package/src/prompt-cache/anthropic.ts +2 -1
- package/src/prompt-cache/types.ts +2 -0
- package/src/prompt-enhance/enhance.ts +8 -4
- package/src/prompt-library/chat-conciseness.ts +1 -1
- package/src/prompt-library/registry.ts +1 -1
- package/src/provider-summary.ts +2 -1
- package/src/pty-shell/herdr-prompt.ts +62 -18
- package/src/pty-shell/pty-control-ipc.ts +5 -2
- package/src/registry/discovery/config.ts +2 -1
- package/src/relay/app-kill-switch.ts +310 -0
- package/src/relay/channel.ts +5 -0
- package/src/relay/host-connector.ts +577 -0
- package/src/relay/mux.ts +43 -12
- package/src/relay/relay-cli.ts +131 -6
- package/src/relay/relay-member-verifier.ts +36 -0
- package/src/relay/relay-server.ts +590 -20
- package/src/release-loop/auto-start.ts +32 -7
- package/src/release-loop/checklist.ts +25 -9
- package/src/release-loop/cloud-vm-adapter.ts +64 -0
- package/src/release-loop/feature-store.ts +1 -1
- package/src/release-loop/gate-host-reservation.ts +71 -2
- package/src/release-loop/gate-shard-ledger.ts +195 -6
- package/src/release-loop/gate-shards.ts +85 -15
- package/src/release-loop/gate-timeout-owner-cell.ts +266 -0
- package/src/release-loop/graph-event-adapters.ts +172 -0
- package/src/release-loop/incident-policy-handler.ts +78 -0
- package/src/release-loop/knowhow/pwa-host-heal.ts +92 -0
- package/src/release-loop/light-rc.ts +160 -15
- package/src/release-loop/macrophage-heal-node.ts +309 -0
- package/src/release-loop/macrophage-heal.ts +238 -0
- package/src/release-loop/macrophage-incident-recovery.ts +132 -0
- package/src/release-loop/macrophage-repair-ladder.ts +246 -0
- package/src/release-loop/macrophage-safe-cleanup.ts +150 -0
- package/src/release-loop/merged-pr-checklist.ts +151 -1
- package/src/release-loop/op-channel.ts +117 -0
- package/src/release-loop/placement-ceo-load.ts +72 -0
- package/src/release-loop/placement-config.ts +28 -0
- package/src/release-loop/placement.ts +10 -85
- package/src/release-loop/rehearsal-cloud-host.ts +190 -0
- package/src/release-loop/rehearsal.ts +183 -35
- package/src/release-loop/release-failure-attribution.ts +410 -0
- package/src/release-loop/release-note.ts +1 -4
- package/src/release-loop/release-schedule.ts +6 -3
- package/src/release-loop/rubric.ts +1 -1
- package/src/release-loop/stage-mail.ts +16 -11
- package/src/release-loop/waiver-events.ts +328 -0
- package/src/repl/agent-turn.ts +3 -2
- package/src/repl/dispatch-meta.ts +2 -6
- package/src/repl/index.ts +218 -16
- package/src/repl/next-tui-message-blocks.ts +71 -0
- package/src/repl/shell-snapshot-router.ts +55 -0
- package/src/research/axis-fanout.ts +13 -13
- package/src/research/bloom-exemplars.ts +1 -3
- package/src/research/edge-decision.ts +1 -4
- package/src/research/lenses/working-backwards.ts +2 -9
- package/src/research/plugin-discovery.ts +1 -1
- package/src/research-bridge/crawl.ts +5 -0
- package/src/research-bridge/index.ts +5 -0
- package/src/resource-ledger/guardian-host-lease-heartbeat-worker.ts +27 -0
- package/src/resource-ledger/guardian-reconcile.ts +4 -1
- package/src/resource-ledger/host-readiness.ts +27 -0
- package/src/resource-ledger/resource-ledger.ts +336 -6
- package/src/retro/daily.ts +1 -1
- package/src/roles/machine-name.ts +3 -8
- package/src/roles/machine-profile-contract.ts +8 -0
- package/src/roles/machine-profile.ts +22 -4
- package/src/roles/role-lease-read.ts +1 -0
- package/src/runtime-identity.ts +68 -0
- package/src/scenarios/catalog.ts +1 -4
- package/src/scenarios/shorthand.ts +1 -4
- package/src/seat-dispatch/ceo-intent.ts +1 -1
- package/src/seat-loop/seat-loop.ts +2 -1
- package/src/seat-loop/seat-report.ts +2 -1
- package/src/self-dev/app-scratch-bootstrap.ts +47 -0
- package/src/self-dev/decompose.ts +2 -5
- package/src/self-dev/dev-cli.ts +18 -4
- package/src/self-dev/dev-pipeline.ts +29 -4
- package/src/self-dev/draft-sweep.ts +1 -2
- package/src/self-dev/entrance-baseline.ts +0 -52
- package/src/self-dev/review-provider-fallback.ts +1 -1
- package/src/self-dev/run-record-mirror.ts +1 -1
- package/src/self-dev/run-store-checkpoint.ts +53 -0
- package/src/self-dev/run-store-contract.ts +56 -0
- package/src/self-dev/run-store.ts +11 -110
- package/src/self-dev/run-supervisor.ts +131 -1
- package/src/self-dev/run-types.ts +4 -1
- package/src/self-dev/self-orchestrate-runtime.ts +3 -2
- package/src/self-dev/shard-run.ts +29 -7
- package/src/self-dev/sim-impact-wording.ts +51 -0
- package/src/self-dev/supervisor-verdict-edges.ts +1 -0
- package/src/self-implement/auto-open-pr.ts +1 -1
- package/src/self-implement/budget-gate.ts +2 -6
- package/src/self-implement/child-llm-preference.ts +1 -7
- package/src/self-implement/context-capsule-store.ts +1 -4
- package/src/self-implement/execution-clarification.ts +1 -1
- package/src/self-implement/follow-up-goals.ts +1 -1
- package/src/self-implement/gate-cli.ts +251 -4
- package/src/self-implement/gate-receipt-registry.ts +95 -4
- package/src/self-implement/gate-remote.ts +23 -6
- package/src/self-implement/goal-author-clarification.ts +2 -4
- package/src/self-implement/goal-author-cli.ts +1 -1
- package/src/self-implement/goal-author-decompose.ts +10 -13
- package/src/self-implement/goal-author.ts +38 -20
- package/src/self-implement/goal-documents-dir.ts +2 -1
- package/src/self-implement/graph-authority.ts +1 -1
- package/src/self-implement/graph-overlay-condition.ts +1 -1
- package/src/self-implement/graph-unit-flatten.ts +8 -1
- package/src/self-implement/graph-unit-resolver.ts +64 -16
- package/src/self-implement/graph-yaml.ts +404 -17
- package/src/self-implement/headless-elanous-driver.ts +21 -6
- package/src/self-implement/heal-intake.ts +1 -1
- package/src/self-implement/host-regate.ts +7 -3
- package/src/self-implement/l8-merge-queue.ts +75 -1
- package/src/self-implement/merge-train.ts +294 -28
- package/src/self-implement/observe-only.ts +1 -1
- package/src/self-implement/orchestrator.ts +1 -1
- package/src/self-implement/pod-warm-pool-profile.ts +64 -5
- package/src/self-implement/run-checkpoint.ts +2 -2
- package/src/self-implement/run-ledger-archive.ts +252 -0
- package/src/self-implement/run-ledger-compact.ts +6 -248
- package/src/self-implement/run-ledger-paths.ts +27 -0
- package/src/self-implement/run-ledger.ts +4 -19
- package/src/self-implement/seams.ts +2 -1
- package/src/self-implement/self-implement-cli.ts +1 -1
- package/src/self-implement/self-implement-runtime.ts +3 -2
- package/src/self-implement/stop-autoheal.ts +12 -2
- package/src/self-implement/train-gate-receipt.ts +6 -2
- package/src/session/channel-op-reply-route.ts +12 -0
- package/src/session/chat.ts +50 -14
- package/src/session/compact-session.ts +1 -1
- package/src/session/index.ts +3 -0
- package/src/session/request-size-guard.ts +2 -1
- package/src/session/search-index.ts +16 -4
- package/src/session/session-context.ts +3 -1
- package/src/session-runtime/index.ts +16 -7
- package/src/session-runtime/tier-flip.ts +70 -24
- package/src/setup/cred-import-scan.ts +307 -0
- package/src/setup/llm-env-detect.ts +1 -1
- package/src/setup/service-key-catalog.ts +13 -6
- package/src/setup/service-keys.ts +5 -3
- package/src/shell-runner/index.ts +0 -2
- package/src/sidetab-core/model.ts +2 -1
- package/src/signal/lifecycle-record.ts +1 -8
- package/src/sim-world-device-catalog-history.json +3747 -0
- package/src/skills/connect.ts +2 -1
- package/src/skills/runner.ts +35 -215
- package/src/skills/shared-agent-skill-roots.ts +0 -3
- package/src/skills/skill-manifest.ts +211 -0
- package/src/skills/tools/acp-session.ts +3 -2
- package/src/skills/tools/agent-handoff.ts +2 -1
- package/src/skills/tools/agent-reply.ts +2 -1
- package/src/skills/tools/agent-room.ts +2 -1
- package/src/skills/tools/agent.ts +2 -1
- package/src/skills/tools/announce-completion.ts +2 -1
- package/src/skills/tools/api-call.ts +2 -1
- package/src/skills/tools/ast-grep.ts +2 -1
- package/src/skills/tools/browser-iphone.ts +2 -1
- package/src/skills/tools/budget.ts +2 -1
- package/src/skills/tools/capture-inject.ts +2 -1
- package/src/skills/tools/capture-source.ts +2 -1
- package/src/skills/tools/context.ts +2 -1
- package/src/skills/tools/control.ts +2 -1
- package/src/skills/tools/dashboard-config.ts +2 -1
- package/src/skills/tools/dashboard-slash.ts +2 -1
- package/src/skills/tools/dashboard-state.ts +2 -1
- package/src/skills/tools/dashboard-view.ts +5 -16
- package/src/skills/tools/dashboard-widget.ts +2 -1
- package/src/skills/tools/dev-harness.ts +2 -1
- package/src/skills/tools/edit.ts +2 -1
- package/src/skills/tools/glob.ts +2 -1
- package/src/skills/tools/grep.ts +3 -2
- package/src/skills/tools/index.ts +2 -1
- package/src/skills/tools/input-policy.ts +2 -1
- package/src/skills/tools/kr-flow.ts +2 -1
- package/src/skills/tools/lane-handoff.ts +2 -1
- package/src/skills/tools/list-dir.ts +2 -1
- package/src/skills/tools/llm-install.ts +2 -1
- package/src/skills/tools/llm-manager.ts +2 -1
- package/src/skills/tools/lsp/index.ts +3 -2
- package/src/skills/tools/lsp/pool.ts +1 -1
- package/src/skills/tools/lsp/server-registry.ts +2 -2
- package/src/skills/tools/market-quote.ts +2 -1
- package/src/skills/tools/mermaid-syntax.ts +2 -1
- package/src/skills/tools/mermaid.ts +2 -1
- package/src/skills/tools/msg-ask.ts +2 -1
- package/src/skills/tools/omni-search.ts +2 -1
- package/src/skills/tools/ops-ledger.ts +2 -1
- package/src/skills/tools/persistent-grounding.ts +2 -1
- package/src/skills/tools/phone-adb.ts +497 -0
- package/src/skills/tools/pty.ts +2 -1
- package/src/skills/tools/read.ts +2 -1
- package/src/skills/tools/relay-shell.ts +2 -1
- package/src/skills/tools/route.ts +2 -1
- package/src/skills/tools/run-tests.ts +2 -1
- package/src/skills/tools/schedule-wakeup.ts +2 -3
- package/src/skills/tools/set-hint.ts +2 -1
- package/src/skills/tools/shell-runner.ts +2 -1
- package/src/skills/tools/shell.ts +3 -2
- package/src/skills/tools/solve-mission.ts +2 -1
- package/src/skills/tools/spawn-coding-agent-headless.ts +2 -1
- package/src/skills/tools/terminal-matrix.ts +2 -1
- package/src/skills/tools/terminal-modal-inject.ts +2 -1
- package/src/skills/tools/terminal-modal.ts +2 -1
- package/src/skills/tools/theme-control.ts +2 -1
- package/src/skills/tools/tool-search-route.ts +5 -3
- package/src/skills/tools/tool-search-spec.ts +4 -2
- package/src/skills/tools/tool-search.ts +96 -3
- package/src/skills/tools/tty-snapshot.ts +2 -1
- package/src/skills/tools/web-search.ts +2 -1
- package/src/skills/tools/webfetch.ts +2 -1
- package/src/skills/tools/widget-inspector.ts +2 -1
- package/src/skills/tools/write.ts +2 -1
- package/src/skills/tools/youtube-transcript.ts +2 -1
- package/src/state/bridges/index.ts +0 -2
- package/src/state/bridges/plugin-host.ts +60 -29
- package/src/state/index.ts +0 -1
- package/src/status/bar.ts +0 -43
- package/src/status/popups.ts +2 -3
- package/src/status/status-provider-info.ts +2 -1
- package/src/steward/directive.ts +1 -1
- package/src/steward/rejudge-tick.ts +1 -1
- package/src/steward/triage.ts +1 -1
- package/src/storage/file-lock.ts +6 -3
- package/src/storage/object-store.ts +47 -4
- package/src/storage/s3.ts +1 -1
- package/src/surface/llm-tools.ts +4 -3
- package/src/task-agent/entrance-shadow.ts +1 -4
- package/src/task-agent/map-reduce.ts +103 -12
- package/src/task-agent/map-run-ledger.ts +113 -0
- package/src/task-agent/parent-host.ts +37 -4
- package/src/task-agent/rejudge-on-head.ts +1 -1
- package/src/task-agent/task-hand.ts +1 -1
- package/src/task-agent/task-parent-role-llm.ts +2 -1
- package/src/task-orchestrator/boot.ts +1 -1
- package/src/task-orchestrator/external-policy.ts +1 -1
- package/src/task-orchestrator/runtimes/create.ts +2 -1
- package/src/task-orchestrator/runtimes/decompose.ts +2 -1
- package/src/task-orchestrator/runtimes/dispatch.ts +2 -1
- package/src/task-orchestrator/runtimes/get.ts +2 -1
- package/src/task-orchestrator/runtimes/kill.ts +2 -1
- package/src/task-orchestrator/runtimes/list.ts +2 -1
- package/src/task-orchestrator/runtimes/update.ts +2 -1
- package/src/task-orchestrator/surfaces/pod-command-job.ts +265 -26
- package/src/task-orchestrator/surfaces/pod-config-snapshot.ts +1 -1
- package/src/task-orchestrator/surfaces/pod-gate-deps.ts +19 -2
- package/src/task-orchestrator/surfaces/pod-gate-volume-ref.ts +308 -0
- package/src/task-orchestrator/surfaces/pod-host-acp-review.ts +1 -1
- package/src/task-orchestrator/surfaces/pod-image-source.ts +18 -3
- package/src/task-orchestrator/surfaces/pod-install-slots.ts +110 -0
- package/src/task-orchestrator/surfaces/pod-lease.ts +6 -1
- package/src/task-orchestrator/surfaces/pod-pool.ts +170 -36
- package/src/task-orchestrator/surfaces/pod-si-warm-host.ts +18 -3
- package/src/task-orchestrator/surfaces/pod-si-warm-provider.ts +90 -11
- package/src/task-orchestrator/surfaces/pod-si-warm-runner.ts +10 -1
- package/src/task-orchestrator/surfaces/pod-source-receive.ts +41 -17
- package/src/task-orchestrator/surfaces/pod-warm-provenance.ts +79 -0
- package/src/task-orchestrator/surfaces/pod-warm-switch.ts +176 -5
- package/src/task-orchestrator/surfaces/pod-warm-worker-pod.ts +25 -13
- package/src/task-orchestrator/surfaces/pod-warm-worker-protocol.ts +10 -0
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +702 -37
- package/src/task-orchestrator/surfaces/pod-warm-worker-runtime.ts +21 -1
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +40 -15
- package/src/task-orchestrator/surfaces/warm-host-probe.ts +31 -0
- package/src/task-orchestrator/tox-loop.ts +1 -1
- package/src/telegram-agent.ts +1 -1
- package/src/telegram-away-command.ts +6 -5
- package/src/telegram-commands.ts +45 -2
- package/src/telegram-project-command.ts +1 -1
- package/src/telegram-report.ts +9 -2
- package/src/telegram-run.ts +1 -1
- package/src/telegram-test-runner.ts +2 -1
- package/src/telegram.ts +80 -17
- package/src/test-utils/temp-dir-cleanup.ts +45 -0
- package/src/time/calendar.ts +70 -0
- package/src/time/clock.ts +21 -0
- package/src/time/format-core.ts +44 -0
- package/src/time/format.ts +7 -227
- package/src/time/time-zone.ts +95 -0
- package/src/tool-router/index.ts +311 -0
- package/src/tool-runtime/artifact-runtimes.ts +2 -1
- package/src/tool-runtime/aside-selection-runtime.ts +2 -1
- package/src/tool-runtime/bash-approval.ts +14 -0
- package/src/tool-runtime/bash-runtime.ts +44 -0
- package/src/tool-runtime/browser-runtime.ts +2 -1
- package/src/tool-runtime/display-control-runtimes.ts +4 -3
- package/src/tool-runtime/elanous-asana-runtimes.ts +2 -1
- package/src/tool-runtime/elanous-autopilot-launch-runtime.ts +3 -2
- package/src/tool-runtime/elanous-control-runtimes.ts +2 -1
- package/src/tool-runtime/elanous-fs-list-runtime.ts +2 -1
- package/src/tool-runtime/elanous-fs-read-runtime.ts +2 -1
- package/src/tool-runtime/elanous-linear-issue-runtime.ts +3 -2
- package/src/tool-runtime/elanous-linear-secretary-runtime.ts +2 -1
- package/src/tool-runtime/elanous-obsidian-info-runtime.ts +2 -1
- package/src/tool-runtime/elanous-obsidian-search-runtime.ts +2 -1
- package/src/tool-runtime/elanous-showroom-broadcast-runtime.ts +2 -1
- package/src/tool-runtime/elanous-skills-list-runtime.ts +2 -1
- package/src/tool-runtime/elanous-task-submit-runtime.ts +2 -1
- package/src/tool-runtime/elanous-ux-sim-devices-runtime.ts +2 -1
- package/src/tool-runtime/find-repo-runtime.ts +2 -1
- package/src/tool-runtime/git-commit-runtime.ts +2 -1
- package/src/tool-runtime/git-pr-runtime.ts +2 -1
- package/src/tool-runtime/git-worktree-runtimes.ts +2 -1
- package/src/tool-runtime/goal-author-runtime.ts +2 -1
- package/src/tool-runtime/graph-mcp-runtimes.ts +2 -1
- package/src/tool-runtime/mcp-proxy-bootstrap.ts +2 -1
- package/src/tool-runtime/mirror-hints.ts +2 -1
- package/src/tool-runtime/pane-runtimes.ts +2 -1
- package/src/tool-runtime/persistent-grounding-runtime.ts +2 -1
- package/src/tool-runtime/pty-recording-runtimes.ts +2 -1
- package/src/tool-runtime/recording-runtimes.ts +2 -1
- package/src/tool-runtime/ref-consult-runtime.ts +2 -1
- package/src/tool-runtime/refs-gc-runtime.ts +2 -1
- package/src/tool-runtime/self-cognition-catalog.ts +1 -0
- package/src/tool-runtime/self-cognition-runtimes.ts +2 -1
- package/src/tool-runtime/set-working-dir-runtime.ts +2 -1
- package/src/tool-runtime/skill-exec-runtime.ts +3 -2
- package/src/tool-runtime/sync-repo-runtime.ts +2 -1
- package/src/tool-runtime/tool-search-runtime.ts +7 -3
- package/src/tool-runtime/truncation-store.ts +1 -1
- package/src/tool-runtime/types.ts +8 -1
- package/src/tool-runtime/undo-turn-runtime.ts +2 -1
- package/src/tool-runtime/web-terminal-live-camera.ts +2 -1
- package/src/tool-runtime/web-terminal-runtimes.ts +2 -1
- package/src/tool-runtime/web-terminal-screenshot.ts +2 -1
- package/src/tui/branches/app/index.ts +125 -0
- package/src/tui/branches/context.ts +102 -0
- package/src/tui/branches/decide.ts +11 -0
- package/src/tui/branches/first-screen.ts +20 -0
- package/src/tui/branches/harness.ts +32 -0
- package/src/tui/branches/memory.ts +9 -0
- package/src/tui/branches/now.ts +25 -0
- package/src/tui/branches/plugin-wizard.ts +149 -0
- package/src/tui/branches/sidetab/mission.ts +298 -0
- package/src/tui/branches/sidetab/route.ts +54 -0
- package/src/tui/branches/status.ts +75 -0
- package/src/tui/branches/term/route.ts +7 -0
- package/src/tui/chat/background-job-status.ts +36 -1
- package/src/tui/chat/execution-badge.ts +1 -1
- package/src/tui/chat/log-view.ts +137 -17
- package/src/tui/chat/message-block-view.ts +115 -0
- package/src/tui/core/agents.ts +87 -0
- package/src/tui/core/input.ts +70 -0
- package/src/tui/core/message-block-raw-ref.ts +53 -0
- package/src/tui/core/message-block-session.ts +33 -0
- package/src/tui/core/queue.ts +67 -0
- package/src/tui/core/registry.ts +426 -0
- package/src/tui/core/render.ts +307 -0
- package/src/tui/core/screen-paint-cache.ts +41 -0
- package/src/tui/core/turn.ts +126 -0
- package/src/tui/entry.ts +1107 -363
- package/src/tui/inline-choice.ts +163 -47
- package/src/tui/input/composer.ts +51 -26
- package/src/tui/input/inline-panel.ts +30 -0
- package/src/tui/input/pickers.ts +16 -218
- package/src/tui/input/slash-complete.ts +27 -0
- package/src/tui/mission-watch.ts +41 -0
- package/src/tui/persistent-user-memory.ts +53 -0
- package/src/tui/sidetab/attach.ts +20 -266
- package/src/tui/sidetab/herdr-portal.ts +7 -10
- package/src/tui/sidetab/remote.ts +1 -1
- package/src/tui/size-contract.ratchet.json +4 -0
- package/src/tui/slash/compact.ts +1 -1
- package/src/tui/slash/mission.ts +546 -0
- package/src/tui/slash/model.ts +49 -0
- package/src/tui/slash/new-session.ts +4 -3
- package/src/tui/slash/term/contracts.ts +273 -0
- package/src/tui/slash/term/handlers.ts +477 -0
- package/src/tui/slash/term.ts +15 -646
- package/src/tui-client/first-screen-guidance.ts +61 -0
- package/src/tui-client/local-chat-turn.ts +221 -18
- package/src/tui-client/mini-board-feed.ts +125 -0
- package/src/tui-client/mini-board-projection.ts +173 -0
- package/src/tui-client/next-shell-approval.ts +130 -0
- package/src/tui-client/next-wakeup.ts +7 -1
- package/src/tui-client/nexus-board-adapter.ts +179 -0
- package/src/tui-render-cache.ts +1 -1
- package/src/tui-terminal-contract.ts +54 -0
- package/src/tui.ts +4 -58
- package/src/ui/chrome/sidebar-shell-presentation.ts +0 -17
- package/src/ui/context-menu-host.ts +1 -2
- package/src/ui/context-menu-presenter.ts +3 -231
- package/src/ui/declarative/builder.ts +2 -16
- package/src/ui/declarative/builtin-view-catalog.ts +0 -22
- package/src/ui/declarative/decode.ts +1 -4
- package/src/ui/declarative/encode-specs.ts +52 -0
- package/src/ui/declarative/encode.ts +8 -42
- package/src/ui/declarative/index.ts +0 -2
- package/src/ui/declarative/presets.ts +0 -23
- package/src/ui/declarative/spec.ts +1 -4
- package/src/ui/drag-machine.ts +1 -2
- package/src/ui/modal-adapter.ts +1 -1
- package/src/ui/view.ts +2 -2
- package/src/ui/widgets/context-menu.ts +1 -1
- package/src/ui/widgets/dialog.ts +1 -1
- package/src/ui/widgets/file-dialog.ts +1 -1
- package/src/ui/widgets/permission-prompt.ts +1 -1
- package/src/ui/widgets/request-user-input-overlay.ts +1 -1
- package/src/ui/widgets/slash-menu.ts +1 -1
- package/src/user-config/chat.ts +316 -0
- package/src/user-config/orchestrator.ts +70 -0
- package/src/user-config/read.ts +103 -0
- package/src/user-config/reader.ts +11 -0
- package/src/user-config/schema.ts +178 -0
- package/src/user-config/shell.ts +8 -0
- package/src/user-config/sparse-config.ts +57 -0
- package/src/user-config/types.ts +1796 -0
- package/src/user-config/write.ts +451 -0
- package/src/user-config.ts +169 -3110
- package/src/user-intent/logger.ts +1 -1
- package/src/ux/ux-config.ts +1 -1
- package/src/ux-sim/absorb-v2-runGraph-sim.ts +634 -0
- package/src/ux-sim/app-contract-secret-entropy.ts +164 -0
- package/src/ux-sim/app-kill-switch-world.ts +69 -0
- package/src/ux-sim/app-scratch-bootstrap.ts +59 -0
- package/src/ux-sim/app-upgrade-path-world.ts +109 -0
- package/src/ux-sim/arg-macro-canvas-sim.ts +145 -0
- package/src/ux-sim/author-reviewer-precheck-device.ts +1 -1
- package/src/ux-sim/census-oracle-axis-world.ts +37 -0
- package/src/ux-sim/chain-land.ts +26 -4
- package/src/ux-sim/classic-tui-seat-scenarios.ts +87 -5
- package/src/ux-sim/cli-config-audit-device.ts +2 -2
- package/src/ux-sim/device-catalog-snapshot-fragments.ts +83 -0
- package/src/ux-sim/device-fidelity.ts +35 -5
- package/src/ux-sim/edge-creator-nightly.ts +611 -0
- package/src/ux-sim/edge-creator.ts +796 -0
- package/src/ux-sim/fake-absorb-ingest.ts +60 -0
- package/src/ux-sim/fake-adb-phone-world.ts +99 -0
- package/src/ux-sim/fake-agent-hook-host.ts +58 -0
- package/src/ux-sim/fake-android-client.ts +111 -0
- package/src/ux-sim/fake-app-auth.ts +12 -11
- package/src/ux-sim/fake-app-db-backup-world.ts +65 -0
- package/src/ux-sim/fake-app-db-world.ts +200 -0
- package/src/ux-sim/fake-app-drive-world.ts +258 -0
- package/src/ux-sim/fake-app-failures.ts +63 -0
- package/src/ux-sim/fake-app-host.ts +51 -3
- package/src/ux-sim/fake-app-source-concurrent-writer.ts +16 -0
- package/src/ux-sim/fake-app-source-world.ts +59 -0
- package/src/ux-sim/fake-app-storage.ts +1 -1
- package/src/ux-sim/fake-bin-args-sim.ts +136 -0
- package/src/ux-sim/fake-bin-install-helper.mjs +1 -1
- package/src/ux-sim/fake-bin.ts +111 -87
- package/src/ux-sim/fake-clock.ts +8 -0
- package/src/ux-sim/fake-cloud-billing-world.ts +518 -0
- package/src/ux-sim/fake-cloud-vm.ts +2 -0
- package/src/ux-sim/fake-cred.ts +78 -0
- package/src/ux-sim/fake-data-guard-boundary.ts +111 -0
- package/src/ux-sim/fake-dns-cert.ts +58 -5
- package/src/ux-sim/fake-feeds.ts +189 -0
- package/src/ux-sim/fake-fetch.ts +47 -4
- package/src/ux-sim/fake-gh.ts +41 -2
- package/src/ux-sim/fake-google-drive-world.ts +81 -0
- package/src/ux-sim/fake-google-oauth.ts +88 -0
- package/src/ux-sim/fake-herdr.ts +39 -0
- package/src/ux-sim/fake-higgsfield.ts +13 -0
- package/src/ux-sim/fake-kubectl.ts +7 -0
- package/src/ux-sim/fake-land-queue.ts +39 -8
- package/src/ux-sim/fake-llm.ts +468 -13
- package/src/ux-sim/fake-market-feed.ts +114 -0
- package/src/ux-sim/fake-member-oidc-world.ts +92 -0
- package/src/ux-sim/fake-mobile-toolchain.ts +72 -0
- package/src/ux-sim/fake-nexus-board-server.ts +68 -0
- package/src/ux-sim/fake-nexus-plugin-wizard.ts +47 -0
- package/src/ux-sim/fake-ps.ts +10 -0
- package/src/ux-sim/fake-relay-world.ts +513 -0
- package/src/ux-sim/fake-telegram-outbound.ts +71 -0
- package/src/ux-sim/fake-temp-cleanup.ts +96 -0
- package/src/ux-sim/fault-pod-codex-503.ts +61 -41
- package/src/ux-sim/fixtures/kaist-child-artifacts/bad-search/search.html +1 -0
- package/src/ux-sim/fixtures/kaist-child-artifacts/home/index.html +1 -0
- package/src/ux-sim/fixtures/kaist-child-artifacts/search/search/index.html +1 -0
- package/src/ux-sim/fixtures/task-launch-entry.mjs +14 -0
- package/src/ux-sim/fixtures/train-manager-decision-v1.json +66 -0
- package/src/ux-sim/flutter-deploy-journey.ts +111 -0
- package/src/ux-sim/gate-closure-lazy-require-sim.ts +102 -0
- package/src/ux-sim/gate-image-layered-delta-sim.ts +93 -0
- package/src/ux-sim/gate-image-pin-handshake-sim.ts +147 -0
- package/src/ux-sim/gate-image-preflight-runtime-identity-flow-sim.ts +270 -0
- package/src/ux-sim/gate-image-preflight-runtime-identity-sim.ts +61 -0
- package/src/ux-sim/gate-receipt-file-closure-cas.ts +183 -0
- package/src/ux-sim/gate-repair-multi-file-sim.ts +132 -0
- package/src/ux-sim/gate-roster-second-pool.ts +220 -0
- package/src/ux-sim/gate-shard-host-reroute.ts +14 -3
- package/src/ux-sim/gate-steady-state-proof-sim.ts +76 -0
- package/src/ux-sim/gcp-architect-expand-fake-world.ts +133 -0
- package/src/ux-sim/git-push-timeout-partial-outcome-remote-verify.ts +45 -0
- package/src/ux-sim/graph-design-sim.ts +260 -0
- package/src/ux-sim/graph-diff-apply.ts +169 -0
- package/src/ux-sim/graph-event-entry-world.ts +71 -0
- package/src/ux-sim/graph-placement-lease-world.ts +109 -0
- package/src/ux-sim/graph-resume-any-entry.ts +134 -0
- package/src/ux-sim/graph-run-lifecycle-world.ts +99 -0
- package/src/ux-sim/graph-trigger-hook-device.ts +146 -0
- package/src/ux-sim/hotspot-file-lease-world.ts +16 -0
- package/src/ux-sim/in-process-cli-539-file-adoption-sim.ts +124 -0
- package/src/ux-sim/in-process-cli.ts +254 -23
- package/src/ux-sim/install-consent-device.ts +8 -5
- package/src/ux-sim/install-one-liner-failsafe-device.ts +157 -0
- package/src/ux-sim/interaction.ts +36 -2
- package/src/ux-sim/ios-chat-edge-adapter.ts +147 -0
- package/src/ux-sim/light-rc-long-run-device.ts +44 -0
- package/src/ux-sim/log-volume-device.ts +41 -0
- package/src/ux-sim/mapreduce-multihost-sim.ts +158 -0
- package/src/ux-sim/mini-board-card.ts +95 -0
- package/src/ux-sim/mock-scenario-catalog.ts +100 -8
- package/src/ux-sim/mock-seat-pty-sequence.ts +9 -4
- package/src/ux-sim/multi-actor-world.ts +206 -0
- package/src/ux-sim/multi-tenant-relay-world.ts +531 -0
- package/src/ux-sim/network-sandbox.ts +31 -0
- package/src/ux-sim/next-tui-core-input.ts +65 -0
- package/src/ux-sim/next-tui-plugin-wizard-world.ts +27 -0
- package/src/ux-sim/next-tui-route-device.ts +20 -0
- package/src/ux-sim/next-tui-seat-scenarios.ts +366 -64
- package/src/ux-sim/nl-scenario.ts +56 -0
- package/src/ux-sim/outbound-guard-sim.ts +82 -0
- package/src/ux-sim/phone-pwa-selfheal.ts +163 -0
- package/src/ux-sim/plugin-release-observe-route-world.ts +92 -0
- package/src/ux-sim/plugin-yaml-gen-world.ts +62 -0
- package/src/ux-sim/pod-federation-sim.ts +196 -0
- package/src/ux-sim/pod-phase-prewarm-sim.ts +12 -0
- package/src/ux-sim/pod-phase-prewarm.ts +36 -0
- package/src/ux-sim/pod-reuse-match-by-kind-sim.ts +56 -0
- package/src/ux-sim/pod-reuse-shared-fake-boundary.ts +69 -0
- package/src/ux-sim/pod-reuse-world.ts +300 -0
- package/src/ux-sim/pr-land-drift-autorepair-device.ts +58 -0
- package/src/ux-sim/pr-land-drift-gate-device.ts +14 -0
- package/src/ux-sim/public-auth-provider-cloud-vm-sim.ts +111 -0
- package/src/ux-sim/pwa-provenance-badge-world.ts +25 -0
- package/src/ux-sim/pwa-retained-routes-world.ts +25 -0
- package/src/ux-sim/pwa-static-swap.ts +28 -0
- package/src/ux-sim/readiness-countdown.ts +332 -0
- package/src/ux-sim/real-target-sandbox.ts +209 -0
- package/src/ux-sim/release-day-0307-replay.ts +529 -0
- package/src/ux-sim/release-event-trace.ts +79 -0
- package/src/ux-sim/release-publish-devices.ts +43 -0
- package/src/ux-sim/release-same-version-run-adoption-sim.ts +186 -0
- package/src/ux-sim/release-sim-rig-seat-guard-child.ts +57 -0
- package/src/ux-sim/release-sim-rig.ts +1780 -121
- package/src/ux-sim/repo-maintenance.ts +142 -0
- package/src/ux-sim/rla-context-release-status-arrival-event.ts +107 -0
- package/src/ux-sim/rla-event-response-scorecard.ts +275 -0
- package/src/ux-sim/rla-macrophage-heal-timeout-stale-output-sim.ts +41 -0
- package/src/ux-sim/scenarios/rla-sim-vocab-node-edge.yaml +23 -0
- package/src/ux-sim/sim-coverage.ts +19 -1
- package/src/ux-sim/sim-receipt.ts +185 -0
- package/src/ux-sim/smart-merge-world.ts +693 -0
- package/src/ux-sim/ta-land-count-dispatcher-sim.ts +93 -0
- package/src/ux-sim/task-orchestrator-surfaces-self-implement-pod-device.ts +1 -1
- package/src/ux-sim/temp-git-remote.ts +25 -2
- package/src/ux-sim/tool-router-world.ts +137 -0
- package/src/ux-sim/train-manager-decision-sim.ts +6 -0
- package/src/ux-sim/train-manager-world.ts +188 -0
- package/src/ux-sim/user-config-default-sparse-sim.ts +68 -0
- package/src/ux-sim/user-config-tui-diet-sim.ts +71 -0
- package/src/ux-sim/warm-pool-declare-path-sim.ts +19 -0
- package/src/ux-sim/warm-pool-reuse-sim.ts +53 -16
- package/src/ux-sim/warm-pool-reuse-switch-sim.ts +111 -4
- package/src/ux-sim/warm-si-reuse-sim.ts +127 -31
- package/src/ux-sim/worktree-deps-shared-store.ts +45 -0
- package/src/ux-sim/world-chaos-runtime.ts +55 -19
- package/src/ux-sim/world-host-chaos.ts +185 -5
- package/src/ux-sim/world-regression-suite.ts +197 -0
- package/src/ux-sim/world-schema.ts +32 -12
- package/src/ux-sim/world-store.ts +7 -2
- package/src/ux-sim/world-watch.ts +95 -0
- package/src/ux-sim/world.ts +1157 -35
- package/src/version/packed-revision.json +1 -1
- package/src/video-pipeline/vflow-reference.ts +1 -2
- package/src/views/config.ts +0 -24
- package/src/views/product-compact-mode.ts +0 -6
- package/src/voice/channel-adapters/discord-voice-channel-adapter.ts +2 -5
- package/src/voice/channel-adapters/discord-voice-channel-commands.ts +1 -1
- package/src/voice/channel-adapters/discord-voice-channel-harness.ts +1 -1
- package/src/voice/voice-streaming-stt-singleton.ts +1 -1
- package/src/voice/voice-tts-singleton.ts +1 -1
- package/src/widget-routing/pane-to-widget.ts +2 -3
- package/src/widget-routing/widget-dispatcher.ts +1 -2
- package/src/widgets/host.ts +2 -3
- package/src/widgets/mini-board.ts +72 -0
- package/src/widgets/types.ts +1 -1
- package/src/workflow-runtime/daemon.ts +11 -0
- package/src/workflow-runtime/executor.ts +1 -3
- package/src/workflow-runtime/parser.ts +3 -2
- package/src/workflow-runtime/schema.ts +1 -4
- package/src/workflow-runtime/triggers/scheduler.ts +1 -1
- package/src/workflow-runtime/triggers/webhook-source.ts +12 -0
- package/src/workspace-types.ts +0 -1
- package/templates/event-landing-editorial/DESIGN.md +12 -0
- package/templates/flutter-app-lecture-scrap/README.md +32 -0
- package/templates/flutter-app-lecture-scrap/android/app/build.gradle.kts +79 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/debug/AndroidManifest.xml +7 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/AndroidManifest.xml +46 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/kotlin/ai/elanous/lecture_scrap/MainActivity.kt +5 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values/styles.xml +18 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values-night/styles.xml +18 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/profile/AndroidManifest.xml +7 -0
- package/templates/flutter-app-lecture-scrap/android/build.gradle.kts +24 -0
- package/templates/flutter-app-lecture-scrap/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/templates/flutter-app-lecture-scrap/android/gradle.properties +6 -0
- package/templates/flutter-app-lecture-scrap/android/settings.gradle.kts +26 -0
- package/templates/flutter-app-lecture-scrap/app.yaml +60 -0
- package/templates/flutter-app-lecture-scrap/lib/main.dart +392 -0
- package/templates/flutter-app-lecture-scrap/out/index.html +7 -0
- package/templates/flutter-app-lecture-scrap/pubspec.lock +348 -0
- package/templates/flutter-app-lecture-scrap/pubspec.yaml +14 -0
- package/templates/flutter-app-translator/README.md +41 -0
- package/templates/flutter-app-translator/lib/main.dart +602 -0
- package/templates/flutter-app-translator/lib/recording_cleanup.dart +8 -0
- package/templates/flutter-app-translator/lib/session_epoch.dart +22 -0
- package/templates/flutter-app-translator/pubspec.yaml +24 -0
- package/templates/flutter-app-translator/test/session_lifecycle_test.dart +168 -0
- package/templates/flutter-app-voice-note/README.md +34 -0
- package/templates/flutter-app-voice-note/android/app/build.gradle.kts +85 -0
- package/templates/flutter-app-voice-note/android/app/src/debug/AndroidManifest.xml +7 -0
- package/templates/flutter-app-voice-note/android/app/src/main/AndroidManifest.xml +59 -0
- package/templates/flutter-app-voice-note/android/app/src/main/kotlin/com/example/flutter_app_voice_note/MainActivity.kt +5 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/values/styles.xml +18 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/values-night/styles.xml +18 -0
- package/templates/flutter-app-voice-note/android/app/src/profile/AndroidManifest.xml +7 -0
- package/templates/flutter-app-voice-note/android/build.gradle.kts +24 -0
- package/templates/flutter-app-voice-note/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/templates/flutter-app-voice-note/android/gradle.properties +6 -0
- package/templates/flutter-app-voice-note/android/settings.gradle.kts +26 -0
- package/templates/flutter-app-voice-note/app.yaml +18 -0
- package/templates/flutter-app-voice-note/ios/Flutter/AppFrameworkInfo.plist +24 -0
- package/templates/flutter-app-voice-note/ios/Flutter/Debug.xcconfig +1 -0
- package/templates/flutter-app-voice-note/ios/Flutter/Release.xcconfig +1 -0
- package/templates/flutter-app-voice-note/ios/Runner/AppDelegate.swift +16 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
- package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
- package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/Main.storyboard +26 -0
- package/templates/flutter-app-voice-note/ios/Runner/Info.plist +83 -0
- package/templates/flutter-app-voice-note/ios/Runner/Runner-Bridging-Header.h +1 -0
- package/templates/flutter-app-voice-note/ios/Runner/SceneDelegate.swift +6 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.pbxproj +647 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +119 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/contents.xcworkspacedata +7 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/flutter-app-voice-note/ios/RunnerTests/RunnerTests.swift +12 -0
- package/templates/flutter-app-voice-note/lib/main.dart +765 -0
- package/templates/flutter-app-voice-note/lib/voice_note_service.dart +341 -0
- package/templates/flutter-app-voice-note/out/index.html +11 -0
- package/templates/flutter-app-voice-note/pubspec.lock +777 -0
- package/templates/flutter-app-voice-note/pubspec.yaml +24 -0
- package/templates/flutter-app-voice-note/test/voice_note_service_test.dart +559 -0
- package/templates/next-app-lecture-scrap/app/layout.jsx +3 -0
- package/templates/next-app-lecture-scrap/app/notes/new/page.jsx +12 -0
- package/templates/next-app-lecture-scrap/app/page.jsx +9 -0
- package/templates/next-app-lecture-scrap/app/search/page.jsx +10 -0
- package/templates/next-app-lecture-scrap/app.yaml +88 -0
- package/templates/next-app-lecture-scrap/next.config.mjs +1 -0
- package/templates/next-app-lecture-scrap/package.json +20 -0
- package/templates/next-app-shop-studio/app/layout.tsx +15 -0
- package/templates/next-app-shop-studio/app/page.tsx +32 -0
- package/templates/next-app-shop-studio/app.yaml +90 -0
- package/templates/next-app-shop-studio/next.config.ts +8 -0
- package/templates/next-app-shop-studio/package.json +20 -0
- package/templates/next-app-translator/app/layout.tsx +15 -0
- package/templates/next-app-translator/app/page.tsx +16 -0
- package/templates/next-app-translator/app.yaml +69 -0
- package/templates/next-app-translator/next.config.ts +8 -0
- package/templates/next-app-translator/package.json +21 -0
- package/templates/next-app-voice-note/app.yaml +99 -0
- package/templates/next-app-voice-note/package.json +22 -0
- package/apps/pwa/out/404/index.html +0 -1
- package/apps/pwa/out/404.html +0 -1
- package/apps/pwa/out/_next/static/chunks/01af03c4.71e22e1e1aca813e.js +0 -18
- package/apps/pwa/out/_next/static/chunks/0e3e9261.84afa98360d3b889.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1163.de587836684ae0e8.js +0 -74
- package/apps/pwa/out/_next/static/chunks/124-5c8fb000f2fef6fd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/147.48bf376824f7df0a.js +0 -8
- package/apps/pwa/out/_next/static/chunks/1623-0cd4aabb94e3fc0d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1689-5ee3c3dd16ab8667.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1783.708de9a0182ac571.js +0 -41
- package/apps/pwa/out/_next/static/chunks/1807-778f3031dc089a09.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1911-bc30f2d39d2b318e.js +0 -25
- package/apps/pwa/out/_next/static/chunks/1968.4f77d6f940c26d94.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1985.ab97a36d1b3a9458.js +0 -36
- package/apps/pwa/out/_next/static/chunks/2169.709268f6190a67e4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2215.90b2a595c9880580.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2233.061c80f2a79abb24.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2466.ff652b24ae9dee2a.js +0 -32
- package/apps/pwa/out/_next/static/chunks/2541-70d25b112ae1960d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2556-14a3c1858511d4b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/259.ff45e655e5e41a4d.js +0 -193
- package/apps/pwa/out/_next/static/chunks/2592.cc0b9dc547aca123.js +0 -104
- package/apps/pwa/out/_next/static/chunks/2708-f51dd5bc56aed2a7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2845ea08.c590f5c7ddc06b98.js +0 -122
- package/apps/pwa/out/_next/static/chunks/2856-d3c6d2706d6cc45e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2883-5b4aaa3950d416c2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2999.c462d95ab66dba3a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2c8c2385.34ce9456dac99420.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3085.59001f746a9a2e8c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3162-94995e3e8f1524f3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3176.fcf82fd6b3fcfff5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3177-151f3b49f3b2d2ef.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3196.4d0730f411899434.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3235.7b9c3e9c55ea6d98.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3414-037ce9f127904fe2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/348.b77e8e6b6ed5230c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3483-f7f5f9a66e1780ad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3501.d2b92806ac1d949e.js +0 -287
- package/apps/pwa/out/_next/static/chunks/3552.e6be7ac885976039.js +0 -1
- package/apps/pwa/out/_next/static/chunks/366-eb724714d15eb3f4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3700.422355522e15e182.js +0 -2
- package/apps/pwa/out/_next/static/chunks/3789.443ac3d6037b503c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4278.5624379f0c23ee3d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4365-9e2bea90e6243b8e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4388.42598a55da8c47cf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4530.3a14a074896302f2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4557-3b576c4706df592d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4647.a6e02754d5dcf398.js +0 -5
- package/apps/pwa/out/_next/static/chunks/4793-a77c3acf9ffc4454.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4806.d7a41078ec5f9e6f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4881.ad56fcbdcfb39a23.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4983.cb812be748dd07e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5054.cef07be26f74f202.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5075.b30af8ae9aadc959.js +0 -226
- package/apps/pwa/out/_next/static/chunks/5323.277ad337906fe70a.js +0 -309
- package/apps/pwa/out/_next/static/chunks/5464-5837a4fba34df983.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5535-3d077c5296902ba6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5640.b32a01e556340532.js +0 -38
- package/apps/pwa/out/_next/static/chunks/5654.1b52dfa2ffb08352.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6.aa2a99e9454c9a8d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6208.70eba139a9c68af3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6251.a547705e850c5149.js +0 -9
- package/apps/pwa/out/_next/static/chunks/6253.d4f0940b616f889d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6281-8492f70e843316fa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6289-3c8732cbeeeb62a2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6332-d5edcc5c35500524.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6433.e0006a1e924a2131.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6437.3cd4d04efb8ab871.js +0 -286
- package/apps/pwa/out/_next/static/chunks/6461-5584cf24a661817a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6618-9b8d9a46ede0c41e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6715-f1316dd169ff9f50.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6735-e62669175cce8686.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6841.ed452e7d06f598ee.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6937.0bdc3185f2ace9e4.js +0 -79
- package/apps/pwa/out/_next/static/chunks/6c25ab46.9d19c4994d7f5495.js +0 -160
- package/apps/pwa/out/_next/static/chunks/7015-6abc8f1809ff071f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7056-c994bfc3e3701439.js +0 -1
- package/apps/pwa/out/_next/static/chunks/712-4496b0c3ac3e4b75.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7151.d2511e5f23155242.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7228.8cb7ac9d98e331d5.js +0 -34
- package/apps/pwa/out/_next/static/chunks/725.63b4017563b04379.js +0 -93
- package/apps/pwa/out/_next/static/chunks/7250-70e47260b60cd47e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7263-34fefd269746719c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7663.e4ea6f8c14df314c.js +0 -66
- package/apps/pwa/out/_next/static/chunks/77.b432098b663eb23e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/770.f7b4481b25fe01c4.js +0 -148
- package/apps/pwa/out/_next/static/chunks/7746.c8b9b75e18472c54.js +0 -115
- package/apps/pwa/out/_next/static/chunks/7923.35fed012b66d1420.js +0 -217
- package/apps/pwa/out/_next/static/chunks/7959.4e02edd1fdf86b05.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7974-b134a047264b1e55.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8089-c13a0ed6973e7490.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8101.31728c5a01a6167b.js +0 -77
- package/apps/pwa/out/_next/static/chunks/8231.297058c760d62aee.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8389.af75612ea24ceba6.js +0 -24
- package/apps/pwa/out/_next/static/chunks/8427.085d79f7afbb3825.js +0 -149
- package/apps/pwa/out/_next/static/chunks/8473.20a465ef76441b50.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8541.3a501dabd3140fd0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8739-f0deba2b3e06427c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8818.02938c951b1000d1.js +0 -94
- package/apps/pwa/out/_next/static/chunks/8846.3103ace634243ee8.js +0 -64
- package/apps/pwa/out/_next/static/chunks/8847.72b1b3e33bcad95a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8883-30b5a763ec36eafa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9052.0be41f794a5fb029.js +0 -86
- package/apps/pwa/out/_next/static/chunks/9086.b691a72402d521d5.js +0 -27
- package/apps/pwa/out/_next/static/chunks/9133.0be4ebb6c50cd78a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/916.3a04c642f0e5ff90.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9240.1637f5e69335d06b.js +0 -62
- package/apps/pwa/out/_next/static/chunks/9298-cd7b117f1a5be480.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9340-c2ac8651b03e94b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9376.35941fbddcbfe1d4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9424.9062e8119fae997a.js +0 -24
- package/apps/pwa/out/_next/static/chunks/9486.8ef4e64969908842.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9488.98d1b3c092da470a.js +0 -23
- package/apps/pwa/out/_next/static/chunks/9648-42f1d4648cfa7eb8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9781-946d591f1e66da8d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9844.72bbf73fd214af65.js +0 -90
- package/apps/pwa/out/_next/static/chunks/9850.90badc8e9b213e5a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9868.027b845025f57183.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9948-dbde92fff6625cad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9951-b903d4a257c01657.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9ccc18c7-87a6c1410d97d560.js +0 -1
- package/apps/pwa/out/_next/static/chunks/abec6764.4a84c474be416fb7.js +0 -62
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-a76e282302331a47.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-9c79d56c52c3b39c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-cd45c61031d63214.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-e133c057c3c62663.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-89ff7827ff5f449f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-0cd71686fa026045.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-a0b329a1295e9704.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-f4b64283a86189e3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-c6567da3170d92b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-90bff14d4d1104a9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-bc7f2d53539f1599.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-51dd1cfa869e3e9e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-734e98ce83fcb338.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-0dbd78003825005e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-d716d9e3eebe01c9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-a76e282302331a47.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-35ac985a392a23da.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-8169a6d36aca9d00.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-c07319ebc55c858f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-e74b1236e3318957.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-f2d9e65f2fa34919.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-e44e85553f3d1747.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-9786452dd87449f8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-c01f73b8ca382e89.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-4ba4b24fc4aa2262.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-e4f1cff672c21cf5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-7408295e90c5f3da.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-5145d13713aa12ba.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-4b40d62f2182addf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-cbf974b1f9c988e2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-e63ff6bd28f8c0c9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-a9dd827a1ab83e4f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-367850708c52c660.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-b1456fb9b51a4fd7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-26867b3d37b1e7a8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-82c9de5c8c37b051.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-7f03bb1e52c1a43d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-8b9f729cfc8ebc14.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-f2dec730b93abfab.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-a76e282302331a47.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-fa6f33a05e473556.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-5e0e3113bfda415d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-7864eff18ce702ba.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-e29cc254c3ee0054.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-cd2f7856a7dc4849.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-2de3d35eb5a86aae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-cdb70038ead4a184.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-e093c97ee87aca70.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-fb97121241bc7cfc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-3072b3b9e14ea04d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-a976e10f6c3f82bd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-dfbc7268ba631190.js +0 -1
- package/apps/pwa/out/_next/static/chunks/c9c445f7.15a7d747f61c56e6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/d1dc888b.cc6ca4afda9a5ef8.js +0 -66
- package/apps/pwa/out/_next/static/chunks/dc5145c8.9547e252e2e1d3d1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/e5a2a050-4b51c1f86f5cc4bb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-5a93f9a572271e1c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-1c2ba214755ef1d0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-55b1247a78f22727.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-239264d5fa7469e1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-8184168567215c6b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-0144ea4a99833df5.js +0 -1
- package/apps/pwa/out/_next/static/css/085673d826b98b62.css +0 -1
- package/apps/pwa/out/_next/static/css/32b8e1b8996dbf5e.css +0 -1
- package/apps/pwa/out/_next/static/css/599369d853c61df7.css +0 -31
- package/apps/pwa/out/_next/static/css/659eccb5db697b76.css +0 -1
- package/apps/pwa/out/_next/static/css/9e19f9d740cf4dcb.css +0 -1
- package/apps/pwa/out/_next/static/iXeJzCRg0ENSSl_RTbGIN/_buildManifest.js +0 -1
- package/apps/pwa/out/_next/static/iXeJzCRg0ENSSl_RTbGIN/_ssgManifest.js +0 -1
- package/apps/pwa/out/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/f639721981034f88-s.woff2 +0 -0
- package/apps/pwa/out/approvals/index.html +0 -1
- package/apps/pwa/out/approvals/index.txt +0 -33
- package/apps/pwa/out/autopilot/index.html +0 -1
- package/apps/pwa/out/autopilot/index.txt +0 -33
- package/apps/pwa/out/board/index.html +0 -1
- package/apps/pwa/out/board/index.txt +0 -33
- package/apps/pwa/out/botlab/index.html +0 -1
- package/apps/pwa/out/botlab/index.txt +0 -30
- package/apps/pwa/out/bots/index.html +0 -1
- package/apps/pwa/out/bots/index.txt +0 -30
- package/apps/pwa/out/ceo/index.html +0 -1
- package/apps/pwa/out/ceo/index.txt +0 -33
- package/apps/pwa/out/chat/index.html +0 -1
- package/apps/pwa/out/chat/index.txt +0 -30
- package/apps/pwa/out/consult/index.html +0 -1
- package/apps/pwa/out/consult/index.txt +0 -33
- package/apps/pwa/out/control/index.html +0 -1
- package/apps/pwa/out/control/index.txt +0 -33
- package/apps/pwa/out/decisions/index.html +0 -1
- package/apps/pwa/out/decisions/index.txt +0 -30
- package/apps/pwa/out/design-check/index.html +0 -1
- package/apps/pwa/out/design-check/index.txt +0 -33
- package/apps/pwa/out/editor/index.html +0 -1
- package/apps/pwa/out/editor/index.txt +0 -35
- package/apps/pwa/out/exec/index.html +0 -1
- package/apps/pwa/out/exec/index.txt +0 -33
- package/apps/pwa/out/field/index.html +0 -1
- package/apps/pwa/out/field/index.txt +0 -33
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
- package/apps/pwa/out/healthz +0 -1
- package/apps/pwa/out/icons/elanous-16.png +0 -0
- package/apps/pwa/out/icons/elanous-180.png +0 -0
- package/apps/pwa/out/icons/elanous-192.png +0 -0
- package/apps/pwa/out/icons/elanous-32.png +0 -0
- package/apps/pwa/out/icons/elanous-512.png +0 -0
- package/apps/pwa/out/index.html +0 -1
- package/apps/pwa/out/index.txt +0 -30
- package/apps/pwa/out/inside/index.html +0 -1
- package/apps/pwa/out/inside/index.txt +0 -32
- package/apps/pwa/out/intake/index.html +0 -1
- package/apps/pwa/out/intake/index.txt +0 -33
- package/apps/pwa/out/live/index.html +0 -1
- package/apps/pwa/out/live/index.txt +0 -35
- package/apps/pwa/out/live-run/index.html +0 -1
- package/apps/pwa/out/live-run/index.txt +0 -35
- package/apps/pwa/out/loops/index.html +0 -1
- package/apps/pwa/out/loops/index.txt +0 -31
- package/apps/pwa/out/manifest.webmanifest +0 -31
- package/apps/pwa/out/market/index.html +0 -1
- package/apps/pwa/out/market/index.txt +0 -30
- package/apps/pwa/out/missions/placeholder/index.html +0 -1
- package/apps/pwa/out/missions/placeholder/index.txt +0 -30
- package/apps/pwa/out/morning/index.html +0 -1
- package/apps/pwa/out/morning/index.txt +0 -33
- package/apps/pwa/out/observatory/index.html +0 -1
- package/apps/pwa/out/observatory/index.txt +0 -33
- package/apps/pwa/out/offline.html +0 -84
- package/apps/pwa/out/ops/checklist/index.html +0 -1
- package/apps/pwa/out/ops/checklist/index.txt +0 -30
- package/apps/pwa/out/ops/release/index.html +0 -1
- package/apps/pwa/out/ops/release/index.txt +0 -30
- package/apps/pwa/out/ops/resources/index.html +0 -1
- package/apps/pwa/out/ops/resources/index.txt +0 -30
- package/apps/pwa/out/ops/seats/index.html +0 -1
- package/apps/pwa/out/ops/seats/index.txt +0 -30
- package/apps/pwa/out/outputs/index.html +0 -1
- package/apps/pwa/out/outputs/index.txt +0 -30
- package/apps/pwa/out/reflection/index.html +0 -1
- package/apps/pwa/out/reflection/index.txt +0 -31
- package/apps/pwa/out/scheduler/index.html +0 -1
- package/apps/pwa/out/scheduler/index.txt +0 -33
- package/apps/pwa/out/sessions/index.html +0 -1
- package/apps/pwa/out/sessions/index.txt +0 -30
- package/apps/pwa/out/settings/devices/index.html +0 -1
- package/apps/pwa/out/settings/devices/index.txt +0 -33
- package/apps/pwa/out/settings/index.html +0 -1
- package/apps/pwa/out/settings/index.txt +0 -33
- package/apps/pwa/out/setup/done/index.html +0 -1
- package/apps/pwa/out/setup/done/index.txt +0 -33
- package/apps/pwa/out/setup/index.html +0 -1
- package/apps/pwa/out/setup/index.txt +0 -33
- package/apps/pwa/out/share/index.html +0 -1
- package/apps/pwa/out/share/index.txt +0 -33
- package/apps/pwa/out/showroom/index.html +0 -1
- package/apps/pwa/out/showroom/index.txt +0 -30
- package/apps/pwa/out/sw-strategies.js +0 -44
- package/apps/pwa/out/sw.js +0 -385
- package/apps/pwa/out/tasks/index.html +0 -1
- package/apps/pwa/out/tasks/index.txt +0 -33
- package/apps/pwa/out/term/index.html +0 -1
- package/apps/pwa/out/term/index.txt +0 -33
- package/apps/pwa/out/today/index.html +0 -1
- package/apps/pwa/out/today/index.txt +0 -33
- package/apps/pwa/out/trace/index.html +0 -1
- package/apps/pwa/out/trace/index.txt +0 -33
- package/apps/pwa/out/vault/index.html +0 -1
- package/apps/pwa/out/vault/index.txt +0 -33
- package/apps/pwa/out/workflows/chat-ui/index.html +0 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +0 -33
- package/apps/pwa/out/workflows/index.html +0 -1
- package/apps/pwa/out/workflows/index.txt +0 -33
- package/apps/pwa/out/workspace/index.html +0 -1
- package/apps/pwa/out/workspace/index.txt +0 -33
- package/apps/pwa/out/worktrees/index.html +0 -1
- package/apps/pwa/out/worktrees/index.txt +0 -33
- package/plugins/hello/manifest.json +0 -7
- package/plugins/hello/missions/count-to-5/evaluator.sh +0 -32
- package/plugins/hello/missions/count-to-5/mission.md +0 -17
- package/plugins/hello/missions/count-to-5/sandbox.md +0 -10
- package/plugins/hello/plugin.ts +0 -97
- package/src/acp/grok-leader-manager.ts +0 -160
- package/src/autopilot/build/build-status-label.ts +0 -19
- package/src/autopilot/discovery/preexisting-red-rows.ts +0 -83
- package/src/autopilot/mission-replay-decision.ts +0 -136
- package/src/browser-pane/mount.ts +0 -242
- package/src/budget/cost-tier-advisor.ts +0 -91
- package/src/cli/ask-bare.ts +0 -43
- package/src/cli/autopilot-cli.ts +0 -839
- package/src/cli/autopilot-run.ts +0 -176
- package/src/dashboard/auto-tts/auto-tts-controller.ts +0 -347
- package/src/dashboard/auto-tts/auto-tts-host-boot.ts +0 -162
- package/src/dashboard/auto-tts/pfc-voice-runtime.ts +0 -138
- package/src/dashboard/browser-help-runtime.ts +0 -95
- package/src/dashboard/compact-surface-popup.ts +0 -61
- package/src/dashboard/input/chat-main-cache-command.ts +0 -11
- package/src/dashboard/input/chat-main-submit-control.ts +0 -24
- package/src/dashboard/input/control-signal-consumers.ts +0 -46
- package/src/dashboard/input/dashboard-plain-turn-settle-sink.ts +0 -96
- package/src/dashboard/input/dictation-surface-allowlist.ts +0 -78
- package/src/dashboard/input/mouse-shell-rollup-runtime.ts +0 -114
- package/src/dashboard/input/space-longpress-detector.ts +0 -311
- package/src/dashboard/input/voice-dictation.ts +0 -80
- package/src/dashboard/media-preview-surface-runtime.ts +0 -81
- package/src/dashboard/modals/browser-preview-modal-seams.ts +0 -887
- package/src/dashboard/modals/preview.ts +0 -151
- package/src/dashboard/scenario-runtime-boot.ts +0 -113
- package/src/dashboard/shell-rollup-popup.ts +0 -116
- package/src/dashboard/voice-chat/voice-chat-host-boot.ts +0 -418
- package/src/dashboard/voice-chat/voice-chat-mode-controller.ts +0 -148
- package/src/dashboard/voice-chat/voice-chat-pipeline.ts +0 -357
- package/src/dashboard/voice-host-boot.ts +0 -109
- package/src/dashboard/voice-input-host.ts +0 -540
- package/src/dashboard/voice-runtime.ts +0 -174
- package/src/directive/interpretation-card.ts +0 -36
- package/src/display/bounds-validate.ts +0 -113
- package/src/display/image-emit.ts +0 -247
- package/src/display/picker-layout.ts +0 -199
- package/src/display/terminal-capability.ts +0 -161
- package/src/display/terminal-frame.ts +0 -32
- package/src/display/terminal-snapshot.ts +0 -58
- package/src/display/transient-overlay-policy.ts +0 -59
- package/src/domains/alert-audit.ts +0 -271
- package/src/domains/conatus-verify.ts +0 -466
- package/src/domains/proactive-recall.ts +0 -85
- package/src/graph-runner/release-manifest.ts +0 -93
- package/src/grounding/ensure-grounding.ts +0 -131
- package/src/grounding/ref-vector.ts +0 -61
- package/src/harness/artifact-launch-vocabulary.ts +0 -45
- package/src/harness/shell-prompt-watcher.ts +0 -0
- package/src/harness/user-terminal-injector.ts +0 -51
- package/src/input/turn-output-bundle.ts +0 -105
- package/src/intake-plane/ref-prefetch.ts +0 -110
- package/src/intelligence-map/catalog-feed.ts +0 -119
- package/src/intelligence-map/model-bench-scores.ts +0 -102
- package/src/iul/asset-registry.ts +0 -980
- package/src/iul/lab-tabs.ts +0 -283
- package/src/iul/lane-registry.ts +0 -25
- package/src/iul/lane-select-view.ts +0 -62
- package/src/iul/scene-registry.ts +0 -25
- package/src/iul/sidebar-shell-catalog.ts +0 -41
- package/src/iul/sidebar-shell-copy.ts +0 -38
- package/src/iul/sidebar-shell.ts +0 -40
- package/src/iul/theme-lab-lane-view.ts +0 -291
- package/src/iul/top-control-rail.ts +0 -7
- package/src/model-tier/tier-to-model.ts +0 -23
- package/src/mss/identity.ts +0 -105
- package/src/nexus/api/mission-showroom.ts +0 -182
- package/src/nexus/api/missions-emit.ts +0 -214
- package/src/nexus/api/missions.ts +0 -230
- package/src/onboarding/widget-impl.ts +0 -118
- package/src/panes/alt-skip-predicate.ts +0 -40
- package/src/panes/files-pane.ts +0 -39
- package/src/panes/pane-cycle.ts +0 -61
- package/src/panes/skills-pane.ts +0 -47
- package/src/panes/terminal-bg-query.ts +0 -152
- package/src/panes/visibility-badge.ts +0 -50
- package/src/playground/catalog.ts +0 -1306
- package/src/playground/lab.ts +0 -439
- package/src/playground/widget.ts +0 -1588
- package/src/plugins/legacy-classify.ts +0 -479
- package/src/plugins/maker/connector-maker.ts +0 -41
- package/src/plugins/maker/skill-maker.ts +0 -42
- package/src/preview/pager.ts +0 -135
- package/src/preview-pane/mount.ts +0 -202
- package/src/prompt-library/family-prompt-coverage.ts +0 -97
- package/src/release-loop/proposal-auto-place.ts +0 -83
- package/src/seat-dispatch/seat-request-eligibility.ts +0 -19
- package/src/self-dev/decompose-compose-graph.ts +0 -136
- package/src/self-dev/external-call-zero.ts +0 -77
- package/src/self-dev/local-supervisor-judge.ts +0 -185
- package/src/self-dev/shard-pod-run.ts +0 -77
- package/src/self-implement/follow-up-placement.ts +0 -79
- package/src/self-implement/run-controls.ts +0 -74
- package/src/shell-runner/modal-surface.ts +0 -171
- package/src/sim-world-device-catalogs.json +0 -493
- package/src/skills/skill-route-ux.ts +0 -62
- package/src/state/bridges/widget-host-focus.ts +0 -96
- package/src/state/bridges/widget-host.ts +0 -273
- package/src/steward/entrance-dispatch-shadow-adapter-child.ts +0 -26
- package/src/steward/entrance-dispatch-shadow-adapter.ts +0 -196
- package/src/storage/object-store-visibility.ts +0 -169
- package/src/task-orchestrator/surfaces/pod-warm-ta-shadow.ts +0 -85
- package/src/theme/auto-theme.ts +0 -73
- package/src/tool-runtime/widget-schema-runtime.ts +0 -94
- package/src/ui/chrome/tooltip-chrome.ts +0 -16
- package/src/ui/decor.ts +0 -75
- package/src/ui/hover-presenter.ts +0 -202
- package/src/ui/hover-tracker.ts +0 -249
- package/src/ui/layout/dsl.ts +0 -210
- package/src/ui/layout/scroll.ts +0 -104
- package/src/ui/slash-launcher.ts +0 -58
- package/src/ui/submenu-popup-menu-contract.ts +0 -44
- package/src/ui/submenu-popup-pair.ts +0 -175
- package/src/ui/submenu-popup-theme.ts +0 -81
- package/src/ui/widgets/accordion.ts +0 -122
- package/src/ui/widgets/combo-box.ts +0 -221
- package/src/ui/widgets/draggable-list.ts +0 -247
- package/src/ui/widgets/list-view.ts +0 -221
- package/src/ui/widgets/menu-tree-controller.ts +0 -136
- package/src/ui/widgets/progress-bar.ts +0 -164
- package/src/ui/widgets/selection-browse.ts +0 -26
- package/src/ui/widgets/tabs.ts +0 -174
- package/src/ui/widgets/title-bar.ts +0 -149
- package/src/ui/widgets/tooltip.ts +0 -130
- package/src/ui/widgets/tree-view.ts +0 -266
- package/src/ux/ux-learn.ts +0 -58
- package/src/ux-sim/mock-scenario-catalog.json +0 -3898
- package/src/vi-editor.ts +0 -407
- package/src/webclone/qa-table.ts +0 -22
- package/src/widget-routing/terminal-pane-behavior.ts +0 -114
- package/src/widgets/plan-board.ts +0 -124
- /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
|
|
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 {
|
|
19
|
-
import {
|
|
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
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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 :
|
|
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
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
|
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 (
|
|
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 } : {}), ...(
|
|
452
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
474
|
-
|
|
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
|
|
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
|
|
493
|
-
const
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
|
|
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
|
-
|
|
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 === '
|
|
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'
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
1615
|
+
const devices = createReleasePublishDevices(input.version);
|
|
647
1616
|
try {
|
|
648
|
-
const result = runPublish((
|
|
649
|
-
|
|
650
|
-
|
|
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
|
-
|
|
686
|
-
|
|
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'
|
|
705
|
-
|
|
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
|
-
|
|
733
|
-
|
|
734
|
-
const
|
|
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
|
-
&&
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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 (
|
|
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,
|
|
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-
|
|
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
|
-
|
|
986
|
-
|
|
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
|
|
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
|
-
|
|
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' })),
|