Merge main (Coordinator recovery package) into ISSUE-28
Keep both the recovery and the manual-method rows in the role, package, and owner-boundary matrices; list recovery's seams and both fork examples (recovery automatic set, manual on-request set) in the Coordinator section; and name all five Coordinator packages as in source in the README and the contract. Align tracker hygiene with coordinator-recovery's ledger: use its single "Working Ledger" name, record an edge resolved only when either issue closes or the shared change lands, and list an edge whose evidence merely looks doubtful without changing its ledger entry. Refs #28 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
073c1cd8db
9 files changed
+230
-25
No files matched your search
+40
-8
@@ -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`. Manual, in source for the same release: `coordinator-wave-audit`, `coordinator-tracker-hygiene` |
|
||||
| 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`. 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` |
|
||||
@@ -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 |
|
||||
| `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 |
|
||||
@@ -167,7 +168,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:<name>` 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, which the Coordinator only proposes and the Operator applies | 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, 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, task state and the Working Ledger's persistence, 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 |
|
||||
|
||||
@@ -316,6 +317,10 @@ 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 |
|
||||
| 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 |
|
||||
@@ -324,12 +329,39 @@ 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. `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.
|
||||
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.
|
||||
|
||||
`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
|
||||
|
||||
@@ -80,14 +80,19 @@ 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. Two manual methods for the same release run only when the Operator
|
||||
invokes them with `/skill:<name>`: `coordinator-wave-audit` returns a
|
||||
structured wave plan for the whole Ready queue without dispatching, and
|
||||
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.
|
||||
Two manual methods for the same release run only when the Operator invokes
|
||||
them with `/skill:<name>`: `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 and apply.
|
||||
RelayView does not yet admit the `coordinator` role; when it does, its owner
|
||||
keeps prerequisites, dispatch execution, resource leases and review policy.
|
||||
proposals from the contention recorded in the Working Ledger 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,
|
||||
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.
|
||||
|
||||
|
||||
@@ -122,16 +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), `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:
|
||||
and `coordinator-dispatch` (schema 1), `coordinator-recovery` (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), `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` | In source: `coordinator-dispatch` and `coordinator-recovery` (schema 1, automatic), `coordinator-communication` (schema 3), and `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1, manual) |
|
||||
|
||||
Before RelayView pins a release containing either pair, it must:
|
||||
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
---
|
||||
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 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, 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.
|
||||
|
||||
## 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 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 of a few lines:
|
||||
|
||||
- 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.
|
||||
|
||||
## 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. Running tasks continue. After answering, follow 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.
|
||||
|
||||
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
|
||||
|
||||
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. 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
|
||||
|
||||
- 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?
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"source": {
|
||||
"kind": "first-party",
|
||||
"reference": "v0.17.0"
|
||||
},
|
||||
"role": "coordinator",
|
||||
"step": "coordination",
|
||||
"files": [
|
||||
{
|
||||
"path": "SKILL.md",
|
||||
"sha256": "cfb33967ad50dd88c3701588b621c950d8ce509918a3077b46d94f7c2a4ee183"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,7 +15,7 @@ Never change the tracker silently. This method drafts proposals for the Operator
|
||||
|
||||
## 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 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 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,8 @@ 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; list it, and mark the edge resolved in the Working Ledger through the owner's command for it.
|
||||
- **Stale:** either issue is closed or the shared change has landed. Propose nothing for the tracker; list it, and record the edge as resolved in the Working Ledger through the owner's command for it.
|
||||
- **Doubtful:** the evidence no longer seems to hold, but neither issue has closed and the shared change has not landed. Propose nothing, list it for the Operator, and leave its ledger entry unchanged.
|
||||
|
||||
When the evidence is only a guess from issue titles, say so and prefer a coordination note to a prerequisite edge.
|
||||
|
||||
@@ -41,7 +42,7 @@ Keep each proposal as small as the evidence allows:
|
||||
|
||||
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.
|
||||
End with a one-line summary: edges reviewed, proposals drafted, and stale or doubtful edges found.
|
||||
|
||||
## Check before finishing
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"files": [
|
||||
{
|
||||
"path": "SKILL.md",
|
||||
"sha256": "522fa16d3b2e7449d3093c8f40405ff44480f852bef514b4e2f976cc2de73be2"
|
||||
"sha256": "454eeffe5f5b22dad4c09826f5a864514a8616d9c6c682cbd2f7e41504f8221d"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -145,6 +145,20 @@ class OverrideGuideTests(unittest.TestCase):
|
||||
self.assertIn("wave audit", boundary[0][1])
|
||||
self.assertIn("tracker changes", boundary[0][2])
|
||||
|
||||
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)
|
||||
|
||||
@@ -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,58 @@ 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)
|
||||
# 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"))
|
||||
|
||||
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_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",
|
||||
"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",
|
||||
|
||||
Reference in new issue
Block a user