Update Implementer packages for inner-loop convergence and Planner flags (v0.16.0) #38

Merged
anodyine merged 3 commits from ISSUE-25 into main 2026-11-25 23:37:56 -05:00
Owner

Summary

Closes #25. Moves the two Implementer defaults to 0.16.0 (source v0.16.0, not yet tagged), alongside the Planner and Reviewer packages from #24. Schemas don't change.

 packages/implementer-handoff/        # schema 1, files SKILL.md + handoff.md kept
   SKILL.md                           # + short "Converge before sealing", "Flag instead of escalating", "Hand off" sections that defer to the guide
   handoff.md                         # owns the rules: + "Inner loop", "Flags to the Planner"; review content adds test-resource readiness + known gaps
 packages/implementer-communication/  # schema 3, communication_context kept
   SKILL.md                           # + one paragraph: candidate handoff + flag framing
+tests/test_implementer.py            # pins the guidance, schemas, and docs
 OVERRIDING.md, README.md, RELEASE-NOTES.md
  • One home for the rules: handoff.md carries the inner-loop, flag, and report rules, and SKILL.md only outlines them (the same split as planner-scope's escalation.md). Forking handoff.md alone therefore changes them, which is what OVERRIDING.md promises.
  • Tight inner loop: after each change, run the Plan's Implementer fast checks (types, lint, static analysis, unit and integration tests, "seconds, not minutes"). Iterate until they pass and Planner feedback is resolved before sealing. Sealing stays the owner's decision; the prose aims at it and doesn't restate it as a gate. If the Plan names no fast checks, fall back to the repository's focused checks. A candidate with a failing fast check is never presented as ready. It is reported to the Planner instead, with scope_exceeded raised only when the fix needs work the Plan doesn't allow.
  • Indirect escalation: genuine specification ambiguity, an unexpected sensitive boundary, or a visible tradeoff the specification doesn't settle → needs_operator_decision. These match the Planner's own definition of the flag in escalation.md. Scope creep → scope_exceeded. Each flag states the question, options, evidence, and the work that continues meanwhile, and it goes to the Planner (planner-scope's escalation.md settles or promotes it). The Implementer never pages the Operator, never silently improvises, never flags "just to be safe", and names no typed Layer C reason itself. When the owner assigns no flag interface, the flag goes at the top of the message to the Planner and stays listed in the handoff, because RelayView's flag record is still proposed (relayview#1289).
  • Honest handoff: the review content adds declared test-resource readiness (confirmed, couldn't check, or missing; never a mock that stands in for a declared resource) and known gaps (uncovered acceptance observations, open verification goals and manual Operator checks, skipped or flaky checks, open flags).
  • Separate from owner schemas: the prose has no code fences, no JSON, and no identifiers except the two flag names and the existing not_required disposition. A test pins this.

Evidence

  • Before: the new tests/test_implementer.py run against the unchanged packages failed: Ran 12 tests … FAILED (failures=40). It covered the v0.16.0 source/version pins, every inner-loop, flag, readiness and known-gap marker, the communication framing, the missing release-notes entries, and the missing OVERRIDING section. The schema-separation, terminology, no-direct-reason, and clarification-method tests already passed and stayed green.
  • After: Ran 82 tests … OK on the final reviewed head 3e7d96d. Both review-fix rounds were also test-first. Round 1's red run on the fix tree gave Ran 13 tests … FAILED (failures=8); it pinned sealing as guidance rather than a gate, the narrower scope_exceeded mapping for a failing check, and the rules living in handoff.md rather than SKILL.md. Round 2's red run gave FAILED (failures=5); it pinned the report items living in handoff.md and OVERRIDING listing all four flag triggers. Both went green.

New package identities and archive SHA-256 values, computed on 3e7d96d (each archive was packed twice and both copies matched):

Package Identity Archive SHA-256
implementer-handoff 55d5b43cb251a8c6be16c687726288fe7c11ecab97fa5646db1df4daa5071192 5779bff1996cd476c3ed147885a099e374d2edf1b6aec25e3384d0d544c72548
implementer-communication 076198e54889a89bd8dca8a2f29117b6b768bb1ce39243d425541fdc9359ba0d 4cea39d44a621aa5a4ab993a7c493e54ff6284528cbb428b639faeb7345f364b

Existing test changed: test_maintained_guidance_covers_distinct_role_steps now pins implementer-handoff to v0.16.0.

Review

The review loop ran three two-axis passes (Standards, Spec) against base 260d3fe.

  • Pass 1 (ca7b5e4) found three problems. Sealing was written as a hard gate that contradicted the "cannot pass → report not ready" rule. SKILL.md duplicated handoff.md's rules, which broke the documented fork seam. A failing check was mapped to scope_exceeded too loosely. Fixed in b217bfc.
  • Pass 2 found three doc problems. The report items still lived in SKILL.md, the release-notes entry was inaccurate, and OVERRIDING's trigger list omitted the tradeoff trigger. Fixed in 3e7d96d.
  • Pass 3 on 3e7d96d found no actionable findings on either axis.

Nonblocking calls left as-is:

  • SKILL.md says "the exact candidate you seal" while handoff.md says the owner's workflow decides sealing. Both reviewers judged this non-contradictory.
  • tests/test_implementer.py imports DIRECT_REASONS, IMPLEMENTER_FLAGS, and read from tests/test_planner_reviewer.py, so the Planner and Implementer sides share one flag list.
  • The implementer-communication frontmatter description is unchanged, matching how #24 handled planner-communication and reviewer-communication.
  • The sensitive-boundary list is copied from escalation.md, because each package must fork on its own.

Checks run

  • python3 -m unittest discover -s tests -v: 82 tests, OK (final reviewed head 3e7d96d).
  • for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p"; done: every package passed (head 3e7d96d).
  • python3 -m tools.packages pack packages/<name> <scratch>/<name>.zip, run twice for each of the two packages: the archives are reproducible, with the digests in the table above.

Ablation decision: not_required, as the issue states. The change aligns instructions only.

Documentation disposition

updated: OVERRIDING.md (package matrix rows, a new "Implementer inner-loop and flag packages" section, an "Implementer flags" Proposed row in the owner-controls table, and fast-check iteration added to the Implementation handoff row), README.md (v0.16.0 paragraph), and RELEASE-NOTES.md (before/after/fork entries for both packages). There is no CONTEXT.md or ADR in this repo for these terms.

Merge Danger

Door: two-way. Published tags never move, and v0.13.0 keeps the old Implementer bytes for retained sessions. Nothing reaches RelayView until v0.16.0 is tagged and pinned.

Blast Radius: future RelayView Implementer sessions, once v0.16.0 is pinned. Schemas, role/step, and declared files are unchanged, so admission does not change. Forks are unaffected; RELEASE-NOTES.md tells their maintainers what to carry over. Parallel branches that edit OVERRIDING.md, README.md, or RELEASE-NOTES.md may hit textual conflicts.

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

Reviewer prerequisites

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

Manual Test Plan

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

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

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

  2. Action: Read packages/implementer-handoff/handoff.md next to packages/planner-scope/escalation.md.

    Expected: every trigger for an Implementer flag corresponds to something the Planner's triage can resolve or promote. The Implementer side never uses a typed reason or addresses the Operator.

Post-Merge Cleanup

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

🤖 Generated with Claude Code

## Summary Closes #25. Moves the two Implementer defaults to `0.16.0` (source `v0.16.0`, not yet tagged), alongside the Planner and Reviewer packages from #24. Schemas don't change. ```diff packages/implementer-handoff/ # schema 1, files SKILL.md + handoff.md kept SKILL.md # + short "Converge before sealing", "Flag instead of escalating", "Hand off" sections that defer to the guide handoff.md # owns the rules: + "Inner loop", "Flags to the Planner"; review content adds test-resource readiness + known gaps packages/implementer-communication/ # schema 3, communication_context kept SKILL.md # + one paragraph: candidate handoff + flag framing +tests/test_implementer.py # pins the guidance, schemas, and docs OVERRIDING.md, README.md, RELEASE-NOTES.md ``` - **One home for the rules:** `handoff.md` carries the inner-loop, flag, and report rules, and `SKILL.md` only outlines them (the same split as `planner-scope`'s `escalation.md`). Forking `handoff.md` alone therefore changes them, which is what `OVERRIDING.md` promises. - **Tight inner loop:** after each change, run the Plan's Implementer fast checks (types, lint, static analysis, unit and integration tests, "seconds, not minutes"). Iterate until they pass and Planner feedback is resolved before sealing. Sealing stays the owner's decision; the prose aims at it and doesn't restate it as a gate. If the Plan names no fast checks, fall back to the repository's focused checks. A candidate with a failing fast check is never presented as ready. It is reported to the Planner instead, with `scope_exceeded` raised only when the fix needs work the Plan doesn't allow. - **Indirect escalation:** genuine specification ambiguity, an unexpected sensitive boundary, or a visible tradeoff the specification doesn't settle → `needs_operator_decision`. These match the Planner's own definition of the flag in `escalation.md`. Scope creep → `scope_exceeded`. Each flag states the question, options, evidence, and the work that continues meanwhile, and it goes to the Planner (`planner-scope`'s `escalation.md` settles or promotes it). The Implementer never pages the Operator, never silently improvises, never flags "just to be safe", and names no typed Layer C reason itself. When the owner assigns no flag interface, the flag goes at the top of the message to the Planner and stays listed in the handoff, because RelayView's flag record is still proposed (`relayview#1289`). - **Honest handoff:** the review content adds declared test-resource readiness (confirmed, couldn't check, or missing; never a mock that stands in for a declared resource) and known gaps (uncovered acceptance observations, open verification goals and manual Operator checks, skipped or flaky checks, open flags). - **Separate from owner schemas:** the prose has no code fences, no JSON, and no identifiers except the two flag names and the existing `not_required` disposition. A test pins this. ## Evidence - **Before:** the new `tests/test_implementer.py` run against the unchanged packages failed: `Ran 12 tests … FAILED (failures=40)`. It covered the `v0.16.0` source/version pins, every inner-loop, flag, readiness and known-gap marker, the communication framing, the missing release-notes entries, and the missing OVERRIDING section. The schema-separation, terminology, no-direct-reason, and clarification-method tests already passed and stayed green. - **After:** `Ran 82 tests … OK` on the final reviewed head `3e7d96d`. Both review-fix rounds were also test-first. Round 1's red run on the fix tree gave `Ran 13 tests … FAILED (failures=8)`; it pinned sealing as guidance rather than a gate, the narrower `scope_exceeded` mapping for a failing check, and the rules living in `handoff.md` rather than `SKILL.md`. Round 2's red run gave `FAILED (failures=5)`; it pinned the report items living in `handoff.md` and OVERRIDING listing all four flag triggers. Both went green. New package identities and archive SHA-256 values, computed on `3e7d96d` (each archive was packed twice and both copies matched): | Package | Identity | Archive SHA-256 | | --- | --- | --- | | `implementer-handoff` | `55d5b43cb251a8c6be16c687726288fe7c11ecab97fa5646db1df4daa5071192` | `5779bff1996cd476c3ed147885a099e374d2edf1b6aec25e3384d0d544c72548` | | `implementer-communication` | `076198e54889a89bd8dca8a2f29117b6b768bb1ce39243d425541fdc9359ba0d` | `4cea39d44a621aa5a4ab993a7c493e54ff6284528cbb428b639faeb7345f364b` | Existing test changed: `test_maintained_guidance_covers_distinct_role_steps` now pins `implementer-handoff` to `v0.16.0`. ### Review The review loop ran three two-axis passes (Standards, Spec) against base `260d3fe`. - **Pass 1** (`ca7b5e4`) found three problems. Sealing was written as a hard gate that contradicted the "cannot pass → report not ready" rule. `SKILL.md` duplicated `handoff.md`'s rules, which broke the documented fork seam. A failing check was mapped to `scope_exceeded` too loosely. Fixed in `b217bfc`. - **Pass 2** found three doc problems. The report items still lived in `SKILL.md`, the release-notes entry was inaccurate, and OVERRIDING's trigger list omitted the tradeoff trigger. Fixed in `3e7d96d`. - **Pass 3** on `3e7d96d` found no actionable findings on either axis. Nonblocking calls left as-is: - `SKILL.md` says "the exact candidate you seal" while `handoff.md` says the owner's workflow decides sealing. Both reviewers judged this non-contradictory. - `tests/test_implementer.py` imports `DIRECT_REASONS`, `IMPLEMENTER_FLAGS`, and `read` from `tests/test_planner_reviewer.py`, so the Planner and Implementer sides share one flag list. - The `implementer-communication` frontmatter description is unchanged, matching how #24 handled `planner-communication` and `reviewer-communication`. - The sensitive-boundary list is copied from `escalation.md`, because each package must fork on its own. ### Checks run - `python3 -m unittest discover -s tests -v`: 82 tests, OK (final reviewed head `3e7d96d`). - `for p in packages/* examples/starter-planner tests/fixtures/packages/*; do python3 -m tools.packages check "$p"; done`: every package passed (head `3e7d96d`). - `python3 -m tools.packages pack packages/<name> <scratch>/<name>.zip`, run twice for each of the two packages: the archives are reproducible, with the digests in the table above. Ablation decision: `not_required`, as the issue states. The change aligns instructions only. ## Documentation disposition **updated**: `OVERRIDING.md` (package matrix rows, a new "Implementer inner-loop and flag packages" section, an "Implementer flags" Proposed row in the owner-controls table, and fast-check iteration added to the Implementation handoff row), `README.md` (v0.16.0 paragraph), and `RELEASE-NOTES.md` (before/after/fork entries for both packages). There is no `CONTEXT.md` or ADR in this repo for these terms. ## Merge Danger **Door:** two-way. Published tags never move, and `v0.13.0` keeps the old Implementer bytes for retained sessions. Nothing reaches RelayView until `v0.16.0` is tagged and pinned. **Blast Radius:** future RelayView Implementer sessions, once `v0.16.0` is pinned. Schemas, role/step, and declared files are unchanged, so admission does not change. Forks are unaffected; `RELEASE-NOTES.md` tells their maintainers what to carry over. Parallel branches that edit `OVERRIDING.md`, `README.md`, or `RELEASE-NOTES.md` may hit textual conflicts. **Rollback:** `git revert` the merge commit before `v0.16.0` is tagged. After tagging, ship a corrected `v0.16.x` instead. ## Reviewer prerequisites - Python 3 (standard library only) and a clone of this repository. ## Manual Test Plan 1. [ ] **Action:** Check out the branch and run the focused checks. ```sh git fetch origin git switch ISSUE-25 git pull --ff-only origin ISSUE-25 python3 -m unittest discover -s tests -v ``` **Expected:** `Ran 82 tests` and `OK`. Stop on any failure. 2. [ ] **Action:** Read `packages/implementer-handoff/handoff.md` next to `packages/planner-scope/escalation.md`. **Expected:** every trigger for an Implementer flag corresponds to something the Planner's triage can resolve or promote. The Implementer side never uses a typed reason or addresses the Operator. ## Post-Merge Cleanup ```sh git switch main git pull --ff-only origin main git branch -d ISSUE-25 git push origin --delete ISSUE-25 ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anodyine added 1 commit 2026-11-25 23:26:16 -05:00
Update Implementer packages for inner-loop convergence and Planner flags (v0.16.0)
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
ca7b5e4b80
implementer-handoff now runs the Plan's fast checks after each change and
resolves Planner feedback before sealing a candidate, routes genuine
specification ambiguity, unexpected sensitive boundaries, and scope creep to
the Planner as needs_operator_decision or scope_exceeded flags instead of
paging the Operator, and reports declared test-resource readiness and known
gaps. implementer-communication frames candidate handoffs and flags. Both move
to source reference v0.16.0 with unchanged schemas; OVERRIDING, README, and
release notes describe the fork seams.

Closes #25

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anodyine added 2 commits 2026-11-25 23:32:37 -05:00
Move the fast-check definition and flag triggers out of implementer-handoff's
SKILL.md so forking handoff.md alone changes them, as OVERRIDING.md says.
Reword sealing as an aim the owner's workflow decides rather than a gate the
prose restates, so a fast check that can never pass ends in a report. Raise
scope_exceeded for a failing check only when the fix leaves the Plan.
Rewrap the release-notes intro and rename one test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review pass 2: one home for report items, complete trigger docs
Check instruction packages / check (push) Successful in 9s
Check instruction packages / check (pull_request) Successful in 9s
3e7d96dcc3
implementer-handoff's SKILL.md now defers its report items to handoff.md's
review content, which gains the documentation disposition and manual-evidence
observer, so forking handoff.md changes the report as OVERRIDING.md says.
SKILL.md's flag sentence points at the guide's triggers. OVERRIDING lists the
unsettled-tradeoff trigger, and the release notes describe all three SKILL.md
sections.

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