Skip to content

fix(proof): enforce evidence freshness policies by age #587

Closed as not planned

Description

@Sinity

Summary

The project declares evidence freshness SLAs, but active stale-evidence handling does not enforce those age policies. Freshness is mostly catalog metadata today.

Evidence

  • docs/plans/evidence-freshness.yaml:9 through docs/plans/evidence-freshness.yaml:33 declare per-push, per-PR, weekly, monthly, and manual freshness policies.
  • docs/plans/evidence-freshness.yaml:35 through docs/plans/evidence-freshness.yaml:38 declare stale thresholds.
  • polylogue/proof/coverage_manifests.py:17 through polylogue/proof/coverage_manifests.py:27 includes the manifest in proof subject discovery.
  • polylogue/proof/diffing.py:348 through polylogue/proof/diffing.py:367 labels stable affected obligations as stale_evidence based on base/head obligation IDs, not evidence age or the YAML freshness policies.
  • polylogue/proof/catalog.py:976 through polylogue/proof/catalog.py:1013 creates runner trust metadata without expires_at.
  • polylogue/proof/models.py:412 through polylogue/proof/models.py:421 treats missing expires_at as never stale.

Acceptance criteria

  • Freshness policies in docs/plans/evidence-freshness.yaml are consumed by a gate, not only rendered as coverage metadata.
  • Runner/evidence trust metadata receives an expiry or comparable age policy derived from claim/oracle/freshness class.
  • A stale per-push/per-PR/weekly/manual evidence item fails the appropriate devtools/CI gate.
  • stale_evidence terminology distinguishes age-stale evidence from stable-but-affected obligations, or the existing diff bucket is renamed.
  • Tests cover expired, missing-expiry, and fresh evidence cases.

Activity

  1. added
    type:fix
    theme:verifiability
    theme:evidence-trust
    area:devtools
    on May 1, 2026
  2. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Superseded by #594. I consolidated this finding into the composite issue so the work can be handled as one coherent slice instead of as a tiny standalone ticket. The original evidence remains available in this issue history.

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:evidence-trusttheme:verifiabilitytool:codextype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions