Release grounding test pins a fixed as-of date, so it cannot detect evidence expiry

Author: bq9kpv2h98-maxCreated Sep 25, 2026Updated Sep 25, 2026

All line numbers, counts, and dates below refer to ac21644933910419529bcf81efb95a9ca71edf81.

Summary

tests/release/test_release.py::test_release_grounding_gate_validates_control_registry_and_profiles passes a hardcoded date to _check_grounding_and_capabilities:

python
result = check_grounding_and_capabilities(root, release.date(2026, 9, 10))

The production gate does not. It uses the current UTC date (scripts/release.py:2127):

python
lambda: _check_grounding_and_capabilities(root, datetime.now(timezone.utc).date()),

Because of that gap, the test has two blind spots. Both apply to load-bearing claims and the sources those claims reference, which is the scope the date checks cover.

  1. Recently verified evidence is rejected. scripts/release.py:1354 and :1377 treat verified > as_of and retrieved > as_of as an invalid verification window. Otherwise-valid load-bearing evidence dated after the pinned date is rejected by this test, even when its date window is valid at the current UTC date.

  2. Expiry cannot be detected by the passage of time. :1359 and :1382 raise is stale when refresh_due < as_of. With as_of frozen, and with unchanged ledger contents that pass at the pinned date, advancing wall-clock time alone cannot make this test detect expiry.

Deriving as_of from the ledgers does not resolve this either, at least not in the obvious form. Taking the maximum of the recorded verification and retrieval dates yields a value that is by construction >= every such date, which makes the future-date branch unreachable.

Proposed direction

Split the two concerns that the single fixed date is currently serving:

  • Integration test against the live ledgers uses the current UTC date, the same source as the release gate. This checks reciprocity, registration counts, and scoring-profile state, and lets freshness be enforced the way the gate enforces it.
  • Refresh-window semantics are tested against the real ledger structure with the dates pinned to fixed values. Pinning the dates prevents unrelated evidence expiry from masking the targeted date-window assertion; structural checks still use real repository data. This covers future observation dates, inverted windows, expired evidence, and the inclusive/exclusive date boundaries.

The part I want a maintainer decision on

The first half makes evidence freshness a condition of ordinary test-suite success, not only of release verification.

At ac21644, the earliest refresh_due among the 27 load-bearing claims and the 36 sources they reference is 2026-10-10, so the test would begin failing on 2026-10-11 UTC unless the evidence is reverified through the normal maintenance process. The release gate already fails on that same date; the change is that ordinary CI runs would also fail once the evidence expires.

Two readings seem reasonable, and I would rather ask than guess:

  • Expired evidence should fail normal CI. Green CI on stale evidence is the thing the ledger exists to prevent.
  • Normal CI should not be time-dependent, and freshness belongs only to release verification. In that case the integration test should assert reciprocity, registration, and profile state, and leave freshness out.

Which matches your intent for this repository? I have a locally tested implementation of the current-UTC-date approach and can adapt it after your guidance, or leave this as a report if you would rather implement it yourself.

Verification so far

Local only: macOS, case-insensitive filesystem, Python 3.14. Not verified on the required Python 3.11/3.12 CI matrix, and not verified on remote CI.

  • Focused grounding tests: 14 passed, 63 deselected.
  • Full suite with the change: 1 failed, 634 passed, 31 skipped.
  • Full suite at ac21644 without the change: 1 failed, 622 passed, 31 skipped.
  • Mutation checks, each applied to a separate copy of the release script: all six guard removals and all six strict-to-inclusive comparison changes in _check_grounding_and_capabilities are detected by a corresponding test. The production script's SHA-256 was unchanged throughout.
  • scripts/release.py --root . audit: release audit passed (354 tracked files). Note that audit does not run the grounding gate (scripts/release.py:2224), so this is not evidence that the gate passes.

The one failure in both runs is test_audit_rejects_case_insensitive_path_collisions, which is pre-existing at ac21644 and unrelated to the dates: on a case-insensitive filesystem the fixture's two differently cased paths address one file, so the collision it wants to construct does not exist. Mentioned only to explain the 1 failed counts above.