Repository navigation
Closed
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: choreTooling, CI, release plumbing, dependencies.
Milestone
Description
Part of #2948 (task 6).
Context
bun scripts/ci-timings.ts record --event <file> --out <dir> records work-started/work-finished and wait-started/wait-finished pairs with opaque worker and task IDs (docs/process/ci-throughput.md:107-138; scripts/ci-timings.ts:559), but only into a local directory. Orchestrators run on several people's machines, so their events, including the preempted and admission waits that #2943 will emit, never reach the hosted archive.
Scope
- A
publishmode that appends locally recorded events to a dedicated events path in the Epic: CI and integration evidence is collected, archived beyond GitHub retention and reported automatically #2948 data ref (or an events ref named in its decision), with exact--force-with-lease, the leakage screen, idempotent event IDs and bounded batches. - Opaque worker, task and orchestrator IDs only; refuse events that carry names, hostnames or paths outside the repository.
- The daily compaction (ci: archive CI evidence beyond GitHub retention and backfill the current artifacts #2955) merges published events into the archive.
Out of scope
- Emitting the events; ci: admit heavy local test commands through a host-wide ledger with priority and preemption #2943 and the orchestration skills do that.
- Any change to event kinds beyond adding
preemptedif ci: admit heavy local test commands through a host-wide ledger with priority and preemption #2943 has not already.
Acceptance criteria
- Publishing the same batch twice adds nothing the second time; proven by a test.
- An event containing a hostname-like or absolute out-of-repository path value is refused before push; proven by a test.
- Two machines publishing concurrently both land without loss; proven by a real concurrent push test.
Verification
Focused tests; a mutation that skips the screen makes the named test fail.
Contract impact
None.
2026-11-15: refreshed the local-recording citations against the implementation branch; scope and acceptance criteria are unchanged.
Metadata
Metadata
Assignees
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: choreTooling, CI, release plumbing, dependencies.
Activity
schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-a3b9e7b4. Branch:chore/2954-publish-orchestrator-events.Sibling inventory PR #4045 and runner-slot collector may touch timing tooling; collision inspection in progress.
schlessera commentedon Nov 15, 2026
Implementation is ready for the orchestrator's landing queue in draft PR #4053, head
99d841106d4d0b35b3be7a38beb407cc4feb9135.Local proof: 45 focused tests passed; real concurrent Git publishers both land, repeat batches are idempotent, and unsafe events are refused before push. The leakage-screen mutation failed on the expected privacy assertion and was restored. Build, typecheck with a 6 GiB Node heap, and
check:prpassed; the PR holds the exact receipt (1,208 affected invariant tests). PR and issue milestone 0.45.0 were read back. No follow-up issues were filed.The claim is retained for landing. The merge queue owns candidate confirmation and merge; no hosted run was polled or awaited, and no integration confirmation was requested by this worker. Dedicated published-event inputs are
events/<id>.jsononrefs/heads/brain-ci-metrics; daily compaction remains #2955's scope.schlessera commentedon Nov 16, 2026
Merged in #4053 as
18d51eef3through 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.