oh-my-copilot 5.18.2 → 5.19.2
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +206 -104
- package/bridge/__pycache__/gyoshu_bridge.cpython-314.pyc +0 -0
- package/bridge/claude-md-coordinator.cjs +2 -2
- package/bridge/cli.cjs +7155 -4471
- package/bridge/mcp-server.cjs +2470 -1027
- package/bridge/runtime-cli.cjs +102 -12
- package/bridge/team-mcp.cjs +100 -11
- package/bridge/team.js +100 -11
- package/dist/budget/ledger.d.ts +5 -0
- package/dist/budget/ledger.d.ts.map +1 -1
- package/dist/budget/ledger.js +2 -1
- package/dist/budget/ledger.js.map +1 -1
- package/dist/cli/commands/__tests__/factory-forge-cli.test.js +3 -3
- package/dist/cli/commands/__tests__/factory-forge-cli.test.js.map +1 -1
- package/dist/cli/commands/__tests__/factory-init.test.js +239 -17
- package/dist/cli/commands/__tests__/factory-init.test.js.map +1 -1
- package/dist/cli/commands/__tests__/factory-run-cli.test.js +103 -2
- package/dist/cli/commands/__tests__/factory-run-cli.test.js.map +1 -1
- package/dist/cli/commands/factory-board.d.ts +9 -0
- package/dist/cli/commands/factory-board.d.ts.map +1 -0
- package/dist/cli/commands/factory-board.js +34 -0
- package/dist/cli/commands/factory-board.js.map +1 -0
- package/dist/cli/commands/factory-check.d.ts +1 -0
- package/dist/cli/commands/factory-check.d.ts.map +1 -1
- package/dist/cli/commands/factory-check.js +2 -1
- package/dist/cli/commands/factory-check.js.map +1 -1
- package/dist/cli/commands/factory-poll.d.ts +9 -0
- package/dist/cli/commands/factory-poll.d.ts.map +1 -0
- package/dist/cli/commands/factory-poll.js +34 -0
- package/dist/cli/commands/factory-poll.js.map +1 -0
- package/dist/cli/commands/factory-setup.d.ts +2 -0
- package/dist/cli/commands/factory-setup.d.ts.map +1 -1
- package/dist/cli/commands/factory-setup.js +9 -3
- package/dist/cli/commands/factory-setup.js.map +1 -1
- package/dist/cli/commands/factory.d.ts +61 -18
- package/dist/cli/commands/factory.d.ts.map +1 -1
- package/dist/cli/commands/factory.js +325 -53
- package/dist/cli/commands/factory.js.map +1 -1
- package/dist/factory/__tests__/check-run.test.js +37 -96
- package/dist/factory/__tests__/check-run.test.js.map +1 -1
- package/dist/factory/__tests__/enqueue-ado.test.d.ts +2 -0
- package/dist/factory/__tests__/enqueue-ado.test.d.ts.map +1 -0
- package/dist/factory/__tests__/enqueue-ado.test.js +375 -0
- package/dist/factory/__tests__/enqueue-ado.test.js.map +1 -0
- package/dist/factory/__tests__/enqueue.test.d.ts +2 -0
- package/dist/factory/__tests__/enqueue.test.d.ts.map +1 -0
- package/dist/factory/__tests__/enqueue.test.js +470 -0
- package/dist/factory/__tests__/enqueue.test.js.map +1 -0
- package/dist/factory/__tests__/heal-ado.test.d.ts +2 -0
- package/dist/factory/__tests__/heal-ado.test.d.ts.map +1 -0
- package/dist/factory/__tests__/heal-ado.test.js +237 -0
- package/dist/factory/__tests__/heal-ado.test.js.map +1 -0
- package/dist/factory/__tests__/listener.test.js +27 -9
- package/dist/factory/__tests__/listener.test.js.map +1 -1
- package/dist/factory/__tests__/map-frontier.test.js +68 -0
- package/dist/factory/__tests__/map-frontier.test.js.map +1 -1
- package/dist/factory/__tests__/map-ingest.test.js +4 -3
- package/dist/factory/__tests__/map-ingest.test.js.map +1 -1
- package/dist/factory/__tests__/poll-ado.test.d.ts +2 -0
- package/dist/factory/__tests__/poll-ado.test.d.ts.map +1 -0
- package/dist/factory/__tests__/poll-ado.test.js +263 -0
- package/dist/factory/__tests__/poll-ado.test.js.map +1 -0
- package/dist/factory/__tests__/poll.test.d.ts +2 -0
- package/dist/factory/__tests__/poll.test.d.ts.map +1 -0
- package/dist/factory/__tests__/poll.test.js +748 -0
- package/dist/factory/__tests__/poll.test.js.map +1 -0
- package/dist/factory/board/__tests__/board-ado.test.d.ts +2 -0
- package/dist/factory/board/__tests__/board-ado.test.d.ts.map +1 -0
- package/dist/factory/board/__tests__/board-ado.test.js +194 -0
- package/dist/factory/board/__tests__/board-ado.test.js.map +1 -0
- package/dist/factory/board/__tests__/board.test.d.ts +2 -0
- package/dist/factory/board/__tests__/board.test.d.ts.map +1 -0
- package/dist/factory/board/__tests__/board.test.js +287 -0
- package/dist/factory/board/__tests__/board.test.js.map +1 -0
- package/dist/factory/board/collect.d.ts +145 -0
- package/dist/factory/board/collect.d.ts.map +1 -0
- package/dist/factory/board/collect.js +330 -0
- package/dist/factory/board/collect.js.map +1 -0
- package/dist/factory/board/render.d.ts +12 -0
- package/dist/factory/board/render.d.ts.map +1 -0
- package/dist/factory/board/render.js +93 -0
- package/dist/factory/board/render.js.map +1 -0
- package/dist/factory/check/__tests__/ado.test.js +14 -1
- package/dist/factory/check/__tests__/ado.test.js.map +1 -1
- package/dist/factory/check/__tests__/cli.test.js +38 -0
- package/dist/factory/check/__tests__/cli.test.js.map +1 -1
- package/dist/factory/check/__tests__/rules.test.js +72 -2
- package/dist/factory/check/__tests__/rules.test.js.map +1 -1
- package/dist/factory/check/cli.d.ts +34 -6
- package/dist/factory/check/cli.d.ts.map +1 -1
- package/dist/factory/check/cli.js +56 -34
- package/dist/factory/check/cli.js.map +1 -1
- package/dist/factory/check/rules.d.ts +11 -3
- package/dist/factory/check/rules.d.ts.map +1 -1
- package/dist/factory/check/rules.js +18 -5
- package/dist/factory/check/rules.js.map +1 -1
- package/dist/factory/check/score.d.ts +22 -2
- package/dist/factory/check/score.d.ts.map +1 -1
- package/dist/factory/check/score.js +55 -1
- package/dist/factory/check/score.js.map +1 -1
- package/dist/factory/enqueue.d.ts +195 -0
- package/dist/factory/enqueue.d.ts.map +1 -0
- package/dist/factory/enqueue.js +788 -0
- package/dist/factory/enqueue.js.map +1 -0
- package/dist/factory/heal/cli.d.ts +34 -2
- package/dist/factory/heal/cli.d.ts.map +1 -1
- package/dist/factory/heal/cli.js +88 -19
- package/dist/factory/heal/cli.js.map +1 -1
- package/dist/factory/heal/history.d.ts +12 -6
- package/dist/factory/heal/history.d.ts.map +1 -1
- package/dist/factory/heal/history.js +16 -6
- package/dist/factory/heal/history.js.map +1 -1
- package/dist/factory/heal/implement.d.ts +3 -1
- package/dist/factory/heal/implement.d.ts.map +1 -1
- package/dist/factory/heal/implement.js +1 -0
- package/dist/factory/heal/implement.js.map +1 -1
- package/dist/factory/heal/run.d.ts +3 -0
- package/dist/factory/heal/run.d.ts.map +1 -1
- package/dist/factory/heal/run.js +1 -1
- package/dist/factory/heal/run.js.map +1 -1
- package/dist/factory/listener.d.ts +13 -17
- package/dist/factory/listener.d.ts.map +1 -1
- package/dist/factory/listener.js +37 -63
- package/dist/factory/listener.js.map +1 -1
- package/dist/factory/map-frontier.d.ts +8 -1
- package/dist/factory/map-frontier.d.ts.map +1 -1
- package/dist/factory/map-frontier.js +65 -5
- package/dist/factory/map-frontier.js.map +1 -1
- package/dist/factory/map-ingest.d.ts.map +1 -1
- package/dist/factory/map-ingest.js +12 -1
- package/dist/factory/map-ingest.js.map +1 -1
- package/dist/factory/poll.d.ts +308 -0
- package/dist/factory/poll.d.ts.map +1 -0
- package/dist/factory/poll.js +677 -0
- package/dist/factory/poll.js.map +1 -0
- package/dist/factory/run/__tests__/engine.ado.test.js +157 -8
- package/dist/factory/run/__tests__/engine.ado.test.js.map +1 -1
- package/dist/factory/run/__tests__/engine.outcome.test.d.ts +2 -0
- package/dist/factory/run/__tests__/engine.outcome.test.d.ts.map +1 -0
- package/dist/factory/run/__tests__/engine.outcome.test.js +223 -0
- package/dist/factory/run/__tests__/engine.outcome.test.js.map +1 -0
- package/dist/factory/run/__tests__/engine.test.js +91 -0
- package/dist/factory/run/__tests__/engine.test.js.map +1 -1
- package/dist/factory/run/__tests__/units.test.js +299 -2
- package/dist/factory/run/__tests__/units.test.js.map +1 -1
- package/dist/factory/run/engine.d.ts +11 -3
- package/dist/factory/run/engine.d.ts.map +1 -1
- package/dist/factory/run/engine.js +145 -22
- package/dist/factory/run/engine.js.map +1 -1
- package/dist/factory/run/exec.d.ts +32 -4
- package/dist/factory/run/exec.d.ts.map +1 -1
- package/dist/factory/run/exec.js +120 -15
- package/dist/factory/run/exec.js.map +1 -1
- package/dist/factory/run/outcome.d.ts +31 -0
- package/dist/factory/run/outcome.d.ts.map +1 -0
- package/dist/factory/run/outcome.js +70 -0
- package/dist/factory/run/outcome.js.map +1 -0
- package/dist/factory/run/review-output.d.ts +6 -1
- package/dist/factory/run/review-output.d.ts.map +1 -1
- package/dist/factory/run/review-output.js +13 -3
- package/dist/factory/run/review-output.js.map +1 -1
- package/dist/factory/run/state.d.ts +2 -0
- package/dist/factory/run/state.d.ts.map +1 -1
- package/dist/factory/run/state.js.map +1 -1
- package/dist/factory/setup/__tests__/pipeline-pick.test.d.ts +2 -0
- package/dist/factory/setup/__tests__/pipeline-pick.test.d.ts.map +1 -0
- package/dist/factory/setup/__tests__/pipeline-pick.test.js +84 -0
- package/dist/factory/setup/__tests__/pipeline-pick.test.js.map +1 -0
- package/dist/factory/setup/__tests__/setup.test.js +1 -0
- package/dist/factory/setup/__tests__/setup.test.js.map +1 -1
- package/dist/factory/setup/detect.js +1 -1
- package/dist/factory/setup/detect.js.map +1 -1
- package/dist/factory/setup/pipeline-pick.d.ts +25 -0
- package/dist/factory/setup/pipeline-pick.d.ts.map +1 -0
- package/dist/factory/setup/pipeline-pick.js +55 -0
- package/dist/factory/setup/pipeline-pick.js.map +1 -0
- package/dist/factory/setup/write.d.ts +6 -0
- package/dist/factory/setup/write.d.ts.map +1 -1
- package/dist/factory/setup/write.js +3 -1
- package/dist/factory/setup/write.js.map +1 -1
- package/dist/factory/watchdog.d.ts +3 -2
- package/dist/factory/watchdog.d.ts.map +1 -1
- package/dist/factory/watchdog.js +5 -4
- package/dist/factory/watchdog.js.map +1 -1
- package/dist/factory/watchdog.test.js +19 -4
- package/dist/factory/watchdog.test.js.map +1 -1
- package/dist/forge/__tests__/config.test.js +51 -0
- package/dist/forge/__tests__/config.test.js.map +1 -1
- package/dist/forge/__tests__/gh-argv-baseline.chain.test.js +2 -2
- package/dist/forge/__tests__/gh-argv-baseline.chain.test.js.map +1 -1
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js +6 -4
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js.map +1 -1
- package/dist/forge/__tests__/gh-argv-baseline.tracker-writes.test.d.ts +2 -0
- package/dist/forge/__tests__/gh-argv-baseline.tracker-writes.test.d.ts.map +1 -0
- package/dist/forge/__tests__/gh-argv-baseline.tracker-writes.test.js +100 -0
- package/dist/forge/__tests__/gh-argv-baseline.tracker-writes.test.js.map +1 -0
- package/dist/forge/ado/__tests__/acceptance-scripts.test.js +360 -30
- package/dist/forge/ado/__tests__/acceptance-scripts.test.js.map +1 -1
- package/dist/forge/ado/__tests__/adapter.test.js +18 -3
- package/dist/forge/ado/__tests__/adapter.test.js.map +1 -1
- package/dist/forge/ado/__tests__/ci.test.d.ts +2 -0
- package/dist/forge/ado/__tests__/ci.test.d.ts.map +1 -0
- package/dist/forge/ado/__tests__/ci.test.js +271 -0
- package/dist/forge/ado/__tests__/ci.test.js.map +1 -0
- package/dist/forge/ado/__tests__/routes.test.js +24 -5
- package/dist/forge/ado/__tests__/routes.test.js.map +1 -1
- package/dist/forge/ado/__tests__/tracker-writes.test.d.ts +8 -0
- package/dist/forge/ado/__tests__/tracker-writes.test.d.ts.map +1 -0
- package/dist/forge/ado/__tests__/tracker-writes.test.js +377 -0
- package/dist/forge/ado/__tests__/tracker-writes.test.js.map +1 -0
- package/dist/forge/ado/__tests__/world.d.ts +4 -0
- package/dist/forge/ado/__tests__/world.d.ts.map +1 -1
- package/dist/forge/ado/__tests__/world.js +3 -2
- package/dist/forge/ado/__tests__/world.js.map +1 -1
- package/dist/forge/ado/checks.d.ts +25 -2
- package/dist/forge/ado/checks.d.ts.map +1 -1
- package/dist/forge/ado/checks.js +47 -23
- package/dist/forge/ado/checks.js.map +1 -1
- package/dist/forge/ado/ci.d.ts +13 -0
- package/dist/forge/ado/ci.d.ts.map +1 -0
- package/dist/forge/ado/ci.js +134 -0
- package/dist/forge/ado/ci.js.map +1 -0
- package/dist/forge/ado/guard.d.ts +19 -6
- package/dist/forge/ado/guard.d.ts.map +1 -1
- package/dist/forge/ado/guard.js +52 -11
- package/dist/forge/ado/guard.js.map +1 -1
- package/dist/forge/ado/index.d.ts +7 -1
- package/dist/forge/ado/index.d.ts.map +1 -1
- package/dist/forge/ado/index.js +16 -3
- package/dist/forge/ado/index.js.map +1 -1
- package/dist/forge/ado/reviews.d.ts +9 -1
- package/dist/forge/ado/reviews.d.ts.map +1 -1
- package/dist/forge/ado/reviews.js +45 -1
- package/dist/forge/ado/reviews.js.map +1 -1
- package/dist/forge/ado/routes.d.ts +35 -5
- package/dist/forge/ado/routes.d.ts.map +1 -1
- package/dist/forge/ado/routes.js +181 -9
- package/dist/forge/ado/routes.js.map +1 -1
- package/dist/forge/ado/tracker.d.ts +13 -2
- package/dist/forge/ado/tracker.d.ts.map +1 -1
- package/dist/forge/ado/tracker.js +139 -3
- package/dist/forge/ado/tracker.js.map +1 -1
- package/dist/forge/ado/wiql.d.ts +2 -0
- package/dist/forge/ado/wiql.d.ts.map +1 -1
- package/dist/forge/ado/wiql.js +6 -0
- package/dist/forge/ado/wiql.js.map +1 -1
- package/dist/forge/body-file.d.ts +17 -0
- package/dist/forge/body-file.d.ts.map +1 -0
- package/dist/forge/body-file.js +59 -0
- package/dist/forge/body-file.js.map +1 -0
- package/dist/forge/config.d.ts +3 -1
- package/dist/forge/config.d.ts.map +1 -1
- package/dist/forge/config.js +37 -2
- package/dist/forge/config.js.map +1 -1
- package/dist/forge/github/__tests__/argv-parity.test.js +17 -1
- package/dist/forge/github/__tests__/argv-parity.test.js.map +1 -1
- package/dist/forge/github/gh.d.ts +6 -0
- package/dist/forge/github/gh.d.ts.map +1 -1
- package/dist/forge/github/gh.js +2 -0
- package/dist/forge/github/gh.js.map +1 -1
- package/dist/forge/github/reviews.d.ts +2 -0
- package/dist/forge/github/reviews.d.ts.map +1 -1
- package/dist/forge/github/reviews.js +6 -0
- package/dist/forge/github/reviews.js.map +1 -1
- package/dist/forge/github/tracker.d.ts +20 -4
- package/dist/forge/github/tracker.d.ts.map +1 -1
- package/dist/forge/github/tracker.js +59 -5
- package/dist/forge/github/tracker.js.map +1 -1
- package/dist/forge/types.d.ts +108 -2
- package/dist/forge/types.d.ts.map +1 -1
- package/dist/forge/types.js +8 -0
- package/dist/forge/types.js.map +1 -1
- package/dist/graph/schema.d.ts +10 -10
- package/dist/hooks/session-end/__tests__/chain-enqueuer.test.js +156 -35
- package/dist/hooks/session-end/__tests__/chain-enqueuer.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/check-evidence.test.js +4 -4
- package/dist/hooks/session-end/__tests__/check-evidence.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/copilot-liveness.test.js +3 -3
- package/dist/hooks/session-end/__tests__/copilot-liveness.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/foreground-bootstrap.test.js +3 -3
- package/dist/hooks/session-end/__tests__/foreground-bootstrap.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/routing.test.js +36 -1
- package/dist/hooks/session-end/__tests__/routing.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/spawn-next.test.js +96 -5
- package/dist/hooks/session-end/__tests__/spawn-next.test.js.map +1 -1
- package/dist/hooks/session-end/__tests__/worker.test.js +38 -2
- package/dist/hooks/session-end/__tests__/worker.test.js.map +1 -1
- package/dist/hooks/session-end/chain-enqueuer.d.ts.map +1 -1
- package/dist/hooks/session-end/chain-enqueuer.js +22 -2
- package/dist/hooks/session-end/chain-enqueuer.js.map +1 -1
- package/dist/hooks/session-end/routing.d.ts +14 -0
- package/dist/hooks/session-end/routing.d.ts.map +1 -1
- package/dist/hooks/session-end/routing.js +25 -0
- package/dist/hooks/session-end/routing.js.map +1 -1
- package/dist/hooks/session-end/spawn-next.d.ts +20 -2
- package/dist/hooks/session-end/spawn-next.d.ts.map +1 -1
- package/dist/hooks/session-end/spawn-next.js +72 -5
- package/dist/hooks/session-end/spawn-next.js.map +1 -1
- package/dist/smoke/__tests__/copilot-chain-scenario.test.js +2 -1
- package/dist/smoke/__tests__/copilot-chain-scenario.test.js.map +1 -1
- package/dist/smoke/copilot-chain-scenario.d.ts.map +1 -1
- package/dist/smoke/copilot-chain-scenario.js +5 -1
- package/dist/smoke/copilot-chain-scenario.js.map +1 -1
- package/dist/team/__tests__/worker-launch-ack.test.js +134 -5
- package/dist/team/__tests__/worker-launch-ack.test.js.map +1 -1
- package/dist/team/worker-launch-ack.d.ts.map +1 -1
- package/dist/team/worker-launch-ack.js +19 -4
- package/dist/team/worker-launch-ack.js.map +1 -1
- package/docs/CLAUDE.md +1 -1
- package/docs/MIGRATION.md +26 -0
- package/docs/REFERENCE.md +187 -20
- package/docs/design/FACTORY-FINAL-DESIGN.md +1 -1
- package/docs/shipyard.md +17 -1
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/scripts/ado-acceptance.mjs +309 -70
- package/scripts/lib/backlog-to-workitems.mjs +24 -21
- package/skills/ask-navigator/SKILL.md +5 -2
- package/skills/drydock/SKILL.md +2 -1
- package/skills/harbor/SKILL.md +17 -2
- package/skills/intent/SKILL.md +4 -0
- package/skills/launch/SKILL.md +35 -2
- package/skills/map/SKILL.md +2 -1
- package/skills/refit/SKILL.md +1 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `omg factory poll [--interval 5m] [--once] [--no-heal] [--no-intake] [--no-prs] [--json]`
|
|
3
|
+
* (ADO parity design §2): a foreground polling loop, forge-neutral (GitHub
|
|
4
|
+
* and Azure DevOps). It replaces webhooks where there is no public endpoint.
|
|
5
|
+
* One tick, in this order:
|
|
6
|
+
*
|
|
7
|
+
* 1. heal: `runHealScan` (classify new red CI runs into heal state), only
|
|
8
|
+
* when `forge.capabilities.heal` (Azure DevOps: factory.heal.pipeline set;
|
|
9
|
+
* without it the tick is skipped with heal scan's message); on Azure DevOps
|
|
10
|
+
* through heal scan's own wiring (adoHealFor), so the read guard pins
|
|
11
|
+
* `definitions` to that pipeline. Never `heal run` or `heal approve`.
|
|
12
|
+
* 2. intake: the source's ids diffed against `.omg/state/factory-poll.json`
|
|
13
|
+
* `seen`; each new id is checked (check's rules) and audited
|
|
14
|
+
* (`intake-new` in `.omg/state/factory-poll-audit.jsonl`).
|
|
15
|
+
* 3. PRs: every run in flight with a PR. A PR a human completed or abandoned
|
|
16
|
+
* prints the resume hint; open human review threads are counted (ADO).
|
|
17
|
+
* 4. board: the board rows that changed since the previous tick
|
|
18
|
+
* (src/factory/board), or with `--json` one JSON object per tick.
|
|
19
|
+
*
|
|
20
|
+
* Steps 1-4 never spawn a session or a lane and never write to the tracker or
|
|
21
|
+
* the forge: every forge call goes through check's read guard with no marker
|
|
22
|
+
* (openReadForge), and the heal scan through the heal guard. It writes local
|
|
23
|
+
* state only: the poll file and its audit; the heal tick also writes heal
|
|
24
|
+
* state under its `scan.lock` and the heal scan records in the ledger
|
|
25
|
+
* directory outside the repository, as `heal scan` does. The tick result says whether the
|
|
26
|
+
* repository was idle (no engine owner, no run in flight, no unreadable run
|
|
27
|
+
* state).
|
|
28
|
+
*
|
|
29
|
+
* 5. auto-start (`factory.intake.autoStart`, trusted layers only, default
|
|
30
|
+
* off; shipyard-factory design D7): after an idle tick whose intake read
|
|
31
|
+
* succeeded and was not rate-limited (a broken run state is never idle),
|
|
32
|
+
* with budget headroom (PollBudget), and once poll's atomic claim of the
|
|
33
|
+
* engine's repo owner lock succeeds (a refusal skips the tick), poll starts one
|
|
34
|
+
* `omg factory run --next --json` and waits for it. It runs as a child
|
|
35
|
+
* `omg` process, not in-process: the run gets the engine's own guard,
|
|
36
|
+
* lock, limits, forge config and signal handling exactly as if the user
|
|
37
|
+
* had typed it, and none of it leaks into the tick's read guard (which
|
|
38
|
+
* refuses `omg`, so a tick still cannot spawn). It never starts the
|
|
39
|
+
* listener chain, `heal run` or `heal approve`, and at most one run per
|
|
40
|
+
* tick. Its budget gate fails closed (defaultPollBudget). Design note: the
|
|
41
|
+
* working-tree `intake.source` / `limit` (and `check.*`) stay
|
|
42
|
+
* allowed, so a working-tree file steers which item an unattended start
|
|
43
|
+
* picks; check's rules still decide what is runnable, and the switch and
|
|
44
|
+
* the budget come only from the trusted layers.
|
|
45
|
+
*
|
|
46
|
+
* One poller per repository (the owner pid in the poll file, under its lock,
|
|
47
|
+
* with a `beatAt` heartbeat each tick; an owner silent for 2 x the 60 min
|
|
48
|
+
* ceiling is stale and taken over).
|
|
49
|
+
* SIGINT / SIGTERM end the loop after the current tick. A rate-limited tick
|
|
50
|
+
* (TF400733, HTTP 429) doubles the interval, up to 60 min; a clean tick
|
|
51
|
+
* resets it. The interval floor is 2 min.
|
|
52
|
+
*
|
|
53
|
+
* Exit codes: 0 (a loop stopped by a signal, or a clean `--once` tick);
|
|
54
|
+
* 1 a read failed in the `--once` tick, or another poller runs; 2 usage;
|
|
55
|
+
* 5 incompatible (as `omg factory check`).
|
|
56
|
+
*/
|
|
57
|
+
import type { AzEntry } from '../forge/ado/az-binary.js';
|
|
58
|
+
import type { Forge, ForgeKind, ForgePr, ResolvedForgeConfig } from '../forge/types.js';
|
|
59
|
+
import { type Exec } from '../ship/exec.js';
|
|
60
|
+
import { type BoardRow, type BoardStage, type FactoryBoardDeps } from './board/collect.js';
|
|
61
|
+
import type { CheckBucket } from './check/rules.js';
|
|
62
|
+
import type { HealConfig } from './heal/config.js';
|
|
63
|
+
import { type ScanResult } from './heal/cli.js';
|
|
64
|
+
import { type FactoryRunLimits } from './run/budget.js';
|
|
65
|
+
import { type FactoryRunKey, type OwnerDeps } from './run/state.js';
|
|
66
|
+
/** Bumped on any change to the `--json` tick shape (src/factory/__tests__/poll.test.ts pins it). */
|
|
67
|
+
export declare const POLL_JSON_SCHEMA_VERSION = 1;
|
|
68
|
+
export declare const POLL_DEFAULT_INTERVAL_MS: number;
|
|
69
|
+
/** The floor: ADO allows 200 TSTU per sliding 5 minutes per user (design §2.3). */
|
|
70
|
+
export declare const POLL_MIN_INTERVAL_MS: number;
|
|
71
|
+
/** The backoff ceiling. */
|
|
72
|
+
export declare const POLL_MAX_INTERVAL_MS: number;
|
|
73
|
+
/** An owner whose last heartbeat is older than this is stale (a crashed poller on another host, or a reused pid). */
|
|
74
|
+
export declare const POLL_OWNER_STALE_MS: number;
|
|
75
|
+
export declare class PollBusyError extends Error {
|
|
76
|
+
}
|
|
77
|
+
export declare const pollStatePath: (root: string) => string;
|
|
78
|
+
export declare const pollAuditPath: (root: string) => string;
|
|
79
|
+
/** `--interval`: `<n>s`, `<n>m` (also a bare number) or `<n>h`, at least 2 min. */
|
|
80
|
+
export declare function parseInterval(raw: string): number;
|
|
81
|
+
/** The wait after a tick: doubled (up to 60 min) after a rate-limited tick, the configured interval after a clean one. */
|
|
82
|
+
export declare function nextInterval(current: number, base: number, rateLimited: boolean): number;
|
|
83
|
+
/**
|
|
84
|
+
* Claim the poller owner (the pid in the poll file, under its lock): a second
|
|
85
|
+
* poller refuses; a dead one on this host is taken over.
|
|
86
|
+
*/
|
|
87
|
+
export declare function acquirePoller(root: string, now: string, me?: OwnerDeps): {
|
|
88
|
+
release: () => void;
|
|
89
|
+
};
|
|
90
|
+
/** The heal tick's scan; a HealRunRefused skips the heal tick with its message. `forge`: the tick's forge config (Azure DevOps reads it; GitHub never does). */
|
|
91
|
+
export type PollHealScan = (o: {
|
|
92
|
+
root: string;
|
|
93
|
+
base: string;
|
|
94
|
+
kind: ForgeKind;
|
|
95
|
+
forge?: ResolvedForgeConfig;
|
|
96
|
+
now: Date;
|
|
97
|
+
warn: (m: string) => void;
|
|
98
|
+
}) => ScanResult;
|
|
99
|
+
/**
|
|
100
|
+
* The production heal tick: `omg factory heal scan` (writing heal state, never
|
|
101
|
+
* a lane) through the heal guard on the raw Exec. On Azure DevOps it is heal
|
|
102
|
+
* scan's wiring (adoHealFor over the tick's forge config): factory.heal.pipeline's
|
|
103
|
+
* reads under the `read` policy, GETs only.
|
|
104
|
+
*/
|
|
105
|
+
export declare function defaultPollHealScan(exec: Exec, config: (root: string) => {
|
|
106
|
+
config: HealConfig;
|
|
107
|
+
warnings: string[];
|
|
108
|
+
}, ledgerDir: string, resolveAz?: (root: string) => AzEntry): PollHealScan;
|
|
109
|
+
/**
|
|
110
|
+
* The auto-start: run `omg factory run --next` to its end. `parsed` is false
|
|
111
|
+
* when its stdout held no outcome (none, truncated, or not one of the run's
|
|
112
|
+
* JSON documents); `next` is then null and means nothing. Otherwise `next` is
|
|
113
|
+
* the item it took (null: none). Never rejects.
|
|
114
|
+
*/
|
|
115
|
+
export type PollAutoStart = (o: {
|
|
116
|
+
root: string;
|
|
117
|
+
}) => Promise<{
|
|
118
|
+
exitCode: number;
|
|
119
|
+
parsed: boolean;
|
|
120
|
+
next: number | null;
|
|
121
|
+
message: string;
|
|
122
|
+
}>;
|
|
123
|
+
/** Null when there is budget headroom for one more run; otherwise why not. */
|
|
124
|
+
export type PollBudget = (root: string) => string | null;
|
|
125
|
+
/**
|
|
126
|
+
* The child's wall-clock limit: maxRunWallTimeMs + laneTimeoutMs +
|
|
127
|
+
* gatesTimeoutMs + 30 min. The engine checks maxRunWallTimeMs only at step
|
|
128
|
+
* boundaries, so one invocation can overrun it by one step: a lane (its
|
|
129
|
+
* laneTimeoutMs) or a gates phase (its gatesTimeoutMs). The 30 min cover the
|
|
130
|
+
* git and forge calls around them. Defaults: 4 h + 30 min + 90 min + 30 min = 6.5 h.
|
|
131
|
+
*/
|
|
132
|
+
export declare function autoStartTimeoutMs(limits: FactoryRunLimits): number;
|
|
133
|
+
/**
|
|
134
|
+
* Read `omg factory run --next --json`'s stdout: one of factoryRunJson's
|
|
135
|
+
* documents (src/cli/commands/factory.ts), which all carry `message` or
|
|
136
|
+
* `error`. Anything else is not parsed.
|
|
137
|
+
*/
|
|
138
|
+
export declare function parseRunNextOutcome(stdout: string): {
|
|
139
|
+
parsed: boolean;
|
|
140
|
+
next: number | null;
|
|
141
|
+
message: string;
|
|
142
|
+
};
|
|
143
|
+
export interface PollAutoStartOptions {
|
|
144
|
+
/** The child's wall-clock limit (default autoStartTimeoutMs of DEFAULT_FACTORY_RUN_LIMITS). */
|
|
145
|
+
timeoutMs?: (root: string) => number;
|
|
146
|
+
/** SIGTERM to SIGKILL after a timeout (default 2 min). */
|
|
147
|
+
graceMs?: number;
|
|
148
|
+
/** Subscribe to poll's stop signals, forwarded to the child; returns the unsubscribe. */
|
|
149
|
+
signals?: (forward: (signal: NodeJS.Signals) => void) => () => void;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The production auto-start: a child `omg factory run --next --json` (the
|
|
153
|
+
* same node and CLI entry as this poller) in the repository root, stdin
|
|
154
|
+
* closed, stderr shared (the run's progress shows), stdout parsed for the
|
|
155
|
+
* outcome. Poll's stop signals are forwarded, so the run stops after its
|
|
156
|
+
* current poll as when typed by hand. On POSIX the child runs in its own
|
|
157
|
+
* process group, so a Ctrl+C reaches it once (forwarded by poll), not twice;
|
|
158
|
+
* on Windows it shares the console, which delivers Ctrl+C itself, so only
|
|
159
|
+
* SIGTERM is forwarded there. Past timeoutMs it gets SIGTERM, then SIGKILL
|
|
160
|
+
* after graceMs; on POSIX both go to the whole process group, on Windows only
|
|
161
|
+
* to the engine process (its lanes are not reached).
|
|
162
|
+
*/
|
|
163
|
+
export declare function defaultPollAutoStart(entry?: string | undefined, o?: PollAutoStartOptions): PollAutoStart;
|
|
164
|
+
/** The config layers of the auto-start's budget gate (read once, at poll start). */
|
|
165
|
+
export interface PollBudgetLayers {
|
|
166
|
+
/** The user config at its default location (trustedUser). */
|
|
167
|
+
trustedUser: unknown;
|
|
168
|
+
/** The base branch's committed `.copilot/omg.jsonc` (ReadForge.baseConfig). */
|
|
169
|
+
base: unknown;
|
|
170
|
+
/** The working-tree project config: it can only lower a limit. */
|
|
171
|
+
project: unknown;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The production budget gate of an unattended start. It fails closed:
|
|
175
|
+
* - the `factory.run` limits must resolve (`omg factory run` refuses without
|
|
176
|
+
* a valid per-lane AI-credit cap);
|
|
177
|
+
* - the governor must be on (`OMC_BUDGET_GOVERNOR=0` means no auto-start);
|
|
178
|
+
* - `budget.softLimit` comes from the user config, then the base branch (as
|
|
179
|
+
* factory.intake.autoStart); the working-tree layer can only lower it
|
|
180
|
+
* (resolveFactoryRunLimits' tighten-only rule). No trusted value, an
|
|
181
|
+
* invalid one, or an unreadable ledger blocks the start;
|
|
182
|
+
* - the AI credits in the ledger must be below it (the governor only warns a
|
|
183
|
+
* human; an unattended start stops at it).
|
|
184
|
+
* A human `omg factory run` never reads this gate.
|
|
185
|
+
*/
|
|
186
|
+
export declare function defaultPollBudget(layers: (root: string) => PollBudgetLayers, env?: NodeJS.ProcessEnv): PollBudget;
|
|
187
|
+
export interface PollPr {
|
|
188
|
+
id: FactoryRunKey;
|
|
189
|
+
pr: number;
|
|
190
|
+
state?: ForgePr['state'];
|
|
191
|
+
/** Active or pending text threads the factory did not post (ADO; absent where the forge has no listThreads). */
|
|
192
|
+
threads?: number;
|
|
193
|
+
/** For a PR a human completed or abandoned: the command that records it. */
|
|
194
|
+
hint?: string;
|
|
195
|
+
error?: string;
|
|
196
|
+
}
|
|
197
|
+
export interface PollTick {
|
|
198
|
+
schemaVersion: number;
|
|
199
|
+
tick: number;
|
|
200
|
+
at: string;
|
|
201
|
+
forge: ForgeKind;
|
|
202
|
+
repo: string;
|
|
203
|
+
heal: {
|
|
204
|
+
ran: true;
|
|
205
|
+
entries: number;
|
|
206
|
+
recorded: number;
|
|
207
|
+
queued: number;
|
|
208
|
+
} | {
|
|
209
|
+
ran: false;
|
|
210
|
+
reason: string;
|
|
211
|
+
};
|
|
212
|
+
intake: {
|
|
213
|
+
ran: true;
|
|
214
|
+
items: number;
|
|
215
|
+
new: Array<{
|
|
216
|
+
id: number;
|
|
217
|
+
bucket: CheckBucket;
|
|
218
|
+
reasons: string[];
|
|
219
|
+
}>;
|
|
220
|
+
} | {
|
|
221
|
+
ran: false;
|
|
222
|
+
reason: string;
|
|
223
|
+
};
|
|
224
|
+
prs: PollPr[];
|
|
225
|
+
/** Board rows that changed since the previous tick (every row on the first). */
|
|
226
|
+
board: Array<{
|
|
227
|
+
stage: BoardStage | 'outside';
|
|
228
|
+
row: BoardRow;
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* No engine owns the repository, no run is in flight (a parked run is not)
|
|
232
|
+
* and every run state is readable: an auto-start could begin one. Advisory
|
|
233
|
+
* only: it is read without the engine's repo owner lock, so a consumer must
|
|
234
|
+
* still take that lock atomically (acquireFactoryRepoOwner) and treat a
|
|
235
|
+
* refusal as "skip this tick".
|
|
236
|
+
*/
|
|
237
|
+
idle: boolean;
|
|
238
|
+
/** factory.intake.autoStart: why no run started, or the `omg factory run --next` it started (the item it took, null when nothing was runnable). */
|
|
239
|
+
autoStart: {
|
|
240
|
+
started: false;
|
|
241
|
+
reason: string;
|
|
242
|
+
} | {
|
|
243
|
+
started: true;
|
|
244
|
+
parsed: boolean;
|
|
245
|
+
next: number | null;
|
|
246
|
+
exitCode: number;
|
|
247
|
+
message: string;
|
|
248
|
+
};
|
|
249
|
+
rateLimited: boolean;
|
|
250
|
+
errors: string[];
|
|
251
|
+
warnings: string[];
|
|
252
|
+
/** The wait before the next tick (absent with --once). */
|
|
253
|
+
nextIntervalMs?: number;
|
|
254
|
+
}
|
|
255
|
+
export interface PollContext {
|
|
256
|
+
forge: Forge;
|
|
257
|
+
config: ResolvedForgeConfig;
|
|
258
|
+
root: string;
|
|
259
|
+
base: string;
|
|
260
|
+
exec: Exec;
|
|
261
|
+
baseSha: string | null;
|
|
262
|
+
heal: boolean;
|
|
263
|
+
intake: boolean;
|
|
264
|
+
prs: boolean;
|
|
265
|
+
healScan: PollHealScan;
|
|
266
|
+
autoStart: PollAutoStart;
|
|
267
|
+
budget: PollBudget;
|
|
268
|
+
owner: OwnerDeps;
|
|
269
|
+
now: () => number;
|
|
270
|
+
/** Row signatures of the previous tick (board diff), and PR facts (audit on change); updated by pollTick. */
|
|
271
|
+
previous: {
|
|
272
|
+
board: Map<string, string>;
|
|
273
|
+
prs: Map<string, string>;
|
|
274
|
+
ledger?: boolean;
|
|
275
|
+
};
|
|
276
|
+
tick: number;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* One tick. Steps 1-4 never spawn and never write to the tracker or forge; a
|
|
280
|
+
* guard refusal propagates (a bug, not an unreadable item). Step 5 is the
|
|
281
|
+
* auto-start, outside the read guard.
|
|
282
|
+
*/
|
|
283
|
+
export declare function pollTick(ctx: PollContext): Promise<PollTick>;
|
|
284
|
+
export declare function renderTick(t: PollTick): string;
|
|
285
|
+
export interface FactoryPollOptions {
|
|
286
|
+
interval?: string;
|
|
287
|
+
once?: boolean;
|
|
288
|
+
/** false with --no-heal / --no-intake / --no-prs. */
|
|
289
|
+
heal?: boolean;
|
|
290
|
+
intake?: boolean;
|
|
291
|
+
prs?: boolean;
|
|
292
|
+
json?: boolean;
|
|
293
|
+
}
|
|
294
|
+
/** board's deps plus the heal tick, the owner identity, the wait and the stop signals. */
|
|
295
|
+
export type FactoryPollDeps = FactoryBoardDeps & {
|
|
296
|
+
healScan: PollHealScan;
|
|
297
|
+
/** factory.intake.autoStart's start (default defaultPollAutoStart) and budget gate (default defaultPollBudget over trustedUser, the base layer and projectConfig, read at start). */
|
|
298
|
+
autoStart?: PollAutoStart;
|
|
299
|
+
budget?: PollBudget;
|
|
300
|
+
owner?: OwnerDeps;
|
|
301
|
+
/** Waits `ms` or until `wake` aborts. */
|
|
302
|
+
sleep?: (ms: number, wake: AbortSignal) => Promise<void>;
|
|
303
|
+
/** Subscribe to the stop signals (default SIGINT and SIGTERM, passed to the handler); returns the unsubscribe. */
|
|
304
|
+
onStop?: (handler: (signal?: NodeJS.Signals) => void) => () => void;
|
|
305
|
+
};
|
|
306
|
+
/** Run the poller until a stop signal (or one tick with --once); returns the exit code. */
|
|
307
|
+
export declare function runFactoryPoll(o: FactoryPollOptions, deps: FactoryPollDeps): Promise<number>;
|
|
308
|
+
//# sourceMappingURL=poll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/factory/poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AASH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAA0B,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAInH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAwE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtH,OAAO,EAAuD,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7G,OAAO,EAC0I,KAAK,aAAa,EAAE,KAAK,SAAS,EAClL,MAAM,gBAAgB,CAAC;AAExB,oGAAoG;AACpG,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,wBAAwB,QAAa,CAAC;AACnD,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,QAAa,CAAC;AAC/C,2BAA2B;AAC3B,eAAO,MAAM,oBAAoB,QAAc,CAAC;AAChD,qHAAqH;AACrH,eAAO,MAAM,mBAAmB,QAA2B,CAAC;AAE5D,qBAAa,aAAc,SAAQ,KAAK;CAAG;AAE3C,eAAO,MAAM,aAAa,GAAI,MAAM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