@defrex/autobuild 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/SPEC.md +2232 -175
- package/bin/ab-dispatch-generation.ts +5 -1
- package/docs/accounts.md +2 -1
- package/docs/agent-runtimes.md +30 -3
- package/docs/answering-blocked-builds.md +35 -7
- package/docs/architecture.md +436 -63
- package/docs/build-store.md +10 -7
- package/docs/builds.md +5 -0
- package/docs/cli.md +40 -2
- package/docs/configuration-overview.md +5 -1
- package/docs/configuration.md +649 -74
- package/docs/dispatcher.md +79 -6
- package/docs/forges.md +8 -1
- package/docs/getting-started.md +1 -1
- package/docs/integration-overview.md +4 -2
- package/docs/integration-tree.md +102 -11
- package/docs/merge-policy.md +30 -14
- package/docs/migration-1.0.md +2 -1
- package/docs/operating.md +36 -6
- package/docs/operator-api.md +251 -20
- package/docs/operator-surfaces.md +85 -0
- package/docs/optimization-nodes.md +1100 -0
- package/docs/overview.md +1 -1
- package/docs/plugin-authoring.md +83 -13
- package/docs/remote-store-protocol.md +137 -17
- package/docs/remote-ticket-protocol.md +90 -2
- package/docs/restacking.md +119 -15
- package/docs/seams.md +2 -2
- package/docs/setup.md +27 -4
- package/docs/skills.md +4 -2
- package/docs/spec-standard.md +2 -1
- package/docs/ticket-dependencies.md +15 -3
- package/docs/ticket-migration.md +4 -2
- package/docs/ticket-sources.md +54 -14
- package/docs/tickets.md +21 -6
- package/docs/troubleshooting.md +11 -2
- package/docs/verification.md +15 -3
- package/docs/workspaces.md +6 -1
- package/package.json +9 -5
- package/packages/core/src/accounts/chatgpt-oauth.ts +7 -5
- package/packages/core/src/cli/accounts.ts +7 -2
- package/packages/core/src/cli/attempt.ts +103 -0
- package/packages/core/src/cli/attention.ts +11 -2
- package/packages/core/src/cli/binary-direct.ts +54 -1
- package/packages/core/src/cli/binary-lifecycle.ts +2 -1
- package/packages/core/src/cli/binary.ts +5 -3
- package/packages/core/src/cli/build-control.ts +407 -67
- package/packages/core/src/cli/context.ts +272 -15
- package/packages/core/src/cli/dashboard/detail.ts +26 -2
- package/packages/core/src/cli/dashboard/facts.ts +89 -56
- package/packages/core/src/cli/dashboard/header.ts +101 -0
- package/packages/core/src/cli/dashboard/integration-detail.ts +7 -2
- package/packages/core/src/cli/dashboard/landing-display.ts +15 -2
- package/packages/core/src/cli/dashboard/model.ts +133 -66
- package/packages/core/src/cli/dashboard/objective-row.ts +221 -0
- package/packages/core/src/cli/dashboard/poll.ts +178 -76
- package/packages/core/src/cli/dashboard/render.ts +172 -227
- package/packages/core/src/cli/dashboard/reopen-display.ts +39 -0
- package/packages/core/src/cli/dashboard/row-text.ts +538 -0
- package/packages/core/src/cli/dashboard/timeline.ts +288 -0
- package/packages/core/src/cli/dashboard/tree.ts +12 -1
- package/packages/core/src/cli/dashboard/vocabulary.ts +188 -0
- package/packages/core/src/cli/dispatch-args.ts +44 -1
- package/packages/core/src/cli/dispatch-frontend.ts +29 -30
- package/packages/core/src/cli/dispatch-launch-stop.ts +73 -0
- package/packages/core/src/cli/dispatch-launcher.ts +41 -46
- package/packages/core/src/cli/dispatch-repository-feed.ts +1 -1
- package/packages/core/src/cli/dispatch-web.ts +155 -0
- package/packages/core/src/cli/dispatch.ts +216 -38
- package/packages/core/src/cli/env.ts +42 -0
- package/packages/core/src/cli/help.ts +293 -12
- package/packages/core/src/cli/init-agent.ts +4 -1
- package/packages/core/src/cli/init-readiness-remote.ts +3 -2
- package/packages/core/src/cli/init-validation.ts +5 -5
- package/packages/core/src/cli/init.ts +3 -2
- package/packages/core/src/cli/judge-entry.ts +82 -0
- package/packages/core/src/cli/judge.ts +233 -0
- package/packages/core/src/cli/landings.ts +3 -2
- package/packages/core/src/cli/main.ts +481 -148
- package/packages/core/src/cli/mcp.ts +35 -3
- package/packages/core/src/cli/measurement-text.ts +19 -0
- package/packages/core/src/cli/objective.ts +154 -0
- package/packages/core/src/cli/operator-preference.ts +57 -0
- package/packages/core/src/cli/publication-settlement.ts +106 -22
- package/packages/core/src/cli/repo-lease.ts +3 -0
- package/packages/core/src/cli/repo-state.ts +56 -6
- package/packages/core/src/cli/repository-status.ts +205 -56
- package/packages/core/src/cli/status.ts +275 -16
- package/packages/core/src/cli/store-opening.ts +4 -0
- package/packages/core/src/cli/terminal-restore.ts +32 -7
- package/packages/core/src/cli/terminals.ts +205 -8
- package/packages/core/src/cli/ticket-start.ts +53 -0
- package/packages/core/src/cli/ticket.ts +166 -38
- package/packages/core/src/cli/upgrade-agent.ts +12 -8
- package/packages/core/src/cli/wait.ts +22 -8
- package/packages/core/src/cli/watch.ts +361 -95
- package/packages/core/src/cli/web.ts +139 -0
- package/packages/core/src/config/create-labels.ts +23 -0
- package/packages/core/src/config/live.ts +101 -14
- package/packages/core/src/config/load.ts +61 -20
- package/packages/core/src/config/local.ts +212 -0
- package/packages/core/src/config/pipeline-source.ts +3 -3
- package/packages/core/src/config/reference.ts +18 -0
- package/packages/core/src/config/roles.ts +182 -73
- package/packages/core/src/config/schema.ts +157 -19
- package/packages/core/src/events/catalog.ts +43 -3
- package/packages/core/src/events/compatibility.ts +7 -1
- package/packages/core/src/events/payloads.ts +685 -1
- package/packages/core/src/events/policy.ts +63 -0
- package/packages/core/src/events/repository.ts +153 -27
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +1797 -199
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/017d8dd5bb6dd80b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/0ab2a90d0305dc9d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/10a4657408d4e121.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1152a2e97ee81728.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/13ca84752c5f8b54.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1411d1cdbdd9911e.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1444fe1fa7fc802c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1491ac0600349391.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/178e12f1759b7552.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1921f86f752428c9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1972c1d66008ef6b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/19e8e43e7f3f1a06.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/20a85c143c3e8164.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/21ce2c0bf58318e1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/293dcb3a94fb3470.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2ab7436356267118.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2d084641735caaff.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3237bcecf68e5db9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/33d0cc593610e56f.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3451ed2136dcc356.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/358ec8693f2237e6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/35cf9ccc4478b2d2.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3649e7bd1203f154.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/378da6dece82202a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/38c75099d9191471.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/398952f1f01db1a3.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3b64d352d56c9121.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3dc486226c05372d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/431c9bb2ee8838e0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4400dffca929e2f0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/49064fc079964a5c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4932c70a2af97faf.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4edded75f17742f4.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4f00c0f2c8afd159.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516a5a7aadf97587.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516dc6ea85d67cd7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/536085773daf6b58.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/584e2ba74608e051.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/59ffaa6974094c72.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5bb43afb121674c6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5f0ca42af862c4ee.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6118031132db9bfc.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63107a8d58776b63.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63546b08d4d6fa11.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/643d70429ce03dad.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/677ea92572c29082.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6ae5bf60504d6467.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6bd6275061aaffa5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6efdc8defc75fccb.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/71c53d33f09d8204.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7267ca2757cffba7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/76b7d4244082b3f9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7749f918c6f10968.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7833e42d16301424.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7d4edad0614adaf1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/837365898d04f45a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/85f9f0c921b8b5bb.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8879f57a24733897.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/88cb9e71bdec972d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/89625654b02e9ac1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8a0cd6dd06cc155e.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8aa9ca8609dc051d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8c8640255bd61658.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8cc15eb1807c0157.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8ced97c44bc0af3a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8d4144004720b9f8.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8db633ead1807f8b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8e42cdbd0994ab0c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9011d0f6ff955ef9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/916ebc5433801c41.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9539b995af5c54a9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/95f391bfd7b7dbd7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9613e8fa568a9281.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9a68f8753bd9038d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9b25e58227080094.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9ee3919fbd4f9458.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a04a34cc2717147b.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a0b32c12e4e6edb6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a55218252707bdd3.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a732fd08b31522a6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a98af134be2da8a9.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a9d206a01f9039e5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/abf7fe3c92c82f2d.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ac928b04842c00db.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/af953392d81911da.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0d877c44810ecb0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0f7c6ebb2db57fc.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b905c22ec17eed31.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/bce0c54e865f4b79.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c68b7ee2e2610f30.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c7f7e0378aeea237.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c98cb1659eb142b6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ca830adf06ed55a1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cb3a219f33e437ca.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cf1e0c0d82567e0c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d008d86d9ff77b30.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d1432a819d8e48c5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d185ed6aa9192aff.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d5d5ccca80a893d8.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d873fad29d6c7e55.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/db84b12316e2da4a.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ddf6dc967d898767.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/dfc64de6e7bfc0a0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e2f18fa32fe1f6d0.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e37393fed29e84c5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e6a8585e2a054ff6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e7e9e327baca6903.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e86447af0571672c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ea819202d22122e5.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb4535585f2e84f6.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb7ddd5319d09e27.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eca4959b2b87ae15.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ee10d7959ec4843c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ef1b68347966ab26.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f3e55425cc41f230.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f40042c1cdb9fd43.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f48466215c790a3f.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f5b9ace9b59351e7.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f8155387eb5f375c.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fa8f1475a55be935.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fb21116a15d0b1f1.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fe95444fbeabe592.json.gz +0 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/09bf0a1611d07363.json +984 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/10eac4988d66e161.json +1067 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/1a436b5fb45aee3e.json +1116 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/249db6f7a41f90e2.json +161 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/25dcb2fb6eaa83f4.json +858 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/2e1bdc763924616f.json +4932 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/30e9dabce3c4263d.json +399 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/3c27f918b194e3b3.json +465 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/4898ef339c68fa36.json +83 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/51816c0ffa62af6e.json +417 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/561bf45320062a44.json +83 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5672d0233085d050.json +84 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5e39f42cbdbf35ef.json +163 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/7771a7a2250f9964.json +868 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/79f0e0f4ccd43ba2.json +455 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/859c09edac738823.json +1086 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/881c491321bec99a.json +1074 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/965f25c3af1d2cdc.json +160 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9b76d89da575ca90.json +20 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9eb485320a72a9ff.json +233 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a283c1f3462b1cc1.json +81 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a60448c01016135e.json +18 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6584fb61b6679bd.json +97 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6e570fb126991ff.json +36 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a8acf22c968b6e3d.json +81 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ba7b85895bf6698e.json +1153 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/c88365c25b3186d3.json +543 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/e8f0481b23f90056.json +711 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ee55782ed40ebbac.json +110 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc5082fac8167f3d.json +98 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc66408cde0b6b04.json +637 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fd55c329cfe921cc.json +1069 -0
- package/packages/core/src/kernel/attempt-creation-key.ts +20 -0
- package/packages/core/src/kernel/attempt-settlement.ts +125 -0
- package/packages/core/src/kernel/auto-merge-default.ts +1 -3
- package/packages/core/src/kernel/auto-merge.ts +1 -3
- package/packages/core/src/kernel/build-roster.ts +230 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +316 -40
- package/packages/core/src/kernel/dispatch-placement.ts +1 -1
- package/packages/core/src/kernel/dispatch-settings.ts +1 -4
- package/packages/core/src/kernel/dispatch-status.ts +3 -5
- package/packages/core/src/kernel/dispatch-upgrade.ts +1 -1
- package/packages/core/src/kernel/engine.ts +152 -18
- package/packages/core/src/kernel/execution-intervals.ts +61 -0
- package/packages/core/src/kernel/forge-checks.ts +140 -0
- package/packages/core/src/kernel/forge-health.ts +2 -2
- package/packages/core/src/kernel/generated-files.ts +43 -0
- package/packages/core/src/kernel/generated-regeneration.ts +254 -0
- package/packages/core/src/kernel/generators/build-log.ts +30 -2
- package/packages/core/src/kernel/generators/optimization-log.ts +679 -0
- package/packages/core/src/kernel/generators/panel-log.ts +133 -0
- package/packages/core/src/kernel/generators/repository-journals.ts +13 -0
- package/packages/core/src/kernel/guarded-forge.ts +76 -11
- package/packages/core/src/kernel/harvest.ts +1 -4
- package/packages/core/src/kernel/head-paths.ts +4 -1
- package/packages/core/src/kernel/history-retention.ts +337 -0
- package/packages/core/src/kernel/incremental-fixtures.ts +6 -0
- package/packages/core/src/kernel/incremental.ts +14 -4
- package/packages/core/src/kernel/integration-landing.ts +64 -13
- package/packages/core/src/kernel/integration-stack.ts +123 -20
- package/packages/core/src/kernel/integration-state.ts +39 -2
- package/packages/core/src/kernel/janitor-failure.ts +2 -0
- package/packages/core/src/kernel/kernel-git.ts +1 -1
- package/packages/core/src/kernel/landing-measurement.ts +275 -0
- package/packages/core/src/kernel/landing-readiness.ts +2 -0
- package/packages/core/src/kernel/landing-state.ts +20 -1
- package/packages/core/src/kernel/leaf-restack-base.ts +33 -7
- package/packages/core/src/kernel/leaf-restack-state.ts +99 -4
- package/packages/core/src/kernel/log-index-value.ts +2 -0
- package/packages/core/src/kernel/log-index.ts +100 -3
- package/packages/core/src/kernel/measurement.ts +406 -0
- package/packages/core/src/kernel/mixed-version.ts +6 -3
- package/packages/core/src/kernel/node-landing.ts +92 -18
- package/packages/core/src/kernel/node-restack-state.ts +27 -1
- package/packages/core/src/kernel/node-restack-transaction.ts +80 -23
- package/packages/core/src/kernel/node-verification-context.ts +14 -4
- package/packages/core/src/kernel/open-pr-backpressure-state.ts +24 -0
- package/packages/core/src/kernel/open-pr-backpressure.ts +133 -0
- package/packages/core/src/kernel/optimization-admission.ts +490 -0
- package/packages/core/src/kernel/optimization.ts +953 -0
- package/packages/core/src/kernel/panel.ts +225 -0
- package/packages/core/src/kernel/phase-failures.ts +121 -0
- package/packages/core/src/kernel/phases.ts +42 -6
- package/packages/core/src/kernel/pr-attachments.ts +4 -16
- package/packages/core/src/kernel/pr-summary.ts +2 -2
- package/packages/core/src/kernel/published-branch-head.ts +60 -0
- package/packages/core/src/kernel/read-deferrals.ts +2 -2
- package/packages/core/src/kernel/read-facts.ts +69 -31
- package/packages/core/src/kernel/reconcile-restack.ts +352 -103
- package/packages/core/src/kernel/reducer-identity.ts +659 -0
- package/packages/core/src/kernel/reducer-registry.ts +62 -9
- package/packages/core/src/kernel/reducer-revisions.ts +75 -0
- package/packages/core/src/kernel/reducer.ts +269 -11
- package/packages/core/src/kernel/reopen-state.ts +48 -0
- package/packages/core/src/kernel/reopen.ts +143 -0
- package/packages/core/src/kernel/replay-retention.ts +208 -39
- package/packages/core/src/kernel/repository-attention.ts +1 -1
- package/packages/core/src/kernel/rollup.ts +61 -0
- package/packages/core/src/kernel/service-facts.ts +19 -7
- package/packages/core/src/kernel/setup-streak.ts +38 -0
- package/packages/core/src/kernel/step-durations.ts +257 -0
- package/packages/core/src/kernel/target-observation.ts +6 -1
- package/packages/core/src/kernel/target-rewrite-recovery.ts +116 -0
- package/packages/core/src/kernel/terminal-guard.ts +13 -5
- package/packages/core/src/kernel/ticket-handbacks.ts +1 -1
- package/packages/core/src/kernel/ticket-migrations.ts +1 -1
- package/packages/core/src/kernel/ticket-preparation.ts +1 -1
- package/packages/core/src/kernel/ticket-source-health.ts +1 -1
- package/packages/core/src/kernel/ticket-starts.ts +118 -0
- package/packages/core/src/kernel/ticket-wait.ts +37 -2
- package/packages/core/src/kernel/verify-diff-base.ts +67 -0
- package/packages/core/src/kernel/verify-stage-state.ts +1 -0
- package/packages/core/src/kernel/verify-stages.ts +51 -1
- package/packages/core/src/objective.ts +532 -0
- package/packages/core/src/ontology.ts +54 -6
- package/packages/core/src/operator/agent-context-serve.ts +631 -0
- package/packages/core/src/operator/annotations.ts +105 -4
- package/packages/core/src/operator/attention.ts +470 -0
- package/packages/core/src/operator/canonical-skills.ts +35 -0
- package/packages/core/src/operator/cli-equivalents.ts +270 -0
- package/packages/core/src/operator/context-prompts.ts +61 -0
- package/packages/core/src/operator/control.ts +2 -1
- package/packages/core/src/operator/index.ts +61 -1
- package/packages/core/src/operator/landings.ts +28 -19
- package/packages/core/src/operator/optimization.ts +314 -0
- package/packages/core/src/operator/protocol.ts +33 -1
- package/packages/core/src/operator/query.ts +137 -73
- package/packages/core/src/operator/read-view.ts +5 -2
- package/packages/core/src/operator/registry.ts +625 -59
- package/packages/core/src/operator/requests.ts +45 -20
- package/packages/core/src/operator/sandbox-host.ts +107 -11
- package/packages/core/src/operator/sandbox-resolver.ts +253 -0
- package/packages/core/src/operator/sandbox.ts +778 -82
- package/packages/core/src/operator/ticket-asset-list.ts +77 -0
- package/packages/core/src/operator/ticket-assets.ts +167 -0
- package/packages/core/src/operator/ticket-start.ts +152 -0
- package/packages/core/src/operator/tickets.ts +36 -4
- package/packages/core/src/plugin-sdk/index.ts +24 -0
- package/packages/core/src/plugins/manifest.ts +1 -1
- package/packages/core/src/plugins/registry.ts +1 -0
- package/packages/core/src/ports/forge/contract.ts +9 -0
- package/packages/core/src/ports/forge/fake.ts +114 -2
- package/packages/core/src/ports/forge/git-blob.ts +15 -0
- package/packages/core/src/ports/forge/git-rewrite.ts +6 -4
- package/packages/core/src/ports/forge/github-readiness.ts +1 -1
- package/packages/core/src/ports/forge/github-transport.ts +156 -1
- package/packages/core/src/ports/forge/github.ts +388 -100
- package/packages/core/src/ports/forge/local-git.ts +61 -1
- package/packages/core/src/ports/forge/readiness.ts +15 -3
- package/packages/core/src/ports/forge-failure.ts +46 -0
- package/packages/core/src/ports/forge-request-context.ts +23 -1
- package/packages/core/src/ports/forge-telemetry.ts +16 -0
- package/packages/core/src/ports/runner/antigravity-test.fixture.ts +149 -0
- package/packages/core/src/ports/runner/antigravity.ts +1071 -0
- package/packages/core/src/ports/runner/claude-test.fixture.ts +71 -0
- package/packages/core/src/ports/runner/claude.ts +6 -1
- package/packages/core/src/ports/runner/codex-test.fixture.ts +63 -0
- package/packages/core/src/ports/runner/codex.ts +11 -2
- package/packages/core/src/ports/runner/contract.ts +25 -1
- package/packages/core/src/ports/runner/fake.ts +2 -2
- package/packages/core/src/ports/runner/native-cli-fixture.ts +40 -5
- package/packages/core/src/ports/runner/native-process-fixture.ts +4 -1
- package/packages/core/src/ports/runner/pi.ts +23 -7
- package/packages/core/src/ports/runner/production.ts +19 -2
- package/packages/core/src/ports/runner/session-env.ts +65 -5
- package/packages/core/src/ports/runner/start-prompt.ts +6 -4
- package/packages/core/src/ports/tickets/contract.ts +75 -2
- package/packages/core/src/ports/tickets/fake.ts +11 -0
- package/packages/core/src/ports/tickets/file.ts +18 -0
- package/packages/core/src/ports/tickets/github-fake.ts +136 -4
- package/packages/core/src/ports/tickets/github.ts +407 -35
- package/packages/core/src/ports/tickets/hosted-index.ts +16 -1
- package/packages/core/src/ports/tickets/labels.ts +21 -0
- package/packages/core/src/ports/tickets/linear.ts +163 -0
- package/packages/core/src/ports/tickets/migration.ts +2 -0
- package/packages/core/src/ports/tickets/priority.ts +20 -0
- package/packages/core/src/ports/tickets/remote-protocol.ts +105 -6
- package/packages/core/src/ports/tickets/remote.ts +203 -17
- package/packages/core/src/ports/tickets/search.ts +139 -0
- package/packages/core/src/ports/tickets/tree.ts +17 -4
- package/packages/core/src/ports/types.ts +202 -6
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +16 -4
- package/packages/core/src/ports/workspace/commit-preservation.ts +182 -64
- package/packages/core/src/ports/workspace/create.ts +18 -1
- package/packages/core/src/ports/workspace/fake.ts +340 -12
- package/packages/core/src/ports/workspace/git-worktree.ts +846 -43
- package/packages/core/src/ports/workspace/operator-sandbox.ts +129 -12
- package/packages/core/src/ports/workspace/process-group.ts +48 -0
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +1539 -221
- package/packages/core/src/processes/agent-context-assemble.ts +576 -0
- package/packages/core/src/processes/agent-context.ts +469 -0
- package/packages/core/src/processes/build-execution-state.ts +1 -3
- package/packages/core/src/processes/build-runner.ts +1982 -528
- package/packages/core/src/processes/dispatch-failure-budget.ts +1 -1
- package/packages/core/src/processes/dispatcher-selectors.ts +15 -13
- package/packages/core/src/processes/dispatcher.ts +3003 -308
- package/packages/core/src/processes/execution-no-progress.ts +40 -1
- package/packages/core/src/processes/execution-settlement.ts +2 -6
- package/packages/core/src/processes/harvest-execution-state.ts +2 -6
- package/packages/core/src/processes/harvest-runner.ts +7 -2
- package/packages/core/src/processes/infrastructure-failure-budget.ts +1 -3
- package/packages/core/src/processes/judge-launcher.ts +38 -0
- package/packages/core/src/processes/measurement-runner.ts +235 -0
- package/packages/core/src/processes/optimization-activity.ts +120 -0
- package/packages/core/src/processes/optimization-merges.ts +101 -0
- package/packages/core/src/processes/optimization-stop.ts +179 -0
- package/packages/core/src/processes/panel-runner.ts +756 -0
- package/packages/core/src/processes/phase-failure-budget.ts +2 -0
- package/packages/core/src/processes/publication-state.ts +1 -4
- package/packages/core/src/processes/repo-view.ts +154 -6
- package/packages/core/src/processes/sandbox-state.ts +54 -10
- package/packages/core/src/processes/tick-publication.ts +2 -0
- package/packages/core/src/processes/tick-state.ts +1 -3
- package/packages/core/src/processes/workspace-preparation.ts +76 -0
- package/packages/core/src/processes/workspace-preservation.ts +67 -9
- package/packages/core/src/scenarios/harness.ts +19 -13
- package/packages/core/src/store/account-redaction.ts +1 -0
- package/packages/core/src/store/adapter.ts +52 -1
- package/packages/core/src/store/agent-context.ts +432 -0
- package/packages/core/src/store/build-feed.ts +291 -0
- package/packages/core/src/store/build-scope.ts +19 -1
- package/packages/core/src/store/contract.ts +955 -14
- package/packages/core/src/store/digest.ts +104 -9
- package/packages/core/src/store/histogram.ts +113 -0
- package/packages/core/src/store/judge-authority.ts +161 -0
- package/packages/core/src/store/local/schema.ts +62 -0
- package/packages/core/src/store/local/store.ts +628 -22
- package/packages/core/src/store/local/ticket-asset-heads.ts +23 -0
- package/packages/core/src/store/memory.ts +461 -69
- package/packages/core/src/store/open-builds.ts +19 -0
- package/packages/core/src/store/phase-session.ts +256 -6
- package/packages/core/src/store/reduced-reads.ts +24 -4
- package/packages/core/src/store/reducer-value-shapes.json +18023 -11824
- package/packages/core/src/store/reducer-values.ts +6 -1
- package/packages/core/src/store/remote/client.ts +220 -4
- package/packages/core/src/store/remote/compatibility.ts +1 -1
- package/packages/core/src/store/remote/credentials.ts +31 -1
- package/packages/core/src/store/remote/index.ts +41 -0
- package/packages/core/src/store/remote/protocol.ts +107 -0
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.10.0.json +34439 -0
- package/packages/core/src/store/remote/released-reducer-values/1.11.0.json +35680 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -16
- package/packages/core/src/store/remote/token.ts +13 -4
- package/packages/core/src/store/repo-state-events.ts +6 -8
- package/packages/core/src/store/retention.ts +23 -1
- package/packages/core/src/store/rollups.ts +337 -0
- package/packages/core/src/store/session-handle.ts +20 -2
- package/packages/core/src/store/session-reducer.ts +1 -4
- package/packages/core/src/store/snapshots.ts +10 -0
- package/packages/core/src/store/ticket-assets.ts +1 -3
- package/packages/core/src/store/types.ts +117 -9
- package/packages/core/src/testing/dispatch-read-budget.ts +1162 -2
- package/packages/core/src/testing/git-config-isolation.ts +27 -0
- package/packages/core/src/testing/index.ts +40 -0
- package/packages/core/src/testing/memory-operator-sandbox.ts +346 -0
- package/packages/core/src/testing/reduced-read-budget.ts +5349 -153
- package/packages/core/src/web/analytics-source.ts +303 -0
- package/packages/core/src/web/assets/Atkinson-OFL.txt +93 -0
- package/packages/core/src/web/assets/AtkinsonHyperlegibleNext.latin.woff2 +0 -0
- package/packages/core/src/web/assets/JetBrains-OFL.txt +93 -0
- package/packages/core/src/web/assets/JetBrainsMono.latin.woff2 +0 -0
- package/packages/core/src/web/assets/app.css +1 -0
- package/packages/core/src/web/assets/app.js +9 -0
- package/packages/core/src/web/assets/manifest.json +31 -0
- package/packages/core/src/web/assets/theme.js +1 -0
- package/packages/core/src/web/bounded.ts +31 -0
- package/packages/core/src/web/http.ts +315 -0
- package/packages/core/src/web/hub.ts +160 -0
- package/packages/core/src/web/options.ts +38 -0
- package/packages/core/src/web/overview-source.ts +322 -0
- package/packages/core/src/web/page.ts +56 -0
- package/packages/core/src/web/protocol.ts +151 -0
- package/packages/core/src/web/read-only.ts +23 -0
- package/packages/core/src/web/repository-source.ts +35 -0
- package/packages/core/src/web/server.ts +97 -0
- package/skills/code-review/SKILL.md +26 -2
- package/skills/finalize/SKILL.md +10 -4
- package/skills/guide/SKILL.md +743 -123
- package/skills/guide/references/accounts.md +2 -1
- package/skills/guide/references/integration-tree.md +102 -11
- package/skills/guide/references/merge-policy.md +30 -14
- package/skills/guide/references/migration-1.0.md +2 -1
- package/skills/guide/references/operator-api.md +251 -20
- package/skills/guide/references/optimization-nodes.md +1100 -0
- package/skills/guide/references/plugin-authoring.md +83 -13
- package/skills/guide/references/remote-store-protocol.md +137 -17
- package/skills/guide/references/remote-ticket-protocol.md +90 -2
- package/skills/guide/references/restacking.md +119 -15
- package/skills/guide/references/setup.md +27 -4
- package/skills/guide/references/spec-standard.md +2 -1
- package/skills/guide/references/ticket-dependencies.md +15 -3
- package/skills/guide/references/ticket-migration.md +4 -2
- package/skills/implement/SKILL.md +74 -5
- package/skills/judge/SKILL.md +43 -0
- package/skills/operate/SKILL.md +374 -57
- package/skills/plan/SKILL.md +28 -4
- package/skills/plan-review/SKILL.md +24 -3
- package/skills/propose/SKILL.md +121 -0
- package/skills/reconcile/SKILL.md +21 -2
- package/skills/spec/SKILL.md +63 -11
- package/skills/tickets/SKILL.md +94 -9
- package/templates/hosted-service/package.json +2 -2
package/docs/dispatcher.md
CHANGED
|
@@ -27,7 +27,8 @@ bun ab dispatch --viewer --dispatched-by app.autobuild.run
|
|
|
27
27
|
|
|
28
28
|
The optional label is descriptive input. Every frame says `viewer · dispatched by
|
|
29
29
|
<label>`, or simply `viewer` when omitted. Plain/non-TTY output states the mode
|
|
30
|
-
at startup and prints state changes. `--
|
|
30
|
+
at startup and prints state changes. With `--web`, it prints only the URL and the
|
|
31
|
+
web UI is the presentation. `--once` reads one snapshot; `--interval <s>`
|
|
31
32
|
sets the polling cadence. Without a recorded configuration it waits for the dispatcher.
|
|
32
33
|
|
|
33
34
|
The viewer takes no repository lease and starts no build, harvest, scan, janitor,
|
|
@@ -37,20 +38,35 @@ intake and harvest gates, harvest resume/acknowledgement, queued discard and
|
|
|
37
38
|
confirmed abort. Navigation and session inspection work as usual. These record
|
|
38
39
|
operator intent for the dispatcher to execute. No current control needs a local
|
|
39
40
|
dispatcher. Startup intake flags and `--repository` are rejected; use a local
|
|
40
|
-
checkout with its configured Store or `--store`. Operator agents
|
|
41
|
-
|
|
41
|
+
checkout with its configured Store or `--store`. Operator agents follow the
|
|
42
|
+
[dispatcher ownership boundaries](#dispatcher-ownership) for startup and process
|
|
43
|
+
management; `ab web` is always available for read-only viewing.
|
|
42
44
|
|
|
43
45
|
## Ready work becomes a build
|
|
44
46
|
|
|
45
47
|
A ticket is claimed when it passes every gate:
|
|
46
48
|
|
|
47
|
-
- **Ready state.** The configured workflow state, required labels and source filters.
|
|
49
|
+
- **Ready state.** The configured workflow state, plus, for ordinary intake, the required labels and source-specific listing filters such as the ready assignee.
|
|
48
50
|
- **Blockers.** Every dependency is done.
|
|
49
51
|
- **Destination.** Its target (`main` or an integration node) accepts new work.
|
|
50
52
|
|
|
51
|
-
Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
|
|
53
|
+
Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. With `[policy].maxOpenPrs` set, open-PR backpressure pauses new normal-priority claims while that many root PRs are open and unmerged, until the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are equal); urgent claims and in-flight work continue. See [`[policy]`](configuration.md#policy). See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
To start one ticket without turning intake on for the whole ready queue, run `ab start <ticket-id> [--priority manual|urgent|normal]` (or the `tickets.start` operator tool). The running dispatcher, local or hosted, claims just that ticket on its next tick with a free slot in the request's tier and records the outcome as a `ticket.start-settled` event shown by `ab watch` and `ab repository status`. The default `manual` tier goes ahead of all waiting work; `urgent` and `normal` wait their turn as described below. The ticket must still be in the ready state, meet the spec standard, have no unresolved blockers and a destination that accepts work, and is deduplicated against existing builds; capacity and repository pause still apply. Listing labels and the ready assignee are not applied, because the ticket is named. Every tier bypasses intake off and open-PR backpressure for that ticket only. See `ab help start`.
|
|
56
|
+
|
|
57
|
+
Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps the builds running work: a work build holds a slot until it finishes its pipeline (verification and finalize), even while paused or blocked on a question. Once it waits for a merge decision it holds none; if its target moves or its PR conflicts, it waits for a slot ahead of normal ticket claims to restack, re-verify or reconcile. A work build waiting on other tickets (`ab wait-on`) also holds none, and when the wait ends it waits for a slot ahead of normal ticket claims to resume. Finished and waiting builds keep their workspaces, so retained workspaces can exceed `capacity` while running work cannot. An integration node holds a slot only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
|
|
58
|
+
|
|
59
|
+
## Slot admission order
|
|
60
|
+
|
|
61
|
+
A free slot goes, in order, to:
|
|
62
|
+
|
|
63
|
+
1. `manual` start requests (`ab start`'s default);
|
|
64
|
+
2. urgent parked work: nodes and finished or waiting builds that must verify, reconcile, resume or propose;
|
|
65
|
+
3. urgent ticket claims: `ab start --priority urgent` requests, then urgent ready tickets;
|
|
66
|
+
4. normal parked work;
|
|
67
|
+
5. normal ticket claims: `ab start --priority normal` requests, then normal ready tickets.
|
|
68
|
+
|
|
69
|
+
Each tier keeps its usual order, start requests oldest first. A pending start request reserves its slot ahead of the tiers below it until it settles or is cancelled. An ordinary build takes its ticket's priority when it is claimed; a build started by an `urgent` request is urgent, and `manual` never becomes a build priority. An [optimization node's attempts](optimization-nodes.md#attempts) claim at the node's current priority instead: a later `ab priority` on the node affects attempts claimed afterwards, while an already claimed attempt keeps its build priority. `ab priority <slug> urgent|normal` (or the `builds.control` action `priority`) changes an active build's priority, for example to expedite a waiting reconcile that now blocks other work; it never changes the ticket. While urgent tickets are ready, normal parked work waits for a slot until the dispatcher has offered urgent tickets the free slots that tick. An urgent ticket blocked on a dependency reserves nothing. Priority orders free slots only: it never interrupts a running build. `ab repository status`, `ab builds` and both dashboards mark urgent waiters, pending start requests by tier and urgent ticket claims waiting ahead of normal parked work.
|
|
54
70
|
|
|
55
71
|
|
|
56
72
|
## The log is the source of truth
|
|
@@ -66,6 +82,33 @@ State is reduced from those events; a snapshot is only a cache.
|
|
|
66
82
|
Agents report through the typed `ab` CLI (`ab done`, `ab verdict`), not their output; code validates the deposit, applies the gates and records the transition.
|
|
67
83
|
|
|
68
84
|
|
|
85
|
+
## Repository agent context
|
|
86
|
+
|
|
87
|
+
Every dispatcher, in checkout or origin mode, keeps a record of the repository's agent context in the store. It reads the committed tree at the base-branch head through the forge, never the working copy, so both modes record identical content for the same commit.
|
|
88
|
+
|
|
89
|
+
| Captured | Selection |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| Skills | Every directory under `.agents/skills/` or `.claude/skills/` holding a `SKILL.md`, with all its files: shipped, customized and repository-local skills alike. Symlinked or byte-identical copies appear once with every install path; dot-directories such as `.ab-pristine` are skipped. |
|
|
92
|
+
| Instructions | Every `AGENTS.md` and `CLAUDE.md`, root and nested. The two collapse into one entry per directory when identical. |
|
|
93
|
+
| Imports | Files the instructions import by `@path`, followed transitively, stored as separate entries. Paths outside the repository are listed as omitted. |
|
|
94
|
+
|
|
95
|
+
- **Revisions.** The record is a repository artifact, `agent-context`. A new revision is written only when the captured content changes, not on every base-branch commit. It is retention-managed like the dispatcher's run and config artifacts: the newest 200 revisions survive (`AB_ARTIFACT_RETENTION_MAX_REVISIONS` overrides the bound).
|
|
96
|
+
- **Pacing.** Each dispatcher process checks the base head on its first tick, then at most once a minute. An unchanged head reads no tree, blob, record or event. A capture cut short by an invocation deadline keeps the bytes it fetched and resumes on the next invocation.
|
|
97
|
+
- **Bounds.** A record over 2.25 MiB encoded (`oversize`) or 32 MiB uncompressed (`raw-oversize`) is not written. The last good revision stays, and the diagnostic names the largest contributors.
|
|
98
|
+
- **Scope.** The dispatcher captures only. Connected agents read the record through the [agent-context tools and prompts](operator-api.md#agent-context).
|
|
99
|
+
|
|
100
|
+
`ab dispatch` prints each diagnostic once:
|
|
101
|
+
|
|
102
|
+
| Diagnostic | Meaning | Next attempt |
|
|
103
|
+
| --- | --- | --- |
|
|
104
|
+
| `oversize`, `raw-oversize` | Bound exceeded; last good revision kept | When the base head moves |
|
|
105
|
+
| `tree-unlistable` | The forge cannot list a directory completely; last good revision kept | When the base head moves |
|
|
106
|
+
| `capture-failed` | Unexpected read or write failure | After five minutes, or when the base head moves |
|
|
107
|
+
| `unavailable` | The forge cannot read trees or blobs | None; dispatching continues |
|
|
108
|
+
|
|
109
|
+
A repository with no base branch yet has nothing to capture and reports nothing.
|
|
110
|
+
|
|
111
|
+
|
|
69
112
|
## Resume the work, not the chat
|
|
70
113
|
|
|
71
114
|
A restart loses nothing. The dispatcher continues each build from its recorded phase, completed boundaries, artifacts and feedback, even in a replacement sandbox. Authority boundaries hold:
|
|
@@ -103,3 +146,33 @@ startup reports it as a repository resolution error naming its cause, and
|
|
|
103
146
|
neither explicit mode bypasses it. Origin mode (`--repository` or
|
|
104
147
|
`AB_REPOSITORY`) and hosted cron dispatch bypass this check. Placement is a startup snapshot, not a
|
|
105
148
|
liveness probe or a polling input.
|
|
149
|
+
|
|
150
|
+
## Dispatcher ownership
|
|
151
|
+
|
|
152
|
+
Read `ab repository status --json` before starting a dispatcher. The shared
|
|
153
|
+
`dispatcherRunning` field (also in the `repository.status` operator tool) is true
|
|
154
|
+
when a holder, expired holder or unfinished handoff names a draining predecessor.
|
|
155
|
+
An empty drain map does not prove retirement. Missing or unreadable running
|
|
156
|
+
status fails closed: never start while running or while that fact is unknown.
|
|
157
|
+
|
|
158
|
+
`ab operator dispatcher --json` reads the checkout's preference; save a choice
|
|
159
|
+
with `ab operator dispatcher human` or `ab operator dispatcher agent`. The optional
|
|
160
|
+
`[operator] dispatcher = "human" | "agent"` lives only in `.autobuild/local.toml`;
|
|
161
|
+
no choice is assumed when unset. Even an empty `[operator]` is rejected in
|
|
162
|
+
`autobuild.toml`. Saving preserves other settings semantically and may normalize
|
|
163
|
+
TOML formatting. It needs no store or credential, writes no event, and is refused
|
|
164
|
+
inside build or harvest sessions. Reading a missing local file creates nothing.
|
|
165
|
+
|
|
166
|
+
Repository instructions take precedence. With none running, follow the saved
|
|
167
|
+
preference or ask who should run it and offer to save the answer. For human
|
|
168
|
+
ownership, give startup instructions and wait. For agent ownership, start
|
|
169
|
+
`ab dispatch --web --plain --json` under the harness's managed background lifetime
|
|
170
|
+
and give the person its URL. Stop only a dispatcher this session started, only
|
|
171
|
+
when requested, using a clean stop with drain. Never adopt, restart, kill or manage
|
|
172
|
+
another session's process; a preference does not authorize takeover.
|
|
173
|
+
|
|
174
|
+
`ab web [--json]` is always allowed, even while a dispatcher exists: it serves a
|
|
175
|
+
read-only UI without acquiring a dispatcher lease. `ab dispatch --web` serves the
|
|
176
|
+
same UI alongside dispatch; `--plain` keeps the URL on stdout and diagnostics on
|
|
177
|
+
stderr. Both default to loopback. Serving beyond loopback has no access control;
|
|
178
|
+
see [operator surfaces](operator-surfaces.md) for binding and refresh details.
|
package/docs/forges.md
CHANGED
|
@@ -107,7 +107,14 @@ An adapter must provide:
|
|
|
107
107
|
- guarded merge and comments
|
|
108
108
|
- every capability it advertises
|
|
109
109
|
|
|
110
|
-
Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
|
|
110
|
+
Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Archives are best effort: throw a plain error for a refusal (the kernel keeps a BuildStore copy instead) and `ArchiveConflictError` when the immutable ref names a different SHA. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
|
|
111
|
+
|
|
112
|
+
[Repository agent context](dispatcher.md#repository-agent-context) capture needs `remoteBranchSha` and two optional read capabilities:
|
|
113
|
+
|
|
114
|
+
- `readTree(commit)` returns the commit's complete recursive tree, directories included, each entry with its object id and each blob with its exact byte size. Never return a partial listing: throw `ForgeTreeUnlistable` (SDK, with `isForgeTreeUnlistable`) naming the directory you cannot list completely.
|
|
115
|
+
- `readBlob(oid)` returns the blob's exact bytes, verified against `oid`.
|
|
116
|
+
|
|
117
|
+
Without them the dispatcher still dispatches; it reports `unavailable` once and captures no agent context.
|
|
111
118
|
|
|
112
119
|
Classify failures with `ForgeFailure` (API 1.8):
|
|
113
120
|
|
package/docs/getting-started.md
CHANGED
|
@@ -11,7 +11,7 @@ order: 1
|
|
|
11
11
|
Start in the repository you want Autobuild to build. You need:
|
|
12
12
|
|
|
13
13
|
- [Bun](https://bun.sh) and git
|
|
14
|
-
- your agent runtime's local prerequisites: Claude Code, Codex CLI, or
|
|
14
|
+
- your agent runtime's local prerequisites: Claude Code, Codex CLI, Pi, or Antigravity CLI
|
|
15
15
|
- for the GitHub forge, an authenticated [gh CLI](https://cli.github.com) or an exported `GITHUB_TOKEN` or `GH_TOKEN`; the local-git forge needs no account or remote
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,13 +33,15 @@ Leaves run the [normal build pipeline](builds.md). A node collects, verifies, me
|
|
|
33
33
|
- **Repair** a failed node check with a child ticket targeting the node.
|
|
34
34
|
- **Merge** closes admission; a node isn't a perpetual staging branch.
|
|
35
35
|
|
|
36
|
+
A node whose spec declares an objective is an [optimization node](optimization-nodes.md): it proposes, measures and lands its own attempts toward a metric or a judge panel, then waits for you to land it.
|
|
37
|
+
|
|
36
38
|
|
|
37
39
|
## One identity per leaf change
|
|
38
40
|
|
|
39
41
|
A leaf contributes one canonical net change, however many commits it took.
|
|
40
42
|
|
|
41
|
-
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash merges keep it; node integration keeps each contributing identity, in order, rather than one node commit.
|
|
42
|
-
- **Restacks.** When a destination moves, a leaf restacks onto it at its usual restack points; a node restacks only on demand, and each descendant node needs its own demand. Clean replay is automatic
|
|
43
|
+
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash merges keep it; node integration keeps each contributing identity, in order, alongside the node's verified hand-pushed tweaks, rather than one node commit.
|
|
44
|
+
- **Restacks.** When a destination moves, a leaf restacks onto it at its usual restack points; a node restacks only on demand, and each descendant node needs its own demand. Clean replay is automatic, and so is a conflict confined to files the repository declares as generated, which their declared command rebuilds. Any other conflict attaches a reconcile runner with the source change's context, then verification as required.
|
|
43
45
|
- **Reverification.** Node verification covers the exact node head and parent; a change to either voids merge eligibility until reverified, even after a clean restack. A cleanly restacked waiting leaf can keep its prior verification; reports cite their actual head and base.
|
|
44
46
|
|
|
45
47
|
|
package/docs/integration-tree.md
CHANGED
|
@@ -98,12 +98,13 @@ execution lease or dispatch capacity. A PR opens or is adopted when the node
|
|
|
98
98
|
has commits its current parent lacks; parent-only advancement remains empty.
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
A node requesting reconcile
|
|
102
|
-
claims. The request is durable: a
|
|
103
|
-
|
|
101
|
+
A node requesting reconcile, verification or, for an optimization node,
|
|
102
|
+
propose is admitted before normal ticket claims; urgent work goes first. The request is durable: a
|
|
103
|
+
prepared verification cycle, a restack conflict or an open proposal request,
|
|
104
|
+
with no runner yet. Until the node holds its slot, intake reserves one
|
|
104
105
|
slot for it, and the dispatcher checks its admission every tick regardless of
|
|
105
106
|
idle node polling, so a slot freed in any tick goes to the node, not to a new
|
|
106
|
-
claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
|
|
107
|
+
normal claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
|
|
107
108
|
paused descendants, following accepted source-qualified build target ancestry.
|
|
108
109
|
Running descendants and unrelated builds still count; ordinary blocked and
|
|
109
110
|
paused work retains its slot for every other admission, except a work build
|
|
@@ -112,7 +113,7 @@ node occupancy before the runner starts. This exception never raises the budget
|
|
|
112
113
|
for new claims. Status and both dashboards report actual occupancy, configured
|
|
113
114
|
capacity, effective display capacity and the nodes using descendant-held slots.
|
|
114
115
|
Status, `ab builds` and both dashboards report each node waiting for a slot
|
|
115
|
-
ahead of
|
|
116
|
+
ahead of normal ticket claims, marking urgent ones. Idle collecting nodes remain free.
|
|
116
117
|
|
|
117
118
|
Claims freeze the destination build generation and branch. Missing, unopened,
|
|
118
119
|
merged, closed or aborted targets leave work queued with diagnostics. The newest
|
|
@@ -179,11 +180,93 @@ own issue; landed child commits keep their own messages.
|
|
|
179
180
|
|
|
180
181
|
Human forge merges are an explicit escape hatch, including while incomplete,
|
|
181
182
|
paused or unverified. The janitor records human provenance and whether the actual
|
|
182
|
-
merged head was verified, then completes the ticket.
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
merged head was verified, then completes the ticket. A recorded landing, by the
|
|
184
|
+
kernel or a human, ends the node's verification: no new cycle is prepared, and
|
|
185
|
+
an open one is cancelled. Its runner stops the running check and ends open
|
|
186
|
+
sessions as an operator stop does, without recording results, and the janitor
|
|
187
|
+
completes the node once that execution has ended. A node whose head is its
|
|
188
|
+
parent's, such as one the parent was fast-forwarded onto, has nothing to verify
|
|
189
|
+
and never prepares a cycle. A human merge of an
|
|
190
|
+
optimization attempt also skips its landing measurement; when the merged head
|
|
191
|
+
was never measured, the attempt stays in flight and keeps its concurrency slot
|
|
192
|
+
until an operator settles it with `ab objective <node> --settle-unmeasured`
|
|
193
|
+
(see [landing and settlement](optimization-nodes.md#landing-and-settlement)).
|
|
194
|
+
Closing without merge or aborting closes admission and returns the ticket to
|
|
195
|
+
triage (or ready with `ab abort --to ready`), except that an optimization
|
|
196
|
+
attempt settles `aborted` and its ticket moves to rejected; already claimed
|
|
185
197
|
children retain their frozen destination.
|
|
186
198
|
|
|
199
|
+
### Optimization nodes
|
|
200
|
+
|
|
201
|
+
A node becomes an optimization node when its spec carries exactly one fenced
|
|
202
|
+
block whose info string is exactly `autobuild-objective`, holding a TOML
|
|
203
|
+
objective: a purpose, a command metric with a direction or a judge panel, a
|
|
204
|
+
harness of path selectors, an epsilon, and a budget of `maxAttempts`,
|
|
205
|
+
`maxHours` (active hours, not wall-clock time) 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, active hours and attempts against the budget, and stop
|
|
236
|
+
eligibility by threshold, plateau and budget. A child is an attempt only when
|
|
237
|
+
its ticket was created from a recorded proposal of the node; a repair child
|
|
238
|
+
filed by hand counts toward neither budget nor plateau. Rejected attempts are
|
|
239
|
+
no-improvement, declined, stopped and aborted settlements; only no-improvement
|
|
240
|
+
and declined advance the plateau. See
|
|
241
|
+
[progress](optimization-nodes.md#progress) for the full definitions.
|
|
242
|
+
|
|
243
|
+
A child of an optimization node lands only with a measurement of its exact head
|
|
244
|
+
against the node's exact current head: an attempt must improve by at least ε,
|
|
245
|
+
and any other child must not regress by more than ε. A sibling landing first
|
|
246
|
+
makes the measurement stale, and the child restacks and is measured again. An
|
|
247
|
+
attempt that does not land settles and its ticket moves to the rejected role,
|
|
248
|
+
including after an operator abort; it never returns to triage. See
|
|
249
|
+
[landing and settlement](optimization-nodes.md#landing-and-settlement).
|
|
250
|
+
An optimization node follows `branch opening → starting measurement →
|
|
251
|
+
(propose → collecting)*`, then completes, verifies and merges like any node.
|
|
252
|
+
Once the starting value is measured, the dispatcher requests a `propose`
|
|
253
|
+
session whenever the node has room within its concurrency and attempts budget.
|
|
254
|
+
The request takes a slot ahead of normal ticket claims, like node reconcile and
|
|
255
|
+
verification. The session runs the `ab-propose` skill on the node head, reads
|
|
256
|
+
the attempt ledger and deposits proposals with `ab propose`; it never creates
|
|
257
|
+
tickets. The dispatcher files each proposal as a work ticket targeting the
|
|
258
|
+
node, in the ready role, deduplicated by proposal id. Two consecutive empty
|
|
259
|
+
proposals stop the node as `exhausted`. See the
|
|
260
|
+
[proposer phase](optimization-nodes.md#proposer-phase).
|
|
261
|
+
|
|
262
|
+
The dispatcher stops an optimization node on the first tick a threshold,
|
|
263
|
+
plateau or budget cause is eligible; `ab objective <node> --stop` stops it by
|
|
264
|
+
hand. A stopped node cancels or aborts its in-flight attempts according to its
|
|
265
|
+
stop mode. An optimization node is complete only once it has stopped and no
|
|
266
|
+
attempt is running or waiting to land; stopping is not consent, so land it with
|
|
267
|
+
`ab merge <node>`. See
|
|
268
|
+
[stopping and completion](optimization-nodes.md#stopping-and-completion).
|
|
269
|
+
|
|
187
270
|
### Node verification context
|
|
188
271
|
|
|
189
272
|
In node `verify:*` context, `nodeVerification` in the manifest identifies the
|
|
@@ -252,8 +335,12 @@ An open node supports three ways to iterate:
|
|
|
252
335
|
- **Push small maintainer-authorized tweaks.** Push to the node's recorded branch
|
|
253
336
|
with meaningful commit messages describing intent. Verification reads the frozen
|
|
254
337
|
range's owned `handPushedCommits` messages, judges quality and consistency, and
|
|
255
|
-
cannot fail a tweak solely because it lacks a covering spec.
|
|
256
|
-
|
|
338
|
+
cannot fail a tweak solely because it lacks a covering spec. Tweaks need no
|
|
339
|
+
`Autobuild-Build:` trailer and land with the node exactly as pushed. Keep the
|
|
340
|
+
node branch linear: rebase rather than merge, because landing refuses a merge
|
|
341
|
+
commit or broken ancestry and raises operator attention naming the commit. This
|
|
342
|
+
is maintainer iteration, not permission for phase agents to bypass their
|
|
343
|
+
publication boundary.
|
|
257
344
|
- **Revise the charter when the charter itself changes.** Use
|
|
258
345
|
`ab answer <node> --revise-spec replacement.md`, or update the ticket and import
|
|
259
346
|
it with `ab answer <node> --revise-spec-from-ticket`. A ticket edit alone does
|
|
@@ -362,7 +449,11 @@ pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
|
362
449
|
A concurrent state change refuses publication with a retry explanation;
|
|
363
450
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
364
451
|
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
365
|
-
spec and its publication is confirmed.
|
|
452
|
+
spec and its publication is confirmed. A settled, unmerged leaf awaiting merge
|
|
453
|
+
revises without an escalation through `ab reopen`.
|
|
454
|
+
A revision of an optimization node may change its `autobuild-objective` block
|
|
455
|
+
but cannot remove it, and a revision of a plain node or a leaf cannot add one;
|
|
456
|
+
both refusals record nothing.
|
|
366
457
|
|
|
367
458
|
|
|
368
459
|
|
package/docs/merge-policy.md
CHANGED
|
@@ -53,15 +53,20 @@ is cancelled before the new head is published. Policy is live dispatcher
|
|
|
53
53
|
configuration, separate from the pinned execution pipeline.
|
|
54
54
|
|
|
55
55
|
`ab hold <slug>` suppresses merge and revokes consent, even before readiness.
|
|
56
|
+
`--reason <text>` records why; status, merges, builds and both dashboards show it
|
|
57
|
+
until a later hold or merge replaces it.
|
|
56
58
|
`ab merge <slug>` requires readiness, clears hold and consents to this merge
|
|
57
59
|
into its destination. Consent survives head replacement, clean restacking,
|
|
58
60
|
verification and re-finalization until hold or completion; it approves the merge
|
|
59
61
|
rather than an immutable diff. Consent given under a rule with `paths` or
|
|
60
|
-
`within` predicates is revoked when a reconcile's own edits
|
|
61
|
-
|
|
62
|
+
`within` predicates is revoked when a reconcile's own edits, or a leaf
|
|
63
|
+
restack's [generated-file regeneration](restacking.md#generated-file-conflicts),
|
|
64
|
+
touch a file those predicates match (the recorded resolution, not upstream-only
|
|
65
|
+
changes): `landing.consent-revoked`
|
|
62
66
|
raises default attention naming the files and both heads, and the build returns
|
|
63
|
-
to the consent queue for its new head. Accepted node reparenting
|
|
64
|
-
consent
|
|
67
|
+
to the consent queue for its new head. Accepted node reparenting and
|
|
68
|
+
reopening a finished leaf (`ab reopen`) also revoke consent; a reopen keeps a
|
|
69
|
+
hold.
|
|
65
70
|
`ab merge <slug> --head <sha>` binds consent to the head the reviewer saw: it
|
|
66
71
|
refuses with `head-mismatch`, recording nothing, unless `<sha>` (full or at
|
|
67
72
|
least seven characters) is the current candidate head. Build status and the
|
|
@@ -175,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
|
package/docs/migration-1.0.md
CHANGED
|
@@ -61,7 +61,8 @@ predicates revokes it.
|
|
|
61
61
|
|
|
62
62
|
The old ban protected event-recorded SHAs and avoided resolving the same conflict
|
|
63
63
|
for every WIP commit. The new standard replays one net leaf change or ordered
|
|
64
|
-
node contributions, retains displaced history through immutable archive refs
|
|
64
|
+
node contributions, retains displaced history through immutable archive refs
|
|
65
|
+
(best effort, with a BuildStore copy where the forge refuses them) and
|
|
65
66
|
durable rewrite facts, and resolves each conflicted item once. Ordinary agent
|
|
66
67
|
rebase of WIP history is still inappropriate. Agents resolve kernel-prepared
|
|
67
68
|
replay; the kernel owns branch replacement with expected-head guards.
|
package/docs/operating.md
CHANGED
|
@@ -10,8 +10,8 @@ order: 6
|
|
|
10
10
|
|
|
11
11
|
Your operator agent keeps work moving through `ab` or MCP. Under your instructions it writes specs, files and grooms tickets, operates the builds the repository's dispatcher dispatches, answers bounded escalations, pauses or aborts work, and authorizes merge.
|
|
12
12
|
|
|
13
|
-
- **You own** goals, scope, tradeoffs
|
|
14
|
-
- **The agent
|
|
13
|
+
- **You own** goals, scope, tradeoffs, authority and upgrades. Dispatcher ownership is a local preference, subject to repository instructions.
|
|
14
|
+
- **The agent checks** fresh running status before startup and follows your saved preference, or asks who should run the dispatcher and offers to save the answer. With agent ownership it starts `ab dispatch --web --plain --json` and gives you the URL. It cleanly stops only a dispatcher this session started, only on request; it never adopts, restarts, kills or manages another session's dispatcher. See [dispatcher ownership](dispatcher.md#dispatcher-ownership).
|
|
15
15
|
- **Autobuild doesn't** host or start the agent. There's no orchestrator setup step.
|
|
16
16
|
|
|
17
17
|
## Choose a harness
|
|
@@ -19,6 +19,8 @@ Your operator agent keeps work moving through `ab` or MCP. Under your instructio
|
|
|
19
19
|
- **A local coding agent** at the repository root with the installed `ab-operate` skill, using the CLI or `bun ab mcp` (operator tools over stdio).
|
|
20
20
|
- **An API client** using the authenticated [Operator API contract](operator-api.md).
|
|
21
21
|
|
|
22
|
+
An agent connected over MCP has no checkout of its own. It calls `context.list` first, then loads `ab-operate` and the repository's agent instructions with `context.read` or the matching MCP prompt; see [agent context](operator-api.md#agent-context).
|
|
23
|
+
|
|
22
24
|
We recommend the same model as your reviewer roles, since the agent interprets findings and escalation answers.
|
|
23
25
|
|
|
24
26
|
## Give the agent memory
|
|
@@ -74,7 +76,7 @@ sequence positions behind its head. If a cursor is too old, re-arm without
|
|
|
74
76
|
recover the unavailable historical gap; status reconciliation does not restore
|
|
75
77
|
one-off events from that gap.
|
|
76
78
|
|
|
77
|
-
- **Default filter:** actionable attention only, such as escalations and ready merges awaiting consent. Add `--event` globs for routine lifecycle events. Ticket waits beginning and ending are routine: follow them with `--event 'wait.*' --event escalation.answered`. A `wait-unresolvable` escalation, raised when a waited ticket is rejected or deleted, is ordinary attention.
|
|
79
|
+
- **Default filter:** actionable attention only, such as escalations and ready merges awaiting consent. Add `--event` globs for routine lifecycle events. Ticket waits beginning and ending are routine: follow them with `--event 'wait.*' --event escalation.answered`. A build waiting only on tickets is not attention for `watch` or `wait --for attention`; `ab builds` shows it as waiting. A `wait-unresolvable` escalation, raised when a waited ticket is rejected or deleted, is ordinary attention.
|
|
78
80
|
- **Starts now:** a fresh watch ignores history, so check current status too.
|
|
79
81
|
- **Resumable:** pass the opaque cursor from the JSON output back with `--since` to receive events recorded while away within the hosted window described above. The final JSON line always carries one.
|
|
80
82
|
- **Identified:** every JSON record carries an `id` that stays the same when the record is seen again after a resume, so consumers can deduplicate by it.
|
|
@@ -134,19 +136,47 @@ bun ab resume my-build
|
|
|
134
136
|
|
|
135
137
|
Intake off only stops new ticket claims; a repository pause also holds queued builds. Neither withdraws merge consent; use `hold`.
|
|
136
138
|
|
|
139
|
+
```
|
|
140
|
+
bun ab priority my-build urgent
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- **`priority`** sets an active build's slot-admission priority to `urgent` or `normal` without touching its ticket. An urgent build waiting to re-verify, reconcile or resume takes the next free slot ahead of normal work; see [slot admission order](dispatcher.md#slot-admission-order). It never interrupts running work.
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
bun ab start AUT-12
|
|
147
|
+
bun ab start AUT-13 --priority urgent
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
- **`start`** asks the running dispatcher to claim one ticket on its next tick with a free slot, even while intake is off or open-PR backpressure is engaged, and nothing else. By default (`--priority manual`) the request goes ahead of all waiting work; `--priority urgent` waits for urgent parked work and makes the build urgent, and `--priority normal` waits for normal parked work and urgent claims. Repeating the command with another priority updates the pending request. The ticket must still be ready, meet the spec standard and have no unresolved blockers; a request that cannot start settles once with its reason. `ab watch` reports the outcome and `ab repository status` lists pending requests with their priority. `--cancel` withdraws a pending request.
|
|
151
|
+
|
|
137
152
|
## Authorize merge
|
|
138
153
|
|
|
139
154
|
Ordered merge rules choose automatic authorization or explicit consent. With no matching rule, leaves default to auto and integration nodes to consent. Verification, checks, protection and merge gates still apply.
|
|
140
155
|
|
|
141
156
|
```
|
|
142
157
|
bun ab merge my-build
|
|
143
|
-
bun ab hold my-build
|
|
158
|
+
bun ab hold my-build --reason "waiting on AUT-12 to merge"
|
|
144
159
|
```
|
|
145
160
|
|
|
146
161
|
- **`merge`** requires a ready build, clears its hold and grants consent to merge into its destination.
|
|
147
|
-
- **`hold`** suppresses merge and revokes consent, even before the build is ready.
|
|
162
|
+
- **`hold`** suppresses merge and revokes consent, even before the build is ready. The optional `--reason` (1–2000 characters after trimming) is shown by `build status`, `builds`, `merges` and both dashboards while that hold stands; a later hold replaces it and `merge` clears it.
|
|
148
163
|
- **Reviewed head:** `merge --head <sha>` records consent only while `<sha>` is the current candidate head; otherwise it refuses with `head-mismatch` and records nothing.
|
|
149
|
-
- **Persistence:** consent survives head changes, clean restacks, verification and re-finalization until a hold or completion. Consent given under a `paths` or `within` rule is revoked, with `landing.consent-revoked` attention, when a reconcile's own edits touch a file the rule protects. Accepted node reparenting also
|
|
164
|
+
- **Persistence:** consent survives head changes, clean restacks, verification and re-finalization until a hold or completion. Consent given under a `paths` or `within` rule is revoked, with `landing.consent-revoked` attention, when a reconcile's own edits, or a leaf restack's generated-file regeneration, touch a file the rule protects. Accepted node reparenting and a reopen also revoke it.
|
|
165
|
+
- **Red forge CI:** when CI fails at a finished leaf's live PR head, the dispatcher records `pr.checks-failed` once per head and failing set. It is default attention, and `build status`, `builds`, `merges` and both dashboards show it until a successful CI read finds no failing checks on that head (checks may still be pending, so clearing does not prove green) or the PR moves to another head. CI the forge won't report (missing permission, rate limit, outage) counts as unknown, never as green or red. Autobuild never re-runs CI or reopens the build itself: inspect the PR, re-run CI on the forge, or send the build back with feedback.
|
|
166
|
+
|
|
167
|
+
## Send a finished build back
|
|
168
|
+
|
|
169
|
+
When review of a finished, unmerged build asks for changes, reopen it instead of aborting it or opening a second PR:
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
bun ab reopen my-build --feedback "rename the flag and update the docs"
|
|
173
|
+
bun ab reopen my-build --revise-spec-from-ticket
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
- **Feedback alone** returns the build to `implement` with the feedback in `reopen.json`; code review, verification and finalize run again and the plan stays approved.
|
|
177
|
+
- **A spec revision** (`--revise-spec <file>`, or `--revise-spec-from-ticket` after amending the ticket, which re-pins its assets) restarts from `plan`, with any feedback alongside.
|
|
178
|
+
- The open PR and branch are kept and updated in place. Consent is revoked at once (a hold stays), and the build waits for a slot like other parked work. An armed native auto-merge is cancelled on a later dispatcher poll, not by `ab reopen` itself; a forge merge that lands first completes the build as merged.
|
|
179
|
+
- Only a leaf waiting for its merge decision can be reopened. Use `answer` for a blocked build; a merged or closed PR needs a new ticket.
|
|
150
180
|
|
|
151
181
|
## Choose an operator surface
|
|
152
182
|
|