@defrex/autobuild 1.9.0 → 1.11.0
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/README.md +3 -3
- package/SPEC.md +2232 -175
- package/bin/ab-dispatch-generation.ts +5 -1
- package/docs/accounts.md +2 -1
- package/docs/agent-runtimes.md +30 -3
- package/docs/answering-blocked-builds.md +35 -7
- package/docs/architecture.md +436 -63
- package/docs/build-store.md +10 -7
- package/docs/builds.md +5 -0
- package/docs/cli.md +40 -2
- package/docs/configuration-overview.md +5 -1
- package/docs/configuration.md +649 -74
- package/docs/dispatcher.md +79 -6
- package/docs/forges.md +8 -1
- package/docs/getting-started.md +1 -1
- package/docs/integration-overview.md +4 -2
- package/docs/integration-tree.md +102 -11
- package/docs/merge-policy.md +30 -14
- package/docs/migration-1.0.md +2 -1
- package/docs/operating.md +36 -6
- package/docs/operator-api.md +251 -20
- package/docs/operator-surfaces.md +85 -0
- package/docs/optimization-nodes.md +1100 -0
- package/docs/overview.md +1 -1
- package/docs/plugin-authoring.md +83 -13
- package/docs/remote-store-protocol.md +137 -17
- package/docs/remote-ticket-protocol.md +90 -2
- package/docs/restacking.md +119 -15
- package/docs/seams.md +2 -2
- package/docs/setup.md +27 -4
- package/docs/skills.md +4 -2
- package/docs/spec-standard.md +2 -1
- package/docs/ticket-dependencies.md +15 -3
- package/docs/ticket-migration.md +4 -2
- package/docs/ticket-sources.md +54 -14
- package/docs/tickets.md +21 -6
- package/docs/troubleshooting.md +11 -2
- package/docs/verification.md +15 -3
- package/docs/workspaces.md +6 -1
- package/package.json +9 -5
- package/packages/core/src/accounts/chatgpt-oauth.ts +7 -5
- package/packages/core/src/cli/accounts.ts +7 -2
- package/packages/core/src/cli/attempt.ts +103 -0
- package/packages/core/src/cli/attention.ts +11 -2
- package/packages/core/src/cli/binary-direct.ts +54 -1
- package/packages/core/src/cli/binary-lifecycle.ts +2 -1
- package/packages/core/src/cli/binary.ts +5 -3
- package/packages/core/src/cli/build-control.ts +407 -67
- package/packages/core/src/cli/context.ts +272 -15
- package/packages/core/src/cli/dashboard/detail.ts +26 -2
- package/packages/core/src/cli/dashboard/facts.ts +89 -56
- package/packages/core/src/cli/dashboard/header.ts +101 -0
- package/packages/core/src/cli/dashboard/integration-detail.ts +7 -2
- package/packages/core/src/cli/dashboard/landing-display.ts +15 -2
- package/packages/core/src/cli/dashboard/model.ts +133 -66
- package/packages/core/src/cli/dashboard/objective-row.ts +221 -0
- package/packages/core/src/cli/dashboard/poll.ts +178 -76
- package/packages/core/src/cli/dashboard/render.ts +172 -227
- package/packages/core/src/cli/dashboard/reopen-display.ts +39 -0
- package/packages/core/src/cli/dashboard/row-text.ts +538 -0
- package/packages/core/src/cli/dashboard/timeline.ts +288 -0
- package/packages/core/src/cli/dashboard/tree.ts +12 -1
- package/packages/core/src/cli/dashboard/vocabulary.ts +188 -0
- package/packages/core/src/cli/dispatch-args.ts +44 -1
- package/packages/core/src/cli/dispatch-frontend.ts +29 -30
- package/packages/core/src/cli/dispatch-launch-stop.ts +73 -0
- package/packages/core/src/cli/dispatch-launcher.ts +41 -46
- package/packages/core/src/cli/dispatch-repository-feed.ts +1 -1
- package/packages/core/src/cli/dispatch-web.ts +155 -0
- package/packages/core/src/cli/dispatch.ts +216 -38
- package/packages/core/src/cli/env.ts +42 -0
- package/packages/core/src/cli/help.ts +293 -12
- package/packages/core/src/cli/init-agent.ts +4 -1
- package/packages/core/src/cli/init-readiness-remote.ts +3 -2
- package/packages/core/src/cli/init-validation.ts +5 -5
- package/packages/core/src/cli/init.ts +3 -2
- package/packages/core/src/cli/judge-entry.ts +82 -0
- package/packages/core/src/cli/judge.ts +233 -0
- package/packages/core/src/cli/landings.ts +3 -2
- package/packages/core/src/cli/main.ts +481 -148
- package/packages/core/src/cli/mcp.ts +35 -3
- package/packages/core/src/cli/measurement-text.ts +19 -0
- package/packages/core/src/cli/objective.ts +154 -0
- package/packages/core/src/cli/operator-preference.ts +57 -0
- package/packages/core/src/cli/publication-settlement.ts +106 -22
- package/packages/core/src/cli/repo-lease.ts +3 -0
- package/packages/core/src/cli/repo-state.ts +56 -6
- package/packages/core/src/cli/repository-status.ts +205 -56
- package/packages/core/src/cli/status.ts +275 -16
- package/packages/core/src/cli/store-opening.ts +4 -0
- package/packages/core/src/cli/terminal-restore.ts +32 -7
- package/packages/core/src/cli/terminals.ts +205 -8
- package/packages/core/src/cli/ticket-start.ts +53 -0
- package/packages/core/src/cli/ticket.ts +166 -38
- package/packages/core/src/cli/upgrade-agent.ts +12 -8
- package/packages/core/src/cli/wait.ts +22 -8
- package/packages/core/src/cli/watch.ts +361 -95
- package/packages/core/src/cli/web.ts +139 -0
- package/packages/core/src/config/create-labels.ts +23 -0
- package/packages/core/src/config/live.ts +101 -14
- package/packages/core/src/config/load.ts +61 -20
- package/packages/core/src/config/local.ts +212 -0
- package/packages/core/src/config/pipeline-source.ts +3 -3
- package/packages/core/src/config/reference.ts +18 -0
- package/packages/core/src/config/roles.ts +182 -73
- package/packages/core/src/config/schema.ts +157 -19
- package/packages/core/src/events/catalog.ts +43 -3
- package/packages/core/src/events/compatibility.ts +7 -1
- package/packages/core/src/events/payloads.ts +685 -1
- package/packages/core/src/events/policy.ts +63 -0
- package/packages/core/src/events/repository.ts +153 -27
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +1797 -199
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/017d8dd5bb6dd80b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/0ab2a90d0305dc9d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/10a4657408d4e121.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1152a2e97ee81728.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/13ca84752c5f8b54.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1411d1cdbdd9911e.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1444fe1fa7fc802c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1491ac0600349391.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/178e12f1759b7552.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1921f86f752428c9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1972c1d66008ef6b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/19e8e43e7f3f1a06.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/20a85c143c3e8164.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/21ce2c0bf58318e1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/293dcb3a94fb3470.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2ab7436356267118.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2d084641735caaff.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3237bcecf68e5db9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/33d0cc593610e56f.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3451ed2136dcc356.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/358ec8693f2237e6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/35cf9ccc4478b2d2.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3649e7bd1203f154.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/378da6dece82202a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/38c75099d9191471.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/398952f1f01db1a3.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3b64d352d56c9121.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3dc486226c05372d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/431c9bb2ee8838e0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4400dffca929e2f0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/49064fc079964a5c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4932c70a2af97faf.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4edded75f17742f4.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4f00c0f2c8afd159.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516a5a7aadf97587.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516dc6ea85d67cd7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/536085773daf6b58.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/584e2ba74608e051.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/59ffaa6974094c72.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5bb43afb121674c6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5f0ca42af862c4ee.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6118031132db9bfc.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63107a8d58776b63.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63546b08d4d6fa11.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/643d70429ce03dad.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/677ea92572c29082.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6ae5bf60504d6467.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6bd6275061aaffa5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6efdc8defc75fccb.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/71c53d33f09d8204.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7267ca2757cffba7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/76b7d4244082b3f9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7749f918c6f10968.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7833e42d16301424.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7d4edad0614adaf1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/837365898d04f45a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/85f9f0c921b8b5bb.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8879f57a24733897.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/88cb9e71bdec972d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/89625654b02e9ac1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8a0cd6dd06cc155e.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8aa9ca8609dc051d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8c8640255bd61658.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8cc15eb1807c0157.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8ced97c44bc0af3a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8d4144004720b9f8.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8db633ead1807f8b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8e42cdbd0994ab0c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9011d0f6ff955ef9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/916ebc5433801c41.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9539b995af5c54a9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/95f391bfd7b7dbd7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9613e8fa568a9281.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9a68f8753bd9038d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9b25e58227080094.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9ee3919fbd4f9458.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a04a34cc2717147b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a0b32c12e4e6edb6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a55218252707bdd3.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a732fd08b31522a6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a98af134be2da8a9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a9d206a01f9039e5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/abf7fe3c92c82f2d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ac928b04842c00db.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/af953392d81911da.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0d877c44810ecb0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0f7c6ebb2db57fc.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b905c22ec17eed31.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/bce0c54e865f4b79.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c68b7ee2e2610f30.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c7f7e0378aeea237.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c98cb1659eb142b6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ca830adf06ed55a1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cb3a219f33e437ca.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cf1e0c0d82567e0c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d008d86d9ff77b30.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d1432a819d8e48c5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d185ed6aa9192aff.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d5d5ccca80a893d8.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d873fad29d6c7e55.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/db84b12316e2da4a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ddf6dc967d898767.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/dfc64de6e7bfc0a0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e2f18fa32fe1f6d0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e37393fed29e84c5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e6a8585e2a054ff6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e7e9e327baca6903.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e86447af0571672c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ea819202d22122e5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb4535585f2e84f6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb7ddd5319d09e27.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eca4959b2b87ae15.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ee10d7959ec4843c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ef1b68347966ab26.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f3e55425cc41f230.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f40042c1cdb9fd43.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f48466215c790a3f.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f5b9ace9b59351e7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f8155387eb5f375c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fa8f1475a55be935.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fb21116a15d0b1f1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fe95444fbeabe592.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/09bf0a1611d07363.json +984 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/10eac4988d66e161.json +1067 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/1a436b5fb45aee3e.json +1116 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/249db6f7a41f90e2.json +161 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/25dcb2fb6eaa83f4.json +858 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/2e1bdc763924616f.json +4932 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/30e9dabce3c4263d.json +399 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/3c27f918b194e3b3.json +465 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/4898ef339c68fa36.json +83 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/51816c0ffa62af6e.json +417 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/561bf45320062a44.json +83 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5672d0233085d050.json +84 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5e39f42cbdbf35ef.json +163 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/7771a7a2250f9964.json +868 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/79f0e0f4ccd43ba2.json +455 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/859c09edac738823.json +1086 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/881c491321bec99a.json +1074 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/965f25c3af1d2cdc.json +160 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9b76d89da575ca90.json +20 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9eb485320a72a9ff.json +233 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a283c1f3462b1cc1.json +81 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a60448c01016135e.json +18 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6584fb61b6679bd.json +97 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6e570fb126991ff.json +36 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a8acf22c968b6e3d.json +81 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ba7b85895bf6698e.json +1153 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/c88365c25b3186d3.json +543 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/e8f0481b23f90056.json +711 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ee55782ed40ebbac.json +110 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc5082fac8167f3d.json +98 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc66408cde0b6b04.json +637 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fd55c329cfe921cc.json +1069 -0
- package/packages/core/src/kernel/attempt-creation-key.ts +20 -0
- package/packages/core/src/kernel/attempt-settlement.ts +125 -0
- package/packages/core/src/kernel/auto-merge-default.ts +1 -3
- package/packages/core/src/kernel/auto-merge.ts +1 -3
- package/packages/core/src/kernel/build-roster.ts +230 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +316 -40
- package/packages/core/src/kernel/dispatch-placement.ts +1 -1
- package/packages/core/src/kernel/dispatch-settings.ts +1 -4
- package/packages/core/src/kernel/dispatch-status.ts +3 -5
- package/packages/core/src/kernel/dispatch-upgrade.ts +1 -1
- package/packages/core/src/kernel/engine.ts +152 -18
- package/packages/core/src/kernel/execution-intervals.ts +61 -0
- package/packages/core/src/kernel/forge-checks.ts +140 -0
- package/packages/core/src/kernel/forge-health.ts +2 -2
- package/packages/core/src/kernel/generated-files.ts +43 -0
- package/packages/core/src/kernel/generated-regeneration.ts +254 -0
- package/packages/core/src/kernel/generators/build-log.ts +30 -2
- package/packages/core/src/kernel/generators/optimization-log.ts +679 -0
- package/packages/core/src/kernel/generators/panel-log.ts +133 -0
- package/packages/core/src/kernel/generators/repository-journals.ts +13 -0
- package/packages/core/src/kernel/guarded-forge.ts +76 -11
- package/packages/core/src/kernel/harvest.ts +1 -4
- package/packages/core/src/kernel/head-paths.ts +4 -1
- package/packages/core/src/kernel/history-retention.ts +337 -0
- package/packages/core/src/kernel/incremental-fixtures.ts +6 -0
- package/packages/core/src/kernel/incremental.ts +14 -4
- package/packages/core/src/kernel/integration-landing.ts +64 -13
- package/packages/core/src/kernel/integration-stack.ts +123 -20
- package/packages/core/src/kernel/integration-state.ts +39 -2
- package/packages/core/src/kernel/janitor-failure.ts +2 -0
- package/packages/core/src/kernel/kernel-git.ts +1 -1
- package/packages/core/src/kernel/landing-measurement.ts +275 -0
- package/packages/core/src/kernel/landing-readiness.ts +2 -0
- package/packages/core/src/kernel/landing-state.ts +20 -1
- package/packages/core/src/kernel/leaf-restack-base.ts +33 -7
- package/packages/core/src/kernel/leaf-restack-state.ts +99 -4
- package/packages/core/src/kernel/log-index-value.ts +2 -0
- package/packages/core/src/kernel/log-index.ts +100 -3
- package/packages/core/src/kernel/measurement.ts +406 -0
- package/packages/core/src/kernel/mixed-version.ts +6 -3
- package/packages/core/src/kernel/node-landing.ts +92 -18
- package/packages/core/src/kernel/node-restack-state.ts +27 -1
- package/packages/core/src/kernel/node-restack-transaction.ts +80 -23
- package/packages/core/src/kernel/node-verification-context.ts +14 -4
- package/packages/core/src/kernel/open-pr-backpressure-state.ts +24 -0
- package/packages/core/src/kernel/open-pr-backpressure.ts +133 -0
- package/packages/core/src/kernel/optimization-admission.ts +490 -0
- package/packages/core/src/kernel/optimization.ts +953 -0
- package/packages/core/src/kernel/panel.ts +225 -0
- package/packages/core/src/kernel/phase-failures.ts +121 -0
- package/packages/core/src/kernel/phases.ts +42 -6
- package/packages/core/src/kernel/pr-attachments.ts +4 -16
- package/packages/core/src/kernel/pr-summary.ts +2 -2
- package/packages/core/src/kernel/published-branch-head.ts +60 -0
- package/packages/core/src/kernel/read-deferrals.ts +2 -2
- package/packages/core/src/kernel/read-facts.ts +69 -31
- package/packages/core/src/kernel/reconcile-restack.ts +352 -103
- package/packages/core/src/kernel/reducer-identity.ts +659 -0
- package/packages/core/src/kernel/reducer-registry.ts +62 -9
- package/packages/core/src/kernel/reducer-revisions.ts +75 -0
- package/packages/core/src/kernel/reducer.ts +269 -11
- package/packages/core/src/kernel/reopen-state.ts +48 -0
- package/packages/core/src/kernel/reopen.ts +143 -0
- package/packages/core/src/kernel/replay-retention.ts +208 -39
- package/packages/core/src/kernel/repository-attention.ts +1 -1
- package/packages/core/src/kernel/rollup.ts +61 -0
- package/packages/core/src/kernel/service-facts.ts +19 -7
- package/packages/core/src/kernel/setup-streak.ts +38 -0
- package/packages/core/src/kernel/step-durations.ts +257 -0
- package/packages/core/src/kernel/target-observation.ts +6 -1
- package/packages/core/src/kernel/target-rewrite-recovery.ts +116 -0
- package/packages/core/src/kernel/terminal-guard.ts +13 -5
- package/packages/core/src/kernel/ticket-handbacks.ts +1 -1
- package/packages/core/src/kernel/ticket-migrations.ts +1 -1
- package/packages/core/src/kernel/ticket-preparation.ts +1 -1
- package/packages/core/src/kernel/ticket-source-health.ts +1 -1
- package/packages/core/src/kernel/ticket-starts.ts +118 -0
- package/packages/core/src/kernel/ticket-wait.ts +37 -2
- package/packages/core/src/kernel/verify-diff-base.ts +67 -0
- package/packages/core/src/kernel/verify-stage-state.ts +1 -0
- package/packages/core/src/kernel/verify-stages.ts +51 -1
- package/packages/core/src/objective.ts +532 -0
- package/packages/core/src/ontology.ts +54 -6
- package/packages/core/src/operator/agent-context-serve.ts +631 -0
- package/packages/core/src/operator/annotations.ts +105 -4
- package/packages/core/src/operator/attention.ts +470 -0
- package/packages/core/src/operator/canonical-skills.ts +35 -0
- package/packages/core/src/operator/cli-equivalents.ts +270 -0
- package/packages/core/src/operator/context-prompts.ts +61 -0
- package/packages/core/src/operator/control.ts +2 -1
- package/packages/core/src/operator/index.ts +61 -1
- package/packages/core/src/operator/landings.ts +28 -19
- package/packages/core/src/operator/optimization.ts +314 -0
- package/packages/core/src/operator/protocol.ts +33 -1
- package/packages/core/src/operator/query.ts +137 -73
- package/packages/core/src/operator/read-view.ts +5 -2
- package/packages/core/src/operator/registry.ts +625 -59
- package/packages/core/src/operator/requests.ts +45 -20
- package/packages/core/src/operator/sandbox-host.ts +107 -11
- package/packages/core/src/operator/sandbox-resolver.ts +253 -0
- package/packages/core/src/operator/sandbox.ts +778 -82
- package/packages/core/src/operator/ticket-asset-list.ts +77 -0
- package/packages/core/src/operator/ticket-assets.ts +167 -0
- package/packages/core/src/operator/ticket-start.ts +152 -0
- package/packages/core/src/operator/tickets.ts +36 -4
- package/packages/core/src/plugin-sdk/index.ts +24 -0
- package/packages/core/src/plugins/manifest.ts +1 -1
- package/packages/core/src/plugins/registry.ts +1 -0
- package/packages/core/src/ports/forge/contract.ts +9 -0
- package/packages/core/src/ports/forge/fake.ts +114 -2
- package/packages/core/src/ports/forge/git-blob.ts +15 -0
- package/packages/core/src/ports/forge/git-rewrite.ts +6 -4
- package/packages/core/src/ports/forge/github-readiness.ts +1 -1
- package/packages/core/src/ports/forge/github-transport.ts +156 -1
- package/packages/core/src/ports/forge/github.ts +388 -100
- package/packages/core/src/ports/forge/local-git.ts +61 -1
- package/packages/core/src/ports/forge/readiness.ts +15 -3
- package/packages/core/src/ports/forge-failure.ts +46 -0
- package/packages/core/src/ports/forge-request-context.ts +23 -1
- package/packages/core/src/ports/forge-telemetry.ts +16 -0
- package/packages/core/src/ports/runner/antigravity-test.fixture.ts +149 -0
- package/packages/core/src/ports/runner/antigravity.ts +1071 -0
- package/packages/core/src/ports/runner/claude-test.fixture.ts +71 -0
- package/packages/core/src/ports/runner/claude.ts +6 -1
- package/packages/core/src/ports/runner/codex-test.fixture.ts +63 -0
- package/packages/core/src/ports/runner/codex.ts +11 -2
- package/packages/core/src/ports/runner/contract.ts +25 -1
- package/packages/core/src/ports/runner/fake.ts +2 -2
- package/packages/core/src/ports/runner/native-cli-fixture.ts +40 -5
- package/packages/core/src/ports/runner/native-process-fixture.ts +4 -1
- package/packages/core/src/ports/runner/pi.ts +23 -7
- package/packages/core/src/ports/runner/production.ts +19 -2
- package/packages/core/src/ports/runner/session-env.ts +65 -5
- package/packages/core/src/ports/runner/start-prompt.ts +6 -4
- package/packages/core/src/ports/tickets/contract.ts +75 -2
- package/packages/core/src/ports/tickets/fake.ts +11 -0
- package/packages/core/src/ports/tickets/file.ts +18 -0
- package/packages/core/src/ports/tickets/github-fake.ts +136 -4
- package/packages/core/src/ports/tickets/github.ts +407 -35
- package/packages/core/src/ports/tickets/hosted-index.ts +16 -1
- package/packages/core/src/ports/tickets/labels.ts +21 -0
- package/packages/core/src/ports/tickets/linear.ts +163 -0
- package/packages/core/src/ports/tickets/migration.ts +2 -0
- package/packages/core/src/ports/tickets/priority.ts +20 -0
- package/packages/core/src/ports/tickets/remote-protocol.ts +105 -6
- package/packages/core/src/ports/tickets/remote.ts +203 -17
- package/packages/core/src/ports/tickets/search.ts +139 -0
- package/packages/core/src/ports/tickets/tree.ts +17 -4
- package/packages/core/src/ports/types.ts +202 -6
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +16 -4
- package/packages/core/src/ports/workspace/commit-preservation.ts +182 -64
- package/packages/core/src/ports/workspace/create.ts +18 -1
- package/packages/core/src/ports/workspace/fake.ts +340 -12
- package/packages/core/src/ports/workspace/git-worktree.ts +846 -43
- package/packages/core/src/ports/workspace/operator-sandbox.ts +129 -12
- package/packages/core/src/ports/workspace/process-group.ts +48 -0
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +1539 -221
- package/packages/core/src/processes/agent-context-assemble.ts +576 -0
- package/packages/core/src/processes/agent-context.ts +469 -0
- package/packages/core/src/processes/build-execution-state.ts +1 -3
- package/packages/core/src/processes/build-runner.ts +1982 -528
- package/packages/core/src/processes/dispatch-failure-budget.ts +1 -1
- package/packages/core/src/processes/dispatcher-selectors.ts +15 -13
- package/packages/core/src/processes/dispatcher.ts +3003 -308
- package/packages/core/src/processes/execution-no-progress.ts +40 -1
- package/packages/core/src/processes/execution-settlement.ts +2 -6
- package/packages/core/src/processes/harvest-execution-state.ts +2 -6
- package/packages/core/src/processes/harvest-runner.ts +7 -2
- package/packages/core/src/processes/infrastructure-failure-budget.ts +1 -3
- package/packages/core/src/processes/judge-launcher.ts +38 -0
- package/packages/core/src/processes/measurement-runner.ts +235 -0
- package/packages/core/src/processes/optimization-activity.ts +120 -0
- package/packages/core/src/processes/optimization-merges.ts +101 -0
- package/packages/core/src/processes/optimization-stop.ts +179 -0
- package/packages/core/src/processes/panel-runner.ts +756 -0
- package/packages/core/src/processes/phase-failure-budget.ts +2 -0
- package/packages/core/src/processes/publication-state.ts +1 -4
- package/packages/core/src/processes/repo-view.ts +154 -6
- package/packages/core/src/processes/sandbox-state.ts +54 -10
- package/packages/core/src/processes/tick-publication.ts +2 -0
- package/packages/core/src/processes/tick-state.ts +1 -3
- package/packages/core/src/processes/workspace-preparation.ts +76 -0
- package/packages/core/src/processes/workspace-preservation.ts +67 -9
- package/packages/core/src/scenarios/harness.ts +19 -13
- package/packages/core/src/store/account-redaction.ts +1 -0
- package/packages/core/src/store/adapter.ts +52 -1
- package/packages/core/src/store/agent-context.ts +432 -0
- package/packages/core/src/store/build-feed.ts +291 -0
- package/packages/core/src/store/build-scope.ts +19 -1
- package/packages/core/src/store/contract.ts +955 -14
- package/packages/core/src/store/digest.ts +104 -9
- package/packages/core/src/store/histogram.ts +113 -0
- package/packages/core/src/store/judge-authority.ts +161 -0
- package/packages/core/src/store/local/schema.ts +62 -0
- package/packages/core/src/store/local/store.ts +628 -22
- package/packages/core/src/store/local/ticket-asset-heads.ts +23 -0
- package/packages/core/src/store/memory.ts +461 -69
- package/packages/core/src/store/open-builds.ts +19 -0
- package/packages/core/src/store/phase-session.ts +256 -6
- package/packages/core/src/store/reduced-reads.ts +24 -4
- package/packages/core/src/store/reducer-value-shapes.json +18023 -11824
- package/packages/core/src/store/reducer-values.ts +6 -1
- package/packages/core/src/store/remote/client.ts +220 -4
- package/packages/core/src/store/remote/compatibility.ts +1 -1
- package/packages/core/src/store/remote/credentials.ts +31 -1
- package/packages/core/src/store/remote/index.ts +41 -0
- package/packages/core/src/store/remote/protocol.ts +107 -0
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.10.0.json +34439 -0
- package/packages/core/src/store/remote/released-reducer-values/1.11.0.json +35680 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -16
- package/packages/core/src/store/remote/token.ts +13 -4
- package/packages/core/src/store/repo-state-events.ts +6 -8
- package/packages/core/src/store/retention.ts +23 -1
- package/packages/core/src/store/rollups.ts +337 -0
- package/packages/core/src/store/session-handle.ts +20 -2
- package/packages/core/src/store/session-reducer.ts +1 -4
- package/packages/core/src/store/snapshots.ts +10 -0
- package/packages/core/src/store/ticket-assets.ts +1 -3
- package/packages/core/src/store/types.ts +117 -9
- package/packages/core/src/testing/dispatch-read-budget.ts +1162 -2
- package/packages/core/src/testing/git-config-isolation.ts +27 -0
- package/packages/core/src/testing/index.ts +40 -0
- package/packages/core/src/testing/memory-operator-sandbox.ts +346 -0
- package/packages/core/src/testing/reduced-read-budget.ts +5349 -153
- package/packages/core/src/web/analytics-source.ts +303 -0
- package/packages/core/src/web/assets/Atkinson-OFL.txt +93 -0
- package/packages/core/src/web/assets/AtkinsonHyperlegibleNext.latin.woff2 +0 -0
- package/packages/core/src/web/assets/JetBrains-OFL.txt +93 -0
- package/packages/core/src/web/assets/JetBrainsMono.latin.woff2 +0 -0
- package/packages/core/src/web/assets/app.css +1 -0
- package/packages/core/src/web/assets/app.js +9 -0
- package/packages/core/src/web/assets/manifest.json +31 -0
- package/packages/core/src/web/assets/theme.js +1 -0
- package/packages/core/src/web/bounded.ts +31 -0
- package/packages/core/src/web/http.ts +315 -0
- package/packages/core/src/web/hub.ts +160 -0
- package/packages/core/src/web/options.ts +38 -0
- package/packages/core/src/web/overview-source.ts +322 -0
- package/packages/core/src/web/page.ts +56 -0
- package/packages/core/src/web/protocol.ts +151 -0
- package/packages/core/src/web/read-only.ts +23 -0
- package/packages/core/src/web/repository-source.ts +35 -0
- package/packages/core/src/web/server.ts +97 -0
- package/skills/code-review/SKILL.md +26 -2
- package/skills/finalize/SKILL.md +10 -4
- package/skills/guide/SKILL.md +743 -123
- package/skills/guide/references/accounts.md +2 -1
- package/skills/guide/references/integration-tree.md +102 -11
- package/skills/guide/references/merge-policy.md +30 -14
- package/skills/guide/references/migration-1.0.md +2 -1
- package/skills/guide/references/operator-api.md +251 -20
- package/skills/guide/references/optimization-nodes.md +1100 -0
- package/skills/guide/references/plugin-authoring.md +83 -13
- package/skills/guide/references/remote-store-protocol.md +137 -17
- package/skills/guide/references/remote-ticket-protocol.md +90 -2
- package/skills/guide/references/restacking.md +119 -15
- package/skills/guide/references/setup.md +27 -4
- package/skills/guide/references/spec-standard.md +2 -1
- package/skills/guide/references/ticket-dependencies.md +15 -3
- package/skills/guide/references/ticket-migration.md +4 -2
- package/skills/implement/SKILL.md +74 -5
- package/skills/judge/SKILL.md +43 -0
- package/skills/operate/SKILL.md +374 -57
- package/skills/plan/SKILL.md +28 -4
- package/skills/plan-review/SKILL.md +24 -3
- package/skills/propose/SKILL.md +121 -0
- package/skills/reconcile/SKILL.md +21 -2
- package/skills/spec/SKILL.md +63 -11
- package/skills/tickets/SKILL.md +94 -9
- package/templates/hosted-service/package.json +2 -2
package/skills/operate/SKILL.md
CHANGED
|
@@ -20,9 +20,11 @@ edits the repository, and never touches a build's checkout. Its reach is the
|
|
|
20
20
|
operator surface — the `ab` CLI, or the operator tool registry exposed through MCP.
|
|
21
21
|
|
|
22
22
|
Find your setting and read that section: **Running locally with the `ab`
|
|
23
|
-
CLI** if you
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
CLI** if you run at the repository root with a shell and the CLI, **Running as an
|
|
24
|
+
external connected agent** if you are connected over MCP and your tools are the
|
|
25
|
+
registry's `builds.*` / `tickets.*` family. A connected agent has no shell and no
|
|
26
|
+
`ab` CLI of its own. The sections after them apply to both, and a connected agent
|
|
27
|
+
maps each `ab` command they name to its tool as the next section describes.
|
|
26
28
|
|
|
27
29
|
## Running locally with the `ab` CLI
|
|
28
30
|
|
|
@@ -118,7 +120,7 @@ Credential/process changes remain subject to the Boundaries below.
|
|
|
118
120
|
`ab watch --operator --json` is the standing monitor. Keep its default filter: every
|
|
119
121
|
record calls for action. It reports failed node verification, build escalations, persistent janitor failures and their escalations, merge decisions,
|
|
120
122
|
harvest escalations/recovery exhaustion, automatic upgrade failures and runtime rollbacks, rejected configuration, reloads needing
|
|
121
|
-
restart, abnormal dispatcher stops/loss, abandoned ticket preparations, ticket hand-backs (`ticket.handed-back`), ticket-source and forge degradation past reset (15 minutes
|
|
123
|
+
restart, abnormal dispatcher stops/loss, abandoned ticket preparations, ticket hand-backs (`ticket.handed-back`), single-ticket start settlements (`ticket.start-settled`), ticket-source and forge degradation past reset (15 minutes
|
|
122
124
|
for ticket sources without reset), forge rate limits outside the dispatcher's credential
|
|
123
125
|
(`forge.credential-limited`), configured hook failures and skips (`hook.*`), and five minutes of continuous tick failures. Advertised resets
|
|
124
126
|
wait for a post-reset tick to finish before requiring action; ordinary recovery
|
|
@@ -258,10 +260,14 @@ that appear after you arm. Finishing the initially queued set is no reason to st
|
|
|
258
260
|
`ab watch --operator --json --since <watch-cursor>`. If it reports
|
|
259
261
|
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge
|
|
260
262
|
the unavailable historical gap.
|
|
261
|
-
2. Right after arming and after each timeout, run `ab builds --
|
|
262
|
-
newly dispatched builds, inspect active builds with
|
|
263
|
-
and reconcile `ab repository status --json`.
|
|
264
|
-
|
|
263
|
+
2. Right after arming and after each timeout, run `ab builds --json` (active
|
|
264
|
+
builds only), adopt newly dispatched builds, inspect active builds with
|
|
265
|
+
`ab build status <slug> --json`, and reconcile `ab repository status --json`.
|
|
266
|
+
When a build you were tracking leaves the active listing, check how it ended
|
|
267
|
+
with `ab build status <slug> --json`; do not list every historical build with
|
|
268
|
+
`--all`, whose cost and output grow with the repository's whole history.
|
|
269
|
+
Historical attention is baselined by a fresh watch, so status reconciliation
|
|
270
|
+
closes the attachment gap.
|
|
265
271
|
3. Handle each attention record using the shared rules. Repository records have
|
|
266
272
|
no build slug: inspect repository status. Re-arm from the standing watch's
|
|
267
273
|
latest cursor, including its trailing cursor after a timeout or count exit.
|
|
@@ -270,14 +276,17 @@ that appear after you arm. Finishing the initially queued set is no reason to st
|
|
|
270
276
|
alive and keep discovering work until the human ends or hands off the role.
|
|
271
277
|
|
|
272
278
|
Use `ab wait` and named unflagged watches only as separate diagnostics. They
|
|
273
|
-
cannot replace the registered monitor or its cursor. In MCP,
|
|
274
|
-
`repository.
|
|
275
|
-
|
|
279
|
+
cannot replace the registered monitor or its cursor. In MCP, start each round
|
|
280
|
+
with `repository.attention` (see the connected-agent section); operator presence
|
|
281
|
+
is not exposed there, and its
|
|
276
282
|
`repository.status` marks presence `unavailable` rather than absent.
|
|
277
283
|
|
|
278
284
|
### Inspect
|
|
279
285
|
|
|
280
286
|
- `ab builds [--queued] [--all] [--json]` — builds and their effective status.
|
|
287
|
+
Active builds by default; `--queued` adds queued builds; `--all` is an
|
|
288
|
+
explicit historical listing of every build, for when you were asked for
|
|
289
|
+
history, not for routine reconciliation.
|
|
281
290
|
A build parked on a ticket wait lists as `waiting`, with `waiting on <ids>`
|
|
282
291
|
after its phase; in `--json` its `status` stays `blocked` and `wait` carries
|
|
283
292
|
`state` and `tickets`.
|
|
@@ -299,11 +308,16 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
299
308
|
text for a bare retry. `--dismiss` retires cited review findings,
|
|
300
309
|
`--review-round-ceiling <n>` raises the round limit, `--revise-spec <file>`
|
|
301
310
|
resolves with a revised spec; `--revise-spec-from-ticket` imports an amended ticket.
|
|
311
|
+
`--accept-target` answers only a target-rewritten escalation: a leaf whose
|
|
312
|
+
target was force-pushed while it had work of its own. It restacks the build's
|
|
313
|
+
own commits onto the current target; abort is the alternative. A leaf with no
|
|
314
|
+
work recovers from a rewritten target by itself and raises nothing.
|
|
302
315
|
Idle collecting or verification-failed nodes need no escalation and recollect
|
|
303
316
|
for verification on the same head; children and contributions remain intact.
|
|
304
317
|
Active work, pause, pending controls and merge intent refuse revision. Leaves
|
|
305
318
|
require an escalation and restart from plan after any unfinished reconcile
|
|
306
|
-
resumes under the revised spec and its publication is confirmed
|
|
319
|
+
resumes under the revised spec and its publication is confirmed; a finished
|
|
320
|
+
leaf waiting for its merge decision revises with `ab reopen`. Answering a
|
|
307
321
|
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
308
322
|
tickets complete (see ticket wait attention). Run
|
|
309
323
|
`ab help answer` for the full menu.
|
|
@@ -321,13 +335,46 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
321
335
|
longer conforms to the spec standard falls back to triage, and the comment
|
|
322
336
|
lists what is missing. `--reason` is quoted in the hand-back comment.
|
|
323
337
|
Cleanup is asynchronous: act on the `ticket.handed-back` repository event,
|
|
324
|
-
not on `build.aborted` or the build leaving `ab builds`.
|
|
325
|
-
|
|
338
|
+
not on `build.aborted` or the build leaving `ab builds`. Aborting an
|
|
339
|
+
optimization attempt is different: it settles `aborted` and its node moves the
|
|
340
|
+
ticket to the rejected role, so no hand-back is reported and `--to` has no
|
|
341
|
+
effect.
|
|
342
|
+
- `ab reopen <slug> --feedback <text>` — send a finished, unmerged leaf back
|
|
343
|
+
when review wants changes, instead of aborting it or hand-making a second PR.
|
|
344
|
+
Feedback alone returns it to implement with the feedback in its context;
|
|
345
|
+
`--revise-spec <file>` or `--revise-spec-from-ticket` (with or without
|
|
346
|
+
feedback) restarts it from plan. The branch and open PR are kept, consent is
|
|
347
|
+
revoked at once (a hold stays), and the build waits for a slot like other
|
|
348
|
+
parked work. An armed native auto-merge is cancelled on a later dispatcher
|
|
349
|
+
poll, not by the command; a forge merge that lands first completes the build
|
|
350
|
+
as merged. It refuses nodes,
|
|
351
|
+
optimization attempts, blocked or still-running builds (use `ab answer` for a
|
|
352
|
+
blocked one), merged or closed PRs (file a new ticket), and pending abort or
|
|
353
|
+
discard. Re-run `ab reopen` with the same arguments after an interrupted spec
|
|
354
|
+
reopen; it completes the recorded one.
|
|
355
|
+
- `ab start <ticket-id> [--priority manual|urgent|normal] [--cancel]` — ask
|
|
356
|
+
the running dispatcher to claim one ticket on its next tick with a free slot,
|
|
357
|
+
even while intake is off or open-PR backpressure is engaged, and no other.
|
|
358
|
+
The default `manual` priority goes ahead of all waiting work, urgent included;
|
|
359
|
+
choose `urgent` when urgent waiting builds should still go first (the build
|
|
360
|
+
is then urgent), or `normal` when the ticket should wait behind normal
|
|
361
|
+
waiting builds and urgent tickets. Repeating it with another priority
|
|
362
|
+
updates the pending request. Use it to work a backlog one ticket at a time, or to run a single fix,
|
|
363
|
+
instead of turning intake on or moving other tickets out of ready. Every gate
|
|
364
|
+
still applies (ready state, spec standard, resolved blockers, no active
|
|
365
|
+
build, capacity, repository pause). Act on the `ticket.start-settled`
|
|
366
|
+
repository event: `started` names the build; any other outcome says why it
|
|
367
|
+
did not start and needs a fix before you ask again. `ab repository status`
|
|
368
|
+
lists pending requests with their priority; `--cancel` withdraws one.
|
|
369
|
+
- `ab hold <slug> [--reason <text>]` — persistently hold a merge and revoke
|
|
370
|
+
earlier consent. Record why with `--reason` when holding during queue work;
|
|
371
|
+
status, merges, builds and both dashboards show it until a later hold or
|
|
372
|
+
merge replaces it.
|
|
326
373
|
- `ab merge <slug>` — consent to a ready merge and clear its hold. Consent
|
|
327
374
|
survives clean restacks and verification; use hold to withdraw it when work
|
|
328
375
|
changes. Consent given under a `[[merge]]` rule with `paths` or `within`
|
|
329
|
-
predicates is revoked when a reconcile's own edits
|
|
330
|
-
predicates match; `landing.consent-revoked` reports it.
|
|
376
|
+
predicates is revoked when a reconcile's own edits, or a leaf restack's
|
|
377
|
+
generated-file regeneration, touch a file those predicates match; `landing.consent-revoked` reports it.
|
|
331
378
|
Read the matched policy, readiness, acknowledged command and gate deferral in
|
|
332
379
|
build status before acting. Work the consent queue by checking completeness
|
|
333
380
|
and current verification, then issuing merge for the chosen merge. A merge
|
|
@@ -350,6 +397,9 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
350
397
|
head beside the current one.
|
|
351
398
|
- Configure ordered `[[merge]]` rules for project policy through ab-guide.
|
|
352
399
|
Repository auto-merge defaults and per-build auto-merge toggles are retired.
|
|
400
|
+
- `ab objective <node>` reads an optimization node's progress; its flags
|
|
401
|
+
revise the stop rules and `--stop [--drain | --abort]` stops it. See
|
|
402
|
+
[optimization nodes](#optimization-nodes).
|
|
353
403
|
|
|
354
404
|
### Tickets
|
|
355
405
|
|
|
@@ -358,19 +408,38 @@ For feature sets you file yourself, consult the shared
|
|
|
358
408
|
explicitly choose root or a node, evaluate the repository's effective merge
|
|
359
409
|
policy, and explain the merge flow to the human. Ask when intent is unclear.
|
|
360
410
|
|
|
361
|
-
`ab ticket create|update|block|unblock|list|show|move|states` file,
|
|
362
|
-
move tickets; the `ab-tickets` skill covers the tracker's details.
|
|
411
|
+
`ab ticket create|update|block|unblock|list|search|show|move|states` file, find,
|
|
412
|
+
edit, and move tickets; the `ab-tickets` skill covers the tracker's details.
|
|
413
|
+
Run `ab ticket search` for duplicates before filing. A ticket
|
|
363
414
|
filed from a forge issue carries it with `--issues N` (`closes`), or
|
|
364
415
|
`--issues N:refs` when the work only partly addresses it. Moving a
|
|
365
416
|
ticket into the ready state sends it to dispatch — do that only when the
|
|
366
417
|
ticket genuinely conforms and the human's intent is clear.
|
|
367
418
|
|
|
368
419
|
The dispatcher claims urgent ready tickets before normal ones, each in source
|
|
369
|
-
order
|
|
420
|
+
order, and ahead of normal builds waiting for a slot to re-verify, reconcile or
|
|
421
|
+
resume. To expedite a ticket, such as a fix for a stuck build, mark it urgent
|
|
370
422
|
with `--priority urgent` on create or update; never move other ready tickets
|
|
371
|
-
out of ready to make room.
|
|
372
|
-
|
|
373
|
-
|
|
423
|
+
out of ready to make room. A claimed ticket's priority becomes its build's,
|
|
424
|
+
except that an optimization node's attempts claim at the node's current
|
|
425
|
+
priority; a claimed attempt keeps its own.
|
|
426
|
+
To expedite a build that already exists — a waiting reconcile or re-verify
|
|
427
|
+
that now blocks other work — run `ab priority <slug> urgent` (MCP:
|
|
428
|
+
`builds.control` with action `priority` and `priority: "urgent"`); `normal`
|
|
429
|
+
returns it to normal order. Free slots go to `manual` start requests, urgent
|
|
430
|
+
waiting work, urgent tickets (urgent start requests first), normal waiting
|
|
431
|
+
work, then normal tickets (normal start requests first); an `ab start`
|
|
432
|
+
request goes ahead per its tier. Urgency never preempts a
|
|
433
|
+
running build, and a blocked urgent ticket still waits on its blockers. A
|
|
434
|
+
source that cannot store priority refuses `urgent` and names itself; tell the
|
|
435
|
+
human.
|
|
436
|
+
|
|
437
|
+
When ready tickets sit unclaimed with free slots, check
|
|
438
|
+
`capacity.backpressure` in `ab repository status --json`. While `active` is
|
|
439
|
+
true, `[policy].maxOpenPrs` open-PR backpressure is pausing normal claims
|
|
440
|
+
until the open root PR count drains to `resumeOpenPrs` (below `maxOpenPrs`
|
|
441
|
+
when the two are equal); urgent tickets still dispatch. Relieve it by getting PRs merged or closed (or, where the repository
|
|
442
|
+
sets `excludeHeldOpenPrs`, by holding them), not by raising `capacity`.
|
|
374
443
|
|
|
375
444
|
On GitHub tickets, `--assignees` on create or update sets who a ticket is
|
|
376
445
|
assigned to (`me` is the credential owner; on update it replaces the set). Under
|
|
@@ -391,16 +460,57 @@ human and recommend setting that key rather than inventing a custom state.
|
|
|
391
460
|
The registry has operator notes, harvest control, and `discard`, which have no
|
|
392
461
|
CLI equivalent, and no bulk control beyond `pause --all` / `resume --all`. Say
|
|
393
462
|
so rather than improvising; tell the human, or record it with `ab observe`
|
|
394
|
-
when you are inside a build. `ab mcp` mounts the same registry over MCP for
|
|
395
|
-
|
|
396
|
-
|
|
463
|
+
when you are inside a build. `ab mcp` mounts the same registry over MCP for a
|
|
464
|
+
local harness that supports it; its tools then work as the connected-agent
|
|
465
|
+
section describes.
|
|
397
466
|
|
|
398
467
|
## Running as an external connected agent
|
|
399
468
|
|
|
400
469
|
This section applies when an external agent harness connects to the operator
|
|
401
|
-
registry through MCP.
|
|
402
|
-
|
|
403
|
-
|
|
470
|
+
registry through MCP. You have no shell and no `ab` CLI: you read context
|
|
471
|
+
through the context tools, explore code in the sandbox, and act through
|
|
472
|
+
operator tools. Which repository you act on depends on the connector:
|
|
473
|
+
|
|
474
|
+
- **Per-repository connector** (a URL such as `<origin>/mcp/github.com/acme/widgets`,
|
|
475
|
+
copied from the project's Settings tab): it serves that one repository. Its
|
|
476
|
+
tools have no `repo` argument; do not add one, because a `repo` naming
|
|
477
|
+
another repository is refused.
|
|
478
|
+
- **Deployment-wide connector** (`<origin>/mcp`): every tool requires `repo`.
|
|
479
|
+
Call `repositories.list` to find the identities you can reach.
|
|
480
|
+
|
|
481
|
+
Either way, follow each advertised tool schema exactly.
|
|
482
|
+
|
|
483
|
+
### Load context first
|
|
484
|
+
|
|
485
|
+
The server instructions list each repository's skills and agent instructions.
|
|
486
|
+
Before acting:
|
|
487
|
+
|
|
488
|
+
1. Call `context.list`. It returns the repository's skills with descriptions,
|
|
489
|
+
its agent instructions files (`AGENTS.md`, `CLAUDE.md`) with their scopes, and
|
|
490
|
+
which to load before operating and before ticket work.
|
|
491
|
+
2. Read this skill (`ab-operate`) and the repository's agent instructions with
|
|
492
|
+
`context.read`, or invoke the MCP prompt named for the skill. Follow a
|
|
493
|
+
relative link in a file by passing it as `path` with the file as `from`.
|
|
494
|
+
3. Treat the agent instructions as the repository's own rules: they win over
|
|
495
|
+
Autobuild skills for that repository. Their commands and rules about local
|
|
496
|
+
processes apply inside the sandbox.
|
|
497
|
+
|
|
498
|
+
Every `context.read` result starts with a generated preamble that maps each
|
|
499
|
+
`ab` command the file mentions to the tool that performs it, or says the
|
|
500
|
+
command is for build sessions, for the sandbox, or for a human on the host. A
|
|
501
|
+
repository with no captured context serves the canonical skills bundled with
|
|
502
|
+
Autobuild, and the index says so.
|
|
503
|
+
|
|
504
|
+
### Explore in the sandbox
|
|
505
|
+
|
|
506
|
+
Read code, docs and history in your operator sandbox, a persistent checkout of
|
|
507
|
+
the repository: `sandbox.open`, poll `sandbox.status` until it is ready, then
|
|
508
|
+
`sandbox.exec`, `sandbox.read_file`, and `sandbox.close` when you are done. Run
|
|
509
|
+
repository commands there, including the `ab` commands a preamble marks for the
|
|
510
|
+
sandbox. The sandbox holds no store, forge or model credentials, so every build
|
|
511
|
+
and ticket action still goes through the operator tools. Sandbox tools are
|
|
512
|
+
offered only where the repository's config enables `[orchestrator]`; otherwise
|
|
513
|
+
they are absent or refuse with a `sandbox-*` code.
|
|
404
514
|
|
|
405
515
|
### How you run
|
|
406
516
|
|
|
@@ -417,10 +527,26 @@ Do not assume session-owner delegation or a runner-provided repository scope.
|
|
|
417
527
|
Respect a human denial as a firm no. Any approval or suspension flow in your
|
|
418
528
|
external harness belongs to that harness. Protocol session approval answers are durable records only. Do not repeat completed work when your harness resumes.
|
|
419
529
|
|
|
530
|
+
### Each round
|
|
531
|
+
|
|
532
|
+
Begin every operator round with `repository.attention`. One call returns
|
|
533
|
+
everything waiting on you: blocked builds with their open escalation questions,
|
|
534
|
+
merges awaiting consent or held, repository attention events after your cursor,
|
|
535
|
+
builds paused, stalled or failing verification, and dispatcher attention. Each
|
|
536
|
+
item's `resolve` names the tool call that acts on it, primary first; `by:
|
|
537
|
+
"human"` marks a condition you report rather than fix. Act on each item, then
|
|
538
|
+
pass back `events.cursor` next round. Omit the cursor on the first call to get
|
|
539
|
+
a baseline; on `code: "cursor-too-old"`, call again without one.
|
|
540
|
+
|
|
420
541
|
### The tool surface
|
|
421
542
|
|
|
422
543
|
Your tools are the operator registry. The read-only ones are always safe:
|
|
423
544
|
|
|
545
|
+
- `context.list`, `context.read` — the repository's skills and agent
|
|
546
|
+
instructions, with a generated preamble on each read. Call them first.
|
|
547
|
+
- `repository.attention` — the attention digest: everything waiting on the
|
|
548
|
+
operator, each item naming its resolving tool call. The first call of each
|
|
549
|
+
round.
|
|
424
550
|
- `builds.list` — active, queued, or all builds, with effective status.
|
|
425
551
|
- `builds.get` — one build's detail.
|
|
426
552
|
- `builds.events` — one build's event log from a cursor (use a cursor; logs
|
|
@@ -428,14 +554,15 @@ Your tools are the operator registry. The read-only ones are always safe:
|
|
|
428
554
|
- `builds.artifact` — one artifact's bytes, base64-encoded.
|
|
429
555
|
- `repository.status` — the repository's derived status. Its `operator.presence`
|
|
430
556
|
is `unavailable`: it does not load presence, so it is not evidence of absence.
|
|
431
|
-
- `repository.events` —
|
|
432
|
-
|
|
557
|
+
- `repository.events` — the repository journal after a `cursor`, with an
|
|
558
|
+
optional bounded `waitSeconds` (at most 30), for waiting on new events. Its
|
|
433
559
|
default `attention` filter returns exactly the repository records
|
|
434
560
|
`ab watch --operator` reports, such as `ticket.handed-back`; `filter: "all"`
|
|
435
561
|
returns every event. Omit the cursor once to get a baseline, then pass back
|
|
436
562
|
the returned cursor, which advances past filtered events; follow it while
|
|
437
563
|
`hasMore` is true. On `code: "cursor-too-old"`, re-baseline and reconcile
|
|
438
|
-
`repository.status`.
|
|
564
|
+
`repository.status`. The attention digest reports blocked, waiting and
|
|
565
|
+
merge-ready builds; `builds.events` gives one build's history.
|
|
439
566
|
- `harvest.status` — the observation workflow's current state.
|
|
440
567
|
|
|
441
568
|
The mutating ones carry the human's authority — prefer the narrowest
|
|
@@ -452,12 +579,23 @@ that does the job, and say what you are doing before you do it:
|
|
|
452
579
|
resumes under the revised spec and its publication is confirmed. Answering a
|
|
453
580
|
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
454
581
|
tickets complete.
|
|
455
|
-
- `
|
|
582
|
+
- `builds.reopen` — send a finished, unmerged leaf back with `feedback`, a spec
|
|
583
|
+
`revision` (`{origin: "body" | "ticket", body}`, destructive — it replaces the
|
|
584
|
+
spec), or both, exactly as `ab reopen` does. Feedback returns to implement; a
|
|
585
|
+
revision restarts from plan; consent is revoked and the PR is kept.
|
|
586
|
+
- `tickets.list`, `tickets.get` — read the ticket queue and one ticket, with
|
|
587
|
+
its current assets. A long
|
|
456
588
|
queue pages with `limit`, `offset` and `order`; `total` counts every match.
|
|
589
|
+
- `tickets.search` — search ticket titles and bodies across every state, with
|
|
590
|
+
optional `state`, `labels`, `limit` and `cursor`. Use it to check for
|
|
591
|
+
duplicates before `tickets.create`. A source without search refuses with
|
|
592
|
+
`code: "search-unsupported"`, naming the source.
|
|
457
593
|
- `tickets.create` — file a new ticket from a conversation. A ticket filed
|
|
458
594
|
from a forge issue carries it in `issueLinks` as `{issue}` (intent `closes`,
|
|
459
595
|
the default) or `{issue, intent: "refs"}` when the work only partly
|
|
460
|
-
addresses it. `priority: "urgent"` dispatches it before normal ready work
|
|
596
|
+
addresses it. `priority: "urgent"` dispatches it before normal ready work
|
|
597
|
+
and normal waiting builds. Its `labels` are unioned with the repository's
|
|
598
|
+
`[tickets].createLabels`, and harvest proposals carry them too.
|
|
461
599
|
- `tickets.update`, `tickets.block`, `tickets.unblock` — edit fields and
|
|
462
600
|
blocker relations. `issueLinks` on update replaces the whole set;
|
|
463
601
|
`priority` (`urgent` or `normal`) expedites a ticket instead of moving other
|
|
@@ -469,6 +607,13 @@ that does the job, and say what you are doing before you do it:
|
|
|
469
607
|
phrases and unconfigured-role handling as the CLI. Moving a ticket
|
|
470
608
|
into the ready state sends it to dispatch — do that only when the ticket
|
|
471
609
|
genuinely conforms and the human's intent is clear.
|
|
610
|
+
- `tickets.start` — ask the running dispatcher to start one ticket even while
|
|
611
|
+
intake is off, as `ab start` does, with optional `priority` (`manual` by
|
|
612
|
+
default, `urgent` or `normal`, chosen as for `ab start`); `cancel: true`
|
|
613
|
+
withdraws a pending request. The outcome arrives as `ticket.start-settled` in `repository.events`.
|
|
614
|
+
- `tickets.asset.attach`, `tickets.asset.get`, `tickets.asset.remove` — attach,
|
|
615
|
+
read and remove ticket assets with base64 bytes, as `ab ticket attach`,
|
|
616
|
+
`ab ticket asset get` and `ab ticket asset rm` do. `remove` is destructive.
|
|
472
617
|
- `notes.read`, `notes.write` — the operator-notes artifact: durable,
|
|
473
618
|
human-readable notes about this repository's operation. Write what the
|
|
474
619
|
next operator or human will need; explicitly read it before acting on
|
|
@@ -476,6 +621,20 @@ that does the job, and say what you are doing before you do it:
|
|
|
476
621
|
- `repository.settings` and `repository.bulk_control` — repository-wide
|
|
477
622
|
switches; use sparingly and only on clear instruction.
|
|
478
623
|
- `harvest.control` — start or control an observation run.
|
|
624
|
+
- `optimization.revise`, `optimization.stop` — revise an optimization node's
|
|
625
|
+
stop rules, or stop it; see [optimization nodes](#optimization-nodes).
|
|
626
|
+
Stopping cancels or aborts attempts in flight and cannot be undone.
|
|
627
|
+
- `optimization.settle-unmeasured` — release the slot of an attempt that merged
|
|
628
|
+
without a landing measurement, under an explicit policy; see
|
|
629
|
+
[optimization nodes](#optimization-nodes).
|
|
630
|
+
- `sandbox.open`, `sandbox.status`, `sandbox.close`, `sandbox.refresh` — your
|
|
631
|
+
sandbox's lifecycle; `refresh` fast-forwards a clean checkout to the base head.
|
|
632
|
+
- `sandbox.exec`, `sandbox.start`, `sandbox.wait`, `sandbox.read_file`,
|
|
633
|
+
`sandbox.write_file` — run commands and read or write files in the sandbox.
|
|
634
|
+
- `sandbox.reset` and `sandbox.publish` — destructive. `reset` discards every
|
|
635
|
+
change and re-provisions; `publish` pushes the sandbox's commit to your
|
|
636
|
+
operator branch and opens or updates a pull request. Use them only on clear
|
|
637
|
+
instruction.
|
|
479
638
|
|
|
480
639
|
Every tool returns the operator API's shapes: results, or a typed failure
|
|
481
640
|
(`kind`, `error`, `code`). A refusal is information, not an exception:
|
|
@@ -483,7 +642,8 @@ report it, adapt, and carry on.
|
|
|
483
642
|
|
|
484
643
|
### The attention set
|
|
485
644
|
|
|
486
|
-
Obtain current facts through supported status, event and monitoring reads
|
|
645
|
+
Obtain current facts through supported status, event and monitoring reads; as
|
|
646
|
+
a connected agent, `repository.attention` is that current-facts read.
|
|
487
647
|
Notifications may be stale; reconcile current state before acting on routine
|
|
488
648
|
outcomes or self-healing failures. The service does not automatically deliver
|
|
489
649
|
wake payloads to your external harness.
|
|
@@ -502,6 +662,20 @@ Treat every default-watch record as a call to act:
|
|
|
502
662
|
your consent was given under. Review the reconcile's edits to the named files
|
|
503
663
|
at the new head, then consent again with `ab merge <slug> --head <new head>`
|
|
504
664
|
or hold it. The build is back in the consent queue until you do.
|
|
665
|
+
- `pr.checks-failed`: forge CI is failing at a finished leaf's live PR head,
|
|
666
|
+
naming the failing checks and the head. Inspect the PR, then re-run CI on
|
|
667
|
+
the forge if the failure looks flaky or external, or send the build back with
|
|
668
|
+
feedback if its own change broke. Autobuild never re-runs CI or returns the
|
|
669
|
+
build to implement on its own. The failure clears when a successful CI read
|
|
670
|
+
finds no failing checks on that head, even while some are still pending, or
|
|
671
|
+
the PR moves to another head; clearing does not prove green. CI the forge
|
|
672
|
+
cannot report (missing permission, rate
|
|
673
|
+
limit, outage) is unknown and is never reported as red or green.
|
|
674
|
+
- `optimization.noise-exceeded`: an optimization node's ε is below the noise
|
|
675
|
+
its starting measurement found, so its gate could accept noise. Tell the
|
|
676
|
+
human both numbers; raising ε (`ab objective <node> --epsilon …`) or
|
|
677
|
+
`metric.samples`, or `metric.judges` for a panel (a spec revision), is their
|
|
678
|
+
call. The node keeps running.
|
|
505
679
|
- `build.merge-decision`: diagnose the current merge-gate deferral or unsafe
|
|
506
680
|
forge outcome. Consent and hold decisions use only `build.consent-ready`.
|
|
507
681
|
When the reason begins `Awaiting a human merge`, Autobuild cannot land the PR
|
|
@@ -516,7 +690,7 @@ Treat every default-watch record as a call to act:
|
|
|
516
690
|
and reason, including a rejected protocol-write preflight. The running generation stays active; the same failed input is
|
|
517
691
|
suppressed until target or selected-store compatibility evidence changes or a fresh operator launch. Report
|
|
518
692
|
launcher-contract changes or disabled automatic upgrades as manual restart
|
|
519
|
-
needs.
|
|
693
|
+
needs. Do not manage another session's dispatcher process. Status shows a failure as
|
|
520
694
|
current only until a later different resolved target, a later successful
|
|
521
695
|
preparation or handoff, or a later generation supersedes it; a failure marked
|
|
522
696
|
`(superseded)` needs no action.
|
|
@@ -527,14 +701,14 @@ Treat every default-watch record as a call to act:
|
|
|
527
701
|
upgrade opt-out. A different successfully resolved target or a fresh operator
|
|
528
702
|
launch clears the effective hold. Existing phases keep their leases and continue
|
|
529
703
|
on the restored runtime at their next boundary; unreadable decisive facts defer
|
|
530
|
-
with attention. Report the evidence to the operator; agents never restart
|
|
704
|
+
with attention. Report the evidence to the operator; agents never restart another session's
|
|
531
705
|
dispatcher.
|
|
532
706
|
- Dispatcher loss, abnormal stop, restart-required reload, rejected config, or
|
|
533
707
|
persistent tick failure: diagnose through repository status and report the
|
|
534
708
|
condition to the human. Repository read failures fail the watch tick and
|
|
535
709
|
retry on the next tick, using the existing five-minute persistent-failure
|
|
536
710
|
attention. For validation failures, inspect the stored tick error for reducer,
|
|
537
|
-
scope, cursor, field path, and running version/commit.
|
|
711
|
+
scope, cursor, field path, and running version/commit. Follow the ownership rules below before considering a new dispatcher.
|
|
538
712
|
- Persistent source degradation: inspect the source cause and reset evidence,
|
|
539
713
|
diagnose and report the continuing intake problem.
|
|
540
714
|
- Abandoned ticket preparation (`ticket-preparation.resolved`, outcome
|
|
@@ -561,6 +735,13 @@ Treat every default-watch record as a call to act:
|
|
|
561
735
|
parts first. Moving the ticket as soon as the record arrives is safe: no later
|
|
562
736
|
dispatcher write for the same hand-back overrides it. Each hand-back reports
|
|
563
737
|
once.
|
|
738
|
+
- Single-ticket start settlement (`ticket.start-settled`): an `ab start` or
|
|
739
|
+
`tickets.start` request reached its outcome, with its `priority`. `started` names the build to
|
|
740
|
+
follow. `already-building` names the build already embodying the ticket.
|
|
741
|
+
`blocked` (unresolved blockers or target), `invalid` (bounced to triage, or a
|
|
742
|
+
profile conflict), `not-ready` (not in the ready state), `terminal`, `missing`
|
|
743
|
+
and `claim-refused` carry a `detail`: fix the cause, then request again if the
|
|
744
|
+
ticket should still go next. Each request settles once.
|
|
564
745
|
|
|
565
746
|
Do not re-derive history the build's events already tell you; read events
|
|
566
747
|
with a cursor and keep it short.
|
|
@@ -623,13 +804,25 @@ for the exceptions above.
|
|
|
623
804
|
- Human checkout dispatch defaults to viewer for hosted placement. Humans can use
|
|
624
805
|
`--takeover` to dispatch locally with a displacement warning; unreadable placement
|
|
625
806
|
fails closed and names `--viewer` and `--takeover` as explicit recovery choices.
|
|
626
|
-
These
|
|
627
|
-
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
807
|
+
These placement defaults do not authorize agent takeover; the ownership rules below still apply.
|
|
808
|
+
- Inspect fresh repository status before starting: never start a dispatcher when
|
|
809
|
+
`dispatcherRunning` is true. Missing, unreadable or unrecognized running status
|
|
810
|
+
fails closed. A holder, expired holder or unfinished draining handoff counts as
|
|
811
|
+
running, regardless of lease age or an empty drain map.
|
|
812
|
+
- When none is running, honor repository instructions first, then read
|
|
813
|
+
`ab operator dispatcher --json`. Follow the saved `human` or `agent` preference;
|
|
814
|
+
if unset, ask who should run it and offer to save the answer with
|
|
815
|
+
`ab operator dispatcher human` or `ab operator dispatcher agent`. This writes
|
|
816
|
+
only `.autobuild/local.toml`; it does not authorize takeover.
|
|
817
|
+
- For human ownership, provide startup instructions and wait. For agent ownership,
|
|
818
|
+
start `ab dispatch --web --plain --json` under the harness's managed background
|
|
819
|
+
lifetime and give the person the returned URL. If that lifetime is unavailable,
|
|
820
|
+
explain that limitation and leave startup to the human.
|
|
821
|
+
- Stop only a dispatcher this session started, only when requested, using a clean
|
|
822
|
+
stop and waiting for drain. Never adopt, restart, kill or manage another
|
|
823
|
+
session's dispatcher. Diagnose and report trouble without process intervention.
|
|
824
|
+
- `ab web` is always permitted, including while a dispatcher is running; it is a
|
|
825
|
+
read-only surface and does not acquire a dispatcher lease.
|
|
633
826
|
|
|
634
827
|
- You never claim to have done anything outside the tools you have. If you cannot
|
|
635
828
|
observe it with a tool, say you cannot observe it.
|
|
@@ -657,14 +850,21 @@ verification receipts and node children/completeness. Unknown completeness is
|
|
|
657
850
|
not zero children. A changed head or parent must regain current verification;
|
|
658
851
|
unfinished or automatically authorized candidates do not ask for attention.
|
|
659
852
|
Queued and held candidates hold no capacity slot; one that must re-verify or
|
|
660
|
-
reconcile waits for a slot ahead of
|
|
661
|
-
delays it without failing it. A build waiting on other
|
|
662
|
-
either, and takes one ahead of
|
|
853
|
+
reconcile waits for a slot ahead of normal ticket claims (urgent work first), so
|
|
854
|
+
a full repository delays it without failing it. A build waiting on other
|
|
855
|
+
tickets holds no slot either, and takes one ahead of normal claims once its
|
|
856
|
+
wait ends.
|
|
663
857
|
|
|
664
858
|
Select a queue build in the terminal and use `l merge` or `o hold`, or run
|
|
665
859
|
`ab merge <slug>` / `ab hold <slug>`. MCP uses `builds.control` with action `merge`
|
|
666
860
|
or `hold`; its optional `head` binds merge consent to the reviewed head, like
|
|
667
|
-
`ab merge --head`. Hold is available before readiness and suppresses automatic merge.
|
|
861
|
+
`ab merge --head`, and `hold` takes an optional `reason`, like `ab hold --reason`. Hold is available before readiness and suppresses automatic merge.
|
|
862
|
+
When review of a queued merge asks for changes, reopen it (`ab reopen`, MCP
|
|
863
|
+
`builds.reopen`) rather than holding it and filing a parallel PR: hold only
|
|
864
|
+
stops the merge, abort closes the PR, and reopen carries the requested change
|
|
865
|
+
back into the same build and PR. The reopened build leaves the queue until it
|
|
866
|
+
finishes again and needs fresh consent then. A merged or closed PR is final;
|
|
867
|
+
its fixup is a new ticket.
|
|
668
868
|
Merge rechecks readiness and live node completeness, so act on failures by
|
|
669
869
|
refreshing the facts. Open children keep a node collecting; a child moved to
|
|
670
870
|
the rejected role no longer does. When integration
|
|
@@ -675,7 +875,7 @@ Watch for decisions and conflicts with `ab watch --operator --json`; save its op
|
|
|
675
875
|
and resume with `ab watch --operator --since <watch-cursor> --json`. On
|
|
676
876
|
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge the
|
|
677
877
|
unavailable historical gap. Default attention includes
|
|
678
|
-
failed node verification (`integration.verification-failed`), node merges, node item conflicts, conflicted leaf replays, revoked protected consent (`landing.consent-revoked`) and derived
|
|
878
|
+
failed node verification (`integration.verification-failed`), node merges, node item conflicts, conflicted leaf replays, revoked protected consent (`landing.consent-revoked`), failing forge CI on a finished leaf (`pr.checks-failed`), optimization noise above ε (`optimization.noise-exceeded`) and derived
|
|
679
879
|
`build.consent-ready` observations, including already-ready merges on first
|
|
680
880
|
repository-wide discovery. Readiness is identified by its durable
|
|
681
881
|
entry position: resuming suppresses the same episode, while a new candidate or
|
|
@@ -708,11 +908,15 @@ first tick after every named ticket completes, with no answer needed, and a
|
|
|
708
908
|
wait with some tickets still open stays in place. Answer sooner only when the
|
|
709
909
|
needed work landed another way or the wait is mistaken; any answer ends the
|
|
710
910
|
wait early. Either way the build then takes a
|
|
711
|
-
slot ahead of
|
|
911
|
+
slot ahead of normal ticket claims (urgent work first). If its target moved, it first restacks onto the
|
|
712
912
|
target's current head, so the resumed phase sees the merged blockers;
|
|
713
913
|
`ab build status` shows a `restack:` line with trigger `wait-resume`, and a
|
|
714
|
-
conflicting restack shows as `reconcile` before the phase resumes
|
|
715
|
-
|
|
914
|
+
conflicting restack shows as `reconcile` before the phase resumes (a conflict
|
|
915
|
+
only in declared generated files is regenerated instead, and the `restack:`
|
|
916
|
+
line names the commands as `regenerated:`). The phase
|
|
917
|
+
that declared the wait then resumes, told what it waited on. A verify or
|
|
918
|
+
finalize wait whose target moved first re-runs every verification step on the
|
|
919
|
+
restacked base before finalize or merge. Until the
|
|
716
920
|
dispatcher accepts a request, the build keeps its slot and `ab build status`
|
|
717
921
|
reports the wait as requested. A wait declared in `implement` first publishes
|
|
718
922
|
the build's commits; if that publication is lost, the wait is refused
|
|
@@ -731,7 +935,9 @@ Entering and leaving a wait (`wait.entered`, `wait.ended`, and the
|
|
|
731
935
|
`escalation.answered` that ends a wait) are routine, not default-watch
|
|
732
936
|
attention. To see waits begin and end, run a separate diagnostic
|
|
733
937
|
`ab watch --event 'wait.*' --event escalation.answered --json` alongside the
|
|
734
|
-
standing watch.
|
|
938
|
+
standing watch. A build waiting only on tickets is not attention either: it
|
|
939
|
+
wakes neither `ab wait --for attention` nor default `ab watch`, so find
|
|
940
|
+
waiting builds through `ab builds`, `ab status` or the dashboards. On either dashboard, `r` / RESUME on a waiting build answers
|
|
735
941
|
the wait and ends it early.
|
|
736
942
|
|
|
737
943
|
### Janitor escalation attention
|
|
@@ -744,16 +950,88 @@ answer with a bare retry so the janitor attempts on its next tick. The janitor
|
|
|
744
950
|
keeps retrying underneath, so the escalation may also close on its own when an
|
|
745
951
|
attempt succeeds; reconcile current status before acting on it.
|
|
746
952
|
|
|
953
|
+
### Node landing stack attention
|
|
954
|
+
|
|
955
|
+
An open `integration-stack:<head>:<n>` escalation means landing refused the
|
|
956
|
+
node's verified stack: it is non-linear, contains a merge commit, gives a commit
|
|
957
|
+
several or repeated `Autobuild-Build:` identities, or holds a trailer-less commit
|
|
958
|
+
the node does not own. Verified hand-pushed tweaks are not refusals. The question
|
|
959
|
+
names the rule and commit. Landing does not retry that head on its own. Ask a
|
|
960
|
+
maintainer to make the node branch linear, which yields a new head that verifies
|
|
961
|
+
again, or answer with a bare retry to attempt the same head once more.
|
|
962
|
+
|
|
963
|
+
## Optimization nodes
|
|
964
|
+
|
|
965
|
+
An optimization node files and dispatches its own attempts toward an objective,
|
|
966
|
+
and stops itself once a cause is met. Your part is reading progress, adjusting
|
|
967
|
+
when to stop, and landing the result.
|
|
968
|
+
|
|
969
|
+
- **Read progress** with `ab objective <node>` (`--json` for the structured
|
|
970
|
+
view): starting, current and best values, attempts filed, accepted, rejected,
|
|
971
|
+
merged unmeasured and running, the plateau counter, active hours (time its
|
|
972
|
+
attempts, proposer or measurements actually ran; `settling` right after a
|
|
973
|
+
stop), stop
|
|
974
|
+
eligibility, and, once stopped, the cause, mode and what still blocks
|
|
975
|
+
completion. It also lists every `unmeasured merge` and every `branch cleanup
|
|
976
|
+
pending`, each of which holds a concurrency slot; `ab build status <node>`
|
|
977
|
+
prints the same lines. A panel node’s current value is its latest recorded
|
|
978
|
+
win rate against the starting head.
|
|
979
|
+
- **Settle an unmeasured merge** when a human merged an attempt on the forge
|
|
980
|
+
and the merged head was never measured. The attempt stays in flight, holding
|
|
981
|
+
its slot, and a stopped node cannot complete while it remains. Measured
|
|
982
|
+
progress cannot be inferred from such a merge, so release it explicitly:
|
|
983
|
+
`ab objective <node> --settle-unmeasured <proposal|build> --policy
|
|
984
|
+
release-unmeasured [--note <text>]`. It settles `merged-unmeasured`, frees the
|
|
985
|
+
slot once, and never counts as accepted or moves the current, best or plateau
|
|
986
|
+
value. It is refused for settled, unmerged or measured attempts.
|
|
987
|
+
- **Branch cleanup pending** means a declined or no-improvement attempt's
|
|
988
|
+
published branch has not been deleted yet. The node retries on its own; a
|
|
989
|
+
shown error names why the forge refused, and the ticket moves to rejected
|
|
990
|
+
once the branch is gone.
|
|
991
|
+
- **Revise when to stop** with `ab objective <node> --threshold n`, or
|
|
992
|
+
`--max-attempts n`, `--max-hours n` (active hours), `--plateau n` or
|
|
993
|
+
`--stop-mode abort|drain`.
|
|
994
|
+
The dispatcher applies the change on its next tick, with no replanning and
|
|
995
|
+
running attempts untouched. Lowering the threshold to the current value, or a
|
|
996
|
+
budget to what is already spent, stops the node on that tick.
|
|
997
|
+
- **Speed up its attempts** with `ab priority <node> urgent`: attempts claimed
|
|
998
|
+
afterwards take the urgent tier. No slot is reserved and nothing running is
|
|
999
|
+
preempted; attempts already claimed keep their priority.
|
|
1000
|
+
- **Stop it** with `ab objective <node> --stop` to take the progress so far.
|
|
1001
|
+
Without a flag the objective's stop mode applies, `abort` unless the objective
|
|
1002
|
+
says otherwise. `--stop --abort` cancels queued attempts and aborts running
|
|
1003
|
+
ones. Attempts cancelled or aborted by the stop settle `stopped`; an earlier
|
|
1004
|
+
operator abort remains `aborted`, as does an operator abort during drain.
|
|
1005
|
+
Abort cleanup uses the first request’s durable origin and settles each build
|
|
1006
|
+
once. `--stop --drain` cancels queued attempts
|
|
1007
|
+
and lets running ones finish and face the landing gate, so a nearly finished
|
|
1008
|
+
improvement can still land. A stop is final: no new proposer session starts
|
|
1009
|
+
after it, attempts proposed by a session already running are cancelled, and a
|
|
1010
|
+
later revision does not restart the search.
|
|
1011
|
+
- **Land it** once it completes. A stopped node with no attempt running or
|
|
1012
|
+
waiting to land completes, verifies and appears in the consent queue like any
|
|
1013
|
+
node. Stopping is not consent: run `ab merge <node>`. Before then, `ab merge`
|
|
1014
|
+
refuses with `node-incomplete` and names the reason: the node has not
|
|
1015
|
+
stopped, attempts are still in flight, or attempts merged without a landing
|
|
1016
|
+
measurement and await settlement.
|
|
1017
|
+
|
|
1018
|
+
A connected agent uses `optimization.revise`, `optimization.stop` (optional
|
|
1019
|
+
`mode`) and `optimization.settle-unmeasured` (`attempt`, `policy`, optional
|
|
1020
|
+
`note`), then `builds.control` with action `merge`.
|
|
1021
|
+
|
|
747
1022
|
## Forge failure recovery
|
|
748
1023
|
|
|
749
1024
|
A historical `publication.lost` does not prove that every copy of its candidate
|
|
750
1025
|
is gone. Recovery checks the exact branch and private archive refs and retained
|
|
751
|
-
|
|
752
|
-
|
|
1026
|
+
store copies first. Replay copies are read in either format (chunked manifest or
|
|
1027
|
+
legacy base64 pack); a thin pack whose base is missing fetches the published target
|
|
1028
|
+
first and applies with `git index-pack --fix-thin`. An available candidate is
|
|
1029
|
+
retained best effort before guarded publication continues; a refused archive does
|
|
1030
|
+
not block it. A genuinely missing reconcile or automatic restack candidate records
|
|
753
1031
|
`publication.candidate-retired`, abandons its obsolete request, and replays the
|
|
754
1032
|
producing operation with a fresh transaction identity. Its frozen target,
|
|
755
1033
|
reconcile occurrence or automatic trigger, cycle, and message survive. The
|
|
756
|
-
retired candidate is excluded from
|
|
1034
|
+
retired candidate is excluded from retention requirements unless independently
|
|
757
1035
|
required by proven history. This reconstruction consumes no infrastructure
|
|
758
1036
|
attempt and no additional conflict occurrence; it needs no operator guidance.
|
|
759
1037
|
A bare retry also clears an existing infrastructure-limit escalation through
|
|
@@ -811,6 +1089,25 @@ succeeds.
|
|
|
811
1089
|
|
|
812
1090
|
A rate limit the dispatcher classifies on its own authenticated request
|
|
813
1091
|
records repository degradation with `resetAt`.
|
|
1092
|
+
The built-in GitHub forge also treats a successful response, 304 included,
|
|
1093
|
+
that reports `x-ratelimit-remaining: 0` with a future reset at most 65 minutes
|
|
1094
|
+
away (one hour plus five minutes of clock skew) as that quota's limit.
|
|
1095
|
+
The response keeps its result, and the process's next
|
|
1096
|
+
request for the same quota (`core`, `graphql`, …) fails as that rate limit
|
|
1097
|
+
without being sent, so cooldown follows the rules here without an avoidable
|
|
1098
|
+
refusal. Other quotas are unaffected. A missing, malformed, past or
|
|
1099
|
+
implausible reset enters no cooldown, and no later response clears one early:
|
|
1100
|
+
only the reset passing, or an explicit `forge-clear`, does. After a clear, the
|
|
1101
|
+
next request goes to GitHub as a probe, and an actual limit restores the
|
|
1102
|
+
cooldown.
|
|
1103
|
+
The first limit of an episode records an ordinary `dispatcher.forge-degraded`,
|
|
1104
|
+
which wakes `ab watch` once. A later reset inside the unexpired episode extends
|
|
1105
|
+
the cooldown durably as a degradation marked `continued` that wakes nothing; an
|
|
1106
|
+
equal or earlier reset writes nothing. A limit after the reset has passed, or
|
|
1107
|
+
after recovery, opens a new episode. A rate-limited or unreadable response on
|
|
1108
|
+
landing, gate inspection or PR polling is a typed forge failure or an unproven
|
|
1109
|
+
state, never "no checks", "ungated", "closed" or "merged"; merge-freshness
|
|
1110
|
+
inspection defers instead of recording best-effort evidence.
|
|
814
1111
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
815
1112
|
request; a successful probe records automatic recovery. An authorized operator
|
|
816
1113
|
may explicitly override erroneous recorded state with
|
|
@@ -864,7 +1161,15 @@ using exact-resource ETags; authenticated 304s spare the REST primary quota.
|
|
|
864
1161
|
Adapter caches are bounded and restart/eviction falls back to fresh reads.
|
|
865
1162
|
Writes, including Git publication and rewrites, invalidate observations before
|
|
866
1163
|
attempting the mutation so acknowledgement reads remain fresh. Leaf PR polling
|
|
867
|
-
keeps its existing cadence.
|
|
1164
|
+
keeps its existing cadence. Gate branch and rules reads, merge-freshness
|
|
1165
|
+
protection and rulesets, landing, retarget and auto-merge PR reads, commit and
|
|
1166
|
+
history reads, merge-queue activity, summary-comment listing and branch
|
|
1167
|
+
existence revalidate the same way. Both caches hold the raw representation and
|
|
1168
|
+
every caller validates it with its own schema, so consumers of one resource
|
|
1169
|
+
share one request and one ETag; a representation that fails validation loses
|
|
1170
|
+
its ETag. Reads that must be fresh, including merge inspections, still reach
|
|
1171
|
+
GitHub every time, conditionally when an ETag is cached. Readiness diagnostics
|
|
1172
|
+
and post-mutation readbacks stay unconditional.
|
|
868
1173
|
|
|
869
1174
|
For node cadence, durable wakes, restart behavior and CLI evidence, see
|
|
870
1175
|
[node polling and status](../ab-guide/references/integration-tree.md#polling-and-status).
|
|
@@ -875,6 +1180,18 @@ primary quota, REST 304s and GraphQL calls. Transport failures and historical or
|
|
|
875
1180
|
legacy observations can remain unclassified; absent fields never imply zero.
|
|
876
1181
|
Shared requests are attributed to their first requester; cache hits count zero.
|
|
877
1182
|
|
|
1183
|
+
An adapter may also report the primary rate-limit headers a response carried
|
|
1184
|
+
(`resource`, `limit`, `remaining`, `resetAt`), including on 304s and limited
|
|
1185
|
+
failures; GitHub does. No extra `/rate_limit` request is made. Tick telemetry's
|
|
1186
|
+
optional `rateLimits` carries the latest reading per resource with its
|
|
1187
|
+
`observedAt`, at most eight resources and none older than a day, across ticks
|
|
1188
|
+
and dispatcher restarts, so a cooldown tick with no requests still reports the
|
|
1189
|
+
last known quota. Secondary limits carry no headers and appear only as the
|
|
1190
|
+
degradation. `ab repository status` shows them as `forgeRateLimit`: each
|
|
1191
|
+
reading, `stale` once its window has reset (current quota unknown), and
|
|
1192
|
+
`paused`/`pausedUntil` while the dispatcher's rate-limit cooldown holds forge
|
|
1193
|
+
landing and polling. Absent fields mean unknown, never full quota.
|
|
1194
|
+
|
|
878
1195
|
## Intentional node staleness
|
|
879
1196
|
|
|
880
1197
|
An open collecting node may intentionally trail its parent. Parent movement is
|