@defrex/autobuild 1.9.0 → 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 +1512 -125
- 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 +282 -39
- package/docs/builds.md +5 -0
- package/docs/cli.md +7 -1
- package/docs/configuration-overview.md +1 -0
- package/docs/configuration.md +268 -45
- 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 +30 -14
- package/docs/migration-1.0.md +2 -1
- package/docs/operating.md +32 -4
- package/docs/operator-api.md +117 -14
- package/docs/optimization-nodes.md +1042 -0
- package/docs/overview.md +1 -1
- package/docs/plugin-authoring.md +46 -12
- package/docs/remote-store-protocol.md +46 -7
- package/docs/remote-ticket-protocol.md +50 -2
- package/docs/restacking.md +99 -11
- package/docs/seams.md +2 -2
- package/docs/setup.md +13 -2
- 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 +11 -0
- package/docs/workspaces.md +3 -1
- package/package.json +3 -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 +8 -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 +15 -2
- package/packages/core/src/cli/dashboard/model.ts +102 -27
- package/packages/core/src/cli/dashboard/objective-row.ts +189 -0
- package/packages/core/src/cli/dashboard/render.ts +47 -1
- 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 +16 -4
- package/packages/core/src/cli/env.ts +42 -0
- package/packages/core/src/cli/help.ts +208 -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 +113 -18
- package/packages/core/src/cli/status.ts +193 -15
- 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 +341 -91
- package/packages/core/src/config/create-labels.ts +23 -0
- package/packages/core/src/config/live.ts +2 -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 +112 -9
- package/packages/core/src/events/catalog.ts +39 -3
- package/packages/core/src/events/compatibility.ts +7 -1
- package/packages/core/src/events/payloads.ts +588 -1
- package/packages/core/src/events/policy.ts +53 -0
- package/packages/core/src/events/repository.ts +107 -24
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +1481 -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 +1 -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/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-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 +2 -0
- 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 +23 -2
- 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 +306 -100
- 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 +98 -4
- 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 +1 -3
- 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 +2781 -242
- package/packages/core/src/processes/execution-no-progress.ts +36 -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-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 +44 -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 +17060 -12099
- 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 +11 -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/index.ts +18 -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/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 +13 -0
- package/packages/core/src/testing/reduced-read-budget.ts +3455 -34
- package/skills/code-review/SKILL.md +16 -0
- package/skills/finalize/SKILL.md +10 -4
- package/skills/guide/SKILL.md +383 -77
- 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 +117 -14
- package/skills/guide/references/optimization-nodes.md +1042 -0
- package/skills/guide/references/plugin-authoring.md +46 -12
- 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 +99 -11
- package/skills/guide/references/setup.md +13 -2
- 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 +243 -28
- 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
|
@@ -40,6 +40,10 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
40
40
|
guidance rounds. Read its `verifyReports` paths and `cancelledVerify` entries.
|
|
41
41
|
Cancellation feedback belongs only to that receipt; a later round without a
|
|
42
42
|
receipt carries no cancellation list.
|
|
43
|
+
When the manifest has a `reopen` block, an operator reopened this finished
|
|
44
|
+
build; `$AB_CONTEXT_DIR/reopen.json` carries who reopened it and their
|
|
45
|
+
`feedback` (and `specRev` when they also revised the spec). The existing
|
|
46
|
+
branch and open PR already hold the earlier work; build on them.
|
|
43
47
|
When the manifest lists `assets`, they are the build's pinned ticket assets
|
|
44
48
|
under `$AB_CONTEXT_DIR/assets/<kind>/<name>/`; read them with the spec. A `design` asset
|
|
45
49
|
is a contract on observable visual and reference outcomes, not on implementation — what you build must satisfy it, while how stays yours.
|
|
@@ -69,7 +73,8 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
69
73
|
request; fix the failure and retry in the same session. In a remote workspace it records one publication
|
|
70
74
|
request and parks while the dispatcher publishes and records completion;
|
|
71
75
|
**do not run `ab done` again** after that success message. It is your only
|
|
72
|
-
terminal command besides `ab escalate
|
|
76
|
+
terminal command besides `ab escalate`, `ab wait-on` and, in an optimization
|
|
77
|
+
attempt, `ab done --no-improvement` (below). If it reports a validation error,
|
|
73
78
|
fix what it names and run it again.
|
|
74
79
|
|
|
75
80
|
An empty contribution is refused: when HEAD has no commits over the
|
|
@@ -79,6 +84,43 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
79
84
|
running `ab done`. If you conclude the spec needs no code change, that is a
|
|
80
85
|
question for the operator: run `ab escalate` with the reason instead.
|
|
81
86
|
|
|
87
|
+
## Optimization attempts
|
|
88
|
+
|
|
89
|
+
When the manifest has an `attempt` block, this build is one attempt of an
|
|
90
|
+
optimization node at one strategy, the one the spec gives it. The attempt's
|
|
91
|
+
`objective.md` (the block's `path`) names the purpose, the measurement command
|
|
92
|
+
or judge panel, the harness and the node's current value. Read the purpose
|
|
93
|
+
first: it says why the number matters and what must not change while it moves.
|
|
94
|
+
|
|
95
|
+
- **The goal is a meaningful improvement toward the purpose, not the largest
|
|
96
|
+
number.** A gain the purpose would not recognize is not one.
|
|
97
|
+
- **Regressing behavior is a failure even when the metric improves.** Keep
|
|
98
|
+
every behavior, output and interface the purpose protects, and keep the
|
|
99
|
+
tests that guard them passing.
|
|
100
|
+
- **Changing what the test measures, overfitting to the eval, or
|
|
101
|
+
special-casing the benchmark defeats the point.** The harness is the pinned
|
|
102
|
+
ruler. `ab done` refuses a contribution that changes a harness path, naming
|
|
103
|
+
each path; revert them to the contribution base, commit and retry.
|
|
104
|
+
- **Measure your own work.** Run the measurement command while you work and
|
|
105
|
+
keep what helps. Record your runs in implement notes: baseline and candidate
|
|
106
|
+
values, samples and the tree each ran on. They are your claims; the kernel
|
|
107
|
+
measures again before anything lands, and reviewers read them as claims.
|
|
108
|
+
- **Stay on the strategy you were given.** Another strategy is another
|
|
109
|
+
attempt's job. Do not drift into it, even when it looks promising; record it
|
|
110
|
+
with `ab observe --kind followup` instead.
|
|
111
|
+
- **Declining is a successful outcome.** When the strategy produces no real
|
|
112
|
+
gain, say so instead of shipping a marginal or suspect change:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
ab done --no-improvement "<what you tried and why it did not help>" --notes <notesPath>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
It needs no commits and no clean worktree, publishes nothing, skips review,
|
|
119
|
+
verification and measurement, and ends the build without merging. The
|
|
120
|
+
reason goes to the ledger the proposer reads before choosing the next
|
|
121
|
+
strategy, so a specific reason teaches it something. The flag is refused
|
|
122
|
+
outside an optimization attempt's implement phase.
|
|
123
|
+
|
|
82
124
|
## Ground rules for this phase
|
|
83
125
|
|
|
84
126
|
- **The spec bounds your work.** When you spot something outside its scope —
|
|
@@ -123,6 +165,14 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
123
165
|
the answer. A referenced failed-stage receipt still provides reports and
|
|
124
166
|
cancelled/not-run members alongside that guidance. If `feedback` is absent,
|
|
125
167
|
build the plan and read any receipt listed by the manifest.
|
|
168
|
+
- **Act on a reopen's feedback.** A manifest `reopen` block means the build
|
|
169
|
+
finished and an operator sent it back; `$AB_CONTEXT_DIR/reopen.json` holds
|
|
170
|
+
their `feedback`. Treat it as authoritative alongside the spec and make the
|
|
171
|
+
requested change as commits on top of the existing branch; the plan is still
|
|
172
|
+
approved and the open PR is updated in place. It stays in context for every
|
|
173
|
+
round until the build finishes again, and the round's `feedback` field still
|
|
174
|
+
names review findings or verify reports to handle. If honoring it means
|
|
175
|
+
breaking the spec, escalate rather than quietly picking one.
|
|
126
176
|
- **Keep `.ab/` out of every commit.** Never stage or commit it, even with
|
|
127
177
|
`git add -f`. It is disposable phase scratch, not part of the build
|
|
128
178
|
deliverable.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: judge
|
|
3
|
+
description: Compare two variants of a piece of work against a rubric and a purpose, then record which one is better and why. Invoked only by a judge panel's runner.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /ab-judge <panel>
|
|
7
|
+
|
|
8
|
+
You are one judge on a panel. Two variants of the same work sit side by side in
|
|
9
|
+
your working directory as plain trees, `A/` and `B/`. Your job is to decide
|
|
10
|
+
which one better serves the purpose, measured against the rubric, and to say
|
|
11
|
+
why. Other judges compare the same pair independently; your preference is one
|
|
12
|
+
vote.
|
|
13
|
+
|
|
14
|
+
1. Run `ab judge context`. It writes `purpose.md`, `rubric.md` and
|
|
15
|
+
`context.json` into `.ab/judge/`.
|
|
16
|
+
2. Read `purpose.md` first. It says what the work is for and what must not be
|
|
17
|
+
lost while it changes. Then read `rubric.md`, the criteria to compare
|
|
18
|
+
against.
|
|
19
|
+
3. Examine `A/` and `B/` together, criterion by criterion. Read the parts the
|
|
20
|
+
rubric and the purpose care about in both trees; compare them directly
|
|
21
|
+
rather than scoring each on its own. Run read-only commands if they help
|
|
22
|
+
you understand the work, but leave both trees unmodified.
|
|
23
|
+
4. Weigh the purpose above the rubric's wording. A variant that satisfies the
|
|
24
|
+
letter of a criterion while working against the purpose is worse, not
|
|
25
|
+
better: penalize keyword stuffing, text addressed to judges or reviewers,
|
|
26
|
+
and anything else that games the rubric instead of improving the work.
|
|
27
|
+
5. Decide. Prefer `A` or `B` when one is better on balance. Choose `tie` only
|
|
28
|
+
when the variants are genuinely inseparable against the rubric and the
|
|
29
|
+
purpose, not as a way to avoid a close call.
|
|
30
|
+
6. End with exactly one terminal:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
ab judge prefer <A|B|tie> --reason "<one paragraph citing the rubric>"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The reason is one paragraph that names the rubric criteria that decided it
|
|
37
|
+
and what you saw in each variant. Use `--reason-file <file>` for a longer
|
|
38
|
+
paragraph. A validation error is feedback: fix what it names and run the
|
|
39
|
+
command again. Once a preference is recorded, the session is over.
|
|
40
|
+
|
|
41
|
+
Your session can record this one preference and nothing else. It cannot read
|
|
42
|
+
build state, and nothing outside `A/`, `B/` and `.ab/judge/` is part of the
|
|
43
|
+
comparison.
|
package/skills/operate/SKILL.md
CHANGED
|
@@ -118,7 +118,7 @@ Credential/process changes remain subject to the Boundaries below.
|
|
|
118
118
|
`ab watch --operator --json` is the standing monitor. Keep its default filter: every
|
|
119
119
|
record calls for action. It reports failed node verification, build escalations, persistent janitor failures and their escalations, merge decisions,
|
|
120
120
|
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
|
|
121
|
+
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
122
|
for ticket sources without reset), forge rate limits outside the dispatcher's credential
|
|
123
123
|
(`forge.credential-limited`), configured hook failures and skips (`hook.*`), and five minutes of continuous tick failures. Advertised resets
|
|
124
124
|
wait for a post-reset tick to finish before requiring action; ordinary recovery
|
|
@@ -258,10 +258,14 @@ that appear after you arm. Finishing the initially queued set is no reason to st
|
|
|
258
258
|
`ab watch --operator --json --since <watch-cursor>`. If it reports
|
|
259
259
|
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge
|
|
260
260
|
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
|
-
|
|
261
|
+
2. Right after arming and after each timeout, run `ab builds --json` (active
|
|
262
|
+
builds only), adopt newly dispatched builds, inspect active builds with
|
|
263
|
+
`ab build status <slug> --json`, and reconcile `ab repository status --json`.
|
|
264
|
+
When a build you were tracking leaves the active listing, check how it ended
|
|
265
|
+
with `ab build status <slug> --json`; do not list every historical build with
|
|
266
|
+
`--all`, whose cost and output grow with the repository's whole history.
|
|
267
|
+
Historical attention is baselined by a fresh watch, so status reconciliation
|
|
268
|
+
closes the attachment gap.
|
|
265
269
|
3. Handle each attention record using the shared rules. Repository records have
|
|
266
270
|
no build slug: inspect repository status. Re-arm from the standing watch's
|
|
267
271
|
latest cursor, including its trailing cursor after a timeout or count exit.
|
|
@@ -278,6 +282,9 @@ operator presence is not exposed there, and its
|
|
|
278
282
|
### Inspect
|
|
279
283
|
|
|
280
284
|
- `ab builds [--queued] [--all] [--json]` — builds and their effective status.
|
|
285
|
+
Active builds by default; `--queued` adds queued builds; `--all` is an
|
|
286
|
+
explicit historical listing of every build, for when you were asked for
|
|
287
|
+
history, not for routine reconciliation.
|
|
281
288
|
A build parked on a ticket wait lists as `waiting`, with `waiting on <ids>`
|
|
282
289
|
after its phase; in `--json` its `status` stays `blocked` and `wait` carries
|
|
283
290
|
`state` and `tickets`.
|
|
@@ -303,7 +310,8 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
303
310
|
for verification on the same head; children and contributions remain intact.
|
|
304
311
|
Active work, pause, pending controls and merge intent refuse revision. Leaves
|
|
305
312
|
require an escalation and restart from plan after any unfinished reconcile
|
|
306
|
-
resumes under the revised spec and its publication is confirmed
|
|
313
|
+
resumes under the revised spec and its publication is confirmed; a finished
|
|
314
|
+
leaf waiting for its merge decision revises with `ab reopen`. Answering a
|
|
307
315
|
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
308
316
|
tickets complete (see ticket wait attention). Run
|
|
309
317
|
`ab help answer` for the full menu.
|
|
@@ -321,13 +329,46 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
321
329
|
longer conforms to the spec standard falls back to triage, and the comment
|
|
322
330
|
lists what is missing. `--reason` is quoted in the hand-back comment.
|
|
323
331
|
Cleanup is asynchronous: act on the `ticket.handed-back` repository event,
|
|
324
|
-
not on `build.aborted` or the build leaving `ab builds`.
|
|
325
|
-
|
|
332
|
+
not on `build.aborted` or the build leaving `ab builds`. Aborting an
|
|
333
|
+
optimization attempt is different: it settles `aborted` and its node moves the
|
|
334
|
+
ticket to the rejected role, so no hand-back is reported and `--to` has no
|
|
335
|
+
effect.
|
|
336
|
+
- `ab reopen <slug> --feedback <text>` — send a finished, unmerged leaf back
|
|
337
|
+
when review wants changes, instead of aborting it or hand-making a second PR.
|
|
338
|
+
Feedback alone returns it to implement with the feedback in its context;
|
|
339
|
+
`--revise-spec <file>` or `--revise-spec-from-ticket` (with or without
|
|
340
|
+
feedback) restarts it from plan. The branch and open PR are kept, consent is
|
|
341
|
+
revoked at once (a hold stays), and the build waits for a slot like other
|
|
342
|
+
parked work. An armed native auto-merge is cancelled on a later dispatcher
|
|
343
|
+
poll, not by the command; a forge merge that lands first completes the build
|
|
344
|
+
as merged. It refuses nodes,
|
|
345
|
+
optimization attempts, blocked or still-running builds (use `ab answer` for a
|
|
346
|
+
blocked one), merged or closed PRs (file a new ticket), and pending abort or
|
|
347
|
+
discard. Re-run `ab reopen` with the same arguments after an interrupted spec
|
|
348
|
+
reopen; it completes the recorded one.
|
|
349
|
+
- `ab start <ticket-id> [--priority manual|urgent|normal] [--cancel]` — ask
|
|
350
|
+
the running dispatcher to claim one ticket on its next tick with a free slot,
|
|
351
|
+
even while intake is off or open-PR backpressure is engaged, and no other.
|
|
352
|
+
The default `manual` priority goes ahead of all waiting work, urgent included;
|
|
353
|
+
choose `urgent` when urgent waiting builds should still go first (the build
|
|
354
|
+
is then urgent), or `normal` when the ticket should wait behind normal
|
|
355
|
+
waiting builds and urgent tickets. Repeating it with another priority
|
|
356
|
+
updates the pending request. Use it to work a backlog one ticket at a time, or to run a single fix,
|
|
357
|
+
instead of turning intake on or moving other tickets out of ready. Every gate
|
|
358
|
+
still applies (ready state, spec standard, resolved blockers, no active
|
|
359
|
+
build, capacity, repository pause). Act on the `ticket.start-settled`
|
|
360
|
+
repository event: `started` names the build; any other outcome says why it
|
|
361
|
+
did not start and needs a fix before you ask again. `ab repository status`
|
|
362
|
+
lists pending requests with their priority; `--cancel` withdraws one.
|
|
363
|
+
- `ab hold <slug> [--reason <text>]` — persistently hold a merge and revoke
|
|
364
|
+
earlier consent. Record why with `--reason` when holding during queue work;
|
|
365
|
+
status, merges, builds and both dashboards show it until a later hold or
|
|
366
|
+
merge replaces it.
|
|
326
367
|
- `ab merge <slug>` — consent to a ready merge and clear its hold. Consent
|
|
327
368
|
survives clean restacks and verification; use hold to withdraw it when work
|
|
328
369
|
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.
|
|
370
|
+
predicates is revoked when a reconcile's own edits, or a leaf restack's
|
|
371
|
+
generated-file regeneration, touch a file those predicates match; `landing.consent-revoked` reports it.
|
|
331
372
|
Read the matched policy, readiness, acknowledged command and gate deferral in
|
|
332
373
|
build status before acting. Work the consent queue by checking completeness
|
|
333
374
|
and current verification, then issuing merge for the chosen merge. A merge
|
|
@@ -350,6 +391,9 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
350
391
|
head beside the current one.
|
|
351
392
|
- Configure ordered `[[merge]]` rules for project policy through ab-guide.
|
|
352
393
|
Repository auto-merge defaults and per-build auto-merge toggles are retired.
|
|
394
|
+
- `ab objective <node>` reads an optimization node's progress; its flags
|
|
395
|
+
revise the stop rules and `--stop [--drain | --abort]` stops it. See
|
|
396
|
+
[optimization nodes](#optimization-nodes).
|
|
353
397
|
|
|
354
398
|
### Tickets
|
|
355
399
|
|
|
@@ -366,11 +410,27 @@ ticket into the ready state sends it to dispatch — do that only when the
|
|
|
366
410
|
ticket genuinely conforms and the human's intent is clear.
|
|
367
411
|
|
|
368
412
|
The dispatcher claims urgent ready tickets before normal ones, each in source
|
|
369
|
-
order
|
|
413
|
+
order, and ahead of normal builds waiting for a slot to re-verify, reconcile or
|
|
414
|
+
resume. To expedite a ticket, such as a fix for a stuck build, mark it urgent
|
|
370
415
|
with `--priority urgent` on create or update; never move other ready tickets
|
|
371
|
-
out of ready to make room.
|
|
372
|
-
|
|
373
|
-
|
|
416
|
+
out of ready to make room. A claimed ticket's priority becomes its build's.
|
|
417
|
+
To expedite a build that already exists — a waiting reconcile or re-verify
|
|
418
|
+
that now blocks other work — run `ab priority <slug> urgent` (MCP:
|
|
419
|
+
`builds.control` with action `priority` and `priority: "urgent"`); `normal`
|
|
420
|
+
returns it to normal order. Free slots go to `manual` start requests, urgent
|
|
421
|
+
waiting work, urgent tickets (urgent start requests first), normal waiting
|
|
422
|
+
work, then normal tickets (normal start requests first); an `ab start`
|
|
423
|
+
request goes ahead per its tier. Urgency never preempts a
|
|
424
|
+
running build, and a blocked urgent ticket still waits on its blockers. A
|
|
425
|
+
source that cannot store priority refuses `urgent` and names itself; tell the
|
|
426
|
+
human.
|
|
427
|
+
|
|
428
|
+
When ready tickets sit unclaimed with free slots, check
|
|
429
|
+
`capacity.backpressure` in `ab repository status --json`. While `active` is
|
|
430
|
+
true, `[policy].maxOpenPrs` open-PR backpressure is pausing normal claims
|
|
431
|
+
until the open root PR count drains to `resumeOpenPrs` (below `maxOpenPrs`
|
|
432
|
+
when the two are equal); urgent tickets still dispatch. Relieve it by getting PRs merged or closed (or, where the repository
|
|
433
|
+
sets `excludeHeldOpenPrs`, by holding them), not by raising `capacity`.
|
|
374
434
|
|
|
375
435
|
On GitHub tickets, `--assignees` on create or update sets who a ticket is
|
|
376
436
|
assigned to (`me` is the credential owner; on update it replaces the set). Under
|
|
@@ -452,12 +512,18 @@ that does the job, and say what you are doing before you do it:
|
|
|
452
512
|
resumes under the revised spec and its publication is confirmed. Answering a
|
|
453
513
|
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
454
514
|
tickets complete.
|
|
515
|
+
- `builds.reopen` — send a finished, unmerged leaf back with `feedback`, a spec
|
|
516
|
+
`revision` (`{origin: "body" | "ticket", body}`, destructive — it replaces the
|
|
517
|
+
spec), or both, exactly as `ab reopen` does. Feedback returns to implement; a
|
|
518
|
+
revision restarts from plan; consent is revoked and the PR is kept.
|
|
455
519
|
- `tickets.list`, `tickets.get` — read the ticket queue and one ticket. A long
|
|
456
520
|
queue pages with `limit`, `offset` and `order`; `total` counts every match.
|
|
457
521
|
- `tickets.create` — file a new ticket from a conversation. A ticket filed
|
|
458
522
|
from a forge issue carries it in `issueLinks` as `{issue}` (intent `closes`,
|
|
459
523
|
the default) or `{issue, intent: "refs"}` when the work only partly
|
|
460
|
-
addresses it. `priority: "urgent"` dispatches it before normal ready work
|
|
524
|
+
addresses it. `priority: "urgent"` dispatches it before normal ready work
|
|
525
|
+
and normal waiting builds. Its `labels` are unioned with the repository's
|
|
526
|
+
`[tickets].createLabels`, and harvest proposals carry them too.
|
|
461
527
|
- `tickets.update`, `tickets.block`, `tickets.unblock` — edit fields and
|
|
462
528
|
blocker relations. `issueLinks` on update replaces the whole set;
|
|
463
529
|
`priority` (`urgent` or `normal`) expedites a ticket instead of moving other
|
|
@@ -469,6 +535,10 @@ that does the job, and say what you are doing before you do it:
|
|
|
469
535
|
phrases and unconfigured-role handling as the CLI. Moving a ticket
|
|
470
536
|
into the ready state sends it to dispatch — do that only when the ticket
|
|
471
537
|
genuinely conforms and the human's intent is clear.
|
|
538
|
+
- `tickets.start` — ask the running dispatcher to start one ticket even while
|
|
539
|
+
intake is off, as `ab start` does, with optional `priority` (`manual` by
|
|
540
|
+
default, `urgent` or `normal`, chosen as for `ab start`); `cancel: true`
|
|
541
|
+
withdraws a pending request. The outcome arrives as `ticket.start-settled` in `repository.events`.
|
|
472
542
|
- `notes.read`, `notes.write` — the operator-notes artifact: durable,
|
|
473
543
|
human-readable notes about this repository's operation. Write what the
|
|
474
544
|
next operator or human will need; explicitly read it before acting on
|
|
@@ -476,6 +546,12 @@ that does the job, and say what you are doing before you do it:
|
|
|
476
546
|
- `repository.settings` and `repository.bulk_control` — repository-wide
|
|
477
547
|
switches; use sparingly and only on clear instruction.
|
|
478
548
|
- `harvest.control` — start or control an observation run.
|
|
549
|
+
- `optimization.revise`, `optimization.stop` — revise an optimization node's
|
|
550
|
+
stop rules, or stop it; see [optimization nodes](#optimization-nodes).
|
|
551
|
+
Stopping cancels or aborts attempts in flight and cannot be undone.
|
|
552
|
+
- `optimization.settle-unmeasured` — release the slot of an attempt that merged
|
|
553
|
+
without a landing measurement, under an explicit policy; see
|
|
554
|
+
[optimization nodes](#optimization-nodes).
|
|
479
555
|
|
|
480
556
|
Every tool returns the operator API's shapes: results, or a typed failure
|
|
481
557
|
(`kind`, `error`, `code`). A refusal is information, not an exception:
|
|
@@ -502,6 +578,20 @@ Treat every default-watch record as a call to act:
|
|
|
502
578
|
your consent was given under. Review the reconcile's edits to the named files
|
|
503
579
|
at the new head, then consent again with `ab merge <slug> --head <new head>`
|
|
504
580
|
or hold it. The build is back in the consent queue until you do.
|
|
581
|
+
- `pr.checks-failed`: forge CI is failing at a finished leaf's live PR head,
|
|
582
|
+
naming the failing checks and the head. Inspect the PR, then re-run CI on
|
|
583
|
+
the forge if the failure looks flaky or external, or send the build back with
|
|
584
|
+
feedback if its own change broke. Autobuild never re-runs CI or returns the
|
|
585
|
+
build to implement on its own. The failure clears when a successful CI read
|
|
586
|
+
finds no failing checks on that head, even while some are still pending, or
|
|
587
|
+
the PR moves to another head; clearing does not prove green. CI the forge
|
|
588
|
+
cannot report (missing permission, rate
|
|
589
|
+
limit, outage) is unknown and is never reported as red or green.
|
|
590
|
+
- `optimization.noise-exceeded`: an optimization node's ε is below the noise
|
|
591
|
+
its starting measurement found, so its gate could accept noise. Tell the
|
|
592
|
+
human both numbers; raising ε (`ab objective <node> --epsilon …`) or
|
|
593
|
+
`metric.samples`, or `metric.judges` for a panel (a spec revision), is their
|
|
594
|
+
call. The node keeps running.
|
|
505
595
|
- `build.merge-decision`: diagnose the current merge-gate deferral or unsafe
|
|
506
596
|
forge outcome. Consent and hold decisions use only `build.consent-ready`.
|
|
507
597
|
When the reason begins `Awaiting a human merge`, Autobuild cannot land the PR
|
|
@@ -561,6 +651,13 @@ Treat every default-watch record as a call to act:
|
|
|
561
651
|
parts first. Moving the ticket as soon as the record arrives is safe: no later
|
|
562
652
|
dispatcher write for the same hand-back overrides it. Each hand-back reports
|
|
563
653
|
once.
|
|
654
|
+
- Single-ticket start settlement (`ticket.start-settled`): an `ab start` or
|
|
655
|
+
`tickets.start` request reached its outcome, with its `priority`. `started` names the build to
|
|
656
|
+
follow. `already-building` names the build already embodying the ticket.
|
|
657
|
+
`blocked` (unresolved blockers or target), `invalid` (bounced to triage, or a
|
|
658
|
+
profile conflict), `not-ready` (not in the ready state), `terminal`, `missing`
|
|
659
|
+
and `claim-refused` carry a `detail`: fix the cause, then request again if the
|
|
660
|
+
ticket should still go next. Each request settles once.
|
|
564
661
|
|
|
565
662
|
Do not re-derive history the build's events already tell you; read events
|
|
566
663
|
with a cursor and keep it short.
|
|
@@ -657,14 +754,21 @@ verification receipts and node children/completeness. Unknown completeness is
|
|
|
657
754
|
not zero children. A changed head or parent must regain current verification;
|
|
658
755
|
unfinished or automatically authorized candidates do not ask for attention.
|
|
659
756
|
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
|
|
757
|
+
reconcile waits for a slot ahead of normal ticket claims (urgent work first), so
|
|
758
|
+
a full repository delays it without failing it. A build waiting on other
|
|
759
|
+
tickets holds no slot either, and takes one ahead of normal claims once its
|
|
760
|
+
wait ends.
|
|
663
761
|
|
|
664
762
|
Select a queue build in the terminal and use `l merge` or `o hold`, or run
|
|
665
763
|
`ab merge <slug>` / `ab hold <slug>`. MCP uses `builds.control` with action `merge`
|
|
666
764
|
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.
|
|
765
|
+
`ab merge --head`, and `hold` takes an optional `reason`, like `ab hold --reason`. Hold is available before readiness and suppresses automatic merge.
|
|
766
|
+
When review of a queued merge asks for changes, reopen it (`ab reopen`, MCP
|
|
767
|
+
`builds.reopen`) rather than holding it and filing a parallel PR: hold only
|
|
768
|
+
stops the merge, abort closes the PR, and reopen carries the requested change
|
|
769
|
+
back into the same build and PR. The reopened build leaves the queue until it
|
|
770
|
+
finishes again and needs fresh consent then. A merged or closed PR is final;
|
|
771
|
+
its fixup is a new ticket.
|
|
668
772
|
Merge rechecks readiness and live node completeness, so act on failures by
|
|
669
773
|
refreshing the facts. Open children keep a node collecting; a child moved to
|
|
670
774
|
the rejected role no longer does. When integration
|
|
@@ -675,7 +779,7 @@ Watch for decisions and conflicts with `ab watch --operator --json`; save its op
|
|
|
675
779
|
and resume with `ab watch --operator --since <watch-cursor> --json`. On
|
|
676
780
|
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge the
|
|
677
781
|
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
|
|
782
|
+
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
783
|
`build.consent-ready` observations, including already-ready merges on first
|
|
680
784
|
repository-wide discovery. Readiness is identified by its durable
|
|
681
785
|
entry position: resuming suppresses the same episode, while a new candidate or
|
|
@@ -708,11 +812,15 @@ first tick after every named ticket completes, with no answer needed, and a
|
|
|
708
812
|
wait with some tickets still open stays in place. Answer sooner only when the
|
|
709
813
|
needed work landed another way or the wait is mistaken; any answer ends the
|
|
710
814
|
wait early. Either way the build then takes a
|
|
711
|
-
slot ahead of
|
|
815
|
+
slot ahead of normal ticket claims (urgent work first). If its target moved, it first restacks onto the
|
|
712
816
|
target's current head, so the resumed phase sees the merged blockers;
|
|
713
817
|
`ab build status` shows a `restack:` line with trigger `wait-resume`, and a
|
|
714
|
-
conflicting restack shows as `reconcile` before the phase resumes
|
|
715
|
-
|
|
818
|
+
conflicting restack shows as `reconcile` before the phase resumes (a conflict
|
|
819
|
+
only in declared generated files is regenerated instead, and the `restack:`
|
|
820
|
+
line names the commands as `regenerated:`). The phase
|
|
821
|
+
that declared the wait then resumes, told what it waited on. A verify or
|
|
822
|
+
finalize wait whose target moved first re-runs every verification step on the
|
|
823
|
+
restacked base before finalize or merge. Until the
|
|
716
824
|
dispatcher accepts a request, the build keeps its slot and `ab build status`
|
|
717
825
|
reports the wait as requested. A wait declared in `implement` first publishes
|
|
718
826
|
the build's commits; if that publication is lost, the wait is refused
|
|
@@ -731,7 +839,9 @@ Entering and leaving a wait (`wait.entered`, `wait.ended`, and the
|
|
|
731
839
|
`escalation.answered` that ends a wait) are routine, not default-watch
|
|
732
840
|
attention. To see waits begin and end, run a separate diagnostic
|
|
733
841
|
`ab watch --event 'wait.*' --event escalation.answered --json` alongside the
|
|
734
|
-
standing watch.
|
|
842
|
+
standing watch. A build waiting only on tickets is not attention either: it
|
|
843
|
+
wakes neither `ab wait --for attention` nor default `ab watch`, so find
|
|
844
|
+
waiting builds through `ab builds`, `ab status` or the dashboards. On either dashboard, `r` / RESUME on a waiting build answers
|
|
735
845
|
the wait and ends it early.
|
|
736
846
|
|
|
737
847
|
### Janitor escalation attention
|
|
@@ -744,16 +854,82 @@ answer with a bare retry so the janitor attempts on its next tick. The janitor
|
|
|
744
854
|
keeps retrying underneath, so the escalation may also close on its own when an
|
|
745
855
|
attempt succeeds; reconcile current status before acting on it.
|
|
746
856
|
|
|
857
|
+
### Node landing stack attention
|
|
858
|
+
|
|
859
|
+
An open `integration-stack:<head>:<n>` escalation means landing refused the
|
|
860
|
+
node's verified stack: it is non-linear, contains a merge commit, gives a commit
|
|
861
|
+
several or repeated `Autobuild-Build:` identities, or holds a trailer-less commit
|
|
862
|
+
the node does not own. Verified hand-pushed tweaks are not refusals. The question
|
|
863
|
+
names the rule and commit. Landing does not retry that head on its own. Ask a
|
|
864
|
+
maintainer to make the node branch linear, which yields a new head that verifies
|
|
865
|
+
again, or answer with a bare retry to attempt the same head once more.
|
|
866
|
+
|
|
867
|
+
## Optimization nodes
|
|
868
|
+
|
|
869
|
+
An optimization node files and dispatches its own attempts toward an objective,
|
|
870
|
+
and stops itself once a cause is met. Your part is reading progress, adjusting
|
|
871
|
+
when to stop, and landing the result.
|
|
872
|
+
|
|
873
|
+
- **Read progress** with `ab objective <node>` (`--json` for the structured
|
|
874
|
+
view): starting, current and best values, attempts filed, accepted, rejected,
|
|
875
|
+
merged unmeasured and running, the plateau counter, elapsed hours, stop
|
|
876
|
+
eligibility, and, once stopped, the cause, mode and what still blocks
|
|
877
|
+
completion. It also lists every `unmeasured merge` and every `branch cleanup
|
|
878
|
+
pending`, each of which holds a concurrency slot; `ab build status <node>`
|
|
879
|
+
prints the same lines. A panel node’s current value is its latest recorded
|
|
880
|
+
win rate against the starting head.
|
|
881
|
+
- **Settle an unmeasured merge** when a human merged an attempt on the forge
|
|
882
|
+
and the merged head was never measured. The attempt stays in flight, holding
|
|
883
|
+
its slot, and a stopped node cannot complete while it remains. Measured
|
|
884
|
+
progress cannot be inferred from such a merge, so release it explicitly:
|
|
885
|
+
`ab objective <node> --settle-unmeasured <proposal|build> --policy
|
|
886
|
+
release-unmeasured [--note <text>]`. It settles `merged-unmeasured`, frees the
|
|
887
|
+
slot once, and never counts as accepted or moves the current, best or plateau
|
|
888
|
+
value. It is refused for settled, unmerged or measured attempts.
|
|
889
|
+
- **Branch cleanup pending** means a declined or no-improvement attempt's
|
|
890
|
+
published branch has not been deleted yet. The node retries on its own; a
|
|
891
|
+
shown error names why the forge refused, and the ticket moves to rejected
|
|
892
|
+
once the branch is gone.
|
|
893
|
+
- **Revise when to stop** with `ab objective <node> --threshold n`, or
|
|
894
|
+
`--max-attempts n`, `--max-hours n`, `--plateau n` or `--stop-mode abort|drain`.
|
|
895
|
+
The dispatcher applies the change on its next tick, with no replanning and
|
|
896
|
+
running attempts untouched. Lowering the threshold to the current value, or a
|
|
897
|
+
budget to what is already spent, stops the node on that tick.
|
|
898
|
+
- **Stop it** with `ab objective <node> --stop` to take the progress so far.
|
|
899
|
+
Without a flag the objective's stop mode applies, `abort` unless the objective
|
|
900
|
+
says otherwise. `--stop --abort` cancels queued attempts and aborts running
|
|
901
|
+
ones. Attempts cancelled or aborted by the stop settle `stopped`; an earlier
|
|
902
|
+
operator abort remains `aborted`, as does an operator abort during drain.
|
|
903
|
+
Abort cleanup uses the first request’s durable origin and settles each build
|
|
904
|
+
once. `--stop --drain` cancels queued attempts
|
|
905
|
+
and lets running ones finish and face the landing gate, so a nearly finished
|
|
906
|
+
improvement can still land. A stop is final: no new proposer session starts
|
|
907
|
+
after it, attempts proposed by a session already running are cancelled, and a
|
|
908
|
+
later revision does not restart the search.
|
|
909
|
+
- **Land it** once it completes. A stopped node with no attempt running or
|
|
910
|
+
waiting to land completes, verifies and appears in the consent queue like any
|
|
911
|
+
node. Stopping is not consent: run `ab merge <node>`. Before then, `ab merge`
|
|
912
|
+
refuses with `node-incomplete` and names the reason: the node has not
|
|
913
|
+
stopped, attempts are still in flight, or attempts merged without a landing
|
|
914
|
+
measurement and await settlement.
|
|
915
|
+
|
|
916
|
+
A connected agent uses `optimization.revise`, `optimization.stop` (optional
|
|
917
|
+
`mode`) and `optimization.settle-unmeasured` (`attempt`, `policy`, optional
|
|
918
|
+
`note`), then `builds.control` with action `merge`.
|
|
919
|
+
|
|
747
920
|
## Forge failure recovery
|
|
748
921
|
|
|
749
922
|
A historical `publication.lost` does not prove that every copy of its candidate
|
|
750
923
|
is gone. Recovery checks the exact branch and private archive refs and retained
|
|
751
|
-
|
|
752
|
-
|
|
924
|
+
store copies first. Replay copies are read in either format (chunked manifest or
|
|
925
|
+
legacy base64 pack); a thin pack whose base is missing fetches the published target
|
|
926
|
+
first and applies with `git index-pack --fix-thin`. An available candidate is
|
|
927
|
+
retained best effort before guarded publication continues; a refused archive does
|
|
928
|
+
not block it. A genuinely missing reconcile or automatic restack candidate records
|
|
753
929
|
`publication.candidate-retired`, abandons its obsolete request, and replays the
|
|
754
930
|
producing operation with a fresh transaction identity. Its frozen target,
|
|
755
931
|
reconcile occurrence or automatic trigger, cycle, and message survive. The
|
|
756
|
-
retired candidate is excluded from
|
|
932
|
+
retired candidate is excluded from retention requirements unless independently
|
|
757
933
|
required by proven history. This reconstruction consumes no infrastructure
|
|
758
934
|
attempt and no additional conflict occurrence; it needs no operator guidance.
|
|
759
935
|
A bare retry also clears an existing infrastructure-limit escalation through
|
|
@@ -811,6 +987,25 @@ succeeds.
|
|
|
811
987
|
|
|
812
988
|
A rate limit the dispatcher classifies on its own authenticated request
|
|
813
989
|
records repository degradation with `resetAt`.
|
|
990
|
+
The built-in GitHub forge also treats a successful response, 304 included,
|
|
991
|
+
that reports `x-ratelimit-remaining: 0` with a future reset at most 65 minutes
|
|
992
|
+
away (one hour plus five minutes of clock skew) as that quota's limit.
|
|
993
|
+
The response keeps its result, and the process's next
|
|
994
|
+
request for the same quota (`core`, `graphql`, …) fails as that rate limit
|
|
995
|
+
without being sent, so cooldown follows the rules here without an avoidable
|
|
996
|
+
refusal. Other quotas are unaffected. A missing, malformed, past or
|
|
997
|
+
implausible reset enters no cooldown, and no later response clears one early:
|
|
998
|
+
only the reset passing, or an explicit `forge-clear`, does. After a clear, the
|
|
999
|
+
next request goes to GitHub as a probe, and an actual limit restores the
|
|
1000
|
+
cooldown.
|
|
1001
|
+
The first limit of an episode records an ordinary `dispatcher.forge-degraded`,
|
|
1002
|
+
which wakes `ab watch` once. A later reset inside the unexpired episode extends
|
|
1003
|
+
the cooldown durably as a degradation marked `continued` that wakes nothing; an
|
|
1004
|
+
equal or earlier reset writes nothing. A limit after the reset has passed, or
|
|
1005
|
+
after recovery, opens a new episode. A rate-limited or unreadable response on
|
|
1006
|
+
landing, gate inspection or PR polling is a typed forge failure or an unproven
|
|
1007
|
+
state, never "no checks", "ungated", "closed" or "merged"; merge-freshness
|
|
1008
|
+
inspection defers instead of recording best-effort evidence.
|
|
814
1009
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
815
1010
|
request; a successful probe records automatic recovery. An authorized operator
|
|
816
1011
|
may explicitly override erroneous recorded state with
|
|
@@ -864,7 +1059,15 @@ using exact-resource ETags; authenticated 304s spare the REST primary quota.
|
|
|
864
1059
|
Adapter caches are bounded and restart/eviction falls back to fresh reads.
|
|
865
1060
|
Writes, including Git publication and rewrites, invalidate observations before
|
|
866
1061
|
attempting the mutation so acknowledgement reads remain fresh. Leaf PR polling
|
|
867
|
-
keeps its existing cadence.
|
|
1062
|
+
keeps its existing cadence. Gate branch and rules reads, merge-freshness
|
|
1063
|
+
protection and rulesets, landing, retarget and auto-merge PR reads, commit and
|
|
1064
|
+
history reads, merge-queue activity, summary-comment listing and branch
|
|
1065
|
+
existence revalidate the same way. Both caches hold the raw representation and
|
|
1066
|
+
every caller validates it with its own schema, so consumers of one resource
|
|
1067
|
+
share one request and one ETag; a representation that fails validation loses
|
|
1068
|
+
its ETag. Reads that must be fresh, including merge inspections, still reach
|
|
1069
|
+
GitHub every time, conditionally when an ETag is cached. Readiness diagnostics
|
|
1070
|
+
and post-mutation readbacks stay unconditional.
|
|
868
1071
|
|
|
869
1072
|
For node cadence, durable wakes, restart behavior and CLI evidence, see
|
|
870
1073
|
[node polling and status](../ab-guide/references/integration-tree.md#polling-and-status).
|
|
@@ -875,6 +1078,18 @@ primary quota, REST 304s and GraphQL calls. Transport failures and historical or
|
|
|
875
1078
|
legacy observations can remain unclassified; absent fields never imply zero.
|
|
876
1079
|
Shared requests are attributed to their first requester; cache hits count zero.
|
|
877
1080
|
|
|
1081
|
+
An adapter may also report the primary rate-limit headers a response carried
|
|
1082
|
+
(`resource`, `limit`, `remaining`, `resetAt`), including on 304s and limited
|
|
1083
|
+
failures; GitHub does. No extra `/rate_limit` request is made. Tick telemetry's
|
|
1084
|
+
optional `rateLimits` carries the latest reading per resource with its
|
|
1085
|
+
`observedAt`, at most eight resources and none older than a day, across ticks
|
|
1086
|
+
and dispatcher restarts, so a cooldown tick with no requests still reports the
|
|
1087
|
+
last known quota. Secondary limits carry no headers and appear only as the
|
|
1088
|
+
degradation. `ab repository status` shows them as `forgeRateLimit`: each
|
|
1089
|
+
reading, `stale` once its window has reset (current quota unknown), and
|
|
1090
|
+
`paused`/`pausedUntil` while the dispatcher's rate-limit cooldown holds forge
|
|
1091
|
+
landing and polling. Absent fields mean unknown, never full quota.
|
|
1092
|
+
|
|
878
1093
|
## Intentional node staleness
|
|
879
1094
|
|
|
880
1095
|
An open collecting node may intentionally trail its parent. Parent movement is
|
package/skills/plan/SKILL.md
CHANGED
|
@@ -35,6 +35,11 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
35
35
|
reviewer's findings) or `$AB_CONTEXT_DIR/guidance.json` (an operator's answer to
|
|
36
36
|
the escalation that blocked this build). A round never carries both, and a
|
|
37
37
|
round may carry neither.
|
|
38
|
+
When the manifest has a `reopen` block, an operator reopened this finished
|
|
39
|
+
build with a revised spec; `$AB_CONTEXT_DIR/reopen.json` names the new
|
|
40
|
+
`specRev` and carries any `feedback` they gave with it. Plan the change on
|
|
41
|
+
top of the existing branch and open PR, which already hold the earlier work,
|
|
42
|
+
and act on that feedback alongside the spec.
|
|
38
43
|
When the manifest lists `assets`, they are the build's pinned ticket assets
|
|
39
44
|
under `$AB_CONTEXT_DIR/assets/<kind>/<name>/`; read them with the spec. A `design` asset
|
|
40
45
|
is a contract on observable visual and reference outcomes, not on implementation — the plan must satisfy it, while how stays yours. The spec cites
|
|
@@ -143,6 +148,19 @@ it instead of planning it:
|
|
|
143
148
|
ab observe --kind followup "…"
|
|
144
149
|
```
|
|
145
150
|
|
|
151
|
+
## Optimization attempts
|
|
152
|
+
|
|
153
|
+
When the manifest has an `attempt` block, this build is one attempt of an
|
|
154
|
+
optimization node, and its spec gives it one strategy. Plan that strategy. Do
|
|
155
|
+
not drift into another strategy, which is another attempt's job, even when it
|
|
156
|
+
looks more promising; record it with `ab observe --kind followup` instead.
|
|
157
|
+
Read the attempt's `objective.md` (the block's `path`) before planning: the
|
|
158
|
+
purpose says what must not change while the metric moves, and the harness is
|
|
159
|
+
the pinned ruler. Plan no edit to a harness path, because `ab done` refuses one
|
|
160
|
+
in implement. Plan how the implementer runs the measurement command on its own
|
|
161
|
+
work and what it records in implement notes. When the strategy might find no
|
|
162
|
+
real gain, say so: declining is the implementer's call to make.
|
|
163
|
+
|
|
146
164
|
## Feedback rounds
|
|
147
165
|
|
|
148
166
|
A round that carries feedback carries exactly one kind, and only that file
|
|
@@ -14,7 +14,10 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
|
|
|
14
14
|
1. Run `ab context`. You get `$AB_CONTEXT_DIR/spec.md`, `$AB_CONTEXT_DIR/plan.md` (latest revision),
|
|
15
15
|
and `$AB_CONTEXT_DIR/history/` with every prior round's findings — for persistence
|
|
16
16
|
marking, not for deference. When present, `$AB_CONTEXT_DIR/dismissed-findings.json`
|
|
17
|
-
lists finding ids a human explicitly dismissed.
|
|
17
|
+
lists finding ids a human explicitly dismissed. When the manifest has a
|
|
18
|
+
`reopen` block, an operator reopened this finished build with a revised spec;
|
|
19
|
+
`$AB_CONTEXT_DIR/reopen.json` carries any `feedback` they gave with it. Judge
|
|
20
|
+
the plan against that feedback as well as the spec.
|
|
18
21
|
2. Judge the plan on exactly these axes:
|
|
19
22
|
- **Spec conformance** — does executing this plan satisfy every
|
|
20
23
|
acceptance criterion? Does anything in it exceed the spec's scope? A
|
|
@@ -48,6 +51,17 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
|
|
|
48
51
|
unjustified omission or addition like any other plan defect. Mandatory
|
|
49
52
|
`always = true` steps must be present; no front matter means the safe
|
|
50
53
|
default of all configured steps.
|
|
54
|
+
- **Optimization attempts** — when the manifest has an `attempt` block,
|
|
55
|
+
read the attempt's `objective.md` (the block's `path`) and judge the plan
|
|
56
|
+
against the purpose, not only the score it expects. Measurements the
|
|
57
|
+
implementer reports in its own notes, a prior round's included, and
|
|
58
|
+
numbers the plan cites or promises are claims, not the gate: the kernel
|
|
59
|
+
measures before anything lands, so a predicted good number is no reason
|
|
60
|
+
to approve. A plan that changes what the test measures, overfits the
|
|
61
|
+
eval, special-cases the benchmark or regresses behavior the purpose
|
|
62
|
+
protects is a blocking finding whatever number it promises, as is a
|
|
63
|
+
planned harness edit. Flag drift from the strategy the attempt's spec
|
|
64
|
+
gives it.
|
|
51
65
|
3. Write your review notes to `$AB_CONTEXT_DIR/plan-review.md`, then deliver exactly one
|
|
52
66
|
verdict:
|
|
53
67
|
|