Skip to content

fix: qualify synthetic model egress review fixtures - #1656

Merged
steipete merged 1 commit into
mainfrom
codex/qualify-crabbox-egress-fixtures
Sep 23, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qualify-crabbox-egress-fixtures

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

ClawSweeper refuses to review OpenClaw's protected model-egress change because three synthetic credentialed-URI fixtures are not yet qualified.

User Impact

The affected tests can reach review while altered credentials and unreviewed source contexts remain rejected. Scanning and credential verification stay enabled.

Why This Change Was Made

Add six exact native decoder attributions for three reviewed identities. Each requires matching Raw/RawV2 digests, complete source-line bytes, committed test path, regular-file mode, and observed decoder. The existing classifier and regression helper retain ownership; there are no target-controlled ignores or broader fixture patterns.

Related: openclaw/openclaw#156207

OpenClaw Bay Impact

None. This updates host-side scanner qualification data and changes no queue, API, dashboard, or publication contract.

Documentation Impact

Updated the active scanner documentation and existing native proof runbook. The input-scan owner and committed fixture identities remain the source of truth; changed fixture bytes, paths, modes, or native decoder observations require requalification.

Real Behavior Proof

The canonical input-admission runtime scanned the complete OpenClaw source range from 8868f7ed8c1e340c5eb70d796b58955d042638d4 to 15c14e982fd7640a77b0c2b9bab6e5b4b168f705, the revision refused by hosted run https://github.com/openclaw/clawsweeper/actions/runs/35822733897. Execution used macOS arm64, Node 26.8.2, and pinned TruffleHog 3.97.4 with normal verification enabled. A hash-only observer recorded the native scanner/classifier results without changing their arguments or responses; the existing docs/proof/agent-input-scan-context/run-proof.mjs documents the reproducible admission path.

Before qualification, admission refused six unverified URI findings in 2.058 seconds. After qualification, the same source range was admitted with six exact source/patch classification notices in 1.778 seconds. Native observations established both PLAIN and HTML for each identity. The qualification patch itself was also admitted with zero findings in 1.712 seconds.

This proves the host scanner boundary; it does not replace the subsequent hosted model review or qualify any real credential.

Evidence

The original focused regression had nine intended-admission failures while its refusal cases passed. The final 33 focused cases pass, including changed values, lines, paths, modes, roles, verification status, unsupported decoders, and extra literal occurrences (node --test --test-name-pattern='Crabbox model proxy|configured model proxy|configured model endpoint' test/agent-input-scan-fixtures.test.ts: 54.46 seconds wall on the shared host). Independent Codex review is scoped-clean through P2 both before commit and on the committed branch.

The required full pnpm check passed: 6,517 tests passed, 36 skipped, zero failures (808.85 seconds). The same native policy also admitted the rebased OpenClaw range 59cdcf7c7f0044394348a069c752a6f7393ba866..904c09157561c83e2e9b5e130065f2ff10e2374e in 2.916 seconds with six classification notices.

@clawsweeper

clawsweeper Bot commented Sep 23, 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.

@steipete
steipete marked this pull request as ready for review September 23, 2026 05:48
@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 Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 2:01 AM ET / 06:01 UTC (Revision 2).

ClawSweeper review

What this changes

Qualifies three synthetic credential-bearing test URLs for review admission through six exact decoder records, with regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

The qualification is still needed on the inspected main branch. The current patch is narrowly scoped, preserves the existing refusal controls, and has sufficient recorded native scanner proof; no actionable defect remains.

Priority: P2
Reviewed head: a6ba2675f1cb5aac67d2dd72f0015974373d2714

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused qualification patch with meaningful native before/after evidence, comprehensive refusal coverage, and no blocking findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The captured native results exercise the production admission owner against the complete affected OpenClaw range: six findings change from refusal to six exact classification notices with verification enabled. The runbook confirms the production entrypoint; regression tests supplement that evidence. Proof stops at admission and does not claim hosted model execution. 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 (live_output): The captured native results exercise the production admission owner against the complete affected OpenClaw range: six findings change from refusal to six exact classification notices with verification enabled. The runbook confirms the production entrypoint; regression tests supplement that evidence. Proof stops at admission and does not claim hosted model execution. No stored-data contract changes.
Evidence reviewed 9 items Introduced scope: The pinned parent-to-head diff adds six attribution tuples and two validator paths; it does not change scanner invocation, verification, source attribution, or model dispatch.
Existing security controls remain operative: Classification requires exact Raw/RawV2 hashes, detector and decoder metadata, complete line witnesses, committed base/head references, and regular-file mode. Verified findings, other source material, changed lines, and extra occurrences remain refused. The scanner still runs with verification and scan-error checks enabled before model execution.
Qualified proxy fixture source: The explicitly referenced OpenClaw source establishes the dependency signal: the new qualification binds a synthetic loopback proxy value in a mocked model-command test. Inspection confirms the complete source line and its test context.
Findings None None.
Security None None.

How this fits together

ClawSweeper scans review inputs for secrets before starting a model. Its host-controlled fixture classifier admits explicitly reviewed synthetic test values while rejecting findings that do not match their recorded identities and source context.

flowchart TD
  A[Review prompt and committed source] --> B[Native secret scanner]
  B --> C[Exact fixture qualification]
  D[Host policy and source witnesses] --> C
  C -->|All findings qualify| E[Model review admission]
  C -->|Any finding fails| F[Review refused]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Qualification scope 3 identities, 6 decoder records, 2 test paths The admission expansion is bounded by exact values and source witnesses.
Production and test delta production +9, tests +39; no code deletions Production growth is limited to qualification data and validator paths, with existing classifier and test helpers reused.

Technical review

Best possible solution:

Retain the existing exact-attribution classifier and qualify only these reviewed synthetic identities, requiring requalification whenever their bytes or source context change.

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

Yes: the inspected main policy lacks these identities and refuses their native findings; the captured before/after proof identifies the complete source range and scanner environment. This review did not execute the scanner.

Is this the best way to solve the issue?

Yes: adding exact records to the existing classifier is the narrow supported repair, without introducing competing admission logic or target-controlled exemptions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This bounded scanner false-positive repair restores review admission for specific synthetic fixtures.
  • 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 (live_output): The captured native results exercise the production admission owner against the complete affected OpenClaw range: six findings change from refusal to six exact classification notices with verification enabled. The runbook confirms the production entrypoint; regression tests supplement that evidence. Proof stops at admission and does not claim hosted model execution. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured native results exercise the production admission owner against the complete affected OpenClaw range: six findings change from refusal to six exact classification notices with verification enabled. The runbook confirms the production entrypoint; regression tests supplement that evidence. Proof stops at admission and does not claim hosted model execution. No stored-data contract changes.

Evidence

What I checked:

  • Introduced scope: The pinned parent-to-head diff adds six attribution tuples and two validator paths; it does not change scanner invocation, verification, source attribution, or model dispatch. (src/agent-input-scan-fixtures.ts:251, a6ba2675f1cb)
  • Existing security controls remain operative: Classification requires exact Raw/RawV2 hashes, detector and decoder metadata, complete line witnesses, committed base/head references, and regular-file mode. Verified findings, other source material, changed lines, and extra occurrences remain refused. The scanner still runs with verification and scan-error checks enabled before model execution. (src/agent-input-scan-fixtures.ts:920, a6ba2675f1cb)
  • Qualified proxy fixture source: The explicitly referenced OpenClaw source establishes the dependency signal: the new qualification binds a synthetic loopback proxy value in a mocked model-command test. Inspection confirms the complete source line and its test context. (extensions/crabbox/src/crabbox-model-run.test.ts:21, 15c14e982fd7)
  • Remaining fixture contexts: The second proxy value belongs to a mocked process registration at line 58. The credential-bearing endpoint at line 142 is a negative case asserting rejection before proxy startup and callback execution. These are synthetic test inputs, not production credentials. (src/secrets/model-egress.test.ts:142, 15c14e982fd7)
  • Native admission proof: The complete captured PR body reports the actual admission runtime scanning OpenClaw range 8868f7ed8c1e340c5eb70d796b58955d042638d4..15c14e982fd7640a77b0c2b9bab6e5b4b168f705 on macOS arm64, Node 26.8.2, and TruffleHog 3.97.4 with verification enabled: six findings refused before qualification, then admission with six source/patch notices afterward. It also records admission of the rebased range and of this qualification patch. The inspected runbook invokes the production scanAgentInput entrypoint; no model runs in that proof. (docs/proof/agent-input-scan-context/README.md:37, a6ba2675f1cb)
  • Regression coverage and validation: Three new fixture definitions reuse the existing real-Git patch harness, producing 33 cases covering additions, removals, context, and eight refusal variants per identity. Scanner records in these tests are constructed, so they supplement the separate native proof. The captured body reports all 33 passing and a full check with 6,517 passed, 36 skipped, and zero failures. This read-only review did not rerun artifact-producing tests; diff whitespace validation passed. (test/agent-input-scan-fixtures.test.ts:537, a6ba2675f1cb)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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-09-23T05:52:42.726Z sha a6ba267 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The branch and main PR body now include the completed native scanner proof, final focused regression results, passing full check, and independent committed-branch review. Please review the current head and body.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit 897c046 into main Sep 23, 2026
31 checks passed
@steipete
steipete deleted the codex/qualify-crabbox-egress-fixtures branch September 23, 2026 06:05
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