Skip to content

fix(agent): keep coding summaries truthful when verification did not run - #289

Merged
AetherAI3 merged 1 commit into
mainfrom
fix/issue-275-truthful-coding-summary
Oct 6, 2026
Merged

AetherAI3 merged 1 commit into
mainfrom
fix/issue-275-truthful-coding-summary

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

Summary

aether agent no longer tells users their tests are failing when the check never ran. The end-of-run footer, --json outcome, session manifest and aether review now 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

  • Truthful verdict line — Only a completed non-zero check reads "failing"; stopped runs name their reason and say "verification not run".
  • Real causes, real check states — A check timeout is no longer called a model stream timeout, and 401/402/output-cap errors carry chat's hints.
  • No borrowed failing counts — Footer, manifest and resume use the host's parsed count only, never the model's self-report.
  • Same answer everywhere — JSON and manifest gain a verification block; a completed check in a git checkout is recorded for aether review under the existing stale rules.
  • Executor markers, not exit codes — timeout 60 npm test exiting 124 stays a red check instead of becoming a timeout.

Verification

  • npm test: 3037 tests, 0 failed (41 platform skips, unchanged from baseline run).
  • New command-path suite covers missing, passed, failed, timed-out, cancelled, launch-failure, refusal and EOF verification.

Risk / Follow-ups

  • Exit codes unchanged except: Ctrl+C after a clean brain done but before the check now exits 130/143 (was 1).
  • Routing-refused runs still record incomplete in the manifest (pre-existing).

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
@AetherAI3 AetherAI3 closed this Oct 6, 2026
@AetherAI3 AetherAI3 reopened this Oct 6, 2026
@AetherAI3

Copy link
Copy Markdown
Owner Author

Landing evidence for b0f71a7 (GitHub-hosted Actions unavailable: account billing lock)

Routed to the self-hosted runners with AETHER_CI_SELF_HOSTED_PR=289 per docs/ci-recovery.md. Run 37449027277 (CI) and 37449027343 (CodeQL).

Required check Result Same failure set as main run 37394968640?
Test (ubuntu-latest) Build and test passed: 3037 tests, 0 failed, 11 skipped Yes: red only at the ATSv2 wire checkout (#266) and Require artifact uploads (#267)
analyze CodeQL Analyze passed, 0 open alerts on the PR ref Yes: red only at Require artifact upload (#267)
supply-chain Dependency audit and CycloneDX SBOM passed Yes: red only at Require artifact uploads (#267)
PyPI launcher Unit tests, type check and wheel smoke passed Yes: red only at Require artifact uploads (#267)
Test (windows-latest) Not run in CI: aether-aws-windows-agent-01 offline Gap

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.

@AetherAI3
AetherAI3 merged commit 874b36b into main Oct 6, 2026
2 of 14 checks passed
@AetherAI3
AetherAI3 deleted the fix/issue-275-truthful-coding-summary branch October 6, 2026 10:39
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]>
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.

[bug] Keep coding summaries truthful when verification did not run

1 participant