@defrex/autobuild 1.8.1 → 1.10.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 +1602 -134
- package/bin/ab-dispatch-generation.ts +2 -0
- package/docs/agent-runtimes.md +30 -3
- package/docs/answering-blocked-builds.md +15 -7
- package/docs/architecture.md +320 -53
- package/docs/builds.md +5 -0
- package/docs/cli.md +7 -1
- package/docs/configuration-overview.md +1 -0
- package/docs/configuration.md +515 -49
- package/docs/dispatcher-hosting.md +4 -0
- package/docs/dispatcher.md +17 -3
- package/docs/forges.md +1 -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 +70 -14
- package/docs/migration-1.0.md +2 -1
- package/docs/operating.md +53 -4
- package/docs/operator-api.md +128 -16
- package/docs/optimization-nodes.md +1042 -0
- package/docs/overview.md +1 -1
- package/docs/plugin-authoring.md +50 -13
- package/docs/remote-store-protocol.md +46 -7
- package/docs/remote-ticket-protocol.md +50 -2
- package/docs/restacking.md +102 -10
- package/docs/seams.md +2 -2
- package/docs/setup.md +16 -3
- package/docs/skills.md +4 -2
- package/docs/spec-standard.md +2 -1
- package/docs/ticket-dependencies.md +5 -0
- package/docs/ticket-migration.md +4 -2
- package/docs/ticket-sources.md +30 -12
- package/docs/tickets.md +15 -6
- package/docs/troubleshooting.md +3 -2
- package/docs/verification.md +18 -6
- package/docs/workspaces.md +3 -1
- package/package.json +4 -3
- package/packages/core/src/accounts/chatgpt-oauth.ts +7 -5
- package/packages/core/src/cli/attempt.ts +103 -0
- package/packages/core/src/cli/attention.ts +11 -1
- package/packages/core/src/cli/binary-direct.ts +52 -1
- package/packages/core/src/cli/binary.ts +5 -3
- package/packages/core/src/cli/build-control.ts +328 -66
- package/packages/core/src/cli/context.ts +268 -15
- package/packages/core/src/cli/dashboard/detail.ts +26 -2
- package/packages/core/src/cli/dashboard/facts.ts +40 -3
- package/packages/core/src/cli/dashboard/integration-detail.ts +7 -2
- package/packages/core/src/cli/dashboard/landing-display.ts +24 -3
- package/packages/core/src/cli/dashboard/model.ts +127 -33
- package/packages/core/src/cli/dashboard/objective-row.ts +189 -0
- package/packages/core/src/cli/dashboard/render.ts +49 -3
- package/packages/core/src/cli/dashboard/reopen-display.ts +39 -0
- package/packages/core/src/cli/dashboard/tree.ts +12 -1
- package/packages/core/src/cli/dispatch-frontend.ts +9 -1
- package/packages/core/src/cli/dispatch-launch-stop.ts +55 -0
- package/packages/core/src/cli/dispatch-launcher.ts +26 -44
- package/packages/core/src/cli/dispatch-repository-feed.ts +1 -1
- package/packages/core/src/cli/dispatch.ts +136 -5
- package/packages/core/src/cli/env.ts +42 -0
- package/packages/core/src/cli/help.ts +212 -11
- 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 +2 -2
- 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 +412 -143
- package/packages/core/src/cli/measurement-text.ts +19 -0
- package/packages/core/src/cli/objective.ts +154 -0
- package/packages/core/src/cli/publication-settlement.ts +106 -22
- package/packages/core/src/cli/repo-lease.ts +1 -0
- package/packages/core/src/cli/repository-status.ts +179 -19
- package/packages/core/src/cli/status.ts +195 -17
- package/packages/core/src/cli/store-opening.ts +4 -0
- 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 +68 -2
- package/packages/core/src/cli/upgrade-agent.ts +12 -8
- package/packages/core/src/cli/wait.ts +8 -2
- package/packages/core/src/cli/watch.ts +1325 -628
- package/packages/core/src/config/create-labels.ts +23 -0
- package/packages/core/src/config/live.ts +3 -0
- package/packages/core/src/config/load.ts +19 -0
- package/packages/core/src/config/pipeline-source.ts +1 -3
- package/packages/core/src/config/roles.ts +182 -73
- package/packages/core/src/config/schema.ts +226 -9
- package/packages/core/src/events/catalog.ts +41 -3
- package/packages/core/src/events/compatibility.ts +7 -1
- package/packages/core/src/events/payloads.ts +610 -1
- package/packages/core/src/events/policy.ts +62 -0
- package/packages/core/src/events/repository.ts +147 -21
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +1512 -199
- 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/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/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/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/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/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/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/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/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/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/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/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/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/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 +34 -3
- package/packages/core/src/kernel/dispatch-capacity.ts +312 -38
- 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 +109 -13
- 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 +578 -0
- package/packages/core/src/kernel/generators/panel-log.ts +133 -0
- package/packages/core/src/kernel/generators/repository-journals.ts +18 -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 +76 -1
- package/packages/core/src/kernel/leaf-restack-state.ts +17 -1
- package/packages/core/src/kernel/log-index-value.ts +2 -0
- package/packages/core/src/kernel/log-index.ts +81 -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 +249 -0
- package/packages/core/src/kernel/optimization.ts +774 -0
- package/packages/core/src/kernel/panel.ts +225 -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/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 +37 -3
- package/packages/core/src/kernel/reducer-revisions.ts +50 -0
- package/packages/core/src/kernel/reducer.ts +208 -9
- 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/service-facts.ts +19 -7
- 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 +62 -0
- package/packages/core/src/kernel/verify-stage-state.ts +1 -0
- package/packages/core/src/kernel/verify-stages.ts +41 -1
- package/packages/core/src/objective.ts +532 -0
- package/packages/core/src/ontology.ts +49 -6
- package/packages/core/src/operator/annotations.ts +35 -4
- package/packages/core/src/operator/control.ts +2 -1
- package/packages/core/src/operator/index.ts +12 -0
- package/packages/core/src/operator/optimization.ts +307 -0
- package/packages/core/src/operator/protocol.ts +30 -1
- package/packages/core/src/operator/query.ts +15 -1
- package/packages/core/src/operator/registry.ts +219 -13
- package/packages/core/src/operator/requests.ts +25 -2
- package/packages/core/src/operator/ticket-start.ts +152 -0
- package/packages/core/src/operator/tickets.ts +3 -2
- package/packages/core/src/plugin-sdk/index.ts +9 -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 +151 -10
- package/packages/core/src/ports/forge/git-rewrite.ts +38 -5
- package/packages/core/src/ports/forge/github-readiness.ts +1 -1
- package/packages/core/src/ports/forge/github-squash-message.ts +89 -0
- package/packages/core/src/ports/forge/github-transport.ts +186 -1
- package/packages/core/src/ports/forge/github.ts +846 -239
- package/packages/core/src/ports/forge/readiness.ts +15 -3
- package/packages/core/src/ports/forge-failure.ts +22 -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.ts +1071 -0
- package/packages/core/src/ports/runner/claude.ts +6 -1
- 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 +4 -2
- package/packages/core/src/ports/tickets/github.ts +20 -5
- package/packages/core/src/ports/tickets/hosted-index.ts +6 -1
- package/packages/core/src/ports/tickets/labels.ts +21 -0
- package/packages/core/src/ports/tickets/linear.ts +33 -0
- package/packages/core/src/ports/tickets/migration.ts +2 -0
- package/packages/core/src/ports/tickets/priority.ts +11 -0
- package/packages/core/src/ports/tickets/remote-protocol.ts +71 -6
- package/packages/core/src/ports/tickets/remote.ts +138 -16
- package/packages/core/src/ports/tickets/tree.ts +17 -4
- package/packages/core/src/ports/types.ts +145 -7
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +7 -4
- package/packages/core/src/ports/workspace/commit-preservation.ts +182 -64
- package/packages/core/src/ports/workspace/create.ts +3 -0
- package/packages/core/src/ports/workspace/git-worktree.ts +13 -1
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +242 -61
- package/packages/core/src/processes/build-execution-state.ts +5 -6
- package/packages/core/src/processes/build-runner.ts +1435 -132
- 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 +2874 -266
- package/packages/core/src/processes/execution-no-progress.ts +38 -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/hook-command.ts +125 -0
- package/packages/core/src/processes/hook-webhook.ts +144 -0
- package/packages/core/src/processes/hooks.ts +740 -0
- 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-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 +1 -0
- package/packages/core/src/processes/publication-state.ts +1 -4
- package/packages/core/src/processes/repo-view.ts +77 -5
- package/packages/core/src/processes/sandbox-state.ts +1 -4
- package/packages/core/src/processes/tick-state.ts +1 -3
- package/packages/core/src/processes/workspace-preservation.ts +67 -9
- package/packages/core/src/scenarios/harness.ts +19 -8
- package/packages/core/src/store/contract.ts +72 -0
- package/packages/core/src/store/digest.ts +89 -7
- package/packages/core/src/store/judge-authority.ts +161 -0
- package/packages/core/src/store/phase-session.ts +226 -4
- package/packages/core/src/store/reduced-reads.ts +10 -0
- package/packages/core/src/store/reducer-value-shapes.json +17254 -11861
- package/packages/core/src/store/remote/client.ts +12 -2
- package/packages/core/src/store/remote/credentials.ts +31 -1
- package/packages/core/src/store/remote/index.ts +8 -0
- package/packages/core/src/store/remote/protocol.ts +38 -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.9.0.json +29475 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -14
- package/packages/core/src/store/remote/token.ts +13 -4
- package/packages/core/src/store/repo-state-events.ts +9 -8
- package/packages/core/src/store/retention.ts +16 -2
- package/packages/core/src/store/session-reducer.ts +1 -4
- package/packages/core/src/store/ticket-assets.ts +1 -3
- package/packages/core/src/store/types.ts +9 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +70 -0
- package/packages/core/src/testing/git-config-isolation.ts +25 -0
- package/packages/core/src/testing/index.ts +14 -0
- package/packages/core/src/testing/reduced-read-budget.ts +3950 -54
- package/skills/code-review/SKILL.md +16 -0
- package/skills/finalize/SKILL.md +10 -4
- package/skills/guide/SKILL.md +464 -83
- package/skills/guide/references/integration-tree.md +102 -11
- package/skills/guide/references/merge-policy.md +70 -14
- package/skills/guide/references/migration-1.0.md +2 -1
- package/skills/guide/references/operator-api.md +128 -16
- package/skills/guide/references/optimization-nodes.md +1042 -0
- package/skills/guide/references/plugin-authoring.md +50 -13
- package/skills/guide/references/remote-store-protocol.md +46 -7
- package/skills/guide/references/remote-ticket-protocol.md +50 -2
- package/skills/guide/references/restacking.md +102 -10
- package/skills/guide/references/setup.md +16 -3
- package/skills/guide/references/spec-standard.md +2 -1
- package/skills/guide/references/ticket-dependencies.md +5 -0
- package/skills/guide/references/ticket-migration.md +4 -2
- package/skills/implement/SKILL.md +51 -1
- package/skills/judge/SKILL.md +43 -0
- package/skills/operate/SKILL.md +267 -32
- package/skills/plan/SKILL.md +18 -0
- package/skills/plan-review/SKILL.md +15 -1
- package/skills/propose/SKILL.md +121 -0
- package/skills/reconcile/SKILL.md +21 -2
- package/skills/spec/SKILL.md +30 -4
- package/skills/tickets/SKILL.md +44 -5
- package/templates/hosted-service/package.json +2 -2
|
@@ -140,6 +140,10 @@ credentials stay on the host and are applied by provider-scoped egress header
|
|
|
140
140
|
transforms.
|
|
141
141
|
See [origin-mode setup](setup.md#running-the-dispatcher-without-a-checkout-origin-mode) and [Workspaces](workspaces.md).
|
|
142
142
|
|
|
143
|
+
Configured hooks on the hosted dispatcher deployment must be URL hooks: it
|
|
144
|
+
rejects command hooks, and delivers URL hooks once their `secretEnv` variable is
|
|
145
|
+
set in its environment. See [`[hooks]`](configuration.md#hooks).
|
|
146
|
+
|
|
143
147
|
Integration nodes need Git on the dispatcher host even in origin mode: the
|
|
144
148
|
kernel bare-clones the origin to snapshot, restack, check presence and land.
|
|
145
149
|
The hosted dispatcher deployment ships its own self-contained `linux-x64` Git
|
package/docs/dispatcher.md
CHANGED
|
@@ -44,13 +44,27 @@ run `ab dispatch`, including `--viewer`.
|
|
|
44
44
|
|
|
45
45
|
A ticket is claimed when it passes every gate:
|
|
46
46
|
|
|
47
|
-
- **Ready state.** The configured workflow state, required labels and source filters.
|
|
47
|
+
- **Ready state.** The configured workflow state, plus, for ordinary intake, the required labels and source-specific listing filters such as the ready assignee.
|
|
48
48
|
- **Blockers.** Every dependency is done.
|
|
49
49
|
- **Destination.** Its target (`main` or an integration node) accepts new work.
|
|
50
50
|
|
|
51
|
-
Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
|
|
51
|
+
Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. With `[policy].maxOpenPrs` set, open-PR backpressure pauses new normal-priority claims while that many root PRs are open and unmerged, until the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are equal); urgent claims and in-flight work continue. See [`[policy]`](configuration.md#policy). See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
To start one ticket without turning intake on for the whole ready queue, run `ab start <ticket-id> [--priority manual|urgent|normal]` (or the `tickets.start` operator tool). The running dispatcher, local or hosted, claims just that ticket on its next tick with a free slot in the request's tier and records the outcome as a `ticket.start-settled` event shown by `ab watch` and `ab repository status`. The default `manual` tier goes ahead of all waiting work; `urgent` and `normal` wait their turn as described below. The ticket must still be in the ready state, meet the spec standard, have no unresolved blockers and a destination that accepts work, and is deduplicated against existing builds; capacity and repository pause still apply. Listing labels and the ready assignee are not applied, because the ticket is named. Every tier bypasses intake off and open-PR backpressure for that ticket only. See `ab help start`.
|
|
54
|
+
|
|
55
|
+
Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps the builds running work: a work build holds a slot until it finishes its pipeline (verification and finalize), even while paused or blocked on a question. Once it waits for a merge decision it holds none; if its target moves or its PR conflicts, it waits for a slot ahead of normal ticket claims to restack, re-verify or reconcile. A work build waiting on other tickets (`ab wait-on`) also holds none, and when the wait ends it waits for a slot ahead of normal ticket claims to resume. Finished and waiting builds keep their workspaces, so retained workspaces can exceed `capacity` while running work cannot. An integration node holds a slot only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
|
|
56
|
+
|
|
57
|
+
## Slot admission order
|
|
58
|
+
|
|
59
|
+
A free slot goes, in order, to:
|
|
60
|
+
|
|
61
|
+
1. `manual` start requests (`ab start`'s default);
|
|
62
|
+
2. urgent parked work: nodes and finished or waiting builds that must verify, reconcile, resume or propose;
|
|
63
|
+
3. urgent ticket claims: `ab start --priority urgent` requests, then urgent ready tickets;
|
|
64
|
+
4. normal parked work;
|
|
65
|
+
5. normal ticket claims: `ab start --priority normal` requests, then normal ready tickets.
|
|
66
|
+
|
|
67
|
+
Each tier keeps its usual order, start requests oldest first. A pending start request reserves its slot ahead of the tiers below it until it settles or is cancelled. A build takes its ticket's priority when it is claimed; a build started by an `urgent` request is urgent, and `manual` never becomes a build priority. `ab priority <slug> urgent|normal` (or the `builds.control` action `priority`) changes an active build's priority, for example to expedite a waiting reconcile that now blocks other work; it never changes the ticket. While urgent tickets are ready, normal parked work waits for a slot until the dispatcher has offered urgent tickets the free slots that tick. An urgent ticket blocked on a dependency reserves nothing. Priority orders free slots only: it never interrupts a running build. `ab repository status`, `ab builds` and both dashboards mark urgent waiters, pending start requests by tier and urgent ticket claims waiting ahead of normal parked work.
|
|
54
68
|
|
|
55
69
|
|
|
56
70
|
## The log is the source of truth
|
package/docs/forges.md
CHANGED
|
@@ -107,7 +107,7 @@ An adapter must provide:
|
|
|
107
107
|
- guarded merge and comments
|
|
108
108
|
- every capability it advertises
|
|
109
109
|
|
|
110
|
-
Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
|
|
110
|
+
Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Archives are best effort: throw a plain error for a refusal (the kernel keeps a BuildStore copy instead) and `ArchiveConflictError` when the immutable ref names a different SHA. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
|
|
111
111
|
|
|
112
112
|
Classify failures with `ForgeFailure` (API 1.8):
|
|
113
113
|
|
package/docs/getting-started.md
CHANGED
|
@@ -11,7 +11,7 @@ order: 1
|
|
|
11
11
|
Start in the repository you want Autobuild to build. You need:
|
|
12
12
|
|
|
13
13
|
- [Bun](https://bun.sh) and git
|
|
14
|
-
- your agent runtime's local prerequisites: Claude Code, Codex CLI, or
|
|
14
|
+
- your agent runtime's local prerequisites: Claude Code, Codex CLI, Pi, or Antigravity CLI
|
|
15
15
|
- for the GitHub forge, an authenticated [gh CLI](https://cli.github.com) or an exported `GITHUB_TOKEN` or `GH_TOKEN`; the local-git forge needs no account or remote
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,13 +33,15 @@ Leaves run the [normal build pipeline](builds.md). A node collects, verifies, me
|
|
|
33
33
|
- **Repair** a failed node check with a child ticket targeting the node.
|
|
34
34
|
- **Merge** closes admission; a node isn't a perpetual staging branch.
|
|
35
35
|
|
|
36
|
+
A node whose spec declares an objective is an [optimization node](optimization-nodes.md): it proposes, measures and lands its own attempts toward a metric or a judge panel, then waits for you to land it.
|
|
37
|
+
|
|
36
38
|
|
|
37
39
|
## One identity per leaf change
|
|
38
40
|
|
|
39
41
|
A leaf contributes one canonical net change, however many commits it took.
|
|
40
42
|
|
|
41
|
-
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash merges keep it; node integration keeps each contributing identity, in order, rather than one node commit.
|
|
42
|
-
- **Restacks.** When a destination moves, a leaf restacks onto it at its usual restack points; a node restacks only on demand, and each descendant node needs its own demand. Clean replay is automatic
|
|
43
|
+
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash merges keep it; node integration keeps each contributing identity, in order, alongside the node's verified hand-pushed tweaks, rather than one node commit.
|
|
44
|
+
- **Restacks.** When a destination moves, a leaf restacks onto it at its usual restack points; a node restacks only on demand, and each descendant node needs its own demand. Clean replay is automatic, and so is a conflict confined to files the repository declares as generated, which their declared command rebuilds. Any other conflict attaches a reconcile runner with the source change's context, then verification as required.
|
|
43
45
|
- **Reverification.** Node verification covers the exact node head and parent; a change to either voids merge eligibility until reverified, even after a clean restack. A cleanly restacked waiting leaf can keep its prior verification; reports cite their actual head and base.
|
|
44
46
|
|
|
45
47
|
|
package/docs/integration-tree.md
CHANGED
|
@@ -98,12 +98,13 @@ execution lease or dispatch capacity. A PR opens or is adopted when the node
|
|
|
98
98
|
has commits its current parent lacks; parent-only advancement remains empty.
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
A node requesting reconcile
|
|
102
|
-
claims. The request is durable: a
|
|
103
|
-
|
|
101
|
+
A node requesting reconcile, verification or, for an optimization node,
|
|
102
|
+
propose is admitted before normal ticket claims; urgent work goes first. The request is durable: a
|
|
103
|
+
prepared verification cycle, a restack conflict or an open proposal request,
|
|
104
|
+
with no runner yet. Until the node holds its slot, intake reserves one
|
|
104
105
|
slot for it, and the dispatcher checks its admission every tick regardless of
|
|
105
106
|
idle node polling, so a slot freed in any tick goes to the node, not to a new
|
|
106
|
-
claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
|
|
107
|
+
normal claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
|
|
107
108
|
paused descendants, following accepted source-qualified build target ancestry.
|
|
108
109
|
Running descendants and unrelated builds still count; ordinary blocked and
|
|
109
110
|
paused work retains its slot for every other admission, except a work build
|
|
@@ -112,7 +113,7 @@ node occupancy before the runner starts. This exception never raises the budget
|
|
|
112
113
|
for new claims. Status and both dashboards report actual occupancy, configured
|
|
113
114
|
capacity, effective display capacity and the nodes using descendant-held slots.
|
|
114
115
|
Status, `ab builds` and both dashboards report each node waiting for a slot
|
|
115
|
-
ahead of
|
|
116
|
+
ahead of normal ticket claims, marking urgent ones. Idle collecting nodes remain free.
|
|
116
117
|
|
|
117
118
|
Claims freeze the destination build generation and branch. Missing, unopened,
|
|
118
119
|
merged, closed or aborted targets leave work queued with diagnostics. The newest
|
|
@@ -179,11 +180,93 @@ own issue; landed child commits keep their own messages.
|
|
|
179
180
|
|
|
180
181
|
Human forge merges are an explicit escape hatch, including while incomplete,
|
|
181
182
|
paused or unverified. The janitor records human provenance and whether the actual
|
|
182
|
-
merged head was verified, then completes the ticket.
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
merged head was verified, then completes the ticket. A recorded landing, by the
|
|
184
|
+
kernel or a human, ends the node's verification: no new cycle is prepared, and
|
|
185
|
+
an open one is cancelled. Its runner stops the running check and ends open
|
|
186
|
+
sessions as an operator stop does, without recording results, and the janitor
|
|
187
|
+
completes the node once that execution has ended. A node whose head is its
|
|
188
|
+
parent's, such as one the parent was fast-forwarded onto, has nothing to verify
|
|
189
|
+
and never prepares a cycle. A human merge of an
|
|
190
|
+
optimization attempt also skips its landing measurement; when the merged head
|
|
191
|
+
was never measured, the attempt stays in flight and keeps its concurrency slot
|
|
192
|
+
until an operator settles it with `ab objective <node> --settle-unmeasured`
|
|
193
|
+
(see [landing and settlement](optimization-nodes.md#landing-and-settlement)).
|
|
194
|
+
Closing without merge or aborting closes admission and returns the ticket to
|
|
195
|
+
triage (or ready with `ab abort --to ready`), except that an optimization
|
|
196
|
+
attempt settles `aborted` and its ticket moves to rejected; already claimed
|
|
185
197
|
children retain their frozen destination.
|
|
186
198
|
|
|
199
|
+
### Optimization nodes
|
|
200
|
+
|
|
201
|
+
A node becomes an optimization node when its spec carries exactly one fenced
|
|
202
|
+
block whose info string is exactly `autobuild-objective`, holding a TOML
|
|
203
|
+
objective: a purpose, a command metric with a direction or a judge panel, a
|
|
204
|
+
harness of path selectors, an epsilon, and a budget of `maxAttempts`,
|
|
205
|
+
`maxHours` or both. A threshold and a plateau are optional; the stop mode
|
|
206
|
+
defaults to `abort` and proposer concurrency to 1. The ticket's kind stays
|
|
207
|
+
`node`; no label or state marks it. A heading named "Objective", a `toml` block,
|
|
208
|
+
prose, inline code, a fence nested inside another fence (a Markdown example of
|
|
209
|
+
the block) and a block inside an HTML comment do not count. See
|
|
210
|
+
[optimization nodes](optimization-nodes.md) for when to use one, a run end to
|
|
211
|
+
end, grooming guidance, a valid example, the complete schema and the scanning
|
|
212
|
+
rules.
|
|
213
|
+
|
|
214
|
+
The dispatcher checks the block when it prepares a claimed ticket, before spec
|
|
215
|
+
authoring. Two or more blocks, an invalid block, a missing budget limit, a
|
|
216
|
+
ticket source without `[tickets].rejectedState`
|
|
217
|
+
or a work ticket carrying the block refuse the ticket: it returns to triage
|
|
218
|
+
with a comment naming every reason, and no build is created. A refused node
|
|
219
|
+
never opens as a plain node. Fix the block, or file the ticket with
|
|
220
|
+
`--kind node`, and move it to ready again. An accepted node records its
|
|
221
|
+
objective, pins its harness at the opening commit, and measures its starting
|
|
222
|
+
value and noise.
|
|
223
|
+
|
|
224
|
+
`ab ticket tree` labels an optimization node `[node, optimization]`, and status
|
|
225
|
+
labels its build `optimization node`. The dashboards, status and watch show its
|
|
226
|
+
[objective row](optimization-nodes.md#where-progress-appears). `ab objective
|
|
227
|
+
<node>` shows the effective objective and its full progress, and its flags
|
|
228
|
+
revise the stopping, budget and epsilon knobs; see [quick revision](optimization-nodes.md#revisions). A quick
|
|
229
|
+
revision is never written back to the ticket, so `ab ticket show` prints the
|
|
230
|
+
effective objective and marks each field that differs from the ticket's block
|
|
231
|
+
`(revised)`, or every field when the ticket's block was removed or made invalid.
|
|
232
|
+
|
|
233
|
+
Progress is derived from the node's log: starting value and noise spread,
|
|
234
|
+
current and best values, attempts filed, accepted, rejected and running, the
|
|
235
|
+
plateau counter, elapsed hours and attempts against the budget, and stop
|
|
236
|
+
eligibility by threshold, plateau and budget. A child is an attempt only when
|
|
237
|
+
its ticket was created from a recorded proposal of the node; a repair child
|
|
238
|
+
filed by hand counts toward neither budget nor plateau. Rejected attempts are
|
|
239
|
+
no-improvement, declined, stopped and aborted settlements; only no-improvement
|
|
240
|
+
and declined advance the plateau. See
|
|
241
|
+
[progress](optimization-nodes.md#progress) for the full definitions.
|
|
242
|
+
|
|
243
|
+
A child of an optimization node lands only with a measurement of its exact head
|
|
244
|
+
against the node's exact current head: an attempt must improve by at least ε,
|
|
245
|
+
and any other child must not regress by more than ε. A sibling landing first
|
|
246
|
+
makes the measurement stale, and the child restacks and is measured again. An
|
|
247
|
+
attempt that does not land settles and its ticket moves to the rejected role,
|
|
248
|
+
including after an operator abort; it never returns to triage. See
|
|
249
|
+
[landing and settlement](optimization-nodes.md#landing-and-settlement).
|
|
250
|
+
An optimization node follows `branch opening → starting measurement →
|
|
251
|
+
(propose → collecting)*`, then completes, verifies and merges like any node.
|
|
252
|
+
Once the starting value is measured, the dispatcher requests a `propose`
|
|
253
|
+
session whenever the node has room within its concurrency and attempts budget.
|
|
254
|
+
The request takes a slot ahead of normal ticket claims, like node reconcile and
|
|
255
|
+
verification. The session runs the `ab-propose` skill on the node head, reads
|
|
256
|
+
the attempt ledger and deposits proposals with `ab propose`; it never creates
|
|
257
|
+
tickets. The dispatcher files each proposal as a work ticket targeting the
|
|
258
|
+
node, in the ready role, deduplicated by proposal id. Two consecutive empty
|
|
259
|
+
proposals stop the node as `exhausted`. See the
|
|
260
|
+
[proposer phase](optimization-nodes.md#proposer-phase).
|
|
261
|
+
|
|
262
|
+
The dispatcher stops an optimization node on the first tick a threshold,
|
|
263
|
+
plateau or budget cause is eligible; `ab objective <node> --stop` stops it by
|
|
264
|
+
hand. A stopped node cancels or aborts its in-flight attempts according to its
|
|
265
|
+
stop mode. An optimization node is complete only once it has stopped and no
|
|
266
|
+
attempt is running or waiting to land; stopping is not consent, so land it with
|
|
267
|
+
`ab merge <node>`. See
|
|
268
|
+
[stopping and completion](optimization-nodes.md#stopping-and-completion).
|
|
269
|
+
|
|
187
270
|
### Node verification context
|
|
188
271
|
|
|
189
272
|
In node `verify:*` context, `nodeVerification` in the manifest identifies the
|
|
@@ -252,8 +335,12 @@ An open node supports three ways to iterate:
|
|
|
252
335
|
- **Push small maintainer-authorized tweaks.** Push to the node's recorded branch
|
|
253
336
|
with meaningful commit messages describing intent. Verification reads the frozen
|
|
254
337
|
range's owned `handPushedCommits` messages, judges quality and consistency, and
|
|
255
|
-
cannot fail a tweak solely because it lacks a covering spec.
|
|
256
|
-
|
|
338
|
+
cannot fail a tweak solely because it lacks a covering spec. Tweaks need no
|
|
339
|
+
`Autobuild-Build:` trailer and land with the node exactly as pushed. Keep the
|
|
340
|
+
node branch linear: rebase rather than merge, because landing refuses a merge
|
|
341
|
+
commit or broken ancestry and raises operator attention naming the commit. This
|
|
342
|
+
is maintainer iteration, not permission for phase agents to bypass their
|
|
343
|
+
publication boundary.
|
|
257
344
|
- **Revise the charter when the charter itself changes.** Use
|
|
258
345
|
`ab answer <node> --revise-spec replacement.md`, or update the ticket and import
|
|
259
346
|
it with `ab answer <node> --revise-spec-from-ticket`. A ticket edit alone does
|
|
@@ -362,7 +449,11 @@ pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
|
362
449
|
A concurrent state change refuses publication with a retry explanation;
|
|
363
450
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
364
451
|
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
365
|
-
spec and its publication is confirmed.
|
|
452
|
+
spec and its publication is confirmed. A settled, unmerged leaf awaiting merge
|
|
453
|
+
revises without an escalation through `ab reopen`.
|
|
454
|
+
A revision of an optimization node may change its `autobuild-objective` block
|
|
455
|
+
but cannot remove it, and a revision of a plain node or a leaf cannot add one;
|
|
456
|
+
both refusals record nothing.
|
|
366
457
|
|
|
367
458
|
|
|
368
459
|
|
package/docs/merge-policy.md
CHANGED
|
@@ -53,15 +53,20 @@ is cancelled before the new head is published. Policy is live dispatcher
|
|
|
53
53
|
configuration, separate from the pinned execution pipeline.
|
|
54
54
|
|
|
55
55
|
`ab hold <slug>` suppresses merge and revokes consent, even before readiness.
|
|
56
|
+
`--reason <text>` records why; status, merges, builds and both dashboards show it
|
|
57
|
+
until a later hold or merge replaces it.
|
|
56
58
|
`ab merge <slug>` requires readiness, clears hold and consents to this merge
|
|
57
59
|
into its destination. Consent survives head replacement, clean restacking,
|
|
58
60
|
verification and re-finalization until hold or completion; it approves the merge
|
|
59
61
|
rather than an immutable diff. Consent given under a rule with `paths` or
|
|
60
|
-
`within` predicates is revoked when a reconcile's own edits
|
|
61
|
-
|
|
62
|
+
`within` predicates is revoked when a reconcile's own edits, or a leaf
|
|
63
|
+
restack's [generated-file regeneration](restacking.md#generated-file-conflicts),
|
|
64
|
+
touch a file those predicates match (the recorded resolution, not upstream-only
|
|
65
|
+
changes): `landing.consent-revoked`
|
|
62
66
|
raises default attention naming the files and both heads, and the build returns
|
|
63
|
-
to the consent queue for its new head. Accepted node reparenting
|
|
64
|
-
consent
|
|
67
|
+
to the consent queue for its new head. Accepted node reparenting and
|
|
68
|
+
reopening a finished leaf (`ab reopen`) also revoke consent; a reopen keeps a
|
|
69
|
+
hold.
|
|
65
70
|
`ab merge <slug> --head <sha>` binds consent to the head the reviewer saw: it
|
|
66
71
|
refuses with `head-mismatch`, recording nothing, unless `<sha>` (full or at
|
|
67
72
|
least seven characters) is the current candidate head. Build status and the
|
|
@@ -175,16 +180,46 @@ file revokes it, and the new head needs fresh consent.
|
|
|
175
180
|
|
|
176
181
|
Root-target leaves squash into one identity-bearing commit per build.
|
|
177
182
|
Node-target children use serialized, exact-parent guarded fast-forwards;
|
|
178
|
-
node-to-local-git-root merge also fast-forwards, preserving
|
|
183
|
+
node-to-local-git-root merge also fast-forwards, preserving each contribution and
|
|
184
|
+
verified hand-pushed commit. A node stack that is non-linear, repeats or combines
|
|
185
|
+
identities, or holds a commit the node does not own is refused once with operator
|
|
186
|
+
attention naming the commit, not retried.
|
|
179
187
|
Node-to-GitHub-root merge uses PR rebase merge guarded on verified head after
|
|
180
188
|
a final parent freshness read. Enforced up-to-date protection provides a fenced
|
|
181
189
|
merge; uncertainty is recorded as unfenced and requires immutable merged-tree
|
|
182
190
|
audit. A mismatch raises operator attention without rewriting the shared parent.
|
|
183
191
|
Pending audits survive completion and retry until settled.
|
|
184
192
|
|
|
185
|
-
Root
|
|
186
|
-
|
|
187
|
-
|
|
193
|
+
Root leaves land by one of three routes. Behind a real merge-blocking gate,
|
|
194
|
+
Autobuild arms GitHub-native auto-merge. An authoritatively ungated root
|
|
195
|
+
permits an inspected-head guarded direct squash; unknown gate state defers.
|
|
196
|
+
When GitHub GraphQL is unavailable to the dispatcher, as from Claude Code on
|
|
197
|
+
the web, whose GitHub proxy refuses GraphQL, native auto-merge cannot be
|
|
198
|
+
armed, so a gated root leaf lands by polling. On each dispatcher tick
|
|
199
|
+
Autobuild checks whether GitHub reports the PR clear to merge (`clean`,
|
|
200
|
+
`unstable` or `has_hooks`, and mergeable) at the verified head. It then reads
|
|
201
|
+
that state again, rechecks consent, and squashes guarded on that head. It
|
|
202
|
+
never relies on GitHub refusing a premature merge, so a credential that could
|
|
203
|
+
bypass branch protection never merges a blocked PR. Rows show
|
|
204
|
+
`merge polling`. Polling lands only while a dispatcher runs, so native
|
|
205
|
+
auto-merge stays the route wherever GraphQL works: it lands even after the
|
|
206
|
+
dispatcher stops.
|
|
207
|
+
|
|
208
|
+
A polling landing settles once into awaiting a human merge, shown as
|
|
209
|
+
`merge awaits a human merge`, and Autobuild makes no further landing attempt
|
|
210
|
+
for that candidate when either holds: GitHub exposes a merge queue for the
|
|
211
|
+
base over REST (a ruleset merge-queue rule, or merge-queue merges GitHub
|
|
212
|
+
reports for the base branch), or GitHub refuses the guarded squash of a PR it
|
|
213
|
+
had just reported clear, in which case its refusal message is shown. A squash
|
|
214
|
+
request cannot enter a merge queue. A human merges the PR on GitHub, and
|
|
215
|
+
Autobuild records that like any human forge merge. A classic
|
|
216
|
+
branch-protection merge queue that GitHub does not expose over REST and has
|
|
217
|
+
never recorded a merge-queue merge cannot be detected. A PR GitHub keeps
|
|
218
|
+
reporting blocked there stays `merge polling` and never merges. In
|
|
219
|
+
GraphQL-blocked environments, use a ruleset merge queue or merge such PRs by
|
|
220
|
+
hand.
|
|
221
|
+
|
|
222
|
+
Node targets instead require authoritative proof of
|
|
188
223
|
an ungated destination, cancel native auto-merge and serialize the guarded push.
|
|
189
224
|
Gated or unproven node destinations stay open with actionable diagnostics.
|
|
190
225
|
A push alone is not evidence of merge: a node-target merge is recorded only
|
|
@@ -198,7 +233,16 @@ replacement confirms cancellation first; the next poll reconciles native state
|
|
|
198
233
|
before other actions. Stale enables are repaired by polling. An
|
|
199
234
|
already-enabled native request counts as applied only after the forge confirms
|
|
200
235
|
its squash method and identity message. Each eligible poll re-reads an armed
|
|
201
|
-
request and repairs it when PR edits or a human arm left it stale.
|
|
236
|
+
request and repairs it when PR edits or a human arm left it stale. On GitHub
|
|
237
|
+
the expected headline and body come from the PR and the repository's squash
|
|
238
|
+
title and message settings, with the build trailer and issue-link handling on
|
|
239
|
+
top. Landing reads use REST; GraphQL only arms or disarms native auto-merge,
|
|
240
|
+
after one read-only availability probe per dispatcher process. A GraphQL
|
|
241
|
+
refusal is remembered for 30 minutes, so a blocked environment sends at most
|
|
242
|
+
one GraphQL request per process in that window, and none on a quiet polling
|
|
243
|
+
tick. Quiet polls do not re-check merge queues; native enable, repair and
|
|
244
|
+
direct merge do, and the polling route checks merge-queue activity when it
|
|
245
|
+
first selects polling and again whenever GitHub reports the PR clear. This bounded
|
|
202
246
|
model requires replacement-head checks to take far longer than a poll interval. It
|
|
203
247
|
has no durable native-effect reservation. Human forge merges record whether a
|
|
204
248
|
hold was overridden; possible stale-enable merges raise operator attention.
|
|
@@ -206,11 +250,23 @@ No result is undone by rewriting the target.
|
|
|
206
250
|
|
|
207
251
|
## Forge requirements
|
|
208
252
|
|
|
209
|
-
The kernel
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
253
|
+
The kernel replaces branches with an exact expected-old-head guard and retains
|
|
254
|
+
displaced history under immutable exact archive refs
|
|
255
|
+
`refs/autobuild/archive/<slug>/<sha>`:
|
|
256
|
+
|
|
257
|
+
- **Leaf restacks and reconciles, node restacks and landings, integration
|
|
258
|
+
landing and the node verify head** use archive refs where the forge accepts
|
|
259
|
+
them. Where it refuses, they keep a BuildStore copy (`history-objects-<sha>`),
|
|
260
|
+
or record one `history-unretained` warning and proceed.
|
|
261
|
+
- **Workspace preservation** keeps unpublished workspace commits under archive
|
|
262
|
+
refs, else as BuildStore copies. When neither holds them, release is refused.
|
|
263
|
+
- There is never a branch or tag fallback. When an environment refuses non-branch
|
|
264
|
+
Git pushes, as Claude Code on the web's GitHub proxy does, the GitHub adapter
|
|
265
|
+
creates the same archive ref through REST ref creation and confirms it by exact
|
|
266
|
+
readback. Commits that exist only in the local workspace cannot use that path.
|
|
267
|
+
|
|
268
|
+
Archive refs and store copies are retained indefinitely pending a retention
|
|
269
|
+
policy. See [restacking](restacking.md).
|
|
214
270
|
|
|
215
271
|
Tree admission requires node branch creation, authoritative branch-head reads
|
|
216
272
|
and comparison. Reparenting additionally requires PR retargeting. Controlled
|
package/docs/migration-1.0.md
CHANGED
|
@@ -61,7 +61,8 @@ predicates revokes it.
|
|
|
61
61
|
|
|
62
62
|
The old ban protected event-recorded SHAs and avoided resolving the same conflict
|
|
63
63
|
for every WIP commit. The new standard replays one net leaf change or ordered
|
|
64
|
-
node contributions, retains displaced history through immutable archive refs
|
|
64
|
+
node contributions, retains displaced history through immutable archive refs
|
|
65
|
+
(best effort, with a BuildStore copy where the forge refuses them) and
|
|
65
66
|
durable rewrite facts, and resolves each conflicted item once. Ordinary agent
|
|
66
67
|
rebase of WIP history is still inappropriate. Agents resolve kernel-prepared
|
|
67
68
|
replay; the kernel owns branch replacement with expected-head guards.
|
package/docs/operating.md
CHANGED
|
@@ -74,9 +74,10 @@ sequence positions behind its head. If a cursor is too old, re-arm without
|
|
|
74
74
|
recover the unavailable historical gap; status reconciliation does not restore
|
|
75
75
|
one-off events from that gap.
|
|
76
76
|
|
|
77
|
-
- **Default filter:** actionable attention only, such as escalations and ready merges awaiting consent. Add `--event` globs for routine lifecycle events. Ticket waits beginning and ending are routine: follow them with `--event 'wait.*' --event escalation.answered`. A `wait-unresolvable` escalation, raised when a waited ticket is rejected or deleted, is ordinary attention.
|
|
77
|
+
- **Default filter:** actionable attention only, such as escalations and ready merges awaiting consent. Add `--event` globs for routine lifecycle events. Ticket waits beginning and ending are routine: follow them with `--event 'wait.*' --event escalation.answered`. A build waiting only on tickets is not attention for `watch` or `wait --for attention`; `ab builds` shows it as waiting. A `wait-unresolvable` escalation, raised when a waited ticket is rejected or deleted, is ordinary attention.
|
|
78
78
|
- **Starts now:** a fresh watch ignores history, so check current status too.
|
|
79
79
|
- **Resumable:** pass the opaque cursor from the JSON output back with `--since` to receive events recorded while away within the hosted window described above. The final JSON line always carries one.
|
|
80
|
+
- **Identified:** every JSON record carries an `id` that stays the same when the record is seen again after a resume, so consumers can deduplicate by it.
|
|
80
81
|
- **Duration:** 30 minutes by default; `--timeout 0` keeps it open.
|
|
81
82
|
|
|
82
83
|
```
|
|
@@ -93,6 +94,26 @@ bun ab wait my-build --for attention --json --timeout 5m
|
|
|
93
94
|
|
|
94
95
|
Existing attention returns immediately, even with a cursor, so looping `wait` doesn't consume events. Use `watch --since` for that. Hosted `wait --since` uses the same inclusive 1,000-position resume window and too-old recovery described above: re-arm without `--since`, reconcile repository and build status, and account for the unavailable historical gap.
|
|
95
96
|
|
|
97
|
+
### React to attention with a hook
|
|
98
|
+
|
|
99
|
+
Tooling that should react to attention, such as a notifier, does not need its
|
|
100
|
+
own long-running `ab watch`. Declare a hook and the dispatcher delivers each
|
|
101
|
+
matching record to it, one JSON line on stdin per invocation, at least once and
|
|
102
|
+
in order:
|
|
103
|
+
|
|
104
|
+
```toml
|
|
105
|
+
[hooks.notify]
|
|
106
|
+
command = "jq -r '.id + \" \" + (.event.type // .observation.type)' >> attention.log"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
A hook can instead target an HTTPS URL, which receives each record as a signed
|
|
110
|
+
JSON `POST` and also works from a hosted dispatcher.
|
|
111
|
+
|
|
112
|
+
A hook complements your operator's standing watch; it does not replace it.
|
|
113
|
+
Failing hooks surface as `hook.failing` attention, and `bun ab repository status`
|
|
114
|
+
shows each hook's progress. See [`[hooks]`](configuration.md#hooks) for filters,
|
|
115
|
+
the record format, webhook signing and the delivery guarantee.
|
|
116
|
+
|
|
96
117
|
## Answer and pause
|
|
97
118
|
|
|
98
119
|
```
|
|
@@ -113,19 +134,47 @@ bun ab resume my-build
|
|
|
113
134
|
|
|
114
135
|
Intake off only stops new ticket claims; a repository pause also holds queued builds. Neither withdraws merge consent; use `hold`.
|
|
115
136
|
|
|
137
|
+
```
|
|
138
|
+
bun ab priority my-build urgent
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
- **`priority`** sets an active build's slot-admission priority to `urgent` or `normal` without touching its ticket. An urgent build waiting to re-verify, reconcile or resume takes the next free slot ahead of normal work; see [slot admission order](dispatcher.md#slot-admission-order). It never interrupts running work.
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
bun ab start AUT-12
|
|
145
|
+
bun ab start AUT-13 --priority urgent
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
- **`start`** asks the running dispatcher to claim one ticket on its next tick with a free slot, even while intake is off or open-PR backpressure is engaged, and nothing else. By default (`--priority manual`) the request goes ahead of all waiting work; `--priority urgent` waits for urgent parked work and makes the build urgent, and `--priority normal` waits for normal parked work and urgent claims. Repeating the command with another priority updates the pending request. The ticket must still be ready, meet the spec standard and have no unresolved blockers; a request that cannot start settles once with its reason. `ab watch` reports the outcome and `ab repository status` lists pending requests with their priority. `--cancel` withdraws a pending request.
|
|
149
|
+
|
|
116
150
|
## Authorize merge
|
|
117
151
|
|
|
118
152
|
Ordered merge rules choose automatic authorization or explicit consent. With no matching rule, leaves default to auto and integration nodes to consent. Verification, checks, protection and merge gates still apply.
|
|
119
153
|
|
|
120
154
|
```
|
|
121
155
|
bun ab merge my-build
|
|
122
|
-
bun ab hold my-build
|
|
156
|
+
bun ab hold my-build --reason "waiting on AUT-12 to merge"
|
|
123
157
|
```
|
|
124
158
|
|
|
125
159
|
- **`merge`** requires a ready build, clears its hold and grants consent to merge into its destination.
|
|
126
|
-
- **`hold`** suppresses merge and revokes consent, even before the build is ready.
|
|
160
|
+
- **`hold`** suppresses merge and revokes consent, even before the build is ready. The optional `--reason` (1–2000 characters after trimming) is shown by `build status`, `builds`, `merges` and both dashboards while that hold stands; a later hold replaces it and `merge` clears it.
|
|
127
161
|
- **Reviewed head:** `merge --head <sha>` records consent only while `<sha>` is the current candidate head; otherwise it refuses with `head-mismatch` and records nothing.
|
|
128
|
-
- **Persistence:** consent survives head changes, clean restacks, verification and re-finalization until a hold or completion. Consent given under a `paths` or `within` rule is revoked, with `landing.consent-revoked` attention, when a reconcile's own edits touch a file the rule protects. Accepted node reparenting also
|
|
162
|
+
- **Persistence:** consent survives head changes, clean restacks, verification and re-finalization until a hold or completion. Consent given under a `paths` or `within` rule is revoked, with `landing.consent-revoked` attention, when a reconcile's own edits, or a leaf restack's generated-file regeneration, touch a file the rule protects. Accepted node reparenting and a reopen also revoke it.
|
|
163
|
+
- **Red forge CI:** when CI fails at a finished leaf's live PR head, the dispatcher records `pr.checks-failed` once per head and failing set. It is default attention, and `build status`, `builds`, `merges` and both dashboards show it until a successful CI read finds no failing checks on that head (checks may still be pending, so clearing does not prove green) or the PR moves to another head. CI the forge won't report (missing permission, rate limit, outage) counts as unknown, never as green or red. Autobuild never re-runs CI or reopens the build itself: inspect the PR, re-run CI on the forge, or send the build back with feedback.
|
|
164
|
+
|
|
165
|
+
## Send a finished build back
|
|
166
|
+
|
|
167
|
+
When review of a finished, unmerged build asks for changes, reopen it instead of aborting it or opening a second PR:
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
bun ab reopen my-build --feedback "rename the flag and update the docs"
|
|
171
|
+
bun ab reopen my-build --revise-spec-from-ticket
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
- **Feedback alone** returns the build to `implement` with the feedback in `reopen.json`; code review, verification and finalize run again and the plan stays approved.
|
|
175
|
+
- **A spec revision** (`--revise-spec <file>`, or `--revise-spec-from-ticket` after amending the ticket, which re-pins its assets) restarts from `plan`, with any feedback alongside.
|
|
176
|
+
- The open PR and branch are kept and updated in place. Consent is revoked at once (a hold stays), and the build waits for a slot like other parked work. An armed native auto-merge is cancelled on a later dispatcher poll, not by `ab reopen` itself; a forge merge that lands first completes the build as merged.
|
|
177
|
+
- Only a leaf waiting for its merge decision can be reopened. Use `answer` for a blocked build; a merged or closed PR needs a new ticket.
|
|
129
178
|
|
|
130
179
|
## Choose an operator surface
|
|
131
180
|
|