Skip to content

evidence report: keep a program's last measured level marked stale instead of dropping L3/L4 to zero on any harness change #4730

Closed

Description

@squid-protocol

Owner decision (2026-10-08). Problem: every evidence record and coverage-ledger entry is fingerprinted against the harness, the oracle and the generator. Any change to those makes every entry stale at once, and the report counts stale coverage as unknown, which is 0. So L3/L4 collapse to 0 after almost any harness or runtime PR until a full re-sweep runs. On 2026-10-08 the committed report showed L3 = L4 = 0 across all estates, against about 41 / 15 really measured. A stale level means "proven against the previous harness, not yet re-checked", not "regressed".

Change:

  • The report keeps each program's last measured level, marked stale: e.g. L3* with "stale since ()" in the per-program table.
  • The estate summary shows current and stale counts separately, e.g. "L3+: 41 (12 awaiting re-check)".
  • The JSON carries level, level_current: bool, stale_since and stale_inputs.
  • Staleness on blocking inputs (port, case, corpus, differences, options: a real change to that program) still drops the level, as today.
  • The release gate (evidence report: regenerate on main by bot, advisory in PRs, strict at release (stop per-PR report churn) #4703: --check --live in publish.yml) still requires every level current. A stale level is never quoted as current in anything published.

Acceptance:

  • After a harness-only change, the committed report shows the previous L3/L4 counts as stale, not 0.
  • A blocking change still drops the level.
  • The release gate fails while any level is stale.
  • evidence_report.py --deltas reports stale vs current.
  • Tests for each case. Docs updated (report "How to read this report", evidence_records.md).

Related: #4601, #4703, #4048 (Q1 staleness policy). Finer-grained fingerprints are a follow-up issue.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    testing
    priority: high
    on Oct 9, 2026
  2. added 3 commits that reference this issue on Oct 9, 2026
    0e5b43f
    a497a30
    195fef7
  3. added
    scope:infra
    on Oct 16, 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

    enhancementpriority: highscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions