Skip to content

[Bug]: Verification xfail can accept an unrelated error at the marked command #5726

Closed

Description

@smolpaws

Bug Description

The verification runners can classify a new, unrelated error as reproduction of a known bug. They check which command failed, but not which failure it observed. This weakens the twice-baseline/twice-fix proof contract introduced in #5621.

This issue tracks the SDK runner fix and its port to the equivalent runner in OpenHands/automation#577. No new framework is needed.

Expected Behavior

  • Correct behavior → xpass while the known-bug marker remains.
  • The documented bad observation → xfail.
  • Any other failure, including a different error at the marked command → fail.

Keep the correct-behavior assertion. Add a small explicit predicate for the known failure (status, field/error, or observable state); avoid brittle matching of entire transcripts.

Actual Behavior and Evidence

At SDK commit acca181af1f353975965bcf6486e1d0a58f444c0, the classifier returns xfail for a nonzero exit at a # bug line/range, unless the recipe timed out. It saves output but does not match the failure's identity.

Concrete example: F08.secrets-bad-value expects 422 and documents a known 500 with an AttributeError. A new 401, 404, or 503 at that marked command also fails the 422 assertion and receives xfail.

The Automation classifier has the same logic.

Evidence level: source inspection and a concrete classification counterexample, not a live replay. No claim that these alternative responses occurred in a product run.

Minimal Validation / Acceptance

  • Test the documented failure, an unrelated failure at the same marked command, an earlier setup failure, a timeout, and correct behavior.
  • Only the documented failure yields xfail; correct behavior yields xpass; the other cases yield fail.
  • Prove a representative updated recipe still distinguishes the known bug from the fixed behavior.
  • Apply the same semantics to Automation's runner (coordinate with fix: changed suffix in agent server naming from timestamp from random uuid #577 if still open).

Related Canvas proof-contract work: OpenHands/OpenHands#18347.

Reported by smolpaws, an AI agent, at the request of the maintainer.


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

Confirmed by source inspection of the cited commit: the map run classifier in .agents/skills/verify-agent-server/scripts/control_agent_server.py marks a known bug bullet xfail whenever a command on a # bug line/range exits nonzero (unless the recipe timed out) and never checks which failure it observed. The same logic exists in OpenHands/automation's control_automation.py. This weakens the twice-baseline/twice-fix proof contract from #5621: an unrelated new error at the marked command is accepted as reproduction of the documented bug. Evidence is code inspection plus a classification counterexample (F08.secrets-bad-value documents a 500 AttributeError but would also accept a 401/404/503 there); no live product run is claimed, so this stays priority:low.

Bounded scope for this issue: make the known bug classification depend on the identity of the observed failure, declared by the bullet (status, field/error, or observable state), keeping the bullet's correct-behavior assertion intact; update the marker's documentation and map check so a malformed or unknown predicate is rejected; and update one representative recipe (F08.secrets-bad-value) to declare its documented failure so it still distinguishes the bug from the fix. The exact predicate form is left to implementation, as the issue allows (status, field/error, or observable state).

Explicit non-goals: no new framework; do not match entire transcripts; do not change pass/fail/blocked, timeout, or non-known-bug classification; and do not implement the Automation runner port in this repository. OpenHands/automation owns scheduling/dispatch, and its runner port is tracked by OpenHands/automation#577 (still open) and coordinated there.

Acceptance Criteria

  • A known bug bullet declares the identity of its documented failure (status, field/error, or observable state) alongside the existing correct-behavior assertion, which is retained.
  • When the marked command fails with the documented failure, the bullet is reported xfail.
  • When the marked command fails with an unrelated error whose status/field/error/observable state does not match the declared failure, the bullet is reported fail and is not counted as a reproduced bug.
  • Matching uses the declared failure identity, not the whole transcript: a failure with different detail text but the same declared identity still counts, and different content elsewhere does not force a match.
  • A known bug bullet whose marked command now exits 0 (correct behavior) is reported xpass and map run signals that the marker/recipe must be updated, as today.
  • A failure before the marked command (an arrange/setup step) and a recipe timeout are reported fail, not xfail.
  • Bullets without the known bug label are still classified pass/fail exactly as before.
  • map check validates the declared failure identity and rejects a missing or malformed predicate (it fails the map check rather than silently accepting the marker).
  • The verification skill's documentation (marker contract in references/mapping.md and references/maintenance.md) describes the required predicate and the twice-baseline/twice-fix procedure that depends on it.
  • A representative recipe (F08.secrets-bad-value) is updated to declare its documented 500 AttributeError, and running it reports xfail on the unfixed baseline and xpass once the bug is fixed.
  • Validation covers the documented failure, an unrelated failure at the same marked command, an earlier setup failure, a timeout, and correct behavior, with only the documented failure yielding xfail and correct behavior yielding xpass.

Activity

  1. added
    ready-for-dev
    on Oct 12, 2026
  2. added
    priority:medium
    and removed on Oct 12, 2026
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

    priority:mediumready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions