Skip to content

fix: recognize the two reviewed sign-in URL fixtures during input scanning - #2167

Merged
freeqaz-openai merged 3 commits into
mainfrom
fix/oce-sign-in-observed-fixtures-20261106
Nov 6, 2026
Merged

freeqaz-openai merged 3 commits into
mainfrom
fix/oce-sign-in-observed-fixtures-20261106

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Contributor

What Problem This Solves

ClawSweeper flags two synthetic URLs in the OpenClaw Enterprise sign-in chart test. The test uses them to check that invalid sign-in URLs are rejected. Affected PR

User Impact

Review-input scanning can recognize those fixtures in the two inspected versions of the test file. Each match still requires the reviewed URI, complete source line, file contents, path, mode and scanner metadata. Credential verification stays enabled.

Why This Change Was Made

The scanner reported PLAIN only for the base file and ESCAPED_UNICODE for both the base and head files. For the two fixtures, that gives six observed combinations. The rule accepts those six and refuses both unobserved head-file PLAIN combinations.

Documentation Impact

The guide records how to reproduce the scan and replay. Its checked-in results describe the enrollment classifier before the merge with the JDBC rule. Proof guide · Original result matrix

Real Behavior Proof

On Linux AMD64 with Node 24.22.1, we replayed three retained TruffleHog 3.99.4 sign-in captures with node docs/proof/oce-sign-in-fixtures/replay.mjs. The baseline from before either rule refused all three. The classifier built from b2b10639 recognized all 12 findings and rejected all 69 altered inputs, including both head-file PLAIN variants in every capture.

The same binary recognized both retained JDBC captures and rejected 54 altered inputs and four invalid policy variants. All nine sign-in and eleven JDBC CLI error cases withheld their input markers. These replays cover the inspected files. The target PR still needs a complete hosted review once the policy is available on the runner.

Evidence

The final pnpm run check passed on b2b10639 in the publication checkout with the repository’s HTTPS origin: 7,061 passed, zero failed or cancelled, and 22 skipped. The source and dependency graph stayed unchanged. The pinned build and scoped formatting also passed, and the full-branch review found no actionable P0–P3 issues.

An earlier full check on the same head recorded 7,060 passes, one failure and 22 skips. The sole failure was an existing preflight test that derives repository identity from the Git origin. The temporary clone had a filesystem origin. The same test passed on its own in the HTTPS-origin checkout before the successful full run. All seven cases that failed on the previous head, 4772610b, also passed together on b2b10639 with zero skips.

@clawsweeper

clawsweeper Bot commented Nov 6, 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 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Recognize two synthetic sign-in URL fixtures only for six reviewed source-blob and decoder combinations.

Example: TruffleHog reports an ESCAPED_UNICODE fixture in source blob 708e8b9af0e78f0c4d6a41a7883155f9e08fbe4e.

  • Before: The classifier refuses the finding as literal_not_reviewed.
  • After: The exact finding is classified; the same head blob with PLAIN decoding remains refused.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, narrowly scoped policy repair with verified fixture identities and substantial classifier replay evidence, but incomplete admission-path proof.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Review admission stops on synthetic invalid-URL test cases before the requested Enterprise review can begin.
Reason: The narrow qualification follows the established host-policy contract and the supplied maintainer-authored direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: current main lacks these exact fixture qualifications, and the patch preserves the existing scanner boundaries without an actionable code defect.

Priority: P2
Reviewed head: b2b10639a6a23b67cbb49833ba737ceea6d5c8e0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not exercise complete committed-input admission through scanAgentInput with the native scanner.
Agent review details

How this fits together

Review-input admission stages source material, runs TruffleHog, and passes findings through host-owned fixture policy before allowing agent execution.

flowchart LR
  A[Committed review inputs] --> B[Source staging]
  B --> C[TruffleHog scan]
  C --> D[Exact fixture classifier]
  D --> E[Refuse admission]
  D --> F[Continue agent review]
Loading

Technical review

Best possible solution:

Extend the existing exact-attribution owner while preserving verification and all unrelated admission gates.

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

Current-main policy lacks both independently verified fixture digests, and supplied native captures report their refusal; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses the existing exact-attribution mechanism and binds each exception to independently verified source bytes without broadening scanner permissions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Exact fixture attribution and immutable policy validation keeps the original intent (c338967: Recognize reviewed synthetic fixtures through exact native attribution while refusing unknown or partially authorized inputs; subsequent changes separated committed-role validation from decoder attribution.)
  • Existing JDBC qualification keeps the original intent (35656eb: Recognize the inspected password-free JDBC fixture without weakening verification or source binding; this PR retains that policy.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0a46047 adds src/agent-input-scan-fixtures.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0a46047ef6a6; files: src/agent-input-scan-fixtures.ts)
  • Vincent Koc: Raw commit c338967 adds src/agent-input-scan-fixtures.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c33896727985; files: src/agent-input-scan-fixtures.ts)
  • Free Wortley: Raw commit 35656eb adds src/agent-input-scan-fixtures.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 35656eb185f1; 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.

Review metrics

Metric Value Why it matters
Change distribution Production +34; replay +305; documentation and result matrix +329; deletions 0 Production growth stays within the existing policy owner; the replay exercises distinct admission boundaries and records its limits.

Labels

Label changes:

  • add P2: The repair addresses a bounded review-admission failure affecting two inspected source versions.
  • 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: The repair addresses a bounded review-admission failure affecting two inspected source versions.
  • 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 6, 2026, 9:15 AM ET / 14:15 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 6, 2026 14:18
@freeqaz-openai
freeqaz-openai merged commit b6018c7 into main Nov 6, 2026
37 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/oce-sign-in-observed-fixtures-20261106 branch November 6, 2026 14:19
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