Skip to content

Add pass@k and pass^k metrics for Guidance #108

Description

@Jordak

Current behavior

As of this issue being written, Guidance reports a single-run behavioral pass/fail summary for a harness run. This works for deterministic failures, but recent Codex Guidance diagnostics showed stochastic fixture behavior: targeted reruns can pass while a full default run may fail a different fixture, and a later full low-effort run can pass all fixtures.

Why this should change

A single run makes it hard to distinguish durable guidance regressions from flaky or stochastic harness behavior. Maintainers need a way to report both whether a fixture can pass at least once across repeated attempts and whether it passes consistently across repeated attempts.

Desired behavior

Add repeat-run metric support for Guidance, without changing fixture expected behavior, judge semantics, or default scoring unless explicitly designed in the implementation issue/PR.

Define and report at least:

  • pass@k: a fixture or suite is counted as pass@k when at least one of k repeated independent runs passes.
  • pass^k: a fixture or suite is counted as pass^k when all k repeated independent runs pass.

The implementation should make clear whether metrics are computed per fixture, per suite, per harness, or all three. It should also preserve the existing single-run summary for ordinary diagnostic and status-compatible workflows unless the status policy is deliberately updated.

Suggested scope

  • Add CLI support for configuring repeated Guidance attempts, for example a repeat count k.
  • Record enough structured metadata to compute pass@k and pass^k without copying raw HUT answers into Core.
  • Summarize stochastic outcomes in saved reports using public-safe counts and fixture identifiers.
  • Keep raw repeated-run evidence under the Personal Overlay report directory.
  • Decide whether pass@k/pass^k are diagnostic-only initially or eligible for benchmark status refresh after a separate status-policy update.

Validation

  • Guidance self-tests cover pass@k/pass^k aggregation behavior with synthetic results.
  • Existing single-run Guidance behavior remains compatible when k is not configured.
  • scripts/run-validator passes.
  • Saved reports do not copy raw/private evidence into Core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferredDeferred pending later prioritization or design decision

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions