From 462c2c705c855a84508212f637c3c3b2ba2df588 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:38:49 -0500 Subject: [PATCH 1/9] Add manual Coordinator wave-audit and tracker-hygiene packages 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 --- OVERRIDING.md | 31 +++++++++- README.md | 10 +++- .../instruction-package-contract.md | 10 ++-- packages/coordinator-tracker-hygiene/SKILL.md | 42 ++++++++++++++ .../relayview-skill.json | 15 +++++ packages/coordinator-wave-audit/SKILL.md | 58 +++++++++++++++++++ .../relayview-skill.json | 15 +++++ tests/test_overriding.py | 4 +- tests/test_packages.py | 38 ++++++++++++ 9 files changed, 213 insertions(+), 10 deletions(-) create mode 100644 packages/coordinator-tracker-hygiene/SKILL.md create mode 100644 packages/coordinator-tracker-hygiene/relayview-skill.json create mode 100644 packages/coordinator-wave-audit/SKILL.md create mode 100644 packages/coordinator-wave-audit/relayview-skill.json diff --git a/OVERRIDING.md b/OVERRIDING.md index 542dc20..811b0df 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -24,7 +24,7 @@ default and shows the saved and effective choice for each role. | Role | `role` / `step` | Schemas | `communication_context` | RelayView admission | Maintained automatic default (launch order) | Other first-party packages | | --- | --- | --- | --- | --- | --- | --- | | Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Default from release v0.15.0, not yet pinned: `specification-designer-default`. Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; the maintained configuration assigns none | -| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, in source for the proposed v0.17.0 release: `coordinator-dispatch`, `coordinator-communication` | +| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, in source for the proposed v0.17.0 release: `coordinator-dispatch`, `coordinator-communication`. Manual, in source for the same release: `coordinator-wave-audit`, `coordinator-tracker-hygiene` | | Planner | `planner` / `planning` | 1, 2, 3 | Yes | Admitted | `planner-investigation`, `planner-scope`, `planner-communication`, `research-auto` | Automatic: `codebase-design`. Manual: `grill-me`, `grilling`, `improve-codebase-architecture`, `research`, `to-questionnaire` | | Implementer | `implementer` / `implementation` | 1, 3 | Yes | Admitted | `implementer-investigation`, `implementer-handoff`, `implementer-communication` | Automatic: `tdd-auto`, `diagnosing-bugs`, `domain-modeling`. Manual: `tdd`, `pr`, `prototype`, `migrate-to-shoehorn`, `scaffold-exercises`, `shared-abstraction-refactor`, `split-large-files`, `writing-for-agents` | | Reviewer | `reviewer` / `review` | 1, 3 | Yes | Admitted | `reviewer-investigation`, `code-review-auto`, `reviewer-communication` | Manual: `code-review`, `c4-diff` | @@ -81,6 +81,8 @@ and no RelayView bundle contains it. | `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | | `coordinator-dispatch` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `coordinator-communication` | `coordinator` / `coordination` | automatic | 3 | `communication_context` | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | +| `coordinator-wave-audit` | `coordinator` / `coordination` | manual | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | +| `coordinator-tracker-hygiene` | `coordinator` / `coordination` | manual | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st | | `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.13.0 | `v0.13.0` | Planner automatic, 2nd | | `planner-communication` | `planner` / `planning` | automatic | 3 | `communication_context` | 0.14.0 | `v0.14.0` | Planner automatic, 3rd | @@ -305,8 +307,8 @@ until an Operator saves a Designer choice in Settings. RelayView does not yet admit `coordinator` packages, so this describes how a Coordinator fork is prepared now and assigned once RelayView adopts the pair. -The two maintained packages split the Coordinator's judgment into seams that -fork independently: +The maintained packages split the Coordinator's judgment into seams that fork +independently: | To change | Edit | For example | | --- | --- | --- | @@ -315,6 +317,8 @@ fork independently: | Resource batching | The "Resource affinity" list in `wave-selection.md` | Follow the owner's Ready order strictly, accepting `ml-server` model reloads | | When to escalate | The "Escalate" section of `coordinator-dispatch`'s `SKILL.md` | Raise `portfolio_conflict` for any overlap in a protected directory instead of sequencing it | | 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 | Fork each package you change under its own name with the [fork and override recipe](#fork-and-override-recipe), for example @@ -323,6 +327,27 @@ keeps schema 3 and `"treatment": "communication_context"`. An automatic set replaces the whole assignment, so the Coordinator's set lists both the fork and the package you did not fork. +`coordinator-wave-audit` and `coordinator-tracker-hygiene` are manual methods: +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 that change the tracker only once +the Operator approves each one. 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: + +```yaml +trustedSkills: + sets: + - id: coordinator-on-request + name: Coordinator on request + role: coordinator + step: coordination + invocationMode: manual + members: [coordinator-wave-audit, team-coordinator-tracker-hygiene] +``` + A fork changes the Coordinator's judgment, not the owner's gates. Under RelayView's proposed operating model, the owner keeps every gate regardless of the package: an issue with an open prerequisite never becomes Ready, the owner diff --git a/README.md b/README.md index a379977..a2a05f2 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,14 @@ release and are not yet tagged. `coordinator-dispatch` selects compatible parallel waves, batches work around scarce resources such as `ml-server` and GPU workers, and raises typed `portfolio_conflict` and `unique_resource_needed` escalations. `coordinator-communication` (schema 3) shapes Control Tower status -reports. RelayView does not yet admit the `coordinator` role; when it does, its -owner keeps prerequisites, dispatch execution, resource leases and review policy. +reports. Two manual methods for the same release run only when the Operator +invokes them with `/skill:`: `coordinator-wave-audit` returns a +structured wave plan for the whole Ready queue without dispatching, and +`coordinator-tracker-hygiene` drafts prerequisite-edge and issue-comment +proposals from recorded contention for the Operator to approve. RelayView does +not yet admit the `coordinator` role; when it does, its owner keeps +prerequisites, dispatch execution, resource leases, tracker changes and review +policy. [OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which seam to fork for each customization. diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index 8f7b659..4b2f82a 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -122,14 +122,16 @@ RelayView's owner admits only `planner`, `implementer`, `reviewer`, and `designer` packages. No released package declares `tester` or `coordinator` yet. `tester-inspection` (schema 1) and `tester-communication` (schema 3) declare `tester`/`testing` in this repository with source reference `v0.15.0`, -and `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3) -declare `coordinator`/`coordination` with source reference `v0.17.0`; neither -tag is published yet. The planned releases below are proposed, not published: +and `coordinator-dispatch` (schema 1), `coordinator-communication` (schema 3), +and the manual `coordinator-wave-audit` and `coordinator-tracker-hygiene` +(schema 1) declare `coordinator`/`coordination` with source reference +`v0.17.0`; neither tag is published yet. The planned releases below are +proposed, not published: | Proposed release | New pair | Planned packages | | --- | --- | --- | | `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | -| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator automatic and manual methods (schema 1) | +| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), and the manual `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1), in source; further Coordinator automatic methods (schema 1) | Before RelayView pins a release containing either pair, it must: diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md new file mode 100644 index 0000000..b324c57 --- /dev/null +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -0,0 +1,42 @@ +--- +name: coordinator-tracker-hygiene +description: On request, review implicit contention recorded in the Working Ledger and draft minimal prerequisite-edge or issue-comment proposals for Operator approval. +disable-model-invocation: true +metadata: + relayview-display-name: Coordinator tracker hygiene + relayview-version: 0.17.0 +--- + +# Coordinator tracker hygiene + +The Operator invoked this review with `/skill:coordinator-tracker-hygiene` to turn contention the Coordinator has only recorded for itself into tracker changes people can see. Treat any text the Operator sent with the command as the review's scope, such as a set of issues or an epic; without it, review every recorded edge. + +Never change the tracker silently. This method drafts proposals; it adds no prerequisite, posts no comment, and changes no label or status on its own. + +## Read the recorded edges + +Read the implicit contention edges recorded in the Coordinator Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or merged; its prerequisites as the tracker records them; and the evidence the ledger gives for the edge. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. + +## Classify each edge + +Put each edge in exactly one group: + +- **Ordering need:** one issue cannot be done correctly until the other lands, such as a schema migration another issue builds on, or an interface one issue changes and the other consumes. Draft a prerequisite edge. +- **Coordination note:** the issues can run in either order but not together, such as two edits to one module's public surface or a shared test environment. Draft an issue comment. +- **Already recorded:** the tracker already carries an equivalent prerequisite or comment. Propose nothing. +- **Stale:** either issue is closed or merged, or the evidence no longer holds. Propose nothing for the tracker, and list it so the Operator can retire it from the ledger. + +When the evidence is only a guess from issue titles, say so and prefer a coordination note to a prerequisite edge. + +## Draft minimal proposals + +Keep each proposal as small as the evidence allows: + +- **Prerequisite edge:** name the issue that waits, the issue it requires, and one sentence of evidence. Propose only the direct edge, never one the tracker already implies through another prerequisite. Before proposing it, check that it would not form a cycle with the prerequisites the tracker already records, and flag an edge that would hold back an issue that is already running. +- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that should wait. + +## Present and apply + +Present the proposals grouped as above, in the owner's Ready order, with "None" under an empty group. Each proposal needs the Operator's explicit approval. Apply an approved proposal only through an owner command assigned to you and confirm from a fresh projection that it took effect; when no such command is assigned, give the Operator the exact change to make. Approval of one proposal is not approval of the others. + +End with a one-line summary: edges reviewed, proposals drafted, and stale edges found. diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json new file mode 100644 index 0000000..a76b6c9 --- /dev/null +++ b/packages/coordinator-tracker-hygiene/relayview-skill.json @@ -0,0 +1,15 @@ +{ + "schemaVersion": 1, + "source": { + "kind": "first-party", + "reference": "v0.17.0" + }, + "role": "coordinator", + "step": "coordination", + "files": [ + { + "path": "SKILL.md", + "sha256": "79f5a267a5fbe7fac2a9f52031cbd29d5aa575a19f5d97751e746a3236d3e6b1" + } + ] +} diff --git a/packages/coordinator-wave-audit/SKILL.md b/packages/coordinator-wave-audit/SKILL.md new file mode 100644 index 0000000..3e902d4 --- /dev/null +++ b/packages/coordinator-wave-audit/SKILL.md @@ -0,0 +1,58 @@ +--- +name: coordinator-wave-audit +description: On request, audit the entire Ready queue against running work and return a structured parallel wave plan for the Operator. +disable-model-invocation: true +metadata: + relayview-display-name: Coordinator wave audit + relayview-version: 0.17.0 +--- + +# Coordinator wave audit + +The Operator invoked this audit with `/skill:coordinator-wave-audit`, usually while Autopilot is `Off` or during backlog grooming. Audit the entire Ready queue, not only the next wave, and return a wave plan the Operator can approve, edit, or set aside. Treat any text the Operator sent with the command as the audit's scope, such as a label, milestone, or set of issues; without it, audit every Ready issue. + +Dispatch nothing from this audit, change no issue, and request no lease. The plan is a proposal: the Operator approves a wave separately, and every member is checked again against fresh projections before it is dispatched. + +## Read the portfolio + +Read each of the owner's projections fresh for this audit, and note its as-of time: + +- the Ready issues in the owner's Ready order, with their bodies, acceptance criteria, and declared resource requirements; +- the Portfolio Read Model: active tasks, their phases and how long they have been in them, waiting reasons, and pending Review Packets; +- active branch and pull-request footprints: the files, modules, schemas, and interfaces each running task is changing; +- the Shared Resource and Lease Registry: leases held and queued, the model loaded on `ml-server`, and free GPU workers. + +Work only through these projections and the owner commands assigned to you: read a footprint from the projection, not a worktree, and leave repository code and shell commands to the roles that own them. When a projection is missing or stale, name it and keep the issues it affects out of Safe Parallel Wave 1. + +## Audit every Ready issue + +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. +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. + +For every contention or anomaly, name the evidence and where you read it. When the evidence is only a guess from an issue title, say so. + +## Return the wave plan + +Return these four sections in this order. Write "None" under an empty section rather than omitting it, so the Operator can tell the audit covered it. + +### Safe Parallel Wave 1 + +The largest set of Ready issues with no contention found among themselves or with running work, and whose resources are free or already loaded. List each issue with one line on why it is independent. Where two candidates conflict, keep the one earlier in the owner's Ready order and list the other under Contention Pairs. + +### Contention Pairs + +Each pair of issues, or an issue and a running task, that should not run together. Give the shared file, module, schema, interface, decision, or service; where you read it; and the order you suggest. Mark a pair whose contention ordering cannot resolve, such as two branches deciding the same architectural question differently, as needing the Operator's judgment. + +### Resource-Affinity Batches + +Groups of Ready issues that need the same `ml-server` model or GPU setup, in the order that minimizes reloads. Give each batch's resource, its members, and the queue reason from the Lease Registry for any batch that must wait. + +### Blocked/Stale + +Ready issues held by an open prerequisite or a missing projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite. + +End with a one-line summary: Ready issues audited, the size of Safe Parallel Wave 1, and how many need the Operator's decision. diff --git a/packages/coordinator-wave-audit/relayview-skill.json b/packages/coordinator-wave-audit/relayview-skill.json new file mode 100644 index 0000000..b0d53cc --- /dev/null +++ b/packages/coordinator-wave-audit/relayview-skill.json @@ -0,0 +1,15 @@ +{ + "schemaVersion": 1, + "source": { + "kind": "first-party", + "reference": "v0.17.0" + }, + "role": "coordinator", + "step": "coordination", + "files": [ + { + "path": "SKILL.md", + "sha256": "24d7c3587be9c32da55b93ec11da0bafdabbecf8c04b7823c36f1b9e75b199a5" + } + ] +} diff --git a/tests/test_overriding.py b/tests/test_overriding.py index f90de18..4a5eb03 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -134,7 +134,9 @@ class OverrideGuideTests(unittest.TestCase): text = section(self.text, "Customize the Technical Coordinator").lower() for phrase in ("wave aggressiveness", "contention heuristics", "reporting tone", "`coordinator-dispatch`", "`wave-selection.md`", "`coordinator-communication`", - "`portfolio_conflict`", "`unique_resource_needed`", "leases"): + "`portfolio_conflict`", "`unique_resource_needed`", "leases", + "`coordinator-wave-audit`", "`coordinator-tracker-hygiene`", + "`/skill:`", "invocationmode: manual"): self.assertIn(phrase.lower(), text) def test_layer_four_template_is_a_valid_user_package(self): diff --git a/tests/test_packages.py b/tests/test_packages.py index 8766406..c143b19 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -75,6 +75,44 @@ class PackageTests(unittest.TestCase): "Review Packet inbox", "Autopilot"): self.assertIn(phrase, text) + def test_coordinator_manual_methods_are_v0_17_0_manual_coordination_guidance(self): + for name in ("coordinator-wave-audit", "coordinator-tracker-hygiene"): + with self.subTest(package=name): + package = ROOT / "packages" / name + check_package(package) + manifest = json.loads((package / "relayview-skill.json").read_text()) + self.assertEqual(manifest["schemaVersion"], 1) + self.assertEqual((manifest["role"], manifest["step"]), ("coordinator", "coordination")) + self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.17.0"}) + self.assertEqual([item["path"] for item in manifest["files"]], ["SKILL.md"]) + frontmatter = (package / "SKILL.md").read_text().split("---", 2)[1] + self.assertRegex(frontmatter, r"(?m)^disable-model-invocation: true$") + self.assertIn("relayview-version: 0.17.0", frontmatter) + size = sum((package / path).stat().st_size for path in ("SKILL.md", "relayview-skill.json")) + self.assertLess(size, 16 * 1024, "well under the 128 KiB package cap") + + def test_coordinator_wave_audit_returns_a_structured_wave_plan_without_dispatching(self): + text = (ROOT / "packages/coordinator-wave-audit/SKILL.md").read_text() + for phrase in ("/skill:coordinator-wave-audit", "entire Ready queue", + "branch and pull-request footprints", "Lease Registry", + "Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches", + "Blocked/Stale", "schema migration", "ml-server", + "Dispatch nothing", "an open prerequisite keeps it out", + "leave repository code and shell commands to the roles that own them"): + self.assertIn(phrase, text) + # The four sections appear in the order the Operator reads them. + order = [text.index(f"### {heading}") for heading in ( + "Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches", "Blocked/Stale")] + self.assertEqual(order, sorted(order)) + + def test_coordinator_tracker_hygiene_drafts_proposals_and_never_mutates_silently(self): + text = (ROOT / "packages/coordinator-tracker-hygiene/SKILL.md").read_text() + for phrase in ("/skill:coordinator-tracker-hygiene", "Working Ledger", + "implicit contention edges", "prerequisite edge", "issue comment", + "Operator approval", "Never change the tracker silently", + "cycle", "Already recorded", "Stale"): + self.assertIn(phrase, text) + def test_tester_release_sidecars_and_building_inspector_method(self): expected = { "tester-inspection": (1, None, ( From 3cef92a36d1d8b4459bcbb34837ccef01a963533 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:39:21 -0500 Subject: [PATCH 2/9] Add Technical Coordinator recovery package (v0.17.0) Add coordinator-recovery, an automatic coordinator/coordination package (schema 1) that triages a stalled task's blockers before any nudge, sends one bounded "please keep going" nudge within the owner's budget and cooldown, parks repeated stalls for the Operator with a diagnostic summary, rebuilds the Coordinator's posture from the Portfolio Read Model and Working Ledger after a context refresh, and records implicit contention edges in the ledger when discovered. The override guide, contract, and README list the package, show the recovery seams, and give a named set that swaps recovery without touching coordinator-dispatch. Refs #27 Co-Authored-By: Claude Opus 5.5 --- OVERRIDING.md | 41 ++++++++-- README.md | 10 ++- .../instruction-package-contract.md | 8 +- packages/coordinator-recovery/SKILL.md | 79 +++++++++++++++++++ .../coordinator-recovery/relayview-skill.json | 15 ++++ tests/test_overriding.py | 14 ++++ tests/test_packages.py | 40 ++++++++++ 7 files changed, 195 insertions(+), 12 deletions(-) create mode 100644 packages/coordinator-recovery/SKILL.md create mode 100644 packages/coordinator-recovery/relayview-skill.json diff --git a/OVERRIDING.md b/OVERRIDING.md index 542dc20..9fbcba2 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -24,7 +24,7 @@ default and shows the saved and effective choice for each role. | Role | `role` / `step` | Schemas | `communication_context` | RelayView admission | Maintained automatic default (launch order) | Other first-party packages | | --- | --- | --- | --- | --- | --- | --- | | Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Default from release v0.15.0, not yet pinned: `specification-designer-default`. Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; the maintained configuration assigns none | -| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, in source for the proposed v0.17.0 release: `coordinator-dispatch`, `coordinator-communication` | +| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, in source for the proposed v0.17.0 release: `coordinator-dispatch`, `coordinator-recovery`, `coordinator-communication` | | Planner | `planner` / `planning` | 1, 2, 3 | Yes | Admitted | `planner-investigation`, `planner-scope`, `planner-communication`, `research-auto` | Automatic: `codebase-design`. Manual: `grill-me`, `grilling`, `improve-codebase-architecture`, `research`, `to-questionnaire` | | Implementer | `implementer` / `implementation` | 1, 3 | Yes | Admitted | `implementer-investigation`, `implementer-handoff`, `implementer-communication` | Automatic: `tdd-auto`, `diagnosing-bugs`, `domain-modeling`. Manual: `tdd`, `pr`, `prototype`, `migrate-to-shoehorn`, `scaffold-exercises`, `shared-abstraction-refactor`, `split-large-files`, `writing-for-agents` | | Reviewer | `reviewer` / `review` | 1, 3 | Yes | Admitted | `reviewer-investigation`, `code-review-auto`, `reviewer-communication` | Manual: `code-review`, `c4-diff` | @@ -80,6 +80,7 @@ and no RelayView bundle contains it. | `designer-triage` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | | `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0`, not yet tagged | No | | `coordinator-dispatch` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | +| `coordinator-recovery` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `coordinator-communication` | `coordinator` / `coordination` | automatic | 3 | `communication_context` | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted | | `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st | | `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.13.0 | `v0.13.0` | Planner automatic, 2nd | @@ -165,7 +166,7 @@ admission. | Communication | Tone, detail, examples, acknowledgements | Publication identity and order, mandatory status, complete durable artifacts; communication packages load only when the frozen `communication_context` treatment is on | Current | | Manual methods | When a method is worth invoking | `/skill:` reaches a session only if that name is in its captured assignment | Current | | Acceptance | Nothing | Operator acceptance requires a person | Current | -| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns | Proposed | +| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, when and how to nudge a stalled task, when to park it, reorientation after a context refresh, what goes in the Working Ledger, Control Tower reporting tone | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns, task state and the Working Ledger's persistence | Proposed | | Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed | | Review tiers | How to frame a risk or escalation summary, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | @@ -305,7 +306,7 @@ until an Operator saves a Designer choice in Settings. RelayView does not yet admit `coordinator` packages, so this describes how a Coordinator fork is prepared now and assigned once RelayView adopts the pair. -The two maintained packages split the Coordinator's judgment into seams that +The three maintained packages split the Coordinator's judgment into seams that fork independently: | To change | Edit | For example | @@ -314,14 +315,44 @@ fork independently: | Contention heuristics | The "Implicit contention" list in `wave-selection.md` | Always serialize tasks that touch `migrations/`, or treat a shared staging environment as contended | | Resource batching | The "Resource affinity" list in `wave-selection.md` | Follow the owner's Ready order strictly, accepting `ml-server` model reloads | | When to escalate | The "Escalate" section of `coordinator-dispatch`'s `SKILL.md` | Raise `portfolio_conflict` for any overlap in a protected directory instead of sequencing it | +| 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 | | Control Tower reporting tone | `coordinator-communication`'s `SKILL.md` | Lead with held issues, or report only changes since the last status | Fork each package you change under its own name with the [fork and override recipe](#fork-and-override-recipe), for example `team-coordinator-dispatch` with schema 1. A `coordinator-communication` fork keeps schema 3 and `"treatment": "communication_context"`. An automatic set -replaces the whole assignment, so the Coordinator's set lists both the fork and -the package you did not fork. +replaces the whole assignment, so the Coordinator's set lists the fork and +every package you did not fork. + +Recovery and nudge behavior lives only in `coordinator-recovery`, and wave +selection only in `coordinator-dispatch`, so either forks without the other. +For example, to replace recovery while keeping the maintained dispatch and +communication packages, fork `coordinator-recovery` as +`team-coordinator-recovery` with schema 1 and put it in a named set beside +them: + +```yaml +trustedSkills: + sets: + - id: team-coordination + name: Team coordination + role: coordinator + step: coordination + invocationMode: automatic + members: [coordinator-dispatch, team-coordinator-recovery, coordinator-communication] +``` + +Once RelayView admits the pair, select the set for the Technical Coordinator +in Settings → Skills and save, as in step 8 of the recipe. Under the proposed +model, a recovery fork changes when and how the Coordinator nudges, parks, +reorients, and records, but the owner keeps the nudge budgets and cooldowns, +task state, and the Working Ledger itself: prose cannot raise a budget or skip +a cooldown, and the ledger survives a context refresh whatever a fork records +in it. A fork changes the Coordinator's judgment, not the owner's gates. Under RelayView's proposed operating model, the owner keeps every gate regardless of diff --git a/README.md b/README.md index a379977..ae91960 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,13 @@ The automatic Technical Coordinator packages target the proposed `v0.17.0` release and are not yet tagged. `coordinator-dispatch` selects compatible parallel waves, batches work around scarce resources such as `ml-server` and GPU workers, and raises typed `portfolio_conflict` and `unique_resource_needed` -escalations. `coordinator-communication` (schema 3) shapes Control Tower status -reports. RelayView does not yet admit the `coordinator` role; when it does, its -owner keeps prerequisites, dispatch execution, resource leases and review policy. +escalations. `coordinator-recovery` triages a stalled task's blockers before a +bounded nudge, parks repeated stalls for the Operator, rebuilds the +Coordinator's posture from the owner's Portfolio Read Model and Working Ledger +after a context refresh, and records implicit contention in that ledger. +`coordinator-communication` (schema 3) shapes Control Tower status reports. RelayView does not yet admit the `coordinator` role; when it does, its +owner keeps prerequisites, dispatch execution, resource leases, nudge budgets +and cooldowns, the Working Ledger, and review policy. [OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which seam to fork for each customization. diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index 8f7b659..041ab89 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -122,14 +122,14 @@ RelayView's owner admits only `planner`, `implementer`, `reviewer`, and `designer` packages. No released package declares `tester` or `coordinator` yet. `tester-inspection` (schema 1) and `tester-communication` (schema 3) declare `tester`/`testing` in this repository with source reference `v0.15.0`, -and `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3) -declare `coordinator`/`coordination` with source reference `v0.17.0`; neither -tag is published yet. The planned releases below are proposed, not published: +and `coordinator-dispatch` (schema 1), `coordinator-recovery` (schema 1), and +`coordinator-communication` (schema 3) declare `coordinator`/`coordination` +with source reference `v0.17.0`; neither tag is published yet. The planned releases below are proposed, not published: | Proposed release | New pair | Planned packages | | --- | --- | --- | | `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | -| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator automatic and manual methods (schema 1) | +| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` and `coordinator-recovery` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator manual methods (schema 1) | Before RelayView pins a release containing either pair, it must: diff --git a/packages/coordinator-recovery/SKILL.md b/packages/coordinator-recovery/SKILL.md new file mode 100644 index 0000000..0573978 --- /dev/null +++ b/packages/coordinator-recovery/SKILL.md @@ -0,0 +1,79 @@ +--- +name: coordinator-recovery +description: Triage stalled tasks before a bounded nudge, park repeated stalls for the Operator, reorient from owner state after a context refresh, and keep the Working Ledger current for the Technical Coordinator. +metadata: + relayview-display-name: Coordinator recovery + relayview-version: 0.17.0 +--- + +# Coordinator recovery + +You keep long-running work moving without pushing tasks that are legitimately waiting, and you keep your working posture recoverable from the owner's state. RelayView's owner records task state, grants and queues leases, enforces nudge budgets and cooldowns, and keeps the Coordinator Working Ledger; you act through the owner commands assigned to you. + +Your conversation is not a record of the portfolio. Anything durable you learn goes into the Working Ledger when you learn it, and anything you act on comes from the owner's current state. + +## Triage before nudging + +When the Portfolio Read Model shows a task as stalled, find out why before you act. Read, fresh for that decision: + +- the task's phase and waiting reason in the Portfolio Read Model; +- the Shared Resource and Lease Registry: whether the task waits for a held or queued lease, who holds it, and the task's position; +- the task's nudge count, remaining nudge budget, and cooldown, as the owner reports them; +- the Working Ledger's entries for the task, such as a contention edge that holds it behind another issue. + +A task waiting for Operator input, an external gate such as a required check or review, or a held or queued lease is blocked, not stalled. Never nudge a task that is waiting on a real blocker. Name the blocker in your status, and when the owner grants the lease or clears the wait, resume it through the owner's command if the owner has not already resumed it. Resuming continues work already dispatched; it is not a new dispatch. + +When a projection you need is missing or stale, say which one and do not nudge; a task you cannot triage stays as it is. + +## Nudge a stalled task + +Nudge only a task that is stalled with no blocker you can find. Send the task's Planner one brief, constructive message: "please keep going", then the exact current stage from the Portfolio Read Model, the last progress the owner recorded, and the next step that stage calls for. Add no scope, change no instructions, and never suggest skipping a check or gate. + +Nudges are bounded: + +- Send at most one nudge per stall, and only within the owner's nudge budget and outside its cooldown. When the owner refuses a nudge, treat the budget as spent for this stall and do not retry or word around it. +- Record each nudge in the Working Ledger with the stage it targeted. +- When the task stalls again at the same stage after a nudge, or its nudge budget is spent, stop nudging. + +## Park and escalate + +When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator in the Control Tower with a diagnostic summary: + +- the task, its stage, and how long it has been stalled; +- the nudges sent and what followed each; +- the blockers you ruled out, with the evidence you read; +- your best explanation of the stall, labelled as a hypothesis; +- the decision you need from the Operator. + +Record the parked state and the summary in the Working Ledger. Parking asks for the Operator's attention; it does not change the task's review tier, and nudging stays stopped for that task until the Operator decides. + +While the Operator is conversing with you, answer first; nudge, resume, or park only after you have answered, under the Autopilot setting the owner then reports. + +## Reorient after a context refresh + +At the start of a fresh session, and after any context refresh or compaction, reorient before you nudge, resume, dispatch, or report. Read the Portfolio Read Model, the Lease Registry, and the Working Ledger, and rebuild your posture from them: + +- active waves and their members, with each task's phase; +- held leases and the queue behind each; +- recorded contention edges between open issues; +- recent nudge counts and parked tasks; +- pending Review Packets. + +Leave out ledger entries that concern only closed issues; they no longer constrain any decision. Treat any summary or message from before the refresh as a hint to check, never as state: where it disagrees with the projections or the ledger, the owner's state wins. When a projection or the ledger is missing, say so, and treat the work it covers as unknown rather than reconstructing it. + +Then tell the Operator the posture you rebuilt, with its as-of time and any gaps. + +## Keep the Working Ledger + +Write to the Working Ledger through the owner's command, at the moment you discover something durable, not at the end of the session. Record: + +- each implicit contention edge when you discover it, in one line: the two issues, the shared file, module, migration, interface, decision, service, or resource, the evidence and where you read it, and whether you held or sequenced the work; +- each nudge and parked task, as above. + +Keep entries concise and current. Update an existing entry instead of adding a duplicate, and mark an edge resolved when either issue closes or the shared change lands. The Working Ledger records your judgment; writing it never changes the issue tracker, so leave prerequisites and issue comments to the Operator. + +## Check before finishing + +- Did every task you nudged show a stall with no blocker in the owner's state? +- Is every nudge within the owner's budget and cooldown, and every parked task in front of the Operator with a diagnostic summary? +- Is everything durable you learned this turn in the Working Ledger? diff --git a/packages/coordinator-recovery/relayview-skill.json b/packages/coordinator-recovery/relayview-skill.json new file mode 100644 index 0000000..78be0a5 --- /dev/null +++ b/packages/coordinator-recovery/relayview-skill.json @@ -0,0 +1,15 @@ +{ + "schemaVersion": 1, + "source": { + "kind": "first-party", + "reference": "v0.17.0" + }, + "role": "coordinator", + "step": "coordination", + "files": [ + { + "path": "SKILL.md", + "sha256": "865f31cb3a6987c8cae3e2f2722771f0737014cd93e871487ff12372b5bb0f9b" + } + ] +} diff --git a/tests/test_overriding.py b/tests/test_overriding.py index f90de18..d2f3d08 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -137,6 +137,20 @@ class OverrideGuideTests(unittest.TestCase): "`portfolio_conflict`", "`unique_resource_needed`", "leases"): self.assertIn(phrase.lower(), text) + def test_coordinator_recovery_is_overridable_without_dispatch(self): + text = section(self.text, "Customize the Technical Coordinator") + for phrase in ("`coordinator-recovery`", "nudge", "reorientation", "Working Ledger", + "named set", "Settings → Skills", "nudge budgets and cooldowns"): + self.assertIn(phrase.lower(), text.lower()) + members = re.search(r"members: \[(.*?)\]", text).group(1).split(", ") + self.assertIn("coordinator-dispatch", members) + self.assertIn("coordinator-communication", members) + self.assertNotIn("coordinator-recovery", members) + fork = [name for name in members if name.endswith("-coordinator-recovery")] + self.assertEqual(len(fork), 1, members) + self.assertIn("role: coordinator", text) + self.assertIn("step: coordination", text) + def test_layer_four_template_is_a_valid_user_package(self): template = section(self.text, "Layer-4 authoring template") skill = re.search(r"```markdown\n(.*?)```", template, re.S).group(1) diff --git a/tests/test_packages.py b/tests/test_packages.py index 8766406..6df9e7e 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -37,6 +37,7 @@ class PackageTests(unittest.TestCase): def test_coordinator_packages_are_automatic_v0_17_0_coordination_guidance(self): expected = {"coordinator-dispatch": (1, ["SKILL.md", "wave-selection.md"]), + "coordinator-recovery": (1, ["SKILL.md"]), "coordinator-communication": (3, ["SKILL.md"])} for name, (schema, files) in expected.items(): with self.subTest(package=name): @@ -68,6 +69,45 @@ class PackageTests(unittest.TestCase): for phrase in ("nudge", "reorient", "Working Ledger"): self.assertNotIn(phrase, text) + def test_coordinator_recovery_triages_blockers_before_a_bounded_nudge(self): + text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() + for phrase in ("Portfolio Read Model", "Lease Registry", "waiting reason", + "Operator input", "external gate", "held or queued lease", + "Never nudge a task that is waiting", + "resume it", "please keep going", "current stage", + "nudge budget", "cooldown", "the owner refuses a nudge", + "stop nudging", "park", "diagnostic summary"): + self.assertIn(phrase, text) + # Blocker triage comes before any nudge. + self.assertLess(text.index("## Triage before nudging"), text.index("## Nudge a stalled task")) + + def test_coordinator_recovery_reorients_from_owner_state_not_chat_memory(self): + text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() + for phrase in ("fresh session", "context refresh", "Portfolio Read Model", "Working Ledger", + "active waves", "held leases", "contention edges", "nudge counts", + "pending Review Packets", "closed issues", + "not a record of the portfolio", "the owner's state wins"): + self.assertIn(phrase, text) + # Durable state is read from the owner, never recalled from the conversation. + lowered = text.lower() + for phrase in ("remember", "recall", "from memory", "earlier in the conversation"): + self.assertNotIn(phrase, lowered) + + def test_coordinator_recovery_keeps_the_working_ledger_concise_and_current(self): + text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() + for phrase in ("## Keep the Working Ledger", "when you discover it", "one line", + "the evidence", "resolved", "never changes the issue tracker"): + self.assertIn(phrase, text) + + def test_coordinator_recovery_stays_independent_of_dispatch(self): + text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() + # Wave selection and its typed escalations belong to coordinator-dispatch, + # so an Operator can replace either package without the other. + for phrase in ("wave-selection", "coordinator-dispatch", "`portfolio_conflict`", "`unique_resource_needed`"): + self.assertNotIn(phrase, text) + self.assertNotIn("{", text) + self.assertNotIn("```", text) + def test_coordinator_communication_reports_the_control_tower(self): text = (ROOT / "packages/coordinator-communication/SKILL.md").read_text() for phrase in ("running wave", "lease", "ml-server", "held", "contention", From 275967e0a8327f1bed2bb47ab27ef571565b13b1 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:41:05 -0500 Subject: [PATCH 3/9] Address review: align audit ties, ledger fallback, owner tracker gate 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 --- OVERRIDING.md | 14 ++++++++++---- packages/coordinator-tracker-hygiene/SKILL.md | 10 +++++++++- .../relayview-skill.json | 2 +- packages/coordinator-wave-audit/SKILL.md | 11 +++++++++-- .../coordinator-wave-audit/relayview-skill.json | 2 +- tests/test_overriding.py | 8 +++++++- tests/test_packages.py | 9 +++++++-- 7 files changed, 44 insertions(+), 12 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 811b0df..c4602b0 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -167,7 +167,7 @@ admission. | Communication | Tone, detail, examples, acknowledgements | Publication identity and order, mandatory status, complete durable artifacts; communication packages load only when the frozen `communication_context` treatment is on | Current | | Manual methods | When a method is worth invoking | `/skill:` reaches a session only if that name is in its captured assignment | Current | | Acceptance | Nothing | Operator acceptance requires a person | Current | -| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns | Proposed | +| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone, on-request wave audit and tracker proposals | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns, tracker changes only through owner commands | Proposed | | Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed | | Review tiers | How to frame a risk or escalation summary, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | @@ -325,7 +325,11 @@ Fork each package you change under its own name with the `team-coordinator-dispatch` with schema 1. A `coordinator-communication` fork keeps schema 3 and `"treatment": "communication_context"`. An automatic set replaces the whole assignment, so the Coordinator's set lists both the fork and -the package you did not fork. +the package you did not fork. `coordinator-wave-audit` carries its own copy of +the contention and resource-affinity checks, because a package cannot read +another package's files: when you change contention heuristics, resource +batching, or aggressiveness, fork `coordinator-wave-audit` too so audits match +dispatch. `coordinator-wave-audit` and `coordinator-tracker-hygiene` are manual methods: their text reaches a Coordinator session only when the Operator sends @@ -335,7 +339,8 @@ drafts prerequisite edges and issue comments that change the tracker only once the Operator approves each one. 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: +the automatic set. This set pairs the first-party audit with a team fork of +tracker hygiene, `team-coordinator-tracker-hygiene`: ```yaml trustedSkills: @@ -352,7 +357,8 @@ A fork changes the Coordinator's judgment, not the owner's gates. Under RelayView's proposed operating model, the owner keeps every gate regardless of the package: an issue with an open prerequisite never becomes Ready, the owner grants and releases resource leases and carries out dispatch through its own -commands, the Operator toggles Autopilot, and no agent can lower a review tier. +commands, the Operator toggles Autopilot, the tracker changes only through +owner commands, and no agent can lower a review tier. A fork can change when the Coordinator raises `portfolio_conflict` or `unique_resource_needed`, but not the escalation types or the one-way review ratchet, and prose asking for a lower review tier has no effect. diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md index b324c57..2b20e61 100644 --- a/packages/coordinator-tracker-hygiene/SKILL.md +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -17,6 +17,8 @@ Never change the tracker silently. This method drafts proposals; it adds no prer Read the implicit contention edges recorded in the Coordinator Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or merged; its prerequisites as the tracker records them; and the evidence the ledger gives for the edge. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. +Take edges from the Working Ledger, not from this conversation. When the Working Ledger is missing, unreadable, or empty for the scope, say so and stop; propose nothing from memory. + ## Classify each edge Put each edge in exactly one group: @@ -33,10 +35,16 @@ When the evidence is only a guess from issue titles, say so and prefer a coordin Keep each proposal as small as the evidence allows: - **Prerequisite edge:** name the issue that waits, the issue it requires, and one sentence of evidence. Propose only the direct edge, never one the tracker already implies through another prerequisite. Before proposing it, check that it would not form a cycle with the prerequisites the tracker already records, and flag an edge that would hold back an issue that is already running. -- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that should wait. +- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue later in the owner's Ready order. ## Present and apply Present the proposals grouped as above, in the owner's Ready order, with "None" under an empty group. Each proposal needs the Operator's explicit approval. Apply an approved proposal only through an owner command assigned to you and confirm from a fresh projection that it took effect; when no such command is assigned, give the Operator the exact change to make. Approval of one proposal is not approval of the others. End with a one-line summary: edges reviewed, proposals drafted, and stale edges found. + +## Check before finishing + +- Does every proposal trace to a Working Ledger edge and name its evidence? +- Is every proposed prerequisite direct, new to the tracker, and free of cycles? +- Did any tracker change happen without the Operator's explicit approval of that proposal? diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json index a76b6c9..091e158 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": "79f5a267a5fbe7fac2a9f52031cbd29d5aa575a19f5d97751e746a3236d3e6b1" + "sha256": "b1a5eec5103b60b60eb9b227bab4399c4ddf627395927dda4da47a2b87ed5cba" } ] } diff --git a/packages/coordinator-wave-audit/SKILL.md b/packages/coordinator-wave-audit/SKILL.md index 3e902d4..5c62155 100644 --- a/packages/coordinator-wave-audit/SKILL.md +++ b/packages/coordinator-wave-audit/SKILL.md @@ -41,7 +41,7 @@ Return these four sections in this order. Write "None" under an empty section ra ### Safe Parallel Wave 1 -The largest set of Ready issues with no contention found among themselves or with running work, and whose resources are free or already loaded. List each issue with one line on why it is independent. Where two candidates conflict, keep the one earlier in the owner's Ready order and list the other under Contention Pairs. +The largest set of Ready issues with no contention found among themselves or with running work, and whose resources are free or already loaded. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs. ### Contention Pairs @@ -53,6 +53,13 @@ Groups of Ready issues that need the same `ml-server` model or GPU setup, in the ### Blocked/Stale -Ready issues held by an open prerequisite or a missing projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite. +Issues the Ready queue lists but that still show an open prerequisite, issues held by a missing projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite. End with a one-line summary: Ready issues audited, the size of Safe Parallel Wave 1, and how many need the Operator's decision. + +## Check before finishing + +- Does every Ready issue in scope appear in exactly one place: Safe Parallel Wave 1, a Contention Pair, or Blocked/Stale? +- Does every contention pair name its evidence and where you read it? +- Does every queue reason come from the Lease Registry rather than an estimate? +- Did you dispatch, change, or request nothing? diff --git a/packages/coordinator-wave-audit/relayview-skill.json b/packages/coordinator-wave-audit/relayview-skill.json index b0d53cc..0b9c55d 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": "24d7c3587be9c32da55b93ec11da0bafdabbecf8c04b7823c36f1b9e75b199a5" + "sha256": "c918553068df3ac7f89134a099b269717a9f7c6fe6aedbbd69347f06fb3362a2" } ] } diff --git a/tests/test_overriding.py b/tests/test_overriding.py index 4a5eb03..299cae5 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -136,8 +136,14 @@ class OverrideGuideTests(unittest.TestCase): "`coordinator-dispatch`", "`wave-selection.md`", "`coordinator-communication`", "`portfolio_conflict`", "`unique_resource_needed`", "leases", "`coordinator-wave-audit`", "`coordinator-tracker-hygiene`", - "`/skill:`", "invocationmode: manual"): + "`/skill:`", "invocationmode: manual", + "fork `coordinator-wave-audit` too", "tracker"): self.assertIn(phrase.lower(), text) + 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]) def test_layer_four_template_is_a_valid_user_package(self): template = section(self.text, "Layer-4 authoring template") diff --git a/tests/test_packages.py b/tests/test_packages.py index c143b19..331c6c2 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -98,8 +98,11 @@ class PackageTests(unittest.TestCase): "Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches", "Blocked/Stale", "schema migration", "ml-server", "Dispatch nothing", "an open prerequisite keeps it out", - "leave repository code and shell commands to the roles that own them"): + "leave repository code and shell commands to the roles that own them", + "Check before finishing"): self.assertIn(phrase, text) + # Ties follow the dispatch guide: a free or loaded resource can beat Ready order. + self.assertIn("free or already loaded", text) # The four sections appear in the order the Operator reads them. order = [text.index(f"### {heading}") for heading in ( "Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches", "Blocked/Stale")] @@ -110,7 +113,9 @@ class PackageTests(unittest.TestCase): for phrase in ("/skill:coordinator-tracker-hygiene", "Working Ledger", "implicit contention edges", "prerequisite edge", "issue comment", "Operator approval", "Never change the tracker silently", - "cycle", "Already recorded", "Stale"): + "cycle", "Already recorded", "Stale", + "missing, unreadable, or empty", "not from this conversation", + "Check before finishing"): self.assertIn(phrase, text) def test_tester_release_sidecars_and_building_inspector_method(self): From fc51868c079983f384b6c2d223c5d9cc0d660aeb Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:41:53 -0500 Subject: [PATCH 4/9] Address review: Autopilot-bound recovery and one ledger name State what nudging, resuming, and parking do under Autopilot Off (propose, act on Operator approval) and On, and yield on a paused Autopilot as well as a conversation, matching coordinator-dispatch. Count a contention hold as a blocker, use one Working Ledger name, keep the escalation wording interface-neutral, fold the rebuilt posture into the next report, and rewrap the README and contract lines. Refs #27 Co-Authored-By: Claude Opus 5.5 --- README.md | 7 ++++--- .../instruction-package-contract.md | 3 ++- packages/coordinator-recovery/SKILL.md | 16 +++++++++++----- .../coordinator-recovery/relayview-skill.json | 2 +- tests/test_packages.py | 10 ++++++++++ 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ae91960..3bff505 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,10 @@ escalations. `coordinator-recovery` triages a stalled task's blockers before a bounded nudge, parks repeated stalls for the Operator, rebuilds the Coordinator's posture from the owner's Portfolio Read Model and Working Ledger after a context refresh, and records implicit contention in that ledger. -`coordinator-communication` (schema 3) shapes Control Tower status reports. RelayView does not yet admit the `coordinator` role; when it does, its -owner keeps prerequisites, dispatch execution, resource leases, nudge budgets -and cooldowns, the Working Ledger, and review policy. +`coordinator-communication` (schema 3) shapes Control Tower status reports. +RelayView does not yet admit the `coordinator` role; when it does, its owner +keeps prerequisites, dispatch execution, resource leases, nudge budgets and +cooldowns, the Working Ledger, and review policy. [OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which seam to fork for each customization. diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index 041ab89..e05b57a 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -124,7 +124,8 @@ yet. `tester-inspection` (schema 1) and `tester-communication` (schema 3) declare `tester`/`testing` in this repository with source reference `v0.15.0`, and `coordinator-dispatch` (schema 1), `coordinator-recovery` (schema 1), and `coordinator-communication` (schema 3) declare `coordinator`/`coordination` -with source reference `v0.17.0`; neither tag is published yet. The planned releases below are proposed, not published: +with source reference `v0.17.0`; neither tag is published yet. The planned +releases below are proposed, not published: | Proposed release | New pair | Planned packages | | --- | --- | --- | diff --git a/packages/coordinator-recovery/SKILL.md b/packages/coordinator-recovery/SKILL.md index 0573978..50f0cb6 100644 --- a/packages/coordinator-recovery/SKILL.md +++ b/packages/coordinator-recovery/SKILL.md @@ -8,7 +8,7 @@ metadata: # Coordinator recovery -You keep long-running work moving without pushing tasks that are legitimately waiting, and you keep your working posture recoverable from the owner's state. RelayView's owner records task state, grants and queues leases, enforces nudge budgets and cooldowns, and keeps the Coordinator Working Ledger; you act through the owner commands assigned to you. +You keep long-running work moving without pushing tasks that are legitimately waiting, and you keep your working posture recoverable from the owner's state. RelayView's owner records task state, grants and queues leases, enforces nudge budgets and cooldowns, and keeps the Working Ledger; you act through the owner commands assigned to you. Your conversation is not a record of the portfolio. Anything durable you learn goes into the Working Ledger when you learn it, and anything you act on comes from the owner's current state. @@ -21,7 +21,7 @@ When the Portfolio Read Model shows a task as stalled, find out why before you a - the task's nudge count, remaining nudge budget, and cooldown, as the owner reports them; - the Working Ledger's entries for the task, such as a contention edge that holds it behind another issue. -A task waiting for Operator input, an external gate such as a required check or review, or a held or queued lease is blocked, not stalled. Never nudge a task that is waiting on a real blocker. Name the blocker in your status, and when the owner grants the lease or clears the wait, resume it through the owner's command if the owner has not already resumed it. Resuming continues work already dispatched; it is not a new dispatch. +A task waiting for Operator input, an external gate such as a required check or review, a held or queued lease, or another issue it is held behind is blocked, not stalled. Never nudge a task that is waiting on a real blocker. Name the blocker in your status, and when the owner grants the lease or clears the wait, resume it through the owner's command if the owner has not already resumed it, following the Autopilot rules below. Resuming continues work already dispatched; it is not a new dispatch. When a projection you need is missing or stale, say which one and do not nudge; a task you cannot triage stays as it is. @@ -37,7 +37,7 @@ Nudges are bounded: ## Park and escalate -When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator in the Control Tower with a diagnostic summary: +When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator with a diagnostic summary: - the task, its stage, and how long it has been stalled; - the nudges sent and what followed each; @@ -47,7 +47,13 @@ When you stop nudging, park the task cleanly through the owner's command and bri Record the parked state and the summary in the Working Ledger. Parking asks for the Operator's attention; it does not change the task's review tier, and nudging stays stopped for that task until the Operator decides. -While the Operator is conversing with you, answer first; nudge, resume, or park only after you have answered, under the Autopilot setting the owner then reports. +## Autopilot + +Nudging, resuming, and parking act on work already dispatched, and they follow the Autopilot setting the owner reports: + +- **When Autopilot is `Off`**, report each stall with its triage, and propose the nudge, resume, or park you would make. Act only on what the Operator approves, re-checking the task's state just before you act. +- **When Autopilot is `On`**, nudge, resume, and park as this guidance describes, within the owner's budgets and cooldowns. +- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: send no further nudge, resume, or park, and answer the Operator. After answering, follow the Autopilot setting the owner then reports. ## Reorient after a context refresh @@ -61,7 +67,7 @@ At the start of a fresh session, and after any context refresh or compaction, re Leave out ledger entries that concern only closed issues; they no longer constrain any decision. Treat any summary or message from before the refresh as a hint to check, never as state: where it disagrees with the projections or the ledger, the owner's state wins. When a projection or the ledger is missing, say so, and treat the work it covers as unknown rather than reconstructing it. -Then tell the Operator the posture you rebuilt, with its as-of time and any gaps. +Include the posture you rebuilt, with its as-of time, in your next report to the Operator. Report a gap at once, since it limits what you can safely do. ## Keep the Working Ledger diff --git a/packages/coordinator-recovery/relayview-skill.json b/packages/coordinator-recovery/relayview-skill.json index 78be0a5..2d3953f 100644 --- a/packages/coordinator-recovery/relayview-skill.json +++ b/packages/coordinator-recovery/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "865f31cb3a6987c8cae3e2f2722771f0737014cd93e871487ff12372b5bb0f9b" + "sha256": "cc3fe27f0d607e4ccc830143145dfd6f3dcc846414baaf526e97f59b6fa4a725" } ] } diff --git a/tests/test_packages.py b/tests/test_packages.py index 6df9e7e..4d31c16 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -93,6 +93,16 @@ class PackageTests(unittest.TestCase): for phrase in ("remember", "recall", "from memory", "earlier in the conversation"): self.assertNotIn(phrase, lowered) + def test_coordinator_recovery_follows_autopilot_and_yields_to_the_operator(self): + text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() + autopilot = text[text.index("## Autopilot"):text.index("## Reorient after a context refresh")] + for phrase in ("When Autopilot is `Off`", "propose", "the Operator approves", + "When Autopilot is `On`", "pauses Autopilot or starts a conversation", + "safe turn boundary", "the Autopilot setting the owner then reports"): + self.assertIn(phrase, autopilot) + # Every mention of the ledger uses one name. + self.assertNotIn("Coordinator Working Ledger", text) + def test_coordinator_recovery_keeps_the_working_ledger_concise_and_current(self): text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text() for phrase in ("## Keep the Working Ledger", "when you discover it", "one line", From 5b161d30ec72f4b5fb07ba514ec5fdab98466dd1 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:42:48 -0500 Subject: [PATCH 5/9] Address second review: Operator applies tracker changes, audit rules 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 --- OVERRIDING.md | 12 ++++++------ README.md | 7 +++---- docs/authoritative/instruction-package-contract.md | 2 +- packages/coordinator-tracker-hygiene/SKILL.md | 14 +++++++------- .../relayview-skill.json | 2 +- packages/coordinator-wave-audit/SKILL.md | 6 +++--- .../coordinator-wave-audit/relayview-skill.json | 2 +- tests/test_packages.py | 7 +++++-- 8 files changed, 27 insertions(+), 25 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index c4602b0..97ef28f 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -167,7 +167,7 @@ admission. | Communication | Tone, detail, examples, acknowledgements | Publication identity and order, mandatory status, complete durable artifacts; communication packages load only when the frozen `communication_context` treatment is on | Current | | Manual methods | When a method is worth invoking | `/skill:` reaches a session only if that name is in its captured assignment | Current | | Acceptance | Nothing | Operator acceptance requires a person | Current | -| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone, on-request wave audit and tracker proposals | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns, tracker changes only through owner commands | Proposed | +| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, Control Tower reporting tone, on-request wave audit and tracker proposals | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns, tracker changes, which the Coordinator only proposes and the Operator applies | Proposed | | Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed | | Review tiers | How to frame a risk or escalation summary, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | @@ -335,9 +335,9 @@ dispatch. 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 that change the tracker only once -the Operator approves each one. A fork keeps schema 1 and -`disable-model-invocation: true`. Once RelayView adopts the pair, the manual +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 +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 tracker hygiene, `team-coordinator-tracker-hygiene`: @@ -357,8 +357,8 @@ A fork changes the Coordinator's judgment, not the owner's gates. Under RelayView's proposed operating model, the owner keeps every gate regardless of the package: an issue with an open prerequisite never becomes Ready, the owner grants and releases resource leases and carries out dispatch through its own -commands, the Operator toggles Autopilot, the tracker changes only through -owner commands, and no agent can lower a review tier. +commands, the Operator toggles Autopilot and applies any tracker change the +Coordinator proposes, and no agent can lower a review tier. A fork can change when the Coordinator raises `portfolio_conflict` or `unique_resource_needed`, but not the escalation types or the one-way review ratchet, and prose asking for a lower review tier has no effect. diff --git a/README.md b/README.md index a2a05f2..76c5095 100644 --- a/README.md +++ b/README.md @@ -85,10 +85,9 @@ reports. Two manual methods for the same release run only when the Operator invokes them with `/skill:`: `coordinator-wave-audit` returns a structured wave plan for the whole Ready queue without dispatching, and `coordinator-tracker-hygiene` drafts prerequisite-edge and issue-comment -proposals from recorded contention for the Operator to approve. RelayView does -not yet admit the `coordinator` role; when it does, its owner keeps -prerequisites, dispatch execution, resource leases, tracker changes and review -policy. +proposals from recorded contention for the Operator to approve and apply. +RelayView does not yet admit the `coordinator` role; when it does, its owner +keeps prerequisites, dispatch execution, resource leases and review policy. [OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which seam to fork for each customization. diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index 4b2f82a..132de4f 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -131,7 +131,7 @@ proposed, not published: | Proposed release | New pair | Planned packages | | --- | --- | --- | | `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | -| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1) and `coordinator-communication` (schema 3), and the manual `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1), in source; further Coordinator automatic methods (schema 1) | +| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` (schema 1), `coordinator-communication` (schema 3), and the manual `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1), in source; further Coordinator automatic methods (schema 1) | Before RelayView pins a release containing either pair, it must: diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md index 2b20e61..7d8f6a8 100644 --- a/packages/coordinator-tracker-hygiene/SKILL.md +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -11,11 +11,11 @@ metadata: The Operator invoked this review with `/skill:coordinator-tracker-hygiene` to turn contention the Coordinator has only recorded for itself into tracker changes people can see. Treat any text the Operator sent with the command as the review's scope, such as a set of issues or an epic; without it, review every recorded edge. -Never change the tracker silently. This method drafts proposals; it adds no prerequisite, posts no comment, and changes no label or status on its own. +Never change the tracker silently. This method drafts proposals for the Operator to approve and apply. Make no tracker change yourself: add no prerequisite, post no comment, and change no label or status. ## Read the recorded edges -Read the implicit contention edges recorded in the Coordinator Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or merged; its prerequisites as the tracker records them; and the evidence the ledger gives for the edge. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. +Read the implicit contention edges recorded in the Coordinator Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or merged; its prerequisites and comments as the tracker records them, read through the commands assigned to you; and the evidence the ledger gives for the edge. When you cannot read an issue's prerequisites or comments, say so, and mark proposals for that issue as possibly already recorded. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. Take edges from the Working Ledger, not from this conversation. When the Working Ledger is missing, unreadable, or empty for the scope, say so and stop; propose nothing from memory. @@ -26,7 +26,7 @@ Put each edge in exactly one group: - **Ordering need:** one issue cannot be done correctly until the other lands, such as a schema migration another issue builds on, or an interface one issue changes and the other consumes. Draft a prerequisite edge. - **Coordination note:** the issues can run in either order but not together, such as two edits to one module's public surface or a shared test environment. Draft an issue comment. - **Already recorded:** the tracker already carries an equivalent prerequisite or comment. Propose nothing. -- **Stale:** either issue is closed or merged, or the evidence no longer holds. Propose nothing for the tracker, and list it so the Operator can retire it from the ledger. +- **Stale:** either issue is closed or merged, or the evidence no longer holds. Propose nothing for the tracker, and list it so the edge is marked resolved in the Working Ledger. When the evidence is only a guess from issue titles, say so and prefer a coordination note to a prerequisite edge. @@ -35,11 +35,11 @@ When the evidence is only a guess from issue titles, say so and prefer a coordin Keep each proposal as small as the evidence allows: - **Prerequisite edge:** name the issue that waits, the issue it requires, and one sentence of evidence. Propose only the direct edge, never one the tracker already implies through another prerequisite. Before proposing it, check that it would not form a cycle with the prerequisites the tracker already records, and flag an edge that would hold back an issue that is already running. -- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue later in the owner's Ready order. +- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that has not started; when neither has started, on the one later in the owner's Ready order. -## Present and apply +## Present the proposals -Present the proposals grouped as above, in the owner's Ready order, with "None" under an empty group. Each proposal needs the Operator's explicit approval. Apply an approved proposal only through an owner command assigned to you and confirm from a fresh projection that it took effect; when no such command is assigned, give the Operator the exact change to make. Approval of one proposal is not approval of the others. +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. End with a one-line summary: edges reviewed, proposals drafted, and stale edges found. @@ -47,4 +47,4 @@ End with a one-line summary: edges reviewed, proposals drafted, and stale edges - Does every proposal trace to a Working Ledger edge and name its evidence? - Is every proposed prerequisite direct, new to the tracker, and free of cycles? -- Did any tracker change happen without the Operator's explicit approval of that proposal? +- Did you leave every tracker change to the Operator? diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json index 091e158..2fb5c27 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": "b1a5eec5103b60b60eb9b227bab4399c4ddf627395927dda4da47a2b87ed5cba" + "sha256": "36795a31dedd03414bb99c109746f2f63e9a63c84431bfd39a5c1183ae3f9c63" } ] } diff --git a/packages/coordinator-wave-audit/SKILL.md b/packages/coordinator-wave-audit/SKILL.md index 5c62155..0e4140d 100644 --- a/packages/coordinator-wave-audit/SKILL.md +++ b/packages/coordinator-wave-audit/SKILL.md @@ -33,7 +33,7 @@ For each Ready issue, in the owner's Ready order: 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. -For every contention or anomaly, name the evidence and where you read it. When the evidence is only a guess from an issue title, say so. +For every contention or anomaly, name the evidence and where you read it. When the evidence is only a guess from an issue title, say so and treat the issue later in the owner's Ready order as the one held. ## Return the wave plan @@ -41,7 +41,7 @@ Return these four sections in this order. Write "None" under an empty section ra ### Safe Parallel Wave 1 -The largest set of Ready issues with no contention found among themselves or with running work, and whose resources are free or already loaded. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs. +Ready issues with no contention among themselves or with running work, including plausible contention you could not rule out, and whose resources are free or already loaded. Size the wave to the free GPU workers the Lease Registry reports, and prefer a smaller wave whose members are clearly independent over a larger one that risks rework. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs. ### Contention Pairs @@ -59,7 +59,7 @@ End with a one-line summary: Ready issues audited, the size of Safe Parallel Wav ## Check before finishing -- Does every Ready issue in scope appear in exactly one place: Safe Parallel Wave 1, a Contention Pair, or Blocked/Stale? +- Is every Ready issue in scope either in Safe Parallel Wave 1 or accounted for elsewhere: held by a Contention Pair, waiting in a Resource-Affinity Batch, or listed under Blocked/Stale? - Does every contention pair name its evidence and where you read it? - Does every queue reason come from the Lease Registry rather than an estimate? - Did you dispatch, change, or request nothing? diff --git a/packages/coordinator-wave-audit/relayview-skill.json b/packages/coordinator-wave-audit/relayview-skill.json index 0b9c55d..947ac81 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": "c918553068df3ac7f89134a099b269717a9f7c6fe6aedbbd69347f06fb3362a2" + "sha256": "0dfa78a7720f286baef6055a742096ff3daf3dd8319d76fad07bef1a242b722c" } ] } diff --git a/tests/test_packages.py b/tests/test_packages.py index 331c6c2..c64cc90 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -99,7 +99,8 @@ class PackageTests(unittest.TestCase): "Blocked/Stale", "schema migration", "ml-server", "Dispatch nothing", "an open prerequisite keeps it out", "leave repository code and shell commands to the roles that own them", - "Check before finishing"): + "Check before finishing", "free GPU workers", + "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. self.assertIn("free or already loaded", text) @@ -115,8 +116,10 @@ class PackageTests(unittest.TestCase): "Operator approval", "Never change the tracker silently", "cycle", "Already recorded", "Stale", "missing, unreadable, or empty", "not from this conversation", - "Check before finishing"): + "Check before finishing", "Make no tracker change yourself"): self.assertIn(phrase, text) + # Like coordinator-recovery, the Operator applies tracker changes. + self.assertNotIn("Apply an approved proposal", text) def test_tester_release_sidecars_and_building_inspector_method(self): expected = { From 4843d2f4659dca26003308824626402edb400af3 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:43:41 -0500 Subject: [PATCH 6/9] Address second review: stop nudging after any repeat stall Stop nudging when a nudged task stalls again at any stage, keep the park summary to a few lines, say running tasks continue on yield, record resolved ledger edges without assuming an update operation, and name the planned manual v0.17.0 Coordinator methods in the contract. Refs #27 Co-Authored-By: Claude Opus 5.5 --- docs/authoritative/instruction-package-contract.md | 2 +- packages/coordinator-recovery/SKILL.md | 8 ++++---- packages/coordinator-recovery/relayview-skill.json | 2 +- tests/test_packages.py | 3 +++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index e05b57a..1bb37c2 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -130,7 +130,7 @@ releases below are proposed, not published: | Proposed release | New pair | Planned packages | | --- | --- | --- | | `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) | -| `v0.17.0` | `coordinator`/`coordination` | `coordinator-dispatch` and `coordinator-recovery` (schema 1) and `coordinator-communication` (schema 3), in source; further Coordinator manual methods (schema 1) | +| `v0.17.0` | `coordinator`/`coordination` | In source: `coordinator-dispatch` and `coordinator-recovery` (schema 1, automatic), `coordinator-communication` (schema 3). Planned: the manual `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1) | Before RelayView pins a release containing either pair, it must: diff --git a/packages/coordinator-recovery/SKILL.md b/packages/coordinator-recovery/SKILL.md index 50f0cb6..1cc9cb5 100644 --- a/packages/coordinator-recovery/SKILL.md +++ b/packages/coordinator-recovery/SKILL.md @@ -33,11 +33,11 @@ Nudges are bounded: - Send at most one nudge per stall, and only within the owner's nudge budget and outside its cooldown. When the owner refuses a nudge, treat the budget as spent for this stall and do not retry or word around it. - Record each nudge in the Working Ledger with the stage it targeted. -- When the task stalls again at the same stage after a nudge, or its nudge budget is spent, stop nudging. +- When the task stalls again after a nudge, at any stage, or its nudge budget is spent, stop nudging. ## Park and escalate -When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator with a diagnostic summary: +When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator with a diagnostic summary of a few lines: - the task, its stage, and how long it has been stalled; - the nudges sent and what followed each; @@ -53,7 +53,7 @@ Nudging, resuming, and parking act on work already dispatched, and they follow t - **When Autopilot is `Off`**, report each stall with its triage, and propose the nudge, resume, or park you would make. Act only on what the Operator approves, re-checking the task's state just before you act. - **When Autopilot is `On`**, nudge, resume, and park as this guidance describes, within the owner's budgets and cooldowns. -- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: send no further nudge, resume, or park, and answer the Operator. After answering, follow the Autopilot setting the owner then reports. +- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: send no further nudge, resume, or park, and answer the Operator. Running tasks continue. After answering, follow the Autopilot setting the owner then reports. ## Reorient after a context refresh @@ -76,7 +76,7 @@ Write to the Working Ledger through the owner's command, at the moment you disco - each implicit contention edge when you discover it, in one line: the two issues, the shared file, module, migration, interface, decision, service, or resource, the evidence and where you read it, and whether you held or sequenced the work; - each nudge and parked task, as above. -Keep entries concise and current. Update an existing entry instead of adding a duplicate, and mark an edge resolved when either issue closes or the shared change lands. The Working Ledger records your judgment; writing it never changes the issue tracker, so leave prerequisites and issue comments to the Operator. +Keep entries concise and current. When an edge is already recorded, add only what changed, and record the edge as resolved when either issue closes or the shared change lands. The Working Ledger records your judgment; writing it never changes the issue tracker, so leave prerequisites and issue comments to the Operator. ## Check before finishing diff --git a/packages/coordinator-recovery/relayview-skill.json b/packages/coordinator-recovery/relayview-skill.json index 2d3953f..6aa2fcb 100644 --- a/packages/coordinator-recovery/relayview-skill.json +++ b/packages/coordinator-recovery/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "cc3fe27f0d607e4ccc830143145dfd6f3dcc846414baaf526e97f59b6fa4a725" + "sha256": "cfb33967ad50dd88c3701588b621c950d8ce509918a3077b46d94f7c2a4ee183" } ] } diff --git a/tests/test_packages.py b/tests/test_packages.py index 4d31c16..2b7c056 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -78,6 +78,9 @@ class PackageTests(unittest.TestCase): "nudge budget", "cooldown", "the owner refuses a nudge", "stop nudging", "park", "diagnostic summary"): self.assertIn(phrase, text) + # A second stall after a nudge, at any stage, ends nudging for the task. + self.assertIn("When the task stalls again after a nudge, at any stage,", text) + self.assertNotIn("at the same stage after a nudge", text) # Blocker triage comes before any nudge. self.assertLess(text.index("## Triage before nudging"), text.index("## Nudge a stalled task")) From f32f238f614f2237481d2bdc6c693c039b50afe2 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:44:03 -0500 Subject: [PATCH 7/9] Address third review: unambiguous wave admission, stale-edge owner 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 --- packages/coordinator-tracker-hygiene/SKILL.md | 4 ++-- packages/coordinator-tracker-hygiene/relayview-skill.json | 2 +- packages/coordinator-wave-audit/SKILL.md | 4 ++-- packages/coordinator-wave-audit/relayview-skill.json | 2 +- tests/test_packages.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md index 7d8f6a8..c7802f1 100644 --- a/packages/coordinator-tracker-hygiene/SKILL.md +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -26,7 +26,7 @@ Put each edge in exactly one group: - **Ordering need:** one issue cannot be done correctly until the other lands, such as a schema migration another issue builds on, or an interface one issue changes and the other consumes. Draft a prerequisite edge. - **Coordination note:** the issues can run in either order but not together, such as two edits to one module's public surface or a shared test environment. Draft an issue comment. - **Already recorded:** the tracker already carries an equivalent prerequisite or comment. Propose nothing. -- **Stale:** either issue is closed or merged, or the evidence no longer holds. Propose nothing for the tracker, and list it so the edge is marked resolved in the Working Ledger. +- **Stale:** either issue is closed or merged, or the evidence no longer holds. Propose nothing for the tracker; list it, and mark the edge resolved in the Working Ledger through the owner's command for it. When the evidence is only a guess from issue titles, say so and prefer a coordination note to a prerequisite edge. @@ -35,7 +35,7 @@ When the evidence is only a guess from issue titles, say so and prefer a coordin Keep each proposal as small as the evidence allows: - **Prerequisite edge:** name the issue that waits, the issue it requires, and one sentence of evidence. Propose only the direct edge, never one the tracker already implies through another prerequisite. Before proposing it, check that it would not form a cycle with the prerequisites the tracker already records, and flag an edge that would hold back an issue that is already running. -- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that has not started; when neither has started, on the one later in the owner's Ready order. +- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that started later; an issue that has not started counts as later, and between two that have not started, choose the one later in the owner's Ready order. ## Present the proposals diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json index 2fb5c27..fe53307 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": "36795a31dedd03414bb99c109746f2f63e9a63c84431bfd39a5c1183ae3f9c63" + "sha256": "522fa16d3b2e7449d3093c8f40405ff44480f852bef514b4e2f976cc2de73be2" } ] } diff --git a/packages/coordinator-wave-audit/SKILL.md b/packages/coordinator-wave-audit/SKILL.md index 0e4140d..9b934ce 100644 --- a/packages/coordinator-wave-audit/SKILL.md +++ b/packages/coordinator-wave-audit/SKILL.md @@ -41,7 +41,7 @@ Return these four sections in this order. Write "None" under an empty section ra ### Safe Parallel Wave 1 -Ready issues with no contention among themselves or with running work, including plausible contention you could not rule out, and whose resources are free or already loaded. Size the wave to the free GPU workers the Lease Registry reports, and prefer a smaller wave whose members are clearly independent over a larger one that risks rework. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs. +Ready issues with no contention among themselves or with running work, and no plausible contention you could not rule out, whose resources are free or already loaded. Admit GPU-bound issues only up to the free GPU workers the Lease Registry reports, and prefer a smaller wave whose members are clearly independent over a larger one that risks rework. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs. ### Contention Pairs @@ -53,7 +53,7 @@ Groups of Ready issues that need the same `ml-server` model or GPU setup, in the ### Blocked/Stale -Issues the Ready queue lists but that still show an open prerequisite, issues held by a missing projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite. +Issues the Ready queue lists but that still show an open prerequisite, issues held by a missing or stale projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite. End with a one-line summary: Ready issues audited, the size of Safe Parallel Wave 1, and how many need the Operator's decision. diff --git a/packages/coordinator-wave-audit/relayview-skill.json b/packages/coordinator-wave-audit/relayview-skill.json index 947ac81..dbcb81b 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": "0dfa78a7720f286baef6055a742096ff3daf3dd8319d76fad07bef1a242b722c" + "sha256": "cc3c55ada0277749e3f87b8aba89a348b40cdf8c25c9b97d022b0d3281316648" } ] } diff --git a/tests/test_packages.py b/tests/test_packages.py index c64cc90..451852b 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -99,7 +99,7 @@ class PackageTests(unittest.TestCase): "Blocked/Stale", "schema migration", "ml-server", "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", + "Check before finishing", "free GPU workers", "GPU-bound", "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. From c309981987ca42b985bbbf47ffebade1938dff91 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:53:12 -0500 Subject: [PATCH 8/9] Address post-merge review: skip resolved edges, accurate fork note 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 --- OVERRIDING.md | 5 +++-- packages/coordinator-tracker-hygiene/SKILL.md | 4 ++-- packages/coordinator-tracker-hygiene/relayview-skill.json | 2 +- tests/test_overriding.py | 1 + tests/test_packages.py | 5 +++++ 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 1ac3e91..1da6f1a 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -333,7 +333,8 @@ replaces the whole assignment, so the Coordinator's set lists the fork and every package you did not fork. Recovery and nudge behavior lives only in `coordinator-recovery`, and wave -selection only in `coordinator-dispatch`, so either forks without the other. +selection in `coordinator-dispatch` and its on-request copy in +`coordinator-wave-audit`, so recovery and dispatch fork without each other. For example, to replace recovery while keeping the maintained dispatch and communication packages, fork `coordinator-recovery` as `team-coordinator-recovery` with schema 1 and put it in a named set beside @@ -350,7 +351,7 @@ trustedSkills: members: [coordinator-dispatch, team-coordinator-recovery, coordinator-communication] ``` -Once RelayView admits the pair, select the set for the Technical Coordinator +Once RelayView adopts the pair, select the set for the Technical Coordinator in Settings → Skills and save, as in step 8 of the recipe. Under the proposed model, a recovery fork changes when and how the Coordinator nudges, parks, reorients, and records, but the owner keeps the nudge budgets and cooldowns, diff --git a/packages/coordinator-tracker-hygiene/SKILL.md b/packages/coordinator-tracker-hygiene/SKILL.md index 44a71fa..7384812 100644 --- a/packages/coordinator-tracker-hygiene/SKILL.md +++ b/packages/coordinator-tracker-hygiene/SKILL.md @@ -15,9 +15,9 @@ Never change the tracker silently. This method drafts proposals for the Operator ## Read the recorded edges -Read the implicit contention edges recorded in the Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or merged; its prerequisites and comments as the tracker records them, read through the commands assigned to you; and the evidence the ledger gives for the edge. When you cannot read an issue's prerequisites or comments, say so, and mark proposals for that issue as possibly already recorded. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. +Read the implicit contention edges recorded in the Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or closed, and whether the shared change has landed; its prerequisites and comments as the tracker records them, read through the commands assigned to you; and the evidence the ledger gives for the edge. When you cannot read an issue's prerequisites or comments, say so, and mark proposals for that issue as possibly already recorded. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them. -Take edges from the Working Ledger, not from this conversation. When the Working Ledger is missing, unreadable, or empty for the scope, say so and stop; propose nothing from memory. +Take edges from the Working Ledger, not from this conversation. Skip edges the Working Ledger already records as resolved. When the Working Ledger is missing, unreadable, or empty for the scope, say so and stop; propose nothing from memory. ## Classify each edge diff --git a/packages/coordinator-tracker-hygiene/relayview-skill.json b/packages/coordinator-tracker-hygiene/relayview-skill.json index 769ca2d..0f505a2 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": "454eeffe5f5b22dad4c09826f5a864514a8616d9c6c682cbd2f7e41504f8221d" + "sha256": "9730035cd9bac86624705eb7e86216093ec47afd538f79e0a03ad27d5c2b2195" } ] } diff --git a/tests/test_overriding.py b/tests/test_overriding.py index 9e77552..b89c9de 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -139,6 +139,7 @@ class OverrideGuideTests(unittest.TestCase): "`/skill:`", "invocationmode: manual", "fork `coordinator-wave-audit` too", "tracker"): self.assertIn(phrase.lower(), text) + self.assertNotIn("once relayview admits the pair", text) 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) diff --git a/tests/test_packages.py b/tests/test_packages.py index 9761fcb..e4afa87 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -173,6 +173,11 @@ class PackageTests(unittest.TestCase): self.assertIn(phrase, text) # Like coordinator-recovery, the Operator applies tracker changes. self.assertNotIn("Apply an approved proposal", text) + # One ledger, named and resolved as coordinator-recovery names and resolves it. + self.assertNotIn("Coordinator Working Ledger", text) + for phrase in ("Doubtful", "the shared change has landed", + "Skip edges the Working Ledger already records as resolved"): + self.assertIn(phrase, text) def test_tester_release_sidecars_and_building_inspector_method(self): expected = { From d9934bdb13306a3a010ebe2dcbf084fa0a55e4f0 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 20:54:34 -0500 Subject: [PATCH 9/9] 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.