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
|
@@ -0,0 +1,2881 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Staged batch runner boundary. Active train scripts are never changed here."""
|
|
3
|
+
import argparse
|
|
4
|
+
import fcntl
|
|
5
|
+
import hashlib
|
|
6
|
+
import importlib.util
|
|
7
|
+
import json
|
|
8
|
+
import math
|
|
9
|
+
import os
|
|
10
|
+
import re
|
|
11
|
+
import shlex
|
|
12
|
+
import subprocess
|
|
13
|
+
import sys
|
|
14
|
+
import socket
|
|
15
|
+
import stat
|
|
16
|
+
import tempfile
|
|
17
|
+
import time
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
|
|
21
|
+
MAX_BATCH = 4
|
|
22
|
+
HOSTS_REGISTRY = Path.home() / 'elanous-hq/seat-state/OP/train-hosts.tsv' # OP 10-28 20:4x 대표 «열차 N개» — 한 줄 = 한 열차 호스트
|
|
23
|
+
HOST_CAPS_TSV = Path.home() / 'elanous-hq/seat-state/OP/train-manager/host-caps.tsv'
|
|
24
|
+
REMOTE_GATE_TAIL_BEGIN = 'REMOTE_GATE_LOG_TAIL_BEGIN'
|
|
25
|
+
REMOTE_GATE_TAIL_END = 'REMOTE_GATE_LOG_TAIL_END'
|
|
26
|
+
TRAIN_ALWAYS_RATCHETS = (
|
|
27
|
+
'test/rules-contract.test.ts',
|
|
28
|
+
'scripts/ratchets/*.test.ts',
|
|
29
|
+
'src/instance/*ratchet*.test.ts',
|
|
30
|
+
'src/self-implement/graph-engine-map.test.ts',
|
|
31
|
+
'src/self-implement/elanous-tui-spawn-identity.test.ts',
|
|
32
|
+
'apps/pwa/src/components/shell/sidebar-nav-items.test.ts',
|
|
33
|
+
)
|
|
34
|
+
TRAIN_ALWAYS_RATCHET_PROFILE = 'train-always-ratchets-v1'
|
|
35
|
+
GATE_TIER_HELPER = Path.home() / 'elanous-hq/seat-state/OP/tools/gate-tier.py'
|
|
36
|
+
_gate_tier_spec = importlib.util.spec_from_file_location('train_gate_tier', GATE_TIER_HELPER)
|
|
37
|
+
_gate_tier = importlib.util.module_from_spec(_gate_tier_spec)
|
|
38
|
+
sys.modules[_gate_tier_spec.name] = _gate_tier
|
|
39
|
+
_gate_tier_spec.loader.exec_module(_gate_tier)
|
|
40
|
+
# OP #83391: gcp2 needed 2184s for a completed shard run; allow 30% headroom.
|
|
41
|
+
GATE_HOST_MEASURED_SECONDS = {'gcp2': 2184}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def gate_timeout_for_host(host, requested_seconds):
|
|
45
|
+
measured = GATE_HOST_MEASURED_SECONDS.get(host)
|
|
46
|
+
if measured is None:
|
|
47
|
+
return requested_seconds
|
|
48
|
+
return max(requested_seconds, math.ceil(measured * 1.3))
|
|
49
|
+
MEMORY_HELPER = Path.home() / 'elanous-hq/seat-state/OP/tools/train-memory.py'
|
|
50
|
+
REFUSAL_EVENTS = Path.home() / 'elanous-hq/seat-state/OP/train-manager/refusal-events.jsonl'
|
|
51
|
+
HEAD_MISMATCH_NOTICES = Path.home() / 'elanous-hq/seat-state/OP/train-manager/head-mismatch-notices.jsonl'
|
|
52
|
+
GENERATED_REGEN_OUTPUTS = (
|
|
53
|
+
'docs/manual/MANUAL-ux-simulation-devices-2026-08-23.md',
|
|
54
|
+
'src/sim-world-device-catalog-history.json',
|
|
55
|
+
'docs/generated/cli-anatomy.md',
|
|
56
|
+
) # Keep identical to src/self-implement/merge-train.ts GENERATED_OUTPUTS.
|
|
57
|
+
UX_SIM_REGEN_INPUTS = (
|
|
58
|
+
'src/ux-sim/',
|
|
59
|
+
'scripts/generate-ux-sim-device-manual.ts',
|
|
60
|
+
'scripts/generate-sim-world-device-catalogs.ts',
|
|
61
|
+
)
|
|
62
|
+
CLI_REGEN_INPUTS = ('src/cli/', 'scripts/docs/generate-cli-anatomy.ts', 'scripts/docs/generate-graph-anatomy.ts')
|
|
63
|
+
GENERATED_REGEN_TIMEOUT = 120
|
|
64
|
+
TRAIN_REFRESH_SUBJECT = 'docs: refresh generated outputs for integrated train'
|
|
65
|
+
TRAIN_REFRESH_AUTHOR = ('OP-train', 'op-train@local')
|
|
66
|
+
TRAIN_REFRESH_REVIEW_SCHEMA = 'elanous.train.generated-refresh-review-carry.v1'
|
|
67
|
+
TRAIN_REFRESH_REVIEW_OK = Path.home() / 'elanous-hq/seat-state/OP/tools/train-1016/night-train/review-ok.jq'
|
|
68
|
+
_memory_spec = importlib.util.spec_from_file_location('train_memory', MEMORY_HELPER)
|
|
69
|
+
_memory = importlib.util.module_from_spec(_memory_spec)
|
|
70
|
+
_memory_spec.loader.exec_module(_memory)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def memory_skip_set(rows, base):
|
|
74
|
+
"""Exact measured PR/head/base tuples are never selected for another run."""
|
|
75
|
+
blocked = set()
|
|
76
|
+
for row in rows:
|
|
77
|
+
matches = _memory.exact_rows(row.pr, row.head.lower(), base.lower())
|
|
78
|
+
if any(item.get('eventType') == 'batch-gate'
|
|
79
|
+
and item.get('status') in ('passed', 'failed', 'precondition-unmet', 'conflict')
|
|
80
|
+
for item in matches):
|
|
81
|
+
blocked.add(row.pr)
|
|
82
|
+
return blocked
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def memory_append(pr, head, base, event_type, status, run_id='', **details):
|
|
86
|
+
from types import SimpleNamespace
|
|
87
|
+
_memory.append(SimpleNamespace(source='train', event_type=event_type, pr=str(pr),
|
|
88
|
+
head=head, base=base, run_id=str(run_id), status=status,
|
|
89
|
+
data=json.dumps(details, ensure_ascii=False)))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def log(message):
|
|
93
|
+
"""Emit a timestamped batch-runner transition to the invoking train log."""
|
|
94
|
+
print(f"{time.strftime('%m-%d %H:%M:%S')} [train-batch] {message}", flush=True)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def remote_gate_log_tail(text):
|
|
98
|
+
"""Return the bounded remote gate.log tail embedded by the SSH wrapper, if present."""
|
|
99
|
+
lines = text.splitlines()
|
|
100
|
+
try:
|
|
101
|
+
start = len(lines) - 1 - lines[::-1].index(REMOTE_GATE_TAIL_BEGIN)
|
|
102
|
+
end = lines.index(REMOTE_GATE_TAIL_END, start + 1)
|
|
103
|
+
except ValueError:
|
|
104
|
+
return ''
|
|
105
|
+
return '\n'.join(lines[start + 1:end])
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def live_gate_hosts():
|
|
109
|
+
hosts = ['node-b', 'node-c']
|
|
110
|
+
try:
|
|
111
|
+
for line in HOSTS_REGISTRY.read_text().splitlines():
|
|
112
|
+
if line.strip() and not line.startswith('#'):
|
|
113
|
+
h = line.split('\t')[0].strip()
|
|
114
|
+
if (len(line.split('\t')) >= 8 and line.split('\t')[7] == 'yes'
|
|
115
|
+
and re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]*', h) and h not in hosts):
|
|
116
|
+
hosts.append(h)
|
|
117
|
+
except OSError:
|
|
118
|
+
pass
|
|
119
|
+
return tuple(hosts)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def remote_path_for_host(host):
|
|
123
|
+
for line in HOSTS_REGISTRY.read_text().splitlines():
|
|
124
|
+
fields = line.split('\t')
|
|
125
|
+
if fields and fields[0] == host and len(fields) >= 6:
|
|
126
|
+
value = fields[5]
|
|
127
|
+
if value != '-' and re.fullmatch(r'[A-Za-z0-9_./:$-]+', value):
|
|
128
|
+
return value
|
|
129
|
+
raise ValueError(f'remote PATH missing from train-hosts.tsv for {host}')
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def parse_exclude(text):
|
|
133
|
+
out = {x.strip() for x in (text or '').split(',') if x.strip()}
|
|
134
|
+
if any(not x.isdigit() for x in out):
|
|
135
|
+
raise ValueError('exclude must be comma-separated PR numbers')
|
|
136
|
+
return out
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def wait_queue_lock_clear(queue, what, limit=180):
|
|
140
|
+
"""OP 10-28 20:0x: 다른 열차의 land-single 이 줄 갱신으로 잠깐 잡는 $Q.lock 에 바로 거부하지 않는다 — 오래 잡혀 있으면 거부."""
|
|
141
|
+
lock = Path(str(queue) + '.lock')
|
|
142
|
+
for _ in range(limit // 5):
|
|
143
|
+
if not lock.exists():
|
|
144
|
+
return
|
|
145
|
+
time.sleep(5)
|
|
146
|
+
if lock.exists():
|
|
147
|
+
raise RuntimeError(f'active train holds the queue lock {what}')
|
|
148
|
+
|
|
149
|
+
class Row:
|
|
150
|
+
def __init__(self, pr, head, tree, evidence):
|
|
151
|
+
self.pr, self.head, self.tree, self.evidence = pr, head, tree, evidence
|
|
152
|
+
def as_dict(self):
|
|
153
|
+
return {'pr': self.pr, 'head': self.head, 'tree': self.tree, 'evidence': self.evidence}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def read_queue(path):
|
|
157
|
+
rows = []
|
|
158
|
+
for n, line in enumerate(Path(path).read_text().splitlines(), 1):
|
|
159
|
+
if not line or line.startswith('#'):
|
|
160
|
+
continue
|
|
161
|
+
fields = line.split('\t')
|
|
162
|
+
if len(fields) != 4:
|
|
163
|
+
raise ValueError(f'queue row {n}: expected 4 fields')
|
|
164
|
+
pr, head, tree, evidence = fields
|
|
165
|
+
if not pr.isdigit() or not re.fullmatch(r'[0-9a-f]{40}', head):
|
|
166
|
+
raise ValueError(f'queue row {n}: invalid PR/head')
|
|
167
|
+
rows.append(Row(pr, head, tree, evidence))
|
|
168
|
+
if len({r.pr for r in rows}) != len(rows):
|
|
169
|
+
raise ValueError('duplicate PR rows')
|
|
170
|
+
return rows
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def chosen_still_queued(path, chosen):
|
|
174
|
+
"""OP 10-27 21:0x: 열차가 달리는 동안 다른 자리가 줄 «뒤»에 붙이는 것은 허용 — 고른 PR 들이 같은 head 로 남아 있는지만 본다."""
|
|
175
|
+
try:
|
|
176
|
+
now = {r.pr: r.head for r in read_queue(path)}
|
|
177
|
+
except Exception:
|
|
178
|
+
return False
|
|
179
|
+
return all(now.get(r.pr) == r.head for r in chosen)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def select(rows, conflicts, limit=MAX_BATCH):
|
|
183
|
+
chosen, deferred = [], []
|
|
184
|
+
for row in rows:
|
|
185
|
+
if row.pr in conflicts:
|
|
186
|
+
deferred.append({'pr': row.pr, 'reason': 'merge-tree conflict'})
|
|
187
|
+
elif len(chosen) < limit:
|
|
188
|
+
chosen.append(row)
|
|
189
|
+
else:
|
|
190
|
+
deferred.append({'pr': row.pr, 'reason': 'batch cap'})
|
|
191
|
+
return chosen, deferred
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def command(argv, cwd=None, timeout=120):
|
|
195
|
+
return subprocess.run(argv, cwd=cwd, text=True, capture_output=True, timeout=timeout)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def host_cap_is_zero(host):
|
|
199
|
+
"""Read the train-manager live overlay so drained hosts are classified before SSH/home probing."""
|
|
200
|
+
try:
|
|
201
|
+
lines = HOST_CAPS_TSV.read_text(encoding='utf-8').splitlines()
|
|
202
|
+
except OSError:
|
|
203
|
+
return False
|
|
204
|
+
for line in lines:
|
|
205
|
+
if not line.strip() or line.startswith('#'):
|
|
206
|
+
continue
|
|
207
|
+
fields = line.split('\t')
|
|
208
|
+
if len(fields) >= 2 and fields[0] == host and fields[1].strip().isdigit():
|
|
209
|
+
return int(fields[1].strip()) == 0
|
|
210
|
+
return False
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def resolve_remote_home(host):
|
|
214
|
+
"""Resolve a train host home, falling back to the registered absolute WSL bin path."""
|
|
215
|
+
if host_cap_is_zero(host):
|
|
216
|
+
raise RuntimeError(f'host-infra: {host} has train capacity 0; skipped persistent artifact home lookup')
|
|
217
|
+
probe = command(['ssh', '-o', 'ConnectTimeout=10', host, 'printf %s "$HOME"'], timeout=30)
|
|
218
|
+
probed = (probe.stdout or '').strip()
|
|
219
|
+
if probe.returncode == 0 and probed.startswith('/'):
|
|
220
|
+
return probed
|
|
221
|
+
try:
|
|
222
|
+
remote_path = remote_path_for_host(host)
|
|
223
|
+
except (OSError, ValueError):
|
|
224
|
+
remote_path = ''
|
|
225
|
+
for entry in remote_path.split(':'):
|
|
226
|
+
match = re.match(r'^(/home/[^/:]+)/(?:\.bun\/bin|\.local\/share\/elanous\/bin)(?:\/|$)', entry)
|
|
227
|
+
if match:
|
|
228
|
+
return match.group(1)
|
|
229
|
+
detail = (probe.stderr or probe.stdout or f'ssh rc={probe.returncode}').strip()[-300:]
|
|
230
|
+
raise RuntimeError(f'cannot resolve remote home on {host}: {detail}; no registered absolute home path')
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def generated_merge_conflict_only(output):
|
|
234
|
+
# Generated outputs are replaced from the exact integrated source tree after merging.
|
|
235
|
+
paths = [line.strip() for line in (output or '').splitlines()
|
|
236
|
+
if line.strip() and not re.fullmatch(r'[0-9a-f]{40}', line.strip())]
|
|
237
|
+
return bool(paths) and all(path in GENERATED_REGEN_OUTPUTS for path in paths)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def generated_output_ere():
|
|
241
|
+
return '|'.join(re.escape(path).replace(r'\-', '-') for path in GENERATED_REGEN_OUTPUTS)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def merge_conflicts(repo, base, rows):
|
|
245
|
+
result = set()
|
|
246
|
+
for row in rows:
|
|
247
|
+
p = command(['git', 'merge-tree', '--write-tree', '--name-only', base, row.head], repo, 60)
|
|
248
|
+
if p.returncode == 1:
|
|
249
|
+
if not generated_merge_conflict_only(p.stdout):
|
|
250
|
+
result.add(row.pr)
|
|
251
|
+
elif p.returncode:
|
|
252
|
+
raise RuntimeError(f'merge-tree unmeasured #{row.pr}: rc={p.returncode}')
|
|
253
|
+
return result
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
def build_remote_merge_tree_command(base, rows, run_id):
|
|
257
|
+
"""Recheck selected PR mergeability using only the batch host clone's objects."""
|
|
258
|
+
if not re.fullmatch(r'[0-9a-f]{40}', base) or not re.fullmatch(r'[0-9]+', str(run_id)):
|
|
259
|
+
raise ValueError('invalid remote merge-tree identity')
|
|
260
|
+
if not rows:
|
|
261
|
+
raise ValueError('cannot merge-tree check an empty row set')
|
|
262
|
+
generated_pattern = generated_output_ere()
|
|
263
|
+
lines = ['set -euo pipefail', 'cd ~/source/elanous-agent',
|
|
264
|
+
'git fetch -q origin main', f'git cat-file -e {base}^{{commit}}']
|
|
265
|
+
refs = [f'refs/opt-train/{run_id}/merge-tree/{row.pr}' for row in rows]
|
|
266
|
+
lines.insert(1, "trap 'cd ~/source/elanous-agent; " +
|
|
267
|
+
'; '.join(f'git update-ref -d {ref} >/dev/null 2>&1 || true' for ref in refs) + "' EXIT")
|
|
268
|
+
lines.insert(3, 'if git remote get-url github >/dev/null 2>&1; then pull_remote=github; else pull_remote=origin; fi')
|
|
269
|
+
for row in rows:
|
|
270
|
+
if not str(row.pr).isdigit() or not re.fullmatch(r'[0-9a-f]{40}', row.head):
|
|
271
|
+
raise ValueError('invalid merge-tree PR/head')
|
|
272
|
+
ref = f'refs/opt-train/{run_id}/merge-tree/{row.pr}'
|
|
273
|
+
pull_ref = f'refs/pull/{row.pr}/head'
|
|
274
|
+
lines.extend([
|
|
275
|
+
f'git fetch -q "$pull_remote" +{pull_ref}:{pull_ref}',
|
|
276
|
+
f'pulled=$(git rev-parse {pull_ref})',
|
|
277
|
+
f'git update-ref {ref} "$pulled"',
|
|
278
|
+
f'actual=$(git rev-parse {ref})',
|
|
279
|
+
f'if [ "$actual" != {row.head} ]; then',
|
|
280
|
+
f' echo "MERGE_TREE_HEAD_MISMATCH=#{row.pr} expected={row.head} actual=$actual"',
|
|
281
|
+
'else',
|
|
282
|
+
f' if merge_output=$(git merge-tree --write-tree --name-only {base} {ref} 2>&1); then',
|
|
283
|
+
f' echo MERGE_TREE_CLEAN=#{row.pr}',
|
|
284
|
+
' else',
|
|
285
|
+
' rc=$?',
|
|
286
|
+
' if [ "$rc" -eq 1 ]; then',
|
|
287
|
+
' conflict_paths=$(printf "%s\\n" "$merge_output" | sed "/^[0-9a-f]\\{40\\}$/d; /^$/d")',
|
|
288
|
+
f' if [ -n "$conflict_paths" ] && ! printf "%s\\n" "$conflict_paths" | grep -Ev "^({generated_pattern})$" >/dev/null; then',
|
|
289
|
+
f' echo MERGE_TREE_GENERATED_CONFLICT=#{row.pr}',
|
|
290
|
+
f' else echo MERGE_TREE_CONFLICT=#{row.pr}; fi',
|
|
291
|
+
f' else echo "MERGE_TREE_UNMEASURED=#{row.pr}:rc=$rc"; exit "$rc"; fi',
|
|
292
|
+
' fi',
|
|
293
|
+
'fi',
|
|
294
|
+
])
|
|
295
|
+
return '\n'.join(lines)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def remote_merge_conflicts(host, base, rows, run_id, remote_homes):
|
|
299
|
+
if host not in remote_homes:
|
|
300
|
+
try:
|
|
301
|
+
remote_homes[host] = resolve_remote_home(host)
|
|
302
|
+
except RuntimeError as error:
|
|
303
|
+
raise RuntimeError(f'cannot resolve merge-tree host home on {host}: {error}') from error
|
|
304
|
+
payload = build_remote_merge_tree_command(base, rows, run_id)
|
|
305
|
+
result = command(ssh_remote_command(host, payload), timeout=600)
|
|
306
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
307
|
+
if result.returncode:
|
|
308
|
+
raise RuntimeError(f'batch-host merge-tree unmeasured on {host} rc={result.returncode}: {output[-1200:]}')
|
|
309
|
+
unmeasured = re.search(r'^MERGE_TREE_UNMEASURED=(#[0-9]+:[^\n]+)$', output, re.M)
|
|
310
|
+
if unmeasured:
|
|
311
|
+
raise RuntimeError(f'batch-host merge-tree unmeasured: {unmeasured.group(1)}')
|
|
312
|
+
conflicts = set(re.findall(r'^MERGE_TREE_CONFLICT=#([0-9]+)$', output, re.M))
|
|
313
|
+
generated_only = set(re.findall(r'^MERGE_TREE_GENERATED_CONFLICT=#([0-9]+)$', output, re.M))
|
|
314
|
+
clean = set(re.findall(r'^MERGE_TREE_CLEAN=#([0-9]+)$', output, re.M))
|
|
315
|
+
mismatch_lines = re.findall(
|
|
316
|
+
r'^MERGE_TREE_HEAD_MISMATCH=#([0-9]+) expected=([0-9a-f]{40}) actual=([0-9a-f]{40})$',
|
|
317
|
+
output, re.M)
|
|
318
|
+
head_mismatches = {pr: {'expected': expected, 'actual': actual}
|
|
319
|
+
for pr, expected, actual in mismatch_lines}
|
|
320
|
+
if len(head_mismatches) != len(mismatch_lines):
|
|
321
|
+
raise RuntimeError('batch-host merge-tree emitted duplicate head-mismatch rows')
|
|
322
|
+
expected_heads = {str(row.pr): row.head for row in rows}
|
|
323
|
+
if any(expected_heads.get(pr) != mismatch['expected']
|
|
324
|
+
for pr, mismatch in head_mismatches.items()):
|
|
325
|
+
raise RuntimeError('batch-host merge-tree head-mismatch identity differs from selected queue row')
|
|
326
|
+
measured = clean | conflicts | generated_only | set(head_mismatches)
|
|
327
|
+
expected = {str(row.pr) for row in rows}
|
|
328
|
+
if measured != expected:
|
|
329
|
+
raise RuntimeError(f'batch-host merge-tree result set mismatch: expected={sorted(expected)} measured={sorted(measured)}')
|
|
330
|
+
return {'conflicts': conflicts, 'generated_only_conflicts': generated_only, 'head_mismatches': head_mismatches}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def defer_head_mismatches(rows, mismatches):
|
|
334
|
+
"""Drop only stale queue-head rows; other measured batch members remain eligible."""
|
|
335
|
+
kept, deferred = [], []
|
|
336
|
+
for row in rows:
|
|
337
|
+
mismatch = mismatches.get(str(row.pr))
|
|
338
|
+
if mismatch is None:
|
|
339
|
+
kept.append(row)
|
|
340
|
+
continue
|
|
341
|
+
deferred.append({'pr': row.pr, 'reason': 'batch host head mismatch',
|
|
342
|
+
'expectedHead': mismatch['expected'], 'actualHead': mismatch['actual']})
|
|
343
|
+
return kept, deferred
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def notify_head_mismatch_owner(row, mismatch, repo_root):
|
|
347
|
+
owner = row_owner(row, repo_root)
|
|
348
|
+
body = (f'[TRAIN batch] #{row.pr} 큐 head 불일치로 이번 묶음에서 해당 행만 제외했습니다 · '
|
|
349
|
+
f'queued={mismatch["expected"]} remote={mismatch["actual"]} · '
|
|
350
|
+
'현재 PR head를 확인해 land-enqueue 줄을 갱신해 주세요.')
|
|
351
|
+
key = (str(row.pr), str(mismatch['expected']).lower(), str(mismatch['actual']).lower())
|
|
352
|
+
HEAD_MISMATCH_NOTICES.parent.mkdir(parents=True, exist_ok=True)
|
|
353
|
+
with HEAD_MISMATCH_NOTICES.with_suffix('.lock').open('a', encoding='utf-8') as lock_stream:
|
|
354
|
+
fcntl.flock(lock_stream.fileno(), fcntl.LOCK_EX)
|
|
355
|
+
try:
|
|
356
|
+
previous = []
|
|
357
|
+
try:
|
|
358
|
+
previous = [json.loads(line) for line in HEAD_MISMATCH_NOTICES.read_text(encoding='utf-8').splitlines()
|
|
359
|
+
if line.strip()]
|
|
360
|
+
except FileNotFoundError:
|
|
361
|
+
pass
|
|
362
|
+
except (OSError, json.JSONDecodeError) as exc:
|
|
363
|
+
return owner, subprocess.CompletedProcess([], 1, '', f'head mismatch notice ledger unreadable: {exc}')
|
|
364
|
+
if any((str(item.get('pr')), str(item.get('queuedHead', '')).lower(),
|
|
365
|
+
str(item.get('remoteHead', '')).lower()) == key for item in previous):
|
|
366
|
+
return owner, subprocess.CompletedProcess([], 0, 'duplicate notification suppressed', '')
|
|
367
|
+
sent = send_typecheck_owner(owner, body, repo_root)
|
|
368
|
+
if sent.returncode == 0:
|
|
369
|
+
event = {'schema': 'elanous.train.head-mismatch-notice.v1',
|
|
370
|
+
'at': datetime.now().astimezone().isoformat(timespec='seconds'),
|
|
371
|
+
'pr': key[0], 'queuedHead': key[1], 'remoteHead': key[2], 'owner': owner}
|
|
372
|
+
with HEAD_MISMATCH_NOTICES.open('a', encoding='utf-8') as stream:
|
|
373
|
+
stream.write(json.dumps(event, ensure_ascii=False, separators=(',', ':')) + '\n')
|
|
374
|
+
stream.flush()
|
|
375
|
+
os.fsync(stream.fileno())
|
|
376
|
+
return owner, sent
|
|
377
|
+
finally:
|
|
378
|
+
fcntl.flock(lock_stream.fileno(), fcntl.LOCK_UN)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
def acquire(path, logical_host=''):
|
|
382
|
+
path = Path(path)
|
|
383
|
+
owner = {'pid': os.getpid(), 'started': time.time(),
|
|
384
|
+
'machine': socket.gethostname().lower(), 'logicalHost': str(logical_host)}
|
|
385
|
+
deadline = time.monotonic() + 65
|
|
386
|
+
while True:
|
|
387
|
+
try:
|
|
388
|
+
path.mkdir()
|
|
389
|
+
marker = path / 'owner.json'
|
|
390
|
+
temp = path / f'.owner-{os.getpid()}-{time.time_ns()}.tmp'
|
|
391
|
+
temp.write_text(json.dumps(owner, separators=(',', ':')) + '\n', encoding='utf-8')
|
|
392
|
+
os.replace(temp, marker)
|
|
393
|
+
return path, owner
|
|
394
|
+
except FileExistsError:
|
|
395
|
+
try:
|
|
396
|
+
before = path.stat()
|
|
397
|
+
except OSError:
|
|
398
|
+
continue
|
|
399
|
+
try:
|
|
400
|
+
existing = json.loads((path / 'owner.json').read_text())
|
|
401
|
+
pid = int(existing.get('pid', 0))
|
|
402
|
+
os.kill(pid, 0)
|
|
403
|
+
except ProcessLookupError:
|
|
404
|
+
pid = 0
|
|
405
|
+
except PermissionError:
|
|
406
|
+
pid = -1 # process exists but this user cannot signal it
|
|
407
|
+
except (OSError, ValueError, TypeError, json.JSONDecodeError):
|
|
408
|
+
# mkdir and owner publication are separate filesystem operations.
|
|
409
|
+
# A competing acquirer must never classify that fresh gap as stale.
|
|
410
|
+
if time.monotonic() < deadline and time.time() - before.st_mtime < 60:
|
|
411
|
+
time.sleep(0.05)
|
|
412
|
+
continue
|
|
413
|
+
pid = 0
|
|
414
|
+
if pid:
|
|
415
|
+
raise RuntimeError(f'active batch lock owner pid={pid}: {path}')
|
|
416
|
+
try:
|
|
417
|
+
after = path.stat()
|
|
418
|
+
except OSError:
|
|
419
|
+
continue
|
|
420
|
+
if (before.st_dev, before.st_ino) != (after.st_dev, after.st_ino):
|
|
421
|
+
continue
|
|
422
|
+
stale = path.with_name(f'{path.name}.stale-{int(time.time())}-{os.getpid()}')
|
|
423
|
+
try:
|
|
424
|
+
path.rename(stale)
|
|
425
|
+
except OSError as exc:
|
|
426
|
+
if time.monotonic() >= deadline:
|
|
427
|
+
raise RuntimeError(f'dead batch lock could not be isolated: {path}: {exc}')
|
|
428
|
+
time.sleep(0.05)
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
HOST_INFRA_PATTERNS = (
|
|
432
|
+
'No space left on device', 'host-infra:',
|
|
433
|
+
'ssh: connect to host', 'Operation timed out', 'Connection timed out',
|
|
434
|
+
)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
def is_host_infra_reason(reason):
|
|
438
|
+
"""True when a refusal names host infrastructure, not the PR (OP 11-05 #34925/#35007)."""
|
|
439
|
+
text = str(reason or '')
|
|
440
|
+
return any(pattern in text for pattern in HOST_INFRA_PATTERNS)
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def remote_setup_infra_detail(log_path):
|
|
444
|
+
"""Return a short host-infra diagnosis from a remote gate stdout log, or ''."""
|
|
445
|
+
try:
|
|
446
|
+
text = Path(log_path).read_text(errors='replace')
|
|
447
|
+
except OSError:
|
|
448
|
+
return ''
|
|
449
|
+
if 'No space left on device' in text:
|
|
450
|
+
line = next((l for l in text.splitlines() if 'No space left on device' in l), '')
|
|
451
|
+
return f'host-infra: disk full (No space left on device) — {line.strip()[:200]}'
|
|
452
|
+
return ''
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
def always_ratchet_detail(summary_path, data):
|
|
456
|
+
"""Name the first failing always-ratchet test from the preserved log (OP 11-05)."""
|
|
457
|
+
ratchets = data.get('trainAlwaysRatchets')
|
|
458
|
+
if not isinstance(ratchets, dict):
|
|
459
|
+
return 'missing: summary has no trainAlwaysRatchets'
|
|
460
|
+
if ratchets.get('tests') != list(TRAIN_ALWAYS_RATCHETS):
|
|
461
|
+
return 'unbound: test list differs from train profile'
|
|
462
|
+
status = f"status={ratchets.get('status')} exitCode={ratchets.get('exitCode')}"
|
|
463
|
+
base = Path(summary_path).parent
|
|
464
|
+
name = Path(summary_path).name
|
|
465
|
+
order = (['handoff-art'] if 'handoff' in name else []) + (['retry-art'] if 'retry' in name else []) + ['primary-art']
|
|
466
|
+
log_name = str(ratchets.get('log') or 'always-ratchets.log')
|
|
467
|
+
for art in order:
|
|
468
|
+
log = base / 'remote-artifacts' / art / log_name
|
|
469
|
+
if not log.is_file():
|
|
470
|
+
continue
|
|
471
|
+
lines = log.read_text(errors='replace').splitlines()
|
|
472
|
+
fails = [l for l in lines if l.startswith('(fail)')]
|
|
473
|
+
header = next((l[:-1] for l in lines if re.match(r'^[A-Za-z0-9_./@+-]+\.test\.tsx?:$', l)), '')
|
|
474
|
+
received = [l.strip()[1:].strip().strip('",') for l in lines if re.match(r'^\+\s+"', l)]
|
|
475
|
+
if fails:
|
|
476
|
+
first = fails[0][len('(fail) '):][:160]
|
|
477
|
+
hint = f" received={'|'.join(received[:3])}" if received else ''
|
|
478
|
+
return f'failed {status} fails={len(fails)} first={first}{hint} log={art}/{log_name}' + (f' file={header}' if header else '')
|
|
479
|
+
return f'{status} log={art}/{log_name} (no (fail) line)'
|
|
480
|
+
return f'{status} log not preserved'
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
def append_refusal_event(args, reason):
|
|
484
|
+
"""Persist an exact-head refusal so the manager can park on the second run."""
|
|
485
|
+
try:
|
|
486
|
+
queue_rows = {row.pr: row for row in read_queue(args.queue)}
|
|
487
|
+
except Exception:
|
|
488
|
+
queue_rows = {}
|
|
489
|
+
summary = ''
|
|
490
|
+
if args.artifacts:
|
|
491
|
+
manifest_path = args.artifacts / 'manifest.json'
|
|
492
|
+
try:
|
|
493
|
+
manifest = json.loads(manifest_path.read_text(encoding='utf-8'))
|
|
494
|
+
summary = str((manifest.get('preflight') or {}).get('summary') or '')
|
|
495
|
+
except (OSError, ValueError, TypeError):
|
|
496
|
+
pass
|
|
497
|
+
REFUSAL_EVENTS.parent.mkdir(parents=True, exist_ok=True)
|
|
498
|
+
with REFUSAL_EVENTS.with_suffix('.lock').open('a', encoding='utf-8') as lock_stream:
|
|
499
|
+
fcntl.flock(lock_stream.fileno(), fcntl.LOCK_EX)
|
|
500
|
+
with REFUSAL_EVENTS.open('a', encoding='utf-8') as stream:
|
|
501
|
+
for pr in sorted(set(parse_exclude(args.authorize)), key=int):
|
|
502
|
+
row = queue_rows.get(pr)
|
|
503
|
+
# Ignore malformed/pre-queue CLI rejects; only exact queued heads count toward auto-park.
|
|
504
|
+
if row is None or not re.fullmatch(r'[0-9a-f]{40}', row.head.lower()) or not re.fullmatch(r'[0-9]+', str(args.run_id)):
|
|
505
|
+
continue
|
|
506
|
+
event = {
|
|
507
|
+
'schema': 'elanous.train.refusal.v1',
|
|
508
|
+
'at': datetime.now().astimezone().isoformat(timespec='seconds'),
|
|
509
|
+
'pr': pr, 'head': row.head.lower() if row else '',
|
|
510
|
+
'base': args.base.lower(), 'runId': str(args.run_id),
|
|
511
|
+
'host': str(args.host), 'reason': str(reason).replace('\n', ' ')[:1200],
|
|
512
|
+
'summary': summary, 'artifacts': str(args.artifacts or ''),
|
|
513
|
+
}
|
|
514
|
+
# OP 11-05 11:0x: host infrastructure (disk full etc.) is not a PR strike.
|
|
515
|
+
if is_host_infra_reason(reason):
|
|
516
|
+
event['infra'] = True
|
|
517
|
+
stream.write(json.dumps(event, ensure_ascii=False, separators=(',', ':')) + '\n')
|
|
518
|
+
stream.flush()
|
|
519
|
+
os.fsync(stream.fileno())
|
|
520
|
+
fcntl.flock(lock_stream.fileno(), fcntl.LOCK_UN)
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
def process_is_alive(pid):
|
|
524
|
+
try:
|
|
525
|
+
os.kill(int(pid), 0)
|
|
526
|
+
return True
|
|
527
|
+
except ProcessLookupError:
|
|
528
|
+
return False
|
|
529
|
+
except PermissionError:
|
|
530
|
+
return True
|
|
531
|
+
except (OSError, ValueError, TypeError):
|
|
532
|
+
return False
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
def acquire_claim_selection_lock(queue, timeout=300):
|
|
536
|
+
"""Serialize the final shared-claim read and direct-batch claim publication."""
|
|
537
|
+
lock = Path(str(queue) + '.select.lock')
|
|
538
|
+
deadline = time.monotonic() + timeout
|
|
539
|
+
while True:
|
|
540
|
+
try:
|
|
541
|
+
lock.mkdir()
|
|
542
|
+
(lock / 'pid').write_text(f'{os.getpid()}\n')
|
|
543
|
+
return lock
|
|
544
|
+
except FileExistsError:
|
|
545
|
+
try:
|
|
546
|
+
before = lock.stat()
|
|
547
|
+
except OSError:
|
|
548
|
+
continue
|
|
549
|
+
try:
|
|
550
|
+
pid = int((lock / 'pid').read_text().strip())
|
|
551
|
+
except (OSError, ValueError):
|
|
552
|
+
# Do not steal a freshly-created lock while its owner publishes pid.
|
|
553
|
+
if time.time() - before.st_mtime < 6:
|
|
554
|
+
time.sleep(0.05)
|
|
555
|
+
continue
|
|
556
|
+
pid = 0
|
|
557
|
+
if pid and not process_is_alive(pid):
|
|
558
|
+
try:
|
|
559
|
+
after = lock.stat()
|
|
560
|
+
except OSError:
|
|
561
|
+
continue
|
|
562
|
+
if (before.st_dev, before.st_ino) != (after.st_dev, after.st_ino):
|
|
563
|
+
continue
|
|
564
|
+
stale = lock.with_name(f'{lock.name}.stale-dead-owner-{int(time.time())}-{os.getpid()}')
|
|
565
|
+
try:
|
|
566
|
+
lock.rename(stale)
|
|
567
|
+
continue
|
|
568
|
+
except OSError:
|
|
569
|
+
pass
|
|
570
|
+
if time.monotonic() >= deadline:
|
|
571
|
+
raise RuntimeError(f'shared claim selection lock timeout: {lock}')
|
|
572
|
+
time.sleep(0.25)
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
def release_claim_selection_lock(lock):
|
|
576
|
+
try:
|
|
577
|
+
pid = int((lock / 'pid').read_text().strip())
|
|
578
|
+
except (OSError, ValueError):
|
|
579
|
+
raise RuntimeError(f'shared claim selection lock owner missing: {lock}')
|
|
580
|
+
if pid != os.getpid():
|
|
581
|
+
raise RuntimeError(f'shared claim selection lock owner changed: {lock}')
|
|
582
|
+
(lock / 'pid').unlink()
|
|
583
|
+
lock.rmdir()
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def reserve_claims_for_live_batch(queue, host, batch_lock, authorized, allow_preflight_overlap=False):
|
|
587
|
+
"""Exclude every live cross-host claim and publish direct express claims atomically."""
|
|
588
|
+
claim_dir = Path.home() / 'elanous-hq/seat-state/OP/train-claims'
|
|
589
|
+
claim_dir.mkdir(parents=True, exist_ok=True)
|
|
590
|
+
lock_name = Path(batch_lock).name
|
|
591
|
+
slot_suffix = lock_name.removeprefix(f'{Path(queue).name}.batch.lock.{host}')
|
|
592
|
+
slot_suffix = slot_suffix.lstrip('.')
|
|
593
|
+
own_path = claim_dir / (f'claim-{host}-{slot_suffix}.tsv' if slot_suffix else f'claim-{host}.tsv')
|
|
594
|
+
excluded, direct_claim = set(), None
|
|
595
|
+
for path in sorted(claim_dir.glob('claim-*.tsv')):
|
|
596
|
+
try:
|
|
597
|
+
fields = path.read_text().strip().split('\t')
|
|
598
|
+
if len(fields) < 4 or not fields[0].isdigit():
|
|
599
|
+
continue
|
|
600
|
+
pid, claim_host, lock_text, prs_text = fields[:4]
|
|
601
|
+
prs = {pr for pr in prs_text.split(',') if pr.isdigit()}
|
|
602
|
+
except OSError:
|
|
603
|
+
continue
|
|
604
|
+
lock_path = Path(lock_text) if lock_text else None
|
|
605
|
+
lock_pid = 0
|
|
606
|
+
if lock_path and lock_path.is_dir():
|
|
607
|
+
try:
|
|
608
|
+
lock_pid = int(json.loads((lock_path / 'owner.json').read_text()).get('pid', 0))
|
|
609
|
+
except (OSError, ValueError, TypeError, json.JSONDecodeError):
|
|
610
|
+
lock_pid = 0
|
|
611
|
+
if path == own_path:
|
|
612
|
+
# The loop owning this exact slot published the imminent batch under the
|
|
613
|
+
# selection lock. Other same-host slots remain exclusions like other hosts.
|
|
614
|
+
local_active = process_is_alive(pid)
|
|
615
|
+
if local_active and prs == authorized:
|
|
616
|
+
continue
|
|
617
|
+
if local_active:
|
|
618
|
+
raise RuntimeError(f'active same-slot train claim conflicts with authorization: {sorted(prs)}')
|
|
619
|
+
stale = path.with_name(f'{path.name}.stale-{int(time.time())}-{os.getpid()}')
|
|
620
|
+
try:
|
|
621
|
+
path.rename(stale)
|
|
622
|
+
except OSError as exc:
|
|
623
|
+
raise RuntimeError(f'stale local train claim could not be isolated: {path}: {exc}')
|
|
624
|
+
continue
|
|
625
|
+
active = process_is_alive(lock_pid) if lock_pid else process_is_alive(pid)
|
|
626
|
+
if active:
|
|
627
|
+
excluded.update(prs)
|
|
628
|
+
else:
|
|
629
|
+
stale = path.with_name(f'{path.name}.stale-{int(time.time())}-{os.getpid()}')
|
|
630
|
+
try:
|
|
631
|
+
path.rename(stale)
|
|
632
|
+
except OSError:
|
|
633
|
+
# A concurrent loop may already have refreshed or retired this claim.
|
|
634
|
+
continue
|
|
635
|
+
overlap = authorized & excluded
|
|
636
|
+
if overlap and not allow_preflight_overlap:
|
|
637
|
+
raise RuntimeError(f'authorized PRs claimed by another live train: {sorted(overlap)}')
|
|
638
|
+
if overlap and allow_preflight_overlap:
|
|
639
|
+
excluded.difference_update(overlap) # explicit OP-only preflight duplication; no land adapter runs
|
|
640
|
+
if not own_path.exists():
|
|
641
|
+
tmp = own_path.with_suffix('.tsv.tmp')
|
|
642
|
+
tmp.write_text(f'{os.getpid()}\t{host}\t{batch_lock}\t{",".join(sorted(authorized, key=int))}\n')
|
|
643
|
+
tmp.replace(own_path)
|
|
644
|
+
direct_claim = own_path
|
|
645
|
+
return excluded, direct_claim
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
def release_direct_claim(path, batch_lock):
|
|
649
|
+
"""Remove only the claim created by this direct batch; loop-owned claims persist."""
|
|
650
|
+
if path is None:
|
|
651
|
+
return
|
|
652
|
+
try:
|
|
653
|
+
fields = path.read_text().strip().split('\t')
|
|
654
|
+
except OSError:
|
|
655
|
+
return
|
|
656
|
+
if len(fields) >= 3 and fields[0] == str(os.getpid()) and fields[2] == str(batch_lock):
|
|
657
|
+
path.unlink(missing_ok=True)
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
def reserve_unmeasured_handoff(queue, excluded_hosts):
|
|
661
|
+
"""Reserve the next eligible train host before sending it the same integration."""
|
|
662
|
+
preference = ('aws1', 'gcp1', 'gcp2', 'aws2', 'minim5', 'node-c')
|
|
663
|
+
rows = {}
|
|
664
|
+
for line in HOSTS_REGISTRY.read_text().splitlines():
|
|
665
|
+
fields = line.split('\t')
|
|
666
|
+
if len(fields) >= 8 and fields[7] == 'yes':
|
|
667
|
+
rows[fields[0]] = fields
|
|
668
|
+
for host in preference:
|
|
669
|
+
if host in excluded_hosts or host not in rows or host_cap_is_zero(host):
|
|
670
|
+
continue
|
|
671
|
+
# A registry row only expresses preference; reserve only hosts that can
|
|
672
|
+
# accept the handoff now. Avoid parking on an unreachable artifact home.
|
|
673
|
+
try:
|
|
674
|
+
probe = command(['ssh', '-o', 'BatchMode=yes', '-o', 'ConnectTimeout=5', host, 'true'], timeout=8)
|
|
675
|
+
except (OSError, subprocess.TimeoutExpired):
|
|
676
|
+
continue
|
|
677
|
+
if probe.returncode != 0:
|
|
678
|
+
continue
|
|
679
|
+
lock_path = Path(f'{queue}.batch.lock.{host}')
|
|
680
|
+
try:
|
|
681
|
+
lock, owner = acquire(lock_path, host)
|
|
682
|
+
return host, lock, owner
|
|
683
|
+
except RuntimeError:
|
|
684
|
+
continue
|
|
685
|
+
return None
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
def release(path, owner):
|
|
689
|
+
marker = path / 'owner.json'
|
|
690
|
+
if json.loads(marker.read_text()) != owner:
|
|
691
|
+
raise RuntimeError('lock owner changed; manual recovery required')
|
|
692
|
+
marker.unlink()
|
|
693
|
+
path.rmdir()
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
def release_acquired_lock(lock_handle):
|
|
697
|
+
"""Release with the immutable (path, owner-record) returned by acquire()."""
|
|
698
|
+
release(*lock_handle)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
def final_preflight_status(summary):
|
|
702
|
+
"""Classify only measured passes; an explicit no-tests skip is a pass when all gates pass."""
|
|
703
|
+
verdict = summary.get('verdict')
|
|
704
|
+
exit_code = summary.get('exitCode')
|
|
705
|
+
typecheck = summary.get('typecheck') or {}
|
|
706
|
+
ratchets = summary.get('trainAlwaysRatchets') or {}
|
|
707
|
+
checks_passed = (typecheck.get('status') == 'passed'
|
|
708
|
+
and ratchets.get('status') == 'passed'
|
|
709
|
+
and ratchets.get('exitCode') == 0
|
|
710
|
+
and ratchets.get('tests') == list(TRAIN_ALWAYS_RATCHETS))
|
|
711
|
+
no_tests = (verdict == 'skipped'
|
|
712
|
+
and summary.get('artifactsUnavailable') == 'no-tests'
|
|
713
|
+
and summary.get('shards') == 0)
|
|
714
|
+
gate_passed = ((verdict in ('passed', 'pass') or no_tests) and exit_code == 0)
|
|
715
|
+
if gate_passed and checks_passed:
|
|
716
|
+
return 'passed'
|
|
717
|
+
if verdict in ('failed', 'fail'):
|
|
718
|
+
return 'failed'
|
|
719
|
+
return 'unmeasured'
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
def make_plan(queue, repo, base, limit, exclude=frozenset()):
|
|
723
|
+
queued = read_queue(queue)
|
|
724
|
+
memory_excluded = memory_skip_set(queued, base)
|
|
725
|
+
rows = [r for r in queued if r.pr not in exclude and r.pr not in memory_excluded]
|
|
726
|
+
chosen, deferred = select(rows, merge_conflicts(repo, base, rows), limit)
|
|
727
|
+
return {'schema': 1, 'base': base, 'selected': [r.as_dict() for r in chosen],
|
|
728
|
+
'deferred': deferred + [{'pr': p, 'reason': 'same PR/head/base already measured in train-memory.jsonl'} for p in sorted(memory_excluded)],
|
|
729
|
+
'excluded': sorted(set(exclude) | memory_excluded), 'liveReady': len(chosen) >= 1,
|
|
730
|
+
'merge': 0, 'push': 0, 'gate': 0, 'land': 0}
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
def ssh_remote_command(host, command_text):
|
|
734
|
+
"""Keep remote bash -lc and its payload in one SSH command argument."""
|
|
735
|
+
return ['ssh', '-o', 'ControlMaster=no', '-o', 'ControlPath=none',
|
|
736
|
+
host, 'bash -lc ' + shlex.quote(command_text)]
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
def scp_transfer(source, destination):
|
|
740
|
+
return ['scp', '-o', 'ControlMaster=no', '-o', 'ControlPath=none',
|
|
741
|
+
str(source), str(destination)]
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
def validate_gate(path, base, integration, rows):
|
|
745
|
+
data = json.loads(Path(path).read_text())
|
|
746
|
+
if data.get('base40') != base or data.get('head40') != integration:
|
|
747
|
+
raise RuntimeError('gate base/integration head mismatch')
|
|
748
|
+
typecheck = data.get('typecheck')
|
|
749
|
+
if (not isinstance(typecheck, dict) or typecheck.get('status') != 'passed'
|
|
750
|
+
or typecheck.get('base40') != base or typecheck.get('head40') != integration
|
|
751
|
+
or typecheck.get('exitCode') != 0):
|
|
752
|
+
raise RuntimeError('integrated-branch typecheck missing, failed, or unbound')
|
|
753
|
+
always_ratchets = data.get('trainAlwaysRatchets')
|
|
754
|
+
if (not isinstance(always_ratchets, dict) or always_ratchets.get('status') != 'passed'
|
|
755
|
+
or always_ratchets.get('exitCode') != 0
|
|
756
|
+
or always_ratchets.get('tests') != list(TRAIN_ALWAYS_RATCHETS)):
|
|
757
|
+
raise RuntimeError('always-ratchet bundle missing, failed, or unbound: '
|
|
758
|
+
+ always_ratchet_detail(path, data))
|
|
759
|
+
# OP 10-29 13:4x: 변경이 시험 반경에 닿지 않으면(삭제·.gitignore 등) gate 는 verdict=skipped · artifactsUnavailable=no-tests · shards 0 — 측정할 시험이 없다는 정당한 통과로 본다(회귀·미측정 0 조건 아래)
|
|
760
|
+
skipped_ok = (data.get('verdict') == 'skipped' and data.get('artifactsUnavailable') == 'no-tests'
|
|
761
|
+
and data.get('shards') == 0 and data.get('exitCode') == 0)
|
|
762
|
+
if data.get('verdict') not in ('passed', 'pass') and not skipped_ok:
|
|
763
|
+
raise RuntimeError('gate verdict not pass')
|
|
764
|
+
if any(data.get(k) != 0 for k in ('introduced', 'unknown', 'unrunImporters')):
|
|
765
|
+
raise RuntimeError('gate has introduced/unknown/unrun importer results')
|
|
766
|
+
# OP 10-28 03:5x: 기존 실패(preexisting)만 있으면 gate 는 exit 1 이지만 verdict=passed·introduced/unknown/unrun 0 이다 — 위 검사가 이미 회귀 0 을 보장한다
|
|
767
|
+
preexisting_build = data.get('preexistingBuild')
|
|
768
|
+
build_preexisting_ok = (isinstance(preexisting_build, dict)
|
|
769
|
+
and preexisting_build.get('status') == 'preexisting'
|
|
770
|
+
and preexisting_build.get('base40') == base
|
|
771
|
+
and preexisting_build.get('head40') == integration
|
|
772
|
+
and preexisting_build.get('baseExitCode') == 1
|
|
773
|
+
and preexisting_build.get('headExitCode') == 1
|
|
774
|
+
and preexisting_build.get('headLog') == 'gate.log'
|
|
775
|
+
and bool(preexisting_build.get('baseLog'))
|
|
776
|
+
and bool(preexisting_build.get('diagnosticFingerprint')))
|
|
777
|
+
if data.get('exitCode') != 0 and not (
|
|
778
|
+
data.get('preexisting', 0) and data.get('verdict') in ('passed', 'pass')
|
|
779
|
+
) and not (build_preexisting_ok and data.get('verdict') in ('passed', 'pass')):
|
|
780
|
+
raise RuntimeError('gate exitCode must be zero')
|
|
781
|
+
# Current gate JSON binds one integration HEAD; per-member provenance is
|
|
782
|
+
# proven by the immutable batch manifest used to construct that tree.
|
|
783
|
+
return data
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
def gate_is_unmeasured(path, base, integration):
|
|
787
|
+
"""Only a bound, explicitly unmeasured first result is eligible for one host reroute."""
|
|
788
|
+
data = json.loads(Path(path).read_text())
|
|
789
|
+
if data.get('base40') != base or data.get('head40') != integration:
|
|
790
|
+
raise RuntimeError('unmeasured gate base/integration head mismatch')
|
|
791
|
+
typecheck = data.get('typecheck')
|
|
792
|
+
if data.get('verdict') != 'unmeasured' and not (
|
|
793
|
+
isinstance(typecheck, dict) and typecheck.get('status') == 'unmeasured'):
|
|
794
|
+
return False
|
|
795
|
+
if not (data.get('unmeasuredByShard') or data.get('unmeasuredReason')
|
|
796
|
+
or (isinstance(typecheck, dict) and typecheck.get('reason'))):
|
|
797
|
+
raise RuntimeError('unmeasured gate has no shard-level reason')
|
|
798
|
+
return True
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
def resolve_retry_host(primary_host, requested_host=''):
|
|
802
|
+
"""Use the primary slot unless the manager explicitly selects another host."""
|
|
803
|
+
return requested_host or primary_host
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
def retry_needs_unmeasured_handoff(retry_summary, base, integration):
|
|
807
|
+
"""Any unmeasured retry gets one different-host handoff, regardless of primary verdict."""
|
|
808
|
+
return gate_is_unmeasured(retry_summary, base, integration)
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
def gate_timeout_only_files_from_data(data):
|
|
812
|
+
"""Return unique, safe test files only for a failed gate with timeouts and no introduced failures."""
|
|
813
|
+
if (data.get('verdict') != 'failed' or data.get('introduced') != 0
|
|
814
|
+
or data.get('unknown') != 0 or data.get('unrunImporters') != 0):
|
|
815
|
+
return []
|
|
816
|
+
typecheck = data.get('typecheck')
|
|
817
|
+
ratchets = data.get('trainAlwaysRatchets')
|
|
818
|
+
if (not isinstance(typecheck, dict) or typecheck.get('status') != 'passed'
|
|
819
|
+
or not isinstance(ratchets, dict) or ratchets.get('status') != 'passed'):
|
|
820
|
+
return []
|
|
821
|
+
text = str(data.get('verdictLine') or '')
|
|
822
|
+
header = re.search(r'(?m)^\[gate-baseline\] introduced=0, preexisting=\d+, unknown=0, precondition-unmet=0, timed-out=([0-9]+)\b', text)
|
|
823
|
+
if not header or int(header.group(1)) < 1:
|
|
824
|
+
return []
|
|
825
|
+
identities = re.findall(r'(?m)^- flaky-timeout:\s*(.+)$', text)
|
|
826
|
+
if len(identities) != int(header.group(1)):
|
|
827
|
+
return []
|
|
828
|
+
files = []
|
|
829
|
+
for identity in identities:
|
|
830
|
+
file = identity.split(' > ', 1)[0]
|
|
831
|
+
if (not re.fullmatch(r'(?:src|test|scripts)/[A-Za-z0-9_./-]+\.(?:test|spec)\.[cm]?[jt]sx?', file)
|
|
832
|
+
or '..' in Path(file).parts):
|
|
833
|
+
return []
|
|
834
|
+
if file not in files:
|
|
835
|
+
files.append(file)
|
|
836
|
+
return files
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
def gate_timeout_only_files(summary_path):
|
|
840
|
+
try:
|
|
841
|
+
return gate_timeout_only_files_from_data(json.loads(Path(summary_path).read_text()))
|
|
842
|
+
except Exception:
|
|
843
|
+
return []
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
def gate_failed_introduced(path):
|
|
847
|
+
"""OP 10-28 00:1x: 부하 플레이키 — 같은 묶음이 실행마다 다른 시험을 introduced 로 낸다(node-b Pod 51·mbp 부하 100).
|
|
848
|
+
primary 가 failed 면 --retry-host 로 지정한 실제 호스트에서 1회 재판정 — 진짜 회귀면 거기서도 재현돼 거부된다."""
|
|
849
|
+
try:
|
|
850
|
+
data = json.loads(Path(path).read_text())
|
|
851
|
+
except Exception:
|
|
852
|
+
return False
|
|
853
|
+
typecheck = data.get('typecheck')
|
|
854
|
+
always_ratchets = data.get('trainAlwaysRatchets')
|
|
855
|
+
return (data.get('verdict') == 'failed'
|
|
856
|
+
or (isinstance(typecheck, dict) and typecheck.get('status') == 'failed')
|
|
857
|
+
or (isinstance(always_ratchets, dict) and always_ratchets.get('status') == 'failed'))
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
def parse_typecheck_error_lines(text):
|
|
861
|
+
"""Keep compiler error TS lines and extract file locations when present."""
|
|
862
|
+
records = []
|
|
863
|
+
ansi = re.compile(r'\x1b\[[0-?]*[ -/]*[@-~]')
|
|
864
|
+
patterns = (
|
|
865
|
+
re.compile(r'^(?P<file>.+?)\((?P<line>\d+),(?P<column>\d+)\):\s*error TS(?P<code>\d+):\s*(?P<message>.*)$'),
|
|
866
|
+
re.compile(r'^(?P<file>.+?):(?P<line>\d+):(?P<column>\d+)\s+-\s+error TS(?P<code>\d+):\s*(?P<message>.*)$'),
|
|
867
|
+
re.compile(r'^(?P<file>.+?):\s*error TS(?P<code>\d+):\s*(?P<message>.*)$'),
|
|
868
|
+
)
|
|
869
|
+
for source in text.splitlines():
|
|
870
|
+
raw = ansi.sub('', source).strip()
|
|
871
|
+
if not re.search(r'\berror TS\d+:', raw):
|
|
872
|
+
continue
|
|
873
|
+
match = next((pattern.match(raw) for pattern in patterns if pattern.match(raw)), None)
|
|
874
|
+
records.append({
|
|
875
|
+
'raw': raw,
|
|
876
|
+
'file': _repo_path(match.group('file')) if match else None,
|
|
877
|
+
'line': int(match.group('line')) if match and match.groupdict().get('line') else None,
|
|
878
|
+
'column': int(match.group('column')) if match and match.groupdict().get('column') else None,
|
|
879
|
+
'code': match.group('code') if match else None,
|
|
880
|
+
'message': match.group('message') if match else None,
|
|
881
|
+
'prs': [],
|
|
882
|
+
})
|
|
883
|
+
return records
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
def _repo_path(path):
|
|
887
|
+
if not path:
|
|
888
|
+
return ''
|
|
889
|
+
value = path.replace('\\', '/')
|
|
890
|
+
marker = '/elanous-agent/'
|
|
891
|
+
if marker in value:
|
|
892
|
+
value = value.rsplit(marker, 1)[1]
|
|
893
|
+
while value.startswith('./'):
|
|
894
|
+
value = value[2:]
|
|
895
|
+
return value
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
def attribute_typecheck_errors(errors, pr_files):
|
|
899
|
+
"""Attach each compiler location to every queued PR that changed that path."""
|
|
900
|
+
attributed = set()
|
|
901
|
+
normalized_files = {
|
|
902
|
+
str(pr): sorted({_repo_path(path) for path in files if _repo_path(path)})
|
|
903
|
+
for pr, files in pr_files.items()
|
|
904
|
+
}
|
|
905
|
+
for error in errors:
|
|
906
|
+
file_path = _repo_path(error.get('file'))
|
|
907
|
+
matches = sorted(pr for pr, files in normalized_files.items()
|
|
908
|
+
if any(file_path == path or file_path.endswith('/' + path) for path in files)) if file_path else []
|
|
909
|
+
error['prs'] = matches
|
|
910
|
+
attributed.update(matches)
|
|
911
|
+
return sorted(attributed)
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
def changed_line_hunks(repo, base, head):
|
|
915
|
+
"""Return added/changed line ranges and bounded diff evidence per path."""
|
|
916
|
+
diff = command(['git', 'diff', '--no-ext-diff', '--unified=3', base, head], repo, 60)
|
|
917
|
+
if diff.returncode:
|
|
918
|
+
raise RuntimeError(f'typecheck attribution diff failed {head[:12]}: {diff.stderr[-500:]}')
|
|
919
|
+
hunks, current = {}, None
|
|
920
|
+
for line in diff.stdout.splitlines():
|
|
921
|
+
if line.startswith('+++ b/'):
|
|
922
|
+
current = _repo_path(line[6:])
|
|
923
|
+
hunks.setdefault(current, [])
|
|
924
|
+
elif line.startswith('@@') and current:
|
|
925
|
+
match = re.search(r'\+(\d+)(?:,(\d+))?', line)
|
|
926
|
+
if match:
|
|
927
|
+
start = int(match.group(1)); count = int(match.group(2) or '1')
|
|
928
|
+
hunks[current].append({'start': start, 'end': start + max(count, 1) - 1,
|
|
929
|
+
'evidence': line})
|
|
930
|
+
elif current and hunks[current]:
|
|
931
|
+
evidence = hunks[current][-1].setdefault('lines', [])
|
|
932
|
+
if len(evidence) < 10:
|
|
933
|
+
evidence.append(line)
|
|
934
|
+
return hunks
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
def typecheck_hunk_attribution(repo, base, rows, errors):
|
|
938
|
+
by_pr = {row.pr: changed_line_hunks(repo, base, row.head) for row in rows}
|
|
939
|
+
records = []
|
|
940
|
+
for error in errors:
|
|
941
|
+
path, line_no = _repo_path(error.get('file')), error.get('line')
|
|
942
|
+
matches = []
|
|
943
|
+
path_candidates = []
|
|
944
|
+
if path:
|
|
945
|
+
for pr, paths in by_pr.items():
|
|
946
|
+
for changed_path, ranges in paths.items():
|
|
947
|
+
if path == changed_path or path.endswith('/' + changed_path):
|
|
948
|
+
path_candidates.extend((pr, changed_path, hunk) for hunk in ranges)
|
|
949
|
+
if line_no and hunk['start'] <= line_no <= hunk['end']:
|
|
950
|
+
matches.append({'pr': pr, 'path': changed_path,
|
|
951
|
+
'hunk': f"{hunk['start']}-{hunk['end']}",
|
|
952
|
+
'precision': 'file-line',
|
|
953
|
+
'evidence': '\n'.join(hunk.get('lines', []))[:1200]})
|
|
954
|
+
# The current main-delta script strips line/column while normalizing diagnostics.
|
|
955
|
+
# A changed-file fallback is safe only when exactly one PR hunk owns that path.
|
|
956
|
+
unique_owners = {(pr, changed_path) for pr, changed_path, _ in path_candidates}
|
|
957
|
+
if not line_no and len(unique_owners) == 1:
|
|
958
|
+
pr, changed_path = next(iter(unique_owners))
|
|
959
|
+
for _, _, hunk in path_candidates:
|
|
960
|
+
matches.append({'pr': pr, 'path': changed_path,
|
|
961
|
+
'hunk': f"{hunk['start']}-{hunk['end']}", 'precision': 'file-only-singleton',
|
|
962
|
+
'evidence': '\n'.join(hunk.get('lines', []))[:1200]})
|
|
963
|
+
error['hunkMatches'] = matches
|
|
964
|
+
records.append(error)
|
|
965
|
+
return records
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
def row_owner(row, repo_root):
|
|
969
|
+
"""Resolve only from trusted seat/workspace roots; branch-name fragments are not addresses."""
|
|
970
|
+
path = row.tree.rstrip('/') if row.tree else ''
|
|
971
|
+
normalized = path.replace('\\', '/').lower()
|
|
972
|
+
# Known pane-only workspaces carry their seat in the workspace root; the
|
|
973
|
+
# trailing worktree name (e.g. priority27-launch-stall) is not an owner.
|
|
974
|
+
if re.search(r'/(?:private/)?tmp/goalauth-harvest(?:[./-]|$)', normalized):
|
|
975
|
+
return 'GOALAUTH'
|
|
976
|
+
if re.search(r'/work/fprint-[^/]+(?:/|$)', normalized):
|
|
977
|
+
return 'FPRINT'
|
|
978
|
+
valid_seats = {p.name.upper() for p in (Path.home() / 'elanous-hq/seats').iterdir()
|
|
979
|
+
if p.is_dir() and re.fullmatch(r'[A-Za-z][A-Za-z0-9_]{0,31}', p.name)}
|
|
980
|
+
parts = Path(path).parts if path else ()
|
|
981
|
+
for marker in ('worktrees', 'seats'):
|
|
982
|
+
if marker in parts:
|
|
983
|
+
idx = parts.index(marker)
|
|
984
|
+
if idx + 1 < len(parts):
|
|
985
|
+
seat = parts[idx + 1].upper()
|
|
986
|
+
if seat in valid_seats:
|
|
987
|
+
return seat
|
|
988
|
+
# A seat-prefixed workspace folder is trusted only when that seat exists.
|
|
989
|
+
if parts:
|
|
990
|
+
candidate = parts[-1].split('-', 1)[0].upper()
|
|
991
|
+
if candidate in valid_seats:
|
|
992
|
+
return candidate
|
|
993
|
+
return 'OP'
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
def send_typecheck_owner(owner, body, repo_root):
|
|
997
|
+
"""Send to a real seat mailbox, or use the known pane for GOALAUTH."""
|
|
998
|
+
if owner == 'GOALAUTH':
|
|
999
|
+
return subprocess.run(['zsh', str(Path.home() / 'elanous-hq/seat-state/OP/tools/pane-say.sh'),
|
|
1000
|
+
'wJ:pR', body], capture_output=True, text=True, timeout=60)
|
|
1001
|
+
return subprocess.run(['eln', 'msg', 'post', '--from', 'TRAIN', '--to', owner,
|
|
1002
|
+
'--kind', 'report', '--body', body], capture_output=True,
|
|
1003
|
+
text=True, timeout=60)
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
def record_typecheck_rejections(repo, base, rows, summary_path, artifacts, log_path, post_op_summary=True):
|
|
1007
|
+
"""Persist a no-strike typecheck marker and mail owners diagnostics intersecting their PR hunks."""
|
|
1008
|
+
summary_path = Path(summary_path)
|
|
1009
|
+
try:
|
|
1010
|
+
data = json.loads(summary_path.read_text())
|
|
1011
|
+
except Exception:
|
|
1012
|
+
data = {}
|
|
1013
|
+
tc = data.get('typecheck') if isinstance(data, dict) else None
|
|
1014
|
+
status = tc.get('status') if isinstance(tc, dict) else 'missing'
|
|
1015
|
+
if status not in ('failed', 'unmeasured', 'missing'):
|
|
1016
|
+
return
|
|
1017
|
+
errors = tc.get('errors', []) if isinstance(tc, dict) else []
|
|
1018
|
+
if status == 'failed' and not errors and log_path and Path(log_path).is_file():
|
|
1019
|
+
errors = parse_typecheck_error_lines(Path(log_path).read_text(errors='replace'))
|
|
1020
|
+
matched = typecheck_hunk_attribution(repo, base, rows, errors) if errors else []
|
|
1021
|
+
by_pr = {}
|
|
1022
|
+
for error in matched:
|
|
1023
|
+
for match in error.get('hunkMatches', []):
|
|
1024
|
+
by_pr.setdefault(match['pr'], []).append((error, match))
|
|
1025
|
+
marker_path = Path(artifacts) / 'typecheck-rejections.json'
|
|
1026
|
+
previous = {}
|
|
1027
|
+
if marker_path.is_file():
|
|
1028
|
+
try: previous = json.loads(marker_path.read_text())
|
|
1029
|
+
except Exception: previous = {}
|
|
1030
|
+
entries = previous.get('prs', {}) if isinstance(previous, dict) else {}
|
|
1031
|
+
previous_entries = json.loads(json.dumps(entries))
|
|
1032
|
+
row_map = {row.pr: row for row in rows}
|
|
1033
|
+
for row in rows:
|
|
1034
|
+
pr = row.pr
|
|
1035
|
+
if pr in by_pr:
|
|
1036
|
+
entries[pr] = {'head': row.head, 'owner': row_owner(row, repo),
|
|
1037
|
+
'status': 'typecheck-rejected-no-strike',
|
|
1038
|
+
'diagnostics': [error['raw'] for error, _ in by_pr[pr]],
|
|
1039
|
+
'hunks': [match for _, match in by_pr[pr]]}
|
|
1040
|
+
else:
|
|
1041
|
+
entries.setdefault(pr, {'head': row.head, 'status': f'typecheck-{status}-no-strike',
|
|
1042
|
+
'reason': (tc or {}).get('reason', 'diagnostic did not intersect a unique PR hunk')})
|
|
1043
|
+
marker = {'schema': 1, 'base': base, 'summary': str(summary_path), 'prs': entries}
|
|
1044
|
+
marker_path.write_text(json.dumps(marker, indent=2) + '\n')
|
|
1045
|
+
mailed = []
|
|
1046
|
+
for pr, evidence in by_pr.items():
|
|
1047
|
+
old = previous_entries.get(pr, {})
|
|
1048
|
+
owner = row_owner(row_map[pr], repo)
|
|
1049
|
+
if (old.get('head') == row_map[pr].head and old.get('owner') == owner
|
|
1050
|
+
and old.get('diagnostics') == [e['raw'] for e, _ in evidence]):
|
|
1051
|
+
continue
|
|
1052
|
+
lines = []
|
|
1053
|
+
for error, match in evidence:
|
|
1054
|
+
lines.append(f"{error['raw']}\n닿는 PR hunk {match['path']}:{match['hunk']} · precision={match['precision']} (PR #{pr})\n{match['evidence']}")
|
|
1055
|
+
body = (f'[TRAIN typecheck] #{pr} 타입검사 거부 · strike 없음 · 기준 main={base} · head={row_map[pr].head[:12]} · batch={Path(artifacts).name}\n'
|
|
1056
|
+
+ '\n'.join(lines) + f'\n기록 {marker_path}')
|
|
1057
|
+
sent = send_typecheck_owner(owner, body, repo)
|
|
1058
|
+
log(f'typecheck rejection marker #{pr} owner={owner} mail_rc={sent.returncode}')
|
|
1059
|
+
if sent.returncode == 0:
|
|
1060
|
+
entries[pr]['owner'] = owner
|
|
1061
|
+
mailed.append((pr, owner))
|
|
1062
|
+
if mailed and post_op_summary:
|
|
1063
|
+
marker_path.write_text(json.dumps(marker, indent=2) + '\n')
|
|
1064
|
+
summary_body = f"[TRAIN] typecheck 귀속 {len(mailed)}건 발송: " + ', '.join(f'#{pr}→{owner}' for pr, owner in mailed)
|
|
1065
|
+
subprocess.run(['eln', 'msg', 'post', '--from', 'TRAIN', '--to', 'OP',
|
|
1066
|
+
'--kind', 'report', '--body', summary_body], capture_output=True,
|
|
1067
|
+
text=True, timeout=60)
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
def enrich_typecheck_summary(summary_path, log_path, pr_files):
|
|
1071
|
+
"""Recover remote tsc output into the local summary artifact before retry selection."""
|
|
1072
|
+
summary_path, log_path = Path(summary_path), Path(log_path)
|
|
1073
|
+
data = json.loads(summary_path.read_text())
|
|
1074
|
+
typecheck = data.get('typecheck')
|
|
1075
|
+
if not isinstance(typecheck, dict) or typecheck.get('status') != 'failed':
|
|
1076
|
+
return data
|
|
1077
|
+
errors = parse_typecheck_error_lines(log_path.read_text(errors='replace'))
|
|
1078
|
+
attributed = attribute_typecheck_errors(errors, pr_files)
|
|
1079
|
+
typecheck['errorLines'] = [error['raw'] for error in errors]
|
|
1080
|
+
typecheck['errors'] = errors
|
|
1081
|
+
typecheck['prFiles'] = {str(pr): sorted(files) for pr, files in pr_files.items()}
|
|
1082
|
+
typecheck['attributedPrs'] = attributed
|
|
1083
|
+
typecheck['unattributedErrorLines'] = [error['raw'] for error in errors if not error['prs']]
|
|
1084
|
+
typecheck['localLog'] = str(log_path)
|
|
1085
|
+
summary_path.write_text(json.dumps(data, indent=2) + '\n')
|
|
1086
|
+
return data
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
def typecheck_retry_rows(rows, summary_path):
|
|
1090
|
+
"""Retry with only PRs whose diagnostics uniquely intersect a changed hunk removed."""
|
|
1091
|
+
data = json.loads(Path(summary_path).read_text())
|
|
1092
|
+
typecheck = data.get('typecheck')
|
|
1093
|
+
if not isinstance(typecheck, dict) or typecheck.get('status') != 'failed':
|
|
1094
|
+
return list(rows), []
|
|
1095
|
+
marker_path = Path(summary_path).parent / 'typecheck-rejections.json'
|
|
1096
|
+
try:
|
|
1097
|
+
marker = json.loads(marker_path.read_text())
|
|
1098
|
+
entries = marker.get('prs', {}) if isinstance(marker, dict) else {}
|
|
1099
|
+
except (OSError, ValueError, TypeError):
|
|
1100
|
+
entries = {}
|
|
1101
|
+
heads = {row.pr: row.head for row in rows}
|
|
1102
|
+
excluded = {str(pr) for pr, entry in entries.items()
|
|
1103
|
+
if isinstance(entry, dict) and entry.get('status') == 'typecheck-rejected-no-strike'
|
|
1104
|
+
and heads.get(str(pr)) == entry.get('head')}
|
|
1105
|
+
return [row for row in rows if row.pr not in excluded], sorted(excluded)
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
def typecheck_retry_plan(rows, summary_path):
|
|
1109
|
+
"""Treat attribution that excludes the entire batch as no usable attribution."""
|
|
1110
|
+
retry, excluded = typecheck_retry_rows(rows, summary_path)
|
|
1111
|
+
if excluded and not retry:
|
|
1112
|
+
return list(rows), [], True
|
|
1113
|
+
return retry, excluded, False
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
def typecheck_isolation_partition(rows, outcomes):
|
|
1117
|
+
"""Exclude singleton-proven failures; all-excluded falls back to the intact batch."""
|
|
1118
|
+
by_pr = {str(item.get('pr')): item.get('status') for item in outcomes}
|
|
1119
|
+
if len(by_pr) != len(outcomes) or set(by_pr) != {str(row.pr) for row in rows}:
|
|
1120
|
+
raise RuntimeError('single-PR typecheck isolation result set mismatch')
|
|
1121
|
+
if any(status not in ('passed', 'failed') for status in by_pr.values()):
|
|
1122
|
+
raise RuntimeError('single-PR typecheck isolation contains unmeasured result')
|
|
1123
|
+
excluded = sorted(pr for pr, status in by_pr.items() if status == 'failed')
|
|
1124
|
+
survivors = [row for row in rows if by_pr[str(row.pr)] == 'passed']
|
|
1125
|
+
if not survivors:
|
|
1126
|
+
return list(rows), []
|
|
1127
|
+
return survivors, excluded
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
def changed_files_by_pr(repo, base, rows):
|
|
1131
|
+
result = {}
|
|
1132
|
+
for row in rows:
|
|
1133
|
+
diff = command(['git', 'diff', '--name-only', base, row.head], repo)
|
|
1134
|
+
if diff.returncode:
|
|
1135
|
+
raise RuntimeError(f'PR changed-file attribution unavailable #{row.pr}: {diff.stderr[-1000:]}')
|
|
1136
|
+
result[row.pr] = sorted({line for line in diff.stdout.splitlines() if line})
|
|
1137
|
+
return result
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
def plan_retry_for_batch(rows, primary_pr_files, *, attributed, attributed_pr_files=None):
|
|
1141
|
+
"""Pure retry-plan entrypoint shared by the train manager and its simulation replay."""
|
|
1142
|
+
retry_rows = list(rows)
|
|
1143
|
+
if attributed:
|
|
1144
|
+
if not isinstance(attributed_pr_files, dict):
|
|
1145
|
+
raise RuntimeError('attributed retry requires a measured per-PR file map')
|
|
1146
|
+
retry_pr_files = attributed_pr_files
|
|
1147
|
+
else:
|
|
1148
|
+
retry_pr_files = primary_pr_files
|
|
1149
|
+
return {'stage': 'retry', 'rows': retry_rows, 'pr_files': retry_pr_files,
|
|
1150
|
+
'attributed': bool(attributed)}
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
def classify_batch_gate(repo, base, rows, pr_files):
|
|
1154
|
+
"""Use the policy classifier on exact per-PR paths; any uncertainty means full gate."""
|
|
1155
|
+
decisions = []
|
|
1156
|
+
try:
|
|
1157
|
+
for row in rows:
|
|
1158
|
+
paths = pr_files.get(row.pr)
|
|
1159
|
+
if not paths:
|
|
1160
|
+
return 'T2', [{'pr': row.pr, 'tier': 'T2', 'rules': ['changed-files-unavailable']}]
|
|
1161
|
+
diff = command(['git', 'diff', '--numstat', base, row.head], repo)
|
|
1162
|
+
if diff.returncode:
|
|
1163
|
+
return 'T2', [{'pr': row.pr, 'tier': 'T2', 'rules': ['changed-line-count-unavailable']}]
|
|
1164
|
+
additions = deletions = 0
|
|
1165
|
+
for line in diff.stdout.splitlines():
|
|
1166
|
+
fields = line.split('\t', 2)
|
|
1167
|
+
if len(fields) >= 2:
|
|
1168
|
+
if fields[0].isdigit(): additions += int(fields[0])
|
|
1169
|
+
if fields[1].isdigit(): deletions += int(fields[1])
|
|
1170
|
+
changes = [{'path': path, 'additions': 0, 'deletions': 0} for path in paths]
|
|
1171
|
+
changes[0]['additions'] = additions
|
|
1172
|
+
changes[0]['deletions'] = deletions
|
|
1173
|
+
decision = _gate_tier.classify({'changes': changes})
|
|
1174
|
+
decisions.append({'pr': row.pr, **decision.as_json()})
|
|
1175
|
+
except Exception as exc:
|
|
1176
|
+
return 'T2', [{'tier': 'T2', 'rules': [f'classifier-error:{type(exc).__name__}']}]
|
|
1177
|
+
tier = 'T2' if any(item['tier'] == 'T2' for item in decisions) else 'T1'
|
|
1178
|
+
return tier, decisions
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
def gate_failure_file_attribution(pr_files, rows, summary_path, artifacts):
|
|
1182
|
+
"""Resolve introduced-test and always-ratchet paths to changed PR files.
|
|
1183
|
+
|
|
1184
|
+
Attribution is fail-closed: a path must be changed by exactly one member.
|
|
1185
|
+
The result is a durable no-ambiguity marker consumed by the retry planner.
|
|
1186
|
+
"""
|
|
1187
|
+
summary_path = Path(summary_path)
|
|
1188
|
+
artifacts = Path(artifacts)
|
|
1189
|
+
try:
|
|
1190
|
+
summary = json.loads(summary_path.read_text())
|
|
1191
|
+
except (OSError, ValueError, TypeError):
|
|
1192
|
+
return [], []
|
|
1193
|
+
normalized = {str(pr): {_repo_path(path) for path in files}
|
|
1194
|
+
for pr, files in pr_files.items()}
|
|
1195
|
+
|
|
1196
|
+
failures = []
|
|
1197
|
+
for line in str(summary.get('verdictLine', '')).splitlines():
|
|
1198
|
+
if not line.startswith('- introduced: '):
|
|
1199
|
+
continue
|
|
1200
|
+
path = _repo_path(line[len('- introduced: '):].split(' > ', 1)[0].strip())
|
|
1201
|
+
if path:
|
|
1202
|
+
failures.append({'cause': 'introduced', 'path': path, 'evidence': line})
|
|
1203
|
+
|
|
1204
|
+
ratchet_path = artifacts / 'remote-artifacts' / 'primary-art' / 'always-ratchets.log'
|
|
1205
|
+
if not ratchet_path.is_file():
|
|
1206
|
+
ratchet_path = artifacts / 'primary-art' / 'always-ratchets.log'
|
|
1207
|
+
if ratchet_path.is_file():
|
|
1208
|
+
lines = ratchet_path.read_text(errors='replace').splitlines()
|
|
1209
|
+
for fail_index, line in enumerate(lines):
|
|
1210
|
+
if not re.match(r'^\(fail\)', line):
|
|
1211
|
+
continue
|
|
1212
|
+
header_index = next((i for i in range(fail_index - 1, -1, -1)
|
|
1213
|
+
if re.match(r'^[A-Za-z0-9_./@+-]+\.test\.tsx?:$', lines[i])), None)
|
|
1214
|
+
if header_index is None:
|
|
1215
|
+
continue
|
|
1216
|
+
header = lines[header_index][:-1]
|
|
1217
|
+
block = '\n'.join(lines[header_index:fail_index + 1])
|
|
1218
|
+
for path in re.findall(r'["\']((?:[A-Za-z0-9_.@+-]+/)+[A-Za-z0-9_.@+-]+)["\']', block):
|
|
1219
|
+
path = _repo_path(path)
|
|
1220
|
+
if path and not path.endswith('.test.ts'):
|
|
1221
|
+
failures.append({'cause': 'always-ratchet', 'path': path,
|
|
1222
|
+
'evidence': f'{header}: {path}'})
|
|
1223
|
+
|
|
1224
|
+
# Deduplicate path/cause, then retain only unique file owners.
|
|
1225
|
+
owned, attributed = [], set()
|
|
1226
|
+
seen = set()
|
|
1227
|
+
for failure in failures:
|
|
1228
|
+
key = (failure['cause'], failure['path'])
|
|
1229
|
+
if key in seen:
|
|
1230
|
+
continue
|
|
1231
|
+
seen.add(key)
|
|
1232
|
+
owners = sorted(pr for pr, files in normalized.items()
|
|
1233
|
+
if failure['path'] in files)
|
|
1234
|
+
failure['owners'] = owners
|
|
1235
|
+
if len(owners) == 1:
|
|
1236
|
+
failure['pr'] = owners[0]
|
|
1237
|
+
attributed.add(owners[0])
|
|
1238
|
+
owned.append(failure)
|
|
1239
|
+
row_heads = {str(row.pr): row.head for row in rows}
|
|
1240
|
+
entries = {}
|
|
1241
|
+
for pr in sorted(attributed):
|
|
1242
|
+
entries[pr] = {'head': row_heads[pr], 'status': 'gate-rejected-no-strike',
|
|
1243
|
+
'failures': [item for item in owned if item.get('pr') == pr]}
|
|
1244
|
+
marker = {'schema': 1, 'base': summary.get('base40'),
|
|
1245
|
+
'integrationHead': summary.get('head40'), 'summary': str(summary_path),
|
|
1246
|
+
'failures': owned, 'prs': entries}
|
|
1247
|
+
marker_path = artifacts / 'gate-rejections.json'
|
|
1248
|
+
marker_path.write_text(json.dumps(marker, indent=2) + '\n')
|
|
1249
|
+
return sorted(attributed), owned
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
def gate_attributed_retry_rows(rows, artifacts):
|
|
1253
|
+
marker_path = Path(artifacts) / 'gate-rejections.json'
|
|
1254
|
+
try:
|
|
1255
|
+
marker = json.loads(marker_path.read_text())
|
|
1256
|
+
entries = marker.get('prs', {}) if isinstance(marker, dict) else {}
|
|
1257
|
+
except (OSError, ValueError, TypeError):
|
|
1258
|
+
entries = {}
|
|
1259
|
+
heads = {str(row.pr): row.head for row in rows}
|
|
1260
|
+
excluded = {str(pr) for pr, entry in entries.items()
|
|
1261
|
+
if isinstance(entry, dict) and entry.get('status') == 'gate-rejected-no-strike'
|
|
1262
|
+
and heads.get(str(pr)) == entry.get('head')}
|
|
1263
|
+
remaining = [row for row in rows if str(row.pr) not in excluded]
|
|
1264
|
+
return (remaining if remaining else list(rows)), sorted(excluded if remaining else [])
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
def remote_integration_paths(host, run_id, suffix, home):
|
|
1268
|
+
if not re.fullmatch(r'[A-Za-z0-9._-]+', host) or not re.fullmatch(r'[0-9]+', str(run_id)):
|
|
1269
|
+
raise ValueError('invalid remote integration identity')
|
|
1270
|
+
if not re.fullmatch(r'[A-Za-z0-9._-]+', suffix):
|
|
1271
|
+
raise ValueError('invalid remote integration suffix')
|
|
1272
|
+
if not str(home).startswith('/'):
|
|
1273
|
+
raise ValueError('remote integration home must be absolute')
|
|
1274
|
+
root = f'{home}/elanous-hq/seat-state/OP/train-artifacts/batch-{run_id}'
|
|
1275
|
+
return (f'{root}/integration-{suffix}', f'{root}/integration-{suffix}.bundle')
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
def remote_batch_root(home, run_id, suffix):
|
|
1279
|
+
if not re.fullmatch(r'[0-9]+', str(run_id)) or not re.fullmatch(r'[A-Za-z0-9._-]+', suffix):
|
|
1280
|
+
raise ValueError('invalid remote batch identity')
|
|
1281
|
+
if not str(home).startswith('/'):
|
|
1282
|
+
raise ValueError('remote batch home must be absolute')
|
|
1283
|
+
return f'{home}/elanous-hq/seat-state/OP/train-artifacts/batch-{run_id}/{suffix}'
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
def build_remote_integration_command(base, rows, worktree, bundle, run_id, suffix):
|
|
1287
|
+
"""Create the exact PR subset integration tree and bundle in the batch host clone."""
|
|
1288
|
+
if not re.fullmatch(r'[0-9a-f]{40}', base):
|
|
1289
|
+
raise ValueError('invalid integration base')
|
|
1290
|
+
if not rows:
|
|
1291
|
+
raise ValueError('cannot build an empty integration')
|
|
1292
|
+
generated_pattern = generated_output_ere()
|
|
1293
|
+
lines = [
|
|
1294
|
+
'set -euo pipefail',
|
|
1295
|
+
'umask 022',
|
|
1296
|
+
'cd ~/source/elanous-agent',
|
|
1297
|
+
'git fetch -q origin main',
|
|
1298
|
+
f'git cat-file -e {base}^{{commit}}',
|
|
1299
|
+
f'worktree={shlex.quote(worktree)}',
|
|
1300
|
+
f'bundle={shlex.quote(bundle)}',
|
|
1301
|
+
'[ ! -e "$worktree" ] && [ ! -e "$bundle" ]',
|
|
1302
|
+
'mkdir -p "$(dirname "$worktree")"',
|
|
1303
|
+
'git worktree add --detach "$worktree" ' + shlex.quote(base),
|
|
1304
|
+
'if git remote get-url github >/dev/null 2>&1; then pull_remote=github; else pull_remote=origin; fi',
|
|
1305
|
+
]
|
|
1306
|
+
for row in rows:
|
|
1307
|
+
if not str(row.pr).isdigit() or not re.fullmatch(r'[0-9a-f]{40}', row.head):
|
|
1308
|
+
raise ValueError('invalid integration PR/head')
|
|
1309
|
+
ref = f'refs/opt-train/{run_id}/{suffix}/{row.pr}'
|
|
1310
|
+
pull_ref = f'refs/pull/{row.pr}/head'
|
|
1311
|
+
lines.extend([
|
|
1312
|
+
f'git fetch -q "$pull_remote" +{pull_ref}:{pull_ref}',
|
|
1313
|
+
f'pulled=$(git rev-parse {pull_ref})',
|
|
1314
|
+
f'git update-ref {ref} "$pulled"',
|
|
1315
|
+
f'actual=$(git rev-parse {ref})',
|
|
1316
|
+
f'[ "$actual" = {row.head} ] || {{ echo "integration head mismatch #{row.pr}:$actual"; exit 41; }}',
|
|
1317
|
+
f'if git -C "$worktree" -c user.name=OP-train -c user.email=op-train@local merge --no-ff --no-edit {ref}; then',
|
|
1318
|
+
' :',
|
|
1319
|
+
'else',
|
|
1320
|
+
' rc=$?',
|
|
1321
|
+
' if [ -n "$(git -C "$worktree" ls-files -u)" ]; then',
|
|
1322
|
+
' mapfile -t conflict_paths < <(git -C "$worktree" diff --name-only --diff-filter=U)',
|
|
1323
|
+
f' if [ "${{#conflict_paths[@]}}" -gt 0 ] && ! printf "%s\\n" "${{conflict_paths[@]}}" | grep -Ev "^({generated_pattern})$" >/dev/null; then',
|
|
1324
|
+
' git -C "$worktree" checkout --ours -- "${conflict_paths[@]}"',
|
|
1325
|
+
' git -C "$worktree" add -- "${conflict_paths[@]}"',
|
|
1326
|
+
' git -C "$worktree" -c user.name=OP-train -c user.email=op-train@local commit --no-edit',
|
|
1327
|
+
' echo "TRAIN_GENERATED_CONFLICTS_KEPT_FOR_REGEN #{row.pr}"',
|
|
1328
|
+
' else echo "TRAIN_INTEGRATION_CONFLICT #{row.pr}"; exit "$rc"; fi',
|
|
1329
|
+
' else echo "TRAIN_INTEGRATION_MERGE_ERROR #{row.pr} rc=$rc" >&2; exit "$rc"; fi',
|
|
1330
|
+
'fi',
|
|
1331
|
+
])
|
|
1332
|
+
lines.extend([
|
|
1333
|
+
'integration=$(git -C "$worktree" rev-parse HEAD)',
|
|
1334
|
+
'[[ "$integration" =~ ^[0-9a-f]{40}$ ]]',
|
|
1335
|
+
'git -C "$worktree" bundle create "$bundle" HEAD ' + shlex.quote(base) + ' ' + shlex.quote('^' + base + '^'),
|
|
1336
|
+
'[ -s "$bundle" ]',
|
|
1337
|
+
'printf "INTEGRATION_HEAD=%s\\nINTEGRATION_BUNDLE=%s\\n" "$integration" "$bundle"',
|
|
1338
|
+
])
|
|
1339
|
+
return '\n'.join(lines)
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
def integrate_rows_remote(host, base, rows, run_id, suffix, resources, remote_homes):
|
|
1343
|
+
"""Build one integration on its batch host and retain exact cleanup ownership."""
|
|
1344
|
+
if host not in remote_homes:
|
|
1345
|
+
remote_homes[host] = resolve_remote_home(host)
|
|
1346
|
+
worktree, bundle = remote_integration_paths(host, run_id, suffix, remote_homes[host])
|
|
1347
|
+
refs = [f'refs/opt-train/{run_id}/{suffix}/{row.pr}' for row in rows]
|
|
1348
|
+
resource = {'host': host, 'worktree': worktree, 'bundle': bundle, 'refs': refs}
|
|
1349
|
+
resources.append(resource) # cleanup also covers a partially-created remote worktree
|
|
1350
|
+
payload = build_remote_integration_command(base, rows, worktree, bundle, run_id, suffix)
|
|
1351
|
+
result = command(ssh_remote_command(host, payload), timeout=900)
|
|
1352
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
1353
|
+
if result.returncode:
|
|
1354
|
+
failed_merge = re.search(r'^TRAIN_INTEGRATION_CONFLICT #([0-9]+)$', output, re.M)
|
|
1355
|
+
detail = output[-1600:]
|
|
1356
|
+
if failed_merge:
|
|
1357
|
+
raise RuntimeError(f'integration merge failed #{failed_merge.group(1)}: {detail}')
|
|
1358
|
+
raise RuntimeError(f'remote integration failed on {host} rc={result.returncode}: {detail}')
|
|
1359
|
+
head = re.search(r'^INTEGRATION_HEAD=([0-9a-f]{40})$', output, re.M)
|
|
1360
|
+
remote_bundle = re.search(r'^INTEGRATION_BUNDLE=(.+)$', output, re.M)
|
|
1361
|
+
if not head or not remote_bundle or remote_bundle.group(1) != bundle:
|
|
1362
|
+
raise RuntimeError(f'remote integration result unmeasured on {host}: {output[-1000:]}')
|
|
1363
|
+
return {'host': host, 'head': head.group(1), 'bundle': bundle, 'worktree': worktree}
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
def cleanup_remote_integrations(resources):
|
|
1367
|
+
"""Remove only the integration worktrees and bundles this invocation created."""
|
|
1368
|
+
errors = []
|
|
1369
|
+
for item in reversed(resources):
|
|
1370
|
+
payload = (
|
|
1371
|
+
'set -e; cd ~/source/elanous-agent; '
|
|
1372
|
+
f'if [ -e {shlex.quote(item["worktree"])} ]; then '
|
|
1373
|
+
f'git worktree remove --force {shlex.quote(item["worktree"])}; fi; '
|
|
1374
|
+
f'rm -f -- {shlex.quote(item["bundle"])}; '
|
|
1375
|
+
+ '; '.join(f'git update-ref -d {shlex.quote(ref)} || true' for ref in item['refs'])
|
|
1376
|
+
+ '; git worktree prune'
|
|
1377
|
+
)
|
|
1378
|
+
result = command(ssh_remote_command(item['host'], payload), timeout=180)
|
|
1379
|
+
if result.returncode:
|
|
1380
|
+
errors.append(f'{item["host"]}:{item["worktree"]} rc={result.returncode}')
|
|
1381
|
+
if errors:
|
|
1382
|
+
raise RuntimeError('remote integration cleanup failed: ' + '; '.join(errors))
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
def cleanup_remote_bundle_copies(copies):
|
|
1386
|
+
"""Remove only cross-host bundle copies staged for retry/handoff gates."""
|
|
1387
|
+
errors = []
|
|
1388
|
+
for item in reversed(copies):
|
|
1389
|
+
result = command(ssh_remote_command(
|
|
1390
|
+
item['host'], f'rm -f -- {shlex.quote(item["path"])}'), timeout=60)
|
|
1391
|
+
if result.returncode:
|
|
1392
|
+
errors.append(f'{item["host"]}:{item["path"]} rc={result.returncode}')
|
|
1393
|
+
if errors:
|
|
1394
|
+
raise RuntimeError('remote retry bundle cleanup failed: ' + '; '.join(errors))
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
def select_gate_summary(primary, retry, base, integration, rows, retry_host='retry host'):
|
|
1398
|
+
if retry is not None and gate_failed_introduced(primary):
|
|
1399
|
+
if gate_is_unmeasured(retry, base, integration):
|
|
1400
|
+
raise RuntimeError(f'{retry_host} retry of failed primary remained unmeasured; landing refused')
|
|
1401
|
+
return validate_gate(retry, base, integration, rows), 2
|
|
1402
|
+
if gate_is_unmeasured(primary, base, integration):
|
|
1403
|
+
if retry is None:
|
|
1404
|
+
raise RuntimeError(f'unmeasured primary gate requires retry on {retry_host}')
|
|
1405
|
+
if gate_is_unmeasured(retry, base, integration):
|
|
1406
|
+
raise RuntimeError(f'{retry_host} retry remained unmeasured; landing refused')
|
|
1407
|
+
return validate_gate(retry, base, integration, rows), 2
|
|
1408
|
+
return validate_gate(primary, base, integration, rows), 1
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
def merge_gate_receipt_marker(log_path, repo):
|
|
1412
|
+
"""Merge the validated remote writer marker into the local common-dir registry."""
|
|
1413
|
+
text = Path(log_path).read_text()
|
|
1414
|
+
markers = re.findall(r'^__GATE_RECEIPTS__([A-Za-z0-9+/=]+)$', text, re.M)
|
|
1415
|
+
if not markers:
|
|
1416
|
+
return {'saved': 0, 'reason': 'remote receipt marker missing'}
|
|
1417
|
+
installed_module = (Path.home() / '.local/share/elanous/current/node_modules/elanous' /
|
|
1418
|
+
'src/self-implement/train-gate-remote.ts').resolve()
|
|
1419
|
+
script = (
|
|
1420
|
+
f'const m=await import({json.dumps(str(installed_module))}); '
|
|
1421
|
+
'const p=m.gateReceiptRegistryPathForRepo(process.cwd()); '
|
|
1422
|
+
'if(!p)process.exit(2); '
|
|
1423
|
+
'console.log(m.mergeGateReceiptRegistryPayload(process.env.ELANOUS_RECEIPT_PAYLOAD,p));'
|
|
1424
|
+
)
|
|
1425
|
+
env = {**os.environ, 'ELANOUS_RECEIPT_PAYLOAD': markers[-1]}
|
|
1426
|
+
result = subprocess.run(['bun', '-e', script], cwd=repo, env=env, text=True,
|
|
1427
|
+
capture_output=True, timeout=60)
|
|
1428
|
+
if result.returncode:
|
|
1429
|
+
return {'saved': 0, 'reason': (result.stderr or result.stdout or 'merge helper failed')[-500:]}
|
|
1430
|
+
try:
|
|
1431
|
+
saved = int(result.stdout.strip().splitlines()[-1])
|
|
1432
|
+
except (ValueError, IndexError):
|
|
1433
|
+
return {'saved': 0, 'reason': 'merge helper returned no count'}
|
|
1434
|
+
return {'saved': saved, 'registry': 'git-common-dir/elanous-host-regate/gate-receipts.json'}
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
def land_single_command(script, run_id, row, side_main, gate_host, summary):
|
|
1438
|
+
return ['zsh', str(script), run_id, row.pr, row.head,
|
|
1439
|
+
side_main[:12], gate_host, str(summary)]
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
def remote_worker_setup(remote_art, remote_tmpdir):
|
|
1443
|
+
"""Keep shared batch artifacts readable while isolating worker temp/state from the host profile."""
|
|
1444
|
+
art = shlex.quote(remote_art)
|
|
1445
|
+
scratch = shlex.quote(remote_tmpdir)
|
|
1446
|
+
state_root = shlex.quote(f'{remote_tmpdir}/state')
|
|
1447
|
+
return (
|
|
1448
|
+
f"umask 022; mkdir -p {art}; "
|
|
1449
|
+
f"umask 077; mkdir -m 700 -p {scratch} {state_root}; "
|
|
1450
|
+
f"chmod 700 {scratch} {state_root}; "
|
|
1451
|
+
f"export TMPDIR={scratch} ELANOUS_STATE_DIR={state_root}; umask 022; "
|
|
1452
|
+
)
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
def remote_dependency_scratch_cleanup(remote_tmpdir, remote_art):
|
|
1456
|
+
"""Clean only this invocation's worktree-deps scratch, without changing its gate rc."""
|
|
1457
|
+
scratch = shlex.quote(remote_tmpdir)
|
|
1458
|
+
art = shlex.quote(remote_art)
|
|
1459
|
+
return (
|
|
1460
|
+
"cleanup_dependency_scratch() { "
|
|
1461
|
+
"cleanup_rc=0; physical_dir() { (CDPATH= cd \"$1\" 2>/dev/null && pwd -P); }; "
|
|
1462
|
+
f"artifact_real=$(physical_dir {art}) || cleanup_rc=$?; "
|
|
1463
|
+
f"scratch_real=$(physical_dir {scratch}) || cleanup_rc=$?; "
|
|
1464
|
+
"if [ \"$cleanup_rc\" -eq 0 ]; then "
|
|
1465
|
+
"expected_scratch=\"${artifact_real%/*}/primary-tmp\"; "
|
|
1466
|
+
"if [ \"$scratch_real\" != \"$expected_scratch\" ]; then cleanup_rc=1; "
|
|
1467
|
+
"else dep_path=\"$scratch_real/state/worktree-deps\"; "
|
|
1468
|
+
"if [ -e \"$dep_path\" ] || [ -L \"$dep_path\" ]; then "
|
|
1469
|
+
"dep_real=$(physical_dir \"$dep_path\") || cleanup_rc=$?; "
|
|
1470
|
+
"if [ \"$cleanup_rc\" -eq 0 ]; then "
|
|
1471
|
+
"case \"$dep_real/\" in \"$scratch_real/\"*) "
|
|
1472
|
+
"if [ \"$dep_real\" = \"$scratch_real\" ]; then cleanup_rc=1; "
|
|
1473
|
+
"else chmod -R u+w -- \"$dep_real\" || cleanup_rc=$?; "
|
|
1474
|
+
"if [ \"$cleanup_rc\" -eq 0 ]; then rm -rf -- \"$dep_real\" || cleanup_rc=$?; fi; fi ;; "
|
|
1475
|
+
"*) cleanup_rc=1 ;; esac; fi; fi; fi; fi; "
|
|
1476
|
+
"printf '[train-batch-cleanup] dependency-scratch rc=%s\\n' \"$cleanup_rc\" >> \"$artifact_real/cleanup.log\" 2>/dev/null || "
|
|
1477
|
+
"printf '[train-batch-cleanup] dependency-scratch rc=%s\\n' \"$cleanup_rc\" >&2; "
|
|
1478
|
+
"return 0; }; "
|
|
1479
|
+
)
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
def remote_worker_cleanup_trap(remote_tree, remote_tmpdir, remote_art, helper=None):
|
|
1483
|
+
"""Run cleanup on EXIT while preserving the command's original status."""
|
|
1484
|
+
tree = shlex.quote(remote_tree)
|
|
1485
|
+
scratch = shlex.quote(remote_tmpdir)
|
|
1486
|
+
helper_cleanup = f"rm -f -- {shlex.quote(helper)}; " if helper else ""
|
|
1487
|
+
return (
|
|
1488
|
+
"cleanup() { cleanup_original_rc=$?; trap - EXIT; "
|
|
1489
|
+
"if [ \"$worktree_created\" = 1 ]; then "
|
|
1490
|
+
f"{remote_dependency_scratch_cleanup(remote_tmpdir, remote_art)} "
|
|
1491
|
+
"cleanup_dependency_scratch; "
|
|
1492
|
+
f"git -C ~/source/elanous-agent worktree remove --force {tree} >/dev/null 2>&1 || true; "
|
|
1493
|
+
"else "
|
|
1494
|
+
f"rmdir -- {shlex.quote(remote_tmpdir + '/state')} {scratch} >/dev/null 2>&1 || true; fi; "
|
|
1495
|
+
f"{helper_cleanup}"
|
|
1496
|
+
"git -C ~/source/elanous-agent worktree prune >/dev/null 2>&1 || true; "
|
|
1497
|
+
"exit \"$cleanup_original_rc\"; }; trap cleanup EXIT; "
|
|
1498
|
+
)
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
def remote_worktree_dependency_prep(remote_art):
|
|
1502
|
+
"""Install and record dependencies before any gate runs in a fresh remote worktree."""
|
|
1503
|
+
art = shlex.quote(remote_art)
|
|
1504
|
+
prep_log = shlex.quote(f'{remote_art}/dependency-prepare.log')
|
|
1505
|
+
return (
|
|
1506
|
+
f"mkdir -p {art}; "
|
|
1507
|
+
f"printf '%s\\n' '[worktree-prepare] root bun install --frozen-lockfile' > {prep_log}; "
|
|
1508
|
+
f"bun install --frozen-lockfile >> {prep_log} 2>&1 || "
|
|
1509
|
+
f"{{ rc=$?; echo \"[worktree-prepare] root install failed rc=$rc\" >> {prep_log}; "
|
|
1510
|
+
f"tail -n 30 {prep_log}; exit $rc; }}; "
|
|
1511
|
+
f"(cd apps/pwa && bun install --frozen-lockfile) >> {prep_log} 2>&1 || "
|
|
1512
|
+
f"{{ rc=$?; echo \"[worktree-prepare] apps/pwa install failed rc=$rc\" >> {prep_log}; "
|
|
1513
|
+
f"tail -n 30 {prep_log}; exit $rc; }}; "
|
|
1514
|
+
"test -f node_modules/typescript/package.json || "
|
|
1515
|
+
f"{{ echo '[worktree-prepare] typescript package missing after frozen install' | tee -a {prep_log}; "
|
|
1516
|
+
"exit 86; }; "
|
|
1517
|
+
f"echo '[worktree-prepare] dependencies ready; typescript present' >> {prep_log}; "
|
|
1518
|
+
"echo WORKTREE_DEPENDENCIES_READY"
|
|
1519
|
+
)
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
def recover_completed_shard_verdict(repo, artifact_dir, base, head):
|
|
1523
|
+
# Aggregate the bound per-shard JUnit receipts when the final summary write timed out.
|
|
1524
|
+
artifact_dir = Path(artifact_dir)
|
|
1525
|
+
try:
|
|
1526
|
+
progress = json.loads((artifact_dir / 'progress.json').read_text())
|
|
1527
|
+
except (OSError, ValueError):
|
|
1528
|
+
return None
|
|
1529
|
+
done, total = progress.get('completedShards'), progress.get('totalShards')
|
|
1530
|
+
files_done, files_total = progress.get('completedFiles'), progress.get('totalFiles')
|
|
1531
|
+
if not (isinstance(done, int) and done > 0 and done == total
|
|
1532
|
+
and isinstance(files_done, int) and files_done == files_total):
|
|
1533
|
+
return None
|
|
1534
|
+
|
|
1535
|
+
pairs = {}
|
|
1536
|
+
pattern = re.compile(r'^shard-(\d+)-(\d+)-(current|baseline)\.result\.json$')
|
|
1537
|
+
for result_path in artifact_dir.glob('shard-*-*.result.json'):
|
|
1538
|
+
match = pattern.match(result_path.name)
|
|
1539
|
+
if not match:
|
|
1540
|
+
continue
|
|
1541
|
+
shard_id, attempt, side = match.group(1), int(match.group(2)), match.group(3)
|
|
1542
|
+
try:
|
|
1543
|
+
result = json.loads(result_path.read_text())
|
|
1544
|
+
except (OSError, ValueError):
|
|
1545
|
+
continue
|
|
1546
|
+
junit_path = artifact_dir / Path(str(result.get('junitPath') or '')).name
|
|
1547
|
+
if not result.get('junitPath') or not junit_path.is_file() or result.get('signal'):
|
|
1548
|
+
continue
|
|
1549
|
+
pairs.setdefault(shard_id, {}).setdefault(attempt, {})[side] = (result, junit_path, result_path)
|
|
1550
|
+
|
|
1551
|
+
shards, attempts, details, file_count = [], [], [], 0
|
|
1552
|
+
for shard_id in sorted(pairs, key=int):
|
|
1553
|
+
complete = [(number, pair) for number, pair in pairs[shard_id].items()
|
|
1554
|
+
if 'current' in pair and 'baseline' in pair]
|
|
1555
|
+
if not complete:
|
|
1556
|
+
return None
|
|
1557
|
+
number, pair = max(complete, key=lambda item: item[0])
|
|
1558
|
+
current, current_junit, current_result = pair['current']
|
|
1559
|
+
baseline, baseline_junit, baseline_result = pair['baseline']
|
|
1560
|
+
cohort = current.get('cohort') or []
|
|
1561
|
+
if (current.get('head40') != head or baseline.get('head40') != base
|
|
1562
|
+
or cohort != (baseline.get('cohort') or []) or not cohort):
|
|
1563
|
+
return None
|
|
1564
|
+
file_count += len(cohort)
|
|
1565
|
+
key = f'shard-{shard_id}'
|
|
1566
|
+
shards.append({'id': key, 'files': cohort})
|
|
1567
|
+
attempts.append({'shardId': key, 'attempt': number,
|
|
1568
|
+
'currentJUnitPath': str(current_junit), 'baselineJUnitPath': str(baseline_junit),
|
|
1569
|
+
'currentExitCode': current.get('rc'), 'baselineExitCode': baseline.get('rc'),
|
|
1570
|
+
'currentSignal': current.get('signal'), 'baselineSignal': baseline.get('signal'),
|
|
1571
|
+
'baselineFiles': []})
|
|
1572
|
+
details.append({'shardId': key, 'attempt': number, 'files': cohort,
|
|
1573
|
+
'current': {**current, 'junitPath': str(current_junit), 'resultPath': str(current_result)},
|
|
1574
|
+
'baseline': {**baseline, 'junitPath': str(baseline_junit), 'resultPath': str(baseline_result)}})
|
|
1575
|
+
if len(shards) != total or file_count != files_total:
|
|
1576
|
+
return None
|
|
1577
|
+
|
|
1578
|
+
listed = command(['git', '-C', str(repo), 'ls-tree', '-r', '--name-only', base], timeout=120)
|
|
1579
|
+
if listed.returncode:
|
|
1580
|
+
return None
|
|
1581
|
+
base_files = set(listed.stdout.splitlines())
|
|
1582
|
+
for attempt in attempts:
|
|
1583
|
+
shard = next(item for item in shards if item['id'] == attempt['shardId'])
|
|
1584
|
+
attempt['baselineFiles'] = [file for file in shard['files'] if file in base_files]
|
|
1585
|
+
env = os.environ.copy()
|
|
1586
|
+
env['OP_TRAIN_AGGREGATE'] = json.dumps({'shards': shards, 'attempts': attempts})
|
|
1587
|
+
js = "const fs=require('node:fs');const {aggregateGateTestShards}=await import('./src/self-dev/shard-aggregate.ts');const x=JSON.parse(process.env.OP_TRAIN_AGGREGATE);const a=x.attempts.map(({currentJUnitPath,baselineJUnitPath,...v})=>({...v,currentJUnit:fs.readFileSync(currentJUnitPath,'utf8'),baselineJUnit:fs.readFileSync(baselineJUnitPath,'utf8')}));console.log(JSON.stringify(aggregateGateTestShards(x.shards,a)));"
|
|
1588
|
+
aggregate = subprocess.run([str(Path.home() / '.bun/bin/bun'), '-e', js], cwd=repo,
|
|
1589
|
+
env=env, text=True, capture_output=True, timeout=120)
|
|
1590
|
+
if aggregate.returncode:
|
|
1591
|
+
return None
|
|
1592
|
+
try:
|
|
1593
|
+
result = json.loads(aggregate.stdout.strip().splitlines()[-1])
|
|
1594
|
+
report, verdict = result.get('report') or {}, result.get('status')
|
|
1595
|
+
except (ValueError, IndexError, AttributeError):
|
|
1596
|
+
return None
|
|
1597
|
+
if verdict not in ('passed', 'pass', 'failed', 'unmeasured', 'skipped'):
|
|
1598
|
+
return None
|
|
1599
|
+
summary = {'base40': base, 'head40': head, 'verdict': verdict,
|
|
1600
|
+
'exitCode': 0 if verdict in ('passed', 'pass', 'skipped') else 1,
|
|
1601
|
+
'introduced': report.get('introduced', 0), 'preexisting': report.get('preexisting', 0),
|
|
1602
|
+
'unknown': report.get('unknown', 0), 'preconditionUnmet': report.get('preconditionUnmet', 0),
|
|
1603
|
+
'unrunImporters': report.get('unrunImporters', 0), 'shards': len(shards), 'shardsDetail': details,
|
|
1604
|
+
'verdictLine': f'[train-shard-recovery] {verdict}; all {done}/{total} shards and {files_done}/{files_total} files complete; judged from SHA-bound JUnit outputs',
|
|
1605
|
+
'trainShardRecovery': {'status': verdict, 'progress': progress,
|
|
1606
|
+
'source': 'bound per-shard result/JUnit'}}
|
|
1607
|
+
(artifact_dir / 'summary.json').write_text(json.dumps(summary, indent=2) + '\n')
|
|
1608
|
+
return summary
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
def build_remote_gate_command(base, integration, remote_bundle, remote_tree, remote_art, remote_remeasure_helper, timeout, shards, remote_path, remote_tmpdir, gate_tier='T1'):
|
|
1612
|
+
scratch = shlex.quote(remote_tmpdir)
|
|
1613
|
+
helper = shlex.quote(remote_remeasure_helper)
|
|
1614
|
+
gate_scope = '--changed ' # OP 11-08 11:15 대표 «게이트 분류에서 전체 게이팅이 안 되게 · 부분 게이팅» — T2 도 반경(--changed) · 원복 = .bak-OP-noT2full-1115
|
|
1615
|
+
return (
|
|
1616
|
+
f"set -e; export PATH=\"{remote_path}\"; cd ~/source/elanous-agent; "
|
|
1617
|
+
f"git fetch -q origin main; git cat-file -e {base}^{{commit}}; "
|
|
1618
|
+
f"git fetch -q {remote_bundle} {integration}; "
|
|
1619
|
+
+ remote_worker_setup(remote_art, remote_tmpdir) +
|
|
1620
|
+
f"worktree_created=0; {remote_worker_cleanup_trap(remote_tree, remote_tmpdir, remote_art, remote_remeasure_helper)}"
|
|
1621
|
+
f"git worktree add -q --detach {remote_tree} {integration}; "
|
|
1622
|
+
f"worktree_created=1; "
|
|
1623
|
+
f"cd {remote_tree}; test \"$(git rev-parse HEAD)\" = {integration}; "
|
|
1624
|
+
f"{remote_worktree_dependency_prep(remote_art)}; "
|
|
1625
|
+
f"echo BATCH_HEAD=$(git rev-parse HEAD); "
|
|
1626
|
+
"set +e; "
|
|
1627
|
+
f"(timeout -k 10 {timeout} env ELANOUS_TRAIN_GATE=1 ELANOUS_GATE_RECEIPT_REGISTRY_PATH={remote_art}/gate-receipts.json bun bin/elanous.mjs self gate {gate_scope}--base {base} --local "
|
|
1628
|
+
f"--shards {shards} --fixed-shard-distribution --include-importers --artifact-dir {remote_art} "
|
|
1629
|
+
f"> {remote_art}/gate.log 2>&1; echo $? > {remote_art}/gate.rc) & gate_pid=$!; "
|
|
1630
|
+
f"(timeout -k 10 {timeout} bash scripts/ci-typecheck-main-delta.sh {base} "
|
|
1631
|
+
f"> {remote_art}/typecheck.log 2>&1; echo $? > {remote_art}/typecheck.rc) & typecheck_pid=$!; "
|
|
1632
|
+
f"wait $gate_pid; wait $typecheck_pid; gate_rc=$(cat {remote_art}/gate.rc); typecheck_rc=$(cat {remote_art}/typecheck.rc); "
|
|
1633
|
+
f"timeout -k 10 300 bun run test:deterministic {' '.join(TRAIN_ALWAYS_RATCHETS)} "
|
|
1634
|
+
f"> {remote_art}/always-ratchets.log 2>&1; ratchet_rc=$?; "
|
|
1635
|
+
f"echo $ratchet_rc > {remote_art}/always-ratchets.rc; "
|
|
1636
|
+
f"bun -e 'const fs=require(\"node:fs\"); const p=\"{remote_art}/summary.json\"; "
|
|
1637
|
+
f"if (!fs.existsSync(p)) process.exit(2); const s=JSON.parse(fs.readFileSync(p,\"utf8\")); "
|
|
1638
|
+
f"const rc=Number(fs.readFileSync(\"{remote_art}/typecheck.rc\",\"utf8\").trim()); "
|
|
1639
|
+
f"const ratchetRc=Number(fs.readFileSync(\"{remote_art}/always-ratchets.rc\",\"utf8\").trim()); "
|
|
1640
|
+
f"const ratchetTests={json.dumps(list(TRAIN_ALWAYS_RATCHETS))}; "
|
|
1641
|
+
f"s.gateTier={json.dumps(gate_tier)}; "
|
|
1642
|
+
f"s.gateProfile=\"{TRAIN_ALWAYS_RATCHET_PROFILE}\"; "
|
|
1643
|
+
f"s.trainAlwaysRatchets={{status:ratchetRc===0?\"passed\":\"failed\",exitCode:ratchetRc,tests:ratchetTests,log:\"always-ratchets.log\"}}; "
|
|
1644
|
+
f"if(ratchetRc!==0){{s.verdict=\"failed\";s.exitCode=1;s.verdictLine=(s.verdictLine||\"\")+\"\\n[train-always-ratchets] failed rc=\"+ratchetRc;}} "
|
|
1645
|
+
f"const out=fs.readFileSync(\"{remote_art}/typecheck.log\",\"utf8\"); "
|
|
1646
|
+
f"const m=out.match(/\\[tsc-main-delta\\] base=([0-9a-f]{{40}}) base_rc=(\\d+) head=([0-9a-f]{{40}}) head_rc=(\\d+) baseline_errors=(\\d+) head_errors=(\\d+) new_errors=(\\d+)/); "
|
|
1647
|
+
f"const bound=!!m&&m[1]===\"{base}\"&&m[3]===\"{integration}\"; "
|
|
1648
|
+
f"const status=bound&&m[7]===\"0\"?\"passed\":(bound&&Number(m[7])>0?\"failed\":\"unmeasured\"); "
|
|
1649
|
+
f"s.typecheck={{status,exitCode:status===\"passed\"?0:rc,base40:\"{base}\",head40:\"{integration}\",log:\"typecheck.log\",...(m?{{baselineErrors:Number(m[5]),headErrors:Number(m[6]),newErrors:Number(m[7])}}:{{}}),...(!bound?{{reason:\"typecheck receipt missing or SHA mismatch\"}}:{{}})}}; "
|
|
1650
|
+
f"fs.writeFileSync(p,JSON.stringify(s,null,2)+\"\\n\");'; receipt_rc=$?; "
|
|
1651
|
+
f"if [ $receipt_rc -eq 0 ]; then remeasure_out=$(ELANOUS_TRAIN_DEFER_TIMEOUT_REMEASURE=1 python3 {shlex.quote(remote_remeasure_helper)} {shlex.quote(remote_tree)} {shlex.quote(remote_art)} {base} {integration} 2>&1); remeasure_rc=$?; printf '%s\\n' \"$remeasure_out\" | tail -n 5; "
|
|
1652
|
+
f"if [ $remeasure_rc -eq 0 ] && [[ \"$remeasure_out\" == *TRAIN_GATE_RC=0* ]]; then gate_rc=0; else gate_rc=1; fi; "
|
|
1653
|
+
f"if [ \"$(bun -e 'const s=JSON.parse(require(\"node:fs\").readFileSync(\"{remote_art}/summary.json\",\"utf8\")); process.stdout.write(s.typecheck?.status||\"\")')\" = passed ]; then typecheck_rc=0; fi; fi; "
|
|
1654
|
+
f"if [ $ratchet_rc -ne 0 ]; then gate_rc=1; fi; "
|
|
1655
|
+
f"echo GATE_RC=$gate_rc; echo TYPECHECK_RC=$typecheck_rc; echo ALWAYS_RATCHETS_RC=$ratchet_rc; "
|
|
1656
|
+
f"if [ $gate_rc -eq 0 ] && [ $typecheck_rc -eq 0 ] && [ $ratchet_rc -eq 0 ] && [ $receipt_rc -eq 0 ]; then "
|
|
1657
|
+
f"bun -e 'const m=await import(\"./src/self-implement/train-gate-receipt.ts\"); "
|
|
1658
|
+
f"const {{execFileSync}}=require(\"node:child_process\"); "
|
|
1659
|
+
f"const names=(args)=>execFileSync(\"git\",args,{{encoding:\"utf8\"}}).split(/\\r?\\n/).filter(Boolean); "
|
|
1660
|
+
f"const input={{repo:{json.dumps(remote_tree)},commit:{json.dumps(integration)},baseSha:{json.dumps(base)}, "
|
|
1661
|
+
f"changedFiles:names([\"diff\",\"--name-only\",{json.dumps(base)},{json.dumps(integration)}]), "
|
|
1662
|
+
f"deletedFiles:names([\"diff\",\"--diff-filter=D\",\"--name-only\",{json.dumps(base)},{json.dumps(integration)}]), "
|
|
1663
|
+
f"summaryPath:{json.dumps(remote_art + '/summary.json')}}}; "
|
|
1664
|
+
f"await m.recordPassedSelfGateReceipt(input);'; "
|
|
1665
|
+
f"bun -e 'const fs=require(\"node:fs\");const p=\"{remote_art}/gate-receipts.json\";if(fs.existsSync(p))process.stdout.write(\"__GATE_RECEIPTS__\"+Buffer.from(fs.readFileSync(p)).toString(\"base64\")+\"\\n\")'; fi; "
|
|
1666
|
+
f"if [ $receipt_rc -ne 0 ] || [ $ratchet_rc -ne 0 ] || [ ! -f {remote_art}/summary.json ]; then "
|
|
1667
|
+
f"printf '%s\\n' {shlex.quote(REMOTE_GATE_TAIL_BEGIN)}; "
|
|
1668
|
+
f"tail -n 20 {remote_art}/gate.log {remote_art}/typecheck.log {remote_art}/always-ratchets.log 2>/dev/null || true; "
|
|
1669
|
+
f"printf '%s\\n' {shlex.quote(REMOTE_GATE_TAIL_END)}; fi; set -e; "
|
|
1670
|
+
f"test -f {remote_art}/summary.json"
|
|
1671
|
+
)
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
def build_remote_timeout_remeasure_command(integration, remote_bundle, remote_tree, remote_art, files,
|
|
1675
|
+
remote_path, remote_tmpdir):
|
|
1676
|
+
"""Run each timed-out test file once on a prepared alternate host; do not rerun the bundle gate."""
|
|
1677
|
+
if not files or any(not re.fullmatch(r'(?:src|test|scripts)/[A-Za-z0-9_./-]+\.(?:test|spec)\.[cm]?[jt]sx?', f)
|
|
1678
|
+
or '..' in Path(f).parts for f in files):
|
|
1679
|
+
raise ValueError('timeout remeasurement requires safe test file paths')
|
|
1680
|
+
worktree_q = shlex.quote(remote_tree)
|
|
1681
|
+
art_q = shlex.quote(remote_art)
|
|
1682
|
+
cleanup = remote_worker_cleanup_trap(remote_tree, remote_tmpdir, remote_art)
|
|
1683
|
+
lines = [
|
|
1684
|
+
'set -e',
|
|
1685
|
+
f'export PATH="$HOME/.bun/bin:"{shlex.quote(remote_path)}',
|
|
1686
|
+
'cd ~/source/elanous-agent',
|
|
1687
|
+
'git fetch -q origin main',
|
|
1688
|
+
f'git fetch -q {shlex.quote(remote_bundle)} {shlex.quote(integration)}', # OP 11-08 06:2x: 묶음에서 먼저 받고
|
|
1689
|
+
f'git cat-file -e {shlex.quote(integration)}^{{commit}}', # 그다음 확인(순서가 거꾸로라 rc=128)
|
|
1690
|
+
remote_worker_setup(remote_art, remote_tmpdir),
|
|
1691
|
+
'worktree_created=0',
|
|
1692
|
+
cleanup,
|
|
1693
|
+
f'git worktree add -q --detach {worktree_q} {shlex.quote(integration)}',
|
|
1694
|
+
'worktree_created=1',
|
|
1695
|
+
f'cd {worktree_q}',
|
|
1696
|
+
f'test "$(git rev-parse HEAD)" = {shlex.quote(integration)}',
|
|
1697
|
+
remote_worktree_dependency_prep(remote_art),
|
|
1698
|
+
'set +e',
|
|
1699
|
+
'failed=0',
|
|
1700
|
+
]
|
|
1701
|
+
for index, file in enumerate(files, 1):
|
|
1702
|
+
log = f'{remote_art}/timeout-file-{index}.log'
|
|
1703
|
+
lines += [
|
|
1704
|
+
f'test -f {shlex.quote(file)}',
|
|
1705
|
+
f'timeout -k 10 360 bun run test:deterministic {shlex.quote("./" + file)} --timeout 60000 > {shlex.quote(log)} 2>&1',
|
|
1706
|
+
'rc=$?',
|
|
1707
|
+
f'echo TIMEOUT_FILE_RC_{index}=$rc',
|
|
1708
|
+
'[ "$rc" -eq 0 ] || failed=1',
|
|
1709
|
+
]
|
|
1710
|
+
lines += [
|
|
1711
|
+
'if [ "$failed" -eq 0 ]; then echo TIMEOUT_REMEASURE_STATUS=passed; else echo TIMEOUT_REMEASURE_STATUS=failed; fi',
|
|
1712
|
+
'exit "$failed"',
|
|
1713
|
+
]
|
|
1714
|
+
# OP 11-08 05:4x: 빈 줄·끝 세미콜론 조각이 ';;' 를 만들어 bash 문법 오류(재측정 매번 rc=2) → 정리 후 결합
|
|
1715
|
+
return '; '.join(part for part in (str(l).strip().rstrip(';').strip() for l in lines) if part)
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
def preserve_remote_artifacts(host, remote_art, summary_path, batch_artifacts):
|
|
1719
|
+
"""Mirror a remote gate artifact directory into this immutable batch artifact tree and rebind paths."""
|
|
1720
|
+
local_art = batch_artifacts / 'remote-artifacts' / Path(remote_art).name
|
|
1721
|
+
local_art.mkdir(parents=True, exist_ok=True)
|
|
1722
|
+
copied = command(['rsync', '-a', '-e', 'ssh -o BatchMode=yes -o ConnectTimeout=10',
|
|
1723
|
+
f'{host}:{remote_art}/', str(local_art) + '/'], timeout=180)
|
|
1724
|
+
if copied.returncode:
|
|
1725
|
+
raise RuntimeError(f'gate artifact preservation failed from {host}:{remote_art}: {copied.stderr[-1000:]}')
|
|
1726
|
+
if summary_path is not None:
|
|
1727
|
+
local_summary = local_art / 'summary.json'
|
|
1728
|
+
if not local_summary.is_file():
|
|
1729
|
+
raise RuntimeError(f'preserved gate artifacts have no summary.json: {local_art}')
|
|
1730
|
+
data = json.loads(local_summary.read_text())
|
|
1731
|
+
prefix = remote_art.rstrip('/') + '/'
|
|
1732
|
+
def rebind(value):
|
|
1733
|
+
if isinstance(value, dict):
|
|
1734
|
+
for key, child in list(value.items()):
|
|
1735
|
+
if key in ('resultPath', 'junitPath') and isinstance(child, str) and child.startswith(prefix):
|
|
1736
|
+
value['remote' + key[0].upper() + key[1:]] = child
|
|
1737
|
+
value[key] = str(local_art / child[len(prefix):])
|
|
1738
|
+
else:
|
|
1739
|
+
rebind(child)
|
|
1740
|
+
elif isinstance(value, list):
|
|
1741
|
+
for child in value:
|
|
1742
|
+
rebind(child)
|
|
1743
|
+
rebind(data)
|
|
1744
|
+
data['artifactDirectory'] = str(local_art)
|
|
1745
|
+
data['remoteArtifactDirectory'] = remote_art
|
|
1746
|
+
rendered = json.dumps(data, indent=2) + '\n'
|
|
1747
|
+
local_summary.write_text(rendered)
|
|
1748
|
+
summary_path.write_text(rendered)
|
|
1749
|
+
return local_art
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
def build_remote_typecheck_command(base, integration, remote_bundle, remote_tree, remote_art, timeout, remote_tmpdir):
|
|
1753
|
+
"""Measure one PR's main-delta typecheck without running the aggregate test gate."""
|
|
1754
|
+
scratch = shlex.quote(remote_tmpdir)
|
|
1755
|
+
return (
|
|
1756
|
+
f"set -e; export PATH=\"$HOME/.bun/bin:$PATH\"; cd ~/source/elanous-agent; "
|
|
1757
|
+
f"git fetch -q origin main; git cat-file -e {base}^{{commit}}; "
|
|
1758
|
+
f"git fetch -q {remote_bundle} {integration}; "
|
|
1759
|
+
+ remote_worker_setup(remote_art, remote_tmpdir) +
|
|
1760
|
+
f"worktree_created=0; {remote_worker_cleanup_trap(remote_tree, remote_tmpdir, remote_art)}"
|
|
1761
|
+
f"git worktree add -q --detach {remote_tree} {integration}; "
|
|
1762
|
+
f"worktree_created=1; "
|
|
1763
|
+
f"cd {remote_tree}; test \"$(git rev-parse HEAD)\" = {integration}; "
|
|
1764
|
+
f"{remote_worktree_dependency_prep(remote_art)}; "
|
|
1765
|
+
f"set +e; timeout -k 10 {timeout} bash scripts/ci-typecheck-main-delta.sh {base} "
|
|
1766
|
+
f"> {remote_art}/typecheck.log 2>&1; rc=$?; set -e; "
|
|
1767
|
+
f"TS_RC=$rc bun -e 'const fs=require(\"node:fs\");const out=fs.readFileSync(\"{remote_art}/typecheck.log\",\"utf8\");"
|
|
1768
|
+
f"const m=out.match(/\\[tsc-main-delta\\] base=([0-9a-f]{{40}}) base_rc=(\\d+) head=([0-9a-f]{{40}}) head_rc=(\\d+) baseline_errors=(\\d+) head_errors=(\\d+) new_errors=(\\d+)/);"
|
|
1769
|
+
f"const bound=!!m&&m[1]===\"{base}\"&&m[3]===\"{integration}\";const rc=Number(process.env.TS_RC);"
|
|
1770
|
+
f"const status=bound&&m[7]===\"0\"?\"passed\":(bound&&Number(m[7])>0?\"failed\":\"unmeasured\");"
|
|
1771
|
+
f"const s={{base40:\"{base}\",head40:\"{integration}\",typecheck:{{status,exitCode:status===\"passed\"?0:rc,base40:\"{base}\",head40:\"{integration}\",...(m?{{baselineErrors:Number(m[5]),headErrors:Number(m[6]),newErrors:Number(m[7])}}:{{}}),...(!bound?{{reason:\"typecheck receipt missing or SHA mismatch\"}}:{{}})}}}};"
|
|
1772
|
+
f"fs.writeFileSync(\"{remote_art}/typecheck-summary.json\",JSON.stringify(s,null,2)+\"\\n\");'; "
|
|
1773
|
+
f"test -f {remote_art}/typecheck-summary.json"
|
|
1774
|
+
)
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
def _path_matches_inputs(path, prefixes):
|
|
1778
|
+
return any(path == prefix or (prefix.endswith('/') and path.startswith(prefix))
|
|
1779
|
+
for prefix in prefixes)
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
def generated_regen_jobs(pr_files):
|
|
1783
|
+
"""The UX-sim outputs are deterministic; CLI anatomy runs only when CLI sources changed."""
|
|
1784
|
+
all_paths = {path for paths in pr_files.values() for path in paths}
|
|
1785
|
+
jobs = ['ux-sim'] # also repairs a stale base-derived catalog before the aggregate gate
|
|
1786
|
+
if any(_path_matches_inputs(path, CLI_REGEN_INPUTS) for path in all_paths):
|
|
1787
|
+
jobs.append('cli-anatomy')
|
|
1788
|
+
return jobs
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
def build_remote_generated_regen_command(worktree, jobs):
|
|
1792
|
+
"""Run the fixed generator allowlist against the exact integrated tree and inspect its diff."""
|
|
1793
|
+
if not str(worktree).startswith('/') or not jobs or any(job not in ('ux-sim', 'cli-anatomy') for job in jobs):
|
|
1794
|
+
raise ValueError('invalid generated-regeneration request')
|
|
1795
|
+
lines = ['set -euo pipefail', f'worktree={shlex.quote(str(worktree))}',
|
|
1796
|
+
'cd "$worktree"', '[ -z "$(git status --porcelain)" ] || { echo REGEN_DIRTY=1; exit 42; }']
|
|
1797
|
+
manual = 'docs/manual/MANUAL-ux-simulation-devices-2026-08-23.md'
|
|
1798
|
+
lines.extend([f'manual_before=$(mktemp)', 'deps_log=$(mktemp)',
|
|
1799
|
+
f'git show HEAD:{shlex.quote(manual)} > "$manual_before"',
|
|
1800
|
+
'cleanup_regen() { rm -f -- "$manual_before" "$deps_log"; }', 'trap cleanup_regen EXIT',
|
|
1801
|
+
'timeout 180 bun install --frozen-lockfile > "$deps_log" 2>&1 || { rc=$?; tail -n 40 "$deps_log"; exit "$rc"; }',
|
|
1802
|
+
'test -f node_modules/typescript/package.json || { echo REGEN_TYPESCRIPT_MISSING=1; exit 86; }'])
|
|
1803
|
+
if 'ux-sim' in jobs:
|
|
1804
|
+
lines.extend([
|
|
1805
|
+
f'timeout {GENERATED_REGEN_TIMEOUT} bun scripts/generate-ux-sim-device-manual.ts',
|
|
1806
|
+
f'timeout {GENERATED_REGEN_TIMEOUT} bun scripts/generate-sim-world-device-catalogs.ts',
|
|
1807
|
+
])
|
|
1808
|
+
if 'cli-anatomy' in jobs:
|
|
1809
|
+
lines.append(f'timeout {GENERATED_REGEN_TIMEOUT} bun scripts/docs/generate-cli-anatomy.ts')
|
|
1810
|
+
lines.extend([
|
|
1811
|
+
f"python3 - \"$manual_before\" {shlex.quote(manual)} <<'PY'",
|
|
1812
|
+
'import re, sys',
|
|
1813
|
+
'pattern = re.compile(r"(?s)<!-- BEGIN GENERATED MOCK DEVICE CATALOG -->.*?<!-- END GENERATED MOCK DEVICE CATALOG -->")',
|
|
1814
|
+
'before, after = (open(path, encoding="utf-8").read() for path in sys.argv[1:])',
|
|
1815
|
+
'if pattern.sub("<GENERATED>", before) != pattern.sub("<GENERATED>", after):',
|
|
1816
|
+
' print("REGEN_HUMAN_AUTHORED=docs/manual/MANUAL-ux-simulation-devices-2026-08-23.md")',
|
|
1817
|
+
' sys.exit(0)',
|
|
1818
|
+
'PY',
|
|
1819
|
+
'if [ "${PIPESTATUS[0]:-0}" -ne 0 ]; then echo REGEN_INSPECTION_FAILED=manual; exit 43; fi',
|
|
1820
|
+
'changed=$( { git diff --name-only HEAD; git ls-files --others --exclude-standard; } | sort -u)',
|
|
1821
|
+
'for path in $changed; do',
|
|
1822
|
+
' case "$path" in ' + '|'.join(GENERATED_REGEN_OUTPUTS) + ') ;;',
|
|
1823
|
+
' *) echo "REGEN_UNEXPECTED=$path"; exit 0 ;;',
|
|
1824
|
+
' esac',
|
|
1825
|
+
'done',
|
|
1826
|
+
'files=$(printf "%s\\n" "$changed" | sed "/^$/d" | paste -sd, -)',
|
|
1827
|
+
'printf "REGEN_FILES=%s\\n" "$files"',
|
|
1828
|
+
'for path in $changed; do [ -f "$path" ] && printf "REGEN_BLOB=%s=%s\\n" "$path" "$(git hash-object -- "$path")"; done',
|
|
1829
|
+
])
|
|
1830
|
+
return '\n'.join(lines)
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
def run_remote_generated_regen(host, worktree, jobs):
|
|
1834
|
+
result = command(ssh_remote_command(host, build_remote_generated_regen_command(worktree, jobs)), timeout=GENERATED_REGEN_TIMEOUT * len(jobs) + 240)
|
|
1835
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
1836
|
+
if result.returncode:
|
|
1837
|
+
raise RuntimeError(f'generated regeneration failed on {host} rc={result.returncode}: {output[-1200:]}')
|
|
1838
|
+
human = re.search(r'^REGEN_HUMAN_AUTHORED=(.+)$', output, re.M)
|
|
1839
|
+
unexpected = re.search(r'^REGEN_UNEXPECTED=(.+)$', output, re.M)
|
|
1840
|
+
if human or unexpected:
|
|
1841
|
+
return {'blockedPath': (human or unexpected).group(1), 'reason': 'human-authored content changed' if human else 'path outside generated-output allowlist', 'files': [], 'blobs': {}}
|
|
1842
|
+
files_match = re.search(r'^REGEN_FILES=(.*)$', output, re.M)
|
|
1843
|
+
if not files_match:
|
|
1844
|
+
raise RuntimeError(f'generated regeneration returned no diff receipt on {host}: {output[-800:]}')
|
|
1845
|
+
files = [path for path in files_match.group(1).split(',') if path]
|
|
1846
|
+
if any(path not in GENERATED_REGEN_OUTPUTS for path in files):
|
|
1847
|
+
raise RuntimeError(f'generated regeneration escaped output allowlist: {files}')
|
|
1848
|
+
blobs = {}
|
|
1849
|
+
for path, sha in re.findall(r'^REGEN_BLOB=([^=]+)=([0-9a-f]{40,64})$', output, re.M):
|
|
1850
|
+
blobs[path] = sha
|
|
1851
|
+
if set(blobs) != set(files):
|
|
1852
|
+
raise RuntimeError(f'generated regeneration blob receipt mismatch: files={files} blobs={sorted(blobs)}')
|
|
1853
|
+
return {'blockedPath': '', 'reason': '', 'files': files, 'blobs': blobs}
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
def pr_head_branch(repo, pr):
|
|
1857
|
+
result = command(['gh', 'pr', 'view', str(pr), '--json', 'headRefName,headRepository'], repo, 30)
|
|
1858
|
+
if result.returncode:
|
|
1859
|
+
raise RuntimeError(f'cannot inspect candidate PR branch #{pr}: {(result.stderr or result.stdout)[-500:]}')
|
|
1860
|
+
try:
|
|
1861
|
+
data = json.loads(result.stdout)
|
|
1862
|
+
branch = str(data['headRefName'])
|
|
1863
|
+
repository = str(data['headRepository']['nameWithOwner'])
|
|
1864
|
+
except (KeyError, TypeError, ValueError) as exc:
|
|
1865
|
+
raise RuntimeError(f'candidate PR #{pr} has no same-repository branch metadata') from exc
|
|
1866
|
+
local = command(['git', 'remote', 'get-url', 'origin'], repo)
|
|
1867
|
+
if local.returncode:
|
|
1868
|
+
raise RuntimeError('cannot resolve local origin for generated-output push')
|
|
1869
|
+
origin = local.stdout.strip().removesuffix('.git')
|
|
1870
|
+
origin = re.sub(r'^[a-zA-Z][a-zA-Z0-9+.-]*://', '', origin)
|
|
1871
|
+
origin = re.sub(r'^.*@', '', origin).replace(':', '/', 1)
|
|
1872
|
+
origin = origin.split('/', 1)[1] if '/' in origin else origin
|
|
1873
|
+
if repository.lower() != origin.lower():
|
|
1874
|
+
raise RuntimeError(f'candidate PR #{pr} branch is in {repository}, not origin {origin}; generated output push refused')
|
|
1875
|
+
if (not re.fullmatch(r'[A-Za-z0-9._/-]+', branch) or branch.startswith('/')
|
|
1876
|
+
or any(part in ('', '.', '..') for part in branch.split('/'))):
|
|
1877
|
+
raise RuntimeError(f'candidate PR #{pr} has an unsafe branch name')
|
|
1878
|
+
return branch
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
def build_remote_generated_push_command(worktree, pr, old_head, branch, files, run_id):
|
|
1882
|
+
if (not str(worktree).startswith('/') or not re.fullmatch(r'[0-9a-f]{40}', old_head)
|
|
1883
|
+
or not re.fullmatch(r'[0-9]+', str(pr)) or not re.fullmatch(r'[0-9]+', str(run_id))
|
|
1884
|
+
or not files or any(path not in GENERATED_REGEN_OUTPUTS for path in files)):
|
|
1885
|
+
raise ValueError('invalid generated-output branch update')
|
|
1886
|
+
candidate = f'{worktree}-regen-{pr}'
|
|
1887
|
+
pull_ref = f'refs/opt-train/{run_id}/regen/{pr}'
|
|
1888
|
+
lines = ['set -euo pipefail', 'cd ~/source/elanous-agent',
|
|
1889
|
+
'if git remote get-url github >/dev/null 2>&1; then pull_remote=github; else pull_remote=origin; fi',
|
|
1890
|
+
f'git fetch -q "$pull_remote" +refs/pull/{pr}/head:{pull_ref}',
|
|
1891
|
+
f'[ "$(git rev-parse {pull_ref})" = {old_head} ] || {{ echo REGEN_HEAD_MOVED=1; exit 44; }}',
|
|
1892
|
+
f'branch_ref={shlex.quote("refs/heads/" + branch)}',
|
|
1893
|
+
'branch_head=$(git ls-remote "$pull_remote" "$branch_ref" | awk "NR==1 {print \\$1}")',
|
|
1894
|
+
f'[ "$branch_head" = {old_head} ] || {{ echo REGEN_REMOTE_BRANCH_MOVED=1; exit 44; }}',
|
|
1895
|
+
f'candidate={shlex.quote(candidate)}',
|
|
1896
|
+
f'trap \'cd ~/source/elanous-agent; git worktree remove --force "$candidate" >/dev/null 2>&1 || true; git update-ref -d {pull_ref} >/dev/null 2>&1 || true\' EXIT',
|
|
1897
|
+
f'git worktree add -q --detach "$candidate" {old_head}']
|
|
1898
|
+
for path in files:
|
|
1899
|
+
qpath = shlex.quote(path)
|
|
1900
|
+
lines.extend([f'test -f {shlex.quote(str(worktree) + "/" + path)}',
|
|
1901
|
+
f'mkdir -p "$candidate/$(dirname {qpath})"',
|
|
1902
|
+
f'cp -- {shlex.quote(str(worktree) + "/" + path)} "$candidate/{path}"'])
|
|
1903
|
+
allow = '|'.join(re.escape(path) for path in GENERATED_REGEN_OUTPUTS)
|
|
1904
|
+
lines.extend([
|
|
1905
|
+
f'changed=$(cd "$candidate" && {{ git diff --name-only HEAD; git ls-files --others --exclude-standard; }} | sort -u)',
|
|
1906
|
+
f'for path in $changed; do [[ "$path" =~ ^({allow})$ ]] || {{ echo "REGEN_UNEXPECTED_CANDIDATE=$path"; exit 45; }}; done',
|
|
1907
|
+
'cd "$candidate"', 'git add -- ' + ' '.join(shlex.quote(path) for path in files),
|
|
1908
|
+
'if git diff --cached --quiet; then echo REGEN_BRANCH_NO_DIFF=1; exit 0; fi',
|
|
1909
|
+
'git -c user.name=OP-train -c user.email=op-train@local commit -m "docs: refresh generated outputs for integrated train"',
|
|
1910
|
+
'new_head=$(git rev-parse HEAD)',
|
|
1911
|
+
'git push "$pull_remote" "$new_head:$branch_ref"',
|
|
1912
|
+
'cd ~/source/elanous-agent',
|
|
1913
|
+
'printf "REGEN_PR_HEAD=%s\\n" "$new_head"',
|
|
1914
|
+
])
|
|
1915
|
+
return '\n'.join(lines)
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
def push_remote_generated_outputs(host, worktree, row, branch, files, run_id):
|
|
1919
|
+
payload = build_remote_generated_push_command(worktree, row.pr, row.head, branch, files, run_id)
|
|
1920
|
+
result = command(ssh_remote_command(host, payload), timeout=180)
|
|
1921
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
1922
|
+
if result.returncode:
|
|
1923
|
+
raise RuntimeError(f'generated-output candidate update failed #{row.pr} on {host} rc={result.returncode}: {output[-1000:]}')
|
|
1924
|
+
match = re.search(r'^REGEN_PR_HEAD=([0-9a-f]{40})$', output, re.M)
|
|
1925
|
+
if not match:
|
|
1926
|
+
if re.search(r'^REGEN_BRANCH_NO_DIFF=1$', output, re.M):
|
|
1927
|
+
return ''
|
|
1928
|
+
raise RuntimeError(f'generated-output candidate update unmeasured #{row.pr}: {output[-700:]}')
|
|
1929
|
+
return match.group(1)
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
def update_queue_head(queue, pr, old_head, new_head, old_evidence=None, new_evidence=None):
|
|
1933
|
+
"""Atomically replace one exact queue head while holding the same lock used by train tools."""
|
|
1934
|
+
path = Path(queue)
|
|
1935
|
+
lock_path = Path(str(path) + '.lock')
|
|
1936
|
+
# OP 11-06 09:3x: the queue lock is a mkdir DIRECTORY (land-enqueue.sh · land-single.sh) — never a flock file,
|
|
1937
|
+
# or the leftover file blocks every mkdir lock forever.
|
|
1938
|
+
for _ in range(300):
|
|
1939
|
+
try:
|
|
1940
|
+
lock_path.mkdir()
|
|
1941
|
+
break
|
|
1942
|
+
except FileExistsError:
|
|
1943
|
+
time.sleep(1)
|
|
1944
|
+
else:
|
|
1945
|
+
raise RuntimeError(f'queue lock busy for generated refresh #{pr}')
|
|
1946
|
+
try:
|
|
1947
|
+
lines = path.read_text(encoding='utf-8').splitlines(keepends=True)
|
|
1948
|
+
replaced = False
|
|
1949
|
+
output = []
|
|
1950
|
+
for line in lines:
|
|
1951
|
+
raw = line.rstrip('\r\n')
|
|
1952
|
+
fields = raw.split('\t')
|
|
1953
|
+
if len(fields) == 4 and fields[0] == str(pr):
|
|
1954
|
+
if fields[1] != old_head:
|
|
1955
|
+
raise RuntimeError(f'queue head moved before generated refresh #{pr}: {fields[1]}')
|
|
1956
|
+
if old_evidence is not None and fields[3] != old_evidence:
|
|
1957
|
+
raise RuntimeError(f'queue evidence moved before generated refresh #{pr}: {fields[3]}')
|
|
1958
|
+
fields[1] = new_head
|
|
1959
|
+
if new_evidence is not None:
|
|
1960
|
+
fields[3] = new_evidence
|
|
1961
|
+
line = '\t'.join(fields) + ('\n' if line.endswith('\n') else '')
|
|
1962
|
+
replaced = True
|
|
1963
|
+
output.append(line)
|
|
1964
|
+
if not replaced:
|
|
1965
|
+
raise RuntimeError(f'queue row disappeared before generated refresh #{pr}')
|
|
1966
|
+
with tempfile.NamedTemporaryFile('w', encoding='utf-8', dir=path.parent, prefix=f'.{path.name}.regen-', delete=False) as stream:
|
|
1967
|
+
temp = Path(stream.name)
|
|
1968
|
+
stream.writelines(output)
|
|
1969
|
+
stream.flush()
|
|
1970
|
+
os.fsync(stream.fileno())
|
|
1971
|
+
os.chmod(temp, stat.S_IMODE(path.stat().st_mode))
|
|
1972
|
+
os.replace(temp, path)
|
|
1973
|
+
directory_fd = os.open(path.parent, os.O_RDONLY)
|
|
1974
|
+
try:
|
|
1975
|
+
os.fsync(directory_fd)
|
|
1976
|
+
finally:
|
|
1977
|
+
os.close(directory_fd)
|
|
1978
|
+
finally:
|
|
1979
|
+
try:
|
|
1980
|
+
lock_path.rmdir()
|
|
1981
|
+
except OSError:
|
|
1982
|
+
pass
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
def fetch_generated_candidate_head(repo, pr, row_ref, expected_head, attempts=6, retry_delay=2):
|
|
1986
|
+
"""Wait for GitHub's pull ref to expose the exact train-pushed refresh head before queue advancement."""
|
|
1987
|
+
if not re.fullmatch(r'[0-9a-f]{40}', str(expected_head)) or attempts < 1:
|
|
1988
|
+
raise ValueError('invalid expected generated-refresh head or retry count')
|
|
1989
|
+
last_detail = 'pull ref not observed'
|
|
1990
|
+
for attempt in range(attempts):
|
|
1991
|
+
fetched = command(['git', 'fetch', '-q', 'origin', f'+refs/pull/{pr}/head:{row_ref}'], repo, 30)
|
|
1992
|
+
if fetched.returncode:
|
|
1993
|
+
last_detail = f'fetch rc={fetched.returncode}: {(fetched.stderr or fetched.stdout or "").strip()[-300:]}'
|
|
1994
|
+
else:
|
|
1995
|
+
observed = command(['git', 'rev-parse', row_ref], repo, 15)
|
|
1996
|
+
if observed.returncode == 0:
|
|
1997
|
+
actual_head = (observed.stdout or '').strip()
|
|
1998
|
+
if actual_head == expected_head:
|
|
1999
|
+
return actual_head
|
|
2000
|
+
last_detail = f'expected={expected_head} observed={actual_head or "<empty>"}'
|
|
2001
|
+
else:
|
|
2002
|
+
last_detail = f'pull ref read rc={observed.returncode}: {(observed.stderr or observed.stdout or "").strip()[-300:]}'
|
|
2003
|
+
if attempt + 1 < attempts:
|
|
2004
|
+
time.sleep(retry_delay)
|
|
2005
|
+
raise RuntimeError(f'generated candidate head mismatch after push #{pr}: {last_detail}; attempts={attempts}')
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
def generated_refresh_chain(repo, reviewed_head, current_head):
|
|
2009
|
+
"""Return proof only when every commit R..H is the train's generated-output refresh."""
|
|
2010
|
+
if not re.fullmatch(r'[0-9a-f]{40}', str(reviewed_head)) or not re.fullmatch(r'[0-9a-f]{40}', str(current_head)):
|
|
2011
|
+
return None, 'invalid reviewed/current head'
|
|
2012
|
+
ancestor = command(['git', 'merge-base', '--is-ancestor', reviewed_head, current_head], repo, 30)
|
|
2013
|
+
if ancestor.returncode != 0:
|
|
2014
|
+
return None, 'reviewed head is not an ancestor of current head'
|
|
2015
|
+
commits_result = command(['git', 'rev-list', '--reverse', f'{reviewed_head}..{current_head}'], repo, 30)
|
|
2016
|
+
if commits_result.returncode:
|
|
2017
|
+
return None, 'commit range unavailable'
|
|
2018
|
+
commits = [line.strip() for line in commits_result.stdout.splitlines() if line.strip()]
|
|
2019
|
+
if not commits:
|
|
2020
|
+
return None, 'no refresh commit between reviewed and current head'
|
|
2021
|
+
previous = reviewed_head
|
|
2022
|
+
changed_files = []
|
|
2023
|
+
for commit in commits:
|
|
2024
|
+
parents = command(['git', 'rev-list', '--parents', '-n', '1', commit], repo, 30)
|
|
2025
|
+
parent_fields = (parents.stdout or '').split()
|
|
2026
|
+
if parents.returncode or parent_fields != [commit, previous]:
|
|
2027
|
+
return None, f'non-linear/non-refresh ancestry at {commit[:12]}'
|
|
2028
|
+
metadata = command(['git', 'show', '-s', '--format=%s%x00%an%x00%ae%x00%cn%x00%ce', commit], repo, 30)
|
|
2029
|
+
values = (metadata.stdout or '').rstrip('\n').split('\x00')
|
|
2030
|
+
if metadata.returncode or len(values) != 5:
|
|
2031
|
+
return None, f'commit metadata unavailable at {commit[:12]}'
|
|
2032
|
+
subject, author_name, author_email, committer_name, committer_email = values
|
|
2033
|
+
if (subject != TRAIN_REFRESH_SUBJECT
|
|
2034
|
+
or (author_name, author_email) != TRAIN_REFRESH_AUTHOR
|
|
2035
|
+
or (committer_name, committer_email) != TRAIN_REFRESH_AUTHOR):
|
|
2036
|
+
return None, f'non-train refresh commit at {commit[:12]}'
|
|
2037
|
+
files_result = command(['git', 'diff-tree', '--no-commit-id', '--name-only', '-r', commit], repo, 30)
|
|
2038
|
+
files = [line.strip() for line in (files_result.stdout or '').splitlines() if line.strip()]
|
|
2039
|
+
if files_result.returncode or not files:
|
|
2040
|
+
return None, f'changed paths unavailable at {commit[:12]}'
|
|
2041
|
+
allowed = set(GENERATED_REGEN_OUTPUTS)
|
|
2042
|
+
invalid = [path for path in files if not (path.startswith('docs/generated/') or path in allowed)]
|
|
2043
|
+
if invalid:
|
|
2044
|
+
return None, f'non-generated path at {commit[:12]}: {invalid[0]}'
|
|
2045
|
+
changed_files.extend(files)
|
|
2046
|
+
previous = commit
|
|
2047
|
+
if previous != current_head:
|
|
2048
|
+
return None, 'refresh chain does not end at current head'
|
|
2049
|
+
return {'commits': commits, 'changedFiles': sorted(set(changed_files))}, ''
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
def resolve_review_result_path(review_ref, evidence_path, repo):
|
|
2053
|
+
path = Path(str(review_ref)).expanduser()
|
|
2054
|
+
candidates = [path] if path.is_absolute() else [
|
|
2055
|
+
Path(evidence_path).parent / path,
|
|
2056
|
+
Path(repo) / path,
|
|
2057
|
+
Path.home() / '.elanous/review-results' / path,
|
|
2058
|
+
]
|
|
2059
|
+
return next((candidate.resolve() for candidate in candidates if candidate.is_file()), None)
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
def write_json_atomic(path, data):
|
|
2063
|
+
path = Path(path)
|
|
2064
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
2065
|
+
with tempfile.NamedTemporaryFile('w', encoding='utf-8', dir=path.parent,
|
|
2066
|
+
prefix=f'.{path.name}.', suffix='.tmp', delete=False) as stream:
|
|
2067
|
+
temp = Path(stream.name)
|
|
2068
|
+
json.dump(data, stream, ensure_ascii=False, indent=2)
|
|
2069
|
+
stream.write('\n')
|
|
2070
|
+
stream.flush()
|
|
2071
|
+
os.fsync(stream.fileno())
|
|
2072
|
+
os.replace(temp, path)
|
|
2073
|
+
directory_fd = os.open(path.parent, os.O_RDONLY)
|
|
2074
|
+
try:
|
|
2075
|
+
os.fsync(directory_fd)
|
|
2076
|
+
finally:
|
|
2077
|
+
os.close(directory_fd)
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
def prepare_generated_refresh_review_carry(repo, row, current_head):
|
|
2081
|
+
"""Create an auditable exact-head review receipt only for a verified train refresh chain."""
|
|
2082
|
+
chain, reason = generated_refresh_chain(repo, row.head, current_head)
|
|
2083
|
+
if chain is None:
|
|
2084
|
+
return None, reason
|
|
2085
|
+
evidence_path = Path(row.evidence).expanduser()
|
|
2086
|
+
try:
|
|
2087
|
+
evidence = json.loads(evidence_path.read_text(encoding='utf-8'))
|
|
2088
|
+
except (OSError, ValueError) as exc:
|
|
2089
|
+
return None, f'queue evidence unreadable: {exc}'
|
|
2090
|
+
review_path = resolve_review_result_path(evidence.get('reviewResult', ''), evidence_path, repo)
|
|
2091
|
+
if review_path is None:
|
|
2092
|
+
return None, 'source review result missing'
|
|
2093
|
+
try:
|
|
2094
|
+
review = json.loads(review_path.read_text(encoding='utf-8'))
|
|
2095
|
+
except (OSError, ValueError) as exc:
|
|
2096
|
+
return None, f'source review unreadable: {exc}'
|
|
2097
|
+
if str(review.get('pr', '')) != str(row.pr) or str(review.get('headCommit', '')).lower() != row.head.lower():
|
|
2098
|
+
return None, 'source review PR/head does not match queued reviewed head'
|
|
2099
|
+
review_check = command(['jq', '-e', '--arg', 'h', row.head,
|
|
2100
|
+
'-f', str(TRAIN_REFRESH_REVIEW_OK), str(review_path)], repo, 15)
|
|
2101
|
+
if review_check.returncode:
|
|
2102
|
+
return None, 'source review is not PASS/WARN with zero must-fix at reviewed head'
|
|
2103
|
+
|
|
2104
|
+
carry = {
|
|
2105
|
+
'schema': TRAIN_REFRESH_REVIEW_SCHEMA,
|
|
2106
|
+
'pr': str(row.pr),
|
|
2107
|
+
'reviewedHead': row.head,
|
|
2108
|
+
'carriedHead': current_head,
|
|
2109
|
+
'subject': TRAIN_REFRESH_SUBJECT,
|
|
2110
|
+
'trainIdentity': {'name': TRAIN_REFRESH_AUTHOR[0], 'email': TRAIN_REFRESH_AUTHOR[1]},
|
|
2111
|
+
'commits': chain['commits'],
|
|
2112
|
+
'changedFiles': chain['changedFiles'],
|
|
2113
|
+
'sourceReview': str(review_path),
|
|
2114
|
+
'sourceEvidence': str(evidence_path.resolve()),
|
|
2115
|
+
}
|
|
2116
|
+
carried_review = dict(review)
|
|
2117
|
+
carried_review['headCommit'] = current_head
|
|
2118
|
+
carried_review['currentHeadCommit'] = current_head
|
|
2119
|
+
carried_review['trainGeneratedRefreshCarry'] = carry
|
|
2120
|
+
review_root = Path.home() / '.elanous/review-results'
|
|
2121
|
+
carried_review_path = review_root / f'train-refresh-carry-{row.pr}-{current_head[:12]}.json'
|
|
2122
|
+
write_json_atomic(carried_review_path, carried_review)
|
|
2123
|
+
carried_evidence = dict(evidence)
|
|
2124
|
+
carried_evidence['reviewResult'] = str(carried_review_path)
|
|
2125
|
+
carried_evidence['trainGeneratedRefreshCarry'] = carry
|
|
2126
|
+
evidence_root = Path.home() / 'elanous-hq/seat-state/OP'
|
|
2127
|
+
carried_evidence_path = evidence_root / f'overlap-evidence-{row.pr}-refresh-{current_head[:12]}.json'
|
|
2128
|
+
write_json_atomic(carried_evidence_path, carried_evidence)
|
|
2129
|
+
return str(carried_evidence_path), ''
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
def send_generated_owner_notice(prs, blocked_path, reason, run_id):
|
|
2133
|
+
"""Fail closed and notify OP with exact owners/paths so owner mail can be routed without guessing."""
|
|
2134
|
+
body = (f'OPT train {run_id}: generated refresh stopped · PRs={",".join(str(pr) for pr in prs)} '
|
|
2135
|
+
f'· path={blocked_path} · reason={reason}. No generated commit was pushed; route to the path owner.')
|
|
2136
|
+
result = command(['eln', 'msg', 'post', '--from', 'OPT', '--to', 'OP', '--kind', 'report', '--body', body], timeout=30)
|
|
2137
|
+
if result.returncode:
|
|
2138
|
+
log(f'generated refresh owner notice failed: {(result.stderr or result.stdout)[-300:]}')
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
def verify_remote_generated_outputs(host, worktree, blobs, jobs, integration_head):
|
|
2142
|
+
# Whole-file hashes are not a valid invariant for generated manuals: Git may
|
|
2143
|
+
# carry authored edits around the generated marker block through integration.
|
|
2144
|
+
# Re-run the canonical generators on the exact final integration instead;
|
|
2145
|
+
# a clean second run proves the generated region/snapshots are current there.
|
|
2146
|
+
verified = run_remote_generated_regen(host, worktree, jobs)
|
|
2147
|
+
if verified['blockedPath']:
|
|
2148
|
+
raise RuntimeError(f'regenerated output verification blocked at {verified["blockedPath"]}: {verified["reason"]}')
|
|
2149
|
+
mismatches = []
|
|
2150
|
+
for path in verified['files']:
|
|
2151
|
+
expected = blobs.get(path, '<not-in-first-generation>')
|
|
2152
|
+
actual = verified['blobs'].get(path, '<missing-blob>')
|
|
2153
|
+
if expected != actual:
|
|
2154
|
+
mismatches.append(f'{path}: first={expected} final-regeneration={actual}')
|
|
2155
|
+
if mismatches:
|
|
2156
|
+
raise RuntimeError('generated output is not stable on exact re-integration: '
|
|
2157
|
+
+ '; '.join(mismatches))
|
|
2158
|
+
lines = ['set -euo pipefail', f'worktree={shlex.quote(str(worktree))}']
|
|
2159
|
+
for path in blobs:
|
|
2160
|
+
lines.append(f'printf "REGEN_VERIFY_CURRENT={path}=%s\\n" "$(git -C "$worktree" hash-object -- {shlex.quote(path)})"')
|
|
2161
|
+
result = command(ssh_remote_command(host, '\n'.join(lines)), timeout=60)
|
|
2162
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
2163
|
+
current = dict(re.findall(r'^REGEN_VERIFY_CURRENT=([^=]+)=([0-9a-f]{40,64})$', output, re.M))
|
|
2164
|
+
if result.returncode or set(current) != set(blobs):
|
|
2165
|
+
raise RuntimeError(f'generated output verification hashes unmeasured on {host}: {output[-800:]}')
|
|
2166
|
+
drift = [f'{path}:{blobs[path]}->{current[path]}' for path in blobs if blobs[path] != current[path]]
|
|
2167
|
+
log(f'generated refresh verification stable host={host} head={integration_head[:12]} '
|
|
2168
|
+
f'jobs={",".join(jobs)} whole-file-drift={";".join(drift) if drift else "none"}')
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
def commit_remote_generated_integration(host, artifact, base, files):
|
|
2172
|
+
worktree, bundle = str(artifact.get('worktree', '')), str(artifact.get('bundle', ''))
|
|
2173
|
+
if (not worktree.startswith('/') or not bundle.startswith('/')
|
|
2174
|
+
or not re.fullmatch(r'[0-9a-f]{40}', base) or not files
|
|
2175
|
+
or any(path not in GENERATED_REGEN_OUTPUTS for path in files)):
|
|
2176
|
+
raise ValueError('invalid integrated generated-output commit')
|
|
2177
|
+
quoted_files = ' '.join(shlex.quote(path) for path in files)
|
|
2178
|
+
payload = '\n'.join([
|
|
2179
|
+
'set -euo pipefail', 'cd ~/source/elanous-agent',
|
|
2180
|
+
f'worktree={shlex.quote(worktree)}', f'bundle={shlex.quote(bundle)}',
|
|
2181
|
+
f'git -C "$worktree" add -- {quoted_files}',
|
|
2182
|
+
'git -C "$worktree" diff --cached --quiet && { echo GENERATED_TREE_NO_DIFF=1; exit 42; }',
|
|
2183
|
+
'git -C "$worktree" -c user.name=OP-train -c user.email=op-train@local commit -m "docs: regenerate outputs on integrated train tree"',
|
|
2184
|
+
'integration=$(git -C "$worktree" rev-parse HEAD)',
|
|
2185
|
+
'[[ "$integration" =~ ^[0-9a-f]{40}$ ]]',
|
|
2186
|
+
'rm -f -- "$bundle"',
|
|
2187
|
+
f'git -C "$worktree" bundle create "$bundle" HEAD {shlex.quote(base)} {shlex.quote("^" + base + "^")}',
|
|
2188
|
+
'[ -s "$bundle" ]',
|
|
2189
|
+
'printf "REGENERATED_INTEGRATION_HEAD=%s\\n" "$integration"',
|
|
2190
|
+
])
|
|
2191
|
+
result = command(ssh_remote_command(host, payload), timeout=180)
|
|
2192
|
+
output = (result.stdout or '') + (result.stderr or '')
|
|
2193
|
+
if result.returncode:
|
|
2194
|
+
raise RuntimeError(f'generated integration commit failed on {host} rc={result.returncode}: {output[-1000:]}')
|
|
2195
|
+
match = re.search(r'^REGENERATED_INTEGRATION_HEAD=([0-9a-f]{40})$', output, re.M)
|
|
2196
|
+
if not match:
|
|
2197
|
+
raise RuntimeError(f'generated integration head unmeasured on {host}: {output[-700:]}')
|
|
2198
|
+
return match.group(1)
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
def regenerate_integrated_tree_once(args, queue, repo, rows, pr_files, artifact, attempt, manifest,
|
|
2202
|
+
integration_resources, remote_homes):
|
|
2203
|
+
"""Regenerate once after all merges and commit only to the disposable integrated tree."""
|
|
2204
|
+
jobs = generated_regen_jobs(pr_files)
|
|
2205
|
+
if not jobs:
|
|
2206
|
+
return artifact, artifact['head'], rows, pr_files, False
|
|
2207
|
+
generated = run_remote_generated_regen(args.host, artifact['worktree'], jobs)
|
|
2208
|
+
if generated['blockedPath']:
|
|
2209
|
+
send_generated_owner_notice([row.pr for row in rows], generated['blockedPath'], generated['reason'], args.run_id)
|
|
2210
|
+
raise RuntimeError(f"generated regeneration stopped without commit: {generated['reason']} at {generated['blockedPath']}")
|
|
2211
|
+
if not generated['files']:
|
|
2212
|
+
manifest['generatedRegeneration'] = {'jobs': jobs, 'status': 'unchanged', 'attempt': attempt}
|
|
2213
|
+
return artifact, artifact['head'], rows, pr_files, False
|
|
2214
|
+
|
|
2215
|
+
committed_head = commit_remote_generated_integration(args.host, artifact, args.base, generated['files'])
|
|
2216
|
+
updated_artifact = {**artifact, 'head': committed_head}
|
|
2217
|
+
manifest['generatedRegeneration'] = {
|
|
2218
|
+
'jobs': jobs, 'status': 'committed-to-integrated-tree', 'attempt': attempt,
|
|
2219
|
+
'files': generated['files'], 'blobs': generated['blobs'], 'commit': committed_head,
|
|
2220
|
+
}
|
|
2221
|
+
manifest['integrationHead'] = committed_head
|
|
2222
|
+
Path(args.artifacts, 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2223
|
+
return updated_artifact, committed_head, rows, pr_files, True
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
def run_live(args):
|
|
2227
|
+
if not args.op_watching or not args.authorize:
|
|
2228
|
+
raise ValueError('requires OP watching and explicit authorization')
|
|
2229
|
+
gate_hosts = live_gate_hosts()
|
|
2230
|
+
retry_host = resolve_retry_host(args.host, getattr(args, 'retry_host', ''))
|
|
2231
|
+
if args.host not in gate_hosts or retry_host not in gate_hosts:
|
|
2232
|
+
raise ValueError(f'live gate/retry host must be one of {gate_hosts}')
|
|
2233
|
+
exclude = parse_exclude(getattr(args, 'exclude', ''))
|
|
2234
|
+
if not args.land_single or not args.land_single.is_file():
|
|
2235
|
+
raise ValueError('existing land-single.sh required')
|
|
2236
|
+
if not re.fullmatch(r'[0-9]+', args.run_id):
|
|
2237
|
+
raise ValueError('run id must be numeric for land-single.sh')
|
|
2238
|
+
if args.side_main != args.base:
|
|
2239
|
+
raise ValueError('side main must match the aggregate gate base')
|
|
2240
|
+
queue, repo = Path(args.queue).resolve(), Path(args.repo).resolve()
|
|
2241
|
+
args.artifacts = args.artifacts.resolve() if args.artifacts else None
|
|
2242
|
+
wait_queue_lock_clear(queue, 'at start')
|
|
2243
|
+
batch_lock_handle = acquire(getattr(args, 'lock', '') or (str(queue) + '.batch.lock'), args.host) # 열차마다 자기 잠금(--lock) · 기본은 옛 이름
|
|
2244
|
+
lock = batch_lock_handle[0]
|
|
2245
|
+
integration_resources = []
|
|
2246
|
+
remote_bundle_copies = []
|
|
2247
|
+
remote_homes = {}
|
|
2248
|
+
direct_claim = None
|
|
2249
|
+
try:
|
|
2250
|
+
selection_lock = acquire_claim_selection_lock(queue)
|
|
2251
|
+
try:
|
|
2252
|
+
shared_exclude, direct_claim = reserve_claims_for_live_batch(
|
|
2253
|
+
queue, args.host, lock, set(args.authorize.split(',')),
|
|
2254
|
+
allow_preflight_overlap=args.allow_preflight_overlap and args.preflight_only)
|
|
2255
|
+
exclude.update(shared_exclude)
|
|
2256
|
+
finally:
|
|
2257
|
+
release_claim_selection_lock(selection_lock)
|
|
2258
|
+
snapshot = queue.read_bytes()
|
|
2259
|
+
queued = read_queue(queue)
|
|
2260
|
+
memory_excluded = memory_skip_set(queued, args.base)
|
|
2261
|
+
rows = [r for r in queued if r.pr not in exclude and r.pr not in memory_excluded] # claims·기측정 PR 제외
|
|
2262
|
+
chosen, deferred = select(rows, merge_conflicts(repo, args.base, rows), args.limit)
|
|
2263
|
+
if not chosen:
|
|
2264
|
+
raise RuntimeError('no conflict-free rows')
|
|
2265
|
+
if set(args.authorize.split(',')) != {r.pr for r in chosen}:
|
|
2266
|
+
raise RuntimeError('authorization must exactly match selected PRs: '
|
|
2267
|
+
f'authorized={sorted(set(args.authorize.split(",")), key=int)} '
|
|
2268
|
+
f'selected={sorted({r.pr for r in chosen}, key=int)} '
|
|
2269
|
+
f'excluded={sorted(exclude, key=int)} '
|
|
2270
|
+
f'memoryExcluded={sorted(memory_excluded, key=int)} '
|
|
2271
|
+
f'deferred={deferred}')
|
|
2272
|
+
if args.preflight_only:
|
|
2273
|
+
row = chosen[0]
|
|
2274
|
+
previous = _memory.exact_rows(row.pr, row.head.lower(), args.base.lower(), 'solo-check')
|
|
2275
|
+
if any(item.get('status') in ('passed', 'failed', 'precondition-unmet', 'conflict')
|
|
2276
|
+
for item in previous):
|
|
2277
|
+
raise RuntimeError(f'same PR/head/base solo preflight already measured: #{row.pr}')
|
|
2278
|
+
status = command(['git', 'status', '--porcelain'], repo)
|
|
2279
|
+
if status.returncode or status.stdout.strip():
|
|
2280
|
+
raise RuntimeError('source worktree must be clean and measurable')
|
|
2281
|
+
if not chosen_still_queued(queue, chosen): # OP 10-28 20:0x: 다른 열차의 착지가 줄을 줄여도 고른 PR 이 같은 head 로 남았으면 계속
|
|
2282
|
+
raise RuntimeError('queue changed during preflight (chosen PR removed or head moved)')
|
|
2283
|
+
if not args.artifacts or args.artifacts.exists():
|
|
2284
|
+
raise RuntimeError('use a new run-specific artifact directory')
|
|
2285
|
+
args.artifacts.mkdir(parents=True)
|
|
2286
|
+
manifest = {'base': args.base, 'queueSha256': hashlib.sha256(snapshot).hexdigest(),
|
|
2287
|
+
'members': [{'pr': r.pr, 'head': r.head} for r in chosen],
|
|
2288
|
+
'gateProfile': TRAIN_ALWAYS_RATCHET_PROFILE,
|
|
2289
|
+
'alwaysRatchets': list(TRAIN_ALWAYS_RATCHETS),
|
|
2290
|
+
'deferred': deferred + [{'pr': p, 'reason': 'same PR/head/base already measured in train-memory.jsonl'} for p in sorted(memory_excluded)],
|
|
2291
|
+
'host': args.host, 'excluded': sorted(set(exclude) | memory_excluded),
|
|
2292
|
+
'lock': str(lock)}
|
|
2293
|
+
batch_host_result = remote_merge_conflicts(args.host, args.base, chosen,
|
|
2294
|
+
args.run_id, remote_homes)
|
|
2295
|
+
batch_host_conflicts = batch_host_result['conflicts']
|
|
2296
|
+
head_mismatches = batch_host_result['head_mismatches']
|
|
2297
|
+
manifest['batchHostMergeTree'] = {
|
|
2298
|
+
'host': args.host,
|
|
2299
|
+
'members': [{'pr': row.pr, 'head': row.head} for row in chosen],
|
|
2300
|
+
'conflicts': sorted(batch_host_conflicts, key=int),
|
|
2301
|
+
'headMismatches': [{'pr': pr, **details} for pr, details in sorted(head_mismatches.items(), key=lambda item: int(item[0]))],
|
|
2302
|
+
'decision': ('head-mismatch-dropped' if head_mismatches else
|
|
2303
|
+
'clean' if not batch_host_conflicts else 'conflict'),
|
|
2304
|
+
}
|
|
2305
|
+
if head_mismatches:
|
|
2306
|
+
chosen, stale_rows = defer_head_mismatches(chosen, head_mismatches)
|
|
2307
|
+
deferred.extend(stale_rows)
|
|
2308
|
+
for stale in stale_rows:
|
|
2309
|
+
row = next(item for item in rows if item.pr == stale['pr'])
|
|
2310
|
+
owner, sent = notify_head_mismatch_owner(row, head_mismatches[str(row.pr)], repo)
|
|
2311
|
+
log(f'batch head mismatch #{row.pr} dropped only this row; owner={owner} mail_rc={sent.returncode}')
|
|
2312
|
+
args.authorize = ','.join(row.pr for row in chosen)
|
|
2313
|
+
manifest['members'] = [row.as_dict() for row in chosen]
|
|
2314
|
+
manifest['deferred'] = deferred + [
|
|
2315
|
+
{'pr': p, 'reason': 'same PR/head/base already measured in train-memory.jsonl'}
|
|
2316
|
+
for p in sorted(memory_excluded, key=int)]
|
|
2317
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2318
|
+
if batch_host_conflicts:
|
|
2319
|
+
raise RuntimeError(f'batch-host merge-tree found conflict(s) in authorized selection: {sorted(batch_host_conflicts, key=int)}')
|
|
2320
|
+
if not chosen:
|
|
2321
|
+
raise RuntimeError('all authorized batch rows had a remote head mismatch; stale rows dropped and owners notified')
|
|
2322
|
+
try:
|
|
2323
|
+
pr_files = changed_files_by_pr(repo, args.base, chosen)
|
|
2324
|
+
integration_rows = list(chosen)
|
|
2325
|
+
integration_conflicts = []
|
|
2326
|
+
integration_attempt = 0
|
|
2327
|
+
while True:
|
|
2328
|
+
integration_attempt += 1
|
|
2329
|
+
try:
|
|
2330
|
+
integration_artifact = integrate_rows_remote(
|
|
2331
|
+
args.host, args.base, integration_rows, args.run_id,
|
|
2332
|
+
f'primary-{integration_attempt}', integration_resources, remote_homes)
|
|
2333
|
+
integration = integration_artifact['head']
|
|
2334
|
+
break
|
|
2335
|
+
except RuntimeError as exc:
|
|
2336
|
+
conflict = re.search(r'integration merge failed #([0-9]+):', str(exc))
|
|
2337
|
+
if not conflict:
|
|
2338
|
+
raise
|
|
2339
|
+
failed_pr = conflict.group(1)
|
|
2340
|
+
failed_row = next((row for row in integration_rows if row.pr == failed_pr), None)
|
|
2341
|
+
if failed_row is None or len(integration_rows) - 1 < 1:
|
|
2342
|
+
raise
|
|
2343
|
+
reason = f'integration-conflict: {str(exc)[-1000:]}'
|
|
2344
|
+
park_script = Path.home() / 'elanous-hq/seat-state/OP/tools/train-park.py'
|
|
2345
|
+
namespace = {'__name__': 'train_park_conflict', '__file__': str(park_script)}
|
|
2346
|
+
exec(compile(park_script.read_text(), str(park_script), 'exec'), namespace)
|
|
2347
|
+
conflict_detail = str(exc)[-1600:]
|
|
2348
|
+
conflict_paths = sorted(set(re.findall(
|
|
2349
|
+
r'(?i)(?:merge conflict in|conflict in|CONFLICT[^:]*: )\s*([^\s]+)', conflict_detail)))
|
|
2350
|
+
park_context = {'bundle_members': [str(r.pr) for r in integration_rows],
|
|
2351
|
+
'integration_head': 'not-built (merge failed before gate integration commit)',
|
|
2352
|
+
'failed_stage': 'integration-merge',
|
|
2353
|
+
'file_line': ','.join(f'{path}:unknown' for path in conflict_paths) or 'merge-conflict:unknown'}
|
|
2354
|
+
parked = namespace['park'](args.queue, failed_pr, failed_row.head,
|
|
2355
|
+
reason or f'integration-conflict #{failed_pr}', args.run_id,
|
|
2356
|
+
conflict_detail, park_context)
|
|
2357
|
+
if parked is None:
|
|
2358
|
+
raise RuntimeError(f'conflict PR #{failed_pr} could not be safely parked')
|
|
2359
|
+
integration_conflicts.append({'pr': failed_pr, 'head': failed_row.head,
|
|
2360
|
+
'reason': reason})
|
|
2361
|
+
integration_rows = [row for row in integration_rows if row.pr != failed_pr]
|
|
2362
|
+
manifest['integrationConflictParked'] = integration_conflicts
|
|
2363
|
+
manifest['members'] = [row.as_dict() for row in integration_rows]
|
|
2364
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2365
|
+
log(f'integration conflict #{failed_pr} parked; restarting with {[r.pr for r in integration_rows]}')
|
|
2366
|
+
pre_regen_artifact = integration_artifact
|
|
2367
|
+
pre_regen_head = integration
|
|
2368
|
+
pre_regen_rows = [Row(row.pr, row.head, row.tree, row.evidence) for row in integration_rows]
|
|
2369
|
+
pre_regen_pr_files = {str(pr): list(paths) for pr, paths in pr_files.items()}
|
|
2370
|
+
regeneration_failed = False
|
|
2371
|
+
try:
|
|
2372
|
+
integration_artifact, integration, integration_rows, pr_files, regenerated = regenerate_integrated_tree_once(
|
|
2373
|
+
args, queue, repo, integration_rows, pr_files, integration_artifact,
|
|
2374
|
+
integration_attempt, manifest, integration_resources, remote_homes)
|
|
2375
|
+
except Exception as exc:
|
|
2376
|
+
regeneration_failed = True
|
|
2377
|
+
integration_artifact, integration = pre_regen_artifact, pre_regen_head
|
|
2378
|
+
integration_rows, pr_files = pre_regen_rows, pre_regen_pr_files
|
|
2379
|
+
reason = str(exc)[-1200:]
|
|
2380
|
+
event = {'type': 'generated-regeneration-skipped', 'status': 'skipped-failed',
|
|
2381
|
+
'jobs': generated_regen_jobs(pre_regen_pr_files), 'reason': reason,
|
|
2382
|
+
'integrationHead': pre_regen_head, 'attempt': integration_attempt}
|
|
2383
|
+
manifest['generatedRegeneration'] = event
|
|
2384
|
+
manifest.setdefault('events', []).append(event)
|
|
2385
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2386
|
+
log(f'generated regeneration skipped after failure; continuing pinned gate at {pre_regen_head[:12]}: {reason}')
|
|
2387
|
+
regenerated = False
|
|
2388
|
+
if regenerated:
|
|
2389
|
+
integration_attempt += 1
|
|
2390
|
+
log(f'generated-only refresh pushed; re-integrated exact PR heads at {integration[:12]} before gate')
|
|
2391
|
+
manifest['members'] = [row.as_dict() for row in integration_rows]
|
|
2392
|
+
manifest['queueSha256'] = hashlib.sha256(queue.read_bytes()).hexdigest()
|
|
2393
|
+
manifest['integrationHead'] = integration
|
|
2394
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2395
|
+
chosen = integration_rows
|
|
2396
|
+
if not chosen_still_queued(queue, chosen):
|
|
2397
|
+
if regeneration_failed:
|
|
2398
|
+
log('selected queue head changed during failed regeneration; continue gate on the pinned pre-hook integration')
|
|
2399
|
+
else:
|
|
2400
|
+
raise RuntimeError('queue changed before gate (chosen PR removed or head moved)')
|
|
2401
|
+
remote_id = args.run_id
|
|
2402
|
+
summary = args.artifacts / 'summary.json'
|
|
2403
|
+
|
|
2404
|
+
def invoke_gate(host, suffix, summary_path, log_path, gate_bundle, gate_integration, gate_rows, gate_pr_files):
|
|
2405
|
+
home_result = command(['ssh', '-o', 'ConnectTimeout=10', host, 'printf %s "$HOME"'], timeout=30)
|
|
2406
|
+
if home_result.returncode or not home_result.stdout.strip().startswith('/'):
|
|
2407
|
+
raise RuntimeError(f'cannot resolve persistent artifact home on {host}')
|
|
2408
|
+
remote_root = remote_batch_root(home_result.stdout.strip(), remote_id, suffix)
|
|
2409
|
+
remote_tree = f'{remote_root}-worktree'
|
|
2410
|
+
remote_tmpdir = f'{remote_root}-tmp'
|
|
2411
|
+
remote_art = f'{remote_root}-art'
|
|
2412
|
+
remote_bundle = gate_bundle['bundle'] if host == gate_bundle['host'] else f'{remote_root}.bundle'
|
|
2413
|
+
remeasure_helper = Path(__file__).with_name('train-gate-remeasure.py')
|
|
2414
|
+
if not remeasure_helper.is_file():
|
|
2415
|
+
raise RuntimeError(f'train gate remeasurement helper missing: {remeasure_helper}')
|
|
2416
|
+
if host != gate_bundle['host']:
|
|
2417
|
+
command(ssh_remote_command(host, f'umask 022; mkdir -p {shlex.quote(str(Path(remote_root).parent))}'), timeout=30)
|
|
2418
|
+
remote_bundle_copies.append({'host': host, 'path': remote_bundle})
|
|
2419
|
+
transfer = command(scp_transfer(f'{gate_bundle["host"]}:{gate_bundle["bundle"]}',
|
|
2420
|
+
f'{host}:{remote_bundle}'), timeout=120)
|
|
2421
|
+
if transfer.returncode:
|
|
2422
|
+
raise RuntimeError(f'integration bundle transfer {gate_bundle["host"]} to {host} failed: {transfer.stderr[-1000:]}')
|
|
2423
|
+
else:
|
|
2424
|
+
command(ssh_remote_command(host, f'umask 022; mkdir -p {shlex.quote(str(Path(remote_root).parent))}'), timeout=30)
|
|
2425
|
+
helper_remote = f'{remote_root}-train-gate-remeasure.py'
|
|
2426
|
+
helper_transfer = command(scp_transfer(remeasure_helper, f'{host}:{helper_remote}'), timeout=60)
|
|
2427
|
+
if helper_transfer.returncode:
|
|
2428
|
+
raise RuntimeError(f'train gate remeasurement helper transfer to {host} failed: {helper_transfer.stderr[-1000:]}')
|
|
2429
|
+
gate_timeout = gate_timeout_for_host(host, args.gate_timeout)
|
|
2430
|
+
gate_tier, tier_decisions = classify_batch_gate(repo, args.base, gate_rows, gate_pr_files)
|
|
2431
|
+
manifest['gateTier'] = {'tier': gate_tier, 'decisions': tier_decisions,
|
|
2432
|
+
'rule': 'highest-member-tier-wins; unknown=>T2'}
|
|
2433
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2434
|
+
log(f"gate tier={gate_tier} members=" + ','.join(
|
|
2435
|
+
f"#{item.get('pr')}:{item.get('tier')}[{','.join(item.get('rules', []))}]"
|
|
2436
|
+
for item in tier_decisions))
|
|
2437
|
+
payload = build_remote_gate_command(args.base, gate_integration, remote_bundle,
|
|
2438
|
+
remote_tree, remote_art, helper_remote,
|
|
2439
|
+
gate_timeout, args.shards,
|
|
2440
|
+
remote_path_for_host(host), remote_tmpdir, gate_tier)
|
|
2441
|
+
with log_path.open('w') as out:
|
|
2442
|
+
result = subprocess.run(ssh_remote_command(host, payload), text=True,
|
|
2443
|
+
stdout=out, stderr=subprocess.STDOUT,
|
|
2444
|
+
timeout=gate_timeout + 300)
|
|
2445
|
+
infra = remote_setup_infra_detail(log_path) if result.returncode else ''
|
|
2446
|
+
try:
|
|
2447
|
+
preserved_art = preserve_remote_artifacts(
|
|
2448
|
+
host, remote_art, summary_path if result.returncode == 0 else None, args.artifacts)
|
|
2449
|
+
except RuntimeError as exc:
|
|
2450
|
+
# OP 11-05: a remote setup failure (e.g. disk full before the worktree exists)
|
|
2451
|
+
# leaves no artifact dir; report the setup cause, not «rsync change_dir».
|
|
2452
|
+
if result.returncode and 'change_dir' in str(exc):
|
|
2453
|
+
raise RuntimeError(f'aggregate gate setup/unmeasured rc={result.returncode} on {host}; '
|
|
2454
|
+
f'remote artifacts absent; {infra or "setup failed before artifacts"}'
|
|
2455
|
+
f'\nsee {log_path}') from exc
|
|
2456
|
+
raise
|
|
2457
|
+
recovered = None
|
|
2458
|
+
if result.returncode and not infra and not (preserved_art / 'summary.json').is_file():
|
|
2459
|
+
recovered = recover_completed_shard_verdict(repo, preserved_art, args.base, gate_integration)
|
|
2460
|
+
if recovered is not None:
|
|
2461
|
+
summary_path.write_text(json.dumps(recovered, indent=2) + '\n')
|
|
2462
|
+
if result.returncode and infra and recovered is None:
|
|
2463
|
+
raise RuntimeError(f'aggregate gate setup/unmeasured rc={result.returncode} on {host}; {infra}\nsee {log_path}')
|
|
2464
|
+
if result.returncode and recovered is None:
|
|
2465
|
+
remote_tail = remote_gate_log_tail(log_path.read_text())
|
|
2466
|
+
detail = f'\nremote gate.log tail (last 20 lines):\n{remote_tail}' if remote_tail else ''
|
|
2467
|
+
raise RuntimeError(f'aggregate gate setup/unmeasured rc={result.returncode} on {host}; artifacts={preserved_art};{detail}\nsee {log_path}')
|
|
2468
|
+
if not (preserved_art / 'summary.json').is_file() and recovered is None:
|
|
2469
|
+
raise RuntimeError(f'gate summary missing after artifact preservation from {host}:{remote_art}')
|
|
2470
|
+
summary_data = json.loads(summary_path.read_text())
|
|
2471
|
+
typecheck = summary_data.get('typecheck')
|
|
2472
|
+
if isinstance(typecheck, dict) and typecheck.get('status') == 'failed':
|
|
2473
|
+
local_tsc_log = preserved_art / 'typecheck.log'
|
|
2474
|
+
if not local_tsc_log.is_file():
|
|
2475
|
+
raise RuntimeError(f'preserved typecheck log missing: {local_tsc_log}')
|
|
2476
|
+
enrich_typecheck_summary(summary_path, local_tsc_log, gate_pr_files)
|
|
2477
|
+
refreshed = json.loads(summary_path.read_text())
|
|
2478
|
+
refreshed_tc = refreshed.get('typecheck') if isinstance(refreshed, dict) else None
|
|
2479
|
+
if not isinstance(refreshed_tc, dict) or refreshed_tc.get('status') != 'passed':
|
|
2480
|
+
local_tsc_log = preserved_art / 'typecheck.log'
|
|
2481
|
+
record_typecheck_rejections(repo, args.base, gate_rows, summary_path, args.artifacts,
|
|
2482
|
+
local_tsc_log if local_tsc_log.is_file() else None)
|
|
2483
|
+
remote_head = re.search(r'^BATCH_HEAD=([0-9a-f]{40})$', log_path.read_text(), re.M)
|
|
2484
|
+
if not remote_head or remote_head.group(1) != gate_integration:
|
|
2485
|
+
raise RuntimeError(f'{host} integration head mismatch')
|
|
2486
|
+
if recovered is not None:
|
|
2487
|
+
return int(recovered['exitCode'])
|
|
2488
|
+
gate_rc = re.search(r'^GATE_RC=([0-9]+)$', log_path.read_text(), re.M)
|
|
2489
|
+
if not gate_rc:
|
|
2490
|
+
raise RuntimeError(f'{host} gate exit code missing')
|
|
2491
|
+
return int(gate_rc.group(1))
|
|
2492
|
+
|
|
2493
|
+
def invoke_timeout_remeasure(host, files, gate_bundle, gate_integration):
|
|
2494
|
+
if host == args.host:
|
|
2495
|
+
raise RuntimeError('timeout-only remeasurement must use a different host')
|
|
2496
|
+
home_result = command(['ssh', '-o', 'ConnectTimeout=10', host, 'printf %s "$HOME"'], timeout=30)
|
|
2497
|
+
if home_result.returncode or not home_result.stdout.strip().startswith('/'):
|
|
2498
|
+
raise RuntimeError(f'cannot resolve timeout remeasurement home on {host}')
|
|
2499
|
+
suffix = f'timeout-remeasure-{host}'
|
|
2500
|
+
remote_root = remote_batch_root(home_result.stdout.strip(), remote_id, suffix)
|
|
2501
|
+
remote_tree = f'{remote_root}-worktree'
|
|
2502
|
+
remote_tmpdir = f'{remote_root}-tmp'
|
|
2503
|
+
remote_art = f'{remote_root}-art'
|
|
2504
|
+
remote_bundle = gate_bundle['bundle'] if host == gate_bundle['host'] else f'{remote_root}.bundle'
|
|
2505
|
+
command(ssh_remote_command(host, f'umask 022; mkdir -p {shlex.quote(str(Path(remote_root).parent))}'), timeout=30)
|
|
2506
|
+
if host != gate_bundle['host']:
|
|
2507
|
+
remote_bundle_copies.append({'host': host, 'path': remote_bundle})
|
|
2508
|
+
transfer = command(scp_transfer(f'{gate_bundle["host"]}:{gate_bundle["bundle"]}',
|
|
2509
|
+
f'{host}:{remote_bundle}'), timeout=120)
|
|
2510
|
+
if transfer.returncode:
|
|
2511
|
+
raise RuntimeError(f'timeout integration bundle transfer to {host} failed: {transfer.stderr[-1000:]}')
|
|
2512
|
+
payload = build_remote_timeout_remeasure_command(
|
|
2513
|
+
gate_integration, remote_bundle, remote_tree, remote_art, files,
|
|
2514
|
+
remote_path_for_host(host), remote_tmpdir)
|
|
2515
|
+
log_path = args.artifacts / f'timeout-remeasure-{host}.stdout.log'
|
|
2516
|
+
try:
|
|
2517
|
+
with log_path.open('w') as out:
|
|
2518
|
+
result = subprocess.run(ssh_remote_command(host, payload), text=True,
|
|
2519
|
+
stdout=out, stderr=subprocess.STDOUT, timeout=420)
|
|
2520
|
+
except subprocess.TimeoutExpired:
|
|
2521
|
+
return {'status': 'unmeasured', 'host': host, 'files': files, 'log': str(log_path)}
|
|
2522
|
+
text = log_path.read_text()
|
|
2523
|
+
status = 'passed' if result.returncode == 0 and 'TIMEOUT_REMEASURE_STATUS=passed' in text else 'failed'
|
|
2524
|
+
return {'status': status, 'host': host, 'files': files, 'returncode': result.returncode,
|
|
2525
|
+
'log': str(log_path), 'output': text[-2000:]}
|
|
2526
|
+
|
|
2527
|
+
def isolate_typecheck(host, row, suffix, gate_bundle, gate_integration):
|
|
2528
|
+
home_result = command(['ssh', '-o', 'ConnectTimeout=10', host, 'printf %s "$HOME"'], timeout=30)
|
|
2529
|
+
if home_result.returncode or not home_result.stdout.strip().startswith('/'):
|
|
2530
|
+
raise RuntimeError(f'cannot resolve persistent artifact home on {host}')
|
|
2531
|
+
remote_root = remote_batch_root(home_result.stdout.strip(), remote_id, suffix)
|
|
2532
|
+
remote_tree = f'{remote_root}-worktree'
|
|
2533
|
+
remote_tmpdir = f'{remote_root}-tmp'
|
|
2534
|
+
remote_art = f'{remote_root}-art'
|
|
2535
|
+
remote_bundle = gate_bundle['bundle'] if host == gate_bundle['host'] else f'{remote_root}.bundle'
|
|
2536
|
+
if host != gate_bundle['host']:
|
|
2537
|
+
command(ssh_remote_command(host, f'umask 022; mkdir -p {shlex.quote(str(Path(remote_root).parent))}'), timeout=30)
|
|
2538
|
+
remote_bundle_copies.append({'host': host, 'path': remote_bundle})
|
|
2539
|
+
transfer = command(scp_transfer(f'{gate_bundle["host"]}:{gate_bundle["bundle"]}',
|
|
2540
|
+
f'{host}:{remote_bundle}'), timeout=120)
|
|
2541
|
+
if transfer.returncode:
|
|
2542
|
+
raise RuntimeError(f'isolation bundle transfer {gate_bundle["host"]} to {host} failed #{row.pr}: {transfer.stderr[-1000:]}')
|
|
2543
|
+
else:
|
|
2544
|
+
command(ssh_remote_command(host, f'umask 022; mkdir -p {shlex.quote(str(Path(remote_root).parent))}'), timeout=30)
|
|
2545
|
+
payload = build_remote_typecheck_command(args.base, gate_integration, remote_bundle,
|
|
2546
|
+
remote_tree, remote_art, args.gate_timeout, remote_tmpdir)
|
|
2547
|
+
log_path = args.artifacts / f'typecheck-isolation-{row.pr}.stdout.log'
|
|
2548
|
+
with log_path.open('w') as out:
|
|
2549
|
+
result = subprocess.run(ssh_remote_command(host, payload), text=True,
|
|
2550
|
+
stdout=out, stderr=subprocess.STDOUT,
|
|
2551
|
+
timeout=args.gate_timeout + 300)
|
|
2552
|
+
if result.returncode:
|
|
2553
|
+
raise RuntimeError(f'single-PR typecheck isolation failed #{row.pr} on {host}; see {log_path}')
|
|
2554
|
+
summary_path = args.artifacts / f'typecheck-isolation-{row.pr}.json'
|
|
2555
|
+
preserved_art = preserve_remote_artifacts(host, remote_art, None, args.artifacts)
|
|
2556
|
+
copied = command(scp_transfer(f'{host}:{remote_art}/typecheck-summary.json', summary_path), timeout=60)
|
|
2557
|
+
if copied.returncode:
|
|
2558
|
+
raise RuntimeError(f'isolation summary copy failed #{row.pr}: {copied.stderr[-1000:]} artifacts={preserved_art}')
|
|
2559
|
+
data = json.loads(summary_path.read_text())
|
|
2560
|
+
typecheck = data.get('typecheck')
|
|
2561
|
+
if (not isinstance(typecheck, dict) or typecheck.get('base40') != args.base
|
|
2562
|
+
or typecheck.get('head40') != gate_integration):
|
|
2563
|
+
raise RuntimeError(f'single-PR typecheck receipt unbound #{row.pr}')
|
|
2564
|
+
if typecheck.get('status') not in ('passed', 'failed'):
|
|
2565
|
+
raise RuntimeError(f'single-PR typecheck unmeasured #{row.pr}: {typecheck.get("reason", "no reason")}')
|
|
2566
|
+
return typecheck
|
|
2567
|
+
|
|
2568
|
+
primary_pr_files = pr_files
|
|
2569
|
+
first_gate_rc = invoke_gate(args.host, 'primary', summary,
|
|
2570
|
+
args.artifacts / 'remote-gate.stdout.log',
|
|
2571
|
+
integration_artifact, integration, chosen, primary_pr_files)
|
|
2572
|
+
retry_summary = None
|
|
2573
|
+
gate_host = args.host
|
|
2574
|
+
timeout_files = gate_timeout_only_files(summary)
|
|
2575
|
+
timeout_only_attempted = bool(timeout_files)
|
|
2576
|
+
first_failed = gate_failed_introduced(summary)
|
|
2577
|
+
if timeout_files:
|
|
2578
|
+
timeout_lock = None
|
|
2579
|
+
timeout_owner = None
|
|
2580
|
+
timeout_host = retry_host
|
|
2581
|
+
if timeout_host == args.host:
|
|
2582
|
+
handoff = reserve_unmeasured_handoff(queue, {args.host})
|
|
2583
|
+
if handoff is not None:
|
|
2584
|
+
timeout_host, timeout_lock, timeout_owner = handoff
|
|
2585
|
+
timeout_result = {'status': 'unmeasured', 'host': timeout_host, 'files': timeout_files,
|
|
2586
|
+
'reason': 'no different host available'}
|
|
2587
|
+
# OP 11-08 06:15: 같은 호스트 재측정은 invoke_timeout_remeasure 가 거부(«must use a different host») → 05:2x 변경 되돌림
|
|
2588
|
+
if timeout_host != args.host:
|
|
2589
|
+
try:
|
|
2590
|
+
timeout_result = invoke_timeout_remeasure(
|
|
2591
|
+
timeout_host, timeout_files, integration_artifact, integration)
|
|
2592
|
+
finally:
|
|
2593
|
+
if timeout_lock is not None:
|
|
2594
|
+
release(timeout_lock, timeout_owner)
|
|
2595
|
+
summary_data = json.loads(summary.read_text())
|
|
2596
|
+
summary_data['trainTimeoutRemeasurement'] = timeout_result
|
|
2597
|
+
if timeout_result.get('status') == 'passed':
|
|
2598
|
+
summary_data['trainOriginalGate'] = {
|
|
2599
|
+
'verdict': summary_data.get('verdict'), 'exitCode': summary_data.get('exitCode')}
|
|
2600
|
+
summary_data['verdict'] = 'passed'
|
|
2601
|
+
summary_data['exitCode'] = 0
|
|
2602
|
+
summary_data['verdictLine'] = str(summary_data.get('verdictLine', '')) + (
|
|
2603
|
+
f"\n[train-timeout-remeasure] {len(timeout_files)} timed-out file(s) passed once "
|
|
2604
|
+
f"on alternate host {timeout_host}; introduced=0")
|
|
2605
|
+
first_failed = False
|
|
2606
|
+
else:
|
|
2607
|
+
first_failed = True
|
|
2608
|
+
summary.write_text(json.dumps(summary_data, indent=2) + '\n')
|
|
2609
|
+
retry_rows, typecheck_excluded, attribution_fallback = (
|
|
2610
|
+
typecheck_retry_plan(chosen, summary) if first_failed else (chosen, [], False))
|
|
2611
|
+
gate_excluded, gate_failures = ([], [])
|
|
2612
|
+
if first_failed:
|
|
2613
|
+
gate_excluded, gate_failures = gate_failure_file_attribution(
|
|
2614
|
+
pr_files, chosen, summary, args.artifacts)
|
|
2615
|
+
excluded = set(typecheck_excluded) | set(gate_excluded)
|
|
2616
|
+
survivors = [row for row in chosen if row.pr not in excluded]
|
|
2617
|
+
if survivors:
|
|
2618
|
+
retry_rows = survivors
|
|
2619
|
+
else:
|
|
2620
|
+
# Never manufacture an empty retry or strike every member
|
|
2621
|
+
# when the failing file cannot be isolated from the batch.
|
|
2622
|
+
typecheck_excluded, gate_excluded = [], []
|
|
2623
|
+
retry_rows = list(chosen)
|
|
2624
|
+
gate_marker = args.artifacts / 'gate-rejections.json'
|
|
2625
|
+
if gate_excluded:
|
|
2626
|
+
marker = json.loads(gate_marker.read_text())
|
|
2627
|
+
manifest['gateExcludedPrs'] = gate_excluded
|
|
2628
|
+
manifest['gateAttribution'] = str(gate_marker)
|
|
2629
|
+
manifest['gateFailures'] = gate_failures
|
|
2630
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2631
|
+
rows_by_pr = {str(row.pr): row for row in chosen}
|
|
2632
|
+
for pr in gate_excluded:
|
|
2633
|
+
row = rows_by_pr[pr]
|
|
2634
|
+
owner = row_owner(row, repo)
|
|
2635
|
+
details = marker.get('prs', {}).get(pr, {}).get('failures', [])
|
|
2636
|
+
evidence = '\n'.join(f"{item['cause']}: {item['path']} · {item['evidence']}"
|
|
2637
|
+
for item in details)
|
|
2638
|
+
body = (f'[TRAIN gate 귀속] #{pr} gate 실패 파일 소유 · strike 는 이 PR 에만 · '
|
|
2639
|
+
f'base={args.base[:12]} head={row.head[:12]} run={remote_id}\n'
|
|
2640
|
+
f'{evidence}\n기록 {gate_marker}')
|
|
2641
|
+
sent = send_typecheck_owner(owner, body, repo)
|
|
2642
|
+
log(f'gate rejection marker #{pr} owner={owner} mail_rc={sent.returncode}')
|
|
2643
|
+
retry_integration, retry_artifact = integration, integration_artifact
|
|
2644
|
+
retry_attributed = bool(typecheck_excluded or gate_excluded)
|
|
2645
|
+
retry_plan = plan_retry_for_batch(
|
|
2646
|
+
retry_rows, primary_pr_files, attributed=retry_attributed,
|
|
2647
|
+
attributed_pr_files=(changed_files_by_pr(repo, args.base, retry_rows)
|
|
2648
|
+
if retry_attributed else None))
|
|
2649
|
+
retry_rows, retry_pr_files = retry_plan['rows'], retry_plan['pr_files']
|
|
2650
|
+
if (first_failed or gate_is_unmeasured(summary, args.base, integration)) and not timeout_only_attempted:
|
|
2651
|
+
if typecheck_excluded or gate_excluded:
|
|
2652
|
+
retry_artifact = integrate_rows_remote(
|
|
2653
|
+
args.host, args.base, retry_rows, args.run_id,
|
|
2654
|
+
'attributed-retry', integration_resources, remote_homes)
|
|
2655
|
+
retry_integration = retry_artifact['head']
|
|
2656
|
+
retry_artifact, retry_integration, retry_rows, retry_pr_files, _ = regenerate_integrated_tree_once(
|
|
2657
|
+
args, queue, repo, retry_rows, retry_pr_files, retry_artifact,
|
|
2658
|
+
integration_attempt + 1, manifest, integration_resources, remote_homes)
|
|
2659
|
+
manifest['typecheckExcludedPrs'] = typecheck_excluded
|
|
2660
|
+
manifest['typecheckAttribution'] = str(summary)
|
|
2661
|
+
manifest['gateExcludedPrs'] = gate_excluded
|
|
2662
|
+
manifest['gateAttribution'] = (str(args.artifacts / 'gate-rejections.json')
|
|
2663
|
+
if gate_excluded else None)
|
|
2664
|
+
if attribution_fallback:
|
|
2665
|
+
manifest['typecheckIsolationFallback'] = 'all-attributed -> no attribution; retry intact batch'
|
|
2666
|
+
manifest['typecheckRetryMembers'] = [{'pr': r.pr, 'head': r.head} for r in retry_rows]
|
|
2667
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2668
|
+
# OP 10-28 20:4x: 열차 N개 — 재판정은 기본 «자기 호스트»(--retry-host). 남의 열차 호스트로 가면 두 게이트가 겹쳐 baseline 이 OOM(SIGKILL)으로 unmeasured 가 된다(193133).
|
|
2669
|
+
retry_summary = args.artifacts / f'summary-{retry_host}-retry.json'
|
|
2670
|
+
retry_plan = plan_retry_for_batch(
|
|
2671
|
+
retry_rows, primary_pr_files, attributed=retry_attributed,
|
|
2672
|
+
attributed_pr_files=retry_pr_files if retry_attributed else None)
|
|
2673
|
+
retry_rows = retry_plan['rows']
|
|
2674
|
+
retry_pr_files = retry_plan['pr_files']
|
|
2675
|
+
retry_gate_rc = invoke_gate(
|
|
2676
|
+
retry_host, 'retry', retry_summary,
|
|
2677
|
+
args.artifacts / f'remote-gate-{retry_host}.stdout.log',
|
|
2678
|
+
retry_artifact, retry_integration, retry_rows, retry_pr_files)
|
|
2679
|
+
gate_host = retry_host
|
|
2680
|
+
manifest['gateRetry'] = {'from': args.host, 'to': retry_host,
|
|
2681
|
+
'firstExitCode': first_gate_rc,
|
|
2682
|
+
'firstVerdict': 'failed' if first_failed else 'unmeasured',
|
|
2683
|
+
'summary': str(retry_summary), 'integrationHead': retry_integration,
|
|
2684
|
+
'members': [{'pr': r.pr, 'head': r.head} for r in retry_rows],
|
|
2685
|
+
'excludedByTypecheck': typecheck_excluded,
|
|
2686
|
+
'excludedByGateAttribution': gate_excluded}
|
|
2687
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2688
|
+
# Repeated infrastructure/unmeasured on the same host is not a PR strike.
|
|
2689
|
+
# Reserve another train slot and pass the identical integration there.
|
|
2690
|
+
if retry_needs_unmeasured_handoff(retry_summary, args.base, retry_integration):
|
|
2691
|
+
handoff = reserve_unmeasured_handoff(queue, {args.host, retry_host})
|
|
2692
|
+
if handoff is None:
|
|
2693
|
+
manifest['gateFailover'] = {'status': 'no-unreserved-train-host',
|
|
2694
|
+
'afterHost': retry_host}
|
|
2695
|
+
else:
|
|
2696
|
+
handoff_host, handoff_lock, handoff_owner = handoff
|
|
2697
|
+
handoff_summary = args.artifacts / f'summary-{handoff_host}-handoff.json'
|
|
2698
|
+
try:
|
|
2699
|
+
handoff_pr_files = changed_files_by_pr(repo, args.base, retry_rows)
|
|
2700
|
+
invoke_gate(handoff_host, 'handoff', handoff_summary,
|
|
2701
|
+
args.artifacts / f'remote-gate-{handoff_host}-handoff.stdout.log',
|
|
2702
|
+
retry_artifact,
|
|
2703
|
+
retry_integration, retry_rows, handoff_pr_files)
|
|
2704
|
+
finally:
|
|
2705
|
+
release(handoff_lock, handoff_owner)
|
|
2706
|
+
final_failover = json.loads(handoff_summary.read_text())
|
|
2707
|
+
manifest['gateFailover'] = {'status': final_failover.get('verdict', 'unknown'),
|
|
2708
|
+
'from': retry_host, 'to': handoff_host,
|
|
2709
|
+
'summary': str(handoff_summary),
|
|
2710
|
+
'integrationHead': retry_integration}
|
|
2711
|
+
retry_summary = handoff_summary
|
|
2712
|
+
retry_host = handoff_host
|
|
2713
|
+
gate_host = handoff_host
|
|
2714
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2715
|
+
_, gate_invocations = select_gate_summary(
|
|
2716
|
+
summary, retry_summary, args.base, retry_integration, retry_rows, retry_host)
|
|
2717
|
+
if retry_summary is not None:
|
|
2718
|
+
summary = retry_summary
|
|
2719
|
+
final_summary = json.loads(summary.read_text())
|
|
2720
|
+
final_status = final_preflight_status(final_summary)
|
|
2721
|
+
if args.preflight_only:
|
|
2722
|
+
row = retry_rows[0]
|
|
2723
|
+
details = {'host': gate_host, 'summary': str(summary),
|
|
2724
|
+
'integrationHead': retry_integration,
|
|
2725
|
+
'typecheck': (final_summary.get('typecheck') or {}).get('status'),
|
|
2726
|
+
'tests': final_summary.get('verdict'), 'mainMerge': 'passed',
|
|
2727
|
+
'artifacts': str(args.artifacts)}
|
|
2728
|
+
memory_append(row.pr, row.head, args.base, 'solo-check', final_status,
|
|
2729
|
+
run_id=remote_id, **details)
|
|
2730
|
+
preflight_result = {'status': final_status, 'pr': row.pr, 'head': row.head,
|
|
2731
|
+
'base': args.base, **details}
|
|
2732
|
+
(args.artifacts / 'preflight-result.json').write_text(
|
|
2733
|
+
json.dumps(preflight_result, indent=2) + '\n')
|
|
2734
|
+
if final_status != 'passed':
|
|
2735
|
+
owner = row_owner(row, repo)
|
|
2736
|
+
body = (f'[TRAIN preflight] #{row.pr} 단독 사전 검문 {final_status} · '
|
|
2737
|
+
f'head={row.head[:12]} base={args.base[:12]} host={gate_host} · '
|
|
2738
|
+
f'typecheck={details["typecheck"]} · gate={details["tests"]} · '
|
|
2739
|
+
f'산출물 {args.artifacts}')
|
|
2740
|
+
sent = send_typecheck_owner(owner, body, repo)
|
|
2741
|
+
log(f'solo preflight #{row.pr} status={final_status} owner={owner} mail_rc={sent.returncode}')
|
|
2742
|
+
else:
|
|
2743
|
+
log(f'solo preflight #{row.pr} passed; cached PR/head/base in train-memory.jsonl')
|
|
2744
|
+
manifest['preflight'] = preflight_result
|
|
2745
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2746
|
+
return preflight_result
|
|
2747
|
+
for row in retry_rows:
|
|
2748
|
+
memory_append(row.pr, row.head, args.base, 'batch-gate', final_status,
|
|
2749
|
+
run_id=remote_id, host=gate_host,
|
|
2750
|
+
summary=str(summary), integrationHead=retry_integration,
|
|
2751
|
+
members=[item.pr for item in retry_rows])
|
|
2752
|
+
for pr in typecheck_excluded:
|
|
2753
|
+
row = next((item for item in chosen if item.pr == pr), None)
|
|
2754
|
+
if row:
|
|
2755
|
+
memory_append(row.pr, row.head, args.base, 'batch-gate', 'failed',
|
|
2756
|
+
run_id=remote_id, host=gate_host,
|
|
2757
|
+
summary=str(summary), excludedByTypecheck=True,
|
|
2758
|
+
members=[item.pr for item in chosen])
|
|
2759
|
+
for pr in gate_excluded:
|
|
2760
|
+
row = next((item for item in chosen if str(item.pr) == str(pr)), None)
|
|
2761
|
+
if row:
|
|
2762
|
+
memory_append(row.pr, row.head, args.base, 'batch-gate', 'failed',
|
|
2763
|
+
run_id=remote_id, host=args.host,
|
|
2764
|
+
summary=str(args.artifacts / 'gate-rejections.json'),
|
|
2765
|
+
excludedByGateAttribution=True,
|
|
2766
|
+
members=[item.pr for item in chosen])
|
|
2767
|
+
receipt_log = (args.artifacts / 'remote-gate.stdout.log' if gate_invocations == 1
|
|
2768
|
+
else args.artifacts / f'remote-gate-{retry_host}.stdout.log')
|
|
2769
|
+
receipt_merge = merge_gate_receipt_marker(receipt_log, repo)
|
|
2770
|
+
manifest['gateReceiptMerge'] = receipt_merge
|
|
2771
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2772
|
+
if not chosen_still_queued(queue, chosen):
|
|
2773
|
+
if regeneration_failed:
|
|
2774
|
+
event = {'type': 'landing-skipped-after-regeneration-failure',
|
|
2775
|
+
'status': 'gated-not-landed', 'integrationHead': integration,
|
|
2776
|
+
'reason': 'selected queue head changed while the non-blocking regeneration hook failed'}
|
|
2777
|
+
manifest.setdefault('events', []).append(event)
|
|
2778
|
+
manifest['generatedRegeneration']['landing'] = event
|
|
2779
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2780
|
+
result = {'schema': 1, 'status': 'gated-not-landed', 'base': args.base,
|
|
2781
|
+
'queueSha256': hashlib.sha256(snapshot).hexdigest(), 'prs': [],
|
|
2782
|
+
'integrationHead': integration, 'reason': event['reason'],
|
|
2783
|
+
'gateInvocations': gate_invocations}
|
|
2784
|
+
(args.artifacts / 'result.json').write_text(json.dumps(result, indent=2) + '\n')
|
|
2785
|
+
log('gate completed on pinned pre-hook integration; stale queue heads were not landed')
|
|
2786
|
+
return result
|
|
2787
|
+
raise RuntimeError('queue changed before landing (chosen PR removed or head moved)')
|
|
2788
|
+
wait_queue_lock_clear(queue, 'before landing')
|
|
2789
|
+
landed = []
|
|
2790
|
+
for row in retry_rows:
|
|
2791
|
+
result = command(land_single_command(args.land_single, remote_id, row,
|
|
2792
|
+
args.side_main, gate_host, summary),
|
|
2793
|
+
timeout=args.land_timeout) # OP 10-27 19:4x: land-single 은 main12 를 요구 — 40자를 넘기면 착지 단계에서 거부
|
|
2794
|
+
if result.returncode:
|
|
2795
|
+
raise RuntimeError(f'land-single refused #{row.pr}: {(result.stderr or result.stdout)[-1200:]}')
|
|
2796
|
+
merge = re.search(r'^MERGED ([0-9a-f]{12,40})$', result.stdout, re.M)
|
|
2797
|
+
if not merge:
|
|
2798
|
+
raise RuntimeError(f'land-single gave no merge SHA for #{row.pr}')
|
|
2799
|
+
landed.append({'pr': row.pr, 'head': row.head, 'merge': merge.group(1)})
|
|
2800
|
+
(args.artifacts / 'landed.json').write_text(json.dumps(landed, indent=2) + '\n')
|
|
2801
|
+
if landed:
|
|
2802
|
+
merged_list = ', '.join(f"#{item['pr']} {item['merge'][:12]}" for item in landed)
|
|
2803
|
+
report = f'[TRAIN] 묶음 {args.run_id} 착지 {merged_list} · host={gate_host}'
|
|
2804
|
+
posted = subprocess.run(['eln', 'msg', 'post', '--from', 'TRAIN', '--to', 'OP',
|
|
2805
|
+
'--kind', 'report', '--body', report],
|
|
2806
|
+
capture_output=True, text=True, timeout=60)
|
|
2807
|
+
manifest['batchReport'] = {'body': report, 'returnCode': posted.returncode,
|
|
2808
|
+
'output': (posted.stdout or posted.stderr)[-500:]}
|
|
2809
|
+
(args.artifacts / 'manifest.json').write_text(json.dumps(manifest, indent=2) + '\n')
|
|
2810
|
+
result = {'schema': 1, 'status': 'landed', 'base': args.base,
|
|
2811
|
+
'queueSha256': hashlib.sha256(snapshot).hexdigest(), 'prs': landed,
|
|
2812
|
+
'deferred': deferred + [
|
|
2813
|
+
{'pr': pr, 'reason': 'integrated-branch typecheck error attribution',
|
|
2814
|
+
'summary': str(summary), 'retryMembers': [r.pr for r in retry_rows]}
|
|
2815
|
+
for pr in typecheck_excluded],
|
|
2816
|
+
'gateInvocations': gate_invocations,
|
|
2817
|
+
'typecheckExcludedPrs': typecheck_excluded,
|
|
2818
|
+
'gateExcludedPrs': gate_excluded}
|
|
2819
|
+
(args.artifacts / 'result.json').write_text(json.dumps(result, indent=2) + '\n')
|
|
2820
|
+
return result
|
|
2821
|
+
finally:
|
|
2822
|
+
try:
|
|
2823
|
+
cleanup_remote_bundle_copies(remote_bundle_copies)
|
|
2824
|
+
finally:
|
|
2825
|
+
cleanup_remote_integrations(integration_resources)
|
|
2826
|
+
finally:
|
|
2827
|
+
try:
|
|
2828
|
+
release_acquired_lock(batch_lock_handle)
|
|
2829
|
+
finally:
|
|
2830
|
+
release_direct_claim(direct_claim, lock)
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
def main(argv=None):
|
|
2834
|
+
p = argparse.ArgumentParser()
|
|
2835
|
+
mode = p.add_mutually_exclusive_group(required=True)
|
|
2836
|
+
mode.add_argument('--dry-run', action='store_true')
|
|
2837
|
+
mode.add_argument('--live', action='store_true')
|
|
2838
|
+
p.add_argument('--queue', required=True); p.add_argument('--repo', required=True); p.add_argument('--base', required=True)
|
|
2839
|
+
p.add_argument('--limit', type=int, choices=range(1, 6), default=4); p.add_argument('--host', default='node-b')
|
|
2840
|
+
p.add_argument('--express', action='store_true') # 대표 10-28 «열차 급행 — 단독으로 · 급할 때»: --limit 1 은 --express 와 함께만
|
|
2841
|
+
p.add_argument('--artifacts', type=Path); p.add_argument('--authorize', default=''); p.add_argument('--op-watching', action='store_true')
|
|
2842
|
+
p.add_argument('--land-single', type=Path); p.add_argument('--summary', type=Path); p.add_argument('--integration-head', default='')
|
|
2843
|
+
p.add_argument('--side-main', default=''); p.add_argument('--run-id', default='')
|
|
2844
|
+
p.add_argument('--gate-timeout', type=int, default=3600); p.add_argument('--land-timeout', type=int, default=3600)
|
|
2845
|
+
p.add_argument('--shards', type=int, default=12)
|
|
2846
|
+
p.add_argument('--exclude', default='') # 다른 열차가 잡은 PR(쉼표) — dry-run·live 둘 다 같은 값을 준다
|
|
2847
|
+
p.add_argument('--retry-host', default='') # 생략하면 원 배치 호스트(args.host); manager 할당을 명시 전달
|
|
2848
|
+
p.add_argument('--lock', default='') # 열차별 배치 잠금 디렉터리(예: land-queue.tsv.batch.lock.node-c)
|
|
2849
|
+
p.add_argument('--preflight-only', action='store_true')
|
|
2850
|
+
p.add_argument('--allow-preflight-overlap', action='store_true', help='OP-authorized same-PR parallel preflight; forbidden for landing')
|
|
2851
|
+
a = p.parse_args(argv)
|
|
2852
|
+
coupled_gate_bundle = {'34447', '34448', '34455', '34457', '34458'}
|
|
2853
|
+
if a.limit == 5 and (not a.express or set(a.authorize.split(',')) != coupled_gate_bundle):
|
|
2854
|
+
raise ValueError('limit 5 is reserved for the coupled gate-fix express bundle')
|
|
2855
|
+
if a.limit == 1 and not a.express: raise ValueError('limit 1 requires --express (급행 · 단독 열차)')
|
|
2856
|
+
if a.preflight_only and (not a.express or a.limit != 1):
|
|
2857
|
+
raise ValueError('--preflight-only requires --express --limit 1')
|
|
2858
|
+
if a.allow_preflight_overlap and not a.preflight_only:
|
|
2859
|
+
raise ValueError('--allow-preflight-overlap requires --preflight-only')
|
|
2860
|
+
if not re.fullmatch(r'[0-9a-f]{40}', a.base): raise ValueError('base must be a full SHA')
|
|
2861
|
+
if a.live:
|
|
2862
|
+
if min(a.gate_timeout, a.land_timeout, a.shards) <= 0:
|
|
2863
|
+
raise ValueError('timeouts and shards must be positive')
|
|
2864
|
+
try:
|
|
2865
|
+
run_live(a)
|
|
2866
|
+
except Exception as exc:
|
|
2867
|
+
if a.authorize and a.run_id:
|
|
2868
|
+
append_refusal_event(a, str(exc))
|
|
2869
|
+
raise
|
|
2870
|
+
else: print(json.dumps(make_plan(a.queue, a.repo, a.base, a.limit, parse_exclude(a.exclude)), indent=2))
|
|
2871
|
+
return 0
|
|
2872
|
+
|
|
2873
|
+
if __name__ == '__main__':
|
|
2874
|
+
try: sys.exit(main())
|
|
2875
|
+
except Exception as exc:
|
|
2876
|
+
print(f'BATCH REFUSED: {exc}', file=sys.stderr)
|
|
2877
|
+
sys.exit(2)
|
|
2878
|
+
# Live refuses before gate/landing until the observed aggregate-gate artifact schema binds exact base,
|
|
2879
|
+
# integration head, ordered PR heads, verdict, introduced, unknown, and unrun importer counts.
|
|
2880
|
+
# Landing must call the existing guarded land-single.sh; queue removal remains active-loop owned.
|
|
2881
|
+
# Active train-loop.sh/am-one.sh are untouched; a 2+ PR OP-attended canary remains required.
|