Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0) #37

Merged
anodyine merged 5 commits from ISSUE-24 into main 2026-11-25 21:27:38 -05:00
Owner

Summary

Closes #24. Moves five Planner and Reviewer packages to 0.16.0 (source v0.16.0, not yet tagged) for RelayView's proposed tiered review:

 packages/planner-scope/          # schema 2, issueClaim status/in-progress kept
   SKILL.md                       # + proof translation, triage, finish check
   scope.md                       # + "Translate requested proof"; Plan shape gains
                                  #   fast_checks / verification_goals / manual_operator_checks
+  escalation.md                  # Implementer flag triage + typed Layer C escalation
 packages/code-review-auto/       # + "Propose a guardrail" + "Escalate" (shared text)
 packages/code-review/            # + the same two sections, byte-identical
 packages/planner-communication/  # + Specification Designer naming, escalation framing (schema 3)
 packages/reviewer-communication/ # + Review Packet / Guardrail Proposal framing (schema 3)
+RELEASE-NOTES.md                 # before/after/fork notes per package
  • Proof translation: each requested proof artifact, fast-test completeness value, and declared test resource maps to exactly one of: an Implementer fast check, a Building Inspector verification goal, or a remaining manual Operator check. When the owner reports that no Tester step will run, the verification goals become manual Operator checks.
  • Implementer flags: once the Implementer reports needs_operator_decision / scope_exceeded, the Planner resolves the flag when the answer is strictly inside the approved specification. Otherwise it promotes the flag. #25 adds the Implementer side.
  • Direct escalation: one typed reason (boundary_crossed, spec_ambiguity, verification_incomplete, behavioral_tradeoff, convergence_exceeded) plus a 1–2 sentence risk summary. Never "just to be safe", and never downgrading operator_review_required. When the owner assigns no escalation interface, the Planner or Reviewer states the escalation in the Plan or review result instead, because RelayView has not shipped Layer C yet.
  • Trust Pyramid guardrails: for a repeatable defect class, recommend the lowest viable rung, in this order: architecture or API boundary → static check or lint rule with a root-cause message, or a fast regression test → verification harness / Feature Map → candidate prose skill (last resort, active only after the Operator approves it). Before proposing a rung, the Reviewer checks whether a lower-numbered rung would catch the class. Rungs 1–3 propose a follow-up task; rung 4 proposes a candidate skill diff.

A second commit corrects stale docs: v0.15.0 is published on origin, but the package matrix, README, and package contract still called it "not yet tagged".

Evidence

  • Before: the new tests/test_planner_reviewer.py, run against the unchanged packages, failed: Ran 12 tests … FAILED (failures=40, errors=1). The failures covered the version/source pins on all five packages, every proof-translation, flag, typed-reason, and guardrail-ladder marker, the communication framing, and a missing RELEASE-NOTES.md (the error).
  • After: Ran 60 tests … OK on reviewed head d8c73c2, and Ran 69 tests … OK on the final head 2f57b2a, after merging main's Coordinator packages (#35, #36). Review fixes were also test-first: a red run on the fix tree (Ran 13 tests … FAILED (failures=7)) covered the Tester fallback, conditional flags, rung-4 output, the lower-rung check, the Escalate sections being pinned identical, and reviewer-communication terminology. Then it went green.

New package identities and archive SHA-256 values. These were computed on d8c73c2, and the merge leaves these five packages' bytes unchanged:

Package Identity Archive SHA-256
planner-scope b117051fc56756732f74ff87b4390c8333dc057f6e5dcc9c73d27f8a349ec26d 63faf53b14c49e920926b1685ced6689bc9e20711f764fe3796b2f78a8af8dbb
planner-communication de7ab5c07b34e3feb03ac10f653e310491ed38558a08126035dab69d632dc8ef 74ff16d1ad42196bb692585dd35414b2f7a36e6f1c000eab5bec98743732b1c1
code-review-auto e9d081964b7bdde937342d661a37c4a8a5bac302383592da83dfb9b7c78c89fb d1ca42821d084161abd3f773b0f0fe79d5b872e6a518bf62c3306bf35ce5f5af
code-review 02cab2ea50dd759cf1e202e35326e2baf84a69f5f5074c0d33c6f3616c78b8c1 d6c63499339b1fd91b22e5d73fd9b7fd51f1efd39e9f9bb151e1913a60f4442e
reviewer-communication 600d3a49f3bb76e57900a66f936aee016f3677aed6084949574c1dead5d0ac6a 3acbc0a500be76747e10500da508204a60a8c1a302996ae0d6ba1d315a1a3102

