Skip to content

feat: execute a plan through implementers you can review and correct (lets-l6ah9) - #187

Merged
restarter merged 15 commits into
mainfrom
lets-l6ah9-delegate-lets-execute-to-a-named-implementer-subagent
Sep 23, 2026
Merged

restarter merged 15 commits into
mainfrom
lets-l6ah9-delegate-lets-execute-to-a-named-implementer-subagent

Conversation

@restarter

Copy link
Copy Markdown
Owner

Summary

/lets:execute can now hand a plan to implementer agents you review and correct - the Implementers run mode (--implementers, alias --team). The plan is split at its commit points; steps that write no files run in this session, and each chunk goes to a named lets:implementer subagent on the model you pick. Every diff comes back under that agent's name with the full patch; you accept it (only then is it committed), send a correction to the same agent (it keeps its context), or stop. One chunk runs at a time on a clean tree, and an interrupted run resumes from its record.

Solo only by design: the parallel mode (several implementers in isolated worktrees through /lets:team) moved to lets-7dwc1, because the old team backend does not run on the current harness.

What changed

  • agents/implementer.md - a solo chunk worker with a status machine (complete / deviation-stopped / blocked), no background commands, a refused step stops the chunk.
  • skills/implementer-run/ (new, internal) - the one spawn / correct path: model panel after Start (Opus default, Fable for the hardest chunks, Sonnet / Haiku for mechanical ones), Agent spawn by name, SendMessage correction.
  • commands/execute.md - Step 4.5 Implementers locus, Step 4.6 plan split, Step 5-D delegated run: Start gate, run record, dispatch, review with the full patch and a patch_sha Accept is bound to, three status gates, stop via TaskStop, recovery and replacement, completion.
  • skills/commit/ - approved=review-accept (the one pre-approved caller), and the review shows the staged set when one exists.
  • Rules, plan.md / plan-workflow.md banners, CLAUDE.md - every "plan mode is the only code-write gate" sentence now names both gates.
  • Docs (plan-execute, parallel-work, agents, commands, README) and CHANGELOG.
  • Tests: TestImplementerRun pins the contract with four in-memory mutants; TestOrcLint now keys the peer-send rule on the recipient, so a run resuming its own implementer is not a peer send.

How it was verified

  • cd cli && go test ./... -count=1 - green.
  • Built by a Codex tab as the implementer, one plan task per chunk, every patch reviewed here before commit; a real deviation (TestOrcLint) stopped a chunk and became plan Task 10.
  • Three Codex review rounds (findings: staged content in review, Accept vs the commit gate, multi-path allowlists, recovery sha) - fixed.
  • Two live delegated runs on throwaway branches (make dev): split, Start, model panel, review, amendment to the same agent (answered from its context), Stop and reopen, Accept commits only the allowlist, stop while running, recovery, replacement. Findings fixed in c185f06 and bc34f3c.

Known limits

  • An implementer can silently skip a step that leaves no trace in the diff or a Verify (live finding); the docs ask delegated plans to make every step checkable.
  • /lets:execute Step 6 records the wrong plan when a plan path is passed - pre-existing, tracked in lets-ejts9.

Task

lets-l6ah9: Execute a plan through implementers you can review and correct


Generated with LETS plugin

🤖 Generated with Claude Code

restarter and others added 15 commits September 22, 2026 14:07
The implementer was written for /lets:team alone (parallel-team framing, TaskUpdate, commit before idle). Delegated /lets:execute needs a worker that implements one approved chunk, never commits, stops on a deviation instead of adapting, and reports in a fixed shape with raw Verify output. /lets:team's legacy prompt, which carries no MODE line, is still followed as written.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The single place LETS spawns or corrects a named implementer: the model panel runs on the first spawn, after the caller's Start gate; the Agent call passes none of the fields documented deprecated on the current harness; a correction resumes the same agent with SendMessage and never spawns; reports are attributed by the spawned name.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The Step 4.5 picker's Team option becomes Implementers (--team stays an alias) and refuses --auto, since every delegated diff waits for review. Step 4.6 splits a plan from its own Files and Commit blocks into caller tasks and commit-point chunks, shows every task once, groups file-sharing chunks, and refuses plans it cannot split or whose tasks depend on something learned during the run.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Step 5-D part 1: a delegated run needs a clean tree, asks one Start gate before any spawn (the model is picked after it), keeps a run record it rewrites before every transition, and dispatches caller tasks and chunks in plan order with a brief that states it may be amended, one live implementer at a time.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
A delegated run needs a review gate per chunk, a confirmed stop, and a
recovery path that never re-runs work or discards a diff unasked.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Seven sentences said plan mode is the only code-write gate; a delegated
run's gate is its Start gate, so each now names both paths.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The execute reference rows and CLAUDE.md's agent and internal-skill
lists now name the delegated path and the implementer-run skill.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The human-facing docs described execute as plan-mode only and the
implementer as a team-only agent; both now cover the delegated run.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
One helper holds every guard and reads only its argument, so four
in-memory mutants prove each guard can actually fail.

TestOrcLint fails on this commit: it reads any SendMessage to a named
recipient as a peer send, and the delegated path resumes the implementer
it spawned. The next commit scopes that rule to peers.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Rule 2 read any SendMessage with a named recipient as a peer send, so a
delegated run resuming the implementer it spawned tripped it. The rule
now names the recipient, and a peer recipient in those same files still
fails - pinned by its own mutation check.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Three Codex review rounds found that the delegated review could show a
patch other than the one committed (staged content, no content check on
Accept or after recovery), that Accept contradicted /lets:commit's own
gate, and that a Files line naming two paths lost the second. The commit
skill now takes one pre-approved value and reviews a staged set when one
exists.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A live delegated run hung on an implementer that waited on its own
background task, took a prose report and an invented status on trust,
showed the user a one-line summary instead of the patch, asked a
permission on every .lets write, and offered Fable as the cheapest
model. The contract now forbids background commands, defines what a
report is, requires the patch and split to be printed, writes only
session-authored .lets files through Bash (never an agent's report),
and labels the models by real capability and price.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A second live run showed that a MUST to print the split table and the
review patch before a gate is skipped in practice. Both now travel as
the preview of the gate's first option, so the user approves what they
are looking at. The brief ends with the report skeleton to fill in,
since a pointer to the agent definition's Output shape was ignored.

Task: lets-l6ah9

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep both [Unreleased] Fixed entries: lets-11zwo's two from #186 and
lets-l6ah9's /lets:commit staged-review entry.

Task: lets-l6ah9

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@restarter
restarter merged commit b847d8f into main Sep 23, 2026
3 checks passed
@restarter
restarter deleted the lets-l6ah9-delegate-lets-execute-to-a-named-implementer-subagent branch September 23, 2026 09:05
@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