Skip to content

feat(proof): evidence freshness SLA and per-claim coverage report #494

Closed

Description

@Sinity

Parent

Part of #401. Verifiability-coherence track. Complements #421 (claim density) and #448 (witness snapshots).

Problem

The proof catalog has strong subject breadth (9046 subjects, 22 claims, 9149 obligations) and tracks runner_trust_metadata and runner_environment_dimensions in its quality checks. What it does not track is whether each obligation's evidence has actually been produced recently.

Today an obligation can be:

  • declared (subject + claim + runner binding all present in polylogue/proof/catalog.py)
  • successfully renderable (render-verification-catalog passes)
  • yet have no evidence run within months

… and nothing surfaces that gap. The catalog reports obligation_count: 9149. It cannot report obligations_with_fresh_evidence: N / 9149.

Symptoms visible today:

  • Claim-density inversion. 8897 of 9046 subjects are schema.annotation rows. Their evidence is generated cheaply by schema-audit. The 22 distinct claims have very different runner cost tiers (cheap / moderate / expensive), but the catalog summary collapses everything to a count. A reader cannot tell that, e.g., 18 of 22 claims have fresh evidence and 4 are stale.
  • Live-archive lanes are run on demand. live-archive-slow, live-products-*, live-retrieval-checks produce evidence over real archives. There is no record of when each lane last ran and what its result was — the evidence exists in the runner's stdout and the operator's memory.
  • Mutation campaigns are run on demand. Same issue: kill rates are reported in the run, not retained as time-series evidence on the obligation.
  • Benchmark campaigns have a baseline-vs-candidate comparison surface but no SLA on when a baseline must be refreshed.

Target

Add an evidence-freshness manifest and a freshness obligation family.

Manifest

# docs/plans/evidence-freshness.yaml
sla_by_cost_tier:
  cheap: 7d        # cheap runners must produce evidence weekly
  moderate: 30d
  expensive: 90d

freshness_evidence_root: .local/proof-evidence/

per_claim_overrides:
  cli.help_quiet: { sla: 14d }
  schema.semantic_role_assigned: { sla: 30d }
  archive.query_law: { sla: 7d }

Evidence record format

Each runner that produces evidence appends a record under freshness_evidence_root keyed by obligation_id:

{
  "obligation_id": "...",
  "claim": "archive.query_law",
  "runner": "...",
  "produced_at": "2026-04-26T...",
  "result": "ok | failed",
  "result_summary": "...",
  "cost_tier": "moderate"
}

(Records are local-only by default — under .local/ — and committed only for high-value obligations the team explicitly elects to durable-store. #448 covers the durable-witness side.)

Lint

devtools verify-evidence-freshness:

  1. For each obligation, find the most recent evidence record.
  2. If now - produced_at > sla for the cost tier (or per-claim override), flag the obligation as stale.
  3. Report stale-by-claim counts.

Soft mode initially (governed by the soft-mode escalation manifest, sibling issue) — escalates to blocking when stale fraction crosses a threshold.

Dashboard

Extend docs/topology-status.md (or sibling evidence-status.md) with:

  • per-claim coverage table: claim | obligation count | fresh | stale | never produced
  • per-cost-tier freshness summary
  • list of top-10 oldest obligations

Topology / proof obligations

Add evidence.freshness_holds obligation family in polylogue/proof/catalog.py so freshness violations route through affected-obligations like any other proof failure.

Why this matters

  • Surface-level coverage breadth without depth. The 9149 number says "we have a lot of subjects" but not "we have recent evidence." The latter is what catches regressions.
  • Cost-aware verification. Different runner classes cost very different amounts of time/compute. A unified freshness SLA differentiated by cost tier matches the existing cost_tier metadata in claims and makes the SLA financially honest.
  • Closes the depth gap from feat(proof): add product-surface obligation families #421. feat(proof): add product-surface obligation families #421 expands claim coverage; this issue ensures expanded coverage doesn't decay into ceremonial obligations.
  • Live lanes become first-class. Today live-archive-* lanes are run "when something seems off." A freshness SLA ties their cadence to the obligation graph: a stale obligation routes the operator to the lane that produces its evidence.

Acceptance (executable)

devtools verify-evidence-freshness          # exits 0 if SLA respected; non-zero on stale-by-claim
devtools verify-evidence-freshness --json   # per-claim freshness report

A new column in docs/verification-catalog.md snapshot summary: obligations with fresh evidence: N / 9149.

Related

Cross-reference: holistic assurance umbrella

Filed 2026-04-27. This issue is part of the holistic assurance coverage map (#506) which restructures verifiability work around four tracks (stop lying / coverage map / routing-proof-pack / product confidence) and introduces an Oracle primitive (#507), declarative coverage manifests (#508 assurance-domains, #509 oracle-quality), and operator-facing proof packs (#510).

Read in conjunction with #506 to see how this issue fits into the broader confidence model.

Amend (2026-04-27)

Per the holistic assurance audit (#506), this issue must wait for #498 (purge phantoms / self-attestation / closed-loop runners) AND #509 (oracle-quality.yaml — counts_as taxonomy) before landing.

Why: freshness is meaningful only for evidence whose counts_as is proof, smoke, or manual_review. Tracking freshness over construction_sanity or ceremonial evidence would re-add the noise #498 removes — every catalog quality_check would generate a freshness record nobody acts on.

Amended scope — apply the freshness SLA to:

Excluded from freshness tracking:

Per-claim coverage report is still in scope:

$ devtools verify-evidence-freshness
Coverage by counts_as class:
  proof:           45/153 obligations have evidence within SLA
  smoke:           12/12  fresh
  manual_review:    4/6   fresh; 1 stale (site.visual: 113d, max 90d)
  construction_sanity: not tracked
  drift_check:     not tracked

This sharpens the original "9149 obligations → freshness-aware count" framing to a smaller, honest target: ~150 proof obligations + ~12 smoke + ~6 manual reviews = ~170 evidence-freshness cells, instead of 9149.

Activity

  1. added
    type:feat
    theme:verifiability
    area:devtools
    on Apr 26, 2026
  2. Sinity commented on Apr 29, 2026

    @Sinity
    OwnerAuthor

    Implemented: suppressions.yaml registry with expiry validation, API parity manifest, and evidence freshness SLA manifest.

  3. added a commit that references this issue on Apr 30, 2026
    50cc492
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

    area:devtoolstheme:verifiabilitytype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions