Repository navigation
fix(agent): keep coding summaries truthful when verification did not run - #289
Merged
Merged
Conversation
The end-of-run footer collapsed every result that was not ok/unverified into "incomplete", and runSummary printed "tests failing" when the count was zero — so a cancellation, model timeout, output cap, refusal, dropped stream, or a check that never started ended with a false test diagnosis (#275). The footer, the --json turn_outcome, the session manifest and the review rail now render one report: the canonical turn outcome, a CheckReading of what the host's check actually did (passed / failed / timed_out / cancelled / launch_failed / not_run / unconfigured), and the turn-level cause when the check did not decide the outcome. - Only a check that ran to completion and exited non-zero is "failing"; an unparseable count reads "check failed (exit N)". The failing count is the host's parse only, never the brain's self-report — in the footer, the manifest `remaining`, and therefore handoff/resume. - A timeout or cancellation is read from the executor's own markers, not the exit code alone, so `timeout 60 npm test` exiting 124 stays a red check. - A check that timed out is no longer reported as a model "stream timed out"; a verification that cannot start is no longer "failed before final verification"; thrown errors (HTTP 401/402, output cap, incomplete stream) are named with the same hints chat uses. An errored turn keeps its cause. - Session records add `cancelled` / `timed-out` statuses and a `verification` block; JSON adds `verification {state, exit_code, failing, reason}`. The test command is redacted once at the source. - In a git checkout, a completed check is recorded through verifyAndRecord, so `aether review` reads back the same result with the existing stale rules. A check that did not complete is never recorded. - verifyCodeTurn / codeRunRecord are extracted from cmdCode so the command path is tested without a brain. Exit codes are unchanged, except that a cancellation landing after a clean brain `done` but before the check now exits 130/143 (cancelled) instead of 1. Closes #275
Owner
Author
|
Landing evidence for Routed to the self-hosted runners with
Windows coverage gap: no CI Windows run for this head. The full suite was run locally on Windows 10 (Node 24.18) at this source: 3037 tests, 0 failed, 41 platform skips. Merged on the maintainer's decision with the ruleset bypass. Re-check on the next Windows-runner main build. |
4 of 6 tasks
AetherAI3
added a commit
that referenced
this pull request
Oct 6, 2026
The host's own verifier readings now reach an active RC session's Tests panel (#219): the final gate of `aether agent` (through the run's own coding observer), `aether review verify`, and stored readings shown by `aether review` (the source of "stale"). - testsEvent publishes the verifier's status plus a closed-vocabulary reason and, for a failure, the exit code; no command, output, local reason or parsed counts. - Killed runs (130/124 or an aborted signal), a tree that moved during the run, and a tree that cannot be fully identified are "unknown" and are never recorded or read back as a pass. - A frame field the outbox sanitizer would rewrite is dropped; without its status the reading is not sent, so no 400 can wedge the outbox. - The coding observer reloads the outbox before enqueueing when no upload is in flight, so a standalone review's queued reading is not saved over. - RC failures never change verdicts or exit codes; nothing is awaited. Integrated onto #289 (874b36b): whether a check completed is the CheckReading the agent footer renders (verify_gate readCheck), so a kill is read from the executor's own markers or an aborted signal, never an exit code alone; verifyAndRecord maps cancelled/timed_out onto these causes. In `aether agent` the gate's reading is the one verifyAndRecord records for the review rail (recordingRunner hands it over), published by verifyCodeTurnInCheckout; without a recorded run the CheckReading alone is published (no command, not run, could not start, killed, or unattributed). A check that cannot start reads "the check could not start" (new launch_failed cause). publishDiff (#218) shares the observer's single reload-before-enqueue path. The review-rail kill test follows #289's executor-marker rule: a command that exits 124/130 by itself is a completed, recorded failure; only an executor kill ([aborted]/[timeout after Ns]) is unknown and unrecorded. Integrated with #299: recordingRunner keeps #299's onResult callback, which receives the whole VerifyRunResult. verifyCodeTurnInCheckout captures the recorded {reading, written} once, publishes the reading to RC as before, and returns it as recordedCheck; cmdCode hands that receipt to the session log and to the goal-phase runObserver exactly as #299 did. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
AetherAI3
added a commit
that referenced
this pull request
Oct 6, 2026
The host's own verifier readings now reach an active RC session's Tests panel (#219): the final gate of `aether agent` (through the run's own coding observer), `aether review verify`, and stored readings shown by `aether review` (the source of "stale"). - testsEvent publishes the verifier's status plus a closed-vocabulary reason and, for a failure, the exit code; no command, output, local reason or parsed counts. - Killed runs (130/124 or an aborted signal), a tree that moved during the run, and a tree that cannot be fully identified are "unknown" and are never recorded or read back as a pass. - A frame field the outbox sanitizer would rewrite is dropped; without its status the reading is not sent, so no 400 can wedge the outbox. - The coding observer reloads the outbox before enqueueing when no upload is in flight, so a standalone review's queued reading is not saved over. - RC failures never change verdicts or exit codes; nothing is awaited. Integrated onto #289 (874b36b): whether a check completed is the CheckReading the agent footer renders (verify_gate readCheck), so a kill is read from the executor's own markers or an aborted signal, never an exit code alone; verifyAndRecord maps cancelled/timed_out onto these causes. In `aether agent` the gate's reading is the one verifyAndRecord records for the review rail (recordingRunner hands it over), published by verifyCodeTurnInCheckout; without a recorded run the CheckReading alone is published (no command, not run, could not start, killed, or unattributed). A check that cannot start reads "the check could not start" (new launch_failed cause). publishDiff (#218) shares the observer's single reload-before-enqueue path. The review-rail kill test follows #289's executor-marker rule: a command that exits 124/130 by itself is a completed, recorded failure; only an executor kill ([aborted]/[timeout after Ns]) is unknown and unrecorded. Integrated with #299: recordingRunner keeps #299's onResult callback, which receives the whole VerifyRunResult. verifyCodeTurnInCheckout captures the recorded {reading, written} once, publishes the reading to RC as before, and returns it as recordedCheck; cmdCode hands that receipt to the session log and to the goal-phase runObserver exactly as #299 did. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aether agentno longer tells users their tests are failing when the check never ran. The end-of-run footer,--jsonoutcome, session manifest andaether reviewnow render one report — how the turn ended plus what the host's check actually did — so a cancellation, model timeout, refusal or dropped stream is named as itself. Closes #275; groundwork for #287/#288.Key Changes
verificationblock; a completed check in a git checkout is recorded foraether reviewunder the existing stale rules.timeout 60 npm testexiting 124 stays a red check instead of becoming a timeout.Verification
npm test: 3037 tests, 0 failed (41 platform skips, unchanged from baseline run).Risk / Follow-ups
donebut before the check now exits 130/143 (was 1).incompletein the manifest (pre-existing).