@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Dispatcher hosting"
|
|
3
3
|
group: "reference"
|
|
4
|
-
description: "Run
|
|
4
|
+
description: "Run a local dispatcher with local or remote workspaces over durable state."
|
|
5
5
|
label: "Dispatcher hosting"
|
|
6
6
|
order: 11
|
|
7
7
|
---
|
|
@@ -10,7 +10,7 @@ order: 11
|
|
|
10
10
|
|
|
11
11
|
## Responsibility
|
|
12
12
|
|
|
13
|
-
The dispatcher claims eligible tickets, starts and observes build runners, settles publication and
|
|
13
|
+
The dispatcher claims eligible tickets, starts and observes build runners, settles publication and merge, and recovers durable work. Local and origin-mode arrangements run the same kernel. Your operator agent acts through the CLI or MCP; Autobuild never starts it.
|
|
14
14
|
|
|
15
15
|
## Shipped arrangements
|
|
16
16
|
|
|
@@ -38,9 +38,9 @@ The host needs:
|
|
|
38
38
|
- runtime authentication and forge credentials ([Forges](forges.md) covers precedence)
|
|
39
39
|
- credentials for a remote Store or workspace provisioning, if used
|
|
40
40
|
|
|
41
|
-
A service manager may own the process under an identity with the same configuration and credentials. To restart, stop gracefully and let drain and suspension finish; work resumes from durable state. A restart never answers escalations or grants
|
|
41
|
+
A service manager may own the process under an identity with the same configuration and credentials. To restart, stop gracefully and let drain and suspension finish; work resumes from durable state. A restart never answers escalations or grants merge consent. See [the dispatcher lifecycle](dispatcher.md).
|
|
42
42
|
|
|
43
|
-
###
|
|
43
|
+
### Origin-mode dispatcher with remote workspaces
|
|
44
44
|
|
|
45
45
|
Commit a remote-compatible configuration to the base branch:
|
|
46
46
|
|
|
@@ -73,40 +73,25 @@ model = "vercel-ai-gateway/anthropic/claude-sonnet-4.6"
|
|
|
73
73
|
```
|
|
74
74
|
<!-- seam-config:end -->
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
- **Install the Sandbox plugin** in the project and make it available to the dispatcher deployment.
|
|
78
|
-
- **Replace the example** runtime, model and provisioning commands with values for your account.
|
|
79
|
-
|
|
80
|
-
Deploy `@defrex/autobuild-hosted-dispatcher` and mount its `dispatcherEndpoint()` at `/api/dispatch`; a store-only deployment never dispatches. Server-only environment includes:
|
|
76
|
+
Run the supported CLI from an HTTPS GitHub origin:
|
|
81
77
|
|
|
82
78
|
```sh
|
|
83
|
-
|
|
84
|
-
export CRON_SECRET='<schedule secret>'
|
|
85
|
-
export GITHUB_TOKEN='<repository publication token>'
|
|
86
|
-
export DATABASE_URL='<postgres connection URL>'
|
|
87
|
-
export AI_GATEWAY_API_KEY='<runtime API credential>'
|
|
79
|
+
bun ab dispatch --repository https://github.com/acme/app --plain --store https://builds.example.com
|
|
88
80
|
```
|
|
89
81
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Build the distribution's guest archive into the function bundle before deploying; the function can't pack it at runtime.
|
|
106
|
-
|
|
107
|
-
- **Bounded ticks:** a 240-second default work budget inside a 300-second route. Unfinished work resumes on later ticks; guests run independently.
|
|
108
|
-
- **Overlap:** the repository supervisor lease makes overlapping invocations yield.
|
|
109
|
-
- Selecting Postgres alone never moves dispatch here.
|
|
82
|
+
Use a remote store that speaks the remote BuildStore protocol.
|
|
83
|
+
Connect the project with `ab connect` or supply `AB_TOKEN`. Hosted tickets use
|
|
84
|
+
that registered project's team key. Install the Sandbox plugin on the dispatcher
|
|
85
|
+
host and replace the example runtime and model with your account's values.
|
|
86
|
+
Origin mode reads configuration from the forge and cannot load checkout-relative
|
|
87
|
+
plugins. Export push-capable `GITHUB_TOKEN` or `GH_TOKEN`; forge credentials stay
|
|
88
|
+
on the host. Sandbox provisioning needs `VERCEL_OIDC_TOKEN` or the durable
|
|
89
|
+
`VERCEL_TOKEN`/`VERCEL_TEAM_ID`/`VERCEL_PROJECT_ID` tuple. Guests receive runtime
|
|
90
|
+
API credentials allowlisted through `environmentVariables`, nonsecret billing
|
|
91
|
+
account placeholders, and scoped Store execution authority. Real account
|
|
92
|
+
credentials stay on the host and are applied by provider-scoped egress header
|
|
93
|
+
transforms.
|
|
94
|
+
See [origin-mode setup](setup.md#running-the-dispatcher-without-a-checkout-origin-mode) and [Workspaces](workspaces.md).
|
|
110
95
|
|
|
111
96
|
## Writing your own
|
|
112
97
|
|
package/docs/dispatcher.md
CHANGED
|
@@ -54,6 +54,6 @@ A restart loses nothing. The dispatcher continues each build from its recorded p
|
|
|
54
54
|
|
|
55
55
|
## The operator agent stays outside
|
|
56
56
|
|
|
57
|
-
Your operator agent is an external coding agent you direct, like Claude Code or Codex. It files and grooms tickets with you,
|
|
57
|
+
Your operator agent is an external coding agent you direct, like Claude Code or Codex. It files and grooms tickets with you, operates the builds the repository's dispatcher dispatches, answers bounded escalations and manages merge consent, using the `ab` CLI locally or the same tools over MCP. You make the product calls. Autobuild never hosts or starts it, and its chat isn't part of the build's paper trail.
|
|
58
58
|
|
|
59
59
|
Next: [operator surfaces](operator-surfaces.md) for the controls, [one build end to end](builds.md) for the phases.
|
package/docs/forges.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Forges"
|
|
3
3
|
group: "reference"
|
|
4
|
-
description: "Choose GitHub or local git and implement safe code publication and
|
|
4
|
+
description: "Choose GitHub or local git and implement safe code publication and merge."
|
|
5
5
|
label: "Forges"
|
|
6
6
|
order: 9
|
|
7
7
|
---
|
|
@@ -12,7 +12,7 @@ order: 9
|
|
|
12
12
|
|
|
13
13
|
The forge publishes code and represents pull requests.
|
|
14
14
|
|
|
15
|
-
- **The kernel owns the forge.** Pushes, PRs, comments,
|
|
15
|
+
- **The kernel owns the forge.** Pushes, PRs, comments, merge and merge happen in deterministic code.
|
|
16
16
|
- **Agents only commit locally.** They never push or see forge credentials.
|
|
17
17
|
- **Publication is exact.** The branch head read back from the forge must equal the intended SHA.
|
|
18
18
|
|
|
@@ -53,7 +53,7 @@ Origin mode and Vercel Sandbox need an exported token. Never forward kernel cred
|
|
|
53
53
|
| Pull requests: write | opening and updating PRs |
|
|
54
54
|
| Metadata, Administration: read | readiness checks |
|
|
55
55
|
|
|
56
|
-
A classic token on a private repository needs the `repo` scope instead. Validation doesn't guarantee a merge: branch protection, required checks, merge settings and permissions can still defer
|
|
56
|
+
A classic token on a private repository needs the `repo` scope instead. Validation doesn't guarantee a merge: branch protection, required checks, merge settings and permissions can still defer merge.
|
|
57
57
|
|
|
58
58
|
### Local git
|
|
59
59
|
|
|
@@ -71,7 +71,7 @@ Needs only Git and a writable repository.
|
|
|
71
71
|
|
|
72
72
|
- **Pull requests** are JSON records under private `refs/autobuild/` refs, linking to local branch refs.
|
|
73
73
|
- **Publication** confirms the local branch; nothing is uploaded.
|
|
74
|
-
- **
|
|
74
|
+
- **Merge** makes a head-guarded squash commit with compare-and-swap ref updates, waiting while the checked-out destination has unsafe local changes.
|
|
75
75
|
|
|
76
76
|
It can't serve remote sandboxes; use GitHub there.
|
|
77
77
|
|
|
@@ -104,7 +104,7 @@ An adapter must provide:
|
|
|
104
104
|
|
|
105
105
|
- idempotent PR creation
|
|
106
106
|
- exact-SHA publication confirmation, never inferred from ancestry or a push response
|
|
107
|
-
- guarded
|
|
107
|
+
- guarded merge and comments
|
|
108
108
|
- every capability it advertises
|
|
109
109
|
|
|
110
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.
|
package/docs/getting-started.md
CHANGED
|
@@ -48,13 +48,13 @@ Run this yourself and leave it running. The dispatcher shows a live dashboard an
|
|
|
48
48
|
|
|
49
49
|
Open your coding agent at the repository root, then ask in plain language:
|
|
50
50
|
|
|
51
|
-
> Help me specify a small retry-budget change. Ask me about the behavior and limits, file and groom the ticket when we agree, and watch it through
|
|
51
|
+
> Help me specify a small retry-budget change. Ask me about the behavior and limits, file and groom the ticket when we agree, and watch it through merge. Ask me before granting merge consent.
|
|
52
52
|
|
|
53
53
|
The agent works out acceptance criteria, scope, and evidence with you.
|
|
54
54
|
|
|
55
55
|
- Keep the first change small, with checks that demonstrate success. The [spec standard](tickets.md#groom-a-buildable-spec) defines a buildable ticket.
|
|
56
56
|
- With dispatch running, a ticket moved to ready is eligible for claim immediately.
|
|
57
57
|
- Your agent watches progress and answers build questions within your instructions, bringing unresolved decisions back to you.
|
|
58
|
-
-
|
|
58
|
+
- Merge follows the configured policy and gates; a green build doesn't guarantee immediate merge.
|
|
59
59
|
|
|
60
60
|
Continue with [Working with your operator agent](operating.md) and the [configuration reference](configuration-overview.md).
|
package/docs/glossary.md
CHANGED
|
@@ -9,7 +9,7 @@ description: "Definitions for tickets, integration, execution boundaries, and ag
|
|
|
9
9
|
|
|
10
10
|
## Build
|
|
11
11
|
|
|
12
|
-
One execution of a claimed ticket: an immutable slug and a durable event stream. Work builds run the [fixed pipeline](builds.md); node builds collect, verify and
|
|
12
|
+
One execution of a claimed ticket: an immutable slug and a durable event stream. Work builds run the [fixed pipeline](builds.md); node builds collect, verify and merge contributions.
|
|
13
13
|
|
|
14
14
|
## Ticket
|
|
15
15
|
|
|
@@ -21,11 +21,11 @@ The build's contract: intent, rationale, acceptance criteria, scope limits and e
|
|
|
21
21
|
|
|
22
22
|
## Node
|
|
23
23
|
|
|
24
|
-
A finite integration build that collects child contributions, verifies its exact head against its parent and
|
|
24
|
+
A finite integration build that collects child contributions, verifies its exact head against its parent and merges into it. Nodes nest and close when complete. See [integration trees](integration-overview.md).
|
|
25
25
|
|
|
26
26
|
## Target
|
|
27
27
|
|
|
28
|
-
Where a ticket's work
|
|
28
|
+
Where a ticket's work merges: a node ticket, or the configured root when omitted. Blockers, not targets, decide when work starts.
|
|
29
29
|
|
|
30
30
|
## Seam
|
|
31
31
|
|
|
@@ -43,9 +43,9 @@ A deterministic check or evidence-judging agent that tests a build against its c
|
|
|
43
43
|
|
|
44
44
|
A durable question or failure that parks work until answered with guidance or a retry through the [answer interface](operating.md#answer-and-pause).
|
|
45
45
|
|
|
46
|
-
##
|
|
46
|
+
## Merge
|
|
47
47
|
|
|
48
|
-
Guarded integration of a ready contribution into its destination, authorized by [
|
|
48
|
+
Guarded integration of a ready contribution into its destination, authorized by [merge policy](integration-overview.md#policy-authorizes-merge) and still subject to verification and forge gates.
|
|
49
49
|
|
|
50
50
|
## Restack
|
|
51
51
|
|
|
@@ -57,4 +57,4 @@ The agent phase that resolves conflicts in a kernel-prepared replay against a fr
|
|
|
57
57
|
|
|
58
58
|
## Operator agent
|
|
59
59
|
|
|
60
|
-
Your external agent, working outside the pipeline through the CLI or connected tools. It writes specs, files and grooms tickets,
|
|
60
|
+
Your external agent, working outside the pipeline through the CLI or connected tools. It writes specs, files and grooms tickets, operates the builds the repository's dispatcher dispatches, answers escalations and manages authorized merge; you supply intent and authority.
|
package/docs/intake.md
CHANGED
|
@@ -29,6 +29,8 @@ ab observe --kind followup --files src/retry.ts "Retry budget ignores jitter"
|
|
|
29
29
|
|
|
30
30
|
Observation harvest, a shipped repository workflow rather than a build phase, collects observations, synthesizes and reviews proposals, and files approved tickets.
|
|
31
31
|
|
|
32
|
+
Proposals can join an existing ticket in the harvest ledger. The ledger facts shown during synthesis and review are scan-time context; at filing, each approved join is checked against fresh ticket existence and resolution in the selected source. Only existing, unresolved ledger targets from that source can be joined. Missing or resolved targets require suppression, and approval does not override this fresh check.
|
|
33
|
+
|
|
32
34
|
A run starts after `[policy].harvestThreshold` new unclaimed observations (default 5), or once `[policy].harvestMaxDrift` other builds (default 3) have merged since the oldest one (`0` disables drift).
|
|
33
35
|
|
|
34
36
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Integrating related work"
|
|
3
3
|
group: "concepts"
|
|
4
|
-
description: "Collect work in an integration tree, preserve change identity through restacks, and
|
|
4
|
+
description: "Collect work in an integration tree, preserve change identity through restacks, and merge under explicit policy."
|
|
5
5
|
slug: "integration"
|
|
6
6
|
label: "Integration"
|
|
7
7
|
order: 4
|
|
@@ -9,10 +9,10 @@ order: 4
|
|
|
9
9
|
|
|
10
10
|
# Integrating related work
|
|
11
11
|
|
|
12
|
-
Break a big feature into tickets, collect their changes on one branch, and
|
|
12
|
+
Break a big feature into tickets, collect their changes on one branch, and merge the verified feature on main once. Work forms a tree rooted at `baseBranch`:
|
|
13
13
|
|
|
14
14
|
- **Work tickets** are leaves.
|
|
15
|
-
- **Node tickets** are finite integration points that collect children, then
|
|
15
|
+
- **Node tickets** are finite integration points that collect children, then merge into their parent.
|
|
16
16
|
- Repositories without nodes send every work ticket to the root.
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,20 +27,20 @@ bun ab ticket create "Cart summary" --body cart.md --target <node-id>
|
|
|
27
27
|
|
|
28
28
|
Claim freezes the destination build generation and branch; editing a claimed ticket can't redirect its change.
|
|
29
29
|
|
|
30
|
-
Leaves run the [normal build pipeline](builds.md). A node collects, verifies,
|
|
30
|
+
Leaves run the [normal build pipeline](builds.md). A node collects, verifies, merges, and closes. It finishes collecting when its targeting tickets are done or cancelled, frozen child claims have settled, and at least one contribution has merged.
|
|
31
31
|
|
|
32
32
|
- **Idle** nodes need no runner; empty nodes have no PR.
|
|
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
36
|
|
|
37
37
|
## One identity per leaf change
|
|
38
38
|
|
|
39
39
|
A leaf contributes one canonical net change, however many commits it took.
|
|
40
40
|
|
|
41
|
-
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash
|
|
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
42
|
- **Restacks.** When a destination moves, Autobuild restacks onto it and cascades through descendants. Clean replay is automatic; a conflict attaches a reconcile runner with the source change's context, then verification as required.
|
|
43
|
-
- **Reverification.** Node verification covers the exact node head and parent; a change to either voids
|
|
43
|
+
- **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
44
|
|
|
45
45
|
|
|
46
46
|
## Blockers are a separate graph
|
|
@@ -51,30 +51,30 @@ A target says where work integrates; a blocker says what must be available befor
|
|
|
51
51
|
bun ab ticket block <id> <blocker-id>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
- **With nodes**, a blocker that has a build resolves when its change is present in the dependent's sampled destination. Sibling work may need to
|
|
54
|
+
- **With nodes**, a blocker that has a build resolves when its change is present in the dependent's sampled destination. Sibling work may need to merge into a common ancestor and cascade first.
|
|
55
55
|
- **Presence** is checked at claim, without interrupting existing builds; missing or ambiguous evidence keeps the dependent queued.
|
|
56
56
|
- **Without nodes**, and for blockers without builds, the source ticket's done state resolves it.
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
## Policy authorizes
|
|
59
|
+
## Policy authorizes merge
|
|
60
60
|
|
|
61
|
-
Ordered `[[
|
|
61
|
+
Ordered `[[merge]]` rules in `autobuild.toml` select `auto` or `consent`; the first match wins. Rules match source kind (`from`), destination (`into`), and ticket `label`. Without a match, leaves default to `auto` and nodes to `consent`.
|
|
62
62
|
|
|
63
63
|
```toml
|
|
64
|
-
# Leaves
|
|
65
|
-
[[
|
|
64
|
+
# Leaves merge on the root automatically; everything else needs consent.
|
|
65
|
+
[[merge]]
|
|
66
66
|
from = "leaf"
|
|
67
67
|
into = "root"
|
|
68
68
|
mode = "auto"
|
|
69
69
|
|
|
70
|
-
[[
|
|
70
|
+
[[merge]]
|
|
71
71
|
mode = "consent"
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
Your operator agent manages consent:
|
|
75
75
|
|
|
76
|
-
- `ab
|
|
77
|
-
- `ab hold <slug>` suppresses
|
|
76
|
+
- `ab merge <slug>` records consent to a ready merge and clears a hold.
|
|
77
|
+
- `ab hold <slug>` suppresses merge, even before readiness, and withdraws consent.
|
|
78
78
|
|
|
79
79
|
Neither control, nor automatic authorization, bypasses readiness, verification, forge checks, protection, or merge gates.
|
|
80
80
|
|
package/docs/integration-tree.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Autobuild organizes work as a tree rooted at the configured `baseBranch`.
|
|
4
4
|
Work tickets are leaves; node tickets are finite integration points that collect
|
|
5
|
-
children before
|
|
5
|
+
children before merge into their parent. Nodes can nest. An omitted target
|
|
6
6
|
means the root, so repositories can continue sending every leaf directly there.
|
|
7
7
|
Blockers form a separate graph. In repositories with nodes, a blocker with a
|
|
8
8
|
build resolves only when its change identity is present in the dependent's
|
|
@@ -12,10 +12,10 @@ See [restacking](restacking.md) for change identity and replay.
|
|
|
12
12
|
|
|
13
13
|
Presence is checked only at claim, never to interrupt existing work. The newest
|
|
14
14
|
build generation supplies evidence; ambiguous or unavailable evidence leaves the
|
|
15
|
-
dependent queued. Confirmed
|
|
16
|
-
a trailer, and a
|
|
17
|
-
completed nodes contribute nothing. Sibling work waits for
|
|
18
|
-
ancestor and demand the minimal restack path; same-node
|
|
15
|
+
dependent queued. Confirmed merge SHA reachability can prove presence without
|
|
16
|
+
a trailer, and a merged node transports its whole owned contribution. Empty
|
|
17
|
+
completed nodes contribute nothing. Sibling work waits for merge into the common
|
|
18
|
+
ancestor and demand the minimal restack path; same-node merges satisfy presence directly.
|
|
19
19
|
|
|
20
20
|
## Choosing a destination
|
|
21
21
|
|
|
@@ -24,29 +24,29 @@ First decide whether the feature should be more than one ticket at all; the
|
|
|
24
24
|
tickets cut at seams. Whenever grooming produces more than one ticket for a
|
|
25
25
|
feature, explicitly choose root or a node before filing. Use a node when the set should reach the base branch
|
|
26
26
|
as one integrated change, or intermediate states should not ship independently.
|
|
27
|
-
Use root when every ticket is independently valuable and safe to
|
|
27
|
+
Use root when every ticket is independently valuable and safe to merge alone.
|
|
28
28
|
Nested nodes can collect a subfeature before contributing it to a larger feature.
|
|
29
29
|
A node provides one integrated delivery to its parent under the configured forge
|
|
30
30
|
method; it does not promise one physical Git commit.
|
|
31
31
|
|
|
32
32
|
Blockers and targets are independent: blockers order work; targets decide where
|
|
33
|
-
it
|
|
33
|
+
it merges. A blocker inside the same node resolves when its change merges into that
|
|
34
34
|
node, so a dependency chain can advance without waiting for root consent, subject
|
|
35
35
|
to the normal claim gates and presence rules. Dependencies across destinations
|
|
36
36
|
still need the presence evidence described above and in
|
|
37
37
|
[blocker resolution](ticket-dependencies.md#when-a-blocker-resolves).
|
|
38
38
|
|
|
39
39
|
Read the consuming repository's `autobuild.toml` and evaluate its effective
|
|
40
|
-
[
|
|
41
|
-
labels. Ordered `[[
|
|
40
|
+
[merge policy](merge-policy.md) for the actual ticket kinds, destinations and
|
|
41
|
+
labels. Ordered `[[merge]]` rules use the first match; `from`, `into` and `label`
|
|
42
42
|
predicates are ANDed, with omitted predicates acting as wildcards. Without a
|
|
43
|
-
match, leaves default to auto and nodes to consent. Explain the resulting
|
|
43
|
+
match, leaves default to auto and nodes to consent. Explain the resulting merge
|
|
44
44
|
and consent flow to the human in plain terms. Ask when grooming does not make the
|
|
45
45
|
destination choice clear. This decision is separate from workflow-state placement
|
|
46
46
|
and never authorizes promoting tickets to ready.
|
|
47
47
|
|
|
48
48
|
For example, **if** the matched rules require consent into root and allow automatic
|
|
49
|
-
|
|
49
|
+
merge into nodes (the staged-release example in the policy reference), a
|
|
50
50
|
root-targeted chain waits for consent separately for each ticket and ships each
|
|
51
51
|
intermediate change to the base branch. Under those same rules, children collect
|
|
52
52
|
automatically in a node and the verified, complete node waits for consent once
|
|
@@ -96,15 +96,15 @@ capacity, effective display capacity and the nodes using descendant-held slots.
|
|
|
96
96
|
Idle collecting nodes remain free.
|
|
97
97
|
|
|
98
98
|
Claims freeze the destination build generation and branch. Missing, unopened,
|
|
99
|
-
|
|
99
|
+
merged, closed or aborted targets leave work queued with diagnostics. The newest
|
|
100
100
|
generation wins; a closed generation never falls back to an older open one.
|
|
101
101
|
Source metadata and effective ancestry are different: `ab ticket tree` shows
|
|
102
102
|
source targets, while build status shows the effective destination.
|
|
103
103
|
|
|
104
|
-
## Collect, verify and
|
|
104
|
+
## Collect, verify and merge
|
|
105
105
|
|
|
106
106
|
Node `verify:*` context additionally exposes `nodeVerification`: the frozen
|
|
107
|
-
range, a JSON index path, contribution build slugs,
|
|
107
|
+
range, a JSON index path, contribution build slugs, preparation-time stored ticket
|
|
108
108
|
identities, event-authorized spec revisions and spec paths, and their commits.
|
|
109
109
|
The index maps every commit in the range using build identity trailers,
|
|
110
110
|
including earlier-cycle contributions and merge side history. Commits without
|
|
@@ -115,7 +115,14 @@ Their full messages express maintainer-authorized intent: judge quality and
|
|
|
115
115
|
consistency, and never fail them solely for lacking a covering spec. Other node
|
|
116
116
|
changes are authorized when covered by the current event-authorized node spec or the spec
|
|
117
117
|
of the contribution introducing it; use the commit mapping to find that spec.
|
|
118
|
-
|
|
118
|
+
The dispatcher collects these inputs with repository authority before launching
|
|
119
|
+
verification and atomically deposits a node-owned `node-verification-context`
|
|
120
|
+
artifact cited by exact revision in `integration.prepared`. Contributor specs
|
|
121
|
+
freeze at preparation; resumed and concurrent verifiers read the same cycle input.
|
|
122
|
+
Hydration reads only that node-owned artifact and grants no general contributor
|
|
123
|
+
read authority. Missing or ambiguous provenance prevents preparation; missing,
|
|
124
|
+
corrupt or mismatched prepared inputs fail hydration. Historical agent cycles
|
|
125
|
+
without a citation require a new integration cycle. Leaf context is unchanged.
|
|
119
126
|
See [iterating inside a node](#iterating-inside-a-node) for authoring and evolving
|
|
120
127
|
these sources of intent.
|
|
121
128
|
|
|
@@ -136,25 +143,25 @@ Each leaf runs the normal spec, plan/review, implement/review, verify and finali
|
|
|
136
143
|
pipeline against its frozen destination.
|
|
137
144
|
|
|
138
145
|
A node collects until every ticket targeting it is natively done or cancelled,
|
|
139
|
-
all frozen child claims have settled, and at least one contribution has
|
|
146
|
+
all frozen child claims have settled, and at least one contribution has merged.
|
|
140
147
|
Triage, backlog and ready children keep it incomplete. Exhaustive enumeration
|
|
141
148
|
failures fail closed. Completeness is sampled again before verification and
|
|
142
149
|
publication; tracker edits cannot be transactional with a forge write.
|
|
143
150
|
|
|
144
151
|
The kernel runs all configured verify steps with normal path applicability on
|
|
145
152
|
the exact node head and parent. Either moving invalidates eligibility, even a
|
|
146
|
-
clean restack. Failed verification blocks the node and emits `integration.verification-failed` once per prepared cycle. Default watch
|
|
147
|
-
it; the repaired
|
|
153
|
+
clean restack. Failed verification blocks the node and emits `integration.verification-failed` once per prepared cycle. Default `ab watch` includes it; `ab wait --for attention` also detects the current failure before notification. The fact names failed steps, head, parent and repair guidance. Watch baselines prior failures; reconcile status after arming. A new cycle can notify again, while historical facts do not keep a repaired node blocked. Recovery reports only the latest prepared cycle while its head and parent remain current; superseded failures are not backfilled. Recheck current status before filing a repair, since the node may have advanced after notification. To recover, file a repair child targeting
|
|
154
|
+
it; the repaired merged head permits a new cycle. If the contract changed, an
|
|
148
155
|
operator can explicitly revise the spec instead and verify again on the same head
|
|
149
156
|
(see operator node spec revisions below). Historical reports keep their
|
|
150
|
-
actual head/base citations. Integration grammar is collect → verify →
|
|
157
|
+
actual head/base citations. Integration grammar is collect → verify → merge →
|
|
151
158
|
close, with restacking and repair cycles along the way.
|
|
152
159
|
|
|
153
|
-
[
|
|
154
|
-
verified, `ab
|
|
160
|
+
[Merge policy](merge-policy.md) defaults nodes to consent. Once complete and
|
|
161
|
+
verified, `ab merge <slug>` authorizes merge; it refuses incomplete nodes and
|
|
155
162
|
names open children. `ab hold <slug>` works before readiness and withdraws
|
|
156
163
|
consent. Automatic authorization still requires every readiness and merge gate.
|
|
157
|
-
A
|
|
164
|
+
A merged node completes its ticket and closes admission; it is not a perpetual
|
|
158
165
|
staging branch. Releases remain separate maintainer operations.
|
|
159
166
|
|
|
160
167
|
Human forge merges are an explicit escape hatch, including while incomplete,
|
|
@@ -166,7 +173,7 @@ children retain their frozen destination.
|
|
|
166
173
|
## Iterating inside a node
|
|
167
174
|
|
|
168
175
|
Write the node spec as a finite integration charter: its goal, observable
|
|
169
|
-
completion conditions for the whole, and destination and
|
|
176
|
+
completion conditions for the whole, and destination and merge expectations
|
|
170
177
|
under the effective policy. Put feature specifics in spec-standard children.
|
|
171
178
|
An open node supports three ways to iterate:
|
|
172
179
|
|
|
@@ -191,9 +198,9 @@ An open node supports three ways to iterate:
|
|
|
191
198
|
restrictions.
|
|
192
199
|
|
|
193
200
|
Open children keep the node incomplete, including triage, backlog and ready
|
|
194
|
-
children. Completion remains finite:
|
|
201
|
+
children. Completion remains finite: merged or otherwise ended nodes close
|
|
195
202
|
admission. Iteration does not relax verification of the exact head and parent,
|
|
196
|
-
or the configured readiness, consent and
|
|
203
|
+
or the configured readiness, consent and merge gates described above.
|
|
197
204
|
|
|
198
205
|
## Changing a parent
|
|
199
206
|
|
|
@@ -205,11 +212,11 @@ new commit or PR. Descendants restack only on their own demand.
|
|
|
205
212
|
|
|
206
213
|
The request is durable before the provider write. Source readback accepts the
|
|
207
214
|
new effective ancestry; branch publication, PR retargeting and completion have
|
|
208
|
-
separate receipts. Pending moves fence verification and
|
|
209
|
-
parents incomplete. Reparenting revokes
|
|
215
|
+
separate receipts. Pending moves fence verification and merge and keep both
|
|
216
|
+
parents incomplete. Reparenting revokes merge consent; holds survive. Policy is
|
|
210
217
|
sampled again for the new parent, including when both parents have the same SHA.
|
|
211
218
|
|
|
212
|
-
Cycles, unopened/terminal parents,
|
|
219
|
+
Cycles, unopened/terminal parents, merge or closing nodes, unsupported PR
|
|
213
220
|
retargeting and busy writer operations refuse or defer the move with a reason.
|
|
214
221
|
Invalid direct provider edits leave effective ancestry unchanged and produce
|
|
215
222
|
durable diagnostics; restoring it clears the current refusal. Missing source
|
|
@@ -218,29 +225,29 @@ Git/PR effects without the tracker. Ambiguous writes are reread on recovery.
|
|
|
218
225
|
Changing a claimed work ticket's target is refused before any combined patch is
|
|
219
226
|
written: abort and re-dispatch instead.
|
|
220
227
|
|
|
221
|
-
See [forge requirements](
|
|
228
|
+
See [forge requirements](merge-policy.md#forge-requirements),
|
|
222
229
|
[restacking](restacking.md), and [migration from 0.x](migration-1.0.md).
|
|
223
230
|
|
|
224
231
|
## Integration detail
|
|
225
232
|
|
|
226
233
|
Both dashboards show destination (with the configured-base annotation for root
|
|
227
|
-
targets), row progress and steps, branch/restack state, and all open and
|
|
234
|
+
targets), row progress and steps, branch/restack state, and all open and merged
|
|
228
235
|
children with titles and states. Open children come first; live children show
|
|
229
|
-
their current phase, unbuilt children read `queued`, contributions read `
|
|
236
|
+
their current phase, unbuilt children read `queued`, contributions read `merged`.
|
|
230
237
|
Cancelled tickets without contributions are excluded. Verification names the
|
|
231
238
|
expected steps and only outcomes bound to the current node head and destination;
|
|
232
|
-
failures name the repair-child instruction.
|
|
233
|
-
ready consent names `l` and `ab
|
|
239
|
+
failures name the repair-child instruction. Merge explains the rule and mode;
|
|
240
|
+
ready consent names `l` and `ab merge <slug>`. Conflicts name recorded files.
|
|
234
241
|
These are Store-only projections: additive `integration.observed.children`
|
|
235
242
|
metadata carries source/id, optional title and contribution build identity;
|
|
236
243
|
`node.item-conflicted.files` and conflicted `restack.replayed.files` retain paths.
|
|
237
244
|
Older events remain readable, with explicit unavailable titles/files. Display
|
|
238
|
-
metadata never changes completeness or
|
|
245
|
+
metadata never changes completeness or merge eligibility.
|
|
239
246
|
|
|
240
247
|
## Demand-driven parent freshness
|
|
241
248
|
|
|
242
249
|
Collecting nodes may intentionally trail their parent. They refresh before
|
|
243
|
-
verification and
|
|
250
|
+
verification and merge, for queued dependency presence, on operator request,
|
|
244
251
|
and after accepted re-parenting. Descendants need independent demand; presence
|
|
245
252
|
requests follow only the minimal proven ancestor path. See
|
|
246
253
|
[restacking](restacking.md#timing-and-evidence) for timing, requests and distance.
|
|
@@ -250,7 +257,7 @@ requests follow only the minimal proven ancestor path. See
|
|
|
250
257
|
Opened integration nodes poll every tick until their durable activity has been
|
|
251
258
|
quiet for `policy.nodeIdleAfterSeconds` (default 600 seconds), then poll every
|
|
252
259
|
`policy.nodeIdlePollSeconds` (default 120 seconds). Holds and waiting for consent
|
|
253
|
-
qualify normally. Child claims, PR and
|
|
260
|
+
qualify normally. Child claims, PR and merge activity, operator commands
|
|
254
261
|
(including repeated holds), restack requests and answers wake the next tick.
|
|
255
262
|
GitHub-only changes are discovered on the next due check, within the idle
|
|
256
263
|
interval plus normal tick scheduling while the dispatcher is running; failure,
|
|
@@ -272,10 +279,10 @@ Each kernel `spec.revised` records the exact artifact and operator identity
|
|
|
272
279
|
Ticket-origin revisions re-pin assets; supplied bodies preserve asset pins.
|
|
273
280
|
The node recollects and verifies the new revision, including on the same head
|
|
274
281
|
and parent after a failed cycle. Earlier cycles remain historical evidence
|
|
275
|
-
and cannot block or authorize
|
|
282
|
+
and cannot block or authorize merge under the replacement. Children keep
|
|
276
283
|
their specs, claims and targets; contributions are not restarted.
|
|
277
284
|
Active verification/reconcile or writer work, restack/reparent work, pause,
|
|
278
|
-
pending controls,
|
|
285
|
+
pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
279
286
|
A concurrent state change refuses publication with a retry explanation;
|
|
280
287
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
281
288
|
restart from `plan`.
|
package/docs/integration.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A node collects related work into one finite delivery to its parent. Write its
|
|
4
4
|
ticket as a charter: why the integration matters, what observable conditions
|
|
5
|
-
make the whole done, and where and how it
|
|
6
|
-
|
|
5
|
+
make the whole done, and where and how it merges under the repository's effective
|
|
6
|
+
merge policy. Keep the usual spec sections: what and why, checkable acceptance
|
|
7
7
|
criteria, out of scope, and evidence. Put evolving feature specifics in children.
|
|
8
8
|
|
|
9
9
|
For example, a charter can aim for a coherent account-management flow, complete
|
|
@@ -44,11 +44,11 @@ failed cycle. Children retain their specs, claims and targets.
|
|
|
44
44
|
|
|
45
45
|
Open children, including triage, backlog and ready tickets, keep the node
|
|
46
46
|
incomplete. Once complete, the node must pass verification on its exact head and
|
|
47
|
-
parent and satisfy its configured
|
|
47
|
+
parent and satisfy its configured merge gates. Merge completes the node and
|
|
48
48
|
closes admission; use a new node for a later delivery. Consent requirements depend
|
|
49
49
|
on the effective policy.
|
|
50
50
|
|
|
51
|
-
See [integration trees](integration-tree.md#collect-verify-and-
|
|
51
|
+
See [integration trees](integration-tree.md#collect-verify-and-merge) for provenance
|
|
52
52
|
and completion details, [revision restrictions](integration-tree.md#operator-node-spec-revisions)
|
|
53
|
-
for when a replacement is accepted, and [
|
|
54
|
-
|
|
53
|
+
for when a replacement is accepted, and [merge policy](merge-policy.md) for
|
|
54
|
+
merge and consent rules.
|