Existing tests changed:

  • test_automatic_review_is_only_extracted_presentation moved into test_planner_reviewer.py, keeping its assertions (path-aware, and actionable, no Report both axes, no subagent).
  • test_maintained_guidance_covers_distinct_role_steps now pins each package's own release.
  • The description-rejection case in test_rejects_owner_incompatible_frontmatter_values now blanks whatever description the package has. Before, it used a literal string, which would have silently stopped testing anything once the description changed.

Review

The review loop ran three two-axis passes (Standards, Spec) against base 7d3b057. Passes 1 and 2 produced the fixes in 540afcd and d8c73c2. Pass 3 on d8c73c2 found no actionable findings on either axis. The final merge of main (2f57b2a) conflicted only in the package contract's Tester/Coordinator adoption passage. The resolution keeps v0.15.0 recorded as published and adds main's full list of v0.17.0 Coordinator packages. Against the new main, the PR's diff otherwise matches the reviewed diff line for line. Nonblocking calls left as-is:

  • Prose names operator_review_required. The issue requires it, and the v0.15.0 Specification Designer default already names it.
  • The five typed reasons are restated across the closed packages. A test pins every package copy.
  • escalation.md resolves flags whose choice changes neither behavior nor risk. This matches the operating model's "genuinely affects Operator intent or risk" test.

Checks run

  • python3 -m unittest discover -s tests -v — 69 tests, OK (final head 2f57b2a).
  • for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p"; done — every package passed (final head 2f57b2a).
  • python3 -m tools.packages pack packages/<name> <scratch>/<name>.zip for the five packages — reproducible archives; digests in the table above.

Documentation disposition

updated — OVERRIDING.md (package matrix, a new "Planner and Reviewer escalation and guardrail packages" section, a Guardrail proposals controls row), README.md, the new RELEASE-NOTES.md, and the v0.15.0 published status in docs/authoritative/instruction-package-contract.md. There is no CONTEXT.md or ADR in this repo for these terms.

Merge Danger

Door: two-way. Published tags are never moved, and v0.13.0/v0.14.0 keep the old bytes for retained sessions. Nothing ships to RelayView until v0.16.0 is tagged and RelayView pins it.

Blast Radius: future RelayView Planner and Reviewer sessions, once v0.16.0 is pinned. planner-scope keeps schema 2 and issueClaim, so the owner's issue-claim behavior does not change. Forks are unaffected; RELEASE-NOTES.md tells fork maintainers what to carry over. Parallel branches that edit OVERRIDING.md or the README may hit textual merge conflicts.

Rollback: git revert the merge commit before v0.16.0 is tagged. After tagging, ship a corrected v0.16.x instead, because tags are never moved.

Reviewer prerequisites

  • Python 3 (standard library only) and a clone of this repository. Nothing else.

Manual Test Plan

  1. Action: Check out the branch and run the focused checks.

    git fetch origin
    git switch ISSUE-24
    git pull --ff-only origin ISSUE-24
    python3 -m unittest discover -s tests -v
    

    Expected: Ran 69 tests and OK. Stop on any failure.

  2. Action: Confirm the two review packages carry identical guardrail and escalation text.

    diff <(sed -n '/^## Propose a guardrail/,$p' packages/code-review-auto/SKILL.md) <(sed -n '/^## Propose a guardrail/,$p' packages/code-review/SKILL.md) && echo identical
    

    Expected: prints identical.

  3. Action: Read packages/planner-scope/escalation.md and the ## v0.16.0 section of RELEASE-NOTES.md.

    Expected: each Implementer flag has a clear resolve-or-promote rule, each typed reason has a concrete trigger, and every package entry says what changed and what a fork must keep.

Post-Merge Cleanup

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

🤖 Generated with Claude Code

## Summary Closes #24. Moves five Planner and Reviewer packages to `0.16.0` (source `v0.16.0`, not yet tagged) for RelayView's proposed tiered review: ```diff packages/planner-scope/ # schema 2, issueClaim status/in-progress kept SKILL.md # + proof translation, triage, finish check scope.md # + "Translate requested proof"; Plan shape gains # fast_checks / verification_goals / manual_operator_checks + escalation.md # Implementer flag triage + typed Layer C escalation packages/code-review-auto/ # + "Propose a guardrail" + "Escalate" (shared text) packages/code-review/ # + the same two sections, byte-identical packages/planner-communication/ # + Specification Designer naming, escalation framing (schema 3) packages/reviewer-communication/ # + Review Packet / Guardrail Proposal framing (schema 3) +RELEASE-NOTES.md # before/after/fork notes per package ``` - **Proof translation:** each requested proof artifact, fast-test completeness value, and declared test resource maps to exactly one of: an Implementer fast check, a Building Inspector verification goal, or a remaining manual Operator check. When the owner reports that no Tester step will run, the verification goals become manual Operator checks. - **Implementer flags:** once the Implementer reports `needs_operator_decision` / `scope_exceeded`, the Planner resolves the flag when the answer is strictly inside the approved specification. Otherwise it promotes the flag. #25 adds the Implementer side. - **Direct escalation:** one typed reason (`boundary_crossed`, `spec_ambiguity`, `verification_incomplete`, `behavioral_tradeoff`, `convergence_exceeded`) plus a 1–2 sentence risk summary. Never "just to be safe", and never downgrading `operator_review_required`. When the owner assigns no escalation interface, the Planner or Reviewer states the escalation in the Plan or review result instead, because RelayView has not shipped Layer C yet. - **Trust Pyramid guardrails:** for a repeatable defect class, recommend the lowest viable rung, in this order: architecture or API boundary → static check or lint rule with a root-cause message, or a fast regression test → verification harness / Feature Map → candidate prose skill (last resort, active only after the Operator approves it). Before proposing a rung, the Reviewer checks whether a lower-numbered rung would catch the class. Rungs 1–3 propose a follow-up task; rung 4 proposes a candidate skill diff. A second commit corrects stale docs: `v0.15.0` is published on origin, but the package matrix, README, and package contract still called it "not yet tagged". ## Evidence - **Before:** the new `tests/test_planner_reviewer.py`, run against the unchanged packages, failed: `Ran 12 tests … FAILED (failures=40, errors=1)`. The failures covered the version/source pins on all five packages, every proof-translation, flag, typed-reason, and guardrail-ladder marker, the communication framing, and a missing `RELEASE-NOTES.md` (the error). - **After:** `Ran 60 tests … OK` on reviewed head `d8c73c2`, and `Ran 69 tests … OK` on the final head `2f57b2a`, after merging main's Coordinator packages (#35, #36). Review fixes were also test-first: a red run on the fix tree (`Ran 13 tests … FAILED (failures=7)`) covered the Tester fallback, conditional flags, rung-4 output, the lower-rung check, the Escalate sections being pinned identical, and `reviewer-communication` terminology. Then it went green. New package identities and archive SHA-256 values. These were computed on `d8c73c2`, and the merge leaves these five packages' bytes unchanged: | Package | Identity | Archive SHA-256 | | --- | --- | --- | | `planner-scope` | `b117051fc56756732f74ff87b4390c8333dc057f6e5dcc9c73d27f8a349ec26d` | `63faf53b14c49e920926b1685ced6689bc9e20711f764fe3796b2f78a8af8dbb` | | `planner-communication` | `de7ab5c07b34e3feb03ac10f653e310491ed38558a08126035dab69d632dc8ef` | `74ff16d1ad42196bb692585dd35414b2f7a36e6f1c000eab5bec98743732b1c1` | | `code-review-auto` | `e9d081964b7bdde937342d661a37c4a8a5bac302383592da83dfb9b7c78c89fb` | `d1ca42821d084161abd3f773b0f0fe79d5b872e6a518bf62c3306bf35ce5f5af` | | `code-review` | `02cab2ea50dd759cf1e202e35326e2baf84a69f5f5074c0d33c6f3616c78b8c1` | `d6c63499339b1fd91b22e5d73fd9b7fd51f1efd39e9f9bb151e1913a60f4442e` | | `reviewer-communication` | `600d3a49f3bb76e57900a66f936aee016f3677aed6084949574c1dead5d0ac6a` | `3acbc0a500be76747e10500da508204a60a8c1a302996ae0d6ba1d315a1a3102` | Existing tests changed: - `test_automatic_review_is_only_extracted_presentation` moved into `test_planner_reviewer.py`, keeping its assertions (`path-aware, and actionable`, no `Report both axes`, no `subagent`). - `test_maintained_guidance_covers_distinct_role_steps` now pins each package's own release. - The description-rejection case in `test_rejects_owner_incompatible_frontmatter_values` now blanks whatever description the package has. Before, it used a literal string, which would have silently stopped testing anything once the description changed. ### Review The review loop ran three two-axis passes (Standards, Spec) against base `7d3b057`. Passes 1 and 2 produced the fixes in `540afcd` and `d8c73c2`. Pass 3 on `d8c73c2` found no actionable findings on either axis. The final merge of main (`2f57b2a`) conflicted only in the package contract's Tester/Coordinator adoption passage. The resolution keeps `v0.15.0` recorded as published and adds main's full list of `v0.17.0` Coordinator packages. Against the new main, the PR's diff otherwise matches the reviewed diff line for line. Nonblocking calls left as-is: - Prose names `operator_review_required`. The issue requires it, and the v0.15.0 Specification Designer default already names it. - The five typed reasons are restated across the closed packages. A test pins every package copy. - `escalation.md` resolves flags whose choice changes neither behavior nor risk. This matches the operating model's "genuinely affects Operator intent or risk" test. ### Checks run - `python3 -m unittest discover -s tests -v` — 69 tests, OK (final head `2f57b2a`). - `for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p"; done` — every package passed (final head `2f57b2a`). - `python3 -m tools.packages pack packages/<name> <scratch>/<name>.zip` for the five packages — reproducible archives; digests in the table above. ## Documentation disposition **updated** — `OVERRIDING.md` (package matrix, a new "Planner and Reviewer escalation and guardrail packages" section, a Guardrail proposals controls row), `README.md`, the new `RELEASE-NOTES.md`, and the `v0.15.0` published status in `docs/authoritative/instruction-package-contract.md`. There is no `CONTEXT.md` or ADR in this repo for these terms. ## Merge Danger **Door:** two-way. Published tags are never moved, and `v0.13.0`/`v0.14.0` keep the old bytes for retained sessions. Nothing ships to RelayView until `v0.16.0` is tagged and RelayView pins it. **Blast Radius:** future RelayView Planner and Reviewer sessions, once `v0.16.0` is pinned. `planner-scope` keeps schema 2 and `issueClaim`, so the owner's issue-claim behavior does not change. Forks are unaffected; `RELEASE-NOTES.md` tells fork maintainers what to carry over. Parallel branches that edit `OVERRIDING.md` or the README may hit textual merge conflicts. **Rollback:** `git revert` the merge commit before `v0.16.0` is tagged. After tagging, ship a corrected `v0.16.x` instead, because tags are never moved. ## Reviewer prerequisites - Python 3 (standard library only) and a clone of this repository. Nothing else. ## Manual Test Plan 1. [ ] **Action:** Check out the branch and run the focused checks. ```sh git fetch origin git switch ISSUE-24 git pull --ff-only origin ISSUE-24 python3 -m unittest discover -s tests -v ``` **Expected:** `Ran 69 tests` and `OK`. Stop on any failure. 2. [ ] **Action:** Confirm the two review packages carry identical guardrail and escalation text. ```sh diff <(sed -n '/^## Propose a guardrail/,$p' packages/code-review-auto/SKILL.md) <(sed -n '/^## Propose a guardrail/,$p' packages/code-review/SKILL.md) && echo identical ``` **Expected:** prints `identical`. 3. [ ] **Action:** Read `packages/planner-scope/escalation.md` and the `## v0.16.0` section of `RELEASE-NOTES.md`. **Expected:** each Implementer flag has a clear resolve-or-promote rule, each typed reason has a concrete trigger, and every package entry says what changed and what a fork must keep. ## Post-Merge Cleanup ```sh git switch main git pull --ff-only origin main git branch -d ISSUE-24 git push origin --delete ISSUE-24 ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anodyine added 2 commits 2026-11-25 20:41:51 -05:00
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>
Record v0.15.0 as published
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
ae1b6d95aa
The v0.15.0 tag is on origin, so the package matrix, README, and package
contract no longer call it not yet tagged or unpublished. v0.16.0 and
v0.17.0 remain proposed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 2 commits 2026-11-25 20:47:33 -05:00
- The guardrail trigger no longer presupposes a deterministic check, so a
  genuine judgment call can reach the candidate prose skill rung; rung 4
  proposes a candidate skill diff, and a check asks whether a lower rung
  would catch the class. Both review packages' Escalate sections are now
  pinned identical too.
- planner-scope turns verification goals into manual Operator checks when
  no Tester step will run, and triages Implementer flags only once the
  Implementer reports one.
- reviewer-communication uses Specification Designer terminology.
- Release notes cover the planner-scope SKILL.md change; README keeps
  "optional" for code-review-auto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address second review: conditional docs, escalation checks, rung 3 wording
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
d8c73c21f9
- OVERRIDING.md describes Implementer flag triage as conditional, no
  longer implies RelayView assigns the manual code-review, and links the
  ladder to the layer-4 authoring template's trust pyramid.
- README labels the v0.16.0 guardrail behavior as not yet tagged.
- Both review packages' rung 3 includes formal checks and no longer ties
  property tests to the running application; their Escalate sections and
  planner-scope's escalation guide gain a check that the risk summary
  names one Operator decision.
- planner-scope says what to do when the owner reports nothing about a
  Tester step; code-review-auto's heading matches its display name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 1 commit 2026-11-25 21:27:03 -05:00
Merge main (Coordinator recovery and manual packages) into ISSUE-24
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
2f57b2aed7
Resolve the package contract's Tester/Coordinator adoption passage by
keeping v0.15.0 recorded as published and main's full list of in-source
v0.17.0 Coordinator packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine merged commit 260d3fec82 into main 2026-11-25 21:27:38 -05:00
anodyine deleted branch ISSUE-24 2026-11-25 21:27: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#37