docs(derivation): stateException is only from verifyBatchRoots - #1046
Conversation
Stop documenting blob_count_mismatch as a BatchStatus divergence, and stop wrapping ErrBatchVerifyDivergence on that packing error so the sentinel matches the call site. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository. To reconnect it, an admin of this repository's GitHub organization (or the account owner, for personal repositories) who can also manage your Claude organization's Code Review settings needs to re-link GitHub in Code Review settings. This is a one-time step.
Tip: disable this comment in your organization's Code Review settings.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change clarifies local verification error semantics. Blob count mismatches now return plain errors, while only root divergence can set ChangesLocal verification semantics
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change clarifies derivation status behavior and keeps blob mismatches on the retry path while reserving stateException for verified root divergence. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files. Full details: Title checkExplanation The title clearly and concisely identifies the main change: documenting that stateException is set only from verifyBatchRoots. It also matches the related error-handling change for blob_count_mismatch. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Restore the ErrBatchVerifyDivergence wrap on blob_count_mismatch and the surrounding comment text; correct only the sentences that claimed the rebuildBlob path sets BatchStatus=stateException. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
Comment-only.
BatchStatus=stateExceptionis set solely at theverifyBatchRootscall site; therebuildBlobfailure path logs and retries without readingErrBatchVerifyDivergence.verify.go: the sentinel doc listed aversioned_hash_mismatchkindrebuildBlobnever returns, and said "call sites" (plural) gatestateException.verify_local.go: therebuildBlobdoc claimedblob_count_mismatchmakes the call site flipstateException, and referenced aSentinelContracttest that does not exist.metrics.go:LocalVerifyTriggereddoc claimed local-verify failures propagate toBatchStatus=stateException.No behavior change:
blob_count_mismatchstill wrapsErrBatchVerifyDivergence.Test plan
derivation.gogatesSetBatchStatus(stateException)only afterverifyBatchRoots