Skip to content

Epic: CI and integration evidence is collected, archived beyond GitHub retention and reported automatically #2948

Open
7 of 15 issues completed

Description

@schlessera

Outcome

Every signal that #2934 and its tasks depend on is collected automatically by GitHub Actions and kept for longer than GitHub's own retention. Reports are generated on a schedule from that durable record, stored as artifacts, and delivered to the people who follow the repository, with no manual collection step, no personal data and no new external service. Each report states its own coverage gaps.

Why now

Shared context

  • Existing collection. .github/workflows/ci-timings.yml runs hourly (43 * * * *) with a read-only token. It collects a two-day overlapping window of job and step timings, PR lifecycle and reservation history with bun scripts/ci-timings.ts collect … --request-budget 200 --reserve 500 --reservations, seeds from the previous default-branch artifact, and uploads tmp/ci-timings/ as the ci-timings artifact for 90 days. The workflow's own header comment says "Measurement only: never a proof/merge gate". Collection, enrichment and the report are documented in docs/process/ci-timings.md ("Automatic archival") and docs/process/ci-throughput.md.
  • Existing report. bun scripts/ci-timings.ts report --out <dir> merges archived files recursively and reports first-pass green integrations per day, reservation occupancy, same-commit green, latency percentiles, and failure-classified, incident and revert events (docs/process/ci-throughput.md:48-109). The manual command remains available; chore(ci): generate the daily digest and weekly evidence report from the archive #4141 now supplies the scheduled archive-derived digest/weekly generator described below.
  • Local-event publication is explicit. record still writes locally. Delivered ci: publish orchestrator work, wait and preemption events to the hosted archive #2954 adds bun scripts/ci-timings.ts publish --repo <owner/repo> --out <dir> for bounded work/wait/preemption events on the data ref (docs/process/ci-timings.md:398-438; publish branch, scripts/ci-timings.ts:620-621). This does not instrument every orchestrator or prove coverage; absent published activity remains unknown. docs: align the CI evidence inventory with delivered producer outputs #4144 reconciles stale producer descriptions in the evidence inventory.
  • A precedent for durable shared state. refs/heads/brain-integration-reservation holds append-only, leakage-screened JSON updated with exact --force-with-lease (docs/decisions/ci-utility.md:1200-1208).
  • Cross-run artifact access. actions/download-artifact (v8) can fetch artifacts from another workflow run when given run-id and a github-token with actions: read (README).
  • Privacy is already handled at collection. The collector does not keep raw titles, authors, comments or runner host names, and it omits actor IDs from reservation history (docs/process/ci-throughput.md:9-47). The repository and every report are public; the tree-wide leakage gate applies.

Design (October 25 ruling, November 8 selections, recorded through #4004)

  1. Collect: keep the hourly collector, and add collectors for the new signals as each producing task lands.
  2. Archive durably: a daily job downloads the last day's hourly artifacts, merges them into a compact normalized archive partitioned by month, and commits it to the dedicated append-only data ref refs/heads/brain-ci-metrics with UTC YYYY-MM/<record-kind>.json partitions and per-kind integer versions. The 2026-11-17 amendment on #4130 selects YYYY-MM/run/DD.json for new run records, leaving other kinds monthly and legacy monthly runs readable; that amendment is awaiting implementation and its dated decision-record update under ci: partition archived run records by UTC day #4130. Unknown versions are refused; new versions append without rewriting prior records. Publication uses the same leakage screen and exact --force-with-lease as the reservation ref. Artifacts keep raw and intermediate files for 90 days; the data ref is the long-term record.
  3. Report: the daily job generates a digest, and a weekly job generates the full report, both from the data ref. Each report is produced as Markdown and JSON, uploaded as an artifact, and written to the job summary.
  4. Deliver: the weekly report is posted as a comment on one pinned tracking issue, and GitHub's own notification email reaches everyone subscribed to it. No secret, mail server or address is needed. The daily digest posts only when something changed: any newly observed red-main incident, with no minimum duration and no repeated delivery for the same unchanged incident, the Phase B gate changing state, or a collection gap. Report artifacts are produced daily regardless.

Start and release gate — satisfied 2026-11-01

The later scheduling ruling takes precedence over the technically independent preparation described below: no task under this epic starts until 0.44.0 ships, including archive backfill. The native children #2950–#2957 are committed to 0.45.0; the epic itself has no milestone. The ruling selected #2951 and #2955 first once the gate was satisfied; both implementations are now delivered. #4129 owns the separately identified Actions-API baseline acquisition before expiry; the initial retained-artifact backfill now has the successful operational receipt below. Preserve the ruling's p1/p2 rankings and blocker-priority agreement; this epic remains p2.

The publication prerequisite is satisfied. The maintainer’s publication receipt records all nineteen packages at 0.44.0 from main a84d9bfbcb4e608b504aa0a9feb1144ad9a0b77e. On 2026-11-02, each of the nineteen publishable package names derived from the current workspace manifests returned HTTP 200, version 0.44.0 and a distribution integrity at its exact npm registry version endpoint; @schlessera/brain latest also resolves to 0.44.0 (package publication). This verifies publication rather than inferring it from #3030’s closure. The generic GitHub v0.44.0 release endpoint still returns 404; that optional release object is not the package-publication gate.

Retire the active #3030 declaration. The older October 29 missing-publication observation remains historical; it no longer describes the current start gate. The #2951 decision record and #2955 archive implementation are delivered; retain each remaining child’s own producer dependencies and current proof requirements. This does not start archive work, approve Phase B policy, change priorities/milestones or qualify an archive/report implementation.

Constraints and non-goals

  • Measurement only. Nothing here becomes a proof or merge gate; ci: record a red main centrally, stop doomed proof and file one incident issue #2942 owns red-main enforcement.
  • No personal data in any archive, report or comment. Worker, task and orchestrator IDs stay opaque. No names, hostnames or email addresses in the tree or the archive. Delivery uses subscribers to the pinned tracking issue; there is no recipient list or mail secret in this design.
  • No new external service, dashboard host or database. GitHub Actions, artifacts, refs and issues only. GitHub Actions remains the only CI provider (AGENTS.md).
  • The archive never becomes an input to proof, selection or merging.
  • Stay within the shared API budget that ci-timings already enforces; the daily and weekly jobs read the archive, not the API, wherever they can.
  • Write permissions are contents: write for the job that writes the data ref and issues: write for the job that posts reports, each scoped to that single job and recorded in the decision.
  • No SMTP or third-party mail action (ruled 2026-10-25).
  • Deliberately out: a hosted web dashboard; Slack or chat integrations; storing full job logs long-term (normalized records and bounded failure excerpts only, as the collector already does).

Breakdown

#2951 is delivered through merged #4004 (b22ca4b316e369d80e1ba0d30875fa0bb5a4e29c), an ancestor of inspected main c09454c338b6c420fedee8e1a66aa338a695bcdd. Its record is docs/decisions/ci-evidence.md: durable store/schema at :19-43, reports/cadence at :45-73 and job-scoped permissions at :75-87. Six of the original eight archive/report children are now closed: #2950 (inventory), #2951 (decision record), #2952 (runner-slot wait), #2953 (red-main signals), #2954 (local-event publication), and #2955 (archive implementation). #2955 landed through merged #4133 (2aefe8f3fb199d931a12efbb2760b427306d106b), verified on fetched main at that identity. Current source contains ci-evidence-archive.yml (daily 02:17 UTC and manual dispatch), the leakage-screened, exact-lease data-ref writer, archive --dir, and report --from-archive. The initial retained-artifact backfill is now verified by default-branch run 44025547521: completed success on source 1140799f2, with four data commits, 184 sources, pending: 0, refused: [] and stopped: null. The current data ref resolves to its reported head cad12d1928d29bfc9986968bc84b60d541898f1c. The earlier run 44017122021 left 183 pending; the later receipt completes that backlog. Main CI for this squash is not independently qualified by this triage.

The fifteen native children now have nine open outputs: #2956 (report implementation delivered; scheduled-run receipts remain), #2957 (delivery), #3853 (hourly collection recovery), #4043 (collision/escape acquisition), #4044 (reservation-demand/reconfirmation events), #4129 (preserve the older baseline through budgeted Actions-API collection), #4130 (daily run-partition implementation), #4131 (deterministic directory-report tie handling), and #4144 (evidence inventory producer descriptions). The retained artifacts do not contain the full October 14–21 baseline; #4129 owns its separate acquisition and archive recomputation. #4130's writer exists on main; the maintainer selected daily run partitions with legacy monthly compatibility on 2026-11-17. Its implementation and decision-record amendment remain open. The read-only daily/weekly reporting implementation is delivered through #4141 (2396966b8160990bf01ed7ed93d9fc6f00bffa54), with scripts/ci-evidence-report.ts and .github/workflows/ci-evidence-report.yml. It generates digest Markdown/JSON daily at 03:37 UTC and weekly output on Mondays, reports coverage and gate unknowns, and computes the ruled newly-observed-incident/gate-change/gap triggers without posting. #2956 stays open for its recorded scheduled run/artifact receipts; the owner names 2026-11-18 for the first daily schedule and 2026-11-23 for the first weekly schedule. Issue delivery remains #2957, not supplied by report generation or backfill. The original producer tasks #2942/#2941/#2937/#2943 are closed, and #3270 delivers the epoch producer; collectors still verify and consume their required actual outputs.

Current collection incident #3853 is also attached natively. It owns the hourly collector’s repeated failures beginning 2026-11-09; its actual recovery evidence must be checked before treating newer acquisition as complete. The original eight tasks below retain their acceptance criteria, with #4043/#4044 supplying their explicit collection gaps and #4129–#4131 supplying the archive/report follow-ups. The collection incident does not establish archive-backfill or report-delivery completion.

Each item is a scoped task attached here. #2952 covers runner-slot wait and #2953 the red-main signals; the other producers' signals are mapped by #2950, which files follow-ups for any gap. The coverage self-check is part of #2956.

  1. ci: inventory every integration metric with its source, schema and status #2950 Data inventory and schema. List every metric Epic: independent changes land on main concurrently, with only overlapping work serialized #2934 and its tasks need, its source (API, the reservation ref, the red-main record, local events, task outputs), its producing task, and its normalized schema version. Mark gaps.
  2. ci: record the evidence archive, delivery and cadence decision #2951 Delivered storage and delivery decision record through docs(ci): record evidence archive and delivery ruling #4004: docs/decisions/ci-evidence.md records the October 25 ruling and November 8 choices, including the exact ref/layout/version rules, newly observed daily incident trigger and each job’s write permission.
  3. ci: archive CI evidence beyond GitHub retention and backfill the current artifacts #2955 Durable archive implementation delivered in chore(ci): archive CI evidence on the measurement data ref daily (#2955) #4133. The initial retained-artifact backfill is complete by the verified run above. ci: archive the 2026-10-14 to 2026-10-21 baseline window from the Actions API before its runs expire #4129 separately collects and archives the older Epic: independent changes land on main concurrently, with only overlapping work serialized #2934 baseline absent from those artifacts; ci: partition archived run records by UTC day #4130 owns the selected daily run-partition implementation and ci: the directory report depends on file listing order when overlapping snapshots tie #4131 owns directory-report determinism.
  4. ci: keep job creation time and report runner-slot wait #2952, ci: archive and report red-main incidents, flake verdicts, cancellations and merges during red #2953 Collectors for the new signals. The red-main record, incidents, flake verdicts and reruns, cancelled runs and merges during red (after ci: record a red main centrally, stop doomed proof and file one incident issue #2942); runner-slot wait (job created to started); proof-policy epochs (after ci: decide integration lanes for proof-system changes and red-main fixes #2938's implementation); collision snapshots (after ci: report colliding open PRs before claiming and confirming #2941); escape classes (after ci: attribute why each failed first-main attempt escaped pre-merge proof #2937).
  5. ci: publish orchestrator work, wait and preemption events to the hosted archive #2954 Publishing local events. A command that publishes orchestrator work, wait and preempted events to the hosted archive, append-only and leakage-screened, so local contention becomes measurable (pairs with ci: admit heavy local test commands through a host-wide ledger with priority and preemption #2943).
  6. ci: generate the daily digest and weekly evidence report from the archive #2956 Daily digest and weekly report implementation delivered in chore(ci): generate the daily digest and weekly evidence report from the archive #4141; recorded scheduled receipts remain. Deterministic report commands over the archive: throughput cohorts as docs/process/ci-throughput.md requires, first-main green per epoch, red-main incidents and time to green, the top failing and flaky families, escape classes, runner-slot wait, local contention, and Phase B gate status. Markdown and JSON, as artifacts and job summaries.
  7. ci: post evidence reports to a pinned tracking issue #2957 Delivery. Post the full weekly report as a comment on the one pinned tracking issue, and post the daily digest only for the ruled changes. GitHub subscriber notifications provide email delivery; no SMTP, recipient list or mail secret.
  8. ci: generate the daily digest and weekly evidence report from the archive #2956 Coverage self-check. Every report lists missing collection hours, expired sources, failed acquisitions and unknowns, so absent data never reads as zero.

Definition of done

2026-10-25: storage (append-only data ref), delivery (pinned-issue comments) and cadence (weekly plus daily on change) ruled by the maintainer; design and breakdown updated.

Current-source and prerequisite review

At inspected main c670449d3bf1b0639e50ce554d728961f4313add, .github/workflows/ci-timings.yml still collects hourly at minute 43, executes default-branch tooling with read-only permissions, seeds the overlapping two-day window and retains artifacts for 90 days; no durable data-ref writer or scheduled report delivery is present there. The linked official GitHub retention documentation and download-artifact README were checked: the stated public retention cap and cross-run run-id/token support are supported. Pin actual action versions when implementation is scoped rather than treating this research note as permission to upgrade workflow pins.

Storage, delivery and cadence are decided on this issue; no needs: design/decision label is required merely because children have not been filed. Keep this epic standalone: #2934 consumes the evidence, while this outcome also owns long-term collection, archive and delivery; a supporting prerequisite does not make its whole deliverable a concurrency-policy child. Collectors wait only on their own producing outputs (#2942/#2941/#2937/#2943 and the #2938 implementation); inventory, schema, ruling-record and archive planning are technically independent of those producer outputs, and the explicit 0.44.0 publication gate above is now satisfied. #2951’s concrete choices are recorded on main and consumed by #2955’s delivered writer; remaining archive follow-ups consume that record together with #4130's recorded daily-partition ruling; its writer/reader and decision-record amendment remain to be delivered. Keep producer-specific dependencies per child; the separately ruled release-start gate applies to the whole breakdown. Missing signals and failed/expired collection remain unknown, never zero. Any new deterministic command gets its supported --json/contract classification in its task.

2026-10-25 triage at main c670449d3bf1b0639e50ce554d728961f4313add: Sorted the wanted unscheduled measurement/archive epic at p2, verified current collector and upstream retention/access facts, and aligned delivery/privacy text with its recorded maintainer ruling. Preserve standalone scope and per-producer dependencies; the epic remains without readiness and no schedule, archive ref or reporting workflow is created.

2026-10-25: filed and attached tasks #2950–#2957; #2955 (archive and backfill) and its blocker #2951 are p1 because the baseline's GitHub sources expire around mid-January 2027.

2026-10-29 triage at main a8e80eea1ec045579ee7d69d6019bce5e78afa5e: folded the later maintainer scheduling ruling into the active specification, replacing the contradictory suggestion to start independent child preparation now. The hourly read-only collector and Reliability mapping remain in source; no durable archive/delivery workflow is implemented there. Add blocked for the unmet publication prerequisite, retain the epic’s no-readiness/no-milestone state, and preserve the children’s separate scope and 0.45.0 commitments. No archive task, backfill, workflow dispatch, publication or board sweep was started.

2026-11-02 prerequisite reconciliation: independently verified the stable 0.44.0 publication output across all nineteen package manifests and retired only the satisfied release-start declaration. Native child prerequisites and their 0.45.0 commitments remain. The epic stays outside agent-ready; no workflow, archive ref, backfill or delivery action was performed.

2026-11-11 triage at main 3c44ac6fc56d27675dadaf38a16254db53c39f69: Included the already-attached hourly-collection incident #3853 without conflating producer recovery with the outstanding archive/report implementation.

2026-11-15 triage at main 3f8ff29341fbe25665cea42659f92e6f3d3ccef0: Corrected current-source navigation by inspecting the named declaration or guard. Existing decisions, historical receipts and remaining prerequisites are unchanged; no new runtime qualification is claimed.

2026-11-15 follow-up triage at main c09454c338b6c420fedee8e1a66aa338a695bcdd: Reconciled delivered #2951/#4004 and the binding November 8 ref/layout/version and no-duration daily-trigger choices. Archive, collection, reporting and delivery implementation remain open; this records source/ancestry, not new runtime proof.

2026-11-16 triage at main 3b104890f8: Reconciled the delivered inventory, runner-wait, red-main and local-publication outputs against source and closed issue receipts. Existing docs/process/ci-evidence.md records #4043's collision/escape gaps and #4044's reservation-demand/reconfirmation gaps. No durable compaction, scheduled reporting/delivery, collector-incident recovery or concurrency rollout is inferred from those deliveries. #2955 retains the selected archive/backfill start order.

2026-11-17 triage: Reconciled the fourteen native children and #4133 archive implementation on fetched main 2aefe8f3fb199d931a12efbb2760b427306d106b. Named the separate #4129 baseline acquisition, unresolved #4130 partition choice, #4131 report tie handling and unverified initial-backfill receipt. No archive dispatch, data-ref publication, report delivery, main-proof qualification or Phase B activation was performed.

2026-11-17 repeat triage at main 764d8d22763a8f925dc29da0b2bd1c6eba5775ac: Refreshed the shared-state precedent pointer against the named reservation declaration after the decision record moved. The archive workflow still has no recorded run at readback; the already documented initial-backfill receipt remains missing. No workflow was dispatched.

2026-11-17 triage at main d974052166f335cbf57b385fddc13875da1b98de: Reconciled the verified backfill and delivered report generator without closing the assigned #2956 or claiming subscriber delivery, baseline completeness or Phase B qualification. Added the separately filed #4144 documentation follow-up; the native list has six closed and nine open children. No workflow was dispatched by triage.

2026-11-17 decision reconciliation: Recorded the selected #4130 daily run layout and its compatibility/size-guard boundaries in the active epic context. The decision is settled; implementation, record amendment and proof remain on #4130.

Activity

  1. added
    type: chore
    area: ci
    epic
    on Oct 25, 2026
  2. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-25): storage, delivery and cadence.

    • Durable archive: an append-only data ref (for example refs/heads/brain-ci-metrics) holding monthly compact files, leakage-screened and updated with exact --force-with-lease like the reservation ref. Artifacts keep raw and intermediate files for their 90 days. contents: write is granted only to the job that writes the ref.
    • Delivery: comments on one pinned tracking issue, so GitHub's notification email reaches every subscriber. No SMTP, secrets or addresses. issues: write is granted only to the job that posts.
    • Cadence: a full weekly report always; a daily digest posted only when something changed (a red-main incident past a threshold, the Phase B gate changing state, or a collection gap). Report artifacts are produced daily regardless.
    • Runner-slot wait is a first-class metric (ruled on ci: decide whether drafts may request hosted heavy proof instead of local suites #2939).
  3. added
    priority: p2
    on Oct 25, 2026
  4. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main c670449d3bf1b0639e50ce554d728961f4313add: Sorted the wanted unscheduled measurement/archive epic at p2, verified current collector and upstream retention/access facts, and aligned delivery/privacy text with its recorded maintainer ruling. Preserve standalone scope and per-producer dependencies; the epic remains without readiness and no schedule, archive ref or reporting workflow is created.

  5. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-10-25: scheduling

    Maintainer decisions:

  6. 6 remaining items

  7. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-05 (inspected main 35217d283b849b5ef81700d5d4c2ec7486405d12)

    All eight native archive/report children remain open. The 0.44.0 publication start gate is satisfied; #2951/#2955 keep their first-start order, and #2951 retains its specific unresolved naming/layout/version choices. Original producer tasks #2942/#2941/#2937/#2943 and the epoch producer #3270 are closed, so collectors must consume those actual outputs rather than wait on the old generic producer plan. Current source still has the hourly read-only artifact collector, with no durable data-ref writer or scheduled report delivery inferred.

    No workflow, archive ref, backfill or report task was started, and no Phase B gate or runtime qualification is claimed.

  8. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    2026-11-11 triage: Included the already-attached hourly-collection incident #3853 without conflating producer recovery with the outstanding archive/report implementation.

  9. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-15: #2951 delivered the storage, delivery and cadence decision in PR #4004, squash b22ca4b. Candidate proof passed and the squash matches its verified parent/tree. Automatic main CI is in progress. The decision creates no archive ref or workflow; #2955 and the other implementation children retain their own acceptance criteria.

  10. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Epic reconciliation — 2026-11-15. The body now consumes delivered #2951/#4004 and docs/decisions/ci-evidence.md, including the later no-duration daily incident trigger. Seven original implementation children and separate #3853 remain open. #2955 keeps its selected archive/backfill order. No archive ref, workflow, report delivery or epic readiness is created by this correction; the earlier owner completion receipt retains its original proof identity.

  11. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-16. Five of eleven native children are closed: #2950–#2954. Six remain open: #2955 archive/backfill, #2956 reporting/coverage, #2957 delivery, #3853 collection recovery, #4043 collision/escape acquisition and #4044 reservation-demand/reconfirmation events. Preserve #2955’s selected first-start order and all child prerequisites; no archive/report rollout or Phase B authorization is claimed.

  12. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-17. #2955's archive implementation landed through #4133 (2aefe8f3fb199d931a12efbb2760b427306d106b), verified on fetched main. Fourteen native children now include eight open outputs: #2956, #2957, #3853, #4043, #4044, #4129, #4130 and #4131. The body names the newer three follow-ups.

    Implementation delivery does not supply the initial backfill run: #2955's closure receipt links no completed default-branch backfill yet. Keep that operational criterion visible until a run reports pending: 0 with no refusals. #4129 separately preserves the older baseline absent from retained artifacts. This triage dispatched no workflow, published no measurement data, and supplies no new main-proof or Phase B qualification.

  13. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Backfill of the CI evidence archive is complete (#2955). The ci-evidence-archive workflow from #4133 was dispatched on main with backfill: true twice, and both runs wrote to refs/heads/brain-ci-metrics:

    Every retained ci-timings artifact is now archived. The 2026-10-14 to 10-21 baseline window still can't be rebuilt from artifacts (the oldest starts 2026-10-20); #4129 tracks preserving it from the API before 2027-01-12.

  14. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-17 (backfill and report implementation). Read-only verification of run 44025547521 confirms success on main, pending: 0, refused: [], stopped: null, and data-ref head cad12d1928d29bfc9986968bc84b60d541898f1c. This completes the retained-artifact backfill; #4129 still owns the older baseline absent from those artifacts.

    #4141 delivered the daily/weekly report generator and read-only schedule. #2956 remains open for its recorded scheduled-run/artifact receipts; subscriber delivery remains #2957. Newly filed #4144 owns stale producer descriptions in the evidence inventory. The native list is now six closed and nine open out of fifteen. Report generation/backfill do not qualify the Phase B gate, and this triage dispatched no workflow.

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: ciepicpriority: p2type: chore

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions