Publish the Operator role-skill override guide and layer-4 authoring template #31

Merged
anodyine merged 4 commits from ISSUE-21 into main 2026-11-25 19:45:38 -05:00
Owner

Closes #21

Summary

Adds OVERRIDING.md, the Operator's single reference for replacing RelayView's default role skills. The README now points to it in place of its incomplete package table and its stale fork-assignment text.

 /
+├── OVERRIDING.md              # role matrix, package matrix, skill vs owner boundary,
+│                              # fork recipe, first-party assignment, release identity,
+│                              # layer-4 template
 ├── README.md                  # package table and stale Designer text → links to the guide
 └── tests/
+    └── test_overriding.py     # pins the guide to every package sidecar, the contract, and the template
  • Role matrix. Covers all six roles: Specification Designer, Technical Coordinator, Planner, Implementer, Reviewer, and Tester. Each row gives role/step, allowed schemas, whether communication_context applies, RelayView admission status, and the maintained automatic defaults in launch order. It also names where a deployment sets its own defaults: workflowPresets.rolePolicies.<role>.skills and workflowPresets.reviewerSkills.

  • Package matrix. Lists every package in packages/ with its mode, schema, sidecar extra, version, release tag, and default slot. The test cross-checks it against each sidecar and frontmatter, against the role matrix's launch order and per-role lists, and against the contract's schema table.

  • Skill vs owner boundary. Separates what a package can customize from what the owner enforces. Leases, nudge budgets, the Layer A/B/C ratchet, and the Guardrail Proposal loop are marked Proposed. RelayView documents them only in docs/speculative/coordinator-and-verification-operating-model.md, and docs/agents/standards.md requires proposed behavior to be labelled. The issue text called them "always enforced"; both spec reviews agreed with this departure.

  • Fork recipe. Covers:

    • a distinct ID and source.kind: "user";
    • keeping issueClaim or communication_context;
    • a digest-recompute script;
    • check and pack;
    • trusted-root install;
    • Settings → Skills import;
    • named-set or Designer-card assignment, including the caveats for whole-mode replacement and communication-off rejection.

    A separate subsection covers assigning non-pinned first-party packages through trustedSkills.catalog, and Designer methods through the card or workflowPresets.designerSkills.

  • Release identity. Covers immutable tags, first-party-skills/<tag>/bundle-lock.json, and how to recompute and compare.

  • Layer-4 template. Gives the trust-pyramid order as authoring guidance and before/after checklists. The SKILL.md and sidecar template is admitted by check_package in the test.

README corrections. The old table omitted research-auto, code-review-auto, and the three communication packages. It labelled the automatic codebase-design, diagnosing-bugs, and domain-modeling as plain optional guidance. It also said Designer forks cannot be chosen in Settings, which contradicts RelayView's trusted-instruction-skills.md.

Evidence

  • Before: with the test written first, python3 -m unittest tests.test_overriding → FAILED (errors=4) (FileNotFoundError: .../OVERRIDING.md).

  • After: the same command → Ran 4 tests ... OK.

  • The tests can fail. Each mutation below was applied, observed failing, and reverted:

    • Setting the planner-communication row to manual / 0.13.0 → FAIL: test_package_matrix_matches_every_package_sidecar (package='planner-communication').
    • Swapping the Planner launch order in the role matrix → FAIL: test_role_matrix_matches_contract_and_packages.
    • Dropping c4-diff from the role matrix → the same failure.
  • The fork recipe runs as written (author-run in a disposable worktree, and re-run independently by two review agents). Copy planner-scope to team-planner-scope and edit it. Before the rehash, check → PackageError: team-planner-scope: changed file SKILL.md. After the recipe's rehash script, check and pack both succeed.

  • The release recompute matches RelayView's lock. At v0.14.0:

    • check packages/planner-communication → 6b730f37c0d428981b2f406fa8a66789d755f3f837c9b623197c9a4d4750fb3f
    • pack → 6f217d0fc0571c67773348692cf489cd7fa35f659ca5d1151a90051eee584f10

    These equal identity and archiveSha256 in RelayView origin/main:first-party-skills/v0.14.0/bundle-lock.json.

  • Review. /review-loop ran from fixed base c6323b8 and took three fix rounds. The final two-axis review of 2a2575d reported no actionable findings on either axis. One nonblocking note remains: a few long unwrapped Markdown lines, which do not affect rendering. RelayView facts were checked against ~/Projects/relayview origin/main: trusted-instruction-skills.md, communication-style-skills.md, the config/examples/owner-*.yaml files, and PINNED_ROLE_PACKAGES / PINNED_DESIGNER_PACKAGES in src/owner/workflowPresets.ts.

Checks run (on 2a2575d16f2367a68d8235b3ec505e34ab6d71bf)

  • python3 -m unittest discover -s tests -v — Ran 37 tests ... OK.
  • for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p" >/dev/null || echo "FAIL $p"; done — no failures.

Documentation disposition

