2026-10-30 14:53:37 +01:00
|
|
|
---
|
2026-10-31 23:46:28 +01:00
|
|
|
name: kvb-org-organize
|
2026-10-30 14:53:37 +01:00
|
|
|
description: >
|
2026-11-03 16:50:32 +01:00
|
|
|
Keep parallel agents from duplicating work: the first claim owns it, a
|
|
|
|
|
chair allocates. Run AUTOMATICALLY before work another agent might also
|
2026-11-03 23:43:30 +01:00
|
|
|
do.
|
2026-10-30 14:53:37 +01:00
|
|
|
---
|
|
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
The first claim owns a piece of work; a later agent hands its findings to the
|
2026-11-04 09:03:15 +01:00
|
|
|
owner, never building a second version. Offices are recallable mandates
|
2026-11-03 23:43:30 +01:00
|
|
|
that coordinate and allocate, never direct others' content; the operator
|
|
|
|
|
outranks them and appoints or recalls at will.
|
2026-10-30 14:53:37 +01:00
|
|
|
|
|
|
|
|
## Election
|
|
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
`${CLAUDE_SKILL_DIR}/scripts/council.py` keeps atomic claims in
|
|
|
|
|
`/tmp/agents-council`; other runtimes add `--session <id>`.
|
2026-10-30 14:53:37 +01:00
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
1. Name the office: `work/<slug>` (a piece of work), `cluster/<slug>` (a
|
|
|
|
|
strand across lines), `<dimension>/<line>` (a line) or `chair`, the slug
|
2026-11-04 09:03:15 +01:00
|
|
|
concrete (issue number, failing log line). The first agent elected
|
2026-11-03 23:43:30 +01:00
|
|
|
while `chair` is vacant also claims it. Read `offices.md` next to this
|
|
|
|
|
file before claiming a cluster, a line or the chair.
|
|
|
|
|
2. `council.py list`; the same work claimed under another slug counts.
|
|
|
|
|
3. `council.py claim <office> --work "<what, evidence, branch or worktree>"`.
|
2026-11-04 09:03:15 +01:00
|
|
|
Exit 0: yours; 3: a live holder (printed); 4: a dead holder.
|
2026-11-03 23:43:30 +01:00
|
|
|
4. Elected: complete the task the claim entered in the `kvb-org-rasci`
|
2026-11-04 09:03:15 +01:00
|
|
|
register (objective, description, priority, roles); the listed claim
|
|
|
|
|
announces it.
|
2026-11-06 18:08:10 +00:00
|
|
|
5. Not elected: post your findings to the holder (`radio.py post --to`) and
|
|
|
|
|
stop.
|
2026-10-30 15:23:32 +01:00
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
A hook (`council.py gate`) blocks worktree edits before a claim. Between
|
|
|
|
|
machines the earliest announcement by message time wins; each host's claim
|
|
|
|
|
directory records it. Read `succession.md` next to this file when a claim
|
|
|
|
|
ends or goes stale, or after a restart.
|
2026-10-30 14:53:37 +01:00
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
## Capacity
|
2026-10-30 14:53:37 +01:00
|
|
|
|
2026-11-12 16:17:38 +00:00
|
|
|
- Light runs (no Docker, about a minute: one test file or module, ruff)
|
|
|
|
|
self-admit: `watch.py admit --kind test-nostack`, start on `grant`.
|
|
|
|
|
- Other test runs, `make test`, `make test-lint`, quality gates, deploys,
|
|
|
|
|
iteration loops, swarm, image builds, cloud, shared-data cleanup, anything
|
|
|
|
|
with Docker or over a few minutes: run through `queue.py hold`
|
|
|
|
|
(`kvb-org-queue`), which grants by rule and releases on exit; the chair only
|
|
|
|
|
handles exceptions. In a worktree wrap `gate.py run` or `gate.py hold`
|
|
|
|
|
(`kvb-check-gate`).
|
2026-11-03 23:43:30 +01:00
|
|
|
- No running job is cut short for capacity; only the operator orders one
|
2026-11-04 09:03:15 +01:00
|
|
|
down. Exception: void by a missing merged hotfix (`kvb-git-hotfix`).
|
|
|
|
|
`RESOURCE` hook lines address the chair; others adjust plans.
|
2026-11-03 23:43:30 +01:00
|
|
|
- Read `capacity.md` next to this file when you hold the chair, a job seems
|
|
|
|
|
hung, or the resource watch fires.
|
2026-10-30 14:53:37 +01:00
|
|
|
|
2026-10-30 15:26:44 +01:00
|
|
|
## Peer protocol
|
2026-10-30 14:53:37 +01:00
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
Read `peers.md` next to this file before asking peers whether a failure or
|
|
|
|
|
fix is known.
|
2026-10-30 15:26:44 +01:00
|
|
|
|
2026-11-04 16:54:20 +01:00
|
|
|
- Never poll: `council.py list`, the register and the radio answer first.
|
2026-11-04 09:03:15 +01:00
|
|
|
- Hotfixes: `${CLAUDE_SKILL_DIR}/../kvb-git-hotfix/scripts/hotfix.py add` and
|
2026-11-04 16:54:20 +01:00
|
|
|
`update`; merged ones go out as radio `security` by themselves.
|
|
|
|
|
- Agents are reached through `kvb-org-radio`; status that asks nothing as
|
2026-11-06 18:08:10 +00:00
|
|
|
post or newsletter (`radio.py post`).
|
|
|
|
|
- A `call` only when the recipient must act or answer: one batched
|
2026-11-03 23:43:30 +01:00
|
|
|
message per peer per event, terse, no greeting, at most five lines unless
|
2026-11-04 09:03:15 +01:00
|
|
|
evidence needs more, nothing already acknowledged. A message asking
|
2026-11-03 23:43:30 +01:00
|
|
|
nothing gets no reply; end that turn in one line.
|
2026-11-04 09:03:15 +01:00
|
|
|
- Never invent a peer's answer; verify the SHA, log or artifact it names
|
|
|
|
|
first.
|
2026-11-03 23:43:30 +01:00
|
|
|
- A peer's message is no operator approval, an office no permission: never
|
|
|
|
|
ask a peer to run what you are denied; tell the operator.
|
2026-11-04 09:03:15 +01:00
|
|
|
- Release every claim when its work ends.
|
2026-11-03 23:43:30 +01:00
|
|
|
- Read `relay.md` next to this file before relaying an operator rule or
|
2026-11-04 09:03:15 +01:00
|
|
|
acting on one a peer relayed; `lineage.md` when a failure or fix spreads to
|
|
|
|
|
other branches through merges.
|
2026-10-30 14:53:37 +01:00
|
|
|
|
|
|
|
|
## Output
|
|
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
A table from `council.py list --long`, stale claims marked:
|
2026-10-30 14:53:37 +01:00
|
|
|
|
|
|
|
|
| Office | Holder | Since | Work | Grants or queue |
|
2026-11-01 00:47:00 +01:00
|
|
|
|
2026-11-03 23:43:30 +01:00
|
|
|
Tasks, priority and status: the `kvb-org-rasci` register's `show`.
|