diff --git a/OVERRIDING.md b/OVERRIDING.md index 84862cd..e01ad1f 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -236,19 +236,22 @@ its message to the Planner and lists open flags in the handoff. From `v0.18.0`, the Implementer, Tester, and Technical Coordinator use a repository's Feature Map, its versioned list of user-facing capabilities with their entrypoints, owning paths, and checks, and its reusable Verification -Driver instead of writing throwaway verification scripts for each task. Until -RelayView pins `v0.18.0`, it uses the earlier releases of these packages. The -[release notes](RELEASE-NOTES.md) summarize each package's change, before and -after. Each package forks independently, and each falls back to its earlier -behavior when a repository has no Feature Map: +Driver instead of writing throwaway verification scripts for each task. +RelayView pins neither `v0.16.0` nor `v0.18.0` yet, so its Implementer runs the +`v0.13.0` `implementer-handoff`, and it admits no Tester or Coordinator +package. The [release notes](RELEASE-NOTES.md) summarize each package's +change, before and after. Each package forks independently. When a repository +has no Feature Map, the two updated packages keep their earlier behavior and +`coordinator-release-verify` verifies only the flows the Operator names: -- **`implementer-handoff`** compares each modified path with the owning paths - of the Feature Map entries, runs the mapped fast checks in the inner loop - after each change, and runs the mapped Verification Driver checks once the - fast checks pass and again on the exact candidate before sealing. Its - handoff reports Feature Map coverage: the mapped checks run and their - results, checks not run and why, and unmapped modified paths. It changes the - Feature Map only when the Plan includes that change. Fork `handoff.md` to +- **`implementer-handoff`** notes the Feature Map entries that own each + modified path, using the owner's mapping when it reports one, runs the + mapped fast checks in the inner loop after each change, and runs the + Verification Driver checks that the Plan or an entry assigns to the + Implementer once the fast checks pass and again on the exact candidate + before sealing. Its handoff reports Feature Map coverage: the mapped checks + run and their results, checks not run and why, and unmapped modified paths. + It changes the Feature Map only when the Plan includes that change. Fork `handoff.md` to change which checks run, when, or how coverage is reported. - **`tester-inspection`** finds the Feature Map entries that cover the candidate's changes and verification goals, drives each flow from its @@ -261,10 +264,11 @@ behavior when a repository has no Feature Map: - **`coordinator-release-verify`** is a manual method the Operator invokes with `/skill:coordinator-release-verify`, usually after a release or a merged wave. It plans a bounded outer-loop release or exploratory run across - the Feature Map at one exact revision, launches it through the owner's - release verification command, reproduces each failure, and returns - repro-backed candidate bug drafts for the Specification Designer and the - Operator to triage. It files and changes no issue and touches no branch. + the Feature Map at one exact revision and launches it through the owner's + release verification command, but only with that revision, a Feature Map or + flows the Operator named, and a budget the Operator gave or approved. It + reproduces each failure and returns repro-backed candidate bug drafts for + the Specification Designer and the Operator to triage. It files and changes no issue and touches no branch. Fork its `SKILL.md` to change which entries a run covers first, which exploratory variations it tries, or the candidate bug draft's fields; keep schema 1 and `disable-model-invocation: true`. diff --git a/README.md b/README.md index 0b9ffc2..f6f4487 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ 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. +The not-yet-tagged v0.18.0 release adds Feature Map verification. `implementer-handoff` runs the checks a repository's Feature Map maps to the changed paths before sealing a candidate and reports that coverage, `tester-inspection` drives inspection through the Feature Map's entrypoints and the repository's Verification Driver and reports exact Feature Map coverage beside the remaining manual checks, and the new manual `coordinator-release-verify` runs bounded outer-loop release verification and returns repro-backed candidate bug drafts for triage. Without a Feature Map, the two updated packages keep their earlier behavior and the release method verifies only the flows the Operator names. See [Feature Map verification packages](OVERRIDING.md#feature-map-verification-packages). -The not-yet-tagged v0.18.0 release adds Feature Map verification. `implementer-handoff` runs the checks a repository's Feature Map maps to the changed paths before sealing a candidate and reports that coverage, `tester-inspection` drives inspection through the Feature Map's entrypoints and the repository's Verification Driver and reports exact Feature Map coverage beside the remaining manual checks, and the new manual `coordinator-release-verify` runs bounded outer-loop release verification and returns repro-backed candidate bug drafts for triage. Each falls back to its earlier behavior when a repository has no Feature Map. See [Feature Map verification packages](OVERRIDING.md#feature-map-verification-packages). Planner direct-address presentation is supplied by planner-communication. Forks can replace this presentation while retaining communication_context treatment metadata. The not-yet-tagged v0.16.0 release updates `planner-scope`, `planner-communication`, `implementer-handoff`, `implementer-communication`, `code-review-auto`, `code-review`, and `reviewer-communication`: the Planner turns the Specification Designer's requested proof into Implementer fast checks and Building Inspector verification goals, resolves or promotes Implementer escalation flags, and escalates with typed reasons; the Implementer converges those fast checks before sealing a candidate and routes uncertainty and scope flags to the Planner instead of the Operator; and the Reviewer proposes guardrails. `planner-scope` keeps schema 2 and its `issueClaim`. Apart from these and the new Tester, Specification Designer, and Coordinator packages, other packages retain their existing versions. The [release notes](RELEASE-NOTES.md) give each changed package's before and after for fork maintainers. diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 72e941a..33345a2 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -15,9 +15,10 @@ Feature Map and its Verification Driver and reports exact coverage, and a new manual Coordinator method runs bounded release verification and drafts repro-backed bugs. The Feature Map and Verification Driver contracts, coverage records, and release-run isolation are proposed in RelayView and not yet -shipped, so each package falls back to its earlier behavior when a repository -has no Feature Map, and the release method returns a run plan when no release -verification command is assigned. No schema, role, or step changes; every +shipped, so the two updated packages keep their earlier behavior when a +repository has no Feature Map, the release method then verifies only the flows +the Operator names, and it returns a run plan when no release verification +command is assigned. No schema, role, or step changes; every earlier release keeps its bytes. ### `implementer-handoff` @@ -25,8 +26,9 @@ earlier release keeps its bytes. - **Before (0.16.0):** the inner loop ran the Plan's fast checks, or the repository's focused checks, with no notion of which user-facing capabilities a change touched. -- **After:** `handoff.md` adds "Feature Map checks": compare each modified - path with the owning paths of the Feature Map entries, run the mapped fast +- **After:** `handoff.md` adds "Feature Map checks": note the Feature Map + entries that own each modified path, from the owner's mapping when it + reports one and otherwise by their owning paths, run the mapped fast checks with the Plan's fast checks after each change, and run the Verification Driver checks that the Plan or a noted entry assigns to the Implementer once the fast checks pass and again on the exact candidate @@ -71,7 +73,9 @@ earlier release keeps its bytes. `/skill:coordinator-release-verify`. It plans a bounded run at one exact revision, choosing changed entries first, then cross-feature flows, then unchanged entries, with exploratory variations and seeded property checks. - It launches the run through the owner's release verification command in + Without a budget from the Operator it returns the plan with a proposed one + and waits for approval; with no Feature Map and no named flows, or a missing + revision projection, it launches nothing. It launches the run through the owner's release verification command in isolation from every branch, reproduces each failure before drafting it, and returns a Run Summary, Candidate Bug Drafts (title, Feature Map entry, repro steps, expected and observed behavior, proof, frequency and severity, diff --git a/packages/coordinator-release-verify/SKILL.md b/packages/coordinator-release-verify/SKILL.md index adb5ae0..2b6b745 100644 --- a/packages/coordinator-release-verify/SKILL.md +++ b/packages/coordinator-release-verify/SKILL.md @@ -22,25 +22,25 @@ Read these from the owner's projections fresh for this run, and note each one's - the Shared Resource and Lease Registry, for the resources the run needs, such as a GPU worker or the model loaded on `ml-server`; - open issues and pending Review Packets, so a known defect is not drafted again. -Work only through these projections and the owner commands assigned to you: leave repository code and shell commands to the roles that own them. +Work only through these projections and the owner commands assigned to you: leave repository code and shell commands to the roles that own them. When a projection is missing or stale, name it in the Run Summary. Launch nothing without the exact revision, or when the repository has a Feature Map that the projection cannot show at that revision; without the issue projection, mark every draft as not yet checked for duplicates. Choose the entries in this order, and stop adding when the budget is spent: -1. Entries whose owning paths changed since the previous release. +1. Entries changed since the previous release. When the owner reports the entries changed since the previous release, use its list; otherwise take the entries whose owning paths the merges since then changed. 2. Cross-feature flows that pass through a changed entry and another entry, such as data created in one feature and shown, edited, or exported in another. 3. Unchanged entries, oldest verification first, as the remaining budget allows. For each chosen entry, plan the expected path first, then exploratory variations of it: repeat, reorder, interrupt, or undo steps; reload or navigate back mid-flow; use empty, boundary, and long inputs; run two flows against the same data. Where an entry states a property that must hold whatever the order or input, such as saved state surviving a reload, plan property checks that try many orders or inputs from a recorded seed. -Set the run's bounds before launching it: the exact revision, the entries, the time and run budget, and the resources it needs. Keep the budget the Operator gave; without one, propose a modest one in the plan and say so. A run never extends its own budget. +Set the run's bounds before launching it: the exact revision, the entries, the time and run budget, and the resources it needs. Keep the budget the Operator gave. Without one, return the run plan with a modest proposed budget under Run Summary, and launch only after the Operator approves it. A run never extends its own budget. ## Launch the run -Launch the run through the owner's release verification command, which runs it in isolation against the exact revision. The run must never mutate the default branch, a release branch, or any issue branch; when the command offers only a target that would, stop and report it instead of launching. The owner grants the leases the run needs; when one is queued, report the queue reason from the Lease Registry and wait rather than launching without it. +Launch the run through the owner's release verification command, which runs it in isolation against the exact revision. The run must never mutate the default branch, a release branch, or any issue branch; when the command offers only a target that would, stop and report it instead of launching. The owner grants the leases the run needs; when one is queued, report the queue reason from the Lease Registry and wait rather than launching without it. If the lease is still queued when the budget's time runs out, launch nothing and report it under Coverage Gaps. When no release verification command is assigned to you, launch nothing. Return the run plan under Run Summary for the Operator to start, with each section below written "Not run". Never stand in for the command with throwaway scripts. -When the repository has no Feature Map, verify only the flows the Operator named, list the missing map under Coverage Gaps, and treat the run as exploratory. +When the repository has no Feature Map, verify only the flows the Operator named, list the missing map under Coverage Gaps, and treat the run as exploratory. When the repository has no Feature Map and the Operator named no flows, launch nothing: report the missing map and ask the Operator which flows to verify. ## Confirm each defect diff --git a/packages/coordinator-release-verify/relayview-skill.json b/packages/coordinator-release-verify/relayview-skill.json index d398c48..ec6e372 100644 --- a/packages/coordinator-release-verify/relayview-skill.json +++ b/packages/coordinator-release-verify/relayview-skill.json @@ -9,7 +9,7 @@ "files": [ { "path": "SKILL.md", - "sha256": "5999b2e5931292f1441d0c726174ed0d11c91f6d2d795926f154c999b15a29b8" + "sha256": "aec981185a9990c03a882d281c886874361277c64944f54d8fb94ec0467525c2" } ] } diff --git a/packages/implementer-handoff/handoff.md b/packages/implementer-handoff/handoff.md index 1340865..dacd83a 100644 --- a/packages/implementer-handoff/handoff.md +++ b/packages/implementer-handoff/handoff.md @@ -13,7 +13,7 @@ When the repository has a Feature Map, use it to find the checks your change needs, rather than writing throwaway verification scripts: -- After each change, compare each modified path with the owning paths of the Feature Map entries, and note every entry that owns one. A modified path that no entry owns is unmapped. +- After each change, note every Feature Map entry that owns a modified path. When the owner reports the entries a change touches, use its mapping; otherwise compare each modified path with the owning paths of the entries. A modified path that no entry owns is unmapped. - Run the mapped fast checks of each noted entry with the Plan's fast checks after each change, through the repository's Verification Driver where the entry names it. - Once the fast checks pass, run the Verification Driver checks that the Plan or a noted entry assigns to the Implementer, and run them again on the exact candidate before sealing. When one needs a declared test resource you cannot reach with your assigned tools, do not substitute a mock: record it as not run and leave it to the Building Inspector. - When the change needs a check that neither the Feature Map nor the driver offers, add it as an ordinary test where the Plan allows; otherwise list it as a known gap. diff --git a/packages/implementer-handoff/relayview-skill.json b/packages/implementer-handoff/relayview-skill.json index 0c43280..f0d52e9 100644 --- a/packages/implementer-handoff/relayview-skill.json +++ b/packages/implementer-handoff/relayview-skill.json @@ -13,7 +13,7 @@ }, { "path": "handoff.md", - "sha256": "72a79cc3f0e037f984009b4137191e89e4cf9e5afd739092f989a1b316051763" + "sha256": "6187b49c95b45c1b2cd67b750e53ad5361d7b006c57eacd5484ab46814f87c1d" } ] } diff --git a/tests/test_feature_map.py b/tests/test_feature_map.py index 1b7b48b..9d07abf 100644 --- a/tests/test_feature_map.py +++ b/tests/test_feature_map.py @@ -89,6 +89,9 @@ class ImplementerFeatureMapTests(unittest.TestCase): with self.subTest(phrase=phrase): self.assertIn(phrase, review) + def test_prefers_the_owners_path_mapping(self): + self.assertIn("When the owner reports the entries a change touches, use its mapping", self.handoff) + def test_does_not_edit_the_feature_map_outside_the_plan(self): self.assertIn("Change the Feature Map only when the Plan", self.handoff) @@ -171,6 +174,20 @@ class ReleaseVerifyTests(unittest.TestCase): # A defect is drafted only when it reproduced; a one-off failure is reported apart. self.assertIn("Draft a defect only when it reproduced", self.text) + def test_launches_nothing_without_a_scope_or_an_approved_budget(self): + # No Feature Map and no named flows leaves nothing to verify; a budget + # the Coordinator proposes itself needs the Operator's approval first. + self.assertIn("When the repository has no Feature Map and the Operator named no flows", self.text) + self.assertIn("launch only after the Operator approves it", self.text) + self.assertNotIn("propose a modest one in the plan and say so", self.text) + + def test_handles_missing_or_stale_projections_and_queued_leases(self): + for phrase in ("When a projection is missing or stale", + "When the owner reports the entries changed since the previous release, use its list", + "the lease is still queued when the budget's time runs out"): + with self.subTest(phrase=phrase): + self.assertIn(phrase, self.text) + def test_never_files_or_changes_the_tracker(self): for phrase in ("File no issue", "change no issue"): with self.subTest(phrase=phrase): @@ -213,6 +230,31 @@ class DocumentationTests(unittest.TestCase): with self.subTest(phrase=phrase): self.assertIn(phrase, " ".join(match.group(0).split())) + def test_docs_do_not_claim_an_earlier_release_for_the_new_package(self): + # coordinator-release-verify is new: it has no earlier release or + # behavior to fall back to, and RelayView admits no Tester or + # Coordinator package yet. + overriding = (ROOT / "OVERRIDING.md").read_text() + section = " ".join(re.search(r"^### Feature Map verification packages\n.*?(?=^##)", + overriding, re.M | re.S).group(0).split()) + notes = (ROOT / "RELEASE-NOTES.md").read_text() + notes = " ".join(notes[notes.index("## v0.18.0"):notes.index("### `implementer-handoff`")].split()) + readme = " ".join((ROOT / "README.md").read_text().split()) + for name, text in (("OVERRIDING.md", section), ("RELEASE-NOTES.md", notes), ("README.md", readme)): + with self.subTest(document=name): + self.assertNotIn("each falls back to its earlier behavior", text.lower()) + self.assertNotIn("Each falls back to its earlier behavior", text) + self.assertNotIn("it uses the earlier releases of these packages", section) + self.assertIn("assigns to the Implementer", section) + + def test_readme_paragraph_stands_alone(self): + readme = (ROOT / "README.md").read_text() + start = readme.index("The not-yet-tagged v0.18.0 release") + self.assertEqual(readme[start - 2:start], "\n\n") + self.assertNotEqual(readme[start - 3], "\n") + end = readme.index("\n", start) + self.assertEqual(readme[end:end + 2], "\n\n") + def test_overriding_records_the_proposed_owner_boundary(self): rows = [row for row in table_rows(guide_section((ROOT / "OVERRIDING.md").read_text(), "What a skill controls and what the owner enforces"))