Repository navigation
fix: recognize the two reviewed sign-in URL fixtures during input scanning - #2167
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. |
|
Codex review: needs maintainer review before merge. What this changesRecognize two synthetic sign-in URL fixtures only for six reviewed source-blob and decoder combinations. Example: TruffleHog reports an ESCAPED_UNICODE fixture in source blob 708e8b9af0e78f0c4d6a41a7883155f9e08fbe4e.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: current main lacks these exact fixture qualifications, and the patch preserves the existing scanner boundaries without an actionable code defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherReview-input admission stages source material, runs TruffleHog, and passes findings through host-owned fixture policy before allowing agent execution. flowchart LR
A[Committed review inputs] --> B[Source staging]
B --> C[TruffleHog scan]
C --> D[Exact fixture classifier]
D --> E[Refuse admission]
D --> F[Continue agent review]
Technical reviewBest possible solution: Extend the existing exact-attribution owner while preserving verification and all unrelated admission gates. Do we have a high-confidence way to reproduce the issue? Current-main policy lacks both independently verified fixture digests, and supplied native captures report their refusal; no target code was executed during this review. Is this the best way to solve the issue? The patch uses the existing exact-attribution mechanism and binds each exception to independently verified source bytes without broadening scanner permissions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2afd27bf232f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 6, 2026, 9:15 AM ET / 14:15 UTC. |
What Problem This Solves
ClawSweeper flags two synthetic URLs in the OpenClaw Enterprise sign-in chart test. The test uses them to check that invalid sign-in URLs are rejected. Affected PR
User Impact
Review-input scanning can recognize those fixtures in the two inspected versions of the test file. Each match still requires the reviewed URI, complete source line, file contents, path, mode and scanner metadata. Credential verification stays enabled.
Why This Change Was Made
The scanner reported
PLAINonly for the base file andESCAPED_UNICODEfor both the base and head files. For the two fixtures, that gives six observed combinations. The rule accepts those six and refuses both unobserved head-filePLAINcombinations.Documentation Impact
The guide records how to reproduce the scan and replay. Its checked-in results describe the enrollment classifier before the merge with the JDBC rule. Proof guide · Original result matrix
Real Behavior Proof
On Linux AMD64 with Node 24.22.1, we replayed three retained TruffleHog 3.99.4 sign-in captures with
node docs/proof/oce-sign-in-fixtures/replay.mjs. The baseline from before either rule refused all three. The classifier built fromb2b10639recognized all 12 findings and rejected all 69 altered inputs, including both head-filePLAINvariants in every capture.The same binary recognized both retained JDBC captures and rejected 54 altered inputs and four invalid policy variants. All nine sign-in and eleven JDBC CLI error cases withheld their input markers. These replays cover the inspected files. The target PR still needs a complete hosted review once the policy is available on the runner.
Evidence
The final
pnpm run checkpassed onb2b10639in the publication checkout with the repository’s HTTPS origin: 7,061 passed, zero failed or cancelled, and 22 skipped. The source and dependency graph stayed unchanged. The pinned build and scoped formatting also passed, and the full-branch review found no actionable P0–P3 issues.An earlier full check on the same head recorded 7,060 passes, one failure and 22 skips. The sole failure was an existing preflight test that derives repository identity from the Git origin. The temporary clone had a filesystem origin. The same test passed on its own in the HTTPS-origin checkout before the successful full run. All seven cases that failed on the previous head,
4772610b, also passed together onb2b10639with zero skips.