Skip to content

Release-channel freshness: validation_report self-refreshes from release-integrate runs (fixes #128) - #129

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/release-channel-freshness
Jul 30, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/release-channel-freshness

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Fixes #128 — the CI/release-audit series finale: kills the last chronic STALE.

heart/checks/release_run.py, mirroring the shipped test_run.py cached-artifact pattern:

  • Latest release-integrate.yml run via gh run list; its release-stage-report fetched once per run id (sidecar-cached), then folded through the existing heart.validate.run() ingest (stage reports embed their own commit_shas/testpypi_version — no new ingest logic).
  • decide() is pure and no-network (gh callables injected only by the tick/CLI entrypoint — the research: audit the evidence chain behind Heart's release verdict #83/test_run: honest counts + validation-report artifact ingest (fixes #119) #120 discipline). Rules, each pinned by a test: in-progress never ingests; cached run id never re-downloads; a fresher local ingest is never regressed; unparseable timestamps fail toward refresh (ingest is idempotent; staleness is the harm); a failed rehearsal ingests too — release_ready: false is evidence, so readiness shows the accurate release validation FAILED (stage integrate) RED instead of week-old STALE, self-clearing on the next green night.
  • Wired into tick.sh beside test_run; capabilities entry added.

Live proof: the real failed rehearsal's artifact (run 30516167217) downloads + ingests to release_ready=False, and readiness.compute over the result emits exactly release validation FAILED (stage integrate) (sandbox state dir). The live tick on the new channel honestly reports no-runs — the first real exercise is tonight's nightly.

Suite: 337 passed (9 new in tests/test_release_run.py). Branch is disjoint from the open #127 (smoke gate) — mergeable in any order.

🤖 Generated with Claude Code

…om release-integrate runs

validation_report.json only refreshed on a manual local ingest (the nightly's
own ingest is ephemeral CI state), so 'release validation stale: source moved
since rehearsal' was chronic between releases (PyAutoHeart#128).

heart/checks/release_run.py mirrors test_run.py's cached-artifact pattern:
the tick reads the latest release-integrate.yml run, downloads its
release-stage-report once per run id, and — when the completed cloud run is
newer than the ingested report — refreshes validation_report through the
existing heart.validate.run() ingest path (stage reports embed their own
commit_shas/testpypi_version). A fresher local ingest is never regressed; an
already-ingested run id never re-downloads; a FAILED rehearsal ingests too
(release_ready=false is evidence: readiness shows 'release validation FAILED
(stage integrate)' instead of week-old STALE, self-clearing on the next green
night). decide() is pure/no-network; gh callables live only in the tick/CLI
entrypoint. Wired into tick.sh beside test_run.

Live proof: the real failed rehearsal artifact (run 30516167217) downloads +
ingests to release_ready=false and readiness computes exactly 'release
validation FAILED (stage integrate)' in a sandbox state dir; the live tick on
the new channel honestly reports no-runs until tonight's nightly. Suite: 337
passed (9 new).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit b58aa35 into main Jul 30, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/release-channel-freshness branch July 30, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev-box freshness for the release channel (self-refreshing validation_report)

1 participant