Skip to content

fix(scanner): qualify the exact Signal rejection table row - #1747

Merged
steipete merged 1 commit into
mainfrom
fix/signal-fixture-165129
Oct 4, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/signal-fixture-165129

Conversation

@steipete

@steipete steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper refuses the synthetic Signal URL-rejection fixture in openclaw/openclaw#165129 because openclaw/openclaw#162138 converted its assertion into a table row. The URI is unchanged, but the complete source-line witness no longer matches.

Add only the exact replacement line SHA256 to the existing host-owned qualification for extensions/signal/src/client-container.test.ts. Retain the historical assertion for older bases. URI/raw digests, URI detector, PLAIN/HTML decoders, regular-file mode, single-occurrence and complete-line checks remain enforced; scanning and native verification remain enabled. No general synthetic-URL allowance or file exclusion is added.

Behavior proof

Claim: the real input gate admits this exact existing synthetic fixture and continues to reject changed source-line bytes and the same blobs at another path.

On macOS arm64, Node 24.21.0 and checksum-qualified TruffleHog 3.97.4, ran the production scanAgentInput through:

node docs/proof/agent-input-scan-context/run-proof.mjs <clean-synthetic-checkout> <base> <head> <receipt.json>

The clean synthetic Git repositories retain the complete Signal source blobs from OpenClaw 1e49231d063bad36e4b6b187727d957fbfc7fdfb..59c1ae69e1c467ee094e11ea4a8f3797336b55e0, including refused base blob 2a410dbef8f316266a5efe0c0fbd5b808a2a43b4.

  • Baseline policy: refused with HTML literal_mismatch in 3.36 s.
  • Candidate policy: admitted the same two source blobs in 5.45 s, with verification enabled.
  • Changed-line and foreign-path native controls: refused with literal_mismatch and source_not_reviewed.
  • Extended existing Signal regression: fails on baseline, passes after the single-hash change; 0.81 s total. Covers both decoder shapes, historical/current lines, changed lines, duplicate literals, foreign path, unsupported decoder and verified findings.
  • Fresh isolated Codex P2 review of the local candidate: no findings. A second committed-branch review is required before landing.

Receipts and limits: Signal fixture proof. This is fixture source-admission proof, not a completed hosted review; the hosted lane must rescan its complete source, prompt and schema. Existing legacy URI policy does not pin unrelated source-file bytes; this change preserves that contract.

OpenClaw Bay is unaffected: no queue, publication, telemetry or observer contract changes.

@clawsweeper

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

clawsweeper Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 6:08 PM ET / 22:08 UTC.

ClawSweeper review

What this changes

ClawSweeper’s input scanner recognizes the exact table-driven Signal rejection fixture while retaining the historical assertion, with regression coverage and native proof receipts.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: pinned main lacks the replacement-line qualification. The native proof supports the narrow fix, and no actionable introduced defect was found.

Priority: P2
Reviewed head: 1ecdcab079b3a62cddb70a07717c413e08935d7c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused qualification repair with meaningful native positive and negative proof and no actionable introduced findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. 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 (logs): Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. No stored-data contract changes.
Evidence reviewed 6 items Pinned introduced change: The complete introduced diff adds one line digest to the existing Signal container qualification, retains its historical digest, extends the existing classifier regression, and adds documentation and four native receipts.
Native production-path proof: The proof documentation and complete receipts describe production scanAgentInput with checksum-qualified TruffleHog 3.97.4 on macOS arm64. Identical source blobs are refused before and admitted afterward; changed-line and foreign-path controls remain refused. Verification stays enabled. The unchanged proof runner imports the production scanner. This establishes fixture admission, not a completed hosted review.
Independent fixture-source check: The pinned OpenClaw source contains the exact credential-rejection table row at line 78 and asserts that invalid URLs never call fetch. This source-byte contract is the affirmative dependency signal for the qualification; the PR does not change Signal runtime behavior.
Findings None None.
Security None None.

How this fits together

ClawSweeper scans review inputs for sensitive material before model access. Its host-owned fixture policy classifies known synthetic findings only when their values, source paths, and required witnesses match.

flowchart TD
  A[Committed source and review inputs] --> B[Native sensitive material scan]
  B --> C[Host fixture qualification]
  C --> D{Every finding qualifies}
  D -->|Yes| E[Admit review inputs]
  D -->|No| F[Refuse review inputs]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +4/-1; tests +6/-3 Production growth represents one additional exact line witness; the existing regression gains the replacement fixture and preserves negative controls.

Technical review

Best possible solution:

Keep the exact replacement witness alongside the historical witness, preserving native scanning and all existing rejection boundaries.

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

Yes: pinned main accepts only the historical line digest, while the inspected upstream fixture uses the replacement row; the recorded native baseline scan refuses it with literal_mismatch. This review inspected source and receipts without executing target code.

Is this the best way to solve the issue?

Yes: adding the exact replacement digest to the existing qualification is the narrowest repair, retains older bases, and avoids a parallel allowance or file exclusion.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a bounded scanner admission failure affecting reviews that include the rewritten Signal fixture.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. No stored-data contract changes.
  • 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 (logs): Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. No stored-data contract changes.

Label justifications:

  • P2: This repairs a bounded scanner admission failure affecting reviews that include the rewritten Signal 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 (logs): Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Production scanAgentInput and the pinned native scanner exercised complete Signal blobs on macOS arm64: baseline refusal became admission, while changed-line and foreign-path controls still refused. The receipts support the changed qualification boundary; hosted review and unrelated inputs remain outside their scope. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The complete introduced diff adds one line digest to the existing Signal container qualification, retains its historical digest, extends the existing classifier regression, and adds documentation and four native receipts. (src/agent-input-scan-fixtures.ts:42, 1ecdcab079b3)
  • Native production-path proof: The proof documentation and complete receipts describe production scanAgentInput with checksum-qualified TruffleHog 3.97.4 on macOS arm64. Identical source blobs are refused before and admitted afterward; changed-line and foreign-path controls remain refused. Verification stays enabled. The unchanged proof runner imports the production scanner. This establishes fixture admission, not a completed hosted review. (docs/proof/signal-container-fixture/README.md:20, 1ecdcab079b3)
  • Independent fixture-source check: The pinned OpenClaw source contains the exact credential-rejection table row at line 78 and asserts that invalid URLs never call fetch. This source-byte contract is the affirmative dependency signal for the qualification; the PR does not change Signal runtime behavior. (extensions/signal/src/client-container.test.ts:78, 1e49231d063b)
  • Existing rejection boundaries: The unchanged classifier binds both native value digests, URI metadata, approved decoders, regular-file mode, source path, complete-line digest, and exactly one literal occurrence. Native scan completion and verified-finding rejection remain enforced. The expanded regression checks historical and replacement lines against decoder, path, mutation, duplicate, and verification controls. (src/agent-input-scan-fixtures.ts:1227, 1ecdcab079b3)
  • Main and release necessity: Pinned main retains only the historical Signal container line digest. The latest release tag v0.3.0 does not contain this scanner-fixtures module. The bounded recent PR search found no separate Signal replacement, and no merged fixing PR is supplied. (src/agent-input-scan-fixtures.ts:42, f7c8c55f33a2)
  • Feature-history routing: Local path history identifies the earlier approved Signal qualification commit, and GitHub commit metadata verifies steipete authored its source patch. Raw commit inspection records its parent. A broader local blame attempt failed fetching a promisor object; routing instead uses the inspected commit and GitHub patch. (src/agent-input-scan-fixtures.ts:40, ff0156fb8628)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@steipete
steipete merged commit 6e783d8 into main Oct 4, 2026
25 checks passed
@steipete
steipete deleted the fix/signal-fixture-165129 branch October 4, 2026 22:24
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Landed as 6e783d8 after all exact-head GitHub checks passed, including the full pnpm check run. Both isolated P2 reviews were clean, and the exact-head ClawSweeper review found no actionable issues with proof sufficient.

The candidate also admitted the complete original OpenClaw range 1e49231d063bad36e4b6b187727d957fbfc7fdfb..59c1ae69e1c467ee094e11ea4a8f3797336b55e0 through native input scanning in 23.65 s: all four Signal client/container base/head findings were classified with verification enabled.

The concurrent macOS broad run was stopped after exact-head CI passed. It recorded unrelated failures under host load: raw-snapshot admission exceeded its existing deadline before fixture classification; the label-identity proof could not determine a producer-lock process incarnation; Telegram consumer and acknowledgement-recovery subprocesses timed out; two replacement-publication fixtures lacked their reports; and the native-unshallow fixture missed its transfer-interruption precondition. The stopped target-validation suite also reported an unresolved promise. None exercises the added Signal line witness. These local results are retained as limitations, not claimed as passing or repaired; no retries, assertions, deadlines, or production behavior were changed for them.

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