Skip to content

CoderHelm finishes the work: one stance in every prompt and message - #638

Merged
nambok merged 1 commit into
mainfrom
finish-the-work
Nov 12, 2026
Merged

nambok merged 1 commit into
mainfrom
finish-the-work

Conversation

@nambok

@nambok nambok commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

CoderHelm is a coding agent: it finishes the work. The supervisor (#635) made every run ending follow that rule; this makes it the stance of every prompt and every sentence CoderHelm shows people, and guards it with a test.

Changes

Prompts

  • New passes::ownership with the shared stance. coder_system (implementer, CI fix, test fix, review fix, plan coverage, run guard, proof rounds) and the feedback agent get coder_stance(); the planner gets planner_stance(). Each prompt keeps its own rules.
  • Deadline note: the tasks still to do are carried on by the next step, never left for a person.
  • Stop judge: a stall, red check, error or spent budget is never a reason to hold; a hold needs something only a person has.
  • Security fix prompt: when a fix doesn't take, change approach (full error, upgrade guide, failing call site) before writing ### Not fixed.
  • Proof and PR description rules: an unproven fix names the exact check, why CoderHelm couldn't run it, and only after trying every way it has.
  • Reviewer, severity and fix-location prompts: no "a person would have to finish the work by hand" or "lookups a person should make".

Behaviour

  • A coder reply that hands the work back for a reason not on the human-only list ("I couldn't finish, please complete manually") gets a keep-going note and another run in the same pass; if nothing changes, the step is a stall and climbs the supervisor's ladder. A reply naming a listed reason still goes to the stop judge.
  • Incident ad_hand_back_reply: replays such a reply through the step marks, the ladder and supervisor::end (Narrow, SwitchTools, Resplit, Escalate, then deferred, finished, never needs_input), the listed-reason contrast (credential, hand-back), and a source check that the implement pass answers the reply before it returns.

Words shown to people

  • Run notes and PR comments in feedback, resume, e2e, review and health check no longer say "handed off for human review", "over to you", "re-trigger", "a person should" or "please run it". They say what CoderHelm did, where the pull request stands and what starts the next round. The rollback ask is one question tied to an approval.
  • Draft status on the pull request and the run page: "held on what is below, each with what settles it" instead of "a person needs to deal with".

Guard

  • ownership::tests::no_prompt_or_message_hands_work_back reads the worker and common sources (comments and test modules skipped, string line continuations joined) and fails on any of the curated hand-off phrases outside a one-entry allowlist. Tests cover the scan itself and a stale allowlist entry.
  • AGENTS.md gets a Principles section (CoderHelm reads AGENTS.md when it works on this repository).

Verification

  • cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings: clean.
  • cargo test --workspace: green, including the new ownership tests and incident ad_hand_back_reply.
  • Planted "over to you" in an e2e message: the guard failed and named the file and text; reverted.

Every model that writes or fixes code now starts from the same stance
(passes::ownership::coder_stance): it owns the change, verifies it with
the checks it has, fixes what breaks, changes approach when stuck, defers
only non-core items with the reason, and stops for a person only for a
credential, missing access, a product decision, an ambiguous ticket or an
approval. The planner gets the planning version.

A coder reply that hands the work back without a listed reason is no
longer an ending: the implement pass sends a keep-going note and runs the
coder again, and a reply that still changes nothing is a stall that climbs
the supervisor's ladder (incident ad).

Messages shown to people say what CoderHelm did, what it deferred and why,
and what happens next, instead of "handed off for human review", "over to
you" or "a person should". A source scan fails on a hand-off phrase in any
prompt or message in the worker or common crates.

AGENTS.md states the principles for contributors and for CoderHelm when it
works on this repository.
@nambok
nambok merged commit cf1ace5 into main Nov 12, 2026
10 checks passed
@nambok
nambok deleted the finish-the-work branch November 12, 2026 16:02
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