Repository navigation
Description
Themed follow-up from the #209 review (PR #216).
-
A verification that failed while completing looks closed but can't be amended (
readiness_run.go~:1497,stopVerificationaftercompleteVerificationfails). The ledger shows failed/blocked, but the last verification attempt keeps statusstartedwith no result, so bothAmendandrecoverrefuse it with "missing durable process evidence". Fix: mark that attempt interrupted or failed with a finish time, since the checks have returned by then, or letrecoverhandle it. -
LauncherOnlyChangerefuses legitimate rebinds (formula.golauncherUpgrade):- rolling back to an older release after a bad one;
- moving
~/.forgecell(a different releases root).
In-flight Molecules then need a fresh intake, and
errFormulaChangeddoesn't say why. Fix: either allow these explicitly behind a recorded reason, or return a precise refusal ("rebind must be a newer release under the same releases root"). -
LOW, if cheap:
- two returns after the checks pass still leave the phase at check-pending and the status at running: the
savebefore review, and theformula.Parseerror (~:1520); - the loop re-reads every ledger header on each pass because it has no
HeaderCache; ReadRecentFinishedis now only used by tests.
- two returns after the checks pass still leave the phase at check-pending and the status at running: the
Review checklist (read before coding)
See the checklist used on #209: bounds, filesystem safety, untrusted input, no local leaks, contract changes, and deterministic tests. Use targeted package tests; a plan may have at most 16 checks, including the 5 Formula baseline checks.
Added 2026-10-27: a malformed coding outcome after complete work
What happened: on #264 the coding harness finished every edit and ran tests, vet and gofmt, but its final message was not the JSON outcome ("invalid character 'B' looking for beginning of value"). The Molecule was blocked. The work survived as a retained tree, but recovery took a manual amend and a whole extra coding continuation.
Asks:
- Outcome retry: on an invalid or missing outcome, re-ask the same session once for the outcome only. Bound it to about 1 turn and no tools. Only after that fails, block.
- A clear next action: a blocked "malformed outcome" with a retained tree should say "Continue from the retained work", and the UI (UI: unblock from the browser — 'why it's blocked · what you can do' actions, and bulk-retire attempts for closed Issues #243) should offer it as one action.
--accept-existing-treewording: it refused with "no violating diff to accept", which doesn't help. Explain when it applies.
Added 2026-10-30: the scope-violation recovery trap
What happens:
- After an
attempt-scope-violation, the only working recovery is oneamendthat both adds the flagged paths (--add-scope … --reason …) and passes--accept-existing-tree <tree>. - Running
--accept-existing-tree <tree>on its own recordsexisting-diff-reviewedand amends, which moves the phase out ofscope-violationwhile the files stay outside scope. - After that, every amend fails with "unrecorded workspace violation; do not convert it to approved scope" (
molecule/amend.go:182), and every run fails with "pending workspace changed; no coding was started" (readiness_run.go:996). The Molecule can only be retired. - This hit Plugins slice 0: characterization tests for every GitHub path (no production change) #289 and Plugins slice 2a: plugin runtime core — MCP client, plugin manifest kinds, v1 contract schemas, plugin test (contract mode) #290 on Oct 30 (36 + 19 golden fixtures under scope directory entries).
Asks:
- Refuse a lone
--accept-existing-treewhen violations would remain outside the successor scope, and name the exact combined command (the paths plus the tree) in the refusal. - Treat a scope entry for a directory such as
testdata/characterizationas covering the files below it, or reject directory entries at intake with a plain reason, so plans can't produce this state at all. - In the UI's unblock panel (UI: unblock from the browser — 'why it's blocked · what you can do' actions, and bulk-retire attempts for closed Issues #243), offer "Add the flagged files to scope and accept the reviewed tree" as one action.
Activity
DanielNetzer commentedon Oct 25, 2026
Flaky under load (post-v1):
TestHarnessTimeoutPlanValueIsHonouredAndRecorded(molecule) failed once in #199's candidate full suite and passed in the protected view in the same run. It depends on a real wall-clock timeout, so it should be made deterministic with a seam or readiness marker.DanielNetzer commentedon Oct 25, 2026
From the #195 review (post-v1): (1)
amend --runshould print the added scope and its auto-chosen evidence IDs, i.e. the full plan view, before approving. (2) With--run, refuse to drop a parent's checks-only continuation unless--continuation codingis given explicitly. (3) A bareforgecell amend MOLwith no building flag should be refused. (4)lockMoleculeruns before the ledger is known to exist, so a mistyped Molecule id leaves a.loop-lockfile behind; Lstat the ledger first. (5) Operator notes should reject bidi and zero-width characters, matchingReviewDisplayText.DanielNetzer commentedon Oct 25, 2026
Post-v1 hardening, found on 2026-10-25 during #220 intake: when an issue has an
## Acceptancesection, the analysis model sometimes copies those bullets into each check'sreviewedAcceptance.readiness.validate(internal/readiness/plan.go:474) then rejects the whole analysis withLabellingViolationMessage, and the corrective retry repeated the same mistake twice. The workaround was to rename the section to 'Done when' and tell intake to leave the field empty. Proposed fix: the corrective-retry prompt should name the offending field (reviewedAcceptance/independentProvenance) and tell the model to clear it, or the analysis schema shouldn't expose those fields to analysis at all.DanielNetzer commentedon Oct 25, 2026
Post-v1 hardening, from the #218 review:
molecule.Rundoesn't take the per-Issue start lock (only the loop'sstarttakes it, vialockIssueinmolecule/loop.go). So a CLIforgecell run Nstarted beside a CLI or UI loop can still create two Molecules for one Issue. The UI guards its own run and loop pair since #230. Fix: takelockIssueforRun's intake phase.DanielNetzer commentedon Oct 25, 2026
Post-v1, found on 2026-10-25: when the harness CLI's auth has expired (Claude Code reports
Failed to authenticate: OAuth session expiredwithterminal_reason: api_error), intake shows onlyanalysis failed: exit status 1. Proposed fix: have the adapters classify a provider auth failure and surface it asharness not authenticated: run claude auth login(or the provider's equivalent) in the outcome, the loop report,doctorand the UI. The loop should stop dispatching after the first auth failure instead of failing every Molecule.DanielNetzer commentedon Oct 26, 2026
Post-v1, found on 2026-10-26 at the first real use of
amend --accept-protected-failures(#235): it refuses unless the protected check is a directgo test -jsoncommand, and intake proposes plaingo test ./...checks. In practice the feature only applies after a manual--planamend that adds-json. Fix options: (a) intake proposesgo test -jsonfor targeted Go checks (via the analysis instruction or plan normalization), or (b) the protected view runsgo testchecks with-jsonitself and renders plain output for humans. (b) removes the dependency on intake. Interim measure: the issue template's plan-check guidance now asks for-json.DanielNetzer commentedon Oct 26, 2026
Addendum (#235):
go test -jsonover large packages overflows the 1 MB check-output cap (clioverflowed after 52 s), and the overflow fails the candidate view. So fix (b) from my previous comment needs the protected view to stream-jsonevents into the failing-test parser without retaining them, and to render a bounded plain summary. A larger cap alone isn't enough.DanielNetzer commentedon Oct 26, 2026
Post-v1, found on 2026-10-26:
amend --rebase-formula(#208) refuses any rebind between dev builds whose commit-hash suffixes don't sort upward.launcherUpgrade→compareReleaseVersionscompares0.0.0-dev.<hash>pre-release identifiers lexically, so0.0.0-dev.08fbd74counts as older than0.0.0-dev.a08de66and the rebase fails with the generic 'issue or Formula changed; refresh intake'. Earlier rebases only worked because the hashes happened to ascend. Fix options: makedev installstamp a monotonic build ordinal (for example0.0.0-dev.<UTC timestamp>.<hash>), or accept any dev-to-dev launcher change in the same releases root for--rebase-formula. Either way, show the specific reason instead of the generic one. Context: I rebound while #235 was still in flight, against the 'rebind only between waves' rule.DanielNetzer commentedon Oct 26, 2026
Post-v1, found on 2026-10-26 (#236): when the resource guard refuses to start verification (low disk), the Molecule is left
blockedin phasecheck-pending. Noamendpath accepts that phase; checks-only needs scope-waiting, failed, review-waiting or interrupted. Recovering neededrecover --confirm-stoppedfirst, thenamend --continuation checks-only. Fix: record a resource refusal asinterrupted, or let checks-only acceptcheck-pendingwhen no verification attempt started, and name the next command in the outcome.DanielNetzer commentedon Oct 26, 2026
Issue sync, 2026-10-26: items moved out of this bucket:
runper-Issue lock → Make concurrent Molecules safe with per-issue and Lab-level locks #53, which is narrowed to that plus the Lab-wide lock andstatus.check-pending, re-run checks, accept protected failures, approve a scope change) → UI: unblock from the browser — 'why it's blocked · what you can do' actions, and bulk-retire attempts for closed Issues #243 (v1). The engine-level fix for the unamendable states stays here, post-v1.Still here, post-v1: the rebind ordering themes (dev-hash ordering, rollback, moved root),
reviewedAcceptancelabelling at intake, the-jsonstreaming notes, the flakyTestHarnessTimeoutPlanValueIsHonouredAndRecorded,amend --runplan display, and the LOW leftovers.DanielNetzer commentedon Oct 31, 2026
Intake gap seen on #309 (2026-10-31): an Issue that names many source paths exhausts the 16-file evidence bound before the component manifest (
lab/go.mod) is collected. Intake then refuses with "new path … needs evidence for its parent component", even though every earlier plan resolved the same component. Suggestion: always collect the component manifests for new paths outside the named-file bound, or reserve slots for them. Workaround: namelab/go.modexplicitly at the top of the Issue body.DanielNetzer commentedon Nov 12, 2026
From the review of #425 (#386):
POST findings/proposerefuses only when the receipt has seen the merge or close. When only GitHub sync has seen it, the UI disables Propose, but a stale tab or a direct POST still reachesfixRoundPropose. Also refuse when the cached forge snapshot shows the PR is no longer open (syncFindingsLive).fixround/pushand findings collect have no merged or closed check, so a verified fix round can still be pushed to a merged PR's branch. This predates Findings tab: fixes from the first walkthrough #386.