Skip to content

fix(scan): reviews refused for PRs touching the update failure report test - #2136

Merged
obviyus merged 1 commit into
mainfrom
fix/qualify-update-failure-report-fixture
Nov 2, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/qualify-update-failure-report-fixture

Conversation

@obviyus

@obviyus obviyus commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: reviews of any OpenClaw PR touching src/infra/update-failure-report-config.test.ts are refused by the input scanner (unclassified_finding / literal_not_reviewed). Example: openclaw/openclaw#190365, failed run https://github.com/openclaw/clawsweeper/actions/runs/41368493203.

User Impact

Reviews proceed when this existing synthetic fixture is the only scanner blocker.

Why This Change Was Made

The test checks that update failure reports never publish credentialed URLs, so it holds one synthetic https://user:…@private.example/config literal (line 113). This adds PLAIN and HTML rows for that exact value (Raw 1b950d6c…, RawV2 a844b0f4…), complete source line (81a1d346…), path and regular-file mode, and lists the path with the other exact URI sources. No file, domain, detector or decoder allowlist is widened.

OpenClaw Bay Impact

No queue, status, publication or dashboard contract changes.

Documentation Impact

None; the exact-fixture qualification contract is unchanged.

Evidence

  • New update failure report regression in test/agent-input-scan-fixtures.test.ts: add/remove/context admission plus literal, line, path, mode, role, revision, verified, decoder and extra-occurrence refusals. Full file: 512/512.
  • pnpm run check:fast (static checks, all builds, lint) passes. Full coverage suite not run locally.

Real Behavior Proof

Production scanAgentInput via the unmodified docs/proof/native-worker-fixtures/run-proof.mjs, TruffleHog 3.99.4 (linux_arm64, release checksum e6285aff…), node:24-bookworm in Docker with --network none and a cleared environment. Target: OpenClaw base 18e52ca69eae → PR #190365 head f397c0b9f644; no OpenClaw code executed.

Policy Staged inputs Native findings Result
main 83b1126b 114 2 (base line 112 HTML, head line 113 PLAIN; both unverified URI) Refused: unclassified_finding / literal_not_reviewed, base blob 41383fe7
This branch 114 2 (same literal, line digest 81a1d346…) Admitted, one classification notice

A PLAIN-only first draft was refused (finding_not_reviewed, HTML), so both observed decoders are required. The hosted review must still scan its own complete inputs after this merges and deploys.

@clawsweeper

clawsweeper Bot commented Nov 2, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR qualifies the exact synthetic credential URL in OpenClaw’s update failure report test for PLAIN and HTML scanner findings.

Example: Reviewing openclaw/openclaw#190365 includes the synthetic URL https://user:[email protected]/config.

  • Before: The scanner refuses the unqualified fixture before review starts.
  • After: The exact fixture can pass admission while altered or unrelated findings remain blocking.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-verified; behavior evidence is a reported native production-path harness comparison rather than an inspected hosted end-to-end trace.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authorship exemption applies; the body additionally reports a controlled production scanAgentInput comparison using native TruffleHog in isolated Docker, with baseline refusal and branch admission of the same source.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot obtain an automated review when the existing synthetic update-report fixture is rejected as an unqualified credential finding.
Reason: The supplied maintainer-authorship determination settles direction, and the demonstrated blocker warrants this small qualification.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a confirmed review-admission blocker with a narrow fixture qualification, and inspection found no actionable patch defects.

Priority: P2
Reviewed head: 5a174ae6fd77869905c2bacf02c4de40e103017f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied native scanner comparison covers controlled source admission, rather than a complete hosted review and publication.
Agent review details

How this fits together

The host-owned input scanner checks review prompts and committed source before invoking the reviewer; exact fixture attribution classifies approved synthetic findings without exempting their files from scanning.

flowchart LR
  A[Review request] --> B[Stage committed source and prompt]
  B --> C[Native secret scanner]
  C --> D[Exact fixture attribution]
  D --> E[Admit review]
  D --> F[Refuse unmatched findings]
Loading

Technical review

Best possible solution:

Use the existing exact-attribution owner to qualify these two observed synthetic findings while retaining all scanner and provenance safeguards.

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

The exact synthetic source fixture is absent from baseline policy, and the linked discussion confirms scanner refusal; no reproduction was executed during this read-only review.

Is this the best way to solve the issue?

This is a focused repair using the established policy table and regression harness, with no competing classifier or broader exemption.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 83b1126bd157.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 960dccd adds test/agent-input-scan-fixtures.test.ts:435 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 960dccd76395; files: test/agent-input-scan-fixtures.test.ts)
  • Vincent Koc: Raw commit 10c6416 adds src/agent-input-scan-fixtures.ts:197 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 10c64167c30d; files: src/agent-input-scan-fixtures.ts)
  • Ayaan Zaidi: Raw commit a83409a adds src/agent-input-scan-fixtures.ts:581 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a83409adf8a2; files: src/agent-input-scan-fixtures.ts)

Review metrics

Metric Value Why it matters
Patch scope Production +4; tests +12; changelog +1; deletions 0 The growth is limited to exact policy data and reuse of the existing positive and negative regression harness.

Labels

Label changes:

  • add P2: A demonstrated scanner false positive blocks reviews involving one specific test fixture, with limited blast radius.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A demonstrated scanner false positive blocks reviews involving one specific test fixture, with limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 9:00 PM ET / November 2, 2026, 02:00 UTC.

@obviyus
obviyus merged commit e312d17 into main Nov 2, 2026
36 checks passed
@obviyus
obviyus deleted the fix/qualify-update-failure-report-fixture branch November 2, 2026 02:03
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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