Address review: accurate fallback docs, bounded launch conditions
coordinator-release-verify launches nothing without the exact revision, a Feature Map or flows the Operator named, or a budget the Operator gave or approved; it names missing or stale projections, stops when a queued lease outlasts the budget, and uses the owner's changed-entry list when one is reported. implementer-handoff uses the owner's path mapping when reported. OVERRIDING, README, and the release notes no longer claim an earlier release or behavior for the new package, OVERRIDING scopes driver checks to those assigned to the Implementer, and the README paragraph stands alone. Refs #29 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dfa875ad5a
commit
b1b3e29e14
8 files changed
+81
-31
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user