agent-build-coordinator 0.3.0__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.
- agent_build_coordinator-0.3.0/LICENSE +21 -0
- agent_build_coordinator-0.3.0/PKG-INFO +117 -0
- agent_build_coordinator-0.3.0/README.md +91 -0
- agent_build_coordinator-0.3.0/adapters/__init__.py +1 -0
- agent_build_coordinator-0.3.0/adapters/python_pytest/__init__.py +1 -0
- agent_build_coordinator-0.3.0/adapters/python_pytest/build_adapter.py +171 -0
- agent_build_coordinator-0.3.0/adapters/unreal_cpp/__init__.py +1 -0
- agent_build_coordinator-0.3.0/adapters/unreal_cpp/build_adapter.py +403 -0
- agent_build_coordinator-0.3.0/adapters/unreal_cpp/start_gate.py +66 -0
- agent_build_coordinator-0.3.0/agent_build_coordinator.egg-info/PKG-INFO +117 -0
- agent_build_coordinator-0.3.0/agent_build_coordinator.egg-info/SOURCES.txt +101 -0
- agent_build_coordinator-0.3.0/agent_build_coordinator.egg-info/dependency_links.txt +1 -0
- agent_build_coordinator-0.3.0/agent_build_coordinator.egg-info/entry_points.txt +2 -0
- agent_build_coordinator-0.3.0/agent_build_coordinator.egg-info/top_level.txt +2 -0
- agent_build_coordinator-0.3.0/core/__init__.py +1 -0
- agent_build_coordinator-0.3.0/core/cli.py +3743 -0
- agent_build_coordinator-0.3.0/core/coordinator/__init__.py +1 -0
- agent_build_coordinator-0.3.0/core/coordinator/activity.py +720 -0
- agent_build_coordinator-0.3.0/core/coordinator/adapter_protocol.py +53 -0
- agent_build_coordinator-0.3.0/core/coordinator/cpu_reserve.py +46 -0
- agent_build_coordinator-0.3.0/core/coordinator/dispatcher.py +1429 -0
- agent_build_coordinator-0.3.0/core/coordinator/git_flow.py +1047 -0
- agent_build_coordinator-0.3.0/core/coordinator/handover.py +423 -0
- agent_build_coordinator-0.3.0/core/coordinator/host_guard.py +504 -0
- agent_build_coordinator-0.3.0/core/coordinator/job_queue.py +398 -0
- agent_build_coordinator-0.3.0/core/coordinator/lease.py +168 -0
- agent_build_coordinator-0.3.0/core/coordinator/protected_paths.py +68 -0
- agent_build_coordinator-0.3.0/core/coordinator/quotas.py +902 -0
- agent_build_coordinator-0.3.0/core/coordinator/ready_queue.py +90 -0
- agent_build_coordinator-0.3.0/core/coordinator/release_pipeline.py +327 -0
- agent_build_coordinator-0.3.0/core/coordinator/remote_worker.py +470 -0
- agent_build_coordinator-0.3.0/core/coordinator/review_gate.py +200 -0
- agent_build_coordinator-0.3.0/core/coordinator/round_runner.py +241 -0
- agent_build_coordinator-0.3.0/core/coordinator/round_state.py +449 -0
- agent_build_coordinator-0.3.0/core/coordinator/router.py +556 -0
- agent_build_coordinator-0.3.0/core/coordinator/runner.py +428 -0
- agent_build_coordinator-0.3.0/core/coordinator/status_doc.py +434 -0
- agent_build_coordinator-0.3.0/core/coordinator/test_planner.py +346 -0
- agent_build_coordinator-0.3.0/core/coordinator/workspaces.py +407 -0
- agent_build_coordinator-0.3.0/core/git_hooks/__init__.py +1 -0
- agent_build_coordinator-0.3.0/core/git_hooks/check_commit_msg.py +155 -0
- agent_build_coordinator-0.3.0/core/git_hooks/check_pre_push.py +175 -0
- agent_build_coordinator-0.3.0/core/git_hooks/install_hooks.py +48 -0
- agent_build_coordinator-0.3.0/core/github/__init__.py +21 -0
- agent_build_coordinator-0.3.0/core/github/client.py +577 -0
- agent_build_coordinator-0.3.0/core/scripts/__init__.py +1 -0
- agent_build_coordinator-0.3.0/core/scripts/board.py +2687 -0
- agent_build_coordinator-0.3.0/core/scripts/board_ui.py +5147 -0
- agent_build_coordinator-0.3.0/core/scripts/budget_analyze.py +195 -0
- agent_build_coordinator-0.3.0/core/scripts/decisions.py +537 -0
- agent_build_coordinator-0.3.0/core/scripts/demo.py +640 -0
- agent_build_coordinator-0.3.0/core/scripts/doctor.py +284 -0
- agent_build_coordinator-0.3.0/core/scripts/feedback.py +130 -0
- agent_build_coordinator-0.3.0/core/scripts/flaky_stats.py +102 -0
- agent_build_coordinator-0.3.0/core/scripts/harness_lint.py +387 -0
- agent_build_coordinator-0.3.0/core/scripts/init_repo.py +446 -0
- agent_build_coordinator-0.3.0/core/scripts/inputs_check.py +46 -0
- agent_build_coordinator-0.3.0/core/scripts/install_skills.py +151 -0
- agent_build_coordinator-0.3.0/core/scripts/layer_check.py +295 -0
- agent_build_coordinator-0.3.0/core/scripts/md_section.py +126 -0
- agent_build_coordinator-0.3.0/core/scripts/metrics.py +133 -0
- agent_build_coordinator-0.3.0/core/scripts/metrics_report.py +126 -0
- agent_build_coordinator-0.3.0/core/scripts/project_brief.py +273 -0
- agent_build_coordinator-0.3.0/core/scripts/prune_state.py +253 -0
- agent_build_coordinator-0.3.0/core/scripts/review_receipts.py +143 -0
- agent_build_coordinator-0.3.0/pyproject.toml +51 -0
- agent_build_coordinator-0.3.0/setup.cfg +4 -0
- agent_build_coordinator-0.3.0/tests/test_arch_and_budget.py +97 -0
- agent_build_coordinator-0.3.0/tests/test_board.py +1170 -0
- agent_build_coordinator-0.3.0/tests/test_cli.py +175 -0
- agent_build_coordinator-0.3.0/tests/test_coordinator.py +143 -0
- agent_build_coordinator-0.3.0/tests/test_decisions.py +200 -0
- agent_build_coordinator-0.3.0/tests/test_demo.py +24 -0
- agent_build_coordinator-0.3.0/tests/test_demo_board.py +76 -0
- agent_build_coordinator-0.3.0/tests/test_dispatcher.py +563 -0
- agent_build_coordinator-0.3.0/tests/test_doctor.py +161 -0
- agent_build_coordinator-0.3.0/tests/test_feedback_and_prune.py +222 -0
- agent_build_coordinator-0.3.0/tests/test_git_flow.py +334 -0
- agent_build_coordinator-0.3.0/tests/test_git_hooks.py +116 -0
- agent_build_coordinator-0.3.0/tests/test_github_client.py +183 -0
- agent_build_coordinator-0.3.0/tests/test_handover_skills.py +191 -0
- agent_build_coordinator-0.3.0/tests/test_harness_lint.py +125 -0
- agent_build_coordinator-0.3.0/tests/test_host_guard.py +172 -0
- agent_build_coordinator-0.3.0/tests/test_init_repo.py +110 -0
- agent_build_coordinator-0.3.0/tests/test_job_queue.py +297 -0
- agent_build_coordinator-0.3.0/tests/test_metrics_report.py +91 -0
- agent_build_coordinator-0.3.0/tests/test_no_private_leaks.py +85 -0
- agent_build_coordinator-0.3.0/tests/test_project_brief.py +95 -0
- agent_build_coordinator-0.3.0/tests/test_python_adapter.py +68 -0
- agent_build_coordinator-0.3.0/tests/test_quotas.py +265 -0
- agent_build_coordinator-0.3.0/tests/test_release_pipeline.py +159 -0
- agent_build_coordinator-0.3.0/tests/test_remote_worker.py +293 -0
- agent_build_coordinator-0.3.0/tests/test_review_gate.py +354 -0
- agent_build_coordinator-0.3.0/tests/test_round_resume.py +431 -0
- agent_build_coordinator-0.3.0/tests/test_round_runner.py +102 -0
- agent_build_coordinator-0.3.0/tests/test_router.py +300 -0
- agent_build_coordinator-0.3.0/tests/test_runner.py +125 -0
- agent_build_coordinator-0.3.0/tests/test_scripts.py +100 -0
- agent_build_coordinator-0.3.0/tests/test_status_doc.py +209 -0
- agent_build_coordinator-0.3.0/tests/test_test_planner.py +197 -0
- agent_build_coordinator-0.3.0/tests/test_unreal_adapter.py +209 -0
- agent_build_coordinator-0.3.0/tests/test_watchdog.py +274 -0
- agent_build_coordinator-0.3.0/tests/test_workspaces.py +393 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 csiprivate
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-build-coordinator
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Provider-neutral 24/7 multi-agent build coordinator, lease manager, and review gates for Claude, Codex, and Gemini.
|
|
5
|
+
Author: csiprivate
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://csiprivate.github.io/agent-build-coordinator/
|
|
8
|
+
Project-URL: Repository, https://github.com/csiprivate/agent-build-coordinator
|
|
9
|
+
Project-URL: Issues, https://github.com/csiprivate/agent-build-coordinator/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/csiprivate/agent-build-coordinator/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: ai-agents,multi-agent,claude-code,codex,gemini,build-coordinator,git-hooks,unreal-engine
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# agent-build-coordinator
|
|
28
|
+
|
|
29
|
+
[](https://github.com/csiprivate/agent-build-coordinator/actions/workflows/ci.yml)
|
|
30
|
+
[](https://github.com/csiprivate/agent-build-coordinator/releases/latest)
|
|
31
|
+
[](https://www.python.org/downloads/)
|
|
32
|
+
[](pyproject.toml)
|
|
33
|
+
[](LICENSE)
|
|
34
|
+
[](https://csiprivate.github.io/agent-build-coordinator/)
|
|
35
|
+
|
|
36
|
+
> **Run Claude Code, Codex, and Gemini in parallel 24/7 on the same repository — without compiler fights, broken `main`, or wasted quota.**
|
|
37
|
+
> Pure Python 3.10+ stdlib & `git` (zero runtime dependencies). Battle-tested for 60 days and 6,549 coordinated builds on a UE5 C++ production codebase (**Galactic Industries**).
|
|
38
|
+
|
|
39
|
+
Interactive live dashboard: **[Try the 3-Layer Cascade Demo in your browser](https://csiprivate.github.io/agent-build-coordinator/)**
|
|
40
|
+
|
|
41
|
+
## Live Dashboard (`abc board`)
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
*Recorded from `abc demo`: Pipeline & Swimlanes layouts, 3 pure-CSS themes, protected `main` & Review Gate cards, and live multi-provider quota pacing.*
|
|
45
|
+
|
|
46
|
+
**[Open the interactive Live Demo in your browser →](https://csiprivate.github.io/agent-build-coordinator/)**
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary>Real 24/7 production screenshots (Pipeline & Swimlanes views)</summary>
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
*Pipeline view (`abc board`): 3-layer cascade across Plan, Build, Verify, and Review stages with live rework loops, image stream, and multi-provider quota pacing.*
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
*Swimlanes view (`abc board`): top control plane coordinating parallel per-issue specialist and independent reviewer lanes.*
|
|
56
|
+
|
|
57
|
+
</details>
|
|
58
|
+
|
|
59
|
+
## The Problem
|
|
60
|
+
|
|
61
|
+
Running one coding agent is easy. Running **three or more autonomous agents in parallel** across Claude Code, Codex, and Gemini breaks down fast:
|
|
62
|
+
|
|
63
|
+
- **Workstation & compiler fights:** Parallel agents launch overlapping builds, saturating CPU cores and corrupting shared build artifacts.
|
|
64
|
+
- **Broken `main`:** Concurrent feature branches merge without conflict detection or rollback when post-merge verification fails.
|
|
65
|
+
- **Rubber-stamped reviews:** Agents inspect stale files or sign off their own changes instead of enforcing an independent cross-provider review gate.
|
|
66
|
+
- **Blind quota burn:** Heavy reasoning models get spent on trivial edits while one provider hits weekly limits early and sits idle until reset.
|
|
67
|
+
|
|
68
|
+
`agent-build-coordinator` sits one layer above interactive editor tools (such as MCP servers or vendor skills) as a provider-neutral build, merge, and quota control plane.
|
|
69
|
+
|
|
70
|
+
## Try It in 30 Seconds
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pip install "git+https://github.com/csiprivate/agent-build-coordinator.git"
|
|
74
|
+
abc demo # opens the interactive 3-Layer Cascade dashboard with sample multi-provider runs
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For local development from a clone, run `git clone https://github.com/csiprivate/agent-build-coordinator.git && cd agent-build-coordinator && pip install --no-deps --no-build-isolation -e .`.
|
|
78
|
+
|
|
79
|
+
No Unreal Engine, Node.js, `jq`, or external Python packages required. You can also run `python examples/minimal-python-repo/run_demo.py` or invoke any command via `python -m core.cli`.
|
|
80
|
+
|
|
81
|
+
- **[Full CLI Reference (`docs/cli.md`)](docs/cli.md)** — Every `abc` subcommand (`init`, `doctor`, `board`, `demo`, `dispatch`, `quota`, `route`, `ready`, `lease`, `worker`, `decisions`, `review`, `skills`, `metrics`).
|
|
82
|
+
- **[Multi-Provider Setup (`docs/providers.md`)](docs/providers.md)** — Shared contracts for Claude Code, Codex, and Gemini.
|
|
83
|
+
- **[Architecture Details (`ARCHITECTURE.md`)](ARCHITECTURE.md)** — Core modules, 3-layer cascade, and adapter contract.
|
|
84
|
+
|
|
85
|
+
## Battle-Tested: 60 Days of 24/7 Production Metrics
|
|
86
|
+
|
|
87
|
+
Anonymized aggregate production counts from 60 days of continuous multi-agent development on **Galactic Industries** (Unreal Engine 5 C++), containing zero private identifiers, account names, or source symbols:
|
|
88
|
+
|
|
89
|
+
| Signal | Observed Value | Collection Window |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| **Coordinated build & measurement leases** | **6,549** (`5,454 shared`, `1,095 exclusive`) | `2026-10-03` to `2026-12-02` (60 days) |
|
|
92
|
+
| **Lease workload breakdown** | **4,852** compiles, **625** packages/cooks, **328** exclusive performance measurements (plus test/asset/GPU/analysis slots) | `2026-10-03` to `2026-12-02` |
|
|
93
|
+
| **Queue & contention handling** | **6,979** queue entries, **9,907** coordinated wait checks, **338** background measurement deferrals | `2026-10-03` to `2026-12-02` |
|
|
94
|
+
| **Multi-provider quota telemetry snapshots** | **2,697** logged across Claude, Codex, and Gemini | `2026-11-21` to `2026-12-02` |
|
|
95
|
+
|
|
96
|
+
> *Track your own p50/p95/p99 hook latency and incremental review savings from `hook_events.jsonl` and `review_events.jsonl` via `abc metrics report --format markdown`.*
|
|
97
|
+
|
|
98
|
+
## Why `agent-build-coordinator`?
|
|
99
|
+
|
|
100
|
+
| Capability | Interactive Editor MCP / Single-CLI Plugins | Prompt-Only Multi-Agent Templates | `agent-build-coordinator` |
|
|
101
|
+
|---|---|---|---|
|
|
102
|
+
| **Provider Support** | Typically single CLI or editor session | Vendor-specific prompt files | Claude, Codex & Gemini on one contract + `core.hooksPath` |
|
|
103
|
+
| **Build Concurrency** | Single-user manual runs | None | `shared`/`exclusive` leases, PID check, dynamic CPU reserve |
|
|
104
|
+
| **Multi-Branch `main` Integration** | Direct merges or manual PR checks | Ad-hoc | `git merge-tree` batch rounds, A/B/C tiers & conflict deferral |
|
|
105
|
+
| **Quota & Model Routing** | Manual switching | None | Auto reset-curve pacing goals (`Light`/`Medium`/`Heavy` tiers) |
|
|
106
|
+
| **Review & Token Discipline** | Unbounded re-reads | Text guidelines only | SHA-256 review receipts, 40 KB Markdown guard & `abc lint` |
|
|
107
|
+
| **Runtime Dependencies** | Node / MCP runtime + editor running | External scripts / `jq` often needed | Pure Python 3.10+ stdlib & `git` |
|
|
108
|
+
|
|
109
|
+
## Pluggable `BuildAdapter` Drivers
|
|
110
|
+
|
|
111
|
+
- **`adapters/python_pytest/`** — Zero-setup Python + `pytest` adapter for validating workflows without any engine installed.
|
|
112
|
+
- **`adapters/unreal_cpp/`** — Unreal Engine 5 C++ adapter with UBT/Automation commands, `Exit-255` zero-match test guard, editor start-gate locking, Game-Thread budgets, and L0–L5 plugin layering rules.
|
|
113
|
+
- **Want to add your stack?** Check the open [`adapter-wanted` issues](https://github.com/csiprivate/agent-build-coordinator/issues) for Rust/Cargo, Node/TypeScript, Go, and CMake/C++ (`core/` never imports `adapters/`, verified by `abc lint`).
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
MIT — see [LICENSE](LICENSE). All modules in this repository are original stdlib Python implementations; see [THIRD_PARTY_NOTICES.txt](THIRD_PARTY_NOTICES.txt).
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# agent-build-coordinator
|
|
2
|
+
|
|
3
|
+
[](https://github.com/csiprivate/agent-build-coordinator/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/csiprivate/agent-build-coordinator/releases/latest)
|
|
5
|
+
[](https://www.python.org/downloads/)
|
|
6
|
+
[](pyproject.toml)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://csiprivate.github.io/agent-build-coordinator/)
|
|
9
|
+
|
|
10
|
+
> **Run Claude Code, Codex, and Gemini in parallel 24/7 on the same repository — without compiler fights, broken `main`, or wasted quota.**
|
|
11
|
+
> Pure Python 3.10+ stdlib & `git` (zero runtime dependencies). Battle-tested for 60 days and 6,549 coordinated builds on a UE5 C++ production codebase (**Galactic Industries**).
|
|
12
|
+
|
|
13
|
+
Interactive live dashboard: **[Try the 3-Layer Cascade Demo in your browser](https://csiprivate.github.io/agent-build-coordinator/)**
|
|
14
|
+
|
|
15
|
+
## Live Dashboard (`abc board`)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
*Recorded from `abc demo`: Pipeline & Swimlanes layouts, 3 pure-CSS themes, protected `main` & Review Gate cards, and live multi-provider quota pacing.*
|
|
19
|
+
|
|
20
|
+
**[Open the interactive Live Demo in your browser →](https://csiprivate.github.io/agent-build-coordinator/)**
|
|
21
|
+
|
|
22
|
+
<details>
|
|
23
|
+
<summary>Real 24/7 production screenshots (Pipeline & Swimlanes views)</summary>
|
|
24
|
+
|
|
25
|
+

|
|
26
|
+
*Pipeline view (`abc board`): 3-layer cascade across Plan, Build, Verify, and Review stages with live rework loops, image stream, and multi-provider quota pacing.*
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
*Swimlanes view (`abc board`): top control plane coordinating parallel per-issue specialist and independent reviewer lanes.*
|
|
30
|
+
|
|
31
|
+
</details>
|
|
32
|
+
|
|
33
|
+
## The Problem
|
|
34
|
+
|
|
35
|
+
Running one coding agent is easy. Running **three or more autonomous agents in parallel** across Claude Code, Codex, and Gemini breaks down fast:
|
|
36
|
+
|
|
37
|
+
- **Workstation & compiler fights:** Parallel agents launch overlapping builds, saturating CPU cores and corrupting shared build artifacts.
|
|
38
|
+
- **Broken `main`:** Concurrent feature branches merge without conflict detection or rollback when post-merge verification fails.
|
|
39
|
+
- **Rubber-stamped reviews:** Agents inspect stale files or sign off their own changes instead of enforcing an independent cross-provider review gate.
|
|
40
|
+
- **Blind quota burn:** Heavy reasoning models get spent on trivial edits while one provider hits weekly limits early and sits idle until reset.
|
|
41
|
+
|
|
42
|
+
`agent-build-coordinator` sits one layer above interactive editor tools (such as MCP servers or vendor skills) as a provider-neutral build, merge, and quota control plane.
|
|
43
|
+
|
|
44
|
+
## Try It in 30 Seconds
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install "git+https://github.com/csiprivate/agent-build-coordinator.git"
|
|
48
|
+
abc demo # opens the interactive 3-Layer Cascade dashboard with sample multi-provider runs
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For local development from a clone, run `git clone https://github.com/csiprivate/agent-build-coordinator.git && cd agent-build-coordinator && pip install --no-deps --no-build-isolation -e .`.
|
|
52
|
+
|
|
53
|
+
No Unreal Engine, Node.js, `jq`, or external Python packages required. You can also run `python examples/minimal-python-repo/run_demo.py` or invoke any command via `python -m core.cli`.
|
|
54
|
+
|
|
55
|
+
- **[Full CLI Reference (`docs/cli.md`)](docs/cli.md)** — Every `abc` subcommand (`init`, `doctor`, `board`, `demo`, `dispatch`, `quota`, `route`, `ready`, `lease`, `worker`, `decisions`, `review`, `skills`, `metrics`).
|
|
56
|
+
- **[Multi-Provider Setup (`docs/providers.md`)](docs/providers.md)** — Shared contracts for Claude Code, Codex, and Gemini.
|
|
57
|
+
- **[Architecture Details (`ARCHITECTURE.md`)](ARCHITECTURE.md)** — Core modules, 3-layer cascade, and adapter contract.
|
|
58
|
+
|
|
59
|
+
## Battle-Tested: 60 Days of 24/7 Production Metrics
|
|
60
|
+
|
|
61
|
+
Anonymized aggregate production counts from 60 days of continuous multi-agent development on **Galactic Industries** (Unreal Engine 5 C++), containing zero private identifiers, account names, or source symbols:
|
|
62
|
+
|
|
63
|
+
| Signal | Observed Value | Collection Window |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| **Coordinated build & measurement leases** | **6,549** (`5,454 shared`, `1,095 exclusive`) | `2026-10-03` to `2026-12-02` (60 days) |
|
|
66
|
+
| **Lease workload breakdown** | **4,852** compiles, **625** packages/cooks, **328** exclusive performance measurements (plus test/asset/GPU/analysis slots) | `2026-10-03` to `2026-12-02` |
|
|
67
|
+
| **Queue & contention handling** | **6,979** queue entries, **9,907** coordinated wait checks, **338** background measurement deferrals | `2026-10-03` to `2026-12-02` |
|
|
68
|
+
| **Multi-provider quota telemetry snapshots** | **2,697** logged across Claude, Codex, and Gemini | `2026-11-21` to `2026-12-02` |
|
|
69
|
+
|
|
70
|
+
> *Track your own p50/p95/p99 hook latency and incremental review savings from `hook_events.jsonl` and `review_events.jsonl` via `abc metrics report --format markdown`.*
|
|
71
|
+
|
|
72
|
+
## Why `agent-build-coordinator`?
|
|
73
|
+
|
|
74
|
+
| Capability | Interactive Editor MCP / Single-CLI Plugins | Prompt-Only Multi-Agent Templates | `agent-build-coordinator` |
|
|
75
|
+
|---|---|---|---|
|
|
76
|
+
| **Provider Support** | Typically single CLI or editor session | Vendor-specific prompt files | Claude, Codex & Gemini on one contract + `core.hooksPath` |
|
|
77
|
+
| **Build Concurrency** | Single-user manual runs | None | `shared`/`exclusive` leases, PID check, dynamic CPU reserve |
|
|
78
|
+
| **Multi-Branch `main` Integration** | Direct merges or manual PR checks | Ad-hoc | `git merge-tree` batch rounds, A/B/C tiers & conflict deferral |
|
|
79
|
+
| **Quota & Model Routing** | Manual switching | None | Auto reset-curve pacing goals (`Light`/`Medium`/`Heavy` tiers) |
|
|
80
|
+
| **Review & Token Discipline** | Unbounded re-reads | Text guidelines only | SHA-256 review receipts, 40 KB Markdown guard & `abc lint` |
|
|
81
|
+
| **Runtime Dependencies** | Node / MCP runtime + editor running | External scripts / `jq` often needed | Pure Python 3.10+ stdlib & `git` |
|
|
82
|
+
|
|
83
|
+
## Pluggable `BuildAdapter` Drivers
|
|
84
|
+
|
|
85
|
+
- **`adapters/python_pytest/`** — Zero-setup Python + `pytest` adapter for validating workflows without any engine installed.
|
|
86
|
+
- **`adapters/unreal_cpp/`** — Unreal Engine 5 C++ adapter with UBT/Automation commands, `Exit-255` zero-match test guard, editor start-gate locking, Game-Thread budgets, and L0–L5 plugin layering rules.
|
|
87
|
+
- **Want to add your stack?** Check the open [`adapter-wanted` issues](https://github.com/csiprivate/agent-build-coordinator/issues) for Rust/Cargo, Node/TypeScript, Go, and CMake/C++ (`core/` never imports `adapters/`, verified by `abc lint`).
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT — see [LICENSE](LICENSE). All modules in this repository are original stdlib Python implementations; see [THIRD_PARTY_NOTICES.txt](THIRD_PARTY_NOTICES.txt).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Engine and domain adapters implementing core.coordinator.adapter_protocol."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Python pytest BuildAdapter package demonstrating engine-agnostic coordination."""
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"""Python + pytest BuildAdapter implementation using Python stdlib only."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import subprocess
|
|
6
|
+
import sys
|
|
7
|
+
import xml.etree.ElementTree as ET
|
|
8
|
+
from dataclasses import dataclass
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Any, Callable, Sequence
|
|
11
|
+
|
|
12
|
+
from core.coordinator.adapter_protocol import BuildResult, TestResult
|
|
13
|
+
from core.coordinator.host_guard import suppress_error_dialogs
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(frozen=True)
|
|
17
|
+
class PythonAdapterConfig:
|
|
18
|
+
"""Configuration for PythonPytestAdapter."""
|
|
19
|
+
|
|
20
|
+
python_executable: str = sys.executable
|
|
21
|
+
path_test_map: dict[str, tuple[str, ...]] | None = None
|
|
22
|
+
default_test_paths: tuple[str, ...] = ("tests",)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class PythonPytestAdapter:
|
|
26
|
+
"""Implements BuildAdapter for Python repositories tested with pytest."""
|
|
27
|
+
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
config: PythonAdapterConfig | None = None,
|
|
31
|
+
*,
|
|
32
|
+
runner: Callable[[Sequence[str], Path], subprocess.CompletedProcess[str]] | None = None,
|
|
33
|
+
) -> None:
|
|
34
|
+
self.config = config or PythonAdapterConfig()
|
|
35
|
+
self._runner = runner or self._default_runner
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def from_config(cls, config: dict[str, Any], workspace: Path) -> "PythonPytestAdapter":
|
|
39
|
+
"""Construct a PythonPytestAdapter from coordinator.config.json."""
|
|
40
|
+
_ = workspace
|
|
41
|
+
raw_map = config.get("path_test_map")
|
|
42
|
+
path_test_map: dict[str, tuple[str, ...]] | None = None
|
|
43
|
+
if isinstance(raw_map, dict):
|
|
44
|
+
path_test_map = {str(k): tuple(str(v) for v in vals) for k, vals in raw_map.items()}
|
|
45
|
+
|
|
46
|
+
raw_defaults = config.get("default_test_paths")
|
|
47
|
+
default_paths = (
|
|
48
|
+
tuple(str(p) for p in raw_defaults)
|
|
49
|
+
if isinstance(raw_defaults, list) and raw_defaults
|
|
50
|
+
else ("tests",)
|
|
51
|
+
)
|
|
52
|
+
py_exe = str(config.get("python_executable") or sys.executable)
|
|
53
|
+
return cls(
|
|
54
|
+
PythonAdapterConfig(
|
|
55
|
+
python_executable=py_exe,
|
|
56
|
+
path_test_map=path_test_map,
|
|
57
|
+
default_test_paths=default_paths,
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
@staticmethod
|
|
62
|
+
def _default_runner(cmd: Sequence[str], cwd: Path) -> subprocess.CompletedProcess[str]:
|
|
63
|
+
with suppress_error_dialogs():
|
|
64
|
+
return subprocess.run(
|
|
65
|
+
list(cmd),
|
|
66
|
+
cwd=cwd,
|
|
67
|
+
capture_output=True,
|
|
68
|
+
text=True,
|
|
69
|
+
encoding="utf-8",
|
|
70
|
+
errors="replace",
|
|
71
|
+
check=False,
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
def select_tests(self, changed_files: Sequence[str]) -> list[str]:
|
|
75
|
+
"""Map changed file paths to targeted pytest paths or fall back to defaults."""
|
|
76
|
+
if not changed_files:
|
|
77
|
+
return []
|
|
78
|
+
mapping = self.config.path_test_map or {}
|
|
79
|
+
selected: set[str] = set()
|
|
80
|
+
for raw_path in changed_files:
|
|
81
|
+
norm = raw_path.replace("\\", "/").strip()
|
|
82
|
+
for prefix, targets in mapping.items():
|
|
83
|
+
if norm.startswith(prefix) or prefix in norm:
|
|
84
|
+
selected.update(targets)
|
|
85
|
+
if selected:
|
|
86
|
+
return sorted(selected)
|
|
87
|
+
return sorted(set(self.config.default_test_paths))
|
|
88
|
+
|
|
89
|
+
def build_target(self, target: str, workspace: Path) -> BuildResult:
|
|
90
|
+
"""Byte-compile the target module/directory using compileall (force recompile to avoid stale same-second pyc)."""
|
|
91
|
+
cmd = [self.config.python_executable, "-m", "compileall", "-f", "-q", target]
|
|
92
|
+
proc = self._runner(cmd, workspace)
|
|
93
|
+
return BuildResult(
|
|
94
|
+
success=(proc.returncode == 0),
|
|
95
|
+
exit_code=proc.returncode,
|
|
96
|
+
summary=(proc.stdout + "\n" + proc.stderr).strip()[:1000] or f"compileall exit={proc.returncode}",
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
@staticmethod
|
|
100
|
+
def parse_junit_report(xml_path: Path, *, exit_code: int) -> TestResult:
|
|
101
|
+
"""Parse JUnit XML emitted by pytest and guard against zero-test runs."""
|
|
102
|
+
if exit_code == 5:
|
|
103
|
+
return TestResult(
|
|
104
|
+
verdict="NOT ASSESSED",
|
|
105
|
+
report_path=xml_path if xml_path.is_file() else None,
|
|
106
|
+
exit_code=exit_code,
|
|
107
|
+
)
|
|
108
|
+
if not xml_path.is_file():
|
|
109
|
+
return TestResult(
|
|
110
|
+
verdict="FAIL" if exit_code != 0 else "NOT ASSESSED",
|
|
111
|
+
report_path=None,
|
|
112
|
+
exit_code=exit_code,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
try:
|
|
116
|
+
root = ET.parse(xml_path).getroot()
|
|
117
|
+
except (OSError, ET.ParseError):
|
|
118
|
+
return TestResult(verdict="NOT ASSESSED", report_path=xml_path, exit_code=exit_code)
|
|
119
|
+
|
|
120
|
+
passed = 0
|
|
121
|
+
failed_names: list[str] = []
|
|
122
|
+
for case in root.iter("testcase"):
|
|
123
|
+
if case.find("skipped") is not None:
|
|
124
|
+
continue
|
|
125
|
+
classname = case.attrib.get("classname", "").strip()
|
|
126
|
+
name = case.attrib.get("name", "unknown").strip()
|
|
127
|
+
full_name = f"{classname}::{name}" if classname else name
|
|
128
|
+
if case.find("failure") is not None or case.find("error") is not None:
|
|
129
|
+
failed_names.append(full_name)
|
|
130
|
+
else:
|
|
131
|
+
passed += 1
|
|
132
|
+
|
|
133
|
+
total = passed + len(failed_names)
|
|
134
|
+
if total == 0:
|
|
135
|
+
return TestResult(verdict="NOT ASSESSED", report_path=xml_path, exit_code=exit_code)
|
|
136
|
+
|
|
137
|
+
verdict = "PASS" if (not failed_names and exit_code == 0) else "FAIL"
|
|
138
|
+
return TestResult(
|
|
139
|
+
verdict=verdict,
|
|
140
|
+
total=total,
|
|
141
|
+
passed=passed,
|
|
142
|
+
failed=len(failed_names),
|
|
143
|
+
failed_names=tuple(failed_names),
|
|
144
|
+
report_path=xml_path,
|
|
145
|
+
exit_code=exit_code,
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
def run_tests(self, groups: Sequence[str], workspace: Path, output_dir: Path) -> TestResult:
|
|
149
|
+
"""Run pytest on selected test groups with JUnit XML export."""
|
|
150
|
+
if not groups:
|
|
151
|
+
return TestResult(verdict="NOT ASSESSED")
|
|
152
|
+
output_dir.mkdir(parents=True, exist_ok=True)
|
|
153
|
+
xml_path = output_dir / "junit.xml"
|
|
154
|
+
cmd = [
|
|
155
|
+
self.config.python_executable,
|
|
156
|
+
"-m",
|
|
157
|
+
"pytest",
|
|
158
|
+
"-q",
|
|
159
|
+
f"--junitxml={xml_path}",
|
|
160
|
+
*groups,
|
|
161
|
+
]
|
|
162
|
+
proc = self._runner(cmd, workspace)
|
|
163
|
+
return self.parse_junit_report(xml_path, exit_code=proc.returncode)
|
|
164
|
+
|
|
165
|
+
def check_start_gate(self, workspace: Path) -> tuple[bool, str]:
|
|
166
|
+
"""Verify workspace is a valid Python/Git repository directory."""
|
|
167
|
+
if not workspace.is_dir():
|
|
168
|
+
return False, f"Workspace directory does not exist: {workspace}"
|
|
169
|
+
if (workspace / "pyproject.toml").is_file() or (workspace / ".git").exists():
|
|
170
|
+
return True, "Python workspace start gate clear."
|
|
171
|
+
return False, f"Workspace lacks pyproject.toml or .git marker: {workspace}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Unreal Engine 5 C++ adapter, rules, specialist roles, and templates."""
|