Skip to content

Behavioral verification: CI recipe, retention and evidence reader #159

Open

Description

@datacas

Problem

Behavioral runs must work outside a workstation, retention must be bounded, and the agent needs a way to read evidence without loading traces or the raw report into context.

Proposal

  • CI recipe: a non-interactive behavioral job (GitHub Actions example) that runs behavioral.py or normalize, always uploads run.json, and uploads heavy artifacts only on failure with short retention. The job on the head SHA is the path to externally_verified (Wait for the pushed head's CI before a resolution or implementation reports success #77).
  • Coordinate with Classify CI failures and retry flaky checks once #145: a rerun of the behavioral job counts as a confirmation run (confirmedByRun) and the same failure is not retried twice; flaky there (transient cause) differs from flaky here (fail then pass in one run).
  • Retention: keep_runs with dry-run by default; never deletes the run in progress; evidence path per cycle (Stop asking what the cycle already has authorized; stable temp paths #141).
  • behavioral.py evidence <run> <TEST> for progressive disclosure: error-context.md first, then the Playwright trace CLI (errors, actions --errors-only, requests --failed, console --errors-only, snapshot) only when needed, with bounded output and a truncation marker. The trace CLI is stateful (.playwright-cli/ in the cwd), so it runs with the evidence directory as cwd and always closes the trace.

Out of scope

Other CI systems, a parser of trace.zip.

Acceptance criteria

Depends on #155 and #146; coordinate with #145. Design: docs/behavioral-verification-design.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions