Repository navigation
fix: admit the synthetic browser status redaction fixture - #1646
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. Reviewed September 22, 2026, 12:28 AM ET / 04:28 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds exact secret-scan qualification for an existing synthetic browser status-redaction fixture, with regression coverage for rejected variants. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, narrowly scoped fix absent from current main. The recorded native proof supports the qualification, and no actionable correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper scans review inputs before allowing model inspection. Its host-owned fixture policy distinguishes reviewed synthetic test data from findings that must block admission. flowchart TD
A[Committed source and review inputs] --> B[Native secret scan]
B --> C[Exact fixture classification]
D[Host-owned fixture policy] --> C
C --> E{All findings qualify?}
E -->|Yes| F[Continue admission checks]
E -->|No| G[Refuse review]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain the exact host-owned qualification while requiring subsequent browser reviews to pass their own complete-input admission. Do we have a high-confidence way to reproduce the issue? Yes: current main lacks the exact attribution, and the recorded native scan demonstrates the resulting refusal. This read-only review verified the source mechanism without executing the scanner. Is this the best way to solve the issue? Yes: adding one exact attribution uses the established policy mechanism and preserves rejection of unqualified findings without introducing a parallel bypass. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0ecd31af54ad. 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)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Fixes: ClawSweeper refuses browser-stack reviews because an existing mocked status-response redaction test contains a synthetic credentialed loopback URL.
User Impact
Maintainers can review changes that include this exact existing fixture. All native secret scanning, verification, source-provenance, and mutation gates remain enabled. This does not itself approve or merge any browser PR.
Why This Change Was Made
The fixture originates in OpenClaw PR 81002, commit
b6a94d4ef94cce827fe7514356dd9a4418d88c32(2026-05-12). It tests removal of URL userinfo from a mocked status response and is not an operational credential. Its full source line is unchanged in the reviewed stack.The existing host-owned exact-attribution table is the owner of this qualification. One row binds URI detector 17, the observed PLAIN decoder, both native value digests, the complete source-line digest, the original test path, regular-file mode, and committed base/head references. No classifier algorithm or scanner flag changes. HTML and other unobserved decoder variants remain unqualified.
Production delta: +3 lines. Regression delta: +62 lines.
OpenClaw Bay Impact
None. There is no dashboard, telemetry, queue, review-publication, or public-action contract change.
Documentation Impact
Reviewed
README.mdSafety Model anddocs/proof/agent-input-scan-context/README.md. Their exact-attribution and fail-closed contracts remain accurate; this adds one qualification under that existing contract. The bounded proof receipt is retained below. No new active runbook or broader scanner capability is introduced.Real Behavior Proof
Claim: the production classifier classifies only this reviewed synthetic fixture after native scanning, while preserving its exact source boundary.
Surface and scenario: native TruffleHog filesystem scan of the complete committed status-route test blobs from base
cdc60c8caf7ff072bc7d8aa813e92959dc814862, engine head8dde9d30ac4d182006779f1cdad1de4183afc2e0, and Chromium head3c64630a372624357d09149fe72d2f0a3e969dd4; unchanged native output passed toclassifyReviewedFixtureScanfrom baseline and candidate.Command and environment: Linux x64, Node 26.7.0, checksum-verified native TruffleHog 3.97.4. The harness extracts full blobs with
git show <revision>:extensions/browser/src/browser/routes/basic.existing-session.test.ts, checks the unique full-line witness, and runs:Verification remains enabled. The native scanner inherits no authentication or proxy variables; the harness confirms that the synthetic loopback port has no listener before scanning. Raw scanner values and verification messages are not persisted.
Observed: exit 183; three unverified PLAIN URI findings. Baseline at
3350906aa794aa08894b90b568cad6c28d03e572refusesliteral_not_reviewed; the candidate classifies all three with exact source attribution. The complete sanitized receipt follows.Limits: controlled native classifier proof, not the whole hosted prompt/schema/diff admission and not live browser/provider proof. It does not clear the hosted refusal by itself. After trusted qualification lands, the browser stack still requires fresh full-input hosted reviews of its exact then-current heads and bodies. Native detector coverage is unchanged.
Sanitized native proof receipt
{ "policyBase": "3350906aa794aa08894b90b568cad6c28d03e572", "scanner": "3.97.4", "source": "extensions/browser/src/browser/routes/basic.existing-session.test.ts", "revisions": [ [ "cdc60c8caf7ff072bc7d8aa813e92959dc814862", "base" ], [ "8dde9d30ac4d182006779f1cdad1de4183afc2e0", "head" ], [ "3c64630a372624357d09149fe72d2f0a3e969dd4", "head" ] ], "scannerExit": 183, "signal": null, "findingCount": 3, "metadata": [ { "detector": "URI", "decoder": "PLAIN", "verified": false, "verificationErrorPresent": true }, { "detector": "URI", "decoder": "PLAIN", "verified": false, "verificationErrorPresent": true }, { "detector": "URI", "decoder": "PLAIN", "verified": false, "verificationErrorPresent": true } ], "before": { "kind": "refused", "reason": "findings", "diagnostic": { "kind": "unclassified_finding", "reason": "literal_not_reviewed", "findingCount": 3, "findingIndex": 0, "detectorType": 17, "decoder": "PLAIN", "verified": false, "scannerLine": 611, "material": { "kind": "blob", "id": "334bcce34e872bdd782d7c6109713d7523edaa82", "referenceCount": 1, "references": [ { "revision": "8dde9d30ac4d182006779f1cdad1de4183afc2e0", "pathSha256": "394ac8b3338f1dd8486090938dc0363c664772f11217d447f789573e35cca120", "mode": "100644", "role": "head" } ] } } }, "after": { "kind": "classified", "notices": [ { "fixtureSha256": "1d71159c56ca84a71d1b34c10e8d645f3ced3c75a5ac818104338ff58bb95993", "source": "extensions/browser/src/browser/routes/basic.existing-session.test.ts", "detector": "URI", "findings": [ { "blob": "334bcce34e872bdd782d7c6109713d7523edaa82", "scannerLine": 611, "literalLine": 611, "decoder": "PLAIN", "role": "head", "occurrences": 1 }, { "blob": "5ad290b284601c41da903d9e4a8cebb1cd578026", "scannerLine": 579, "literalLine": 579, "decoder": "PLAIN", "role": "base", "occurrences": 1 }, { "blob": "86cbb565bc9f171b329dd961e4adc40f8153b0a2", "scannerLine": 611, "literalLine": 611, "decoder": "PLAIN", "role": "head", "occurrences": 1 } ] } ] }, "limits": "Controlled native scan of the exact three status-redaction fixture blobs only; not full hosted input scan or review clearance. No raw scanner values or verification details persisted." }Evidence
pnpm run checkcompleted all static/docs/format/build/lint phases and reached its terminal full-coverage report: 6,503 passed, 0 failed, 19 skipped; changed-coverage cases 13/13 passed. Coverage: 87.47% lines, 78.04% branches, 90.78% functions. The command used child-onlySHELL=/bin/bashand the repository-supportedCLAWSWEEPER_TEST_CONCURRENCY=4under the shared host build lock, with unchanged assertions and deadlines. The original native process handle could not be recovered across worker resumption, so raw shell exit status is unavailable; terminal test/coverage evidence and absence of lifecycle errors are retained rather than inventing an exit code.88a63355b892ba4b27fccaecbd3ab0c9e40fbae1against actual parent3350906aa794aa08894b90b568cad6c28d03e572, verified the same exact patch, and passed the new regression against source. Dependencies/build output were deliberately not installed in that read-only review checkout; full-suite evidence remains the actual-checkout run above.CodeQL alert disposition
Alert 126 was independently reviewed and dismissed as a false positive on 2026-09-22. The new test's synthetic URI at lines 3514–3515 reaches unchanged
exactFixtureline 1052, which hashes the complete source-line witness for deterministic content attribution, not password storage or authentication. That helper has been unchanged since10c64167c30da64c0b0c78a2b3872bf7435cb0e3(2026-09-06), is local to the test module, and is excluded from production builds. This regression uses the actual production policy and does not consume the generated helper policy.The disposition is specific to alert 126, applies to that alert across branches, and is reversible. The existing dispositions of alerts 123/124 remain unchanged. Fixture bytes, SHA-256 content-identity semantics, CodeQL rules/workflows, native scanning, and all production gates are unchanged. A fresh ClawSweeper review of this updated body remains required.