diff --git a/OVERRIDING.md b/OVERRIDING.md index 21bae64..c6c7017 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -202,7 +202,8 @@ after. Each package forks independently: lint, static analysis, unit and integration tests: seconds, not minutes) after each change and resolves Planner feedback before sealing a candidate for review and the Building Inspector. On genuine specification ambiguity, - an unexpected sensitive boundary, or scope creep, it raises a + an unexpected sensitive boundary, a visible tradeoff the specification does + not settle, or scope creep, it raises a `needs_operator_decision` or `scope_exceeded` flag to the Planner instead of paging the Operator or improvising, and it never escalates with a typed reason itself; `planner-scope` settles or promotes the flag. Its handoff diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 09579fb..379d2ff 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -58,11 +58,14 @@ or step changes; every earlier release keeps its bytes. - **Before (0.13.0):** documentation reconciliation, clarification with the Planner, and review content naming the candidate and its focused checks. -- **After:** `SKILL.md` adds two short sections that defer to the guide: +- **After:** `SKILL.md` adds three short sections that defer to the guide: "Converge before sealing" (iterate on the Plan's Implementer fast checks and - Planner feedback before sealing a candidate for the Building Inspector) and - "Flag instead of escalating" (send an unsettled decision to the Planner as a - flag rather than to the Operator). `handoff.md` carries the rules. Its new + Planner feedback before sealing a candidate for the Building Inspector), + "Flag instead of escalating" (send a decision the guide's triggers describe + to the Planner as a flag rather than to the Operator), and "Hand off", which + replaces the inline list of report items with the guide's review content + and completes when the handoff states the fast-check results on the exact + candidate. `handoff.md` carries the rules. Its new "Inner loop" section defines fast checks (types, lint, static analysis, unit and integration tests: seconds, not minutes), falls back to the repository's focused checks when the Plan names none, and never presents a @@ -72,9 +75,10 @@ or step changes; every earlier release keeps its bytes. tradeoff, and `scope_exceeded` for scope creep. It never pages the Operator or silently improvises, raises one flag per decision and never just to be safe, and uses the message to the Planner as the fallback when no flag - interface is assigned. Review content adds declared test-resource readiness - and known gaps. The description names the new scope. The package names no - typed escalation reason: the Implementer only flags. + interface is assigned. Review content adds declared test-resource readiness, + known gaps, and the documentation disposition and manual-evidence observer + that `SKILL.md` previously listed. The description names the new scope. + The package names no typed escalation reason: the Implementer only flags. - **Fork:** schema 1 and the two declared files are unchanged. The inner-loop and flag rules live in `handoff.md`, so a fork that keeps its own `handoff.md` can adopt them without touching `SKILL.md`; recalculate the diff --git a/packages/implementer-handoff/SKILL.md b/packages/implementer-handoff/SKILL.md index 1d3d7c5..a658cb7 100644 --- a/packages/implementer-handoff/SKILL.md +++ b/packages/implementer-handoff/SKILL.md @@ -8,18 +8,18 @@ metadata: # Implementer handoff -During the assigned implementation step, keep the repository's current-behavior documentation aligned with the code and checks you actually completed. Read the project's documentation rules and the relevant existing contract before editing it. Use the [handoff guide](handoff.md) for the inner loop, flags to the Planner, clarification, documentation disposition and review content. +During the assigned implementation step, keep the repository's current-behavior documentation aligned with the code and checks you actually completed. Read the project's documentation rules and the relevant existing contract before editing it. Use the [handoff guide](handoff.md) for the inner loop, flags to the Planner, clarification, documentation and review content. ## Converge before sealing -Work in a tight inner loop with the Planner, as the handoff guide describes: after each change, run the Plan's Implementer fast checks, and iterate until they pass and the Planner feedback is resolved, before sealing a candidate. The Building Inspector's runtime verification is slow and scarce; it should find what fast checks cannot, not what they would have caught. +Work in a tight inner loop with the Planner, as the handoff guide describes: after each change, run the Plan's Implementer fast checks, and iterate until they pass and the Planner feedback is resolved before sealing a candidate. When a check cannot pass, report it instead. The Building Inspector's runtime verification is slow and scarce; it should find what fast checks cannot, not what they would have caught. ## Flag instead of escalating -When a question needs a decision that the specification, the Plan, and the project's contracts do not settle, raise a `needs_operator_decision` or `scope_exceeded` flag to the Planner as the handoff guide describes, rather than escalating to the Operator yourself. The Planner settles the flag inside the approved specification or escalates it. +When you meet a decision that one of the handoff guide's flag triggers describes, raise a `needs_operator_decision` or `scope_exceeded` flag to the Planner rather than escalating to the Operator yourself. The Planner settles the flag inside the approved specification or escalates it. ## Hand off -Prepare a concise, attributable review handoff when the assigned workflow gives you a place to submit one. Identify the exact candidate, the fast checks and their observed results on it, declared test resource readiness and known gaps, any manual evidence and its observer, open flags, unresolved limitations, and the documentation disposition. A command attempted is not a check passed; report failures and stale evidence explicitly. +Prepare a concise, attributable review handoff with the content the handoff guide lists when the assigned workflow gives you a place to submit one. A command attempted is not a check passed; report failures and stale evidence explicitly. Use only the Implementer's assigned tools and owner interfaces. The owner verifies validation, review, provider effects, and stage readiness; your prose is a report for that process. This step is complete when documentation describes verified behavior and the handoff states the fast-check results on the exact candidate you seal and lets a reviewer reproduce the relevant checks. diff --git a/packages/implementer-handoff/handoff.md b/packages/implementer-handoff/handoff.md index 80ce1f0..c32f038 100644 --- a/packages/implementer-handoff/handoff.md +++ b/packages/implementer-handoff/handoff.md @@ -24,7 +24,7 @@ While a flag is open, continue the work it does not affect, and do not build the Read the relevant files and make focused changes. Use the assigned investigation method for repository discovery; this handoff method owns clarification, flags, and report preparation. -Ask the planner for more information when blocked after reasonable investigation. If the final contract appears wrong, explain the mismatch clearly, make the safest local correction if obvious within the authoritative scope, and validate it; when the correction is not obvious, raise a flag instead. Clarification methods guide communication; scope changes require owner authority. +Ask the Planner for more information when blocked after reasonable investigation. If the final contract appears wrong, explain the mismatch clearly, make the safest local correction if obvious within the authoritative scope, and validate it; when the correction is not obvious, raise a flag instead. Clarification methods guide communication; scope changes require owner authority. ## Documentation @@ -36,7 +36,8 @@ Ask the planner for more information when blocked after reasonable investigation - Summarize the user-visible change and its bounded impact. - Name the candidate revision and the fast checks run against it, with observed pass or failure results. -- Report declared test resource readiness: for each resource the Plan's verification goals need, say whether you confirmed it is available with your assigned tools, could not check it, or found it missing. Do not report a mock as the declared resource. +- Report declared test-resource readiness: for each resource the Plan's verification goals need, say whether you confirmed it is available with your assigned tools, could not check it, or found it missing. Do not report a mock as the declared resource. - List known gaps honestly: acceptance observations no fast check covers, verification goals and remaining manual Operator checks still open, skipped or flaky checks, and open flags. +- Record the documentation disposition, and name any manual evidence with its observer. - Give a reviewer executable steps and expected observations for any behavior that automated checks cannot establish. - State remaining uncertainty and recovery steps. Attribute provider or Operator observations to their actual source. diff --git a/packages/implementer-handoff/relayview-skill.json b/packages/implementer-handoff/relayview-skill.json index eac6aae..2f89cd0 100644 --- a/packages/implementer-handoff/relayview-skill.json +++ b/packages/implementer-handoff/relayview-skill.json @@ -9,11 +9,11 @@ "files": [ { "path": "SKILL.md", - "sha256": "07f57e2bf8278630cb2b233c739b4cf703458c614cc6f7fe382d2fc34ea99bd4" + "sha256": "c4c814afc5cadcf3b65e741e02ac620035a8283ec7409e6ae64042ff33a1f089" }, { "path": "handoff.md", - "sha256": "d3dcd9b1e566d41fd8ad0c55212bc42a33ca1583931f834d0e74f04a70a5f7b3" + "sha256": "2e8cef2f3eac1bb9cfcf6c3bac4ff0f58a4516e8f679c54739789801f28a9040" } ] } diff --git a/tests/test_implementer.py b/tests/test_implementer.py index df8c19e..6add375 100644 --- a/tests/test_implementer.py +++ b/tests/test_implementer.py @@ -77,13 +77,14 @@ class InnerLoopTests(unittest.TestCase): handoff = (ROOT / "packages/implementer-handoff/handoff.md").read_text() skill = (ROOT / "packages/implementer-handoff/SKILL.md").read_text() for rule in ("seconds, not minutes", "types, lint, static analysis", "genuine specification ambiguity", - "Do not page the Operator", "silently improvise"): + "Do not page the Operator", "silently improvise", "test-resource readiness", "known gaps", + "documentation disposition"): with self.subTest(rule=rule): self.assertIn(rule, handoff) self.assertNotIn(rule, skill) def test_reports_test_resource_readiness_and_known_gaps(self): - for phrase in ("declared test resource", "readiness", "known gap", "verification goal", + for phrase in ("declared test-resource", "readiness", "known gap", "verification goal", "remaining manual Operator check"): with self.subTest(phrase=phrase): self.assertIn(phrase.lower(), self.text.lower()) @@ -148,7 +149,9 @@ class ReleaseNotesTests(unittest.TestCase): match = re.search(r"^### Implementer inner-loop and flag packages\n.*?(?=^##)", text, re.M | re.S) self.assertIsNotNone(match, "no Implementer section in OVERRIDING.md") for phrase in ("`implementer-handoff`", "`handoff.md`", "`implementer-communication`", - "`needs_operator_decision`", "`scope_exceeded`", "(RELEASE-NOTES.md)"): + "`needs_operator_decision`", "`scope_exceeded`", "(RELEASE-NOTES.md)", + "genuine specification ambiguity", "unexpected sensitive boundary", + "visible tradeoff", "scope creep"): with self.subTest(phrase=phrase): self.assertIn(phrase, match.group(0))