Repository navigation
feat(security): activate scanner-only Codex plugin adjudication - #4411
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR activates scanner-only Codex adjudication with an immutable plugin runtime and preserves admitted plugin verdicts during automatic Endor follow-ups. Example: A skill scan returns SkillSpector status partial, reportPolicy judge-gaps, exitCode 1, and a completed benign judge verdict.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: its activation is absent from main, the prior blocker is fixed, and no actionable findings remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPublication and rescan workers consume claimed artifacts, invoke ClawScan, validate native evidence, and submit results to Convex owners that control release visibility and audit state. flowchart TD
A[Uploaded artifact] --> B[Convex claim]
B --> C[Publication or rescan worker]
C --> D[Native scanners]
D --> E[Scanner-only Codex judge]
E --> F[Shared typed validator]
F --> G[Canonical release mutation]
G --> H[Public artifact and audit]
Technical reviewBest possible solution: Land the shared typed consumer with its pinned runtime and canonical lease checks, then follow the recorded staged rollout. Do we have a high-confidence way to reproduce the issue? This is an activation feature; source inspection confirms the previous partial-report rejection and its focused repair, without executing target code. Is this the best way to solve the issue? Best-fix verdict: best. Both workers share the typed validator, existing process supervision remains responsible for host processes, and the added cleanup owner handles daemon containers that host termination cannot certify. Keeping the old receipt requirement would contradict the approved evidence-only producer contract, while separate consumer implementations would duplicate policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3e62506a0cc2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 6, 2026, 7:38 PM ET / November 7, 2026, 00:38 UTC (Revision 7). |
Passing candidate: real local audit without optional overviewCandidate Real ClawHub app + isolated local Convex + real Chromium, using released ClawHub CLI 0.14.0 to upload a plugin. The test completes the supported prepublication checks with simulated scanner/provider results, retains benign verdict with no stored summary, and asserts the public version API and actual audit page agree. No intercepted success responses or mock HTML. This is UI/consumer proof, not live Decisions/AIG MCP qualification. URL:
|
Repaired candidate — review and exact-head CI completeHead 950c03b remains draft.
Still not activation-ready: parent has not cleared adoption of the corrected paired upstream. MCP installer and executable completion fences remain closed pending source/runtime qualification. Production source lock, activation configuration and data/env untouched. No merge/deploy/CLI release. Vercel quota is out of scope. |
Qualified runtime preparation complete locally — publication blockedLocal reviewed candidate: ac58316 (child of current published head 950c03b). The PR remains draft at 950c03b because two ordinary fast-forward Git pushes were rejected by GitHub server errors ( The candidate prepares only the parent-cleared landed ClawScan source 56d17aaa423cdb1ed87aeda970b9a2b30eed7dd8 and native immutable image ghcr.io/openclaw/clawscan-runtime@sha256:9c765a089a034451c428d563f0f09f4004c898ac14802470bb6a58fca7755960. Temporary blanket MCP installer/completion fences are replaced by exact source/binary/clean-checkout plus Docker digest checks. Host-off and mutable images still fail closed. Default production pin/workflows are untouched. Qualification:
Limits: Docker daemon unavailable on this Mac, so local installer Docker calls are executable-mock tests; actual patched-image proof is native CI above. No duplicate corpus started; parent owns the ongoing provider sample. No UI changed/repeated proof. The new local head cannot obtain hosted CI until GitHub accepts its branch update. No merge/deploy/production data/env/config/npm changes. |
Fresh-review repairs published — exact head 2334debPublished 2334deb on the existing draft/branch. Native Git ref readback confirms it. No replacement PR, force-push, transport bypass, production source-pin change or activation. Fresh review correctly found safety/compatibility issues that green ac58316 CI did not cover:
Independent narrative repair review is findings-free P0–P3; a fresh exact-2334 review is running. Serialized full unit coverage passed 8995 tests, 5 skipped. Full types/build/lint/formatter passed; final cleanup/Decisions predicate suites passed 81, and worker custody/manifest regressions passed. No real local-Docker assertion: ownership/race tests use executable mocked Docker plus real shared process supervision; actual patched-image qualification remains source56/native run41816825573. No UI or provider/corpus repetition. Exact-2334 hosted checks are running; prior ac58316 hosted CI succeeded after one capacity-shard rerun. Remaining parent-owned live sample evaluation and human rollout decision are not conferred by these checks. Draft remains open; no merge/deploy/npm/data/env change. |
Final published consumer preparation — exact head verifiedHead:
Qualified preparation binds only landed source56 and native immutable image9c. Both actual source installers (default c3 and explicit56), stdlib judge PATH/24 tests, actual native both-architecture image28+24 tests and source adapter22 tests are documented in Still draft and not activation authorization. No production source-pin/workflow/config/data/env change, merge, deploy or npm release. Old pin remains |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* fix(security): keep Endor failures out of Endor-only job outcomes Endor-only jobs (added in #4411) let an Endor error fail the whole job, so most community code-plugin publishes recorded a failed scan job. Save a failed Endor analysis instead, as the full scan path already does, and fix the three causes seen in Production: - make the copied artifact readable by the container's node user (owner-only files failed with Permission denied); - skip pnpm packages, which endorctl cannot scan without pnpm; - raise the Endor report limit from 8 MiB to 64 MiB. * fix(security): tell owners a pnpm Endor skip needs no action




Summary
Activate the approved scanner-report-only Codex EvidenceOnly judge using the exact merged producer and qualified immutable runtime. This supersedes the earlier Decisions preparation/draft hold. New typed results require neither a Decisions payload nor an independent artifact-inspection receipt; historical artifacts remain readable.
Immutable binding
Producer #152 merged source 80d11a34a97a9181213c806fc3013123360f9012.
Real in-image handoff proof
Actual source80d11a3 binary + exact image + scoped Colima endpoint + inert fixtures + real configured OpenAI credential supplied through process/container environment only:
Both artifacts: complete=true, status=completed, built-in provenance, native scanner commands (no imported scanner-result), schema/prompt hashes and consistent final attempts. No scanner output/provider transport was stubbed in these two runs. No artifact code execution, production scan or corpus replay. Six protected containers remained running; no qualification containers remained.
Docker output omits rendered judge commands/configured-model metadata; pinned source selects GPT-6.1 Sol, not claimed provider-returned model provenance. These runs prove auth/flags/typed handoff, not absence of all delegation: native JSON events do not expose spawn_agent.
Paired proof and validation
Checked head 04338c6.
Docker handoff repair and real final-write authority proof
Exact checked head: bd83819. Same existing branch/PR; not merged or deployed.
Docker environment: red → green
Both publication and rescan worker seam regressions failed before (native fixture exit88, cleanup exit89) when DOCKER_CONTEXT/DOCKER_CONFIG disappeared. Shared explicit Docker endpoint/context/config/TLS/cert/API allowlist now reaches native subprocess and cleanup in both lanes; no provider/worker/auth environment broadening. 229 targeted tests pass.
Actual worker → native-local Convex → canonical final owner
Supported isolated native Convex; all 2,360 tracked blobs match the exact head. Real storage-backed artifact verification; public claim/hydrate → unchanged processJob → public completeCodexScanJob → canonical completeReleaseSecurityScanInternal. No production instrumentation or convex-test handler calls.
Runner exit 0: 2 allowed worker completions, 15 explicit native rejected calls, 4 actual stale-worker completion rejections, 4 HTTP200 reads.
Both published and legacy-shaped releases retained exact admitted verdict/detail/guidance, AIG/SkillSpector, files/tags/verification, and the entire package. Only endorAnalysis was added—even with a critical dependency finding. Job succeeded and cleared lease.
Final-owner trace (not only public preflight): revoked running status retained original lease. Actual worker request 01f05818f08caa7c passes public lease precheck and reaches canonical rejection:
Release/package stayed unchanged; ordinary failure bookkeeping is separately recorded.
Disclosures: Endor Docker subprocess transport alone was simulated by a private executable returning labeled report JSON. Real wrapper/parser, worker, public action and canonical native transactions execute. Direct canonical negative calls use disposable local admin client. Reassigned-target case proves real canonical stale-release-argument rejection, not an artificially interleaved public-action race. Local seeded admitted/legacy state proves readability, not historical production migration. This fixture uses no Docker/provider calls; separate real source80/image d494 scanner/Codex/overview runs remain documented in the PR.
Cleanup verified: owned ports3298/3299 closed; disposable source/database/HOME/admin credentials/cache removed. Full ignored local evidence: .artifacts/simple-consumer/authority-proof/{README.md,run.log,assertions.json,summary.json,allowed-before-after.json,legacy-before-after.json,allowed-http.json,legacy-http.json,source-integrity.json,cleanup-verification.json}; fixture/runner retained there, not committed.
Exact-head local gates
Late-review publisher-context and operator-doc repairs
Current checked head: 8cff983.
Landing conflict reconciliation
Final checked head: 04338c6 (main through 0588708).
Release boundary
This PR updates the pin but performs no deployment, production data/classification changes, bulk rescans/requeues, historical rewrite or package release. Parent owns exact-SHA Deploy Test → production → 30-minute monitoring after landing. Historical Solaris diagnostic admission remains intentionally closed after a different runtime is adopted.
Late review repair: usable typed partial SkillSpector evidence
The shared typed validator now reuses the existing
isAdjudicableSkillSpectorResultcontract from #4171. Successfully executed structured SkillSpectorpartial/judge-gapsreports with native exit 0/1 may preserve a completed native judge verdict. Gaps remain raw evidence/diagnostics, not an operational failure. This does not relax AIG, plugin-only AIG MCP, run completion, native execution provenance or final judge validation.Comparable before/after proof: the same 8 executable subprocess fixtures (benign/suspicious × exit 0/1 × publication/background consumers) fail against the published 04338c6 validator and pass with this repair. Nine invalid-evidence scenarios reject through both worker consumers: absent policy, malformed/unsuccessful raw report, scanner crash/error, imported scanner-result, missing native exit, missing AIG, and failed judge. Raw partial evidence and judge-gaps diagnostics are retained. These are synthetic provider-output subprocess fixtures, not new live scanner/provider qualification. Existing exact-image qualification remains unchanged.
Validation: 156 focused worker tests passed; full-suite tests and coverage passed; types/build passed; static components passed using installed native oxfmt because this host's Bun lacks the repository script's
bun fmtsubcommand. The full suite uses the prior bounded settings (two workers, 120s test cap) and loopback-only NO_PROXY so owned HTTP fixtures do not traverse the inherited external proxy; external proxy handling is unchanged. Local Sol/high/Standard independent autoreview was attempted, but returned reviewer_unavailable/authentication with no report. This is not claimed clean; hosted exact-head re-review remains a landing gate.