@defrex/autobuild 1.0.1 → 1.2.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 +10 -18
- package/SPEC.md +499 -238
- package/bin/ab-dispatch-generation.ts +11 -2
- package/docs/accounts.md +119 -0
- package/docs/agent-runtimes.md +4 -4
- package/docs/answering-blocked-builds.md +2 -2
- package/docs/architecture.md +262 -53
- package/docs/assets/headline-wide.png +0 -0
- package/docs/build-store.md +3 -41
- package/docs/builds.md +4 -4
- package/docs/cli.md +18 -4
- package/docs/configuration-overview.md +115 -4
- package/docs/configuration.md +488 -334
- package/docs/dispatcher-hosting.md +19 -34
- package/docs/dispatcher.md +1 -1
- package/docs/forges.md +5 -5
- package/docs/getting-started.md +2 -2
- package/docs/glossary.md +6 -6
- package/docs/intake.md +2 -0
- package/docs/integration-overview.md +15 -15
- package/docs/integration-tree.md +45 -38
- package/docs/integration.md +6 -6
- package/{skills/guide/references/landing-policy.md → docs/merge-policy.md} +40 -24
- package/docs/migration-1.0.md +17 -13
- package/docs/operating.md +41 -19
- package/docs/operator-api.md +180 -51
- package/docs/operator-surfaces.md +5 -18
- package/docs/overview.md +3 -3
- package/docs/plugin-authoring.md +21 -0
- package/docs/remote-store-protocol.md +242 -68
- package/docs/remote-ticket-protocol.md +30 -50
- package/docs/restacking.md +54 -15
- package/docs/seams.md +8 -8
- package/docs/setup.md +59 -119
- package/docs/skills.md +1 -1
- package/docs/spec-standard.md +6 -6
- package/docs/ticket-dependencies.md +7 -7
- package/docs/ticket-sources.md +18 -0
- package/docs/tickets.md +8 -2
- package/docs/troubleshooting.md +8 -12
- package/docs/upgrading.md +9 -4
- package/docs/verification.md +60 -14
- package/docs/workspaces.md +4 -4
- package/package.json +17 -6
- package/packages/core/src/accounts/chatgpt-oauth.ts +216 -0
- package/packages/core/src/accounts/chatgpt-state.ts +41 -0
- package/packages/core/src/accounts/local-credentials.ts +194 -0
- package/packages/core/src/accounts/local-inference.ts +106 -0
- package/packages/core/src/accounts/local-owner.ts +123 -0
- package/packages/core/src/accounts/sensitive.ts +2 -0
- package/packages/core/src/cli/accounts.ts +147 -0
- package/packages/core/src/cli/binary-direct.ts +13 -1
- package/packages/core/src/cli/binary-lifecycle.ts +65 -2
- package/packages/core/src/cli/binary.ts +3 -1
- package/packages/core/src/cli/build-control.ts +83 -28
- package/packages/core/src/cli/connect.ts +3 -3
- package/packages/core/src/cli/context.ts +81 -38
- package/packages/core/src/cli/dashboard/facts.ts +2 -1
- package/packages/core/src/cli/dashboard/integration-detail.ts +8 -8
- package/packages/core/src/cli/dashboard/integration-row.ts +40 -13
- package/packages/core/src/cli/dashboard/landing-display.ts +25 -0
- package/packages/core/src/cli/dashboard/model.ts +56 -33
- package/packages/core/src/cli/dashboard/poll.ts +9 -3
- package/packages/core/src/cli/dashboard/render.ts +59 -37
- package/packages/core/src/cli/dashboard/target-distance.ts +14 -0
- package/packages/core/src/cli/dashboard/tree.ts +3 -2
- package/packages/core/src/cli/dispatch-args.ts +1 -1
- package/packages/core/src/cli/dispatch-frontend.ts +6 -3
- package/packages/core/src/cli/dispatch-handoff.ts +125 -44
- package/packages/core/src/cli/dispatch-launch-contract.ts +187 -0
- package/packages/core/src/cli/dispatch-launcher.ts +54 -21
- package/packages/core/src/cli/dispatch-preflight.ts +6 -1
- package/packages/core/src/cli/dispatch.ts +106 -11
- package/packages/core/src/cli/env.ts +4 -0
- package/packages/core/src/cli/help.ts +46 -23
- package/packages/core/src/cli/init-readiness-remote.ts +22 -1
- package/packages/core/src/cli/init-readiness-shared.ts +5 -1
- package/packages/core/src/cli/init-validation.ts +160 -18
- package/packages/core/src/cli/main.ts +68 -8
- package/packages/core/src/cli/node-verification-provenance.ts +1 -97
- package/packages/core/src/cli/publication-settlement.ts +47 -21
- package/packages/core/src/cli/repository-status.ts +20 -9
- package/packages/core/src/cli/secrets.ts +173 -0
- package/packages/core/src/cli/status.ts +42 -5
- package/packages/core/src/cli/store-opening.ts +17 -2
- package/packages/core/src/cli/terminal.ts +22 -1
- package/packages/core/src/cli/terminals.ts +14 -10
- package/packages/core/src/cli/upgrade-agent.ts +9 -1
- package/packages/core/src/cli/upgrade-landing.ts +70 -30
- package/packages/core/src/cli/upgrade.ts +3 -1
- package/packages/core/src/cli/wait.ts +15 -7
- package/packages/core/src/cli/watch-lifetime.ts +111 -0
- package/packages/core/src/cli/watch.ts +635 -510
- package/packages/core/src/config/accounts.ts +101 -0
- package/packages/core/src/config/effective-artifact.fixture.ts +27 -0
- package/packages/core/src/config/effective-artifact.ts +13 -0
- package/packages/core/src/config/landing.ts +1 -1
- package/packages/core/src/config/live.ts +14 -1
- package/packages/core/src/config/load.ts +21 -1
- package/packages/core/src/config/pipeline-source.ts +28 -0
- package/packages/core/src/config/reference-metadata.ts +2 -0
- package/packages/core/src/config/reference.ts +22 -7
- package/packages/core/src/config/roles.ts +54 -3
- package/packages/core/src/config/schema.ts +146 -162
- package/packages/core/src/context-directory.ts +26 -0
- package/packages/core/src/distribution-packaging.ts +26 -5
- package/packages/core/src/events/catalog.ts +10 -2
- package/packages/core/src/events/compatibility.ts +2 -1
- package/packages/core/src/events/globs.ts +1 -1
- package/packages/core/src/events/payloads.ts +73 -1
- package/packages/core/src/events/policy.ts +7 -0
- package/packages/core/src/events/repository.ts +4 -4
- package/packages/core/src/events/sessions.ts +6 -6
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +574 -0
- package/packages/core/src/kernel/auto-merge.ts +2 -2
- package/packages/core/src/kernel/engine.ts +255 -26
- package/packages/core/src/kernel/generators/leaf-restack-log.ts +10 -0
- package/packages/core/src/kernel/integration-landing.ts +3 -3
- package/packages/core/src/kernel/integration-state.ts +27 -4
- package/packages/core/src/kernel/leaf-restack-state.ts +28 -3
- package/packages/core/src/kernel/log-index.ts +13 -1
- package/packages/core/src/kernel/node-landing.ts +8 -8
- package/packages/core/src/kernel/node-parent.ts +2 -2
- package/packages/core/src/kernel/node-restack-transaction.ts +1 -1
- package/packages/core/src/kernel/node-verification-context.ts +216 -0
- package/packages/core/src/kernel/phases.ts +1 -1
- package/packages/core/src/kernel/plan-verify-selection.ts +16 -0
- package/packages/core/src/kernel/publication-retry.ts +168 -0
- package/packages/core/src/kernel/reconcile-restack.ts +29 -1
- package/packages/core/src/kernel/reducer.ts +85 -5
- package/packages/core/src/kernel/target-distance.ts +45 -0
- package/packages/core/src/kernel/terminal-guard.ts +10 -1
- package/packages/core/src/kernel/verify-stage-state.ts +123 -0
- package/packages/core/src/kernel/verify-stages.ts +39 -0
- package/packages/core/src/ontology.ts +1 -0
- package/packages/core/src/operator/annotations.ts +6 -0
- package/packages/core/src/operator/control.ts +1 -1
- package/packages/core/src/operator/index.ts +3 -7
- package/packages/core/src/operator/landings.ts +5 -1
- package/packages/core/src/operator/presentation.ts +6 -1
- package/packages/core/src/operator/protocol.ts +6 -0
- package/packages/core/src/operator/query.ts +14 -18
- package/packages/core/src/operator/registry.ts +39 -7
- package/packages/core/src/operator/sandbox-host.ts +64 -40
- package/packages/core/src/operator/sandbox.ts +3 -0
- package/packages/core/src/operator/ticket-source-backend.ts +3 -12
- package/packages/core/src/operator/tickets.ts +25 -4
- package/packages/core/src/plugins/manifest.ts +2 -1
- package/packages/core/src/ports/forge/contract.ts +2 -2
- package/packages/core/src/ports/forge/git-rewrite.ts +25 -2
- package/packages/core/src/ports/forge/github-readiness.ts +2 -2
- package/packages/core/src/ports/forge/github.ts +26 -7
- package/packages/core/src/ports/forge/local-git.ts +4 -4
- package/packages/core/src/ports/forge/readiness.ts +1 -1
- package/packages/core/src/ports/forge-failure.ts +24 -0
- package/packages/core/src/ports/runner/account-env.ts +88 -0
- package/packages/core/src/ports/runner/chatgpt-provider.ts +85 -0
- package/packages/core/src/ports/runner/claude.ts +26 -2
- package/packages/core/src/ports/runner/codex.ts +63 -31
- package/packages/core/src/ports/runner/one-shot.ts +2 -0
- package/packages/core/src/ports/runner/provider-error.ts +5 -0
- package/packages/core/src/ports/runner/routing.ts +35 -4
- package/packages/core/src/ports/tickets/contract.ts +58 -0
- package/packages/core/src/ports/tickets/tree.ts +1 -1
- package/packages/core/src/ports/types.ts +28 -7
- package/packages/core/src/ports/workspace/account-policy.ts +72 -0
- package/packages/core/src/ports/workspace/build-execution.ts +9 -2
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +1 -0
- package/packages/core/src/ports/workspace/create.ts +2 -0
- package/packages/core/src/ports/workspace/git-worktree.ts +6 -1
- package/packages/core/src/ports/workspace/phase-scratch.ts +4 -3
- package/packages/core/src/ports/workspace/provider-capabilities.ts +1 -0
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +182 -72
- package/packages/core/src/processes/build-child.ts +6 -8
- package/packages/core/src/processes/build-execution-state.ts +8 -5
- package/packages/core/src/processes/build-runner.ts +554 -99
- package/packages/core/src/processes/dispatcher.ts +209 -101
- package/packages/core/src/processes/execution-no-progress.ts +8 -1
- package/packages/core/src/processes/execution-settlement.ts +21 -3
- package/packages/core/src/processes/harvest-runner.ts +68 -8
- package/packages/core/src/processes/phase-failure-budget.ts +1 -0
- package/packages/core/src/processes/publication-loss.ts +8 -2
- package/packages/core/src/processes/publication-state.ts +42 -4
- package/packages/core/src/processes/repo-view.ts +14 -0
- package/packages/core/src/processes/verify-cycle-config.ts +96 -0
- package/packages/core/src/project-secrets.ts +105 -0
- package/packages/core/src/{integration → scenarios}/harness.ts +330 -317
- package/packages/core/src/secret-name.ts +41 -0
- package/packages/core/src/store/account-redaction.ts +156 -0
- package/packages/core/src/store/adapter.ts +1 -0
- package/packages/core/src/store/build-scope.ts +9 -0
- package/packages/core/src/store/contract.ts +116 -2
- package/packages/core/src/store/local/schema.ts +13 -0
- package/packages/core/src/store/local/store.ts +42 -0
- package/packages/core/src/store/memory.ts +47 -0
- package/packages/core/src/store/operator-presence.ts +21 -0
- package/packages/core/src/store/phase-session.ts +10 -0
- package/packages/core/src/store/reducer-value-shapes.json +5185 -4156
- package/packages/core/src/store/remote/client.ts +89 -48
- package/packages/core/src/store/remote/compatibility.ts +20 -0
- package/packages/core/src/store/remote/protocol.ts +4 -0
- package/packages/core/src/store/remote/version.ts +3 -1
- package/packages/core/src/store/retention.ts +2 -3
- package/packages/core/src/store/session-handle.ts +9 -0
- package/packages/core/src/store/streams/session-writer.ts +1 -1
- package/packages/core/src/store/types.ts +12 -2
- package/packages/core/src/testing/dispatch-read-budget.ts +122 -0
- package/packages/core/src/testing/index.ts +12 -1
- package/packages/core/src/testing/reduced-read-budget.ts +47 -0
- package/packages/core/src/testing/temp-directories.ts +58 -0
- package/skills/code-review/SKILL.md +23 -9
- package/skills/finalize/SKILL.md +15 -7
- package/skills/guide/SKILL.md +373 -148
- package/skills/guide/references/accounts.md +119 -0
- package/skills/guide/references/integration-tree.md +45 -38
- package/{docs/landing-policy.md → skills/guide/references/merge-policy.md} +40 -24
- package/skills/guide/references/migration-1.0.md +17 -13
- package/skills/guide/references/operator-api.md +180 -51
- package/skills/guide/references/plugin-authoring.md +21 -0
- package/skills/guide/references/remote-store-protocol.md +242 -68
- package/skills/guide/references/remote-ticket-protocol.md +30 -50
- package/skills/guide/references/restacking.md +54 -15
- package/skills/guide/references/setup.md +59 -119
- package/skills/guide/references/spec-standard.md +6 -6
- package/skills/guide/references/ticket-dependencies.md +7 -7
- package/skills/harvest/SKILL.md +3 -1
- package/skills/harvest-review/SKILL.md +3 -1
- package/skills/implement/SKILL.md +43 -17
- package/skills/operate/SKILL.md +118 -118
- package/skills/plan/SKILL.md +39 -13
- package/skills/plan-review/SKILL.md +15 -10
- package/skills/reconcile/SKILL.md +22 -3
- package/skills/spec/SKILL.md +20 -20
- package/skills/tickets/SKILL.md +12 -9
- package/templates/autobuild.toml +1 -1
- package/templates/hosted-service/package.json +2 -2
- package/docs/hosted-dispatcher-cutover-validation.md +0 -178
- package/docs/hosted-dispatcher.md +0 -275
- package/docs/hosted-service.md +0 -293
- package/docs/mcp.md +0 -149
- package/packages/core/src/orchestrator/approvals.ts +0 -115
- package/packages/core/src/orchestrator/conversation.ts +0 -167
- package/packages/core/src/orchestrator/model.ts +0 -86
- package/packages/core/src/orchestrator/prompt.ts +0 -63
- package/packages/core/src/orchestrator/tools.ts +0 -117
- package/packages/core/src/orchestrator/turn-runner.ts +0 -457
- package/packages/core/src/processes/orchestrator-tick.ts +0 -360
package/docs/build-store.md
CHANGED
|
@@ -39,9 +39,10 @@ bun ab builds --store /srv/autobuild/project-store
|
|
|
39
39
|
|
|
40
40
|
Keep the database and blob directory together, durable and writable by the dispatcher identity.
|
|
41
41
|
|
|
42
|
-
###
|
|
42
|
+
### Remote HTTP client and protocol
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
A hosted instance must implement the remote BuildStore protocol.
|
|
45
|
+
The CLI connects over HTTP, never directly to a database.
|
|
45
46
|
|
|
46
47
|
<!-- seam-config:start -->
|
|
47
48
|
```toml
|
|
@@ -54,45 +55,6 @@ readyState = "ready"
|
|
|
54
55
|
```
|
|
55
56
|
<!-- seam-config:end -->
|
|
56
57
|
|
|
57
|
-
In the service project:
|
|
58
|
-
|
|
59
|
-
```sh
|
|
60
|
-
bun add @defrex/autobuild-postgres-store
|
|
61
|
-
export DATABASE_URL='<postgres connection URL>'
|
|
62
|
-
# AB_POSTGRES_URL overrides DATABASE_URL when nonblank.
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
import { openPostgresBuildStoreFromEnv } from '@defrex/autobuild-postgres-store'
|
|
67
|
-
|
|
68
|
-
const store = await openPostgresBuildStoreFromEnv(process.env)
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
- **Migrate first** with the matching release's idempotent migration. Migration needs schema-creation permission; runtime needs access to the resulting tables.
|
|
72
|
-
- **One blob backend.** S3 needs a bucket, prefix and GetObject/PutObject credentials; Vercel Blob needs a read-write token, or an OIDC identity plus store ID.
|
|
73
|
-
- **Database and blob secrets** never leave the service.
|
|
74
|
-
|
|
75
|
-
```sh
|
|
76
|
-
# S3-compatible storage
|
|
77
|
-
export AB_BLOB_BACKEND='s3'
|
|
78
|
-
export AB_S3_BUCKET='autobuild-artifacts'
|
|
79
|
-
export AB_S3_REGION='us-east-1'
|
|
80
|
-
export AB_S3_ACCESS_KEY_ID='<object-store identity>'
|
|
81
|
-
export AB_S3_SECRET_ACCESS_KEY='<object-store secret>'
|
|
82
|
-
# Optional: AB_S3_ENDPOINT, AB_S3_FORCE_PATH_STYLE, AB_S3_SESSION_TOKEN, AB_BLOB_PREFIX
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
```sh
|
|
86
|
-
# Alternatively, Vercel Blob
|
|
87
|
-
export AB_BLOB_BACKEND='vercel'
|
|
88
|
-
export AB_VERCEL_BLOB_ACCESS='private'
|
|
89
|
-
export BLOB_READ_WRITE_TOKEN='<blob read-write token>'
|
|
90
|
-
# Or supply VERCEL_OIDC_TOKEN and BLOB_STORE_ID together instead of the token.
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Remote HTTP client and service
|
|
95
|
-
|
|
96
58
|
`[store] url` selects the shipped HTTP client. Connect once per host and user, from a checkout with the intended origin:
|
|
97
59
|
|
|
98
60
|
```sh
|
package/docs/builds.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "One build, end to end"
|
|
3
3
|
group: "concepts"
|
|
4
|
-
description: "Follow a work ticket through planning, review, verification, pull request creation, and
|
|
4
|
+
description: "Follow a work ticket through planning, review, verification, pull request creation, and merge."
|
|
5
5
|
label: "Builds"
|
|
6
6
|
order: 2
|
|
7
7
|
---
|
|
@@ -48,13 +48,13 @@ Two limits park the build for an answer:
|
|
|
48
48
|
|
|
49
49
|
## Verify, then publish
|
|
50
50
|
|
|
51
|
-
After code review approves, Autobuild prepares the build's single net change on the sampled destination and runs
|
|
51
|
+
After code review approves, Autobuild prepares the build's single net change on the sampled destination and runs ordered verification stages. Each stage's `verify:*` members may run concurrently; the next stage waits until every member passes or skips:
|
|
52
52
|
|
|
53
53
|
- **Check verifiers** run a command; the exit code decides.
|
|
54
54
|
- **Agent verifiers** record a pass, a failure report, or a skip reason.
|
|
55
55
|
- **Applicability rules** can skip a step with a recorded reason.
|
|
56
56
|
|
|
57
|
-
A
|
|
57
|
+
A failed stage settles before sending the build, with every failed member's report, back through implementation, code review, and verification. By default siblings finish; a failing `failFast` member cancels unfinished siblings. See [Verification](verification.md).
|
|
58
58
|
|
|
59
59
|
Once verification passes, the finalize agent writes the PR description; Autobuild publishes the branch and opens the PR. Optional `finalize:*` post-steps, such as a changelog or ticket link, run after PR creation; a failed post-step records an observation instead of failing the build. `verify:*` and `finalize:*` are the only configurable extension points.
|
|
60
60
|
|
|
@@ -65,7 +65,7 @@ After grooming, escalations are the judgment gates. A build parks with a recorde
|
|
|
65
65
|
|
|
66
66
|
Your operator agent answers bounded questions from your instructions and brings unresolved product decisions to you. Restarting dispatch doesn't answer a question, and an answer doesn't force success.
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Merge consent is a separate policy decision your operator agent manages. Repositories can require it even for a green build; verification, forge checks, and merge gates still apply. See [integration and merge policy](integration-overview.md).
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
## The reconcile epilogue
|
package/docs/cli.md
CHANGED
|
@@ -11,21 +11,24 @@ Run `bun ab <command>`; `bun ab help <command>` lists flags and subcommands. See
|
|
|
11
11
|
|
|
12
12
|
## For you
|
|
13
13
|
|
|
14
|
+
- `accounts` — Authorize a ChatGPT subscription for a local dispatcher or connected project.
|
|
15
|
+
|
|
14
16
|
- `dispatch` — Run the dispatcher and dashboard.
|
|
15
17
|
- `init` — Install skills and hand setup to a coding agent.
|
|
16
18
|
- `upgrade` — Update Autobuild and merge default skills.
|
|
17
19
|
- `connect` — Connect to a hosted service with browser approval.
|
|
18
20
|
- `disconnect` — Revoke and remove the saved credential.
|
|
21
|
+
- `secrets` — List metadata, set or remove write-only project secrets. Project members and super users can also use the web Settings tab; renewing refreshing ChatGPT credentials stays in `ab accounts login <account> --project`.
|
|
19
22
|
|
|
20
23
|
## For your operator agent
|
|
21
24
|
|
|
22
25
|
- `help` — Show the overview or one command's help.
|
|
23
26
|
- `ticket` — Create, groom, inspect, and move tickets.
|
|
24
27
|
- `repository` — Inspect durable dispatcher settings.
|
|
25
|
-
- `
|
|
28
|
+
- `merges` — List merges awaiting consent.
|
|
26
29
|
- `builds` — List builds and status.
|
|
27
30
|
- `build` — Inspect one build's state and events.
|
|
28
|
-
- `watch` — Follow events with a resumable cursor.
|
|
31
|
+
- `watch` — Follow events with a resumable cursor. Opt-in `--operator` registers advisory liveness for a repository-wide standing watch; unflagged watches write nothing.
|
|
29
32
|
- `wait` — Block until a build condition holds; print one record.
|
|
30
33
|
- `mcp` — Serve the operator tools over stdio.
|
|
31
34
|
- `pause` — Request a build or repository pause.
|
|
@@ -33,8 +36,8 @@ Run `bun ab <command>`; `bun ab help <command>` lists flags and subcommands. See
|
|
|
33
36
|
- `answer` — Answer escalations or request a retry.
|
|
34
37
|
- `abort` — Request irreversible build termination and cleanup.
|
|
35
38
|
- `restack` — Request a node restack onto its current parent.
|
|
36
|
-
- `hold` — Hold a
|
|
37
|
-
- `
|
|
39
|
+
- `hold` — Hold a merge, withdrawing consent.
|
|
40
|
+
- `merge` — Consent to a ready merge.
|
|
38
41
|
- `models` — Search Pi's model catalog.
|
|
39
42
|
- `plugin` — Inspect, diagnose, and contract-test adapters.
|
|
40
43
|
- `context` — Materialize the current phase's inputs.
|
|
@@ -46,3 +49,14 @@ Run `bun ab <command>`; `bun ab help <command>` lists flags and subcommands. See
|
|
|
46
49
|
- `harvest` — Inspect or drive observation harvesting.
|
|
47
50
|
|
|
48
51
|
Phase commands (`context`, `done`, `verdict`) use runner-scoped session authority: the runner starts phase agents, never your operator agent. See [Skills](skills.md).
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Permanent hosted data removal is available on the web app's Projects page to
|
|
55
|
+
super users and owners of the project's organization. `ab disconnect` only
|
|
56
|
+
revokes a credential; admin `projects remove` only unregisters access and retains
|
|
57
|
+
data. Project deletion removes hosted builds, tickets, blobs, secrets and accounts,
|
|
58
|
+
revokes every credential and retains only a minimal deletion audit. It does not
|
|
59
|
+
change local files or configuration. Failed cleanup is retryable with access
|
|
60
|
+
already refused. Reconnecting requires fresh browser approval and starts empty,
|
|
61
|
+
with hosted ticket numbering reset to 1. See
|
|
62
|
+
[permanent project deletion](operator-api.md#permanent-project-deletion).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Repository configuration"
|
|
3
3
|
group: "reference"
|
|
4
|
-
description: "Map autobuild.toml settings to verification, agent roles, capacity, ticket readiness,
|
|
4
|
+
description: "Map autobuild.toml settings to verification, agent roles, capacity, ticket readiness, merge policy, and editable skills."
|
|
5
5
|
label: "Configuration"
|
|
6
6
|
order: 8
|
|
7
7
|
slug: "configuration"
|
|
@@ -14,7 +14,7 @@ slug: "configuration"
|
|
|
14
14
|
|
|
15
15
|
## Commands and extension steps
|
|
16
16
|
|
|
17
|
-
Verify and finalize steps run named commands or agent skills, in
|
|
17
|
+
Verify and finalize steps run named commands or agent skills. Verification runs ordered stages whose members may run concurrently; finalize post-steps run serially. A plain list of verify step names keeps serial execution, as in this example:
|
|
18
18
|
|
|
19
19
|
```toml
|
|
20
20
|
[commands]
|
|
@@ -64,10 +64,121 @@ sessionBudgetSeconds = 3600
|
|
|
64
64
|
- **Policy limits** bound review rounds, retries and session budgets, and decide when automation stops for attention.
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Accounts
|
|
68
|
+
|
|
69
|
+
Named accounts select billing for Claude Code or Codex, using the user's own
|
|
70
|
+
subscription within ordinary individual usage. Claude and Kimi credentials are
|
|
71
|
+
provisioned manually; Autobuild never runs `claude setup-token`. ChatGPT
|
|
72
|
+
accounts use OpenAI's browser authorization through the CLI.
|
|
73
|
+
|
|
74
|
+
```toml
|
|
75
|
+
[accounts.personal]
|
|
76
|
+
kind = "claude-subscription"
|
|
77
|
+
credentialEnv = "CLAUDE_CODE_OAUTH_TOKEN"
|
|
78
|
+
|
|
79
|
+
[accounts.kimi]
|
|
80
|
+
kind = "kimi-code"
|
|
81
|
+
credentialEnv = "KIMI_CODE_KEY"
|
|
82
|
+
region = "overseas"
|
|
83
|
+
|
|
84
|
+
[accounts.kimi-china]
|
|
85
|
+
kind = "kimi-code"
|
|
86
|
+
credentialEnv = "KIMI_CHINA_KEY"
|
|
87
|
+
region = "china"
|
|
88
|
+
|
|
89
|
+
[roles.implement]
|
|
90
|
+
runtime = "claude"
|
|
91
|
+
account = "kimi"
|
|
92
|
+
model = "kimi-for-coding"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`account` inherits independently on roles and alternates. Without an explicit
|
|
96
|
+
selection, a Claude route chooses the sole Claude subscription account; multiple
|
|
97
|
+
subscription accounts require an explicit selection. ChatGPT accounts require explicit selection on Codex; Claude and Kimi accounts
|
|
98
|
+
require Claude Code. Incompatible runtime selections are rejected. Repositories with no accounts retain legacy authentication.
|
|
99
|
+
Locally a Claude subscription can use its named token or the host login; Kimi
|
|
100
|
+
requires its membership key. Invalid credentials need renewal (`claude setup-token`
|
|
101
|
+
for Claude, replacement membership key for Kimi); quota and overload failures
|
|
102
|
+
retain alternate fallback.
|
|
103
|
+
|
|
104
|
+
Choose the region of your Kimi membership. The default `overseas` selects
|
|
105
|
+
`https://api.kimi.ai/coding/`; `china` selects `https://api.kimi.com/coding/`.
|
|
106
|
+
The base URL and egress hostname are fixed together and cannot be overridden
|
|
107
|
+
independently. There is no cross-region retry or assertion that keys work across
|
|
108
|
+
regions. Claude Code keeps its native User-Agent.
|
|
109
|
+
|
|
110
|
+
In Vercel Sandbox the guest holds stable nonsecret placeholders, including when
|
|
111
|
+
credential variables are explicitly allowlisted. The host egress policy replaces
|
|
112
|
+
an exact account placeholder header only on its provider's exact hostname.
|
|
113
|
+
The next dispatcher observation tick refreshes credentials for subsequent
|
|
114
|
+
requests without reprovisioning. Changing a local dispatcher's `.env` still needs
|
|
115
|
+
a restart. Accounts are deployment-owned descriptors; configuration artifacts
|
|
116
|
+
contain variable names, never values. Validation reports host credential presence
|
|
117
|
+
and makes one minimal request using each account's actual runtime, including
|
|
118
|
+
unused accounts, in the disposable sandbox. Hosted ChatGPT credentials use the
|
|
119
|
+
metadata readiness boundary described below.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## ChatGPT subscriptions
|
|
123
|
+
|
|
124
|
+
ChatGPT Plus and Pro are eligible for [Sign in with ChatGPT](https://developers.openai.com/siwc/quickstart).
|
|
125
|
+
Authorization grants plan usage for eligible Responses requests; it does not
|
|
126
|
+
grant access to ChatGPT conversations. Included usage is shared with the plan
|
|
127
|
+
and other authorized apps. Plan exhaustion retains configured alternate fallback.
|
|
128
|
+
|
|
129
|
+
```toml
|
|
130
|
+
[accounts.chatgpt]
|
|
131
|
+
kind = "chatgpt-subscription"
|
|
132
|
+
credentialEnv = "CHATGPT_ACCESS_TOKEN"
|
|
133
|
+
|
|
134
|
+
[roles.implement]
|
|
135
|
+
runtime = "codex"
|
|
136
|
+
account = "chatgpt"
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Run `bun ab accounts login chatgpt --local` on your own machine for a local
|
|
140
|
+
dispatcher, or `bun ab accounts login chatgpt --project` for a connected
|
|
141
|
+
project. Without a destination flag, connected projects choose project storage;
|
|
142
|
+
others choose local storage. The destination is shown before the browser opens.
|
|
143
|
+
OpenAI handles consent and authorization. No token is printed.
|
|
144
|
+
|
|
145
|
+
Local credentials live in protected, ignored main-checkout
|
|
146
|
+
`.autobuild/accounts/` state shared by worktrees. Project sign-in transfers
|
|
147
|
+
credentials directly to the encrypted refreshing project secret named by
|
|
148
|
+
`credentialEnv`; it retains no renewable credential locally. This name
|
|
149
|
+
identifies a host access-token slot, not a refresh token supplied in TOML.
|
|
150
|
+
ChatGPT accounts must use slots distinct from every other account. Existing
|
|
151
|
+
ChatGPT descriptors cannot change during live configuration reload; stop dispatch
|
|
152
|
+
before replacing a descriptor, or introduce a new account name.
|
|
153
|
+
|
|
154
|
+
The stable opaque host identifier belongs to the destination; the issued
|
|
155
|
+
client identifier belongs to the authorized ChatGPT registration. Reauthorization
|
|
156
|
+
keeps identity and registration associated. Never copy the ambient Codex login.
|
|
157
|
+
|
|
158
|
+
Exactly one owner refreshes each connection: the local dispatcher or the
|
|
159
|
+
hosted refreshing secret. Credentials rotate atomically before delivery.
|
|
160
|
+
Sandboxes hold stable placeholders; only an exact bearer match on
|
|
161
|
+
`api.openai.com` receives the current access token at egress. Local Codex uses
|
|
162
|
+
an isolated CODEX_HOME and a capability-protected loopback Responses forwarder which
|
|
163
|
+
reads current durable state and never refreshes.
|
|
164
|
+
|
|
165
|
+
A failed or uncertain refresh is terminal for that credential generation.
|
|
166
|
+
Sign in again with `bun ab accounts login chatgpt` for the same destination;
|
|
167
|
+
do not retry the old refresh token. Token rejection raises account-specific
|
|
168
|
+
attention rather than an alternate or retry loop.
|
|
169
|
+
|
|
170
|
+
For local credentials, `bun ab init --validate` checks the owner and current
|
|
171
|
+
credential and makes a minimal Codex request. Validation uses a temporary
|
|
172
|
+
exclusive ownership claim only when no dispatcher owns the record. For hosted
|
|
173
|
+
project credentials it uses write-only metadata: presence, owner, set time,
|
|
174
|
+
refresh status and any refresh-window warning. It never downloads tokens.
|
|
175
|
+
**The first hosted build is the live check.** A short refresh-window warning is
|
|
176
|
+
advisory and does not revoke a still-valid credential.
|
|
177
|
+
|
|
178
|
+
## Admission and merge
|
|
68
179
|
|
|
69
180
|
- **Tickets.** `[tickets]` sets the source and readiness criteria for admitting work.
|
|
70
|
-
- **
|
|
181
|
+
- **Merge.** Ordered, first-match `[[merge]]` rules on source and destination select automatic merge or explicit consent. See [Integrating related work](integration-overview.md#policy-authorizes-merge) for matching and defaults, [Working with your operator agent](operating.md) for consent and hold commands.
|
|
71
182
|
- **Reloads.** Build execution configuration is pinned; dispatcher policy and role settings reload live.
|
|
72
183
|
- **Secrets** stay out of committed TOML.
|
|
73
184
|
|