agcoord 0.9.2__tar.gz → 0.9.4__tar.gz
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.
- {agcoord-0.9.2 → agcoord-0.9.4}/.antigravity-plugin/plugin.json +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/.claude-plugin/plugin.json +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/CHANGELOG.md +28 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/Cargo.lock +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/Cargo.toml +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/PKG-INFO +2 -2
- {agcoord-0.9.2 → agcoord-0.9.4}/README.md +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/conformance/manifest-v3.json +10 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/coordinator.md +80 -19
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/native_broker.md +5 -3
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/quickstart.md +3 -2
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/broker.rs +7 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/main.rs +52 -4
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/store.rs +1261 -66
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/tests/client_compatibility.rs +20 -2
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/tests/scheduler.rs +595 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/plugin.json +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/skills/agcoord/references/landing-and-recovery.md +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/__init__.py +1 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/cli.py +93 -1
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/config.py +20 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/land.py +670 -31
- agcoord-0.9.4/src/agcoord/native_host_pin.json +5 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/queue.py +250 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/tui.py +107 -7
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/PKG-INFO +2 -2
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_cli.py +162 -5
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_conformance_gate.py +2 -2
- agcoord-0.9.4/tests/test_land_batch.py +1461 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_client.py +7 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_queue.py +1 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_tui.py +235 -1
- agcoord-0.9.2/src/agcoord/native_host_pin.json +0 -5
- agcoord-0.9.2/tests/test_land_batch.py +0 -733
- {agcoord-0.9.2 → agcoord-0.9.4}/.agents/plugins/marketplace.json +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/.claude-plugin/marketplace.json +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/AGENTS.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/LICENSE +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/MANIFEST.in +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/agents.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/assets/README.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/assets/agcoord-gourd-mascot.png +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/changelog.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/comparison.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/concepts.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/conformance.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/contributing.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/guardrails.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/index.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/installation.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/native_host.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/native_migration.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/overview.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/releasing.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/session_handoff_format.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/skills.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/troubleshooting.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/docs/why.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/THIRD_PARTY_LICENSES.tsv +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/Cargo.toml +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/build.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/cgroup.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/error.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/gate_tree.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/host.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/overflow.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/platform.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/project_quota.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/recovery.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/resources.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/src/worker.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/tests/host_deployment.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/tests/host_recovery.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/agcoord-broker/tests/identity.rs +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/native/build-toolchain.json +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/apparmor/usr.libexec.agcoord.agcoord-broker +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/systemd/agcoord-broker.service +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/terraform/gcp-overflow/main.tf +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/terraform/gcp-overflow/outputs.tf +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/terraform/gcp-overflow/variables.tf +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/packaging/terraform/gcp-overflow/versions.tf +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/pyproject.toml +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/rust-toolchain.toml +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/audit-native-broker +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/build-native-broker +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/build-native-host-package +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/check-conformance +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/check-native-host-package +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/check-native-licenses +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/check-native-reproducible +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/check-plugins.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/install-native-host +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/native-source-id +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/native-toolchain +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/test-native-host-enforcement +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/test-native-host-recovery +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/verify-release-candidate +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/scripts/with-native-ci-pin +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/setup.cfg +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/skills/agcoord/SKILL.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/skills/agcoord/references/overflow.md +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/__main__.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/avoid.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/frame.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/github.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/github_release.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/merge.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/native_client.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/native_host.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/overflow_gcp.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/overflow_gcp_batch.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/overflow_gcp_run.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/overflow_image.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/overflow_ssh.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/py.typed +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/pytest_xdist.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord/resources.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/SOURCES.txt +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/dependency_links.txt +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/entry_points.txt +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/requires.txt +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/src/agcoord.egg-info/top_level.txt +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/conftest.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/gcp_fakes.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_avoid.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_distribution.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_github_adapter.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_host_config.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_install_rust_toolchain.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_land.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_leases.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_merge.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_host_assets.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_host_download.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_host_package.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_host_recovery.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_host_upgrade.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_native_toolchain.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_overflow_gcp_batch.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_overflow_gcp_run.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_overflow_image.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_overflow_ssh.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_pytest_xdist.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_release_candidate.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_resource_bindings.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_terraform_gcp_overflow.py +0 -0
- {agcoord-0.9.2 → agcoord-0.9.4}/tests/test_user_broker_install.py +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "agcoord",
|
|
4
4
|
"displayName": "agcoord",
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.4",
|
|
6
6
|
"description": "Coordinate local and overflow checks, resource claims, and atomic PR landings with agc.",
|
|
7
7
|
"author": {"name": "agcoord contributors"},
|
|
8
8
|
"repository": "https://github.com/xu-hao/agcoord"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agcoord",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Coordinate local and overflow checks, resource claims, and atomic PR landings with agc.",
|
|
5
5
|
"author": {"name": "agcoord contributors"},
|
|
6
6
|
"repository": "https://github.com/xu-hao/agcoord"
|
|
@@ -5,6 +5,34 @@ versioning; dates use ISO 8601.
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 0.9.4 — 2026-11-17
|
|
9
|
+
|
|
10
|
+
- Fix `rustfmt` and `clippy::map-entry` CI checks in `agcoord-broker` and publish the coupled
|
|
11
|
+
AGCoord `0.9.4` PyPI distribution and native `x86_64-unknown-linux-musl` host bundle on GitHub
|
|
12
|
+
Releases, superseding the unpublished `v0.9.3` tag. #362 — fix rustfmt and clippy checks in
|
|
13
|
+
agcoord-broker.
|
|
14
|
+
|
|
15
|
+
## 0.9.3 — 2026-11-17
|
|
16
|
+
|
|
17
|
+
- Pass `AGCOORD_BATCH_ATTRIBUTION_FILE` to multi-PR batch gates, validate optional
|
|
18
|
+
`agcoord-failure-attribution-v1` causal failure receipts, evict uniquely blamed batch members
|
|
19
|
+
immediately before binary bisection (`attributed-gate-failed`), and surface attributed culprits
|
|
20
|
+
and blaming units in `agc show` and `agc tui`. #355 — evict uniquely blamed batch members via
|
|
21
|
+
optional gate failure-attribution receipts before binary bisection.
|
|
22
|
+
|
|
23
|
+
- Bound batched `agc land` runs to adaptive power-of-two sizes ($B = 2^k$, configurable via
|
|
24
|
+
`land_max_batch_size` and falling back to $B = 1$ above ~38% recent repository failure rate),
|
|
25
|
+
skip deductively known-failing right-hand slices (`deduced-bisected`, `deduced-gate-failed`) with
|
|
26
|
+
`--no-deductive-bisect` opt-out, and surface `B` and deduced outcomes in `agc show` and `agc tui`.
|
|
27
|
+
#354 — bound land batch size to adaptive powers of two and skip deductively known-failing slices
|
|
28
|
+
during bisection.
|
|
29
|
+
|
|
30
|
+
- Persist structured land batch membership and chronological slice/bisect step history for leaders
|
|
31
|
+
and followers, render `agc show <id>` as readable plain text with `Batch & Bisect History:` when
|
|
32
|
+
batched (`agc --json show <id>` keeps the full JSON row), and surface compact batch status plus
|
|
33
|
+
live-updating modal history in `agc tui`. #353 — persist structured land batch and bisect history
|
|
34
|
+
and surface it in agc show and the TUI.
|
|
35
|
+
|
|
8
36
|
## 0.9.2 — 2026-11-15
|
|
9
37
|
|
|
10
38
|
- Verify admission against the exact active batch slice head and expose its ordered members in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agcoord
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
4
4
|
Summary: Local CI and merge queue for coding agents that share one machine
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/xu-hao/agcoord
|
|
@@ -166,7 +166,7 @@ agc run --label "unit tests" --resource cpu=2 -- python -m pytest -q # an o
|
|
|
166
166
|
agc full --label "release gate" --resource cpu=4 -- ./scripts/test.sh # a clean exact-head receipt
|
|
167
167
|
agc land 123 --label "land PR 123" --resource cpu=4 -- ./scripts/test.sh # gate and publish, one row
|
|
168
168
|
agc list # every job on the machine
|
|
169
|
-
agc show check-0123456789ab # one durable row
|
|
169
|
+
agc show check-0123456789ab # one durable row (--json for JSON)
|
|
170
170
|
agc log land-0123456789ab --follow # one combined log
|
|
171
171
|
agc cancel check-0123456789ab # process-group cancellation
|
|
172
172
|
agc tui # live view across repositories
|
|
@@ -129,7 +129,7 @@ agc run --label "unit tests" --resource cpu=2 -- python -m pytest -q # an o
|
|
|
129
129
|
agc full --label "release gate" --resource cpu=4 -- ./scripts/test.sh # a clean exact-head receipt
|
|
130
130
|
agc land 123 --label "land PR 123" --resource cpu=4 -- ./scripts/test.sh # gate and publish, one row
|
|
131
131
|
agc list # every job on the machine
|
|
132
|
-
agc show check-0123456789ab # one durable row
|
|
132
|
+
agc show check-0123456789ab # one durable row (--json for JSON)
|
|
133
133
|
agc log land-0123456789ab --follow # one combined log
|
|
134
134
|
agc cancel check-0123456789ab # process-group cancellation
|
|
135
135
|
agc tui # live view across repositories
|
|
@@ -128,6 +128,16 @@
|
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"id": "publication.batch-history-retention",
|
|
133
|
+
"domain": "publication",
|
|
134
|
+
"description": "Batched land attempts retain durable batch membership and ordered slice and bisection steps across leader and follower status and snapshot views, while requeued followers record their subsequent standalone or re-batched execution without collision.",
|
|
135
|
+
"tests": {
|
|
136
|
+
"rust_native": [
|
|
137
|
+
"scheduler::land_batch_retains_history_across_bisect_follower_views_and_requeue"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
131
141
|
{
|
|
132
142
|
"id": "tui.real-snapshot-refresh",
|
|
133
143
|
"domain": "tui",
|
|
@@ -192,7 +192,7 @@ its ordinary admitted profile.
|
|
|
192
192
|
|
|
193
193
|
One JSON file, `config.json` in the state directory, configures the broker that owns that
|
|
194
194
|
directory. It holds at most `capacities`, `bindings`, `cgroup_root`, `cgroup_io`,
|
|
195
|
-
`database_timeout`, `land_gate_reuse_max_age`, `stop_grace`, `native_broker`, and
|
|
195
|
+
`database_timeout`, `land_gate_reuse_max_age`, `land_max_batch_size`, `stop_grace`, `native_broker`, and
|
|
196
196
|
`overflow_pools`; invalid JSON, a top-level
|
|
197
197
|
value that is not an object,
|
|
198
198
|
an unknown key, a section that is not an object, or an empty `cgroup_root` is refused when the
|
|
@@ -201,7 +201,9 @@ nonempty `paths` list of unique absolute strings. `database_timeout` is a positi
|
|
|
201
201
|
of seconds no greater than `2147483.647` (SQLite's millisecond limit) and defaults to `10`.
|
|
202
202
|
`land_gate_reuse_max_age` is a finite number of seconds from `0` to `2147483.647`, defaults to
|
|
203
203
|
`3600`, and bounds how long a passed `full` receipt may stand in for a land gate; `0` refuses
|
|
204
|
-
every reuse on that host even when a caller asks for one. `
|
|
204
|
+
every reuse on that host even when a caller asks for one. `land_max_batch_size` is an integer from
|
|
205
|
+
`1` to `1024`, defaults to `8`, and bounds the adaptive power-of-two batch size ceiling (`1`
|
|
206
|
+
disables batch claiming so queued lands execute one at a time). `stop_grace` is a finite number of
|
|
205
207
|
seconds from `0` to `2147483.647`, defaults to `600`, and bounds how long a gracefully stopping
|
|
206
208
|
broker lets running jobs finish before it interrupts them; `0` interrupts them at once. An
|
|
207
209
|
absent file uses `/usr/libexec/agcoord/agcoord-broker`, requires its release trust policy, and
|
|
@@ -1522,26 +1524,64 @@ waits for publishing and records its authoritative result.
|
|
|
1522
1524
|
### Batching and bisecting queued lands
|
|
1523
1525
|
|
|
1524
1526
|
When an admitted `land` row starts while other queued `land` rows target the same repository,
|
|
1525
|
-
target branch, normalized gate command, and compatible resource envelope, the coordinator
|
|
1526
|
-
|
|
1527
|
+
target branch, normalized gate command, and compatible resource envelope, the coordinator bounds the
|
|
1528
|
+
batch to an adaptive power-of-two size $B = 2^k$ (clamped by `land_max_batch_size`, default `8`)
|
|
1529
|
+
from the sliding window of the last 16 `passed`/`failed` `land` runs on that `repository_id`:
|
|
1530
|
+
cold-start (`< 4` runs) uses $B = 4$; failure rate $\hat{p} < 0.11 \rightarrow B = 8$ (or the
|
|
1531
|
+
configured power-of-two ceiling); $0.11 \le \hat{p} < 0.21 \rightarrow B = 4$;
|
|
1532
|
+
$0.21 \le \hat{p} < 0.38 \rightarrow B = 2$; and $\hat{p} \ge 0.38 \rightarrow B = 1$ (falling back
|
|
1533
|
+
to sequential single-PR runs above Ungar's ~38.2% group-testing crossover until pass rate recovers).
|
|
1534
|
+
When $Q$ ready compatible `land` requests are available, the leader claims the largest power of two
|
|
1535
|
+
$\le \min(Q, B)$ (leaving trailing requests queued for the next batch):
|
|
1527
1536
|
|
|
1528
1537
|
1. **Pre-gate assembly (`T_i = merge(T_{i-1}, P_i)`):** Starting from `T_0 = main`, the leader
|
|
1529
1538
|
inspects each candidate's live PR state and head SHA (skipping `pr-not-ready`,
|
|
1530
|
-
`head-changed`, or `avoided-commit` rows without pulling them into the batch),
|
|
1531
|
-
`T_0`, and sequentially runs `git merge --no-ff` in the
|
|
1532
|
-
that conflicts with `T_{i-1}` is
|
|
1533
|
-
the remaining clean candidates continue assembling from `T_{i-1}`.
|
|
1539
|
+
`head-changed`, or `avoided-commit` rows without pulling them into the batch), claims a
|
|
1540
|
+
power-of-two batch $\le B$, checks out `T_0`, and sequentially runs `git merge --no-ff` in the
|
|
1541
|
+
coordinator gate tree. Any candidate that conflicts with `T_{i-1}` is recorded immediately as
|
|
1542
|
+
`merge-error` and dropped so the remaining clean candidates continue assembling from `T_{i-1}`.
|
|
1534
1543
|
2. **Combined gating and atomic multi-PR publication:** The leader runs the gate command once on
|
|
1535
1544
|
the combined merge tree `T_k`. When the gate succeeds and `main` plus all `P_1..P_k` head SHAs
|
|
1536
1545
|
still match, the leader constructs chained merge commits `M_1..M_k` on GitHub and advances
|
|
1537
1546
|
`main` to `M_k` along with each PR's `avoid-commit` / closure ref via `update_refs` in one
|
|
1538
1547
|
atomic transaction, closing every member row as `passed` with the batch log.
|
|
1539
|
-
3. **
|
|
1540
|
-
splits `
|
|
1541
|
-
against the current `main`; when `Left`
|
|
1542
|
-
`main`
|
|
1543
|
-
|
|
1544
|
-
|
|
1548
|
+
3. **Deductive power-of-two bisection on gate failure:** If `T_k` fails its gate (`k > 1`), the
|
|
1549
|
+
slice splits at the largest power of two strictly less than `k` into `Left` and `Right`. `Left`
|
|
1550
|
+
is assembled and gated first against the current `main`; when every member of `Left` publishes
|
|
1551
|
+
cleanly onto `main` ($M' = M + \text{Left}$) and `Right` re-merges onto $M'$ with zero drops to
|
|
1552
|
+
the exact root tree SHA that already failed in the parent slice, `Right` is deductively known to
|
|
1553
|
+
fail without re-running its combined or singleton gate (`deduced-bisected` for $|Right| \ge 2$,
|
|
1554
|
+
or `deduced-gate-failed` finalizing a singleton immediately as `gate-failed`). Any cancellation,
|
|
1555
|
+
preflight invalidation, merge conflict, or external target move changes the tree and invalidates
|
|
1556
|
+
`known_bad`, running an explicit gate instead. Pass `--no-deductive-bisect` on `agc land` when a
|
|
1557
|
+
flaky non-deterministic gate requires an explicit singleton failure log on every rejected PR.
|
|
1558
|
+
4. **Causal failure-attribution eviction (`AGCOORD_BATCH_ATTRIBUTION_FILE`):** Before invoking the
|
|
1559
|
+
gate for any multi-PR batch slice (`k >= 2`), the leader creates an owned empty temporary file
|
|
1560
|
+
outside the checkout and sets `AGCOORD_BATCH_ATTRIBUTION_FILE=<path>` in the gate environment
|
|
1561
|
+
(cleaned up after each gate). Dependency-aware test runners may write an optional JSON receipt
|
|
1562
|
+
(`<= 4 MiB`, regular non-symlink file):
|
|
1563
|
+
|
|
1564
|
+
```json
|
|
1565
|
+
{
|
|
1566
|
+
"format": "agcoord-failure-attribution-v1",
|
|
1567
|
+
"failures": [
|
|
1568
|
+
{
|
|
1569
|
+
"unit": "tests/test_billing.py",
|
|
1570
|
+
"causal_paths": ["src/billing/invoice.py", "tests/test_billing.py"]
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
```
|
|
1575
|
+
|
|
1576
|
+
Each `causal_paths` entry must be a canonical repository-relative POSIX file or directory path
|
|
1577
|
+
(no leading/trailing `/`, `.`/`..`, backslashes, or symlinks; a directory `"src/billing"` matches
|
|
1578
|
+
any changed path below `src/billing/`). On non-zero gate exit, `LandCoordinator` intersects each
|
|
1579
|
+
failure's `causal_paths` with every slice member's `git diff --name-only <T_0>...<head>`. When
|
|
1580
|
+
one or more members form a strict subset uniquely blamed by individual failing units (`|M_f| == 1`),
|
|
1581
|
+
those culprits are finalized immediately as `gate-failed` (recording `attributed-gate-failed` and
|
|
1582
|
+
`attributed` `[{run_id, units}]` in batch history) without solo confirmation gates, and the
|
|
1583
|
+
remaining unblamed members proceed in a fresh slice (`known_bad=False`). Missing, malformed,
|
|
1584
|
+
zero-match, or multi-member-match receipts fall back safely to deductive binary splitting.
|
|
1545
1585
|
|
|
1546
1586
|
While a batch slice's gate runs, the leader's `admitted_run_status` and `agc --json show`
|
|
1547
1587
|
include `batch_slice`: its exact `gating_head_sha` and an ordered `members` array containing
|
|
@@ -1551,6 +1591,22 @@ checkout's `git rev-parse HEAD` verifies that exact recorded slice head, includi
|
|
|
1551
1591
|
bisection when the slice does not contain the leader. Any other head is refused. Outside an
|
|
1552
1592
|
active slice, admission continues to require the leader run's recorded head.
|
|
1553
1593
|
|
|
1594
|
+
Every member of a batch — both the leader (`role: "leader"`) and each follower (`role: "follower"`,
|
|
1595
|
+
whether dropped on a merge conflict, finalized early on a bisected slice, or published at the end) —
|
|
1596
|
+
also exposes a durable `batch` provenance object on `status` (`agc --json show`) and `snapshot`
|
|
1597
|
+
(`agc --json list`, `agc tui`). Standalone runs (including a `land` row that found zero eligible
|
|
1598
|
+
followers) and followers requeued to `queued` on leader cancellation or crash report `batch: null`;
|
|
1599
|
+
if a requeued follower is later claimed into a new batch, `batch` reflects that newer batch.
|
|
1600
|
+
A populated `batch` object records `leader_run_id`, `role`, `target_branch`, `max_batch_size`,
|
|
1601
|
+
`created_at`, ordered `members` (`position`, `run_id`, `branch`, `head_sha`, `publication`,
|
|
1602
|
+
`status`, `failure_reason`), and chronological `steps` (`step`, `base_sha`, `gating_head_sha`,
|
|
1603
|
+
`member_run_ids`, `gated_member_run_ids`, `dropped`, `attributed`, `gate_reused_from`,
|
|
1604
|
+
`gate_exit_status`, `outcome`, `split`, `published_sha`, `started_at`, `finished_at`) across clean
|
|
1605
|
+
multi-PR gates, causal failure-attribution culprit evictions (`attributed-gate-failed`), recursive
|
|
1606
|
+
and deductive binary-split bisections (`bisected`, `deduced-bisected`, `deduced-gate-failed`),
|
|
1607
|
+
merge-conflict drops, `--reuse-full` substitutions, stale-target or changed-head handbacks,
|
|
1608
|
+
publication failures, and cancellations.
|
|
1609
|
+
|
|
1554
1610
|
### Reusing a full receipt as the land gate
|
|
1555
1611
|
|
|
1556
1612
|
The two-step a worktree usually follows — `agc full`, then `agc land` — exists so that a red gate
|
|
@@ -1635,14 +1691,17 @@ Every accepted job has one stable ID, durable row, and combined stdout/stderr lo
|
|
|
1635
1691
|
```bash
|
|
1636
1692
|
agc list [--repository <repo>] [--agent <agent>] [--kind <kind>] [--pool <pool>] [--limit <n>]
|
|
1637
1693
|
agc list --json
|
|
1638
|
-
agc show <run-id>
|
|
1694
|
+
agc show [--json] <run-id>
|
|
1639
1695
|
agc log <run-id> [--follow]
|
|
1640
1696
|
agc cancel <run-id>
|
|
1641
1697
|
```
|
|
1642
1698
|
|
|
1643
1699
|
The non-JSON `list` table summarizes each row as `admission-only`, `applied`, `partial`,
|
|
1644
|
-
`unapplied`, or `failed
|
|
1645
|
-
|
|
1700
|
+
`unapplied`, or `failed`, and `agc show <run-id>` prints a readable summary of one durable row
|
|
1701
|
+
(including chronological `Batch & Bisect History:` when the row participated in a land batch).
|
|
1702
|
+
`list --json` and `show --json` (or `agc --json show`) retain the complete binding, capability,
|
|
1703
|
+
receipt, and batch fields as JSON so automation can distinguish scheduling, actual application,
|
|
1704
|
+
and measurement.
|
|
1646
1705
|
Optional `--repository`, `--agent`, `--kind`, `--pool`, and `--limit` filter flags query the broker for
|
|
1647
1706
|
matching runs across the durable spool rather than limiting matches to the global default window.
|
|
1648
1707
|
`--pool local` selects runs without an overflow placement, including queued runs.
|
|
@@ -1688,8 +1747,10 @@ shortcut that deletes coordinator state.
|
|
|
1688
1747
|
version. It shows active, queued, and recent terminal jobs across repositories; kind, lane/repository identity, pool,
|
|
1689
1748
|
declared resources, status, phase, label, timing, head, publication, gate exit, and failure details
|
|
1690
1749
|
remain inspectable without truncating the durable values. Persistent selection detail includes
|
|
1691
|
-
the pool
|
|
1692
|
-
|
|
1750
|
+
the pool, enforcement summary, and compact batch position, slice/bisect summary, and leader/follower
|
|
1751
|
+
role when batched; the modal detail (`Enter`) includes the pool, exact resource contract,
|
|
1752
|
+
sanitized receipt events, and live-updating chronological **Batch & Bisect History** across active
|
|
1753
|
+
and completed batched lands; and the status bar summarizes configured overflow pools' active
|
|
1693
1754
|
allocations and used/limit daily CPU-hour budgets (with estimated used/limit cost when
|
|
1694
1755
|
`cpu_hour_price` is configured).
|
|
1695
1756
|
|
|
@@ -339,9 +339,11 @@ Clients continue to use short SQLite transactions rather than mutating live proc
|
|
|
339
339
|
adapter may atomically replace the durable head after a lease-protected target merge; later
|
|
340
340
|
phases cannot change it;
|
|
341
341
|
- an admitted land leader claiming or updating follower rows in a land batch (`claim-batch`,
|
|
342
|
-
`batch-status`, `batch-phase`, `batch-reuse-gate`, `batch-finish`)
|
|
343
|
-
admitted run ID, worker PID and start token, persists membership in
|
|
344
|
-
|
|
342
|
+
`record-batch-step`, `batch-status`, `batch-phase`, `batch-reuse-gate`, `batch-finish`)
|
|
343
|
+
authenticates with its admitted run ID, worker PID and start token, persists active membership in
|
|
344
|
+
`land_batch_members` plus durable batch and slice/bisect history in `land_batches`,
|
|
345
|
+
`land_batch_entries`, and `land_batch_steps`, and reconciles any un-finalized followers and open
|
|
346
|
+
steps on leader exit.
|
|
345
347
|
|
|
346
348
|
Every mutation is committed before success is returned. The broker independently validates the
|
|
347
349
|
complete row before acting. Client code never performs admission, attaches resources, releases
|
|
@@ -66,8 +66,9 @@ agc tui
|
|
|
66
66
|
|
|
67
67
|
`list` prints one line per job with its status, kind, repository, agent, label, declared
|
|
68
68
|
resources, and an enforcement summary, which reads `admission-only` in this spool. `show`
|
|
69
|
-
prints
|
|
70
|
-
resource
|
|
69
|
+
prints a readable summary of one durable row, including the exact command, checkout, branch,
|
|
70
|
+
resource summary, and batch/bisect history when present (`agc --json show` prints the complete
|
|
71
|
+
durable row as JSON). `log` prints the combined stdout and stderr, and `--follow` waits through
|
|
71
72
|
completion. The TUI shows every repository on the machine; `r` refreshes, `Enter` opens a
|
|
72
73
|
row, `l` shows its log, `c` cancels, `p` and `a` filter by repository and agent, and `q`
|
|
73
74
|
leaves the jobs running. Set `AGCOORD_AGENT` in each agent's environment, or pass `--agent`,
|
|
@@ -90,6 +90,9 @@ fn land_request_options(run: &RunRecord) -> Result<Vec<String>> {
|
|
|
90
90
|
if parsed.reuse_full {
|
|
91
91
|
options.push("--reuse-full".to_owned());
|
|
92
92
|
}
|
|
93
|
+
if !parsed.deductive_bisect {
|
|
94
|
+
options.push("--no-deductive-bisect".to_owned());
|
|
95
|
+
}
|
|
93
96
|
for sha in parsed.avoid {
|
|
94
97
|
options.extend(["--avoid".to_owned(), sha]);
|
|
95
98
|
}
|
|
@@ -167,8 +170,11 @@ impl Broker {
|
|
|
167
170
|
]);
|
|
168
171
|
command.extend(land_request_options(run)?);
|
|
169
172
|
let target_runtime = pool.map_or_else(|| self.local_runtime.clone(), Pool::runtime);
|
|
170
|
-
let
|
|
173
|
+
let (max_batch_size, candidates) =
|
|
174
|
+
select_land_batch_candidates(&self.paths, connection, run, &target_runtime)?;
|
|
171
175
|
if !candidates.is_empty() {
|
|
176
|
+
command.push("--batch-max-size".to_owned());
|
|
177
|
+
command.push(max_batch_size.to_string());
|
|
172
178
|
command.push("--batch-candidates-json".to_owned());
|
|
173
179
|
command.push(serde_json::to_string(&candidates).map_err(|error| {
|
|
174
180
|
AppError::new(
|
|
@@ -21,9 +21,9 @@ use std::process::ExitCode;
|
|
|
21
21
|
use std::time::Duration;
|
|
22
22
|
use store::{
|
|
23
23
|
AdmissionRequest, BatchClaimRequest, BatchMemberFinishRequest, BatchMemberPhaseRequest,
|
|
24
|
-
BatchMemberReuseRequest, BatchSliceRequest, BatchStatusRequest,
|
|
25
|
-
|
|
26
|
-
SnapshotFilter, SubmitRequest,
|
|
24
|
+
BatchMemberReuseRequest, BatchSliceRequest, BatchStatusRequest, BatchStepPayload,
|
|
25
|
+
BatchStepRequest, ChildLeaseOwnerRequest, ChildLeaseRequest, LandResultRequest, PROTOCOL,
|
|
26
|
+
Paths, PhaseRequest, ReuseRequest, SnapshotFilter, SubmitRequest,
|
|
27
27
|
};
|
|
28
28
|
use worker::WorkerFault;
|
|
29
29
|
|
|
@@ -810,6 +810,9 @@ struct BatchArgs {
|
|
|
810
810
|
checkout: Option<PathBuf>,
|
|
811
811
|
head_sha: Option<String>,
|
|
812
812
|
members_json: Option<String>,
|
|
813
|
+
target_branch: Option<String>,
|
|
814
|
+
max_batch_size: Option<u64>,
|
|
815
|
+
step_json: Option<String>,
|
|
813
816
|
slice_head: Option<String>,
|
|
814
817
|
member_run_id: Option<String>,
|
|
815
818
|
phase: Option<String>,
|
|
@@ -855,6 +858,19 @@ fn parse_batch_args(arguments: &[String], allowed: &[&str]) -> Result<(Paths, Ba
|
|
|
855
858
|
"--checkout" => parsed.checkout = Some(PathBuf::from(value)),
|
|
856
859
|
"--head" => parsed.head_sha = Some(value),
|
|
857
860
|
"--members-json" => parsed.members_json = Some(value),
|
|
861
|
+
"--target-branch" => parsed.target_branch = Some(value),
|
|
862
|
+
"--max-batch-size" => {
|
|
863
|
+
parsed.max_batch_size = Some(
|
|
864
|
+
value
|
|
865
|
+
.parse::<u64>()
|
|
866
|
+
.ok()
|
|
867
|
+
.filter(|limit| *limit > 0)
|
|
868
|
+
.ok_or_else(|| {
|
|
869
|
+
AppError::usage("--max-batch-size must be a positive integer")
|
|
870
|
+
})?,
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
"--step-json" => parsed.step_json = Some(value),
|
|
858
874
|
"--slice-head" => parsed.slice_head = Some(value),
|
|
859
875
|
"--member-run-id" => parsed.member_run_id = Some(value),
|
|
860
876
|
"--phase" => parsed.phase = Some(value),
|
|
@@ -906,7 +922,10 @@ fn require_batch_identity(args: &BatchArgs) -> Result<(String, u32, String, Path
|
|
|
906
922
|
}
|
|
907
923
|
|
|
908
924
|
fn parse_claim_batch(arguments: &[String]) -> Result<(Paths, BatchClaimRequest)> {
|
|
909
|
-
let (paths, args) = parse_batch_args(
|
|
925
|
+
let (paths, args) = parse_batch_args(
|
|
926
|
+
arguments,
|
|
927
|
+
&["--members-json", "--target-branch", "--max-batch-size"],
|
|
928
|
+
)?;
|
|
910
929
|
let (run_id, worker_pid, worker_start_token, checkout, head_sha) =
|
|
911
930
|
require_batch_identity(&args)?;
|
|
912
931
|
let raw_members = args
|
|
@@ -923,6 +942,31 @@ fn parse_claim_batch(arguments: &[String]) -> Result<(Paths, BatchClaimRequest)>
|
|
|
923
942
|
checkout,
|
|
924
943
|
head_sha,
|
|
925
944
|
member_run_ids,
|
|
945
|
+
target_branch: args.target_branch,
|
|
946
|
+
max_batch_size: args.max_batch_size,
|
|
947
|
+
},
|
|
948
|
+
))
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
fn parse_batch_step(arguments: &[String]) -> Result<(Paths, BatchStepRequest)> {
|
|
952
|
+
let (paths, args) = parse_batch_args(arguments, &["--step-json"])?;
|
|
953
|
+
let (run_id, worker_pid, worker_start_token, checkout, head_sha) =
|
|
954
|
+
require_batch_identity(&args)?;
|
|
955
|
+
let raw_step = args
|
|
956
|
+
.step_json
|
|
957
|
+
.ok_or_else(|| AppError::usage("--step-json is required"))?;
|
|
958
|
+
let payload = BatchStepPayload::from_json_str(&raw_step)?;
|
|
959
|
+
Ok((
|
|
960
|
+
paths,
|
|
961
|
+
BatchStepRequest {
|
|
962
|
+
identity: BatchStatusRequest {
|
|
963
|
+
run_id,
|
|
964
|
+
worker_pid,
|
|
965
|
+
worker_start_token,
|
|
966
|
+
checkout,
|
|
967
|
+
head_sha,
|
|
968
|
+
},
|
|
969
|
+
payload,
|
|
926
970
|
},
|
|
927
971
|
))
|
|
928
972
|
}
|
|
@@ -1459,6 +1503,10 @@ fn run_command(arguments: &[String]) -> Result<()> {
|
|
|
1459
1503
|
let (paths, request) = parse_claim_batch(rest)?;
|
|
1460
1504
|
emit_json(&store::claim_batch(&paths, &request)?)
|
|
1461
1505
|
}
|
|
1506
|
+
[command, rest @ ..] if command == "record-batch-step" => {
|
|
1507
|
+
let (paths, request) = parse_batch_step(rest)?;
|
|
1508
|
+
emit_json(&store::record_batch_step(&paths, &request)?)
|
|
1509
|
+
}
|
|
1462
1510
|
[command, rest @ ..] if command == "set-batch-slice" => {
|
|
1463
1511
|
let (paths, request) = parse_batch_slice(rest)?;
|
|
1464
1512
|
emit_json(&store::set_batch_slice(&paths, &request)?)
|