Repository navigation
Leave progress reports out of the Candidate tab's Stage timeline - #321
Merged
anth-volk merged 6 commits intoNov 25, 2026
Merged
Conversation
While an unfinished run's Stage timeline comes from the collector's record, it must leave out progress reports as well as heartbeats, as the run's own events file does. A progress report is an event, not a calibration event, whose details hold both `done` and `total`, whatever its status: US scoring batches arrive with status `progress`, UK graph nodes with status `completed`. Stage rows the build sent with a status the emitter doesn't know arrive as `progress` and stay. Within the size limit, stage changes are kept before calibration events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
While an unfinished run's Stage timeline comes from the collector's record, it now lists what the run's own events file holds: its stage changes and calibration events. Heartbeats stay out as before, and progress reports are left out too: events, not calibration events, whose details hold both `done` and `total`, whatever their status. The emitter and the collector read a progress report's counts by the same two keys. Within the size limit, the newest stage changes are kept first and the newest calibration events fill what is left, so a long record no longer loses the run's stages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…events file The record's stage changes include the stage ends the emitter adds, which a US run's events file doesn't hold; say instead that heartbeats and progress reports, which no events file holds, are left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test that the Stage timeline keeps the record's order with calibration events among stage changes, and that a stage row whose details hold `done` without `total` stays. Name the US builder's target compilation counter among the progress reports, say in the docs that the emitter's stage ends and calibration events stay, and rewrap the route comment and the docs paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The collector removes a heartbeat's machine reading that doesn't match its model and names it in `dropped_emitter_details`; such a heartbeat must stay out of the Stage timeline. Also pin, as review round 2 asked, that rows with only `total`, the emitter's stage ends and calibration events with counts stay, and that calibration events fill what the stage changes leave of the size limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The collector removes a heartbeat's machine reading that doesn't match its model and names it in `dropped_emitter_details`. Only a heartbeat's details hold a reading, so such an event is a heartbeat and stays out of the Stage timeline; before, it counted as a stage change and could fill the size limit. Review round 2 also asked for wording: the size limit's comment now says the Stage timeline and the calibration progress each have a limit of their own, and the docs paragraph is rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anth-volk
marked this pull request as ready for review
November 25, 2026 19:00
anth-volk
deleted the
claude/stage-timeline-leave-out-progress-reports
branch
November 25, 2026 19:00
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #320. Tracker task 4a · 41 of "1. Collector/Emitter". It depends only on 4a · 32 (#315), which is
done, so its merge waits for nothing else.Why
Since #315, an unfinished run's Stage timeline on the Candidate tab comes from the collector's record (read API v2). #315 left heartbeats out of the record's events but kept progress reports. A run's own events file holds neither. Only the newest events that fit 1,500,000 characters of JSON are returned, so a long record loses its stages.
The record of the US run
populace-us-2024-b5db384-8b0c1950b65f-20261023T153127Zhas about 4,300 events. After heartbeats are left out, the newest 2,089 kept are allpost_export_scoringprogress reports. In production its Stage timeline shows none of the stages that the copy's 42 rows listed. Anthony's decision (2026-11-25): leave the progress reports out too.What changes
recordInternals(frontend/lib/microcosm/staging-run-state.ts) builds the Stage timeline from the record's stage changes and calibration events, in the record's order. It leaves out heartbeats and progress reports, which the run's own events file never holds.doneandtotal, whatever its status. Anthony chose this rule, option A of three, on 2026-11-25. The emitter and the collector read a progress report's counts by the same two keys. The record's status can't tell a progress report from a stage change: the collector's documents, and the dashboard's conversion of read API v2 answers (collector-run-documents.ts), turn every event type butcalibrationintostageand keep only the status.progress(): engine batches in target compilation, scoring batches after export) arrive with statusprogress.emit(event_type="progress", status="completed")in the UK builders) arrive with statuscompleted. They make up 26 of the 33 events of UK runuk-local-candidate-f100-s42-20261123T075147Z-7081d968after heartbeats.details) findsdoneandtotalpassed only by these progress-report calls.retainedand aPASSrow in every run read. The emitter doesn't recognise those statuses, so they reach the record asprogress, with the build's own details.dropped_emitter_details; only a heartbeat's details hold a reading). Before, such a heartbeat counted as a stage change, which could fill the size limit; it was there since Read the release and staging calibration views from the collector's store #315, and review round 2 found it.The route comment and
docs/calibration-tree-artifacts.mdsay the same.What pages show differently
On the Candidate tab, an unfinished run whose Stage timeline comes from the collector's record:
uk.full.*, unitgraph_nodes);Unchanged:
Tests
Red-green:
e6fdcf3adds three failing tests tofrontend/app/api/microcosm/staging/run/route.test.ts. Run by name, all three failed on assertions againstmain's code.940dc17makes them pass.98710bdchanges only comments and docs wording.6660196applies review round 1's code-quality points: the first test now also checks the record's order with calibration events among stage changes, and that a stage row whose details holddonewithouttotalstays; comment and docs wording.893f3b0adds a failing test for heartbeats whose reading the collector dropped (failed locally on its assertion, by name) and, from review round 2, more cases in the first and third tests, which pass.0c50d6cmakes the new test pass and changes comment and docs wording.The four tests cover:
progress, with an outer counter) and UK graph-node reports (statuscompleted), while keeping stage changes, aretained-style stage row with statusprogress, a stage update with a message, an emitter-made stage end and calibration events (one withdoneandtotalin its details), in the record's order; stage rows with onlydoneor onlytotalstay;Locally, only these four tests were run, by name; all pass.
tsc --noEmitpasses. CI's runs ate6fdcf3and940dc17were cancelled by the next push, so the failing run ofe6fdcf3's tests is recorded only locally and by review round 1; CI run 45670875848 at98710bdpassed.How the change is checked
This PR's Preview deployment reads Preview's collector, which has no record of the production runs this fixes, so Preview can't show the change on them. Instead:
Review
calibration-diagnostics-321-review-round1-2026-11-25.md, at98710bd): no bugs (0 high, 0 medium, 0 low). It verified each claim above against Microcosm, the emitter and the collector, including the**detailsspreads of the build's stage calls, and ran the three tests red ate6fdcf3and green at98710bd. Its code-quality points are applied in6660196.calibration-diagnostics-321-review-round2-2026-11-25.md, at6660196, at Anthony's request): 0 high, 0 medium, 1 low. Low: a heartbeat whose reading the collector dropped stayed in the Stage timeline (since Read the release and staging calibration views from the collector's store #315); fixed test-first in893f3b0and0c50d6c. It found the Candidate tab's other sections, the Build progress tab, the Candidate list and the cached record documents unaffected, and the size accounting exact. Its test and wording points are applied in the same commits.event_type, which only one of the dashboard's two read paths has (option B, not chosen). A future build stage row whose details hold bothdoneandtotalwould be left out of the Stage timeline.Environment variables
None read or declared by this change.
🤖 Generated with Claude Code