graphban-fleet 0.1.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.
- graphban_fleet-0.1.0/.gitignore +62 -0
- graphban_fleet-0.1.0/LICENSE +201 -0
- graphban_fleet-0.1.0/PKG-INFO +205 -0
- graphban_fleet-0.1.0/README.md +190 -0
- graphban_fleet-0.1.0/pyproject.toml +48 -0
- graphban_fleet-0.1.0/scripts/verify_hostos_windows.py +247 -0
- graphban_fleet-0.1.0/src/gbagent/__init__.py +6 -0
- graphban_fleet-0.1.0/src/gbagent/cli.py +463 -0
- graphban_fleet-0.1.0/src/gbagent/compact.py +284 -0
- graphban_fleet-0.1.0/src/gbagent/config.py +222 -0
- graphban_fleet-0.1.0/src/gbagent/coord.py +264 -0
- graphban_fleet-0.1.0/src/gbagent/heartbeat.py +124 -0
- graphban_fleet-0.1.0/src/gbagent/llm.py +250 -0
- graphban_fleet-0.1.0/src/gbagent/loop.py +504 -0
- graphban_fleet-0.1.0/src/gbagent/orient.py +237 -0
- graphban_fleet-0.1.0/src/gbagent/tools.py +359 -0
- graphban_fleet-0.1.0/src/gbagent/toolset.py +356 -0
- graphban_fleet-0.1.0/src/gbagent/verify.py +162 -0
- graphban_fleet-0.1.0/src/gbagent/workspace.py +94 -0
- graphban_fleet-0.1.0/src/gbfleet/__init__.py +25 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/__init__.py +418 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/claude.py +111 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/codex.py +27 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/cursor.py +108 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/cursor_stream.py +86 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/gbagent.py +192 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/grok.py +148 -0
- graphban_fleet-0.1.0/src/gbfleet/adapters/qwen_code.py +120 -0
- graphban_fleet-0.1.0/src/gbfleet/adopt.py +310 -0
- graphban_fleet-0.1.0/src/gbfleet/cli.py +603 -0
- graphban_fleet-0.1.0/src/gbfleet/client.py +275 -0
- graphban_fleet-0.1.0/src/gbfleet/doctor.py +445 -0
- graphban_fleet-0.1.0/src/gbfleet/hostos.py +551 -0
- graphban_fleet-0.1.0/src/gbfleet/lock.py +222 -0
- graphban_fleet-0.1.0/src/gbfleet/matrix.py +621 -0
- graphban_fleet-0.1.0/src/gbfleet/matrix.toml +146 -0
- graphban_fleet-0.1.0/src/gbfleet/mcp.py +645 -0
- graphban_fleet-0.1.0/src/gbfleet/observe.py +147 -0
- graphban_fleet-0.1.0/src/gbfleet/progress.py +141 -0
- graphban_fleet-0.1.0/src/gbfleet/record.py +50 -0
- graphban_fleet-0.1.0/src/gbfleet/seat.py +364 -0
- graphban_fleet-0.1.0/src/gbfleet/spawn.py +450 -0
- graphban_fleet-0.1.0/src/gbfleet/state.py +120 -0
- graphban_fleet-0.1.0/src/gbfleet/supervisor.py +1255 -0
- graphban_fleet-0.1.0/src/gbfleet/tiers.py +60 -0
- graphban_fleet-0.1.0/src/gbfleet/touchpoints.py +132 -0
- graphban_fleet-0.1.0/src/gbfleet/until.py +716 -0
- graphban_fleet-0.1.0/src/gbfleet/waits.py +35 -0
- graphban_fleet-0.1.0/src/gbfleet/worktree.py +694 -0
- graphban_fleet-0.1.0/tests/child_standin.py +86 -0
- graphban_fleet-0.1.0/tests/conftest.py +361 -0
- graphban_fleet-0.1.0/tests/test_acceptance_walk.py +527 -0
- graphban_fleet-0.1.0/tests/test_adapters.py +510 -0
- graphban_fleet-0.1.0/tests/test_adopt.py +536 -0
- graphban_fleet-0.1.0/tests/test_attempt_reports.py +546 -0
- graphban_fleet-0.1.0/tests/test_client.py +406 -0
- graphban_fleet-0.1.0/tests/test_cursor_stream.py +117 -0
- graphban_fleet-0.1.0/tests/test_doctor.py +351 -0
- graphban_fleet-0.1.0/tests/test_gbagent_adapter.py +559 -0
- graphban_fleet-0.1.0/tests/test_gbagent_compaction.py +661 -0
- graphban_fleet-0.1.0/tests/test_gbagent_endpoint_key.py +77 -0
- graphban_fleet-0.1.0/tests/test_gbagent_heartbeat.py +398 -0
- graphban_fleet-0.1.0/tests/test_gbagent_loop.py +1101 -0
- graphban_fleet-0.1.0/tests/test_gbagent_loop_exits.py +151 -0
- graphban_fleet-0.1.0/tests/test_gbagent_orientation.py +870 -0
- graphban_fleet-0.1.0/tests/test_gbagent_reports_status.py +74 -0
- graphban_fleet-0.1.0/tests/test_gbagent_tools.py +674 -0
- graphban_fleet-0.1.0/tests/test_gbagent_verify.py +699 -0
- graphban_fleet-0.1.0/tests/test_grok_seat.py +458 -0
- graphban_fleet-0.1.0/tests/test_grok_spawn.py +184 -0
- graphban_fleet-0.1.0/tests/test_hostos.py +502 -0
- graphban_fleet-0.1.0/tests/test_lock.py +290 -0
- graphban_fleet-0.1.0/tests/test_matrix.py +590 -0
- graphban_fleet-0.1.0/tests/test_mcp.py +546 -0
- graphban_fleet-0.1.0/tests/test_model_selection.py +342 -0
- graphban_fleet-0.1.0/tests/test_observe.py +264 -0
- graphban_fleet-0.1.0/tests/test_offline.py +387 -0
- graphban_fleet-0.1.0/tests/test_packaging.py +221 -0
- graphban_fleet-0.1.0/tests/test_progress.py +414 -0
- graphban_fleet-0.1.0/tests/test_project_named.py +100 -0
- graphban_fleet-0.1.0/tests/test_record.py +98 -0
- graphban_fleet-0.1.0/tests/test_registration_match.py +53 -0
- graphban_fleet-0.1.0/tests/test_repo_keeps_its_own_config.py +173 -0
- graphban_fleet-0.1.0/tests/test_revocation.py +408 -0
- graphban_fleet-0.1.0/tests/test_spawn.py +496 -0
- graphban_fleet-0.1.0/tests/test_supervisor.py +691 -0
- graphban_fleet-0.1.0/tests/test_tiers_and_bound_spawn.py +148 -0
- graphban_fleet-0.1.0/tests/test_touchpoint_drift.py +308 -0
- graphban_fleet-0.1.0/tests/test_touchpoints.py +221 -0
- graphban_fleet-0.1.0/tests/test_until.py +747 -0
- graphban_fleet-0.1.0/tests/test_waits.py +139 -0
- graphban_fleet-0.1.0/tests/test_worktree.py +644 -0
- graphban_fleet-0.1.0/uv.lock +161 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
backend/.venv/
|
|
5
|
+
backend/*.db
|
|
6
|
+
backend/.pytest.db
|
|
7
|
+
# Bare too: pytest writes it to whatever directory it is invoked from, and a 0.7 MB
|
|
8
|
+
# SQLite file reached main from the repo ROOT, where the backend-scoped line above
|
|
9
|
+
# did not cover it (GRPH-428's branch, merged as #267). It fails
|
|
10
|
+
# `test_no_tracked_control_bytes` on main and therefore on every PR built against it.
|
|
11
|
+
.pytest.db
|
|
12
|
+
.pytest.db-journal
|
|
13
|
+
# The concurrency lock GRPH-554 added sits beside the database it guards, and xdist gives
|
|
14
|
+
# each worker its own — so the pattern has to cover `.pytest_gw3.db.lock` as well as the
|
|
15
|
+
# bare one. Untracked litter in `git status` is how a real change gets missed in the noise.
|
|
16
|
+
*.db.lock
|
|
17
|
+
# Same trap, same fix: scripts/docs_completeness.py opens a throwaway SQLite
|
|
18
|
+
# database in whatever directory it is run from (GRPH-475).
|
|
19
|
+
.docscheck.db
|
|
20
|
+
.docscheck.db-journal
|
|
21
|
+
backend/.pytest_cache/
|
|
22
|
+
# graphban-fleet is a separate distribution with its own venv (PRD-22 D-e). `uv` drops a
|
|
23
|
+
# self-ignoring .gitignore inside .venv/, but naming it here means the repo does not
|
|
24
|
+
# depend on that convenience holding.
|
|
25
|
+
fleet/.venv/
|
|
26
|
+
fleet/.pytest_cache/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
|
|
29
|
+
# Node
|
|
30
|
+
web/node_modules/
|
|
31
|
+
web/dist/
|
|
32
|
+
web/.vite/
|
|
33
|
+
web/*.tsbuildinfo
|
|
34
|
+
|
|
35
|
+
# Env
|
|
36
|
+
.env
|
|
37
|
+
.env.local
|
|
38
|
+
|
|
39
|
+
# Drive sync target (runtime data / mounted volume)
|
|
40
|
+
sync/
|
|
41
|
+
|
|
42
|
+
# Compose apply helper socket dir (docker-compose default mount)
|
|
43
|
+
.graphban-apply/
|
|
44
|
+
|
|
45
|
+
# Packed native/GitHub release trees (scripts/graphban_release.py publish)
|
|
46
|
+
dist-release/
|
|
47
|
+
|
|
48
|
+
# OS / editor
|
|
49
|
+
.DS_Store
|
|
50
|
+
|
|
51
|
+
# Tooling
|
|
52
|
+
.serena/
|
|
53
|
+
|
|
54
|
+
# Cursor MCP config — holds a real API key; copy .cursor/mcp.json.example instead
|
|
55
|
+
.cursor/mcp.json
|
|
56
|
+
|
|
57
|
+
# Project MCP config — holds a real API key
|
|
58
|
+
.mcp.json
|
|
59
|
+
|
|
60
|
+
# Cursor claim manifest — per-session runtime state (see .cursor/hooks/README.md)
|
|
61
|
+
.cursor/graphban-claim.json
|
|
62
|
+
.cursor/agentledger-claim.json
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Ascme Labs
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: graphban-fleet
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fleet supervisor for Graphban — spawns and retires fleet members on the machine the agents actually run on
|
|
5
|
+
Project-URL: Homepage, https://github.com/asc-me/graphban
|
|
6
|
+
Project-URL: Repository, https://github.com/asc-me/graphban
|
|
7
|
+
Project-URL: Documentation, https://github.com/asc-me/graphban/blob/main/fleet/README.md
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
|
+
Requires-Dist: httpx>=0.28
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest>=8.3; extra == 'dev'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# graphban-fleet
|
|
17
|
+
|
|
18
|
+
The **fleet supervisor**: a thin local client that runs where the agents actually run.
|
|
19
|
+
It spawns vendor CLI processes holding seats the Graphban *server* issued, and it reaps
|
|
20
|
+
them. Ships as `graphban-fleet`, with a `gbfleet` entry point.
|
|
21
|
+
|
|
22
|
+
Specified by [PRD-22](https://github.com/asc-me/graphban/blob/main/docs/prd-22-fleet-supervisor.md).
|
|
23
|
+
|
|
24
|
+
## Two servers, and only one of them has authority
|
|
25
|
+
|
|
26
|
+
Arbitration is remote and authoritative; process control is local and unprivileged.
|
|
27
|
+
A planner attaches both:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
planner (a terminal, or an in-session orchestrator)
|
|
31
|
+
├─ graphban (remote HTTP) → mint_enrolment, propose_allocation, assign_role, fleet_status
|
|
32
|
+
└─ gbfleet (local stdio) → spawn, stop, ps, orphans
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`gbfleet` runs on the developer's machine and the Graphban server never learns its calls
|
|
36
|
+
happened. There are **no HTTP routes on the local surface**. Authentication there is
|
|
37
|
+
process ownership — the planner speaks over a pipe to a child it launched — not a
|
|
38
|
+
credential.
|
|
39
|
+
|
|
40
|
+
**The supervisor holds no authority of its own.** It can only launch a process holding a
|
|
41
|
+
seat the server issued, to do work the server arbitrates. Delete it and every invariant
|
|
42
|
+
still holds; the fleet just needs a human to open terminals again. It is explicitly
|
|
43
|
+
**not a security boundary** (PRD-22 D-k): a compromised vendor binary has whatever the
|
|
44
|
+
user has, and the worktree is a blast-radius convention, not a sandbox.
|
|
45
|
+
|
|
46
|
+
## Why it is in this repository, and not inside `backend/`
|
|
47
|
+
|
|
48
|
+
**Not a second repository,** because the client↔server contract has no schema anywhere —
|
|
49
|
+
the enrolment code format and its TTL, `register_agent`'s return shape, `independent()`'s
|
|
50
|
+
seat semantics, the directive envelope. All of it is changeable in a single PR here, and
|
|
51
|
+
a cross-repo break would present as absence reading clean: the fleet still spawns,
|
|
52
|
+
nothing errors, review stops being independent.
|
|
53
|
+
|
|
54
|
+
**Not inside `backend/`,** because `graphban-api` pulls fastapi, sqlalchemy, pgvector,
|
|
55
|
+
psycopg, alembic, redis and cryptography, and a laptop running four vendor CLIs needs
|
|
56
|
+
none of them. `tests/test_packaging.py` derives its forbidden-dependency set from the
|
|
57
|
+
backend's own list, so that separation is checked rather than asserted.
|
|
58
|
+
|
|
59
|
+
## Licence — Apache-2.0, deliberately not the repository's FSL-1.1
|
|
60
|
+
|
|
61
|
+
The repository is [FSL-1.1-Apache-2.0](https://github.com/asc-me/graphban/blob/main/LICENSE.md). This directory is
|
|
62
|
+
[Apache-2.0](https://github.com/asc-me/graphban/blob/main/fleet/LICENSE), and the divergence is a decision (PRD-22 §8), not an oversight:
|
|
63
|
+
|
|
64
|
+
- **The supervisor is not the moat.** It is inert without a Graphban server and holds no
|
|
65
|
+
authority. FSL's Competing Use clause protects the server; it protects nothing here.
|
|
66
|
+
- **Adapters are the contribution this component most wants**, and they come from people
|
|
67
|
+
who use other vendors' tools. A non-OSI licence is friction aimed at exactly that
|
|
68
|
+
audience.
|
|
69
|
+
- **It is a laptop-installed developer CLI**, which is precisely the kind of dependency
|
|
70
|
+
that meets a corporate licence policy scanner.
|
|
71
|
+
- FSL-1.1-**Apache-2.0** already commits to Apache-2.0 on a two-year delay. This brings
|
|
72
|
+
that grant forward for the one component least worth protecting.
|
|
73
|
+
|
|
74
|
+
If this component is ever extracted to its own repository — the stated trigger is outside
|
|
75
|
+
contributors who should not hold commit access to the server — extract **the adapter
|
|
76
|
+
interface only**, not the supervisor.
|
|
77
|
+
|
|
78
|
+
## Install
|
|
79
|
+
|
|
80
|
+
Not on PyPI yet, so it installs from the repository:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
uv tool install "git+https://github.com/asc-me/graphban.git#subdirectory=fleet"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
That gives you `gbfleet` and `gbagent`. `uv tool update-shell` once if uv says its bin
|
|
87
|
+
directory is not on your PATH, and `uv tool upgrade graphban-fleet` to move it forward — the
|
|
88
|
+
spec tracks a branch, so an upgrade is not automatic and a fix landing here does not reach a
|
|
89
|
+
machine until somebody asks for it.
|
|
90
|
+
|
|
91
|
+
[`gban`](https://github.com/asc-me/graphban/blob/main/cli/README.md), the client for a human at a terminal, is a separate package —
|
|
92
|
+
`#subdirectory=cli` — because it installs on laptops that never run a wave and must stay
|
|
93
|
+
dependency-free.
|
|
94
|
+
|
|
95
|
+
## Running it
|
|
96
|
+
|
|
97
|
+
One wave, deterministically — you mint the seats, it spawns and reaps:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
GBFLEET_API_KEY=... gbfleet up \
|
|
101
|
+
--server https://cloud.agentldgr.dev --seats-file seats.txt --adapter claude
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
A seats file is one enrolment code per line. A line may also bind the seat to an item
|
|
105
|
+
(`WORKER-7F3K item=GRPH-755` — the child gets the BOUND instruction and claims that item
|
|
106
|
+
at registration, PRD-36) or name its role (`REVIEWER-2Q9C role=reviewer` — the child gets
|
|
107
|
+
the reviewer instruction). Both are what `until` says when it mints a seat itself; here
|
|
108
|
+
you say them. A mistyped token refuses the whole file before any worktree is cut, and
|
|
109
|
+
`doctor --seats-file` refuses it the same way.
|
|
110
|
+
|
|
111
|
+
Or hand the local surface to a planner over stdio:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
GBFLEET_API_KEY=... gbfleet mcp --server https://cloud.agentldgr.dev
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`spawn` starts **one** child and takes no count. The planner decides how many to run —
|
|
118
|
+
it holds both servers, so it can read `collision_clusters` and `get_backlog` itself, mint
|
|
119
|
+
that many seats, and call `spawn` once each. The supervisor executes.
|
|
120
|
+
|
|
121
|
+
**Delegate to a seat (PRD-36).** A parent that wants one item built on a cheaper model
|
|
122
|
+
does it in two calls and keeps working: `delegate(id, lane, tier, seat=true)` on the
|
|
123
|
+
Graphban server mints a worker seat *bound* to the item and returns its code; then
|
|
124
|
+
`spawn(enrolment_code=<code>, tier="cheap", item=<id>)` here. Registering on a bound seat
|
|
125
|
+
claims the item server-side, so the child holds it from its first call and never touches
|
|
126
|
+
`claim_cluster`; the spawn reply echoes the roster's `assigned` block (`claimed`, or
|
|
127
|
+
`taken` with who holds it). `tier` resolves through a table the operator names at launch —
|
|
128
|
+
`gbfleet mcp --tier cheap=gbagent:qwen3.6:35b-a3b-coding-mtp-det --tier
|
|
129
|
+
frontier=claude:opus` — fixed for the life of the process, and an explicit `adapter`
|
|
130
|
+
overrides it. `gbfleet until` takes the same `--tier` table plus `--request cheap|frontier`
|
|
131
|
+
for what its own delegations ask, and mints bound seats for the seeds it delegates, so the
|
|
132
|
+
divvy no longer decides what its children claim. The outcome comes back through the ledger
|
|
133
|
+
— the item moving on the board — never as a reply in the parent's context.
|
|
134
|
+
|
|
135
|
+
**The preference matrix (PRD-37).** A tier with no `--tier` flag resolves through
|
|
136
|
+
`src/gbfleet/matrix.toml`, a committed table of harness × model × lane × role × tier rows
|
|
137
|
+
with a status (`verified`, `unverified`, `failed`, `unregistered`) and the item that proved
|
|
138
|
+
it — facts only, reviewed like code. Resolution runs in a fixed order: the rows for the
|
|
139
|
+
tier and role → the project's policy (`local_only`, `allowed_harnesses`,
|
|
140
|
+
`reviewer_cross_vendor`) → the user's profile (an ordered allowlist of harnesses, weights
|
|
141
|
+
over `cost`/`quality`/`latency`/`locality`, excludes) → `failed` rows out → what this
|
|
142
|
+
machine has installed → score → ties (verified first, then the user's own order, then the
|
|
143
|
+
row's `order`). Profile and policy come from the server: `gbfleet mcp` and `gbfleet until`
|
|
144
|
+
read them off `fleet_status` **once at launch** (a change is read at the next launch, PRD-36
|
|
145
|
+
D16) — the profile is the API key owner's, with a per-project override, edited in the Fleet
|
|
146
|
+
view under the Wave tab; the policy is the project's. A key whose owner has no profile, or a
|
|
147
|
+
server that cannot be reached at launch, resolves on matrix order and policy alone and the
|
|
148
|
+
explanation says `profile: none`. A reviewer spawn may pass `builder_vendor` so a project's
|
|
149
|
+
`reviewer_cross_vendor` rule can drop the builder's vendor. Every spawned child is told, in the same sentence
|
|
150
|
+
as its enrolment code, to register with `capabilities={vendor, model?, tier}` for what the
|
|
151
|
+
supervisor actually launched (GRPH-732), so the ledger can attribute its outcome; only a NAMED
|
|
152
|
+
model is declared, since a vendor default is unknowable from here. Measured `quality` and `latency`
|
|
153
|
+
also ride on `fleet_status` (per declared vendor × model × lane × tier, with `n`); the resolver
|
|
154
|
+
reads the cell for the lane being resolved, never a pooled one, and counts an axis only past
|
|
155
|
+
`n ≥ 5`. The spawn reply carries `resolution`: `source` (`flag`
|
|
156
|
+
or `matrix`), how many rows survived each step, what each step dropped and why, the winner
|
|
157
|
+
with its per-axis numbers, and the runner-up. An empty resolution is a tool error naming
|
|
158
|
+
the step that emptied it — there is no silent default. Measured axes need `n ≥ 5` before
|
|
159
|
+
they count and say `unmeasured` until then. `--matrix PATH` on `mcp`, `until` and `doctor`
|
|
160
|
+
swaps the file; `gbfleet doctor` prints every row against this machine and what each
|
|
161
|
+
role/tier would resolve to. The file is TOML, not the YAML the PRD first wrote, because
|
|
162
|
+
gbfleet is httpx-thin by requirement and `tomllib` is standard library.
|
|
163
|
+
|
|
164
|
+
**Name the project.** A credential that spans several projects resolves a call that names
|
|
165
|
+
none to its *default* project, and that is not where the seats were minted: the child
|
|
166
|
+
registers on the seat's project (the server takes it from the seat), but the supervisor's
|
|
167
|
+
roster read and the child's own reads land elsewhere — the child never appears on the
|
|
168
|
+
roster the supervisor polls and reads a backlog that is not its own. `gbfleet mcp`,
|
|
169
|
+
`gbfleet until` and `gbfleet doctor` take `--project <id>`, named on every call; `doctor`
|
|
170
|
+
fails a multi-project key that gives none. The child learns its project from the
|
|
171
|
+
registration reply and names it afterwards (GRPH-718, GRPH-719).
|
|
172
|
+
|
|
173
|
+
**What a wave reports about itself.** Beyond spawn and reap, `up` and `until` print three
|
|
174
|
+
findings a reviewer otherwise has no way to see, all measured from the worktrees the
|
|
175
|
+
supervisor already owns and none of them acted on:
|
|
176
|
+
|
|
177
|
+
- `COLLIDED <path>: changed on <branch>, <branch>` — two workers changed the same file. The
|
|
178
|
+
failure the partition exists to prevent, observed rather than predicted: exact paths, no
|
|
179
|
+
coverage rule, and true whether the touchpoints were wrong or the divvy was.
|
|
180
|
+
- `UNDECLARED <branch>: changed N file(s) no touchpoint covers` — the partition's INPUT was
|
|
181
|
+
wrong. Compared against the declaration as it stood when work was handed out, which is the
|
|
182
|
+
snapshot the divvy used. An item that declared nothing is not drift; its areas were
|
|
183
|
+
predicted, which the board already marks.
|
|
184
|
+
- `BEHIND <branch>: cut from a base N commit(s) behind origin/main` — how much landed on the
|
|
185
|
+
trunk while the child worked. Two agents can each be green on their own base and conflict
|
|
186
|
+
on merge, and nothing else in the system can see it: the server has no git, the reviewer
|
|
187
|
+
gets a branch with no indication of what its diff is against, and the child was cut from
|
|
188
|
+
HEAD at spawn and never looked again. The trunk is fetched once per wave before measuring —
|
|
189
|
+
a remote-tracking ref is only as fresh as its last fetch, and a check that skipped it would
|
|
190
|
+
report every branch as current. `BEHIND unmeasured: <reason>` when it could not be asked,
|
|
191
|
+
because that is not the same as nothing having moved.
|
|
192
|
+
|
|
193
|
+
Vendors and what each of them needs: [`docs/fleet-adapters.md`](https://github.com/asc-me/graphban/blob/main/docs/fleet-adapters.md).
|
|
194
|
+
|
|
195
|
+
## Development
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
cd fleet
|
|
199
|
+
uv venv --python 3.12 .venv
|
|
200
|
+
uv pip install -e ".[dev]"
|
|
201
|
+
.venv/bin/python -m pytest -q
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
The suite fails loudly if the package is not installed, rather than testing an
|
|
205
|
+
uninstalled fallback and passing.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# graphban-fleet
|
|
2
|
+
|
|
3
|
+
The **fleet supervisor**: a thin local client that runs where the agents actually run.
|
|
4
|
+
It spawns vendor CLI processes holding seats the Graphban *server* issued, and it reaps
|
|
5
|
+
them. Ships as `graphban-fleet`, with a `gbfleet` entry point.
|
|
6
|
+
|
|
7
|
+
Specified by [PRD-22](https://github.com/asc-me/graphban/blob/main/docs/prd-22-fleet-supervisor.md).
|
|
8
|
+
|
|
9
|
+
## Two servers, and only one of them has authority
|
|
10
|
+
|
|
11
|
+
Arbitration is remote and authoritative; process control is local and unprivileged.
|
|
12
|
+
A planner attaches both:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
planner (a terminal, or an in-session orchestrator)
|
|
16
|
+
├─ graphban (remote HTTP) → mint_enrolment, propose_allocation, assign_role, fleet_status
|
|
17
|
+
└─ gbfleet (local stdio) → spawn, stop, ps, orphans
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`gbfleet` runs on the developer's machine and the Graphban server never learns its calls
|
|
21
|
+
happened. There are **no HTTP routes on the local surface**. Authentication there is
|
|
22
|
+
process ownership — the planner speaks over a pipe to a child it launched — not a
|
|
23
|
+
credential.
|
|
24
|
+
|
|
25
|
+
**The supervisor holds no authority of its own.** It can only launch a process holding a
|
|
26
|
+
seat the server issued, to do work the server arbitrates. Delete it and every invariant
|
|
27
|
+
still holds; the fleet just needs a human to open terminals again. It is explicitly
|
|
28
|
+
**not a security boundary** (PRD-22 D-k): a compromised vendor binary has whatever the
|
|
29
|
+
user has, and the worktree is a blast-radius convention, not a sandbox.
|
|
30
|
+
|
|
31
|
+
## Why it is in this repository, and not inside `backend/`
|
|
32
|
+
|
|
33
|
+
**Not a second repository,** because the client↔server contract has no schema anywhere —
|
|
34
|
+
the enrolment code format and its TTL, `register_agent`'s return shape, `independent()`'s
|
|
35
|
+
seat semantics, the directive envelope. All of it is changeable in a single PR here, and
|
|
36
|
+
a cross-repo break would present as absence reading clean: the fleet still spawns,
|
|
37
|
+
nothing errors, review stops being independent.
|
|
38
|
+
|
|
39
|
+
**Not inside `backend/`,** because `graphban-api` pulls fastapi, sqlalchemy, pgvector,
|
|
40
|
+
psycopg, alembic, redis and cryptography, and a laptop running four vendor CLIs needs
|
|
41
|
+
none of them. `tests/test_packaging.py` derives its forbidden-dependency set from the
|
|
42
|
+
backend's own list, so that separation is checked rather than asserted.
|
|
43
|
+
|
|
44
|
+
## Licence — Apache-2.0, deliberately not the repository's FSL-1.1
|
|
45
|
+
|
|
46
|
+
The repository is [FSL-1.1-Apache-2.0](https://github.com/asc-me/graphban/blob/main/LICENSE.md). This directory is
|
|
47
|
+
[Apache-2.0](https://github.com/asc-me/graphban/blob/main/fleet/LICENSE), and the divergence is a decision (PRD-22 §8), not an oversight:
|
|
48
|
+
|
|
49
|
+
- **The supervisor is not the moat.** It is inert without a Graphban server and holds no
|
|
50
|
+
authority. FSL's Competing Use clause protects the server; it protects nothing here.
|
|
51
|
+
- **Adapters are the contribution this component most wants**, and they come from people
|
|
52
|
+
who use other vendors' tools. A non-OSI licence is friction aimed at exactly that
|
|
53
|
+
audience.
|
|
54
|
+
- **It is a laptop-installed developer CLI**, which is precisely the kind of dependency
|
|
55
|
+
that meets a corporate licence policy scanner.
|
|
56
|
+
- FSL-1.1-**Apache-2.0** already commits to Apache-2.0 on a two-year delay. This brings
|
|
57
|
+
that grant forward for the one component least worth protecting.
|
|
58
|
+
|
|
59
|
+
If this component is ever extracted to its own repository — the stated trigger is outside
|
|
60
|
+
contributors who should not hold commit access to the server — extract **the adapter
|
|
61
|
+
interface only**, not the supervisor.
|
|
62
|
+
|
|
63
|
+
## Install
|
|
64
|
+
|
|
65
|
+
Not on PyPI yet, so it installs from the repository:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
uv tool install "git+https://github.com/asc-me/graphban.git#subdirectory=fleet"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
That gives you `gbfleet` and `gbagent`. `uv tool update-shell` once if uv says its bin
|
|
72
|
+
directory is not on your PATH, and `uv tool upgrade graphban-fleet` to move it forward — the
|
|
73
|
+
spec tracks a branch, so an upgrade is not automatic and a fix landing here does not reach a
|
|
74
|
+
machine until somebody asks for it.
|
|
75
|
+
|
|
76
|
+
[`gban`](https://github.com/asc-me/graphban/blob/main/cli/README.md), the client for a human at a terminal, is a separate package —
|
|
77
|
+
`#subdirectory=cli` — because it installs on laptops that never run a wave and must stay
|
|
78
|
+
dependency-free.
|
|
79
|
+
|
|
80
|
+
## Running it
|
|
81
|
+
|
|
82
|
+
One wave, deterministically — you mint the seats, it spawns and reaps:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
GBFLEET_API_KEY=... gbfleet up \
|
|
86
|
+
--server https://cloud.agentldgr.dev --seats-file seats.txt --adapter claude
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
A seats file is one enrolment code per line. A line may also bind the seat to an item
|
|
90
|
+
(`WORKER-7F3K item=GRPH-755` — the child gets the BOUND instruction and claims that item
|
|
91
|
+
at registration, PRD-36) or name its role (`REVIEWER-2Q9C role=reviewer` — the child gets
|
|
92
|
+
the reviewer instruction). Both are what `until` says when it mints a seat itself; here
|
|
93
|
+
you say them. A mistyped token refuses the whole file before any worktree is cut, and
|
|
94
|
+
`doctor --seats-file` refuses it the same way.
|
|
95
|
+
|
|
96
|
+
Or hand the local surface to a planner over stdio:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
GBFLEET_API_KEY=... gbfleet mcp --server https://cloud.agentldgr.dev
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`spawn` starts **one** child and takes no count. The planner decides how many to run —
|
|
103
|
+
it holds both servers, so it can read `collision_clusters` and `get_backlog` itself, mint
|
|
104
|
+
that many seats, and call `spawn` once each. The supervisor executes.
|
|
105
|
+
|
|
106
|
+
**Delegate to a seat (PRD-36).** A parent that wants one item built on a cheaper model
|
|
107
|
+
does it in two calls and keeps working: `delegate(id, lane, tier, seat=true)` on the
|
|
108
|
+
Graphban server mints a worker seat *bound* to the item and returns its code; then
|
|
109
|
+
`spawn(enrolment_code=<code>, tier="cheap", item=<id>)` here. Registering on a bound seat
|
|
110
|
+
claims the item server-side, so the child holds it from its first call and never touches
|
|
111
|
+
`claim_cluster`; the spawn reply echoes the roster's `assigned` block (`claimed`, or
|
|
112
|
+
`taken` with who holds it). `tier` resolves through a table the operator names at launch —
|
|
113
|
+
`gbfleet mcp --tier cheap=gbagent:qwen3.6:35b-a3b-coding-mtp-det --tier
|
|
114
|
+
frontier=claude:opus` — fixed for the life of the process, and an explicit `adapter`
|
|
115
|
+
overrides it. `gbfleet until` takes the same `--tier` table plus `--request cheap|frontier`
|
|
116
|
+
for what its own delegations ask, and mints bound seats for the seeds it delegates, so the
|
|
117
|
+
divvy no longer decides what its children claim. The outcome comes back through the ledger
|
|
118
|
+
— the item moving on the board — never as a reply in the parent's context.
|
|
119
|
+
|
|
120
|
+
**The preference matrix (PRD-37).** A tier with no `--tier` flag resolves through
|
|
121
|
+
`src/gbfleet/matrix.toml`, a committed table of harness × model × lane × role × tier rows
|
|
122
|
+
with a status (`verified`, `unverified`, `failed`, `unregistered`) and the item that proved
|
|
123
|
+
it — facts only, reviewed like code. Resolution runs in a fixed order: the rows for the
|
|
124
|
+
tier and role → the project's policy (`local_only`, `allowed_harnesses`,
|
|
125
|
+
`reviewer_cross_vendor`) → the user's profile (an ordered allowlist of harnesses, weights
|
|
126
|
+
over `cost`/`quality`/`latency`/`locality`, excludes) → `failed` rows out → what this
|
|
127
|
+
machine has installed → score → ties (verified first, then the user's own order, then the
|
|
128
|
+
row's `order`). Profile and policy come from the server: `gbfleet mcp` and `gbfleet until`
|
|
129
|
+
read them off `fleet_status` **once at launch** (a change is read at the next launch, PRD-36
|
|
130
|
+
D16) — the profile is the API key owner's, with a per-project override, edited in the Fleet
|
|
131
|
+
view under the Wave tab; the policy is the project's. A key whose owner has no profile, or a
|
|
132
|
+
server that cannot be reached at launch, resolves on matrix order and policy alone and the
|
|
133
|
+
explanation says `profile: none`. A reviewer spawn may pass `builder_vendor` so a project's
|
|
134
|
+
`reviewer_cross_vendor` rule can drop the builder's vendor. Every spawned child is told, in the same sentence
|
|
135
|
+
as its enrolment code, to register with `capabilities={vendor, model?, tier}` for what the
|
|
136
|
+
supervisor actually launched (GRPH-732), so the ledger can attribute its outcome; only a NAMED
|
|
137
|
+
model is declared, since a vendor default is unknowable from here. Measured `quality` and `latency`
|
|
138
|
+
also ride on `fleet_status` (per declared vendor × model × lane × tier, with `n`); the resolver
|
|
139
|
+
reads the cell for the lane being resolved, never a pooled one, and counts an axis only past
|
|
140
|
+
`n ≥ 5`. The spawn reply carries `resolution`: `source` (`flag`
|
|
141
|
+
or `matrix`), how many rows survived each step, what each step dropped and why, the winner
|
|
142
|
+
with its per-axis numbers, and the runner-up. An empty resolution is a tool error naming
|
|
143
|
+
the step that emptied it — there is no silent default. Measured axes need `n ≥ 5` before
|
|
144
|
+
they count and say `unmeasured` until then. `--matrix PATH` on `mcp`, `until` and `doctor`
|
|
145
|
+
swaps the file; `gbfleet doctor` prints every row against this machine and what each
|
|
146
|
+
role/tier would resolve to. The file is TOML, not the YAML the PRD first wrote, because
|
|
147
|
+
gbfleet is httpx-thin by requirement and `tomllib` is standard library.
|
|
148
|
+
|
|
149
|
+
**Name the project.** A credential that spans several projects resolves a call that names
|
|
150
|
+
none to its *default* project, and that is not where the seats were minted: the child
|
|
151
|
+
registers on the seat's project (the server takes it from the seat), but the supervisor's
|
|
152
|
+
roster read and the child's own reads land elsewhere — the child never appears on the
|
|
153
|
+
roster the supervisor polls and reads a backlog that is not its own. `gbfleet mcp`,
|
|
154
|
+
`gbfleet until` and `gbfleet doctor` take `--project <id>`, named on every call; `doctor`
|
|
155
|
+
fails a multi-project key that gives none. The child learns its project from the
|
|
156
|
+
registration reply and names it afterwards (GRPH-718, GRPH-719).
|
|
157
|
+
|
|
158
|
+
**What a wave reports about itself.** Beyond spawn and reap, `up` and `until` print three
|
|
159
|
+
findings a reviewer otherwise has no way to see, all measured from the worktrees the
|
|
160
|
+
supervisor already owns and none of them acted on:
|
|
161
|
+
|
|
162
|
+
- `COLLIDED <path>: changed on <branch>, <branch>` — two workers changed the same file. The
|
|
163
|
+
failure the partition exists to prevent, observed rather than predicted: exact paths, no
|
|
164
|
+
coverage rule, and true whether the touchpoints were wrong or the divvy was.
|
|
165
|
+
- `UNDECLARED <branch>: changed N file(s) no touchpoint covers` — the partition's INPUT was
|
|
166
|
+
wrong. Compared against the declaration as it stood when work was handed out, which is the
|
|
167
|
+
snapshot the divvy used. An item that declared nothing is not drift; its areas were
|
|
168
|
+
predicted, which the board already marks.
|
|
169
|
+
- `BEHIND <branch>: cut from a base N commit(s) behind origin/main` — how much landed on the
|
|
170
|
+
trunk while the child worked. Two agents can each be green on their own base and conflict
|
|
171
|
+
on merge, and nothing else in the system can see it: the server has no git, the reviewer
|
|
172
|
+
gets a branch with no indication of what its diff is against, and the child was cut from
|
|
173
|
+
HEAD at spawn and never looked again. The trunk is fetched once per wave before measuring —
|
|
174
|
+
a remote-tracking ref is only as fresh as its last fetch, and a check that skipped it would
|
|
175
|
+
report every branch as current. `BEHIND unmeasured: <reason>` when it could not be asked,
|
|
176
|
+
because that is not the same as nothing having moved.
|
|
177
|
+
|
|
178
|
+
Vendors and what each of them needs: [`docs/fleet-adapters.md`](https://github.com/asc-me/graphban/blob/main/docs/fleet-adapters.md).
|
|
179
|
+
|
|
180
|
+
## Development
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
cd fleet
|
|
184
|
+
uv venv --python 3.12 .venv
|
|
185
|
+
uv pip install -e ".[dev]"
|
|
186
|
+
.venv/bin/python -m pytest -q
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
The suite fails loudly if the package is not installed, rather than testing an
|
|
190
|
+
uninstalled fallback and passing.
|