Skip to content

ci: generate the daily digest and weekly evidence report from the archive #2956

Open

Description

@schlessera

Part of #2948 (task 7).

Blocked by #2955

Context

bun scripts/ci-timings.ts report writes a report directory by hand today (scripts/ci-timings.ts:548). The #2948 ruling sets a daily digest and a weekly full report generated from the durable archive, produced as artifacts every day.

Scope

  • A scheduled workflow (daily, plus a weekly full run) that generates, from the archive: throughput cohorts as docs/process/ci-throughput.md requires; first-main green per proof-policy epoch; red-main incidents and time to green; the top failing and suspected-flaky test families; escape classes once ci: attribute why each failed first-main attempt escaped pre-merge proof #2937 lands; runner-slot wait; local contention once events are published; and the Epic: independent changes land on main concurrently, with only overlapping work serialized #2934 Phase B gate status (7 consecutive days in one epoch, first-main green at or above 80%, every red incident attributed).
  • Output as Markdown and JSON, uploaded as artifacts and written to the job summary.
  • A coverage section in every report listing missing collection hours, expired sources, failed acquisitions and unknowns, so absent data never reads as zero.
  • A changed flag in the digest JSON, true when a red-main incident passes the configured threshold, the gate changes state, or a collection gap appears.

Out of scope

Acceptance criteria

  • From a fixture archive, the weekly report's numbers match a manual recomputation of the same window; proven by a test.
  • A fixture with a missing collection hour lists it under coverage and does not report zero activity for it.
  • The gate section reports met exactly when the fixture satisfies all three conditions, and not met with the failing condition otherwise.
  • The changed flag is true for each of its three triggers and false otherwise.

Verification

Focused report tests; one recorded scheduled run with its artifacts linked.

Contract impact

None.

Activity

  1. added
    type: chore
    area: ci
    agent-ready
    blocked
    on Oct 25, 2026
  2. added this to the 0.45.0 milestone on Oct 25, 2026
  3. added
    priority: p2
    on Oct 25, 2026
  4. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #2955 is closed, so scripts/sync-project.ts is removing the blocked label.

  5. removed
    blocked
    on Nov 17, 2026
  6. self-assigned this
    on Nov 17, 2026
  7. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-2c7b38ee. Branch: chore/2956-ci-evidence-reports.

    collisions: closure-only overlaps with open PRs on the ci-timings tests; no path collision

  8. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    The digest and weekly report generator landed in #4141 (squash 2396966). The one remaining criterion is a recorded scheduled run with its artifacts linked. The first scheduled ci-evidence-report run is at 03:37 UTC on 2026-11-18, and its weekly report first runs on Monday 2026-11-23. This issue closes once those runs are linked here. The #2955 backfill is still running, so the first digest may cover a partial archive.

  9. schlessera commented on Nov 18, 2026

    @schlessera
    OwnerAuthor

    First scheduled daily digest: ci-evidence-report run 44231988052 (event schedule, created 2026-11-18T03:39:49Z on main 80a16d2b7) completed success. It uploaded the ci-evidence-report artifact (id 14394843553, 8,892 bytes), which contains digest.md and digest.json.

    The digest covers 2026-11-17 UTC from archive 792a680d5. It reports 53 merged PRs, 40/53 first-main green, 5 red-main incidents and the Phase B gate as not met. It correctly marks its own coverage as incomplete: 27 archive acquisitions failed, so its counts are lower bounds, as expected while the #2955 backfill is unfinished. This run didn't generate a weekly report, because today isn't the weekly day.

    This issue's remaining criterion is the first scheduled weekly report, on Monday 2026-11-23. It stays open until that run is linked here.

  10. schlessera commented on Nov 23, 2026

    @schlessera
    OwnerAuthor

    2026-11-23 0.45.0 release reconciliation (maintainer-approved): deferred out of 0.45.0. This is p2 observability/CI-reporting work that changes no product safety behaviour, so it no longer blocks the release. Milestone removed; it will be scheduled into a later release when it is committed.

  11. removed this from the 0.45.0 milestone on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: cipriority: p2type: chore

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions