Skip to content

fix(review): stop rejecting reviewed synthetic fixtures - #1603

Merged
vincentkoc merged 1 commit into
mainfrom
fix-reviewed-fixture-policy-20260917
Sep 17, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-reviewed-fixture-policy-20260917

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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.

Source Decoder Raw SHA-256
internal/cli/repo_test.go PLAIN 609f5f8c987b35e0d48b35e8463574db63b84c087e79d4189ef6fea5979f7609
internal/cli/repo_test.go PLAIN 4b113e9ace3e5b41991d62d947eb1bb8251c904aded634c011eac87f7011c518
internal/cli/ssh_test.go PLAIN 609f5f8c987b35e0d48b35e8463574db63b84c087e79d4189ef6fea5979f7609
test/agent-input-scan-git-metadata.test.ts PLAIN 1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bd
test/agent-input-scan-git-metadata.test.ts HTML 1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bd
test/agent-input-scan-git-metadata.test.ts PLAIN dab81a433bea3f155bdd2e6568380c6e21c4a629096e29443c949fcab4ab8adc
test/agent-input-scan-git-metadata.test.ts HTML dab81a433bea3f155bdd2e6568380c6e21c4a629096e29443c949fcab4ab8adc
docs/proof/agent-input-scan-git-metadata/run-shared-oid-proof.mjs PLAIN 1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bd
docs/proof/agent-input-scan-git-metadata/run-shared-oid-proof.mjs HTML 1e2c0641bc640f9f57706e40d1c3852f130e85266ba6c13d05e6ca66525d59bd

For the two 609f… rows, RawV2 is separately pinned to 8074e19d513f3bdb60156065af46081e407232026590b37476c5b7745db3d776; 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

  • Focused fixture/attribution suite: 245/245 passed on Node 24.18.
  • Fresh frozen pnpm 12.4.1 install on Node 24.18.0 / ABI 137; native dependency check and all seven scanner source/build hashes matched.
  • Native precommit review: no actionable correctness or guard findings.
  • Native committed-branch review: no actionable correctness or guard findings.
  • pnpm run check: passed in 429.22s; changed coverage 13/13; full suite 6,269 passed, 36 skipped, zero failed or cancelled.
  • Final validation receipt SHA-256: 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:

Complete range Result Canonical receipt SHA-256
4057a611890e04cf3fc106ce6ce7a168ddbfa148..9eafae731a1ea1eda6f120de920179645b5897db Admitted in 2.074s; six qualified URI notices deefc121fdfe700841c557b9c5c40d995836b43c1565b101001dfca91cfe8856
f8ec10f29bde7db20dcd442c5b7c64edfee2f976..3f5dde20c11b5f1fc5f66b2ed559e439b5892cf9 Admitted in 2.217s; zero classifier notices f7a673f092cbce4caa585af28a4b0e01b2ffcfb4cd6aa98b6209a81bf1e7def5

Runtime 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.

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 2:20 AM ET / 06:20 UTC.

ClawSweeper review

What this changes

Adds 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
Reviewed head: 3f5dde20c11b5f1fc5f66b2ed559e439b5892cf9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused policy repair with relevant recorded native behavior, existing rejection coverage, and no actionable defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.
Evidence reviewed 7 items Exact introduced scope: The pinned base-to-head diff adds nine attribution rows and two narrowly constrained validator branches; scanner execution and patch-witness implementation are unchanged.
Admission safeguards remain enforced: The classifier still rejects verified findings, unsupported native metadata, non-blob materials, changed or additional literal occurrences, unapproved source references, and nonregular file modes. Matching a source name alone cannot qualify a finding.
Production proof boundary: The documented proof entrypoint calls scanAgentInput with a complete committed range and controlled prompt. Production admission invokes the native scanner with verification enabled and throws on refused classification before returning successfully.
Findings None None.
Security None None.

How this fits together

ClawSweeper 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Policy scope 9 attribution rows across 4 source paths Each addition remains bound to exact detector, decoder, value, whole-line, and file-mode constraints.
Production and test delta Production +20/-0; tests +0/-0; changelog +2/-0 Production growth is justified by explicit fixture data and narrow validation branches that reuse the established classifier.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs bounded review-intake false positives without changing general scanner execution or user configuration.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.

Label justifications:

  • P2: This repairs bounded review-intake false positives without changing general scanner execution or user configuration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body records the production scanAgentInput entrypoint using pinned native TruffleHog against a complete fixture-bearing range, admitting it with six qualified URI notices. The separate zero-notice self-scan supports branch admission only; hosted prompt/schema admission remains independent, and some HTML attribution is explicitly source-backed rather than separately observed.

Evidence

What I checked:

  • Exact introduced scope: The pinned base-to-head diff adds nine attribution rows and two narrowly constrained validator branches; scanner execution and patch-witness implementation are unchanged. (src/agent-input-scan-fixtures.ts:286, 3f5dde20c11b)
  • Admission safeguards remain enforced: The classifier still rejects verified findings, unsupported native metadata, non-blob materials, changed or additional literal occurrences, unapproved source references, and nonregular file modes. Matching a source name alone cannot qualify a finding. (src/agent-input-scan-fixtures.ts:811, 3f5dde20c11b)
  • Production proof boundary: The documented proof entrypoint calls scanAgentInput with a complete committed range and controlled prompt. Production admission invokes the native scanner with verification enabled and throws on refused classification before returning successfully. (docs/proof/agent-input-scan-context/run-proof.mjs:31, 3f5dde20c11b)
  • Captured native behavior evidence: The supplied complete PR body, context revision 4fe168bb03decc8ee7f2ed7b415752ee5d7a5db8197fe63b27e7a171695f9896, records TruffleHog 3.97.4 and Node 24.18.0 admitting the fixture-bearing 4057a61..9eafae7 range in 2.074 seconds with six URI notices. It separately records this PR's complete range admitting with zero notices. Runtime receipt identity is 5895c1aa6e29388901a2f7366670ef80fb0f726c41eb2d5a66f43746b4d30dbc. These are contributor-recorded results, not reviewer execution; receipt hashes establish identity rather than independent inspection of the full logs. (3f5dde20c11b)
  • Current main and related merged work: GitHub reports main at the pinned base f8ec10f. The merged fix(review): admit exact reviewed plugin fixtures in patches #1602 supplies exact changed-line admission and different plugin fixture entries; it does not supersede these nine additions. No shipped implementation of this PR's additions was established. (src/agent-input-scan-fixtures.ts:286, f8ec10f29bde)
  • Feature-history routing: Main-path history identifies Patrick Erichsen's recent exact patch-attribution work and earlier fixture-policy contributions by Vincent Koc and Peter Steinberger. GitHub independently identifies Patrick-Erichsen as the author of commit 2e4fb29; its patch adds the exact changed-line guard used here. (src/agent-input-scan-fixtures.ts:754, 2e4fb29c6132)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc marked this pull request as ready for review September 17, 2026 06:39
@vincentkoc
vincentkoc merged commit 4ddb420 into main Sep 17, 2026
19 checks passed
@vincentkoc
vincentkoc deleted the fix-reviewed-fixture-policy-20260917 branch September 17, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant