Repository navigation
fix(scanner): qualify the cron webhook FTP fixture - #1713
Conversation
Bind observed FTP findings to exact source and native identities, including every literal occurrence. Keep the young-PR age fixture relative to the current clock without changing policy.
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 29, 2026, 10:01 AM ET / 14:01 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch lets ClawSweeper's input scanner admit one OpenClaw cron webhook FTP test fixture when the native finding and complete committed source bytes match reviewed identities, with regression tests and proof receipts. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main still refuses the known synthetic FTP fixture, while the committed native receipts support the proposed qualification and show that the previously admitted extra HTML occurrence is now refused. No actionable patch defect emerged from this review. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper stages a review request's prompt and Git content, scans them with a pinned native scanner, and either stops the review or starts the agent. Its fixture policy can classify a precisely identified synthetic finding as non-sensitive after a complete scan. flowchart LR
A[Review request] --> B[Staged prompt and Git content]
B --> C[Native secret scan]
C --> D{Exact FTP fixture identity?}
D -- No --> E[Refuse review]
D -- Yes --> F[Start agent review]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain the exact-byte qualification and require a fresh source review whenever the OpenClaw fixture or pinned scanner contract changes. Do we have a high-confidence way to reproduce the issue? Yes. The committed native before receipt shows the existing FTP finding refused, and the same proof entry point records admission after the change and refusal of an extra HTML occurrence. Is this the best way to solve the issue? Yes. Pinning complete inspected source bytes within the existing attribution policy is a narrow repair for decoder ambiguity; the tested source drift fails closed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 32cd4db41a50. LabelsLabel changes: No label changes. Label 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)
|
|
@clawsweeper re-review The current head binds FTP qualification to the complete reviewed source bytes, closing the reproduced HTML extra-occurrence attribution defect. The main PR body now contains the finding disposition, native positive/negative proof, source identities, focused validation, and remaining historical test uncertainty. Please review the current head and body; this requests review only. |
|
🦞👀 Re-review progress:
|
What Problem This Solves
ClawSweeper refuses an existing synthetic FTP warning-redaction fixture, blocking review of OpenClaw PR #161161.
User Impact
The exact known fixture can pass source admission with scanning and verification enabled. Different values, source locations, unsupported decoders and verified findings remain blocking. An existing review hold still requires an explicit fresh review after the policy correction lands.
The qualification pins the complete bytes of both inspected versions of the source file. Any future change to that file, including an unrelated edit, requires explicit requalification.
Why This Change Was Made
Extend the existing exact-attribution policy for the observed FTP PLAIN/HTML findings and retain its complete-line, path, mode, committed-role and native-metadata checks. The change adds 31 production lines. No schema, queue, status or publication contract changes are involved.
The required committed-branch review found that plain literal searching alone could miss a second HTML-encoded occurrence and give it the approved line's identity. Native scanning reproduced that unsafe admission. The fix hashes the actual staged source bytes and filters the same policy rows used for all remaining attribution checks, avoiding a second HTML decoder or replay policy. The conservative requalification tradeoff is intentional.
Required validation also exposed a July 1 test date that crossed the 90-day age boundary on September 29. That fixture now uses the current timestamp, matching its neighbor and preserving the policy and assertions.
Evidence
97f30ac80111dc3db7fa1aa4dd3ec43eef659b70is scoped-clean through P2. The earlier mixed index/working-copy report remains recorded with its findings; staging the identical reviewed working bytes resolved those index-only findings before this fresh committed-branch review.pnpm run checkpassed static checks, builds, lint and coverage thresholds; its broad suite reported 7,036 passes, 37 skips and two failures. The date fixture is corrected and its 15-case owner file passes with coverage (41.27 s).134adab3df0f1d19379af17fe4a08da173ffce83; it is prior-head evidence, not validation of the source-pin follow-up.Real Behavior Proof
The actual
scanAgentInputentry point scanned the complete OpenClaw range using checksum-qualified TruffleHog 3.97.4 with its normal verification enabled on macOS arm64, Node 26.10.0 and pnpm 12.4.1.The original policy refused the earlier range. The complete inspected base/head blobs are byte-identical in the refreshed range above, and the final source-pin policy admits it in 2.841 seconds. A synthetic HTML-marked source with the approved plain line and a second entity-encoded occurrence was admitted before the pin fix; the same complete blob bytes now refuse in 2.516 seconds. An encoded-only control also refuses in 2.230 seconds.
Inspected receipts and source identities contain no matched values. This proves native source admission with a controlled prompt; it does not complete a hosted review, release its hold, run a model or authorize a merge. Hosted review must scan its own complete inputs.