Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0)
planner-scope (schema 2, issueClaim unchanged) now translates the Specification Designer's requested proof, fast-test completeness, and declared test resources into Implementer fast checks and Building Inspector verification goals in Plan v1. A new escalation.md resolves Implementer needs_operator_decision and scope_exceeded flags inside the approved specification or promotes them, and escalates directly with one typed Layer C reason and a short risk summary, never downgrading operator_review_required. code-review-auto and code-review share a Trust Pyramid "Propose a guardrail" section (architecture/API boundary, then static check or fast regression test, then verification harness, then a candidate prose skill as last resort) and a typed "Escalate" section. planner-communication and reviewer-communication (schema 3) frame escalations and Review Packets. RELEASE-NOTES.md gives each package's before and after for fork maintainers; OVERRIDING.md and README.md record the new versions and seams. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d3b057510
commit
7c89205e06
17 files changed
+450
-45
No files matched your search
+8
-14
@@ -111,14 +111,6 @@ class PackageTests(unittest.TestCase):
|
||||
identifiers = set(re.findall(r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b", text))
|
||||
self.assertLessEqual(identifiers, {"verification_incomplete", "behavioral_tradeoff", "unique_resource_needed"})
|
||||
|
||||
def test_automatic_review_is_only_extracted_presentation(self):
|
||||
package = ROOT / "packages/code-review-auto"
|
||||
check_package(package)
|
||||
text = (package / "SKILL.md").read_text()
|
||||
self.assertIn("path-aware, and actionable", text)
|
||||
self.assertNotIn("Report both axes", text)
|
||||
self.assertNotIn("subagent", text)
|
||||
|
||||
def test_handoff_clarification_method(self):
|
||||
package = ROOT / "packages/implementer-handoff"
|
||||
check_package(package)
|
||||
@@ -223,15 +215,15 @@ class PackageTests(unittest.TestCase):
|
||||
|
||||
def test_maintained_guidance_covers_distinct_role_steps(self):
|
||||
expected = {
|
||||
"planner-scope": ("planner", "planning", "scope.md", "Plan"),
|
||||
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation"),
|
||||
"planner-scope": ("planner", "planning", "scope.md", "Plan", "v0.16.0"),
|
||||
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation", "v0.13.0"),
|
||||
}
|
||||
for name, (role, step, resource, marker) in expected.items():
|
||||
for name, (role, step, resource, marker, release) in expected.items():
|
||||
with self.subTest(name=name):
|
||||
package = ROOT / "packages" / name
|
||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||
self.assertEqual((manifest["role"], manifest["step"]), (role, step))
|
||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
|
||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": release})
|
||||
self.assertIn(resource, [item["path"] for item in manifest["files"]])
|
||||
self.assertIn(marker, (package / "SKILL.md").read_text() + (package / resource).read_text())
|
||||
|
||||
@@ -304,13 +296,15 @@ class PackageTests(unittest.TestCase):
|
||||
def test_rejects_owner_incompatible_frontmatter_values(self):
|
||||
for old, new in (
|
||||
("metadata:\n", "disable-model-invocation: yes\nmetadata:\n"),
|
||||
("description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.", "description: "),
|
||||
(r"^description: .+$", "description: "),
|
||||
):
|
||||
with self.subTest(new=new), tempfile.TemporaryDirectory() as directory:
|
||||
package = Path(directory) / "planner-scope"
|
||||
shutil.copytree(ROOT / "packages/planner-scope", package)
|
||||
skill = package / "SKILL.md"
|
||||
skill.write_text(skill.read_text().replace(old, new))
|
||||
changed = re.sub(old, new, skill.read_text(), count=1, flags=re.M)
|
||||
self.assertNotEqual(changed, skill.read_text())
|
||||
skill.write_text(changed)
|
||||
manifest = package / "relayview-skill.json"
|
||||
data = json.loads(manifest.read_text())
|
||||
next(item for item in data["files"] if item["path"] == "SKILL.md")["sha256"] = hashlib.sha256(skill.read_bytes()).hexdigest()
|
||||
|
||||
Reference in new issue
Block a user