From 602b1baa4adffe167dde06df821ca5d905c65514 Mon Sep 17 00:00:00 2001 From: Kyle Merritt Date: Wed, 25 Nov 2026 19:37:57 -0500 Subject: [PATCH] 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 --- OVERRIDING.md | 48 +++++++++++++++++++++++++++++++--------- tests/test_overriding.py | 25 +++++++++++---------- 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/OVERRIDING.md b/OVERRIDING.md index 3f88f91..b347bdf 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -20,7 +20,7 @@ in launch order. | Role | `role` / `step` | Schemas | `communication_context` | RelayView admission | Maintained automatic default (launch order) | Other first-party packages | | --- | --- | --- | --- | --- | --- | --- | -| Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; none is assigned until the Operator selects it | +| Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; the maintained configuration assigns none | | Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | None published | | Planner | `planner` / `planning` | 1, 2, 3 | Yes | Admitted | `planner-investigation`, `planner-scope`, `planner-communication`, `research-auto` | Automatic: `codebase-design`. Manual: `grill-me`, `grilling`, `improve-codebase-architecture`, `research`, `to-questionnaire` | | Implementer | `implementer` / `implementation` | 1, 3 | Yes | Admitted | `implementer-investigation`, `implementer-handoff`, `implementer-communication` | Automatic: `tdd-auto`, `diagnosing-bugs`, `domain-modeling`. Manual: `tdd`, `pr`, `prototype`, `migrate-to-shoehorn`, `scaffold-exercises`, `shared-abstraction-refactor`, `split-large-files`, `writing-for-agents` | @@ -36,9 +36,11 @@ until it adopts them; the [contract](docs/authoritative/instruction-package-contract.md#relayview-adoption-of-the-tester-and-coordinator-pairs) lists the proposed releases and the owner changes each pair needs. -Optional automatic packages such as `tdd-auto` run only when an Operator adds -them to the role's automatic assignment. Manual packages run only when an -Operator sends `/skill:` to a session that has them assigned. +Other first-party packages run only when an Operator assigns them; see +[assign other first-party guidance](#assign-other-first-party-guidance). A +manual package's text stays out of a session until an Operator invokes it: by +sending `/skill:` to a session that has it assigned, or, for a Designer +method, through the owner's method-entry gate. ## Package matrix @@ -113,7 +115,8 @@ admission. | Review tiers | How to frame a risk or escalation summary | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed | Proposed rows come from RelayView's coordinator and verification operating -model, which RelayView documents as speculative architecture. Do not rely on +model (`docs/speculative/coordinator-and-verification-operating-model.md` in +RelayView), which RelayView documents as speculative architecture. Do not rely on an owner rule marked Proposed; until RelayView ships it, a package cannot assume it. @@ -207,6 +210,10 @@ own package and name throughout. members: [planner-investigation, team-planner-scope, planner-communication, research-auto] ``` + When a deployment's frozen communication treatment is off, RelayView + rejects a selected automatic set that contains a communication package; + leave `planner-communication` out of the set there. + - **Specification Designer:** select the imported package in the Specification Designer card, as the default (an automatic package) or as an optional method (a manual package), and save. No named set or restart @@ -215,6 +222,25 @@ own package and name throughout. New sessions for that role use the fork; existing sessions keep their captured packages. +### Assign other first-party guidance + +RelayView pre-admits the ten maintained Planner, Implementer, and Reviewer +defaults and the nine Designer packages. Settings import accepts only +`source.kind: "user"` packages, so any other first-party package, such as +`tdd-auto` or `grill-me`, is admitted through the owner catalog instead: + +1. Copy the package directory from its release, for example + `packages/tdd-auto` at tag `v0.13.0`, under `trustedSkills.root`. +2. Add it to the catalog, keyed by its ID: + + ```yaml + trustedSkills: + catalog: + tdd-auto: tdd-auto/SKILL.md + ``` + +3. Add the ID to a named set and select it as in step 8 above. + ## Release identity A release tag pins public source. Published tags are never moved or rebuilt: a @@ -245,9 +271,8 @@ a fork. ## Layer-4 authoring template -RelayView follows a trust pyramid for recurring defects: correct them as low -as possible, and write a skill only for a judgment call nothing lower can -decide. +Correct a recurring defect as low in this trust pyramid as possible, and write +a skill only for a judgment call nothing lower can decide. 1. **Architecture and APIs** — a boundary that makes the failure impossible. 2. **Static checks and fast tests** — a lint rule with a root-cause message, a @@ -256,7 +281,8 @@ decide. property test, or formal check. 4. **A role skill** — judgment that cannot be checked deterministically. -RelayView's proposed Guardrail Proposal loop would draft layer 1–3 tasks or a +RelayView's proposed Guardrail Proposal loop, described in the same +speculative operating model, uses this order. It would draft layer 1–3 tasks or a candidate layer-4 skill when a defect escapes, and would activate a skill only on explicit Operator approval. Until RelayView ships it, an Operator activates a layer-4 skill through the [fork and override recipe](#fork-and-override-recipe). @@ -324,5 +350,5 @@ After writing it, confirm each item: or owner schema, and does not restate owner-enforced rules. - [ ] The guidance changed behavior across several runs, judged from each run's tool calls, not one successful conversation. -- [ ] `python3 -m tools.packages check ` passes after recalculating - the digest. +- [ ] `python3 -m tools.packages check team-review-judgment` (with your + directory name) passes after recalculating the digest. diff --git a/tests/test_overriding.py b/tests/test_overriding.py index ac12b08..68d702b 100644 --- a/tests/test_overriding.py +++ b/tests/test_overriding.py @@ -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):