From 9f7ccba6a453708748eb4fee5af79b3ca809d896 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 19:56:12 -0500 Subject: [PATCH] Address review: approved-wave dispatch, yield wording, Ready-order ties Dispatch an Operator-approved wave under Autopilot Off, yield instead of abandon on pause, break ties by the owner's Ready order, drop invented owner details, and list coordinator-communication with the schema-3 packages in the README. Refs #26 Co-Authored-By: Claude Opus 5.5 --- OVERRIDING.md | 10 +++++----- README.md | 3 ++- packages/coordinator-communication/SKILL.md | 2 +- .../coordinator-communication/relayview-skill.json | 2 +- packages/coordinator-dispatch/SKILL.md | 8 ++++---- packages/coordinator-dispatch/relayview-skill.json | 4 ++-- packages/coordinator-dispatch/wave-selection.md | 8 ++++---- tests/test_packages.py | 2 +- 8 files changed, 20 insertions(+), 19 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 953509b..f529743 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -120,7 +120,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 execution, Autopilot state, resource leases, review policy, nudge budgets and cooldowns | Proposed | +| 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 | | Review tiers | How to frame a risk or escalation summary | 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 | Proposed rows come from RelayView's coordinator and verification operating @@ -266,7 +266,7 @@ fork independently: | --- | --- | --- | | Wave aggressiveness | The "Aggressiveness" section of `coordinator-dispatch`'s `wave-selection.md` | Admit a candidate unless contention is evident, or hold any two candidates that touch the same top-level directory | | 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` | Prefer the model already loaded on `ml-server` over priority order | +| 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 | @@ -279,9 +279,9 @@ the package you did not fork. 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, the Operator alone sets Autopilot, and review -policy can only rise. A fork can change when the Coordinator raises +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 review policy can only rise. 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 74be04a..43293a2 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ The MIT license covers this repository only. The contribution policy is in [CONT The automatic `code-review-auto` package supplies optional bounded, path-aware finding presentation. Broader two-axis standards/spec inspection remains in the manual `code-review` package. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner. Automatic role communication packages (`planner-communication`, -`implementer-communication`, `reviewer-communication`) use schema 3 with +`implementer-communication`, `reviewer-communication`, and the not yet admitted +`coordinator-communication`) use schema 3 with `treatment: "communication_context"`. This metadata declares their ablation boundary; it grants no tools or authority. Preserve the declaration in forks. RelayView rejects these packages in a named automatic set when the frozen diff --git a/packages/coordinator-communication/SKILL.md b/packages/coordinator-communication/SKILL.md index 8cb4b65..3dc492c 100644 --- a/packages/coordinator-communication/SKILL.md +++ b/packages/coordinator-communication/SKILL.md @@ -19,7 +19,7 @@ For a Control Tower status report, give these in order, omitting any that are em 5. The pending Review Packet inbox count. 6. Anything awaiting the Operator's decision, such as a proposed wave or an escalation. -Take every count, phase, and lease from the owner's current projections and give its as-of time; never estimate one. Use a short table when several tasks share the same columns; otherwise use a list. +Take every count, phase, and lease from the owner's current projections and give its as-of time. Use a short table when several tasks share the same columns; otherwise use a list. For user-facing Control Tower messages, use Markdown when it makes the answer easier to read. A simple reply may be plain prose. Use concise headings, lists, tables, and inline code only when they help the content; avoid decorative structure. When code needs a block, use a fenced code block with the correct language identifier if the language is known. diff --git a/packages/coordinator-communication/relayview-skill.json b/packages/coordinator-communication/relayview-skill.json index d6ebb01..8d42d74 100644 --- a/packages/coordinator-communication/relayview-skill.json +++ b/packages/coordinator-communication/relayview-skill.json @@ -10,7 +10,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "1245f3eb66e1d7a7393311e8829cb782ce4b00888ff301cddb2b82fc59dd9df7" + "sha256": "1c49bb8aa3cc71e1bb50d00b1be9d343830d8447891cd5a1ed7e8ff51de2d40f" } ] } diff --git a/packages/coordinator-dispatch/SKILL.md b/packages/coordinator-dispatch/SKILL.md index d7ef222..47c344f 100644 --- a/packages/coordinator-dispatch/SKILL.md +++ b/packages/coordinator-dispatch/SKILL.md @@ -19,7 +19,7 @@ Build each decision from the owner's projections, read fresh for that decision: - active branch and pull-request footprints: the files, modules, schemas, and interfaces each running task is changing; - the Shared Resource and Lease Registry: which leases are held or queued, which model is loaded on `ml-server`, and which GPU workers are free. -Repository code, shell commands, and edits are outside this role; read a task's footprint from the owner's projection rather than from its worktree. When a projection is missing or stale, say which one and treat the affected issue as not yet safe to dispatch. +Work only through these projections and the owner commands assigned to you: read a task's footprint from the projection, not its worktree, and leave repository code and shell commands to the roles that own them. When a projection is missing or stale, say which one and treat the affected issue as not yet safe to dispatch. ## Select a wave @@ -32,9 +32,9 @@ Follow the [wave selection guide](wave-selection.md). A wave is a set of Ready i ## Autopilot -- **When Autopilot is `Off`**, report portfolio status and propose waves for the Operator to approve. Dispatch nothing. Present each proposed wave with its members, the held issues and their reasons, and the resource batching it assumes. -- **When Autopilot is `On`**, dispatch each compatible wave through the owner's dispatch command, then confirm from the Portfolio Read Model that each task started. Report any task the owner refused, with the owner's reason. -- When the Operator pauses Autopilot or starts a conversation, finish or abandon the current step at the next safe turn boundary, dispatch nothing further, and answer the Operator. Running tasks continue; do not describe them as paused. +- **When Autopilot is `Off`**, report portfolio status and propose waves for the Operator to approve. Present each proposed wave with its members, the held issues and their reasons, and the resource batching it assumes. Dispatch only a wave the Operator explicitly approves, exactly as approved, through the owner's dispatch command. +- **When Autopilot is `On`**, dispatch each compatible wave through the owner's dispatch command, then confirm from the Portfolio Read Model that each task started. Report any task that did not start, with the waiting reason the owner reports. +- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: dispatch nothing further, answer the Operator, and name any wave left partly dispatched. Tell the Operator that running tasks continue. ## Escalate diff --git a/packages/coordinator-dispatch/relayview-skill.json b/packages/coordinator-dispatch/relayview-skill.json index c6d3d04..ab2654a 100644 --- a/packages/coordinator-dispatch/relayview-skill.json +++ b/packages/coordinator-dispatch/relayview-skill.json @@ -9,11 +9,11 @@ "files": [ { "path": "SKILL.md", - "sha256": "8e60d4d9661daa0c078fdb06be085b3ecea4c534f7c7791ea5cf78e41108cc92" + "sha256": "dc2361081d3d3827c0088605cd622b7c6729176dc22c4b208d065f2d8c692107" }, { "path": "wave-selection.md", - "sha256": "1ab04d30e2bbc1a909de284fe4360e1a97d7623fb2ac670c1cba306f73cf3027" + "sha256": "449fe0c5e4085e2fa9f3373884fc46bb8dc6c552449f14fa19f855e96acd0bd5" } ] } diff --git a/packages/coordinator-dispatch/wave-selection.md b/packages/coordinator-dispatch/wave-selection.md index 37fdec0..3c6f59d 100644 --- a/packages/coordinator-dispatch/wave-selection.md +++ b/packages/coordinator-dispatch/wave-selection.md @@ -5,19 +5,19 @@ Hold two issues out of the same wave when they would change the same thing in incompatible ways. Look for: - **Overlapping files or modules.** Compare each candidate's likely footprint, from its issue body and acceptance criteria, with running branch and pull-request footprints and with the other candidates. Two edits to one module's public surface contend; two edits to unrelated functions in one large file usually do not. -- **Competing schema migration or interface versions.** Two tasks that each add a SQLite schema migration, or each bump the same API's minor version, must run in sequence; the second rebases onto the first. +- **Competing schema migration or interface versions.** Two tasks that each add a SQLite schema migration, or each bump the same API's minor version, must run in sequence. - **An architectural decision still in flight.** When a running task or open specification is deciding a design question, hold candidates whose approach depends on the answer. - **Competing external services.** Two tasks that exercise, reconfigure, or reset the same external service or test environment contend even when their code does not overlap. -Name the evidence for each held pair: the file, module, migration, interface, decision, or service, and where you read it. When the evidence is only a guess from an issue title, say so and prefer holding the newer candidate. +Name the evidence for each held pair: the file, module, migration, interface, decision, or service, and where you read it. When the evidence is only a guess from an issue title, say so and hold the candidate that comes later in the owner's Ready order. ## Resource affinity - Group Ready tasks that need the same `ml-server` model, so the model loads once for the group. -- Prefer a candidate whose resource is free or already loaded over one that would force a reload, unless the Operator's priority order says otherwise. +- Prefer a candidate whose resource is free or already loaded over one that would force a reload, even when it comes later in the owner's Ready order. - Size the wave to the free GPU workers the Lease Registry reports; extra GPU tasks wait in the queue. - When a task waits, give its queue reason from the registry: the lease it waits for, who holds it, and its position, for example "waiting for `ml-server:qwen-27b`; held by #412; second in queue". ## Aggressiveness -The default is moderate: admit a candidate when you found no contention, and hold it when you found plausible contention you could not rule out. Priority order breaks ties. Prefer a smaller wave whose members are clearly independent over a larger one that risks rework. +The default is moderate: admit a candidate when you found no contention, and hold it when you found plausible contention you could not rule out. Among otherwise equal candidates, the owner's Ready order decides. Prefer a smaller wave whose members are clearly independent over a larger one that risks rework. diff --git a/tests/test_packages.py b/tests/test_packages.py index 6ad0877..b1da1c2 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -61,7 +61,7 @@ class PackageTests(unittest.TestCase): "`portfolio_conflict`", "`unique_resource_needed`", "queue reason", "The owner grants leases"): self.assertIn(phrase, text) - # Nudging and reorientation belong to coordinator-recovery. + # Nudging, reorientation and the Working Ledger are out of scope here (issue #27). for phrase in ("nudge", "reorient", "Working Ledger"): self.assertNotIn(phrase, text)