Skip to content

Support safe reuse of comparison evidence across runs (locked runner, isolated inputs, provenance import) #41

Todo

Description

@jongio

Problem

Callers that run paid baseline/candidate comparisons on pull requests (for example github/plugin-marketplace-starter .github/workflows/skill-eval-comparison.yml) rerun both paid comparisons on every push. This happens even when the evaluated skill, evals, and runtime are unchanged, such as a review-fix push to unrelated files. One recent run used ~417K tokens (baseline 197,533 + candidate 219,404).

Callers cannot safely reuse earlier evidence today. A path-filter shortcut could turn unknown or failed evidence green, which is not acceptable.

Missing capabilities (as of d7b40d34236f09c8078a2b4e0008ed2ac81919cb)

  1. Locked runner input. vally-version accepts an exact top-level version, but src/tooling.ts generates a fresh npm lock on every job (npm install --package-lock-only, then npm ci). The recorded engine, dependency, and lock hashes are only captured after the fact. The action needs a caller-provided immutable dependency lock, or a preverified locked runtime. Both the executable and lock digests must be enforced before invocation in every job.

  2. Isolated execution and input identity. nativeArguments() (src/native.ts) exposes no backend override (--backend / --backend-args), so callers cannot select Vally's Docker backend without editing each eval. The action also needs a trusted, complete digest or manifest covering:

    • staged data
    • baseline skill restoration
    • candidate skill source
    • selected evals
    • the runtime, backend, and image
    • declared external inputs

    Network and credential policy must be explicit. Docker task and grade networks currently default to unrestricted. verifyCheckout() requires HEAD == GITHUB_SHA, so a snapshot path is not by itself a supported workspace boundary.

  3. Cross-run import with provenance. Artifact ID and digest overrides exist, but readReportArtifact passes the current GITHUB_RUN_ID, GITHUB_RUN_ATTEMPT, and GITHUB_SHA to parseStructuredReport, and currentPull() rejects earlier revisions. A supported reuse mode must verify:

    • the original repo, workflow, run, and attempt
    • the PR and base
    • the exact source revision
    • complete baseline and candidate evidence
    • immutable artifact digests
    • matching full input and runtime identity

    It must keep the original pass/fail status, and label the check and comment as reused with links to the original evidence.

Requirements

  • Missing, partial, expired, changed, or untrusted evidence must never produce a green or skipped required check. It must either fail or trigger a fresh evaluation.
  • A reused failure must still fail.
  • Tests must cover:
    • lock mismatches
    • snapshot boundaries
    • backend and network configuration
    • artifact identity and trust
    • stale, malformed, and expired evidence
    • preserved failure behavior
    • reuse labels

Context

Activity

  1. self-assigned this
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions