Skip to content

feat: apply verified review fixes when nothing needs deciding (--fix) (lets-lo8ft) - #189

Merged
restarter merged 11 commits into
mainfrom
lets-lo8ft-apply-a-hand-off-report-s-verified-fixes-automatic
Sep 23, 2026
Merged

restarter merged 11 commits into
mainfrom
lets-lo8ft-apply-a-hand-off-report-s-verified-fixes-automatic

Conversation

@restarter

Copy link
Copy Markdown
Owner

Summary

A review used to stop one step short: every finding checked against the code, then the fixes typed by hand. /lets:check --fix, /lets:review --fix and /lets:handoff --fix let the reviewing session apply them - only when every finding is verified and nothing needs deciding.

  • One definition - new internal skill apply-fixes: the typed flag authorizes edits to the reviewed files only (never commit, push, PR or tracker); Gate 1 verified (REFUTED skipped, UNCLEAR blocks); Gate 2 nothing to decide, judged on meaning; any open item anywhere in the source stops the whole run; all-or-nothing before the first edit; a mid-apply surprise stops and names the applied edits, never reverts; the Remedy is written by the session, never copied from a report.
  • Scope = exactly what was reviewed - git diff for --local, the reviewed PR diff's file list (no refetch, no scratch file), refs pinned to the reviewed head.
  • Per-command verification - handoff: the 7.4 relay table (skips on a moved HEAD or a changed tree); review: Step 6.6 skeptics with the top-K cap lifted, and review.workflow.js now returns per-finding verification + refuted_findings[] (a failed verify slot stays an unverified finding); check: a new inline Step 3.5.
  • Refused with --json; PR mode only when the checkout is the PR head; --plan --fix edits the plan document.
  • Rules code-approval list, Quick Reference, CLAUDE.md, docs, CHANGELOG updated; TestApplyFixes pins the contract with 9 mutants.

Reviewed in 3 Codex rounds (plan + branch) until only one MINOR remained: no behavioral test of the workflow vote mapping (the workflow runtime is sandbox-only). Live-tested through make dev: /lets:check --branch --fix found, verified and applied one fix end to end (commit 134f373).

Changes

134f373 fix(lets-lo8ft): point plan --fix at check --plan
d46fa29 fix(lets-lo8ft): pin --fix scope to what was reviewed
d36c556 fix(lets-lo8ft): close --fix gaps from review round 1
fdd1279 docs(lets-lo8ft): document --fix for check, review, handoff
22be000 test(lets-lo8ft): pin the --fix contract
b319b94 docs(lets-lo8ft): name --fix in the rules and CLAUDE.md
6fca02e feat(lets-lo8ft): verify and apply check fixes (--fix)
1cd74d9 feat(lets-lo8ft): return per-finding verify outcome
51c094f feat(lets-lo8ft): apply verified review fixes (--fix)
18228ee feat(lets-lo8ft): apply a hand-off report's fixes (--fix)
a33e716 feat(lets-lo8ft): add the apply-fixes internal skill

Task

lets-lo8ft: Apply a hand-off report's verified fixes automatically when nothing needs deciding (--fix)


🤖 Generated with Claude Code

restarter and others added 11 commits September 23, 2026 16:13
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The workflow aggregate carried only counts, so /lets:review --workflow --fix could not tell a confirmed finding from a downgraded or unverified one.

Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Any open item of a report now stops the run; handoff pins HEAD and
skips when it moved; PR scope is the fetched PR diff, not a local
merge-base; a failed workflow verify slot stays an unverified finding.

Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR scope is the reviewed diff's file list passed in the conversation -
no refetch, no scratch file; last-commit and branch scope resolve
against the pinned head sha.

Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The plan lives under the gitignored .lets/, so /lets:commit and a
plain /lets:check are wrong next steps after --plan --fix; check.md
no longer draws its plan box over apply-fixes' own.

Task: lets-lo8ft

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@restarter
restarter merged commit 7f493ed into main Sep 23, 2026
3 checks passed
@restarter
restarter deleted the lets-lo8ft-apply-a-hand-off-report-s-verified-fixes-automatic branch September 23, 2026 15:12
@restarter restarter mentioned this pull request Sep 23, 2026
restarter added a commit that referenced this pull request Sep 23, 2026
Version bump for v0.9.2. `make bump VERSION=0.9.2` edited the
version-source files plus the two shipped tracker adapters, renamed
`[Unreleased]` to `[0.9.2]`, and committed only after `make test`, `make
build` and `verify-versions` passed.

**Rebuilt.** The first cut of this branch was taken at `58e2441`, before
lets-f8x54 landed. Rather than let that fix fall under a fresh empty
`[Unreleased]` and miss the release, the branch was recreated from main
at `514afff` and the bump re-run, then force-pushed. The 0.9.2 section
now carries all 15 entries of this round.

What ships: `--fix` across check / review / handoff (#189), the
implementers run mode and `/lets:execute` picker change (#187), handing
an approved plan to an agent tab (#184), `lets worktree record` and the
vanished-worker fix (#186), the peers reachability batch (#185),
`/lets:orc --yes` (#183), the language-rule split (#188), and a peer
role that survives a changed session id (#191).

Known defects shipping with this release, stated deliberately rather
than discovered later: `/lets:done` still creates a duplicate PR when
one is already open (lets-0g49b); the session boundary still breaks on a
branch reused after its PR merged (lets-2t5ns); worktree provisioning
correctness (lets-41cpf) and parallel implementers (lets-7dwc1) are
unfinished. None is new, and none is made worse here.

After merge: `make release-tag VERSION=0.9.2`, then curated release
notes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant