@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
|
@@ -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
|
|
|
@@ -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,7 +180,10 @@ 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
|
|
@@ -242,15 +250,23 @@ No result is undone by rewriting the target.
|
|
|
242
250
|
|
|
243
251
|
## Forge requirements
|
|
244
252
|
|
|
245
|
-
The kernel
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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).
|
|
254
270
|
|
|
255
271
|
Tree admission requires node branch creation, authoritative branch-head reads
|
|
256
272
|
and comparison. Reparenting additionally requires PR retargeting. Controlled
|
|
@@ -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.
|
|
@@ -85,7 +85,7 @@ raw session-event append. External operator harnesses own agent execution.
|
|
|
85
85
|
| `GET …/builds?scope=active\|queued\|all` | Build summaries, newest update first. `queued` means active plus queued, matching `ab builds --queued`. |
|
|
86
86
|
| `GET …/builds/{slug}` | `{detail, dashboardRow}`; `detail.runnerAttaches` records chronological attach boundaries and their runtime identity (version, commit, source kind/location), with null runtime for unrecorded historical attaches; `dashboardRow` remains a `CLEANING` row after `build.aborted` and becomes `null` only when the dashboard stops listing it (after cleanup's `build.completed`). |
|
|
87
87
|
| `GET …/dashboard` | `{generatedAt, model, settingsHeader}`. `model` is the dashboard's rows, steps, elapsed timing inputs, harvest row, triage (when the dispatcher published one)/queue/capacity and settings projection. `model.configuration` is `"no-dispatcher-run"` when the repository records no dispatcher run, and absent otherwise. Optional `rollback` contains `correlation`, `lineage`, full `failed` and `restored` runtime identities and rollback event `ts` for the authoritative dispatcher lineage’s unresolved hold. Both dashboards name failed, restored and held runtime plus timestamp. Matching durable different-target hold clearance removes it; a fresh operator lineage hides it only after a committed operational tick or accepted takeover. Run-started and yielded ticks alone cannot replace authority; same-lineage generations retain the notice. Historical rollback records are not fallback notices. Optional `handoffs` lists all accepted unfinished handoffs with predecessor `run`, optional `successor`, `correlation`, full `from`/`to` runtimes, `mode` and optional `deadline`. Outstanding drain-mode builds carry `draining: true`, also on build-detail `dashboardRow`; matching settlement removes it. Accepted completion removes the handoff; neither takeover nor the clock does. Missing historical mode means cutover and missing deadline displays unknown. |
|
|
88
|
-
| `GET …/status` | Repository intake, pause, and default-auto-merge projection. Its `operator` is `{presence: "unavailable", reason}`: this route does not load presence registrations, so it is not evidence that no operator is present. |
|
|
88
|
+
| `GET …/status` | Repository intake, pause, and default-auto-merge projection, plus `ticketStarts` (`{pending, recent}`, each entry with its `priority`) when single-ticket start requests are pending or recently settled. Its `operator` is `{presence: "unavailable", reason}`: this route does not load presence registrations, so it is not evidence that no operator is present. |
|
|
89
89
|
| `GET …/harvest/status` | Harvest gate, runs, steps, recovery, and attention projection. |
|
|
90
90
|
| `GET …/builds/{slug}/artifacts/{kind}?rev=N` | Raw bytes (`application/octet-stream`) plus content-disposition and `X-Autobuild-Artifact-*` metadata headers. Omit `rev` for latest. |
|
|
91
91
|
| `GET …/tickets?state=S&label=L&limit=N&offset=K&order=O` | `{states,tickets,diagnostics,criteria,triageState,readyState,doneState,total}`. The three lifecycle names come from effective repository configuration (including provider fallback). With no `state`, `criteria.state` is `triageState`; repeated `label` parameters narrow that state with AND filters. An explicit `state` selects that exact backend workflow state. `limit` (0–200) returns one page, after skipping `offset`, in `order` `oldest` (the default: dispatch order, urgent tickets first, then the source order) or `newest` (newest filed first, regardless of urgency; see paging below); `total` counts every match before paging. |
|
|
@@ -124,7 +124,7 @@ JSON bodies are strict: unknown fields are rejected.
|
|
|
124
124
|
|
|
125
125
|
| Method and path | Body |
|
|
126
126
|
|---|---|
|
|
127
|
-
| `POST …/builds/{slug}/control` | `{"action":"pause"\|"cancel-pause"\|"resume"\|"abort"\|"discard"\|"land"\|"hold"}`; `land` alone accepts an optional `"head":"<sha>"` (full or at least seven characters) that binds consent to that candidate head. Abort alone also accepts `"to":"triage"\|"ready"` (default triage) and a `"reason"` of 1–2000 characters after trimming, as `ab abort --to/--reason` does. Ready requires the current ticket to meet the spec standard; otherwise cleanup returns it to triage and the hand-back comment and `ticket.handed-back` event carry the `requested` role and `missing` parts. Repeating an identical pending abort is idempotent; a repeat with a different destination or reason is refused. |
|
|
127
|
+
| `POST …/builds/{slug}/control` | `{"action":"pause"\|"cancel-pause"\|"resume"\|"abort"\|"discard"\|"land"\|"hold"\|"priority"}`; `priority` requires `"priority":"urgent"\|"normal"` and records `build.priority-set`, the build's slot-admission priority, as `ab priority` does. Build priority stays `urgent` or `normal`; free slots go to `manual` start requests, then urgent waiting work, then urgent start requests and ordinary urgent claims, then normal waiting work, then normal start requests and ordinary normal claims. `land` alone accepts an optional `"head":"<sha>"` (full or at least seven characters) that binds consent to that candidate head. Abort alone also accepts `"to":"triage"\|"ready"` (default triage) and a `"reason"` of 1–2000 characters after trimming, as `ab abort --to/--reason` does. `hold` also accepts an optional `"reason"` of 1–2000 characters after trimming, as `ab hold --reason` does; a blank reason is refused with `invalid-argument` and nothing is recorded. `"reason"` with any other action is a validation error. Ready requires the current ticket to meet the spec standard; otherwise cleanup returns it to triage and the hand-back comment and `ticket.handed-back` event carry the `requested` role and `missing` parts. Repeating an identical pending abort is idempotent; a repeat with a different destination or reason is refused. Aborting an [optimization attempt](optimization-nodes.md#landing-and-settlement) ignores `to`: it settles `aborted`, the node moves the ticket to rejected, and no hand-back is reported. |
|
|
128
128
|
| `POST …/builds/{slug}/restack` | Empty body; durable node restack demand. |
|
|
129
129
|
| `POST …/builds/{slug}/answer` | One answer variant described below. |
|
|
130
130
|
| `PUT …/settings/intake` | `{"enabled":boolean}` |
|
|
@@ -132,9 +132,11 @@ JSON bodies are strict: unknown fields are rejected.
|
|
|
132
132
|
| `POST …/bulk-control` | `{"action":"pause"\|"resume"}`. The hold fact, intake fact, then eligible build events are written in that order. |
|
|
133
133
|
| `POST …/harvest/control` | `{"action":"toggle-gate"}` or `{"action":"run","run":"…"}`. A run action is bound to that concrete projected run. |
|
|
134
134
|
| `POST …/tickets/states` | `{name,about?}` → `{state,created}`; requires attributed operator identity (`tickets.state.create` in MCP). Hosted duplicate names are refused case-insensitively. |
|
|
135
|
-
| `POST …/tickets` | `{"title":"…","body":"…","labels"?:[],"state"?:"…","blockedBy"?:[],"issueLinks"?:[{"issue":N,"intent"?:"closes"|"refs"}],"priority"?:"urgent"|"normal","assignees"?:["login"|"me"],"kind"?:"work"|"node","target"?:"id"|null}`; omitted state preserves the backend default, omitted intent is `closes`, omitted priority is normal, and omitted assignees apply `[tickets].createAssignee` (`[]` creates an unassigned ticket). `assignees` takes at most ten entries, counted before duplicates collapse, and more is a validation error. A backend that cannot store issue links refuses with `code: "issue-links-unsupported"`; one that cannot store priority refuses `urgent` with `code: "priority-unsupported"` and accepts `normal` as a no-op; one that cannot store assignees refuses any `assignees` with `code: "assignees-unsupported"`. |
|
|
135
|
+
| `POST …/tickets` | `{"title":"…","body":"…","labels"?:[],"state"?:"…","blockedBy"?:[],"issueLinks"?:[{"issue":N,"intent"?:"closes"|"refs"}],"priority"?:"urgent"|"normal","assignees"?:["login"|"me"],"kind"?:"work"|"node","target"?:"id"|null}`; omitted state preserves the backend default, omitted intent is `closes`, omitted priority is normal, and omitted assignees apply `[tickets].createAssignee` (`[]` creates an unassigned ticket), and `labels` are unioned with `[tickets].createLabels`. `assignees` takes at most ten entries, counted before duplicates collapse, and more is a validation error. A backend that cannot store issue links refuses with `code: "issue-links-unsupported"`; one that cannot store priority refuses `urgent` with `code: "priority-unsupported"` and accepts `normal` as a no-op; one that cannot store assignees refuses any `assignees` with `code: "assignees-unsupported"`. |
|
|
136
136
|
| `PATCH …/tickets/{id}` | Any nonempty subset of `title`, `body`, complete-replacement `labels`, complete-replacement `issueLinks` (`[]` clears), `priority` (`urgent` or `normal`; refusals as for create), complete-replacement `assignees` (`[]` clears; refusals as for create), `kind` (`work` or `node`), and nullable `target` (null clears). Body bytes are not normalized. |
|
|
137
137
|
| `POST …/tickets/{id}/move` | Exactly one of `{"state":"backend state name"}` or `{"role":"triage"\|"ready"\|"backlog"\|"rejected"}`; both or neither is `400 validation` (`tickets.move` in MCP takes the same target). A role resolves to the configured `triageState`, `readyState`, `backlogState`, or `rejectedState`. An unset `backlogState` or `rejectedState` refuses with a message naming the key to set, and never guesses a native state. A source that can create states creates a missing role state before moving. |
|
|
138
|
+
| `POST …/tickets/{id}/start` | Empty body, or `{"priority":"manual"\|"urgent"\|"normal"}` (default `manual`; anything else is `400 validation`). Records a durable request that the running dispatcher start this ticket on its next tick with a free slot in the priority's admission tier, even while intake is off (`tickets.start` in MCP). The id resolves through the configured source; an unknown ticket is `404 not-found`. Returns `{status:"pending",existing,updated,request,priority,requestedAt,ticket}`; `existing` is true when a request for the ticket was already pending, and `updated` is true when that request's priority was changed to this one. Nothing is written when `updated` is false for an existing request. The outcome arrives later as `ticket.start-settled`. |
|
|
139
|
+
| `POST …/tickets/{id}/start/cancel` | Empty body. Cancels the pending start request: `{cancelled:true,request,ticket}`, or `{cancelled:false,id}` when none is pending (`tickets.start` with `cancel: true` in MCP). |
|
|
138
140
|
| `POST …/tickets/{id}/block` | `{"blockerIds":["…"]}`. |
|
|
139
141
|
| `POST …/tickets/{id}/unblock` | `{"blockerIds":["…"]}`. |
|
|
140
142
|
|
|
@@ -175,7 +177,11 @@ pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
|
175
177
|
A concurrent state change refuses publication with a retry explanation;
|
|
176
178
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
177
179
|
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
178
|
-
spec and its publication is confirmed.
|
|
180
|
+
spec and its publication is confirmed. A settled, unmerged leaf awaiting merge
|
|
181
|
+
revises without an escalation through `ab reopen`.
|
|
182
|
+
A revision of an optimization node may change its `autobuild-objective` block
|
|
183
|
+
but cannot remove it, and a revision of a plain node or a leaf cannot add one;
|
|
184
|
+
both refusals record nothing.
|
|
179
185
|
|
|
180
186
|
## The registry's protocol face: `POST …/tools/{tool}`
|
|
181
187
|
|
|
@@ -205,6 +211,8 @@ Build control returns one of:
|
|
|
205
211
|
Depending on the operation, the result also includes `remainingOpen`,
|
|
206
212
|
`reviewRoundCeiling:{loop,value}`, `specRev`, `authorizedEarlier`, or a
|
|
207
213
|
`terminalSignal` describing a terminal status, pending abort, or ended PR.
|
|
214
|
+
- `{kind:"reopened",slug,route,event?,specRev?,completedEarlier?}` from the
|
|
215
|
+
reopen tool; `route` is `implement` or `plan`.
|
|
208
216
|
|
|
209
217
|
Repository setting writes and toggles return `{enabled,event}`. Harvest gate
|
|
210
218
|
toggle returns `{command:"pause"|"resume",event}`; a concrete-run action
|
|
@@ -288,11 +296,18 @@ The default watch reports actionable conditions only:
|
|
|
288
296
|
|
|
289
297
|
- `build.janitor-failing`: a build has reached the configured consecutive-failure threshold; a successful janitor attempt clears it.
|
|
290
298
|
- `build.janitor-escalated`: a build's janitor failure episode outlasted `policy.janitorFailureEscalationSeconds` and raised one escalation naming the operation, last error, attempt count and episode start. The janitor keeps retrying; a successful attempt closes the escalation, and a bare retry answer attempts on the next tick.
|
|
299
|
+
- `dispatcher.forge-degraded`: the dispatcher's own rate-limit cooldown opened, with its reset; once per episode. Extensions marked `continued` are silent.
|
|
291
300
|
- `dispatcher.forge-persistent`: forge degradation remains after a completed post-reset retry opportunity; successful recovery clears it.
|
|
292
301
|
|
|
293
302
|
- Build `escalation.raised`, `integration.landed`, `node.item-conflicted`, `target.rewritten`,
|
|
294
303
|
`landing.consent-revoked` (protected merge consent revoked by a reconcile's
|
|
295
|
-
edits, naming the matched files and both heads),
|
|
304
|
+
edits, naming the matched files and both heads),
|
|
305
|
+
`pr.checks-failed` (failing forge CI at a finished leaf's live PR head, once
|
|
306
|
+
per head and failing set; build summaries, details and merge-queue entries
|
|
307
|
+
carry it as `ciFailure` until a CI read finds no failing checks on that
|
|
308
|
+
head, pending ones included, or the PR moves to another head),
|
|
309
|
+
`optimization.noise-exceeded` (an optimization node's ε is below its
|
|
310
|
+
measured noise, naming both), or conflicted
|
|
296
311
|
`restack.replayed` events. `build.consent-ready` is the single
|
|
297
312
|
signal for a ready consent or held merge, including first repository-wide
|
|
298
313
|
discovery. Its target has the queue entry shape `{kind, branch, ticket?, build?}`.
|
|
@@ -328,7 +343,15 @@ The default watch reports actionable conditions only:
|
|
|
328
343
|
`pr-closed` or `discard`), with its destination `state` and `role`, the build
|
|
329
344
|
or preparation attempt, and any `requested` role, `missing` spec parts and
|
|
330
345
|
`reason`. It is appended once, only after the move is committed, so moving
|
|
331
|
-
the ticket on receipt is never overridden.
|
|
346
|
+
the ticket on receipt is never overridden. An aborted or closed
|
|
347
|
+
optimization attempt reports no hand-back; its node records
|
|
348
|
+
`attempt.ticket-rejected` once the ticket is moved to rejected (see
|
|
349
|
+
[landing and settlement](optimization-nodes.md#landing-and-settlement)).
|
|
350
|
+
- Repository `ticket.start-settled`: an operator's single-ticket start request
|
|
351
|
+
(`ab start`, `tickets.start`) reached its outcome, with the request's
|
|
352
|
+
`priority`: `started` with the build `slug`, or a refusal — `already-building` (with the slug), `blocked`,
|
|
353
|
+
`invalid` (bounced to triage, or a profile conflict), `missing`, `not-ready`,
|
|
354
|
+
`terminal` or `claim-refused` — with a `detail`. Each request settles once.
|
|
332
355
|
- `dispatcher.ticket-source-persistent`: degradation past its advertised
|
|
333
356
|
reset time, once a tick started at or after reset has completed or failed
|
|
334
357
|
with the episode still open; crossing reset alone is silent. Without a reset,
|
|
@@ -359,16 +382,22 @@ have `repo` and null build/state. Source observations also report
|
|
|
359
382
|
|
|
360
383
|
Every record carries a cursor, including timer-only records. Resuming suppresses
|
|
361
384
|
delivered merge decisions and persistence episodes even when stream positions
|
|
362
|
-
did not advance.
|
|
385
|
+
did not advance. A merge decision still due at the cursor, because the watch
|
|
386
|
+
stopped on its event before observing it, is delivered once on resume, before
|
|
387
|
+
the later events. Old v1 cursors remain valid inside the hosted 1,000-position resume window: historical eligible merge
|
|
363
388
|
decisions are treated as consumed; active overdue repository episodes may
|
|
364
389
|
report because old watches had no persistence notification. Fresh attachment
|
|
365
390
|
silently baselines historical direct events and merge decisions, but retains
|
|
366
|
-
active repository timers.
|
|
391
|
+
active repository timers. A no-slug watch follows each build announced in the
|
|
392
|
+
journal after its position from the build's first event; cursors carry
|
|
393
|
+
creations still in preparation, and a cursor from an earlier release, which
|
|
394
|
+
carries none, baselines a build whose creation was selected before it. Reconcile existing conditions through status after
|
|
367
395
|
arming the watch. Named watches still end when every named build is terminal;
|
|
368
396
|
learn their outcomes from status reconciliation at exit.
|
|
369
397
|
|
|
370
398
|
`ab wait --for attention` is build-only and uses the same build conditions:
|
|
371
|
-
current failed node verification, an open escalation
|
|
399
|
+
current failed node verification, an open escalation other than a ticket wait's
|
|
400
|
+
own, janitor failure attention, a current forge CI failure,
|
|
372
401
|
consent readiness, merge/conflict attention or a merge decision. Current failed
|
|
373
402
|
verification satisfies attention even before its notification is written. Existing conditions return immediately,
|
|
374
403
|
even with `--since`; live and backlog matches ignore routine outcomes and
|
|
@@ -422,18 +451,92 @@ files protected by the consent rule's `paths` or `within` predicates revokes it;
|
|
|
422
451
|
hold persists until merge. Repository
|
|
423
452
|
auto-merge settings are retired; configure ordered `[[merge]]` rules.
|
|
424
453
|
|
|
425
|
-
Default attention includes `build.janitor-failing`, `build.janitor-escalated
|
|
426
|
-
`dispatcher.forge-
|
|
427
|
-
|
|
454
|
+
Default attention includes `build.janitor-failing`, `build.janitor-escalated`,
|
|
455
|
+
the episode-opening `dispatcher.forge-degraded` and `dispatcher.forge-persistent`,
|
|
456
|
+
so a rate-limit episode wakes once when it opens and once more only if it
|
|
457
|
+
outlasts its reset. `continued` degradations, which only extend an open
|
|
458
|
+
episode's reset, and `dispatcher.forge-recovered` facts are available through
|
|
459
|
+
explicit event filters.
|
|
428
460
|
Active janitor attention and an open janitor escalation clear on a successful
|
|
429
461
|
attempt. Repository status
|
|
430
|
-
includes forge degradation/reset
|
|
462
|
+
includes forge degradation/reset, available request counts and `forgeRateLimit`:
|
|
463
|
+
the last observed primary quota per resource with its observation time and
|
|
464
|
+
staleness, and whether forge landing/polling is paused until the cooldown's reset; `dispatcher.forge-persistent` requires a completed retry opportunity past
|
|
431
465
|
the original reset, which later rate limits cannot postpone indefinitely.
|
|
432
466
|
Only the dispatcher's own classified limits record that degradation. Status
|
|
433
467
|
also lists active `forgeCredentialLimits`: limits on unauthenticated requests or
|
|
434
468
|
seen by build runners and phase sessions, each naming the process, which never
|
|
435
469
|
pause repository forge work.
|
|
436
470
|
|
|
471
|
+
### Optimization objective revision
|
|
472
|
+
|
|
473
|
+
`optimization.revise` accepts `{repo, slug, threshold?, epsilon?, maxAttempts?,
|
|
474
|
+
maxHours?, plateau?, stopMode?, concurrency?}` with at least one change.
|
|
475
|
+
`epsilon` is `{absolute}` or `{relative}`, and `stopMode` is `abort` or `drain`.
|
|
476
|
+
It uses the same service as `ab objective <node>` with flags and records one
|
|
477
|
+
human `optimization.objective-revised` fact carrying the changes and the next
|
|
478
|
+
objective revision. The receipt contains `slug`, `revision` and `changes`.
|
|
479
|
+
It refuses non-node builds, nodes with no accepted objective and terminal
|
|
480
|
+
nodes, and changes that leave the effective objective invalid; it enforces
|
|
481
|
+
repository ownership. Running attempts are unaffected. The metric, harness and
|
|
482
|
+
purpose change only through a node spec revision. The dispatcher applies a
|
|
483
|
+
revised threshold, budget or plateau on its next tick. The tool has no HTTP
|
|
484
|
+
route.
|
|
485
|
+
|
|
486
|
+
### Optimization stop
|
|
487
|
+
|
|
488
|
+
`optimization.stop` accepts `{repo, slug, mode?}`, where `mode` is `abort` or
|
|
489
|
+
`drain`; without it the objective's stop mode applies, `abort` by default. It
|
|
490
|
+
uses the same service as `ab objective <node> --stop` and records one human
|
|
491
|
+
`optimization.stopped {cause: operator, mode}`. The receipt contains `slug`,
|
|
492
|
+
`cause` and `mode`. Abort cancels queued attempts and aborts running ones, and
|
|
493
|
+
those cancelled or aborted by the stop settle `stopped`. An earlier operator
|
|
494
|
+
abort remains `aborted`; abort cleanup uses the first request’s durable origin
|
|
495
|
+
and settles each build once. Drain cancels queued attempts and lets running
|
|
496
|
+
ones finish and face the landing gate. No new proposer session is admitted after
|
|
497
|
+
a stop; one that had already started may finish, but the attempts it proposes
|
|
498
|
+
are cancelled and settle `stopped`. A stop is final. It refuses non-node builds, nodes with no accepted objective, terminal
|
|
499
|
+
nodes and a node that has already stopped, and enforces repository ownership.
|
|
500
|
+
Stopping is not merge consent: once the node completes and verifies, land it
|
|
501
|
+
with `builds.control` merge. The tool has no HTTP route.
|
|
502
|
+
|
|
503
|
+
### Optimization unmeasured-merge settlement
|
|
504
|
+
|
|
505
|
+
`optimization.settle-unmeasured` accepts `{repo, slug, attempt, policy,
|
|
506
|
+
note?}`. `attempt` is the proposal id or build slug of an attempt that merged
|
|
507
|
+
without a landing measurement of its merged head, which `builds.get` lists
|
|
508
|
+
under the node's `unmeasuredMerges`. `policy` is required, and its one value
|
|
509
|
+
`release-unmeasured` releases the attempt's concurrency slot while recording
|
|
510
|
+
its measurement as absent. The tool uses the same service as `ab objective
|
|
511
|
+
<node> --settle-unmeasured … --policy …` and records one human `attempt.settled
|
|
512
|
+
{outcome: merged-unmeasured, policy, mergedSha?}`. The receipt contains `slug`,
|
|
513
|
+
`proposal`, `build`, `outcome` and `policy`. The settlement never counts as
|
|
514
|
+
accepted and moves no current, best or plateau value. An unknown policy is a
|
|
515
|
+
validation refusal. The tool refuses non-node builds, nodes with no accepted
|
|
516
|
+
objective, terminal nodes, and an attempt that is not in flight, has not merged
|
|
517
|
+
unmeasured, or whose merged head has a valid measurement. It works on a stopped
|
|
518
|
+
node and enforces repository ownership. The tool has no HTTP route.
|
|
519
|
+
|
|
520
|
+
### Reopen a settled leaf
|
|
521
|
+
|
|
522
|
+
`builds.reopen` accepts `{repo, slug, feedback?, revision?}`, where `revision`
|
|
523
|
+
is `{origin: "body", body}` or `{origin: "ticket", body}` as on `builds.answer`.
|
|
524
|
+
It uses the same service as `ab reopen` and needs feedback (1–20000 characters
|
|
525
|
+
after trimming), a revision, or both. It applies only to a leaf that finished
|
|
526
|
+
its pipeline and waits for its merge decision: feedback returns it to implement,
|
|
527
|
+
and a revision is recorded as the next spec revision and restarts it from plan.
|
|
528
|
+
The open PR and branch are kept and merge consent is revoked at once (a hold
|
|
529
|
+
stays). An armed native auto-merge is cancelled asynchronously on a later
|
|
530
|
+
dispatcher poll, and the receipt does not confirm it; a forge merge that lands
|
|
531
|
+
first completes the build as merged. The receipt is `{kind: "reopened", slug, route, event?, specRev?,
|
|
532
|
+
completedEarlier?}`; `completedEarlier` means the call completed a spec reopen
|
|
533
|
+
recorded earlier without using its own arguments. It refuses integration nodes
|
|
534
|
+
and optimization attempts and terminal or queued builds with `not-reopenable`
|
|
535
|
+
or `inactive`. Merged or closed PRs, leaves still running, conflicted or
|
|
536
|
+
blocked (use `builds.answer`) are refused with `not-reopenable`; a pending abort
|
|
537
|
+
or discard is refused with `abort-pending` or `discard-pending`. Ownership is
|
|
538
|
+
enforced. The tool has no HTTP route.
|
|
539
|
+
|
|
437
540
|
### Node restack request
|
|
438
541
|
|
|
439
542
|
`builds.restack` accepts `{repo, slug}`. `POST /operator/v1/repos/:repo/builds/:slug/restack`
|
|
@@ -618,7 +721,7 @@ permission or retention failures leave deletion pending. Vercel Blob cleanup use
|
|
|
618
721
|
the same store identity, token and prefixed pathname as uploads. Missing objects
|
|
619
722
|
are successful cleanup; provider errors never count as completed deletion.
|
|
620
723
|
|
|
621
|
-
Paged ticket listings use the source's optional native `listPage(criteria, page)` capability when present, otherwise read the full listing, order it, and slice it: by default urgent tickets first, then normal ones, each in source order; for `newest`, the reversed listing. `newest` means newest filed first, regardless of urgency, with a stable tie-break; it is not the reverse of dispatch order. A source that lists in filing order (file, GitHub, Linear) gets exactly that from the reversed listing. The remote `HostedTicketSource`
|
|
724
|
+
Paged ticket listings use the source's optional native `listPage(criteria, page)` capability when present, otherwise read the full listing, order it, and slice it: by default urgent tickets first, then normal ones, each in source order; for `newest`, the reversed listing. `newest` means newest filed first, regardless of urgency, with a stable tie-break; it is not the reverse of dispatch order. A source that lists in filing order (file, GitHub, Linear) gets exactly that from the reversed listing. The remote `HostedTicketSource` pages natively through the service's `list-page` operation, and uses the fallback only against a service predating it. Native errors propagate. PostgreSQL counts matches without bodies and reads only the requested window. Zero limits and offsets past the end still report the full matching total. Unpaged listings remain exhaustive; the wire payload is the same for both paths.
|
|
622
725
|
|
|
623
726
|
|
|
624
727
|
### Forge cooldown admission and explicit recovery
|