From d9934bdb13306a3a010ebe2dcbf084fa0a55e4f0 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:54:34 -0500 Subject: [PATCH] Address final review: document hygiene's ledger write, align audit 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 --- OVERRIDING.md | 6 ++++-- packages/coordinator-tracker-hygiene/SKILL.md | 2 +- .../coordinator-tracker-hygiene/relayview-skill.json | 2 +- packages/coordinator-wave-audit/SKILL.md | 2 +- packages/coordinator-wave-audit/relayview-skill.json | 2 +- tests/test_overriding.py | 11 ++++++++--- tests/test_packages.py | 1 + 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 1da6f1a..7e92521 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -320,7 +320,7 @@ independently: | Nudge wording and when to nudge | The "Nudge a stalled task" section of `coordinator-recovery`'s `SKILL.md` | Include the failing check's last output in each nudge, or never nudge during a long build | | When to stop nudging and park | The bounds in "Nudge a stalled task" and the "Park and escalate" section | Park after the first stall in review, or add the task's recent commits to the diagnostic summary | | Reorientation after a context refresh | The "Reorient after a context refresh" section | Rebuild only the running wave first, or include recently closed issues for a day | -| What goes in the Working Ledger | The "Keep the Working Ledger" section | Also record each resource reload, or omit nudges that succeeded | +| What goes in the Working Ledger | The "Keep the Working Ledger" section of `coordinator-recovery`, and the Stale group of `coordinator-tracker-hygiene` for edges it resolves | Also record each resource reload, or omit nudges that succeeded | | Control Tower reporting tone | `coordinator-communication`'s `SKILL.md` | Lead with held issues, or report only changes since the last status | | On-request wave audit | `coordinator-wave-audit`'s `SKILL.md` | Audit one milestone by default, or add a section for issues that touch `migrations/` | | Tracker proposals | `coordinator-tracker-hygiene`'s `SKILL.md` | Draft only issue comments, never prerequisite edges, or use the team's comment template | @@ -369,7 +369,9 @@ their text reaches a Coordinator session only when the Operator sends `/skill:` and the name is in that session's captured manual assignment. Both return proposals. The wave audit dispatches nothing, and tracker hygiene drafts prerequisite edges and issue comments for the Operator to approve and -apply one at a time; it never changes the tracker itself. A fork keeps schema 1 +apply one at a time; it never changes the tracker itself. It records stale +edges as resolved in the Working Ledger, as `coordinator-recovery` does, so a +fork that changes when an edge counts as resolved changes both packages. A fork keeps schema 1 and `disable-model-invocation: true`. Once RelayView adopts the pair, the manual methods would sit in their own set with `invocationMode: manual`, apart from the automatic set. This set pairs the first-party audit with a team fork of diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md index 7384812..f2f6c54 100644 --- a/packages/coordinator-tracker-hygiene/SKILL.md +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -40,7 +40,7 @@ Keep each proposal as small as the evidence allows: ## Present the proposals -Present the proposals grouped as above, in the owner's Ready order, with "None" under an empty group. Give each proposal as the exact change for the Operator to make, so the Operator can approve and apply each one separately. Approval of one proposal is not approval of the others, and an approved proposal is still the Operator's to apply. +Present the proposals grouped as above, ordered by the issue that waits or receives the comment: running issues first, then Ready issues in the owner's Ready order, with "None" under an empty group. Give each proposal as the exact change for the Operator to make, so the Operator can approve and apply each one separately. Approval of one proposal is not approval of the others, and an approved proposal is still the Operator's to apply. End with a one-line summary: edges reviewed, proposals drafted, and stale or doubtful edges found. diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json index 0f505a2..6a0649c 100644 --- a/packages/coordinator-tracker-hygiene/relayview-skill.json +++ b/packages/coordinator-tracker-hygiene/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "9730035cd9bac86624705eb7e86216093ec47afd538f79e0a03ad27d5c2b2195" + "sha256": "9ad76d21d881404301c0220bb43f6ac356cce52db5a8456522bf61a59f84ea39" } ] } diff --git a/packages/coordinator-wave-audit/SKILL.md b/packages/coordinator-wave-audit/SKILL.md index 9b934ce..3bc8c1e 100644 --- a/packages/coordinator-wave-audit/SKILL.md +++ b/packages/coordinator-wave-audit/SKILL.md @@ -29,7 +29,7 @@ Work only through these projections and the owner commands assigned to you: read For each Ready issue, in the owner's Ready order: 1. Confirm the owner still lists it as Ready; an open prerequisite keeps it out regardless of your judgment, and it belongs under Blocked/Stale. -2. Compare its likely footprint with every running task and every other Ready issue. Look for overlapping files or modules, a competing schema migration or API version bump, an architectural decision still in flight, and a shared external service or test environment. +2. Compare its likely footprint with every running task and every other Ready issue. Look for overlapping files or modules (two edits to one module's public surface contend; two edits to unrelated functions in one large file usually do not), a competing schema migration or API version bump, an architectural decision still in flight, and a shared external service or test environment. 3. Compare its declared resources with the Lease Registry, and group it with issues that need the same `ml-server` model or GPU setup. 4. Note anything that makes it look stale: a Ready issue whose footprint a merged or running change already covers, an issue that names a closed or superseded issue, or a running task the Portfolio Read Model shows with no progress and no waiting reason. diff --git a/packages/coordinator-wave-audit/relayview-skill.json b/packages/coordinator-wave-audit/relayview-skill.json index dbcb81b..af9e887 100644 --- a/packages/coordinator-wave-audit/relayview-skill.json +++ b/packages/coordinator-wave-audit/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "cc3c55ada0277749e3f87b8aba89a348b40cdf8c25c9b97d022b0d3281316648" + "sha256": "2cf535d0fc7af86913c8ed6541a1bc5eba7ef6ac639ae01bf254713c9ccc20a6" } ] } diff --git a/tests/test_overriding.py b/tests/test_overriding.py index b89c9de..163a05a 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -137,14 +137,19 @@ class OverrideGuideTests(unittest.TestCase): "`portfolio_conflict`", "`unique_resource_needed`", "leases", "`coordinator-wave-audit`", "`coordinator-tracker-hygiene`", "`/skill:`", "invocationmode: manual", - "fork `coordinator-wave-audit` too", "tracker"): - self.assertIn(phrase.lower(), text) - self.assertNotIn("once relayview admits the pair", text) + "fork `coordinator-wave-audit` too", + "applies any tracker change the coordinator proposes", + "records stale edges as resolved"): + self.assertIn(phrase.lower(), " ".join(text.split())) + self.assertNotIn("once relayview admits the pair", " ".join(text.split())) boundary = [row for row in table_rows(section(self.text, "What a skill controls and what the owner enforces")) if row[0] == "Coordination"] self.assertEqual(len(boundary), 1) self.assertIn("wave audit", boundary[0][1]) self.assertIn("tracker changes", boundary[0][2]) + ledger_seam = [row for row in table_rows(text) if row[0] == "what goes in the working ledger"] + self.assertEqual(len(ledger_seam), 1) + self.assertIn("`coordinator-tracker-hygiene`", ledger_seam[0][1]) def test_coordinator_recovery_is_overridable_without_dispatch(self): text = section(self.text, "Customize the Technical Coordinator") diff --git a/tests/test_packages.py b/tests/test_packages.py index e4afa87..7ee0ab6 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -153,6 +153,7 @@ class PackageTests(unittest.TestCase): "Dispatch nothing", "an open prerequisite keeps it out", "leave repository code and shell commands to the roles that own them", "Check before finishing", "free GPU workers", "GPU-bound", + "unrelated functions in one large file", "smaller wave whose members are clearly independent"): self.assertIn(phrase, text) # Ties follow the dispatch guide: a free or loaded resource can beat Ready order.