Repository navigation
Description
Part of #2948 (task 3).
Blocked by #2951
Context
Artifacts and logs in a public repository are retained for at most 90 days, and from 2026-10-01 checks, workflow runs and statuses share that cap (GitHub changelog). The hourly collector uploads tmp/ci-timings/ as the ci-timings artifact with retention-days: 90 (.github/workflows/ci-timings.yml:40-47). The #2934 baseline window starts 2026-10-14, so it can no longer be recomputed from GitHub after about mid-January 2027. bun scripts/ci-timings.ts report already merges archived files recursively and refuses conflicting event IDs (docs/process/ci-throughput.md:30-47). actions/download-artifact v8 can download from another run with run-id and a token with actions: read.
Scope
- A daily workflow job that downloads the previous day's
ci-timingsartifacts, merges them with the existing compaction rules, and commits monthly compact files to the data ref named in the ci: record the evidence archive, delivery and cadence decision #2951 decision, with exact--force-with-lease, the leakage screen, andcontents: writescoped to that job only. - An immediate backfill: a manual dispatch that walks every currently available
ci-timingsartifact into the data ref, oldest first, idempotently. - A
--from-archiveinput tobun scripts/ci-timings.ts reportthat reads the data ref instead of artifacts.
Out of scope
- New signals (other tasks under Epic: CI and integration evidence is collected, archived beyond GitHub retention and reported automatically #2948).
- Report formatting and delivery.
- Raw job logs; only the normalized records the collector already keeps.
Acceptance criteria
- Running the backfill twice produces no new commit the second time; proven by a test against a fixture ref.
- Two concurrent writers cannot both commit; proven by a real concurrent push test, as for the reservation.
- A record that fails the leakage screen is refused before commit; proven by a test.
- The Epic: independent changes land on main concurrently, with only overlapping work serialized #2934 2026-10-25 baseline table (2026-10-14 17:19:18 UTC to 2026-10-21 17:19:18 UTC) recomputed with
--from-archivematches the published figures, or every difference is explained in the PR. - The backfill has run on the default branch before the oldest baseline artifact expires, with its run linked in the PR or on Epic: CI and integration evidence is collected, archived beyond GitHub retention and reported automatically #2948.
Verification
Focused tests for compaction, idempotence, concurrency and the screen; the recorded backfill run; the baseline recomputation output.
Contract impact
None.
Activity
schlessera commentedon Nov 15, 2026
Dependency #2951 is delivered in PR #4004, squash b22ca4b. The decision is docs/decisions/ci-evidence.md; its archive ref, layout, schema and publication boundaries now bind implementation. Removed the satisfied blocked label; this does not qualify archive implementation or backfill.
schlessera commentedon Nov 17, 2026
Claimed for implementation. Claim token:
claim-44866164. Branch:chore/2955-ci-evidence-archive.collisions: closure-only overlaps with older draft PRs on the ci-timings tests; no path collision
schlessera commentedon Nov 17, 2026
Draft PR #4133 implements the daily compaction, the idempotent backfill walk,
report --from-archiveandarchive --dir. It carries focused tests and mutation receipts. It usesRefs: acceptance criterion 5, the backfill dispatch on the default branch, can only happen after merge, and the steps are in the PR. For criterion 4, the baseline cannot be recomputed from retained artifacts, because the oldest one's window starts 2026-10-20T10:42Z. The PR explains each difference. Preserving that window from the Actions API before about 2027-01-12 is #4129. Follow-ups: #4130 (monthly blob size, needs a decision) and #4131 (directory report depends on file listing order).chore(ci): archive CI evidence on the measurement data ref daily (#2955…
schlessera commentedon Nov 17, 2026
Merged in #4133 as
2aefe8f3fthrough the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.schlessera commentedon Nov 17, 2026
Reopened: criterion 5 (the backfill) isn't done yet. The archive workflow shipped in #4133, but the backfill needs repeated dispatches. The first
ci-evidence-archivebackfill dispatch on main (run 44017122021, 2026-11-17) archived 435 sources in 9 commits torefs/heads/brain-ci-metricsand reportspending: 183. I'll dispatch it again after the hourly API quota resets, until it reportspending: 0, then link the runs on #2948 and close this issue.schlessera commentedon Nov 17, 2026
Done: the last criterion, the backfill, finished with
pending: 0(runs 44017122021 and 44025547521, linked on #2948). The archive workflow and its tooling landed in #4133.schlessera commentedon Nov 17, 2026
Merged in #4133 as
2aefe8f3fthrough the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.