Repository navigation
fix(recorder): apply the repair floor - #89
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:1ef5234db0cc02f4;surface=exec
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.
Why
The recorder could count a pull request twice if an older release recorded its first close without a claim. A repair or a merge after a reopen could then count that close again. See
docs/design/reconciler-backfill.mdsection 5.Behavior change
Startup reads and logs the saved repair floor before starting the worker. A floor read error stops startup. For repairs, a milestone that passes the age and store creation gates but falls at or before the floor returns
pre_floorwithout an observation. Repairs claimendedin that case and leavemergedunclaimed so a queued webhook can still count the merge. Webhook closes ignore the floor. A reopen claimsendedonly for a pull request created at or before the floor. A floor read error on a reopen lets the worker retry the delivery.Decisions
The existing store sets a missing floor on its first read. Startup reads it even when telemetry export is disabled, so the floor is ready before the recorder sees a delivery.
Deviations from the task
The recorder treats section 5's reference to appendix A step 5 as the rule for
too_oldmilestones. They receive a claim without an observation.Needs human judgment
The design's upgrade paragraph describes repair reads of the floor. This change also reads it on reopen, as specified in the brief. The design can describe that reopen rule when the scheduler change merges.
Risk
The first startup with this wiring sets the cutover for stores that lack a saved floor. A pre-floor first close can lose its cycle time observation if a repair claims
endedahead of the worker handling the webhook.Verification
The recorder tests cover repairs before, at, and after the floor, the two milestone times, webhook closes, both delivery orders for a post-floor reopen, and floor read errors. Startup tests check the structured log entry and a failed floor read.
bazelisk test //...reported 33 passes and one skip.bazelisk test //:golangci_lint_testpassed. Formatting and Gazelle completed. The committed size ispr_size: code=180/400 raw=230/1500.Human steering
The brief split the recorder and startup changes from scheduler work and asked for a cutover guard on reopen deliveries.
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:1ef5234db0cc02f4;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli