Repository navigation
feat(client): log the provider that served each completed range - #2650
Merged
Merged
Conversation
run_worker's completion arm now logs, at info, the provider, hash, offset, len and landed bytes of each range that landed bytes. len is the completed extent: up to a peer's steal split when one trimmed the range. Field names match the fault lines so completions join to faults and steals without offset arithmetic. Closes #2332 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code coverage overviewLanguages: Rust, Solidity Rust / code-coverage/cargo-llvm-cov
Solidity / code-coverage/forge
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
…efix A steal that finds the victim past its split keeps the victim's end where the victim reached, but stop_at stays at the split, so len read from it under-reported the victim's extent and left those bytes unattributed. len now comes from the unit's verified frontier, which also bounds a retired lane that stops between gaps. The log assertions move into a_slow_victim_is_stolen_from_once, which ran the same fetch, and parse the event's fields after its message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gas snapshotNo gas changes vs base. |
A declined steal leaves stop_at at the split while the victim reaches its end, so the debug line claimed a stop that did not happen. It now also needs the verified prefix short of the end, and logs both split and reached. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A key swap lowers the lane's own end with no steal, so the debug line said "steal split" for a stop no peer made. The arm reads retired once and reuses it for the clear. Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
approved these changes
Oct 27, 2026
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.
The client logs lane faults with their provider but never who delivered the bytes: after a few NotFound refusals, no line says which node served the blob (#2332's Whisper pull shows four discovered nodes, three refusals, and no attribution). Adds an INFO line in
run_worker's completion arm with provider, hash, offset, len and landed bytes, matching the fault lines' field names so completions join to faults and steals without offset arithmetic. A pick that verified no byte logs nothing.lenends at the unit's verified prefix (UnitProgress::frontier), not atstop_at: a steal that finds the victim already past its split keeps the victim's end where the victim reached whilestop_atstays at the split, so the frontier is the victim's real end in every steal branch, and it also bounds a retired lane that stops between gaps.The existing debug line "a lane stopped its stream at a steal split" now fires only for a real steal stop: the verified prefix must stop short of the range's end (a declined steal lets the victim reach it), and the lane must not be retired (a key swap lowers the lane's own end with no steal). It logs both
splitandreached.The line names the provider by its on-chain address only:
StreamCandidatecarries no node ID, and the fault lines use the same address.Test:
a_slow_victim_is_stolen_from_once(a fast and a slowScriptedSource, one steal) now also captures the log and asserts the fast source logs two completions, the slow victim one, and the logged extents tile the blob — which fails if the victim logs its untrimmed pick. The existingCapturedLogwriter moved to module level so both log tests share it.The per-file "served by" breakdown on the CLI completion line stays open as a follow-up.
Closes #2332
🤖 Generated with Claude Code