Skip to content

fix: close-before-report ordering (FN-027/FN-028) + bump to v0.8.4#8

Merged
HaipingShi merged 2 commits into
mainfrom
v0/caf71f4383fc0184-8374-a3840a94
Jul 13, 2026
Merged

fix: close-before-report ordering (FN-027/FN-028) + bump to v0.8.4#8
HaipingShi merged 2 commits into
mainfrom
v0/caf71f4383fc0184-8374-a3840a94

Conversation

@HaipingShi

Copy link
Copy Markdown
Owner

Fourth field-findings round, correcting the FN-023 root-cause analysis. Theme: the closeout ledger runs from a snapshot taken before anything mutates, and every verdict printed matches what actually happened on disk.

FN-027 (root cause correction) done decided success by the gate's return code alone, but the gate can fail AFTER the task was closed and committed. done now decides by facts: if the task flipped to [x] in TASKS.md, the full ledger runs even on gate failure, with an explicit GATE INCONSISTENCY note. The rerun hint only appears for genuinely open tasks; finish_task reports done (WITH ERRORS) instead of 'blocked' when the close actually happened. A built-in fuse runs the same audit as coderail progress before declaring victory.

FN-028 Closeout context (--next, acceptance verdicts, verify results) is snapshotted to gitignored .coderail/pending_close.json before anything mutates; progress --repair restores the real parameters from a surviving snapshot.

Three end-to-end regression tests, no mocks; 76 total pass.

Co-authored-by: v0 it+v0agent@vercel.com

v0 added 2 commits July 13, 2026 15:41
…7/FN-028)

Root cause correction for FN-023: done decided success by the gate's return
code alone, but the gate can fail AFTER the task was closed and committed
(late stages query 'the current active task', which no longer exists). done
now decides by facts - if the task flipped to [x], the full ledger runs even
on gate failure, with an explicit GATE INCONSISTENCY note. Closeout context
(--next, acceptance verdicts, verify results) is snapshotted to gitignored
.coderail/pending_close.json BEFORE anything mutates; progress --repair
restores the real parameters from a surviving snapshot. finish_task reports
'done (WITH ERRORS)' instead of 'blocked' when the close actually happened;
the rerun hint only appears for genuinely open tasks. done ends with the
same audit as coderail progress as a fuse. Three end-to-end regression
tests against the real flow, no mocks (76 total).

Co-authored-by: v0 <it+v0agent@vercel.com>
Co-authored-by: v0 <it+v0agent@vercel.com>
@HaipingShi
HaipingShi merged commit a340dbc into main Jul 13, 2026
3 checks passed
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coderail Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 3:45pm

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.

2 participants