Skip to content

fix: let reviews inspect retired scanner fixtures - #2204

Closed
joshavant wants to merge 2 commits into
mainfrom
fix/qualify-pr2201-retired-fixtures
Closed

joshavant wants to merge 2 commits into
mainfrom
fix/qualify-pr2201-retired-fixtures

Conversation

@joshavant

@joshavant joshavant commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: ClawSweeper cannot review the removal of the existing MCP-app synthetic scanner fixture in #2201 because its deployed input scanner lacks exact source qualification for that historical file.

User Impact

Allows the deployed scanner to inspect the exact retired MCP-app fixture. Its source edits, changed values, and different paths remain blocked. Existing Git-metadata value and ordered-line qualifications continue to allow surrounding edits. This is a prerequisite for the hosted review of that PR; it does not implement that PR's broader approval policy.

Why This Change Was Made

The hosted attempt stopped before model review: https://github.com/openclaw/clawsweeper/actions/runs/43361960847. Deleted base-side material is still review input, so a change only on the PR branch cannot qualify it in the deployed scanner.

The MCP-app attribution rows bind its existing synthetic URI value pair to native Raw/RawV2 hashes, observed PLAIN/HTML decoders, complete ordered line witnesses, path, regular file mode, and complete source hash. The new owning path also requires nonempty valid source hashes in schema validation. Added Git-metadata rows repeat existing effective qualifications; the existing rows without source hashes still permit surrounding edits with matching values and ordered lines. This change does not add a whole-file restriction to Git-metadata fixtures. Existing scanner switches, verification checks, native completion checks, patch provenance, and runtime classification are unchanged.

Documentation Impact

Reviewed the README input-scanner contract; it remains accurate because this only extends the existing source-bound fixture inventory. Added a one-bullet changelog fragment and a historical proof harness with its owner, implementation, and rerun triggers.

Evidence

  • Focused legacy scanner tests: 679 total; 677 initially passed and two schema-validation tests identified the missing owning path. Fixed that schema entry and reran both affected tests: 2/2 passed.
  • pnpm run check:fast: passed.
  • Full prerequisite-range native preflight of the prior head (current follow-up only changes this proof guide) using unchanged deployed scanner implementation e7fd6690127d9c46412546045a97f8de2f748d39: admitted; no model call.
  • Full pnpm run check on 8e2814b98183328b91e99c4c39be11da36a98656 (runtime code identical to current head): passed in the task-owned Ubuntu UTM guest with Node 24.22.1: 7,168 tests, 7,146 passed, 22 skipped, zero failures or cancellations; coverage thresholds passed.
  • Current documentation-only follow-up: pnpm run check:docs and git diff --check passed; native proof refreshed for the current head.
  • Independent Codex AutoReview, P0–P3, gpt-6.1-sol with medium reasoning: scoped-clean, zero actionable findings. Reviewed the complete committed range from pinned base e7fd6690127d9c46412546045a97f8de2f748d39 through clean head 697ef52d7b5b1de3109dc88d976e5c0e342aa3ad, including full classifier and patch-owner source context. Static review did not independently execute the fixtures; native execution is recorded below.

Real Behavior Proof

  • Claim and surface: production scanAgentInput, invoking the real pinned native scanner, admits the exact retired MCP-app fixture and the complete dependent PR range while refusing MCP-app source, value, or path mutations. The unchanged Git-metadata qualifications are exercised through the complete range; those existing rules do not require whole-file identity.
  • Candidate: clean head 697ef52d7b5b1de3109dc88d976e5c0e342aa3ad; receipt records sourceDirty: false.
  • Fixture/range: complete PR 2201 committed range 8ba1ab445ed086863bbd9749237cfcb7096bae7a..1ccf77313d8b0736a8ea8340b93dc16be218fe65, plus controlled repositories made from the original MCP-app fixture. All credential-shaped input comes from existing synthetic fixtures.
  • Environment: task-owned UTM VM clawsweeper-pr2201-20261112, UUID 0201A977-496A-4C7C-8416-025C52065B50; Ubuntu Linux arm64, Node v24.22.1. Provider: UTM; no Crabbox run. No production Docker or services used.
  • Scanner: TruffleHog 3.99.4, verified Linux arm64 archive SHA-256 e6285aff62e692131255dca91ad300a62a479330e0b72e4eb1d60ae58908f8d5; executed binary SHA-256 b57ff51268b83496fd58889b252e61549cd1071467aed4f4706b1df53ec13150.
  • Command: pnpm run build:all at the prior head; its identical runtime build was reused for this documentation-only follow-up. Then PATH="/home/dev/bin:$PATH" node docs/proof/pr2201-fixture-retirement/run-proof.mjs /home/dev/clawsweeper 8ba1ab445ed086863bbd9749237cfcb7096bae7a 1ccf77313d8b0736a8ea8340b93dc16be218fe65 /home/dev/qualification-native-proof-2.json.
  • Artifact/trace: committed reproducible harness; all receipt outcomes transcribed below. Receipt reports passed: true.
Scenario Observed result
Complete dependent PR range, including base/head files and patch material admitted
Exact original MCP-app fixture admitted
Same fixture with unrelated source-byte edit refused: findings
Changed password refused: findings
Same fixture at a different path refused: findings

5/5 expected outcomes passed. Limits: native synthetic admission/refusal with a controlled prompt; no hosted hydrated context, model call, live credentials, or database authentication. Hosted review remains a separate gate. Merging this prerequisite requires explicit maintainer approval.

Hosted Finding Disposition

Accepted the P3 finding at #2204 (comment). The guide and this body now scope whole-source binding and mutation-refusal controls to the MCP-app fixture, and explicitly describe the unchanged Git-metadata qualification behavior. Runtime policy is unchanged by the documentation follow-up.

@clawsweeper

clawsweeper Bot commented Nov 13, 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:feature Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR qualifies historical synthetic scanner fixtures so reviews can inspect their removal.

Example: Review deletion of test/agent-input-scan-mcp-apps.test.ts containing https://user:[email protected].

  • Before: The deployed scanner refuses the historical fixture before model review.
  • After: The exact original fixture qualifies, while demonstrated source-byte, password, and path mutations remain refused.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful and correct, with native proof across the production scanner boundary and the prior nonblocking finding resolved.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The supplied current-head trace exercises production scanAgentInput and real pinned TruffleHog on Ubuntu arm64 under UTM, admitting the complete dependent range and exact MCP fixture while refusing three controlled mutations; hosted hydration and model execution remain outside the declared scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A legitimate fixture-removal PR cannot reach model review because the deployed scanner rejects its historical source.
Reason: The supplied maintainer-authored direction addresses an observed admission failure through the established exact-qualification mechanism.

Merge readiness

✅ Ready for maintainer review

This PR addresses a confirmed review-admission blocker with narrow fixture qualifications; the earlier documentation finding is resolved, and no actionable correctness or security findings remain.

Priority: P2
Reviewed head: 697ef52d7b5b1de3109dc88d976e5c0e342aa3ad

Before merge

None.

Findings

None.

Agent review details

How this fits together

Review admission scans prompts, committed Git blobs, and patches with native TruffleHog, then checks findings against host-owned fixture policy before permitting model execution.

flowchart LR
  A[Review inputs] --> B[Committed source staging]
  B --> C[Native TruffleHog scan]
  C --> D[Host fixture qualification]
  D --> E[Admit or refuse review]
Loading

Technical review

Best possible solution:

Retain the narrow source-bound MCP qualification and the corrected description of unchanged Git-metadata behavior.

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

Main lacks the exact MCP test-source qualification required for removed patch material, matching the recorded hosted refusal; this read-only review executed no target code.

Is this the best way to solve the issue?

Extending the existing attribution owner is appropriate; the metadata additions repeat effective qualifications without introducing a competing admission path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Exact fixture attribution keeps the original intent (c338967: Qualify reviewed synthetic findings through exact detector, decoder, value, source-line, path, mode, and committed-role evidence while refusing unknown or partially authorized findings.)
  • Git-metadata fixture qualifications keeps the original intent (4ddb420: Admit reviewed scanner regression fixtures through exact values and ordered source-line witnesses without weakening native verification or completion checks.)
  • Legacy MCP fixture handling keeps the original intent (71e1290: Recognize the reviewed synthetic MCP sandbox-origin rejection fixture at its original source.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 4ddb420 adds src/agent-input-scan-fixtures.ts:291 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4ddb420608a7; files: src/agent-input-scan-fixtures.ts)
  • Peter Steinberger: Raw commit 71e1290 adds src/agent-input-scan-fixtures.ts:115 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 71e1290f7903; files: src/agent-input-scan-fixtures.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A focused scanner-policy correction unblocks a concrete review workflow while preserving general admission checks.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-13T04:32:52.691Z sha 8e2814b :: needs maintainer review before merge. :: [P3] Limit the whole-source binding description to the MCP fixture

Reviewed November 12, 2026, 11:39 PM ET / November 13, 2026, 04:39 UTC (Revision 2).

@joshavant

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 13, 2026
@joshavant joshavant closed this Nov 13, 2026
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