fix(kvb-org-organize): move the council root out of /tmp with a lossless migration
councilroot.py resolves one durable council root for every script and migrates the old /tmp root under the held locks: a preflight conflict moves nothing, each legacy file is renamed to a staging name before it is copied so a late writer is merged by the catch-up, id-less journals merge by line multiset, a differing whole file is kept beside its namesake, and a crash marker makes install copy the skills and report. One settings-file list, managed drop-ins included, serves councilroot.py and queue.py. Tests run once on unify/skills-20261114 after the merge (operator order 2026-11-14). 🎯 Fix: 88 % 💥 Break: 7 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 82 🚦 Gate: ⛔ fix 88 % < 90, break 7 % > 5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
699f3227c9
commit
8726ed37a7
47 files changed
+2199
-191
No files matched your search
@@ -61,8 +61,8 @@ changed and what it costs, and a gate means something again.
|
||||
12. **Gates**: a level (none < quick < test < quality-high < e2e) per branch
|
||||
and action (commit, merge, push, pr), inherited from all ancestors, the
|
||||
strictest wins, an own rule wins over all; kept in the local database
|
||||
`~/.local/state/agents-council/gates.db` (the council root lives in the
|
||||
tmpfs `/tmp` and loses it at reboot) that agents read through `gates.py`;
|
||||
`~/.local/state/agents-council/gates.db` (host-only; agents share the
|
||||
council root `~/.local/state/agents-shared`) that agents read through `gates.py`;
|
||||
set in every Artifacts view. Rejected: a committed `.gates.yml`, repo plus
|
||||
local.
|
||||
13. **Hooks with receipts**: pre-commit runs only quick checks of the staged
|
||||
@@ -243,6 +243,9 @@ flowchart TD
|
||||
`gate-parents.jsonl` in the council root, which the watch hook of
|
||||
`kvb-org-organize` keeps in `~/.local/state/agents-council/` beside
|
||||
`gates.db`; reads merge both, and a database row for an edge wins.
|
||||
Amended 2026-11-14: the council root is the durable
|
||||
`~/.local/state/agents-shared` (`councilroot.py root`); the copy stays in
|
||||
the host-only `~/.local/state/agents-council` (`councilroot.py durable`).
|
||||
- [x] `gates.py resolve --repo R --branch B --action A` prints the level and its
|
||||
source: the branch's own rule, else the strictest resolved level of all
|
||||
ancestors, else none.
|
||||
@@ -293,6 +296,10 @@ flowchart TD
|
||||
sandboxed gates write receipts to `/tmp/agents-council` (the council
|
||||
root) and the watch hook of `kvb-org-organize` mirrors them to
|
||||
`~/.local/state/agents-council`, as it does `security-accepted.jsonl`.
|
||||
Amended 2026-11-14 after a host crash wiped `/tmp`: the council root
|
||||
moved to the durable `~/.local/state/agents-shared`, the one state path
|
||||
the sandbox may write; `~/.local/state/agents-council` stays host-only,
|
||||
and the watch hook still mirrors receipts and acceptances into it.
|
||||
(4) Agents commit and push with `--no-verify` per operator rule, so the
|
||||
hooks bind humans and CI; the push hand-over keeps its own green gate on
|
||||
the exact commit.
|
||||
@@ -347,7 +354,8 @@ The work packages meet only through these interfaces:
|
||||
cache_write}`, t the hour), `offsets.json` and `cpu.json` under
|
||||
`~/.local/state/agents-council/resources/`.
|
||||
- **Mounts**: the hub mounts `~/.local/state/agents-council` read-only and
|
||||
opens `gates.db` read-only.
|
||||
opens `gates.db` read-only; the council root `~/.local/state/agents-shared`
|
||||
is mounted read-write at its host path.
|
||||
|
||||
### W6 Speech bubbles
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ the burndown, so that I see how quality and cost move alongside the work.
|
||||
[--labels <file>]` parses score blocks from commit messages through
|
||||
`git log` with the label file, keyed by (remote, commit sha), idempotent (a
|
||||
second run adds nothing), runnable on any host, after a reboot (the journal
|
||||
lives in the RAM-backed `/tmp`) or on another PC; no model calls.
|
||||
lived in the RAM-backed `/tmp` until 2026-11-14 and is durable since) or
|
||||
on another PC; no model calls.
|
||||
Rejected: an agent reading the history (tokens); parsing at view time in
|
||||
the hub (the hub would need every repository).
|
||||
5. **Overlays**: the burndown gets one switch per metric (six), all off by
|
||||
|
||||
Reference in new issue
Block a user