Add first-party Tester inspection and communication packages
tester-inspection (schema 1) teaches the Building Inspector method: exercise the exact sealed candidate as a user, capture requested proof, separate verified runtime observations from remaining manual Operator checks, and escalate with a typed reason and risk summary. tester-communication (schema 3, communication_context) presents evidence-first proof summaries. Both target v0.15.0; the override guide, contract, and README list them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
becb748094
commit
e20d668e3f
9 files changed
+196
-7
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import re
|
||||
import hashlib
|
||||
import shutil
|
||||
import tempfile
|
||||
@@ -34,6 +35,43 @@ class PackageTests(unittest.TestCase):
|
||||
self.assertIn("acknowledgement", text)
|
||||
self.assertIn("Markdown", text)
|
||||
|
||||
def test_tester_packages_teach_the_building_inspector_method(self):
|
||||
expected = {
|
||||
"tester-inspection": (1, None, (
|
||||
"Building Inspector", "sealed candidate", "requested proof artifact",
|
||||
"Verification Proof Bundle", "exact candidate", "remaining manual Operator checks",
|
||||
"never edit product code", "mock", "verification_incomplete",
|
||||
"behavioral_tradeoff", "unique_resource_needed", "risk summary",
|
||||
)),
|
||||
"tester-communication": (3, "communication_context", (
|
||||
"observed behavior", "artifact", "defects found", "manual-check checklist",
|
||||
"proportional", "acknowledgement", "Markdown",
|
||||
)),
|
||||
}
|
||||
for name, (schema, treatment, phrases) in expected.items():
|
||||
with self.subTest(name=name):
|
||||
package = ROOT / "packages" / name
|
||||
check_package(package)
|
||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||
self.assertEqual((manifest["role"], manifest["step"]), ("tester", "testing"))
|
||||
self.assertEqual(manifest["schemaVersion"], schema)
|
||||
self.assertEqual(manifest.get("treatment"), treatment)
|
||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.15.0"})
|
||||
skill = (package / "SKILL.md").read_text()
|
||||
frontmatter = skill.split("---", 2)[1]
|
||||
self.assertIn("relayview-version: 0.15.0", frontmatter)
|
||||
self.assertNotIn("disable-model-invocation", frontmatter)
|
||||
text = "".join((package / item["path"]).read_text() for item in manifest["files"])
|
||||
for phrase in phrases:
|
||||
self.assertIn(phrase.lower(), text.lower())
|
||||
# Owner artifact and tool schemas stay out of prose: no JSON, no
|
||||
# field or tool identifiers beyond the typed escalation reasons.
|
||||
body = text.replace(frontmatter, "")
|
||||
self.assertNotIn("{", body)
|
||||
self.assertNotIn("```", body)
|
||||
identifiers = set(re.findall(r"\b[a-z]+(?:_[a-z]+)+\b|\b[a-z]+[A-Z]\w*\b", body))
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user