Repository navigation
fix(review): retain late proof from long item bodies - #1269
Conversation
Share a 12000-unit body allocation with explicit unknown-context coverage. Preserve full-source freshness without supplemental automatic media fetches.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 8:35 PM ET / August 28, 2026, 00:35 UTC. ClawSweeper reviewWhat this changesThe PR preserves bounded late proof and trace excerpts from long primary item bodies while excluding PR patches and supplemental excerpts from automatic media retrieval. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: it remains necessary because current main still truncates primary bodies at the opening budget and includes PR patch text in media URL discovery. The exact-head patch addresses both boundaries with focused regression coverage; no remaining code defect was identified. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherClawSweeper hydrates GitHub issue and PR records into bounded review context for Codex and media-proof preparation. This change retains selected late evidence for reviewers while keeping untrusted diff text out of automated downloads. flowchart LR
A[GitHub item body] --> B[Context hydration]
B --> C[Primary body compaction]
C --> D[Review prompt]
B --> E[Media URL discovery]
E --> F[Proof artifacts]
D --> G[Codex review]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the bounded-compaction and media-source boundary, then refresh merge validation against current main before landing. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s truncation and media-discovery source, plus the deterministic long-body fixture at a late trace offset, provide a high-confidence source reproduction path; this read-only review did not execute it. Is this the best way to solve the issue? Yes. The patch changes the primary-body boundary rather than broadening the body budget, and it excludes untrusted patches and supplemental excerpts while preserving primary body/comment media discovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6230a9d7c8b4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
Resolves a problem where ClawSweeper could miss later real-behavior evidence in long primary issue/PR bodies. A fresh full-source hash did not mean the reviewer received that evidence: hydration kept only the opening 12,000 UTF-16 units, which could show early supplemental mocks while omitting later runtime traces.
Real Behavior Proof
Head:
e511af1c41f10b6b3837c709e2f1e3c81ae97f93.Claim and exercised surface: The real raw-body →
collectItemContext→ primary compaction → final review-prompt JSON path delivers bounded verbatim late evidence and explicitly reports omitted text. Full-source freshness is preserved. PR patches and supplemental excerpts remain reviewer input, not automatic media-download input; primary body/comment media retains its existing behavior.Scenario: A self-contained 60,641-unit input has early supplemental mock text, an inert native-proof heading at 14,235, and an inert HTTP/native-row trace at 19,562. Only GitHub transport is supplied locally; the production compactor, renderer, and media owner are real. Media transport is a recording-only runner that performs no network I/O.
Commands and environment: Executed after committing the head above, with Node 26.7.0, pinned pnpm 11.10.0, Bash 5.3.15, and macOS arm64. Provider is
local-process; no container image or lease.Observed receipt summary: Both issue and PR scenarios passed. Each long body uses exactly 12,000 serialized units, including coverage and indentation. The synthetic case retains 11,322 source units and explicitly omits 49,319. Its ranges are
[0,4748),[6166,7562),[14235,15630), and[19562,23345): the late heading and complete inert trace survive verbatim. Editing the omitted final unit leaves displayed text unchanged while changing full-source hash, source revision, snapshot, content, and structural identities.Supplemental excerpts cause zero media runner calls. Three patch-only fixture cases, passed through production collection and media preparation, also cause zero calls, no manifest, and no artifacts, while retaining their compact patches in final prompt JSON. Each identical URL still produces one recording-only call when supplied by a primary issue body, PR body, or comment. These controls demonstrate source exclusion, not URL blacklisting.
The same committed producer replayed the authorized saved 60,641-unit original body as text. Its retained trace
[19562,23034)contains the recorded HTTP status 202,SqlStorage, and row count 5, verified against source bytes and excerpt hashes. It retains 10,979 units and explicitly omits 49,662 within the same 12,000-unit allocation. The original body/bootstrap/trace is not copied into this PR, and its original runtime proof was not rerun.Reproducible artifacts: Producer script and historical proof recipe. The stdout receipt includes current HEAD, environment, source/prompt hashes, ranges/excerpt hashes, omissions, before/after identities, and media counts. Optional local
--body-filereplay emits no source text or private file path.Limits: This proves producer input delivery and omission—not live GitHub integration, source authenticity, proof sufficiency, the original Worker/DO behavior, or a guaranteed model verdict. No model, cloud service, embedded script, or remote/loopback media I/O is invoked. Producer-side context loss is established, not sole causation of any particular verdict. Crowded, oversized, or unrecognized layouts can still omit material; coverage remains explicitly incomplete.
Finding Disposition
The first exact-head review run, on
d68b5ef6c130, rated the producer proof sufficient but raised two P1 fixture-URL findings before its live-proof inspection failed. Both reported sites are addressed as one media-source boundary defect:Why This Change Was Made
Primary bodies share their existing allocation between an opening, at most three source-ordered proof/output excerpts, and host-generated coverage with full-source identity and exact ranges. Reviewer guidance treats omissions as unknown context rather than absent/mock-only proof. Excerpts remain untrusted text; neither supplemental excerpts nor PR patches authorize automatic media downloads.
There is no body-budget increase, weakened proof requirement, proof-status/schema enum change, or new mutation authority. Related bodies, comments, patch content, local overrides, and freshness/cache owners retain their contracts. Current main's cold-checkout prerequisites and terminal-completion behavior are preserved; unrelated live-proof parsing is not changed here.
User Impact
Reviewers receive useful late evidence and an explicit account of omissions, without pretending the full body was read. Code/test fixture links in PR patches no longer become automatic media-download requests.
OpenClaw Bay Impact
Bay is unaffected: no observer fields, routes, lifecycle states, public data contracts, or controls change.
Documentation Impact
Updated the active contract in
docs/pr-review-comments.md, the historical producer-proof recipe, and the existing changelog entry. Reviewed CONTRIBUTING, the documentation index, and live-proof guidance; runtime execution and publication ownership remain unchanged.Evidence
The corrected build, 273 focused tests, touched-file lint/format, docs checks, and
git diff --checkpassed. Fresh local Codex autoreview reported no P0 findings. Synthetic and saved-body producer receipts are bound to the current committed head above.All PR checks, including full repository CI, passed at the prior head. Earlier local full checks exposed inherited coverage-collection and 250 ms timing-fixture flakes; these are recorded rather than hidden or worked around in this patch. The updated head's required CI and current-head/body ClawSweeper review remain landing gates. No proof override, live queue/workflow change, or gate bypass is requested.