Repository navigation
fix(reconcile): keep ticking after a failed pass - #94
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:75739c9e7ef6277a;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 scheduler in
internal/reconcilestopped permanently on the first pass error. A watermark write that failed once ended all later passes. The reconciler design also says an events-read give-up ends the pass, but the code kept walking later repositories. This change closes those gaps, and adds tests for three paths the earlier pull requests left untested.Behavior change
partial, then the loop keeps ticking.Startreturns the last error, so the service stops and the restart policy brings it back. A successful pass resets the count.Decisions
maxConsecutivePassErrors. The task left the number open.Deviations from the task
None.
Needs human judgment
Risk
Tier 1. The change edits the loop and the run, with no credentials or token source involved, and no running service changes because the service doesn't call the loop yet.
Verification
bazelisk test //internal/reconcile/...passes in a clean worktree.pr_sizereports 279 of 400 code lines.Human steering
None so far.
Opened-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:75739c9e7ef6277a;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