Repository navigation
fix: recognize both observed decoders for two OCE sign-in test fixtures - #2168
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 changesThis PR accepts both observed native decoder labels for two exact sign-in fixtures while preserving their existing source and credential checks. Example: TruffleHog reports the fixture at head-file line 1477 as PLAIN in blob 708e8b9af0e78f0c4d6a41a7883155f9e08fbe4e.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs an observed admission failure still present on main, with no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherReview admission stages committed inputs, runs TruffleHog, and classifies exact synthetic findings before allowing agent execution. flowchart LR
A[Committed review inputs] --> B[Source staging]
B --> C[Native 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 rules only for the newly observed combinations and retain every unrelated admission boundary. Do we have a high-confidence way to reproduce the issue? Main explicitly excludes the head-source hash from PLAIN attribution, and the supplied native captures report those findings; no target code was executed during this review. Is this the best way to solve the issue? The patch repairs the existing policy owner with source-verified metadata exceptions rather than adding a competing admission path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6018c739249. 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. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (1 earlier review cycle)
Reviewed November 6, 2026, 10:19 AM ET / 15:19 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
ClawSweeper held an OpenClaw Enterprise enrollment review when TruffleHog reported a synthetic URL in the sign-in chart test as
PLAIN. A later scan of identical inputs reported the neighboring fixture asPLAINtoo. The previous rule would refuse that scan. Hosted scanUser Impact
The classifier recognizes
PLAINandESCAPED_UNICODEfor each of the two fixtures in the two inspected versions of the file. Credential verification stays enabled. Changed file contents, unknown findings and verified credentials still block admission.Why This Change Was Made
The decoder label varied while the source bytes stayed the same. All eight fixture, file and decoder combinations have now been observed. Each match still requires the reviewed URI digests, complete source line, file hash, path, mode, committed provenance and finding metadata.
Documentation Impact
The README describes the updated rule. The proof guide distinguishes the historical fixture scans from the complete-range captures and explains how to reproduce the comparison. Proof guide
Real Behavior Proof
On Linux AMD64, direct Python launches of TruffleHog 3.99.4 scanned the same 47 staged inputs with verification enabled. Three unchanged streams were replayed through the real classifier. The baseline refused both streams containing a head-file
PLAINfinding and accepted the stream with both head fixtures reported asESCAPED_UNICODE. The proposed classifier accepted all 12 findings and rejected all 60 altered-input controls. For each head fixture, the two decoder witnesses came from distinct streams. Range resultsThe local production entry point,
scanAgentInput, staged the inputs, but its Node-launched scanner receivedSIGKILLbefore producing output. The cause is unresolved. The target PR still needs a complete hosted review after the policy reaches the runner. Affected PREvidence
Six negative replay CLI cases exited 1 with empty stdout and a fixed diagnostic, including the case that omitted the new line-1477 witness. The three historical captures also replayed successfully, with 63 refusal controls. The full
pnpm run checkpassed on9665df62with 7,061 passed, 22 skipped and zero failures or cancellations. The source and dependency graph stayed unchanged. The canonical review covered all seven changed files in one pass and found no actionable P0–P3 issues.