Add manual Coordinator wave-audit and tracker-hygiene packages (v0.17.0) #35

Merged
anodyine merged 7 commits from ISSUE-28 into main 2026-11-25 20:56:20 -05:00
Owner

Summary

Adds the two optional, Operator-invoked Technical Coordinator methods for the
proposed v0.17.0 release. Both are schema 1, coordinator / coordination,
disable-model-invocation: true, SKILL.md only.

 packages/
 ├── coordinator-dispatch/          # automatic (#26)
 ├── coordinator-communication/     # automatic, schema 3 (#26)
+├── coordinator-wave-audit/        # manual: /skill:coordinator-wave-audit
+└── coordinator-tracker-hygiene/   # manual: /skill:coordinator-tracker-hygiene
  • coordinator-wave-audit audits the entire Ready queue (or a scope the
    Operator gives with the command) against running work, branch and
    pull-request footprints, and the Lease Registry. It returns four sections in
    order, with "None" under an empty one:
    Safe Parallel Wave 1, Contention Pairs (shared
    file/module/schema/decision/service plus where it was read),
    Resource-Affinity Batches, and Blocked/Stale. Its admission,
    tie-break, GPU sizing and aggressiveness rules mirror wave-selection.md. It
    dispatches nothing, changes no issue, and requests no lease.
  • coordinator-tracker-hygiene reads the unresolved implicit contention
    edges in the Working Ledger and stops if the ledger is missing or empty. It
    sorts each edge into one of five groups: ordering need, coordination note,
    already recorded, stale, or doubtful. It then drafts minimal prerequisite-edge
    or issue-comment proposals. A proposed edge is direct only, is checked for
    cycles, and is flagged if it would hold back running work. It makes no
    tracker change itself: the Operator approves and applies each proposal
    separately. Its only write goes to the Working Ledger: it records a stale edge
    as resolved, under the same rule as #27's coordinator-recovery (either
    issue closes or the shared change lands). That package also leaves
    prerequisites and issue comments to the Operator.

Docs:

  • OVERRIDING.md lists both packages in the role and package matrices. Its
    "Customize the Technical Coordinator" section gains their seams, a note that
    anyone forking the contention heuristics must fork the audit too, and an
    invocationMode: manual set example.
  • OVERRIDING.md's Coordination boundary row and gate paragraph now say the
    Operator applies tracker changes.
  • README.md and the contract's adoption section name both packages.

Evidence

  • Before: with the new tests and no packages,
    python3 -m unittest tests.test_packages tests.test_overriding returned
    FAILED (failures=1, errors=4).
    • The new coordinator_* package tests errored with
      FileNotFoundError: .../packages/coordinator-wave-audit/SKILL.md.
    • test_coordinator_customization_names_the_seams_and_the_owner_gates
      failed.
    • Once only the packages existed, the matrix tests still failed until
      OVERRIDING.md listed them.
    • Each review round's new assertions went red before its fix: the ledger
      fallback, "Check before finishing", free GPU workers, "Make no tracker
      change yourself", and the boundary row's tracker changes.
  • After: all green on d9934bd.

New tests:

  • test_coordinator_manual_methods_are_v0_17_0_manual_coordination_guidance
  • test_coordinator_wave_audit_returns_a_structured_wave_plan_without_dispatching
    (also checks section order)
  • test_coordinator_tracker_hygiene_drafts_proposals_and_never_mutates_silently
  • Extended test_coordinator_customization_names_the_seams_and_the_owner_gates,
    including the Coordination boundary row.

Checks run

