Repository navigation
fix(review): stop rejecting reviewed synthetic fixtures - #1603
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 17, 2026, 2:20 AM ET / 06:20 UTC. ClawSweeper reviewWhat this changesAdds nine exact scanner-policy entries so reviewed Git-remote and scanner-proof fixtures can pass review intake. Merge readiness✅ Ready for maintainer review Keep open: these specific fixture attributions remain absent from main. The narrow patch has no actionable correctness findings and retains the existing admission safeguards. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper scans review prompts and committed source before sending them to a model. Its host-owned fixture policy distinguishes approved synthetic credentials from findings that must block admission. flowchart TD
A[Review prompt and committed source] --> B[Native secret scanner]
B --> C[Complete scan and finding checks]
C --> D[Exact fixture attribution]
D --> E[Hashes, source lines and file modes match]
E -->|Yes| F[Admit review input]
E -->|No| G[Refuse review input]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep synthetic-fixture exceptions in the existing exact attribution table while preserving complete native scanning and rejection of every unmatched finding. Do we have a high-confidence way to reproduce the issue? Yes, at source level: main lacks the required source/decoder attributions, so these otherwise matching findings cannot qualify. The reviewer did not execute a failing scanner run. Is this the best way to solve the issue? Yes. Adding exact rows to the established policy is narrower than changing scanner behavior or introducing broad path or domain exemptions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f8ec10f29bde. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes review-input rejection of independently reviewed synthetic Git-remote and scanner-proof fixtures whose exact source/decoder entries are missing from the main policy.
User Impact
Review intake can classify these exact fixture lines while continuing to scan complete inputs with native verification enabled.
Why This Change Was Made
The hosted review control builds its scanner from main. This prerequisite adds nine qualified attribution rows and the two narrow source/decoder validators they require. The scanner and patch-witness owners stay byte-identical to the frozen main revision.
Admission still requires exact detector fields, raw and secret-part digests, ordered whole-line witnesses, source paths, regular-file modes, and committed provenance. Unknown or verified findings and incomplete scans still refuse. Production change: +20 lines; changelog: +2.
The nine rows below are individually bound to exact ordered full-line and secret-part digests in the committed attribution policy. All require URI detector 17, filesystem source 15, unverified results, and the reviewed verification-error/metadata shape.
internal/cli/repo_test.go609f5f8c987b35e0d48b35e8463574db63b84c087e79d4189ef6fea5979f7609internal/cli/repo_test.go4b113e9ace3e5b41991d62d947eb1bb8251c904aded634c011eac87f7011c518internal/cli/ssh_test.go609f5f8c987b35e0d48b35e8463574db63b84c087e79d4189ef6fea5979f7609test/agent-input-scan-git-metadata.test.ts1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bdtest/agent-input-scan-git-metadata.test.ts1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bdtest/agent-input-scan-git-metadata.test.tsdab81a433bea3f155bdd2e6568380c6e21c4a629096e29443c949fcab4ab8adctest/agent-input-scan-git-metadata.test.tsdab81a433bea3f155bdd2e6568380c6e21c4a629096e29443c949fcab4ab8adcdocs/proof/agent-input-scan-git-metadata/run-shared-oid-proof.mjs1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bddocs/proof/agent-input-scan-git-metadata/run-shared-oid-proof.mjs1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bdFor the two
609f…rows, RawV2 is separately pinned to8074e19d513f3bdb60156065af46081e407232026590b37476c5b7745db3d776; other rows pin RawV2 to their Raw digest. This adds no unobserved Go HTML or SSH second-URI row. The deliberate negative-control URI remains unreviewed at its simulated source.OpenClaw Bay Impact
Bay is unaffected. Scanner policy changes no dashboard API, lifecycle projection, or public action surface.
Documentation Impact
Reviewed README.md and docs/proof/agent-input-scan-context/README.md. Their complete-input scanning, exact attribution, and hosted-admission contracts remain accurate; the changelog records the policy additions.
Evidence
pnpm run check: passed in 429.22s; changed coverage 13/13; full suite 6,269 passed, 36 skipped, zero failed or cancelled.7868b35f4d2fd24bf252d772382aeef4b01bfde0cb417f52ee47c90c2295004a; full log SHA-256:a4dce87fce55206783e01a59a64279b19a56a31ae7ec3ee44ff2ced106923980. The earlier disconnected run remains recorded as unknown; the single authorized replacement preserved output and exit status directly.Real Behavior Proof
Claim: the frozen main scanner can admit the reviewed repair source using only this exact policy addition.
Environment: native TruffleHog 3.97.4, pinned binary SHA-256
8c7af13e84f217bffd10aec09780fb7bbe59892187c99006291cef9c6f001beb; Node 24.18.0; canonical verification and complete committed input staging.Command:
node docs/proof/agent-input-scan-context/run-proof.mjs <trusted-checkout> <base> <head> <report.json>.Observed once per range:
4057a611890e04cf3fc106ce6ce7a168ddbfa148..9eafae731a1ea1eda6f120de920179645b5897dbdeefc121fdfe700841c557b9c5c40d995836b43c1565b101001dfca91cfe8856f8ec10f29bde7db20dcd442c5b7c64edfee2f976..3f5dde20c11b5f1fc5f66b2ed559e439b5892cf9f7a673f092cbce4caa585af28a4b0e01b2ffcfb4cd6aa98b6209a81bf1e7def5Runtime receipt SHA-256:
5895c1aa6e29388901a2f7366670ef80fb0f726c41eb2d5a66f43746b4d30dbc.Limits: these runs use the unmodified canonical entrypoint with a controlled prompt. Hosted ClawSweeper must independently scan its own current prompt, schema, and source inputs. The metadata HTML row uses combined native decoder identity and exact source-line evidence; an earlier unobserved raw identity remains unclassified.
Hosted current-head/body qualification is pending when this draft opens. Landing requires the normal current CI and ClawSweeper review; the controlled proof does not substitute for that review.