Skip to content

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

Closed

Description

@AetherAI3

What happened

The final coding footer collapses every non-green/non-unverified result into incomplete, which runSummary renders as “tests failing” when the count is zero. A timeout, cancellation, or failure before host verification can therefore end with a false test diagnosis.

Expected: distinguish the task outcome from whether a check actually ran. A model/API failure is actionable in a different way from a failing test.

Reproduction

At the pinned source, call runSummary("incomplete", 0, 0, 12). It returns ✗ incomplete · tests failing · 0 files changed · 12s. The command maps a missing verification result to this branch. This was reproduced consistently in an offline harness executing the actual TypeScript helper with colors disabled.

Environment

  • Source: 0.4.0 candidate at ca4180d145b701b0c6d1342efa33f6868cb5b73e.
  • Node: 24.19.0; Linux execution environment; helper-level reproduction.
  • Model route: none; no hosted request or test command was executed for the reproduction.

Evidence

src/commands/code.ts maps the result; src/commands/code_support.ts prints the footer. test/run_summary.test.ts covers failed-test counts but does not cover missing verification after cancellation/timeout.

Acceptance

  • Render from the canonical turn outcome plus verification reading, rather than inferring failure from a zero/unknown count.
  • Cancellation, model timeout/output limit, auth/model refusal, incomplete EOF, and verification-launch failure name the real reason; state “verification not run” where appropriate.
  • Only a completed nonzero check is described as failing. A completed failed check with an unparseable test count may say “check failed”; a recorded pass still says verified.
  • Human output, JSON, review state, and session records agree on the outcome. Exit codes and existing stale-verification rules remain intact.
  • Add focused helper and command-path regressions for missing, passed, failed, timed-out, and cancelled verification.

Priority: P1. Small correction with high trust impact; useful groundwork for goal execution and PR draft evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugspecux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions