Skip to content

fix(review): unblock marketplace entries reviews - #1612

Merged
steipete merged 1 commit into
mainfrom
codex/145975-fixture-source
Sep 18, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/145975-fixture-source

Conversation

@steipete

@steipete steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Related: openclaw/openclaw#145975

What Problem This Solves

ClawSweeper refuses reviews that touch the marketplace entries test because its existing synthetic telemetry-redaction fixture appears in both live and snapshot metadata. The same value was already qualified in the separate marketplace refresh test, but that approval did not cover the entries source or its two occurrences.

User Impact

The affected review can proceed after exact source admission. This qualification accepts only the observed URI detector PLAIN/HTML forms, existing raw-value digests, the entries path, regular-file mode, committed base/head roles, and both complete source lines in order. Unknown paths, altered query text, missing/reordered/extra occurrences, verified findings, and incomplete scans remain blocked.

Why This Change Was Made

Use the existing ordered-witness attribution owner for the entries fixture. Select policy by staged source references as well as value, including each patch witness, so the new row does not shadow the refresh test's existing approval. Refresh repair roles, duplicate context records, PLAIN-only decoding, and refusal of introduced fixture lines stay intact. Mixed source aliases cannot fall back to the more permissive policy.

Both fixtures have existed since openclaw/openclaw@9c5ee46; this is an additional exact qualification, not a relocation or a source-fixture rewrite.

OpenClaw Bay Impact

None. No status, queue, publication, or observer contract changes.

Documentation Impact

The active scanner contract in README.md now describes the additional source qualification and policy selection. The proof guide and runner record the native scanner boundary and its limits; update them with changes to these qualified witnesses or the scanner contract. CHANGELOG.md records the review fix.

Evidence

  • Original policy: eight intended regression failures and 24 passing controls. Candidate: all 32 focused cases pass, including both decoders, base/head and repair roles, aliases, witness mutations, preserved refresh context duplicates, and mixed patches.
  • Independent P0-P2 review found a mixed-patch test that overwrote shared blob references. The test now merges all references and first proves that the combined context case is admitted; fresh review is clean.
  • Independent committed-branch P0-P2 review is clean at 764a5272edade203bacbab9bfa582fb822e8bef0.
  • pnpm run check passed on the same source bytes: all builds, static/docs/format checks, lint, 13 changed-coverage tests, and the full 6,350-test suite (6,314 passed, 36 skipped, zero failures). Coverage is 87.43% lines, 78.03% branches, and 90.73% functions.

Real Behavior Proof

Claim: the canonical native scanner admits the complete unchanged source range that previously prevented review of openclaw/openclaw#145975.

Run the committed docs/proof/marketplace-telemetry-fixtures/run-proof.mjs with OpenClaw base 928dba98c56ae193ecb32140330abd6376d467dd and head 826f30fc2f4582c25f67fdc4957ca84481f096fe. On macOS, Node 26.8.2 and pinned TruffleHog 3.97.4, the original host policy refused the base blob with source_not_reviewed. A PLAIN-only candidate exposed the same head fixture through the native HTML decoder. The final candidate admits the complete range and records exact attribution for both base and head blobs. The pre-commit successful run observed PLAIN for both. The fresh run at committed host head 764a5272edade203bacbab9bfa582fb822e8bef0 observed HTML for both and also admitted the complete range. Decoder deduplication can choose different native representations between runs.

The runner records bounded attribution notices and refusal diagnostics without raw fixture values. This proof scans complete committed source and a controlled prompt, with canonical verification enabled and no model execution. Hosted review must still scan its own prompt, schema, and source and publish a current result before the OpenClaw PR can land.

Captured native baseline, committed candidate, and source receipt

The baseline used the original host policy. The candidate capture was rerun after a clean build of the committed repair; tracked source remained clean at that head. Only bounded diagnostics, public source identities, and attribution notices are included.

Original policy refusal:

{
  "base": "928dba98c56ae193ecb32140330abd6376d467dd",
  "head": "826f30fc2f4582c25f67fdc4957ca84481f096fe",
  "result": "refused",
  "notices": [],
  "failure": {
    "reason": "findings",
    "diagnostic": {
      "kind": "unclassified_finding",
      "reason": "source_not_reviewed",
      "findingCount": 2,
      "findingIndex": 0,
      "detectorType": 17,
      "decoder": "PLAIN",
      "verified": false,
      "scannerLine": 270,
      "material": {
        "kind": "blob",
        "id": "6ff70750c7a65d9e1d436ba0a66b869b0bac75e9",
        "referenceCount": 1,
        "references": [
          {
            "revision": "928dba98c56ae193ecb32140330abd6376d467dd",
            "pathSha256": "fd72b4fc2e78c37a4a149008f734ba1da882b62f4bf82803cb67cb3435356f7b",
            "mode": "100644",
            "role": "base"
          }
        ]
      }
    }
  }
}

Committed candidate admission:

{
  "baseSha": "928dba98c56ae193ecb32140330abd6376d467dd",
  "headSha": "826f30fc2f4582c25f67fdc4957ca84481f096fe",
  "scanner": "3.97.4",
  "node": "v26.8.2",
  "platform": "darwin",
  "result": "admitted",
  "notices": [
    {
      "event": "agent_input_scan_classified",
      "notice": "Reviewed synthetic fixture findings classified as non-sensitive.",
      "fixtureSha256": "838f16c9fef468c069583811edaac840bd0378ff46b59008793c552bfbf1c77b",
      "source": "src/cli/plugins-cli.marketplace-entries.test.ts",
      "detector": "URI",
      "findings": [
        {
          "blob": "6ff70750c7a65d9e1d436ba0a66b869b0bac75e9",
          "scannerLine": 270,
          "literalLine": 270,
          "decoder": "HTML",
          "role": "base",
          "occurrences": 1
        },
        {
          "blob": "be57d501ee4e2250dfe92cd676d6a236677d51fd",
          "scannerLine": 270,
          "literalLine": 270,
          "decoder": "HTML",
          "role": "head",
          "occurrences": 1
        }
      ]
    }
  ],
  "limits": "Complete committed source range with a controlled prompt; no model execution. Hosted review must scan its own prompt, schema and source."
}

Committed host receipt:

{
  "hostHead": "764a5272edade203bacbab9bfa582fb822e8bef0",
  "capturedAt": "2026-09-18T00:59:52.868609+00:00",
  "reportSha256": "b3c2fc793caa3873eefd5a089dc4f5235b28fcb5eae3227f805db7f7c424e416",
  "sourceSha256": "01153e67d8782eff05899c258888a137a10ab41211779f5bf871fca2447c6833",
  "compiledSha256": "335782c7da58b5a36c7c14ee79cc093902addacd4420c870780708cf49da01a0",
  "result": "admitted",
  "sourceStable": true
}

Qualify the two ordered telemetry-redaction source witnesses through the existing exact attribution owner. Select source policy for blobs and each patch witness so the shared value does not replace the refresh fixture's legacy roles or context-only contract.

Refs openclaw/openclaw#145975.
@clawsweeper

clawsweeper Bot commented Sep 18, 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 9:08 PM ET / September 18, 2026, 01:08 UTC (Revision 3).

ClawSweeper review

What this changes

Allows reviews containing the marketplace entries test’s two synthetic credential lines while preserving the marketplace refresh test’s separate scanner policy.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: the pinned main branch lacks the entries-fixture qualification. The captured native proof supports the fix, and inspection found no actionable correctness or security defect.

Priority: P2
Reviewed head: 764a5272edade203bacbab9bfa582fb822e8bef0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with concrete native before-and-after proof, compatibility coverage, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured macOS native run exercises scanAgentInput through the committed proof runner: the baseline refuses the complete OpenClaw source range, while this head admits both endpoint blobs with exact attribution. It proves scanner admission, with hosted prompt/schema admission and model execution explicitly outside its scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured macOS native run exercises scanAgentInput through the committed proof runner: the baseline refuses the complete OpenClaw source range, while this head admits both endpoint blobs with exact attribution. It proves scanner admission, with hosted prompt/schema admission and model execution explicitly outside its scope.
Evidence reviewed 9 items Applicable repository policy: Read the complete root AGENTS.md and checked changed-path ancestors; no nested policies or maintainer notes were found. Applied the narrow-change, current-proof, and Bay-impact guidance.
Source-specific policy and preserved rejection boundaries: The new rows bind two ordered source-line hashes and both observed decoders. Policy selection checks every staged source reference; each patch witness independently selects its policy, and changed legacy lines remain rejected. Exact classification retains metadata, role, mode, occurrence, and verified-finding checks.
Production admission boundary: The production scanner throws on refused classification before agent execution. The proof runner calls this same scanner owner with a complete committed range; it does not substitute a mock scanner or invoke reviewed target code.
Findings None None.
Security None None.

How this fits together

ClawSweeper scans review prompts and committed source before starting an agent. Its fixture classifier distinguishes explicitly reviewed synthetic credentials from findings that must block admission.

flowchart TD
  A[Review prompt and committed source] --> B[Native secret scanner]
  B --> C[Fixture policy selection]
  C --> D[Check source lines and references]
  D --> E[Admit review input]
  D --> F[Refuse unqualified findings]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta Production +31/−14; tests +155/−2; proof runner +43 The net 17 production lines preserve source-specific policies when the same fixture value has two approvals.

Technical review

Best possible solution:

Keep fixture qualification in the existing host-owned classifier, with exact source witnesses and separate legacy compatibility rules.

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

Yes: the baseline policy excludes the entries source, and the supplied native transcript records that exact refusal on the pinned OpenClaw range; this review did not rerun the scanner.

Is this the best way to solve the issue?

Yes: reusing exact ordered-witness attribution fixes the false refusal without broadening approval to domains, arbitrary paths, or altered fixture lines.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs a bounded review-admission failure affecting an existing synthetic fixture.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured macOS native run exercises scanAgentInput through the committed proof runner: the baseline refuses the complete OpenClaw source range, while this head admits both endpoint blobs with exact attribution. It proves scanner admission, with hosted prompt/schema admission and model execution explicitly outside its scope.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured macOS native run exercises scanAgentInput through the committed proof runner: the baseline refuses the complete OpenClaw source range, while this head admits both endpoint blobs with exact attribution. It proves scanner admission, with hosted prompt/schema admission and model execution explicitly outside its scope.

Evidence

What I checked:

  • Applicable repository policy: Read the complete root AGENTS.md and checked changed-path ancestors; no nested policies or maintainer notes were found. Applied the narrow-change, current-proof, and Bay-impact guidance. (AGENTS.md:91, 764a5272edad)
  • Source-specific policy and preserved rejection boundaries: The new rows bind two ordered source-line hashes and both observed decoders. Policy selection checks every staged source reference; each patch witness independently selects its policy, and changed legacy lines remain rejected. Exact classification retains metadata, role, mode, occurrence, and verified-finding checks. (src/agent-input-scan-fixtures.ts:682, 764a5272edad)
  • Production admission boundary: The production scanner throws on refused classification before agent execution. The proof runner calls this same scanner owner with a complete committed range; it does not substitute a mock scanner or invoke reviewed target code. (src/agent-input-scan.ts:701, 764a5272edad)
  • Pinned external fixture source: GitHub contents inspection confirmed the synthetic URL occurs in live and snapshot metadata of the telemetry-redaction test at both supplied endpoints. This exact source dependency is established by the PR’s attribution rows and proof claim; the source is owned by OpenClaw, not ClawSweeper. (src/cli/plugins-cli.marketplace-entries.test.ts:270, 826f30fc2f45)
  • Captured native before-and-after proof: The supplied body snapshot, sourceRevision 7139cbd332f09652f9ac38db4fb91e4085635faee293dc952c758fdb04694623, contains baseline source_not_reviewed refusal and committed-head admission through scanAgentInput on macOS, Node 26.8.2, and TruffleHog 3.97.4. The candidate records HTML attribution for both endpoint blobs; its receipt identifies this head and report SHA-256 b3c2fc793caa3873eefd5a089dc4f5235b28fcb5eae3227f805db7f7c424e416. The controlled prompt and absence of model execution are explicitly disclosed. (docs/proof/marketplace-telemetry-fixtures/run-proof.mjs:29, 764a5272edad)
  • Focused compatibility coverage: The added cases cover 20 source/role/decoder combinations, seven witness or alias mutations, preserved refresh duplicate-context records, and four mixed-patch operations. The mixed-patch helper retains shared blob references and includes an admitted context control. Tests were inspected, not executed during this read-only review. (test/agent-input-scan.test.ts:3198, 764a5272edad)

Likely related people:

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-18T00:53:50.812Z sha 764a527 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-18T01:04:46.806Z sha 764a527 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 18, 2026 00:57
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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 status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 18, 2026
@steipete
steipete merged commit f3b7e8d into main Sep 18, 2026
41 of 45 checks passed
@steipete
steipete deleted the codex/145975-fixture-source branch September 18, 2026 01:09
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