Repository navigation
fix(review): hydrate blob sizes from bounded trees - #1518
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 8:44 PM ET / September 10, 2026, 00:44 UTC (Revision 2). ClawSweeper reviewWhat this changesReview source preparation now obtains missing blob sizes from cached GitHub tree metadata for the exact base and head revisions. Merge readiness✅ Ready for maintainer review The change remains useful: current main still uses per-object GraphQL metadata for historical diff hydration. No actionable defect was found in the introduced patch, and the recorded live REST evidence supports its bounded metadata claim. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper prepares PR source before scanning it and starting a review. This subsystem checks missing file sizes against admission limits before downloading the Git blobs needed for the diff. flowchart TD
A[Pinned PR revisions] --> B[Identify missing diff blobs]
B --> C[Read cached GitHub tree metadata]
C --> D{Complete sizes within limits?}
D -->|Yes| E[Fetch required blobs]
D -->|No| F[Stop source admission]
E --> G[Scan source and prepare review]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Use the existing bounded tree resolver for both diff endpoints while preserving complete-size admission and exact revision binding. Do we have a high-confidence way to reproduce the issue? No independent high-confidence reproduction of the burst-dependent GraphQL failure was established; current source confirms that dependency, and the PR records successful replacement metadata reads. Is this the best way to solve the issue? Yes. Reusing the existing bounded resolver is a narrow solution, and every required diff blob belongs to one of the two inspected endpoint trees. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0940b82e3c3a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
Why
The private-workspace admission deployed in #1488 made exact OpenClaw reviews depend on per-object GraphQL lookups. Under the current review burst, those workers repeatedly failed before model execution with
review_checkout_unavailable/ “remote blob size metadata is unavailable.” The durable queue retried the same exact heads without producing artifacts.Every blob in a base-to-head diff must belong to either the exact base tree or exact head tree. ClawSweeper already has a bounded recursive-tree resolver that rejects truncated responses, invalid entries, and repositories over the tracked-file limit, so source hydration can use that complete metadata instead of amplifying GraphQL requests per object batch.
Behavior proof
githubReviewTreeBlobSizesthrough the revised hydration resolver.46af4a9582b34444d11cc98310838060e1aae5caand head4cc522493abf6cbacafc272251d832d52a2ed2a3.gh apiREST reads.Validation
pnpm run build:allnode --test test/review-blob-hydration.test.ts test/review-command-workflow.test.ts— 122 passedpnpm run check— 5,941 passed, 32 skipped; one unrelated macOS-only failure because system Bash lacksmapfileinapply-drift-refreshE2E. Linux CI is the platform-complete authority.OpenClaw Bay
Not affected. This changes private review source admission only; no queue, status, telemetry, or Bay data contract changes.