updated: adds the current-truth OVERRIDING.md, and points the README to it in place of a stale package table, stale Designer assignment text, and an incomplete defaults sentence. No package bytes changed.

Merge Danger

Door: two-way. The change is documentation plus one test. No package, sidecar, or tool byte changes, so no release identity moves.

Blast Radius: repository readers and CI. By design, the new test fails CI whenever a later package change does not also update both matrices in OVERRIDING.md. The epic's later issues (Specification Designer, Tester, and Coordinator packages) must edit the guide together with their packages.

Rollback: git revert the merge commit. There is no state to restore.

Reviewer prerequisites

  • Python 3 (standard library only) and a clone of this repository. The checks take seconds.
  • Optional, for steps 1–2: read access to anodyine/relayview.

Manual Test Plan

  1. Action: Read OVERRIDING.md § "What a skill controls and what the owner enforces" alongside RelayView's docs/authoritative/trusted-instruction-skills.md.

    Expected: every row marked Current matches RelayView's authoritative behavior. The rows marked Proposed appear only in RelayView's docs/speculative/coordinator-and-verification-operating-model.md. Stop and comment if RelayView does not document a Current rule as current.

  2. Action: From a clone on main, run the release recompute exactly as OVERRIDING.md § "Release identity" gives it:

    git fetch --tags origin
    git switch --detach v0.14.0
    python3 -m tools.packages check packages/planner-communication
    python3 -m tools.packages pack packages/planner-communication dist/planner-communication.zip
    git switch main
    

    Expected: the commands print 6b730f37c0d428981b2f406fa8a66789d755f3f837c9b623197c9a4d4750fb3f, then 6f217d0fc0571c67773348692cf489cd7fa35f659ca5d1151a90051eee584f10, and return to main.

Post-Merge Cleanup

git switch main
git pull --ff-only origin main
git branch -d ISSUE-21
git push origin --delete ISSUE-21

🤖 Generated with Claude Code

Closes #21 ## Summary Adds `OVERRIDING.md`, the Operator's single reference for replacing RelayView's default role skills. The README now points to it in place of its incomplete package table and its stale fork-assignment text. ```diff / +├── OVERRIDING.md # role matrix, package matrix, skill vs owner boundary, +│ # fork recipe, first-party assignment, release identity, +│ # layer-4 template ├── README.md # package table and stale Designer text → links to the guide └── tests/ + └── test_overriding.py # pins the guide to every package sidecar, the contract, and the template ``` - **Role matrix.** Covers all six roles: Specification Designer, Technical Coordinator, Planner, Implementer, Reviewer, and Tester. Each row gives `role`/`step`, allowed schemas, whether `communication_context` applies, RelayView admission status, and the maintained automatic defaults in launch order. It also names where a deployment sets its own defaults: `workflowPresets.rolePolicies.<role>.skills` and `workflowPresets.reviewerSkills`. - **Package matrix.** Lists every package in `packages/` with its mode, schema, sidecar extra, version, release tag, and default slot. The test cross-checks it against each sidecar and frontmatter, against the role matrix's launch order and per-role lists, and against the contract's schema table. - **Skill vs owner boundary.** Separates what a package can customize from what the owner enforces. Leases, nudge budgets, the Layer A/B/C ratchet, and the Guardrail Proposal loop are marked **Proposed**. RelayView documents them only in `docs/speculative/coordinator-and-verification-operating-model.md`, and `docs/agents/standards.md` requires proposed behavior to be labelled. The issue text called them "always enforced"; both spec reviews agreed with this departure. - **Fork recipe.** Covers: - a distinct ID and `source.kind: "user"`; - keeping `issueClaim` or `communication_context`; - a digest-recompute script; - check and pack; - trusted-root install; - Settings → Skills import; - named-set or Designer-card assignment, including the caveats for whole-mode replacement and communication-off rejection. A separate subsection covers assigning non-pinned first-party packages through `trustedSkills.catalog`, and Designer methods through the card or `workflowPresets.designerSkills`. - **Release identity.** Covers immutable tags, `first-party-skills/<tag>/bundle-lock.json`, and how to recompute and compare. - **Layer-4 template.** Gives the trust-pyramid order as authoring guidance and before/after checklists. The `SKILL.md` and sidecar template is admitted by `check_package` in the test. README corrections. The old table omitted `research-auto`, `code-review-auto`, and the three communication packages. It labelled the automatic `codebase-design`, `diagnosing-bugs`, and `domain-modeling` as plain optional guidance. It also said Designer forks cannot be chosen in Settings, which contradicts RelayView's `trusted-instruction-skills.md`. ## Evidence - **Before:** with the test written first, `python3 -m unittest tests.test_overriding` → `FAILED (errors=4)` (`FileNotFoundError: .../OVERRIDING.md`). - **After:** the same command → `Ran 4 tests ... OK`. - **The tests can fail.** Each mutation below was applied, observed failing, and reverted: - Setting the `planner-communication` row to `manual` / `0.13.0` → `FAIL: test_package_matrix_matches_every_package_sidecar (package='planner-communication')`. - Swapping the Planner launch order in the role matrix → `FAIL: test_role_matrix_matches_contract_and_packages`. - Dropping `c4-diff` from the role matrix → the same failure. - **The fork recipe runs as written** (author-run in a disposable worktree, and re-run independently by two review agents). Copy `planner-scope` to `team-planner-scope` and edit it. Before the rehash, `check` → `PackageError: team-planner-scope: changed file SKILL.md`. After the recipe's rehash script, `check` and `pack` both succeed. - **The release recompute matches RelayView's lock.** At `v0.14.0`: - `check packages/planner-communication` → `6b730f37c0d428981b2f406fa8a66789d755f3f837c9b623197c9a4d4750fb3f` - `pack` → `6f217d0fc0571c67773348692cf489cd7fa35f659ca5d1151a90051eee584f10` These equal `identity` and `archiveSha256` in RelayView `origin/main:first-party-skills/v0.14.0/bundle-lock.json`. - **Review.** `/review-loop` ran from fixed base `c6323b8` and took three fix rounds. The final two-axis review of `2a2575d` reported no actionable findings on either axis. One nonblocking note remains: a few long unwrapped Markdown lines, which do not affect rendering. RelayView facts were checked against `~/Projects/relayview` `origin/main`: `trusted-instruction-skills.md`, `communication-style-skills.md`, the `config/examples/owner-*.yaml` files, and `PINNED_ROLE_PACKAGES` / `PINNED_DESIGNER_PACKAGES` in `src/owner/workflowPresets.ts`. ### Checks run (on `2a2575d16f2367a68d8235b3ec505e34ab6d71bf`) - `python3 -m unittest discover -s tests -v` — `Ran 37 tests ... OK`. - `for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p" >/dev/null || echo "FAIL $p"; done` — no failures. ## Documentation disposition updated: adds the current-truth `OVERRIDING.md`, and points the README to it in place of a stale package table, stale Designer assignment text, and an incomplete defaults sentence. No package bytes changed. ## Merge Danger **Door:** two-way. The change is documentation plus one test. No package, sidecar, or tool byte changes, so no release identity moves. **Blast Radius:** repository readers and CI. By design, the new test fails CI whenever a later package change does not also update both matrices in `OVERRIDING.md`. The epic's later issues (Specification Designer, Tester, and Coordinator packages) must edit the guide together with their packages. **Rollback:** `git revert` the merge commit. There is no state to restore. ## Reviewer prerequisites - Python 3 (standard library only) and a clone of this repository. The checks take seconds. - Optional, for steps 1–2: read access to `anodyine/relayview`. ## Manual Test Plan 1. [ ] **Action:** Read `OVERRIDING.md` § "What a skill controls and what the owner enforces" alongside RelayView's `docs/authoritative/trusted-instruction-skills.md`. **Expected:** every row marked **Current** matches RelayView's authoritative behavior. The rows marked **Proposed** appear only in RelayView's `docs/speculative/coordinator-and-verification-operating-model.md`. Stop and comment if RelayView does not document a Current rule as current. 2. [ ] **Action:** From a clone on `main`, run the release recompute exactly as `OVERRIDING.md` § "Release identity" gives it: ```sh git fetch --tags origin git switch --detach v0.14.0 python3 -m tools.packages check packages/planner-communication python3 -m tools.packages pack packages/planner-communication dist/planner-communication.zip git switch main ``` **Expected:** the commands print `6b730f37c0d428981b2f406fa8a66789d755f3f837c9b623197c9a4d4750fb3f`, then `6f217d0fc0571c67773348692cf489cd7fa35f659ca5d1151a90051eee584f10`, and return to `main`. ## Post-Merge Cleanup ```sh git switch main git pull --ff-only origin main git branch -d ISSUE-21 git push origin --delete ISSUE-21 ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anodyine added 1 commit 2026-11-25 19:34:48 -05:00
Publish the Operator role-skill override guide
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 4s
6c74666289
Add OVERRIDING.md with the six-role matrix, a complete package matrix
pinned to every sidecar by tests/test_overriding.py, the skill-versus-owner
boundary with proposed owner rules labelled, the fork and override recipe,
release identity verification, and a layer-4 authoring template that the
tests admit as a valid user package. Point the README at the guide in place
of its incomplete package table and stale Designer assignment text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 3 commits 2026-11-25 19:42:17 -05:00
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>
Point Operators at rolePolicies and reviewerSkills for their own defaults,
add the Designer card and designerSkills paths for the pinned methods,
correct the README's default summary, and check the role matrix lists every
package of its role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tighten default-assignment wording and the schema check
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 6s
2a2575d16f
Attribute defaults to the maintained deployment, note the owner restart for
designerSkills, and compare schema lists by entry rather than substring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine merged commit becb748094 into main 2026-11-25 19:45:38 -05:00
anodyine deleted branch ISSUE-21 2026-11-25 19:45:38 -05:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anodyine/relayview-skills#31