Skip to content

Notes and the completion guard share one command outcome - #2298

Merged
santoshkumarradha merged 71 commits into
app/v3from
c52/notes-refused
Nov 3, 2026
Merged

santoshkumarradha merged 71 commits into
app/v3from
c52/notes-refused

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What changes

A step's execution notes said "completed" for a command that never ran. In a real job, a command refused for needing approval, with nobody attached to approve it, reached later briefs as completed. The completion guard read the same results its own way, so a step could stay held after a passing rerun.

Notes and the guard now share one outcome.

passed means one thing: every check in the call has a measured exit of 0, and the command has no shell form that could hide a failure. Text a command printed can never produce passed; it can only lower an outcome.

  • measured non-zero exit: failed, including cargo test; true
  • refused for approval or by policy: refused, with the reason
  • cancelled: cancelled, with the reason
  • timed out: timed out, with the reason
  • launched in the background: started. A later measured exit decides.
  • no measured exit, or an unquoted ;, ||, single &, newline, $( or backtick in the command: completed, unless a measured exit failed

PR validation goes by each command's last outcome and publishes only passed.

For the completion guard:

  • A refused command followed by an exact rerun that passes clears.
  • A refused probe followed by a wider passing test isn't held, including a quoted -run argument.
  • A refused required test with no pass stays held.
  • A real failure with no rerun stays held.

Limits

  • Fewer things publish, on purpose. A printed PASS with no measured exit used to publish; this also changes old journals, which read completed. go test ./a; go test ./b publishes nothing even when both pass. && chains and | pipes still publish.
  • bash -c 'go test ./...', sh script.sh and make test publish nothing, as before.
  • A check run by a path the observer doesn't see, such as an absolute path, is unmeasured.
  • No app wire change. No live model run.

Validation

  • cmd/codeaf/factory_publish_matrix_test.go: a table of commands, output, producer status, measured exits, compound calls and reruns, stating for each whether it publishes. Eight rows failed before the fix, including a measured exit of 7, a printed PASS, and a passed check whose rerun failed.
  • Other reds before their fixes: outcome="completed" want "refused", background exit=1 published as passed, wider measured pass retained quoted refused probe, TestReceiptCompoundCheckExits/zero_then_nil, hidden_command_failure publishes=true want=false.
  • Tests that assumed a pass from text moved to measured fixtures or to completed.
  • cmd/codeaf, internal/factory, internal/factory/verification, internal/manual, go vet: pass. internal/session fails only its five known red tests on the base.

🤖 Generated with Claude Code

santoshkumarradha and others added 30 commits November 3, 2026 03:28
Scratch check exits were diagnostic but their parent shell failure remained an independent obligation after green checkout checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…me guard debt

Refused, cancelled and timed-out attempts remain owed until later current measured coverage. Real failures and unknown shell context remain blocking. All guarded reports use the same three unchanged or six total refusal bound.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Share the ordered verification environment schema between observation and unrun coverage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…un debt

Older passes cannot borrow chronology from a newer journal occurrence of the same command. Legacy records without call IDs require an unambiguous occurrence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bind fixture check receipts to their public tool invocation IDs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A historical passing check cannot certify an unmeasured completion after a newer refusal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eal run

The fixture journal must append: writing from an earlier file offset could overwrite a refusal before its measured rerun.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Legacy output cannot invent interruption status; launch acknowledgements remain started until measured evidence qualifies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha santoshkumarradha changed the title Execution notes say what really happened to a command Notes and the completion guard share one command outcome Nov 3, 2026
santoshkumarradha and others added 22 commits November 3, 2026 06:12
The matching-command regression exposed a real guard bypass: lowering a measured pass to completed skipped preservation of an unfinished background shell. Keep that obligation under the existing guard coverage rules without relaxing publication.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Completion wakes could consume the next positional model response before its typed message existed, producing legitimately unsourced tasks on both the PR and app/v3. Drive proposals from the actual request transcript while retaining every source, identity, checkpoint and reopen assertion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Submit attached to an existing wake returns that wakes stream, which can close before the turn answering the queued message. Wait for the stubbed task completion and the conversation to become idle so repeated words remain separate requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 14:59
@santoshkumarradha
santoshkumarradha merged commit 72a4fda into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/notes-refused branch November 3, 2026 14:59
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