On head d9934bdb13306a3a010ebe2dcbf084fa0a55e4f0, the final reviewed commit
(it includes main at 3ae5675, with #27):

  • python3 -m unittest discover -s tests -v → Ran 57 tests ... OK
  • for p in packages/*; do python3 -m tools.packages check "$p"; done → all
    pass. Identities:
    • coordinator-tracker-hygiene f2eee04f…
    • coordinator-wave-audit c070098d…

Review loop

Spec: #28. Each round reviewed the standards axis and the spec axis separately.

  1. Before #27 merged (base 7d3b057): four rounds, ending clean on
    f32f238. Fixes are in 275967e, 5b161d3 and f32f238.
  2. After #27 merged: #36 merged first, so this PR conflicted in
    OVERRIDING.md, README.md and the contract. 073c1cd merges main and
    keeps both sides' rows, seams and YAML examples. It also aligns tracker
    hygiene with coordinator-recovery: the same "Working Ledger" name and the
    same resolution rule, plus a Doubtful group.
  3. Against base 3ae5675: three more rounds.
    • c309981 skips already-resolved edges and corrects the fork note.
    • d9934bd documents hygiene's ledger write. The Working Ledger seam row
      now names both packages, and the audit's contention caveat matches
      dispatch again.
    • Final round on d9934bd: Standards 0 actionable, Spec 0 actionable.

Nonblocking notes left as they are, with reasons:

  • /skill:<name> can't be tested end to end. RelayView does not admit
    coordinator yet. The evidence is structural (the manual frontmatter matches
    25 existing manual packages), and #26 and #27 have the same limit.
  • The audit copies dispatch's contention rules. Packages are closed
    directories; OVERRIDING.md tells forkers to fork the audit too.
  • The audit's "looks stalled" listing is report-only. It simplifies
    recovery's triage and never nudges.
  • Neither dispatch nor the audit reads the Working Ledger. This needs a
    change across several packages and is better as a follow-up.
  • Wording polish in OVERRIDING.md:
    • "changes both packages" could read "must fork both";
    • "A fork keeps schema 1" could name "a fork of either manual method";
    • the existing guide mixes "admits" and "adopts".

Documentation disposition

updated: OVERRIDING.md, README.md and
docs/authoritative/instruction-package-contract.md describe both manual
packages, their override seams, the manual-set assignment, and the
Operator-applied tracker boundary, and how tracker hygiene shares the Working Ledger resolution rule with coordinator-recovery. All of it is labelled as current source for
the proposed v0.17.0 release.

Merge Danger

Door: two-way. These are new, untagged packages and docs. RelayView pins
nothing until v0.17.0 is tagged and the coordinator role is adopted.

Blast Radius: only this repository's package set and Operator docs.
RelayView still refuses coordinator packages.

Rollback: git revert -m 1 <merge commit>. No tag or external state
exists.

Reviewer prerequisites

  • None (Python 3 standard library only).

Manual Test Plan

The automated checks cover structure and required phrasing. One judgment check
remains:

  1. Action: read both new SKILL.md files as the Coordinator would
    after /skill:<name>:

    git fetch origin ISSUE-28
    git show origin/ISSUE-28:packages/coordinator-wave-audit/SKILL.md
    git show origin/ISSUE-28:packages/coordinator-tracker-hygiene/SKILL.md
    

    Expected:

    • Neither text dispatches, requests a lease, or changes the tracker.
    • Every tracker change is left to the Operator.
    • Neither builds durable state from chat memory.

    Stop and comment if either one grants itself authority the owner or the
    Operator holds.

Post-Merge Cleanup

python /home/anodyine/.local/share/codex-skills/gitea-issues/scripts/gitea.py issue remove-worktree --issue 28 --pull 35

🤖 Generated with Claude Code

## Summary Adds the two optional, Operator-invoked Technical Coordinator methods for the proposed `v0.17.0` release. Both are schema 1, `coordinator` / `coordination`, `disable-model-invocation: true`, `SKILL.md` only. ```diff packages/ ├── coordinator-dispatch/ # automatic (#26) ├── coordinator-communication/ # automatic, schema 3 (#26) +├── coordinator-wave-audit/ # manual: /skill:coordinator-wave-audit +└── coordinator-tracker-hygiene/ # manual: /skill:coordinator-tracker-hygiene ``` - **`coordinator-wave-audit`** audits the entire Ready queue (or a scope the Operator gives with the command) against running work, branch and pull-request footprints, and the Lease Registry. It returns four sections in order, with "None" under an empty one: **Safe Parallel Wave 1**, **Contention Pairs** (shared file/module/schema/decision/service plus where it was read), **Resource-Affinity Batches**, and **Blocked/Stale**. Its admission, tie-break, GPU sizing and aggressiveness rules mirror `wave-selection.md`. It dispatches nothing, changes no issue, and requests no lease. - **`coordinator-tracker-hygiene`** reads the unresolved implicit contention edges in the Working Ledger and stops if the ledger is missing or empty. It sorts each edge into one of five groups: ordering need, coordination note, already recorded, stale, or doubtful. It then drafts minimal prerequisite-edge or issue-comment proposals. A proposed edge is direct only, is checked for cycles, and is flagged if it would hold back running work. It makes **no** tracker change itself: the Operator approves and applies each proposal separately. Its only write goes to the Working Ledger: it records a stale edge as resolved, under the same rule as #27's `coordinator-recovery` (either issue closes or the shared change lands). That package also leaves prerequisites and issue comments to the Operator. Docs: - `OVERRIDING.md` lists both packages in the role and package matrices. Its "Customize the Technical Coordinator" section gains their seams, a note that anyone forking the contention heuristics must fork the audit too, and an `invocationMode: manual` set example. - `OVERRIDING.md`'s Coordination boundary row and gate paragraph now say the Operator applies tracker changes. - `README.md` and the contract's adoption section name both packages. ## Evidence - **Before:** with the new tests and no packages, `python3 -m unittest tests.test_packages tests.test_overriding` returned `FAILED (failures=1, errors=4)`. - The new `coordinator_*` package tests errored with `FileNotFoundError: .../packages/coordinator-wave-audit/SKILL.md`. - `test_coordinator_customization_names_the_seams_and_the_owner_gates` failed. - Once only the packages existed, the matrix tests still failed until `OVERRIDING.md` listed them. - Each review round's new assertions went red before its fix: the ledger fallback, "Check before finishing", `free GPU workers`, "Make no tracker change yourself", and the boundary row's `tracker changes`. - **After:** all green on `d9934bd`. New tests: - `test_coordinator_manual_methods_are_v0_17_0_manual_coordination_guidance` - `test_coordinator_wave_audit_returns_a_structured_wave_plan_without_dispatching` (also checks section order) - `test_coordinator_tracker_hygiene_drafts_proposals_and_never_mutates_silently` - Extended `test_coordinator_customization_names_the_seams_and_the_owner_gates`, including the Coordination boundary row. ### Checks run On head `d9934bdb13306a3a010ebe2dcbf084fa0a55e4f0`, the final reviewed commit (it includes `main` at `3ae5675`, with #27): - `python3 -m unittest discover -s tests -v` → `Ran 57 tests ... OK` - `for p in packages/*; do python3 -m tools.packages check "$p"; done` → all pass. Identities: - `coordinator-tracker-hygiene` `f2eee04f…` - `coordinator-wave-audit` `c070098d…` ### Review loop Spec: #28. Each round reviewed the standards axis and the spec axis separately. 1. **Before #27 merged** (base `7d3b057`): four rounds, ending clean on `f32f238`. Fixes are in `275967e`, `5b161d3` and `f32f238`. 2. **After #27 merged:** #36 merged first, so this PR conflicted in `OVERRIDING.md`, `README.md` and the contract. `073c1cd` merges `main` and keeps both sides' rows, seams and YAML examples. It also aligns tracker hygiene with `coordinator-recovery`: the same "Working Ledger" name and the same resolution rule, plus a Doubtful group. 3. **Against base `3ae5675`:** three more rounds. - `c309981` skips already-resolved edges and corrects the fork note. - `d9934bd` documents hygiene's ledger write. The Working Ledger seam row now names both packages, and the audit's contention caveat matches dispatch again. - Final round on `d9934bd`: Standards 0 actionable, Spec 0 actionable. Nonblocking notes left as they are, with reasons: - **`/skill:<name>` can't be tested end to end.** RelayView does not admit `coordinator` yet. The evidence is structural (the manual frontmatter matches 25 existing manual packages), and #26 and #27 have the same limit. - **The audit copies dispatch's contention rules.** Packages are closed directories; OVERRIDING.md tells forkers to fork the audit too. - **The audit's "looks stalled" listing is report-only.** It simplifies recovery's triage and never nudges. - **Neither dispatch nor the audit reads the Working Ledger.** This needs a change across several packages and is better as a follow-up. - **Wording polish in OVERRIDING.md:** - "changes both packages" could read "must fork both"; - "A fork keeps schema 1" could name "a fork of either manual method"; - the existing guide mixes "admits" and "adopts". ## Documentation disposition updated: `OVERRIDING.md`, `README.md` and `docs/authoritative/instruction-package-contract.md` describe both manual packages, their override seams, the manual-set assignment, and the Operator-applied tracker boundary, and how tracker hygiene shares the Working Ledger resolution rule with `coordinator-recovery`. All of it is labelled as current source for the proposed `v0.17.0` release. ## Merge Danger **Door:** two-way. These are new, untagged packages and docs. RelayView pins nothing until `v0.17.0` is tagged and the `coordinator` role is adopted. **Blast Radius:** only this repository's package set and Operator docs. RelayView still refuses `coordinator` packages. **Rollback:** `git revert -m 1 <merge commit>`. No tag or external state exists. ## Reviewer prerequisites - None (Python 3 standard library only). ## Manual Test Plan The automated checks cover structure and required phrasing. One judgment check remains: 1. [ ] **Action:** read both new `SKILL.md` files as the Coordinator would after `/skill:<name>`: ```sh git fetch origin ISSUE-28 git show origin/ISSUE-28:packages/coordinator-wave-audit/SKILL.md git show origin/ISSUE-28:packages/coordinator-tracker-hygiene/SKILL.md ``` **Expected:** - Neither text dispatches, requests a lease, or changes the tracker. - Every tracker change is left to the Operator. - Neither builds durable state from chat memory. Stop and comment if either one grants itself authority the owner or the Operator holds. ## Post-Merge Cleanup ```sh python /home/anodyine/.local/share/codex-skills/gitea-issues/scripts/gitea.py issue remove-worktree --issue 28 --pull 35 ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anodyine added 1 commit 2026-11-25 20:39:13 -05:00
Add manual Coordinator wave-audit and tracker-hygiene packages
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
462c2c705c
coordinator-wave-audit (schema 1, manual) audits the entire Ready queue
on /skill: request and returns a four-section wave plan: Safe Parallel
Wave 1, Contention Pairs, Resource-Affinity Batches, and Blocked/Stale.
It dispatches nothing. coordinator-tracker-hygiene (schema 1, manual)
classifies implicit contention edges recorded in the Working Ledger and
drafts minimal prerequisite-edge or issue-comment proposals that change
the tracker only after the Operator approves each one. Both target the
proposed v0.17.0 release.

OVERRIDING.md lists both packages in the role and package matrices and
explains their seams and a manual-set assignment; the README and the
contract name them alongside the automatic Coordinator packages.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 3 commits 2026-11-25 20:45:01 -05:00
The wave audit now breaks conflicts the way wave-selection.md does (a
free or loaded resource before Ready order) and both manual methods end
with a check-before-finishing list. Tracker hygiene stops when the
Working Ledger is missing, unreadable, or empty rather than proposing
from memory, and posts a coordination note on the issue later in Ready
order. OVERRIDING.md tells forkers of the contention heuristics to fork
the audit too, adds the manual methods and owner-only tracker changes
to the Coordination boundary row and gate paragraph, and introduces the
fork named in the manual-set example.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tracker hygiene now only drafts: the Operator approves and applies each
prerequisite edge or comment, matching coordinator-recovery's rule that
prerequisites and issue comments stay with the Operator. It reads
existing comments through its assigned commands, targets a coordination
note at the issue that has not started, and marks stale edges resolved
in the Working Ledger. The wave audit's Wave 1 rule carries the dispatch
guide's aggressiveness and GPU sizing, a title-only guess holds the
later issue, and the self-check accounts for every section. Docs state
the Operator-applied tracker boundary; contract prose is tidied.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address third review: unambiguous wave admission, stale-edge owner
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
f32f238f61
The audit's Wave 1 rule now plainly excludes plausible contention and
caps only GPU-bound issues at the free GPU workers; Blocked/Stale covers
stale as well as missing projections. Tracker hygiene marks stale edges
resolved in the Working Ledger through the owner's command and defines
the comment target when both issues are running.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 3 commits 2026-11-25 20:55:22 -05:00
Keep both the recovery and the manual-method rows in the role, package,
and owner-boundary matrices; list recovery's seams and both fork examples
(recovery automatic set, manual on-request set) in the Coordinator
section; and name all five Coordinator packages as in source in the
README and the contract.

Align tracker hygiene with coordinator-recovery's ledger: use its single
"Working Ledger" name, record an edge resolved only when either issue
closes or the shared change lands, and list an edge whose evidence merely
looks doubtful without changing its ledger entry.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tracker hygiene skips edges the Working Ledger already records as
resolved and reads closure and landed changes rather than an undefined
"merged" issue state. OVERRIDING.md no longer says wave selection lives
only in coordinator-dispatch, since the wave audit carries a copy, and
uses "adopts the pair" throughout the Coordinator section. Tests pin the
single ledger name, the Doubtful group, and the resolved-edge skip.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address final review: document hygiene's ledger write, align audit
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
d9934bdb13
OVERRIDING.md says tracker hygiene records stale edges as resolved in
the Working Ledger and routes the "What goes in the Working Ledger" seam
to both recovery and hygiene, so a fork of the resolution rule changes
both. The wave audit regains dispatch's caveat that unrelated functions
in one large file usually do not contend, and hygiene orders proposals
by the waiting issue, running issues first. The guide test normalizes
whitespace and checks the exact tracker-change phrase.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine merged commit b02ffbf672 into main 2026-11-25 20:56:20 -05:00
anodyine deleted branch ISSUE-28 2026-11-25 20:56:20 -05:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anodyine/relayview-skills#35