Address review: label the trust pyramid, add first-party assignment

Present the trust pyramid as authoring guidance rather than current RelayView
behavior, add the catalog path for first-party packages outside the pinned
defaults, correct manual-invocation wording for Designer methods, note the
communication-treatment set rejection, and drop the unresolved placeholder.
Derive role schemas from the contract table and pin the role matrix's launch
order to the package matrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-11-25 19:37:57 -05:00
1 parent 6c74666289
commit 602b1baa4a
2 files changed
+50 -23

No files matched your search

+13 -12
View File
@@ -20,14 +20,7 @@ ROLE_NAMES = {
"Reviewer": "reviewer",
"Tester": "tester",
}
SCHEMAS = {
"planner": "1, 2, 3",
"implementer": "1, 3",
"reviewer": "1, 3",
"designer": "1",
"tester": "1, 3",
"coordinator": "1, 3",
}
CONTRACT = ROOT / "docs/authoritative/instruction-package-contract.md"
def section(text, heading):
@@ -45,7 +38,7 @@ def section(text, heading):
if body is not None:
body.append(line)
if body is None:
raise AssertionError(f"OVERRIDING.md has no '## {heading}' section")
raise AssertionError(f"no '## {heading}' section")
return "".join(body)
@@ -86,8 +79,7 @@ class OverrideGuideTests(unittest.TestCase):
self.text = GUIDE.read_text()
def test_readme_points_operators_to_the_guide(self):
readme = (ROOT / "README.md").read_text()
self.assertTrue("(OVERRIDING.md)" in readme, "README.md does not link OVERRIDING.md")
self.assertIn("(OVERRIDING.md)", (ROOT / "README.md").read_text())
def test_package_matrix_matches_every_package_sidecar(self):
rows = table_rows(section(self.text, "Package matrix"))
@@ -112,12 +104,21 @@ class OverrideGuideTests(unittest.TestCase):
def test_role_matrix_covers_all_six_roles(self):
rows = table_rows(section(self.text, "Role matrix"))
schemas = {codes(row[0])[0]: row[2] for row in table_rows(section(CONTRACT.read_text(), "Role and step"))}
slots = {}
for row in table_rows(section(self.text, "Package matrix")):
slot = re.fullmatch(r"(\w+) automatic, (\d)\w\w", row[7])
if slot:
slots.setdefault(slot.group(1).lower(), []).append((slot.group(2), codes(row[0])[0]))
elif row[7] == "Pinned Designer default":
slots.setdefault("designer", []).append(("1", codes(row[0])[0]))
seen = {}
for row in rows:
role = ROLE_NAMES[row[0]]
seen[role] = row
self.assertEqual(codes(row[1]), [role, ROLE_STEPS[role]])
self.assertEqual(row[2], SCHEMAS[role])
self.assertEqual(row[2], schemas[role])
self.assertEqual(codes(row[5]), [name for _, name in sorted(slots.get(role, []))])
self.assertEqual(row[3].split(" ")[0], "No" if role == "designer" else "Yes")
for name in codes(row[5]):
with self.subTest(role=role, default=name):