Skip to content

fix(scanner): qualify catalog icon rejection fixture - #1739

Merged
steipete merged 1 commit into
mainfrom
fix/l284-icon-uri-fixture
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/l284-icon-uri-fixture

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

ClawSweeper stops before reviewing openclaw/openclaw#162992 because a new catalog-icon rejection test deliberately includes a synthetic credential-bearing URL. The scanner correctly detects the URI, but the host has not yet qualified its exact source witness.

Change

Add only the observed PLAIN and HTML URI tuples, bound to the native raw/rawV2 hashes, complete source-line hash, exact source path, and regular-file mode. Native verification, complete-scan checks, Git attribution, occurrence checks and every other scanner policy stay enabled.

Behavior proof

Using pinned, checksum-verified TruffleHog 3.97.4 on AWS Linux, the canonical scanAgentInput path refuses the original frozen OpenClaw range under the old policy, admits the same unchanged source with exactly two qualified occurrences under this commit, and refuses independently mutated credential, source-line and source-path inputs. Each canonical scan completed in about three seconds. No model ran; the hosted review must still rescan its full current input.

The exact-fixture positives fail against the old policy and pass with this change. All 487 fixture/metadata tests pass, including real-Git add/remove/context attribution and changed literal, line, path, mode, role, revision, verification, decoder, occurrence, shared-blob and suffix controls. The broader scanner test passes after building its repair dependency. Independent Codex reviews before commit and on the committed branch found no actionable issues.

pnpm run check passes in full, and exact-head hosted CI passes (run 36938102811). The initial remote hook-fixture failure was reproduced on the clean base and traced to Corepack choosing pnpm 12.8.1 outside the repository instead of its declared 12.4.1. Pinning the existing repository version for child fixtures resolves it; no source assertion or dependency version was changed.

Bay is unaffected: the existing input-safety hold and normal review states are unchanged; there is no dashboard or queue contract change.

@clawsweeper

clawsweeper Bot commented Oct 1, 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 7:21 PM ET / 23:21 UTC (Revision 2).

ClawSweeper review

What this changes

Qualify one synthetic catalog-icon rejection URL for two native scanner decoders and add coverage that rejects altered source attribution.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrow scanner repair that is absent from the pinned main branch. The updated validation evidence resolves the re-review focus, and no actionable introduced defect remains.

Priority: P2
Reviewed head: 2a2daa0c4b7fc45f2cf37e6a4cecad15644208a2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused policy repair with relevant native before/after evidence, broad rejection coverage, and successful exact-head validation.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured body reports canonical scanAgentInput with pinned native TruffleHog on AWS Linux refusing the original range before the change, admitting exactly two occurrences afterward, and refusing credential, line, and path mutations. This exercises the changed host-policy owner without a model call; hosted full-input rescanning remains independent. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured body reports canonical scanAgentInput with pinned native TruffleHog on AWS Linux refusing the original range before the change, admitting exactly two occurrences afterward, and refusing credential, line, and path mutations. This exercises the changed host-policy owner without a model call; hosted full-input rescanning remains independent. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduction and necessity: The exact base-to-head diff adds two catalog-icon attribution rows, one validator path, focused tests, and a changelog fragment. The pinned main lacks this qualification; no fixing merged PR is established.
Rejection invariants: The unchanged classifier requires matching native identities, unverified findings, complete source-line digests, permitted decoders, regular-file mode, and committed references. The new tests exercise add/remove/context attribution and reject altered literals, lines, paths, modes, roles, revisions, verification, decoders, extra occurrences, shared paths, and suffixes.
External source witness: GitHub's upstream patch confirms that openclaw/openclaw#162992 adds the synthetic credential-bearing catalog-icon URL inside a rejection test. This is the affirmative external-source dependency signal; the reviewed PR qualifies that source witness rather than changing OpenClaw's icon behavior.
Findings None None.
Security None None.

How this fits together

ClawSweeper scans review prompts and committed source before admitting them to model review. Its host-owned fixture policy distinguishes approved synthetic test credentials from findings that must stop admission.

flowchart TD
  A[Review prompt and source] --> B[Native secret scan]
  B --> C[Exact fixture policy]
  C --> D[Identity and source checks]
  D --> E[Admit review input]
  D --> F[Refuse input]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +4, tests +38, changelog +1; 0 removed Production growth is justified by two exact policy tuples and their validator path, with rejection coverage in the matching test file.

Technical review

Best possible solution:

Keep qualification limited to the observed synthetic identity and source witness while handling general decoded-source binding in its existing follow-up.

Do we have a high-confidence way to reproduce the issue?

Yes. The pinned main lacks the exact qualification, and the body records native baseline refusal followed by candidate admission of the unchanged range; this review did not execute target code.

Is this the best way to solve the issue?

Yes. Adding exact native tuples through the existing host policy is narrower than exempting a file, domain, or scanner detector.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6566c6974a29.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded false-positive admission failure affecting reviews containing one synthetic upstream fixture.
  • 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 reports canonical scanAgentInput with pinned native TruffleHog on AWS Linux refusing the original range before the change, admitting exactly two occurrences afterward, and refusing credential, line, and path mutations. This exercises the changed host-policy owner without a model call; hosted full-input rescanning remains independent. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports canonical scanAgentInput with pinned native TruffleHog on AWS Linux refusing the original range before the change, admitting exactly two occurrences afterward, and refusing credential, line, and path mutations. This exercises the changed host-policy owner without a model call; hosted full-input rescanning remains independent. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and necessity: The exact base-to-head diff adds two catalog-icon attribution rows, one validator path, focused tests, and a changelog fragment. The pinned main lacks this qualification; no fixing merged PR is established. (src/agent-input-scan-fixtures.ts:254, 2a2daa0c4b7f)
  • Rejection invariants: The unchanged classifier requires matching native identities, unverified findings, complete source-line digests, permitted decoders, regular-file mode, and committed references. The new tests exercise add/remove/context attribution and reject altered literals, lines, paths, modes, roles, revisions, verification, decoders, extra occurrences, shared paths, and suffixes. (test/agent-input-scan-fixtures.test.ts:746, 2a2daa0c4b7f)
  • External source witness: GitHub's upstream patch confirms that refactor(plugins): deslop feature plugin helpers openclaw#162992 adds the synthetic credential-bearing catalog-icon URL inside a rejection test. This is the affirmative external-source dependency signal; the reviewed PR qualifies that source witness rather than changing OpenClaw's icon behavior. (src/plugins/catalog-icon-registry.test.ts, ed4abfe9935b)
  • Native behavior proof and re-review continuity: The captured PR body reports checksum-pinned TruffleHog 3.97.4 on AWS Linux exercising canonical scanAgentInput: old policy refuses the frozen range, the candidate admits exactly two qualified occurrences, and credential, source-line, and source-path mutations refuse. No model ran. The earlier review used this same head and retained no findings or rank-up moves; the updated body adds full validation and explains the Corepack fixture mismatch. Bay is explicitly unaffected. (2a2daa0c4b7f)
  • Exact-head validation: GitHub confirms run 36938102811 completed successfully for the pinned PR head. This supplements the native behavior proof; it does not replace it. The introduced diff also passes git diff --check. (2a2daa0c4b7f)
  • Existing decoded-attribution limitation: Bind decoded exact URI findings to their source with a masked native re-scan #1724 tracks the shared classifier's ability to attribute a decoded copy to an approved plain witness elsewhere in the same source. The report explicitly limits admission to the same digest-bound synthetic identity; it does not permit a different credential. This PR does not repair the shared limitation, and the existing logging-specific exception is not treated as blanket approval for unrelated changes. (src/agent-input-scan-fixtures.ts:1117, 2a2daa0c4b7f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-01T22:59:52.147Z sha 2a2daa0 :: needs maintainer review before merge. :: none

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The body now records passing full validation and exact-head CI, with the initial Corepack fixture mismatch attributed and corrected to the repository pin. The canonical scanner proof and source remain unchanged.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 96aa78a into main Oct 1, 2026
29 checks passed
@steipete
steipete deleted the fix/l284-icon-uri-fixture branch October 1, 2026 23:24
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