Skip to content

feat(security): activate scanner-only Codex plugin adjudication - #4411

Merged
Patrick-Erichsen merged 20 commits into
mainfrom
simple-plugin-aig-decisions-consumer
Nov 7, 2026
Merged

Patrick-Erichsen merged 20 commits into
mainfrom
simple-plugin-aig-decisions-consumer

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Plugins: one whole-artifact AIG MCP-only audit in the immutable Docker image; no imported evidence, host execution or mutable-image fallback.
  • Skills: SkillSpector + AIG, then scanner-only Codex adjudication; incomplete/failed evidence fails closed under the approved policy.
  • Templates retain ordinary requirements, canonical claw-family lease, and native rescans instead of imported bundled results.
  • Preserve current-main all-code-plugin report-only Endor, admitted publication verdicts, retired/stale/replayed-job authority restrictions, and cleanup/workspace custody.
  • Complete plugin scanner/judge/overview drain budgets without changing skill-specific timeout settings.
  • Official trust uses persisted ownership; existing requireSecurityChecks trust suppression remains unchanged.

Immutable binding

Producer #152 merged source 80d11a34a97a9181213c806fc3013123360f9012.

  • Source tree: dae6e848e052bb95f60da4af98efbe579f64c0bc
  • Runtime tree: ddfec1285eaf19beb3043e9e5ad043a0d274cb53
  • Image: ghcr.io/openclaw/clawscan-runtime@sha256:d494938b84a9f0da40504f611eec472d4637c755b5cef87b123daf8a2014545c
  • Native amd64/arm64 build and CLI qualification: success. Default pin, installer binding, worker policy and tests changed together.

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:

Actual run Native scanners Codex judge and overview Strict consumer
Markdown-only summarization skill SkillSpector + AIG completed, exit 0 Both completed; benign/high Accepted; one judge invocation, zero operational failures
Inert metadata-only plugin AIG MCP only completed, exit 0 Both completed; benign/medium Accepted; immutable image checked; one judge invocation, zero operational failures

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.

  • Template publication: three regression cases failed before, 177 targeted tests passed after claim-owned ordinary requirements; missing SkillSpector still rejected.
  • Template rescan: failed on injected scanner-result before, 136 targeted tests passed after both preparation paths use native scans.
  • Earlier legacy-workflow setup and omitted-command regressions reproduced red, repaired green; negative source/tree/image/import/schema/completeness/attempt tests retained.
  • Full coverage: 9,139 passed, 5 skipped; 670 files passed, one skipped. Coverage 89.52/83.4/90.98/91.98.
  • ci:static, ci:types-build, ci:packages, shell syntax and diff checks passed. Package subprocesses unset inherited OpenClaw configuration and bypass proxy for loopback only; no unrelated CLI code changed.
  • Actual installer built exact clean source with embedded revision/vcs.modified=false; 24 isolated compatibility tests passed; runtime verifier accepted source/binary, plugin override true and Template false.
  • Final helper-isolated GPT-6.1 Sol/high/Standard P0–P3 autoreview: scoped-clean; accepted findings repaired with regressions.
  • Existing inspected desktop/mobile absent-overview UI proof remains applicable, with its simulated scanner/provider boundary disclosed. UI unchanged.

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.

Assertion Actual result
allowed-report-only completed=true; exact release preserved except Endor=true; entire package preserved=true
replayed-public-completion Rejected: Lease mismatch
replayed-canonical-final-write Rejected: Lease mismatch
public-readability security HTTP200; version HTTP200; benign verdict; Endor completed
allowed-legacy-existing-state completed=true; exact release preserved except Endor=true; entire package preserved=true
replayed-public-completion Rejected: Lease mismatch
replayed-canonical-final-write Rejected: Lease mismatch
legacy-public-readability security HTTP200; version HTTP200; benign verdict; Endor completed
verdict-substitution-public Rejected: Endor report-only jobs cannot replace ClawScan evidence
verdict-substitution-canonical-owner Rejected: Endor report-only jobs cannot replace ClawScan evidence
revoke-canonical-final-write Rejected: Lease mismatch
revoke-canonical-unchanged entire state unchanged=true
revoke-public-final-write Rejected: Lease mismatch
revoke-actual-worker-rejection completion rejected; release/package unchanged=true
reassignLease-canonical-final-write Rejected: Lease mismatch
reassignLease-canonical-unchanged entire state unchanged=true
reassignLease-public-final-write Rejected: Lease mismatch
reassignLease-actual-worker-rejection completion rejected; release/package unchanged=true
reassignTarget-canonical-final-write Rejected: Lease mismatch
reassignTarget-canonical-unchanged entire state unchanged=true
retire-canonical-final-write Rejected: Automatic plugin ClawScan jobs are retired
retire-canonical-unchanged entire state unchanged=true
retired-automatic-public-completion Rejected: Unsupported security scan target
retire-actual-worker-rejection completion rejected; release/package unchanged=true
deleteRelease-canonical-final-write Rejected: Package release not found
deleteRelease-canonical-unchanged entire state unchanged=true
deleteRelease-public-final-write Rejected: Invalid Endor report target
deleteRelease-actual-worker-rejection completion rejected; release/package unchanged=true

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:

[Request ID: 01f05818f08caa7c] Server Error
Uncaught ConvexError: Lease mismatch
    at handler (../../convex/packages.ts:12192:20)
    at async handler (../../../../..[source]/node_modules/convex-helpers/packages/convex-helpers/server/customFunctions.ts:508:17)

    at async runMutationRef (../../convex/securityScan.ts:325:0)
    at async handler (../../convex/securityScan.ts:3937:8)

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

  • Full coverage: 9,139 passed, 5 skipped, 670 files passed/one skipped; 89.52/83.4/90.98/91.98.
  • ci:static, ci:types-build, direct TypeScript and diff checks passed.
  • Fresh helper-isolated GPT-6.1 Sol/high/Standard P0–P3 autoreview: scoped-clean.
  • Prior package gate remains applicable (repair changes only Docker environment forwarding); exact-head hosted CI running. No claim of merge readiness until fresh hosted review/checks finish.

Late-review publisher-context and operator-doc repairs

Current checked head: 8cff983.

  • Both package worker lanes now pass --context with a private JSON containing only backend-derived trustedOpenClawPlugin===true. Untrusted, absent and name-spoofing targets remain false. Stored reports/Endor, signed URLs, lease tokens and artifact text are excluded; existing backend persisted-owner derivation and requireSecurityChecks suppression are unchanged.
  • Paired native invocation proof: before, trusted/untrusted executable cases failed with “missing verified publisher context”; after, both worker lanes accept exact trusted/untrusted/absent booleans. 182 worker seam tests, then 236 trust/backend tests passed. Synthetic scanner artifact transport is disclosed: these tests assert actual worker child arguments/context bytes, not live provider classification.
  • Separate actual pinned producer evidence-only harness proof in a disposable source80 copy: trusted=false and trusted=true both reach rendered prompt context exactly; artifact text/host path absent. Real producer rendering/workspace functions execute; command runner is a recorder, not Docker/provider. No paid scanner/provider/corpus rerun. Isolated source copy removed; pinned installed source untouched.
  • Existing runtime specifications now lead with activated source80/tree/d494 image, current executable installer commands and explicit historical labels for retained c3/source56 records. No new standalone design/spec file.
  • Full local current-repair coverage: 9,139 passed, 5 skipped, 670 files passed/one skipped, unchanged passing coverage. Static and types/build passed.
  • Helper-isolated GPT-6.1 Sol/high/Standard P0–P3 review of the actual committed six-file diff against bd83819: scoped-clean, no actionable findings. An earlier branch review explicitly excluded then-uncommitted repairs and is not used as proof of this repair.
  • Final-write authority evidence above was executed at bd83819; this follow-up changes native caller-context handoff and documentation, not Convex final owners, queue authority or Endor-only path. It does not claim a repeated exact-current-head authority run. Prior bd83819 hosted CI succeeded after one diagnosed Convex capacity failed-job retry; this current head still needs its own hosted checks/review.

Landing conflict reconciliation

Final checked head: 04338c6 (main through 0588708).

  • Prior 8cff983 hosted review: zero actionable findings, authority/runtime/context proof sufficient; exact-head CI succeeded after one diagnosed Convex-capacity failed-job rerun.
  • Main c385b36 introduced targeted expired-finalization recovery, conflicting only in publishAttempts imports and claim patch. Resolution retains both final-write evidence enforcement and main recovery binding/error preservation; applies consumer 70m package/30m skill claim lease. Native convex-test integration regression explicitly checks those durations while preserving checks/errors/evidence; 370 focused tests passed.
  • Initial combined gates exposed an obsolete setup-prompt test from main's overlapping UI changes (removed API; not a scanner regression). Adopted landed main 0588708 / test: remove superseded setup prompt assertion #4469, which removes the obsolete test/import; no custom production UI change. That leaf passed 5/5.
  • Final combined full coverage: 9,210 passed, 5 skipped, 671 files passed/one skipped; 89.61/83.54/91.04/92.05. Static and types/build passed; diff clean.
  • Helper-isolated GPT-6.1 Sol/high/Standard P0–P3 review of the actual committed integration against main058870: scoped-clean. Prior proof is retained with original-head/simulation disclosures; no repeat paid scanner, corpus or final-write authority fixture run.
  • Current head requires its own hosted CI/review. Separate deployment and 30-minute monitoring remain parent-owned after landing.

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 isAdjudicableSkillSpectorResult contract from #4171. Successfully executed structured SkillSpector partial/judge-gaps reports 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 fmt subcommand. 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.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 7, 2026 12:35am UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The earlier typed consumer rejects the usable report and leaves publication pending.
  • After: Both worker consumers preserve the benign verdict while retaining the partial evidence and diagnostics.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful and well-supported integration with the previous blocker resolved and no remaining actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Actual pinned ClawScan CLI runs exercised skill and plugin scanners, Codex adjudication and overview in the immutable image, with successful strict consumption. A separate real worker-to-native-Convex path demonstrated allowed Endor-only writes and final-owner rejection of forbidden or stale authority; its simulated Endor transport is disclosed. Inspected browser captures establish absent-overview rendering, and the latest partial-report repair has paired subprocess regressions rather than a repeated provider run; production rollout and corpus accuracy are not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Plugin publication and later automatic scans should retain one admitted adjudication while the judge consumes scanner evidence through the approved runtime.
Reason: The maintainer-authored direction is approved, addresses duplicate adjudication and artifact exposure, and preserves explicit rescans and historical readability.

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
Reviewed head: 0336d44266478a7f74a85dcc732cd81652474947

Before merge

None.

Findings

None.

Agent review details

How this fits together

Publication 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]
Loading

Technical review

Best 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

  • Independent artifact-inspection receipts changes intended behavior with a stated reason (8e614ba: Require evidence that the artifact-capable judge inspected the submitted artifact.)
  • Usable partial SkillSpector evidence keeps the original intent (7b968d7: Allow successful structured partial evidence to reach a completed judge while preserving gaps and genuine failure gates.)
  • Endor report-only policy keeps the original intent (46dbc1f: Expose dependency evidence without letting Endor control publication, quarantine or moderation.)
  • Exact admitted publication verdict keeps the original intent (e29d1c6: Avoid duplicate nondeterministic adjudication for an exact artifact while retaining fresh secret scanning.)
  • Reviewed scanner source installation changes intended behavior with a stated reason (21841f0: Bind the scanner and matching adapters to reviewed source instead of incompatible package versions.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Review scope and main behavior: Reviewed the pinned introduced diff and current-main context; main still pins c3cfaf1515a47685786d72f031c714b1e5d9b34e and lacks this activation. (scripts/security/clawscan-source-commit.txt:1, 3e62506a0cc2)
  • Previous finding resolved: The typed validator now reuses isAdjudicableSkillSpectorResult while retaining native execution checks; added fixtures exercise benign/suspicious results with exits 0/1 and invalid evidence through both worker consumers. (scripts/security/clawscan-decisions.ts:236, 0336d4426647)
  • Final-write authority: The canonical mutation checks running status, target identity and lease token before writes; report-only jobs reject replacement adjudication evidence and patch only endorAnalysis. (convex/packages.ts:12185, 0336d4426647)
  • Runtime and authority proof: The complete PR body records actual pinned-image skill/plugin scanner and provider runs, plus native-local Convex allowed completions and rejection of replayed, revoked, reassigned, retired and substituted authority; simulated Endor transport and original proof revisions are disclosed. (0336d4426647)
  • Inspected browser proof: Both downloaded screenshots visibly show Pass, version 1.0.0 and truthful absent-overview copy; the credited discussion discloses simulated scanner/provider completion: feat(security): activate scanner-only Codex plugin adjudication #4411 (comment). (packages/schema/src/securityAudit.ts:15, 0336d4426647)
  • Existing-state compatibility: scanMode is optional for historical rows; legacy-shaped native backend proof and queue regressions preserve admitted release evidence while intentionally retiring automatic re-adjudication authority. (convex/schema.ts:1972, 0336d4426647)

Likely related people:

  • Patrick Erichsen: Raw commit 1818e23 adds scripts/security/run-codex-scan-worker.ts:1650 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1818e234d9be; files: scripts/security/run-codex-scan-worker.ts)
  • Jesse Merhi: Raw commit 46dbc1f adds scripts/security/run-codex-scan-worker.ts:2388 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 46dbc1f6e3ee; files: scripts/security/run-codex-scan-worker.ts)
  • Peter Steinberger: Raw commit 35aa372 adds convex/securityScan.ts:113 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 35aa372b24a3; files: convex/securityScan.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
Scope balance Runtime/workflows +1,654/-164; tests/helpers +2,806/-40; specifications +506/-0. The larger test contribution covers distinct scanner, custody, queue and compatibility failures across both worker lanes.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is an approved scanner integration and publication-policy improvement without evidence of an emergency regression.
  • merge-risk: 🚨 compatibility: Activation changes the required scanner runtime/result contract and retires automatic plugin re-adjudication; the maintainer-authored direction explicitly accepts this transition, with historical readers and legacy-state checks retained.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-11-04T08:40:43.080Z sha fba9211 :: needs real behavior proof before merge. :: [P2] Preserve usable partial SkillSpector results in the Decisions path | [P2] Preserve the workspace when Endor-only cleanup fails
  • reviewed 2026-11-06T22:12:00.330Z sha acacb92 :: needs real behavior proof before merge. :: [P2] Preserve Docker endpoint settings in both worker environments
  • reviewed 2026-11-06T22:44:04.530Z sha bd83819 :: needs changes before merge. :: [P2] Pass verified publisher context to the EvidenceOnly judge | [P3] Update the runtime instructions to the activated binding
  • reviewed 2026-11-06T22:50:05.726Z sha bd83819 :: needs changes before merge. :: [P2] Pass verified publisher context to the EvidenceOnly judge | [P3] Update the runtime instructions to the activated binding
  • reviewed 2026-11-06T23:26:00.590Z sha 8cff983 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-07T00:07:44.614Z sha 04338c6 :: needs changes before merge. :: [P2] [P2] Preserve usable partial reports in typed scanner validation

Reviewed November 6, 2026, 7:38 PM ET / November 7, 2026, 00:38 UTC (Revision 7).

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Passing candidate: real local audit without optional overview

Candidate a6219be8000676ad25c8ed60580fcb29868548aa includes current main 612ab448da105a3a158619bbff9c27062d9a64df; in-publish Plugin Inspector is not restored.

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: http://127.0.0.1:4173/cli-user/plugins/old-cli-plugin-mw1vp783/security-audit?version=1.0.0
Fixture: generated old-cli-plugin-mw1vp783@1.0.0, benign legacy-compatible completion with optional overview absent.

  • Desktop and mobile show Pass, version 1.0.0, and “No overview is available for this completed security scan.”
  • Both final screenshots were visually inspected for state, framing and privacy.
  • Supported isolated runner passed both previously failing template-boundary and old-CLI leaves, 2/2; Inspector publish tests subsequently passed 3/3.
  • Initial local startup failure was loopback traffic incorrectly sent through inherited HTTP proxy. Adding loopback-only NO_PROXY fixed startup; external proxy routing unchanged.
  • Original CI failures were introduced canonical-evidence fixture omissions, not environment-only: shared helper supplied no analysis for clean results in candidate and main. Fixture now supplies completed benign evidence; production gate remains strict.
  • Independent read-only review found three P2 issues. Endor cleanup workspace preservation is fixed and proven in both report-only/adjudication modes. Queue recovery/dispatch repairs remain in progress.

Desktop audit, completed verdict without optional overview
Mobile audit, completed verdict without optional overview

absent-overview-desktop

absent-overview-mobile

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Repaired candidate — review and exact-head CI complete

Head 950c03b remains draft.

  • Independent read-only GPT-6.1 Sol re-review: no remaining actionable P0–P3 findings; verified all three earlier P2 fixes and reran 130/130 focused tests. Narrative review, not helper-owned isolation/machine verdict.
  • Full hosted CI passed: https://github.com/openclaw/clawhub/actions/runs/41805684585
  • First exact-head attempt had one standalone skill lifecycle capacity timeout. The same hosted leaf passed on main 612ab44 and prior candidate a6219be; the exact local shard passed 5/5, and a single failed-job rerun passed. No rate-limiter/capacity work was added.
  • Full local ci:unit 8899 passed, 5 skipped, coverage passed; types-build, packages and HTTP gates passed. Exact originally affected browser leaves 9/9 passed.
  • Genuine inspected desktop/mobile absent-overview proof, with simulated scanner/provider boundary explicitly disclosed.
  • Current main feat(packages): move Plugin Inspector to post-acceptance monitoring #4383 post-acceptance Inspector monitoring retained. Old-pin no-AIG completion regression remains passing.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Qualified runtime preparation complete locally — publication blocked

Local 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 (fatal error in commit_refs, then Internal Server Error). Independent ref/PR readbacks confirm no ref change. No force-push or alternate transport used.

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:

  • Actual native both-architecture image publication 41816825573: success, exact source/tree/runtime tree. Native logs prove patched MCP static/entry-network 28 passed and stdlib Decisions 24 passed, followed by installed CLI smoke.
  • Actual local existing installer: default c3cfaf15 and explicit candidate56 both built with correct embedded VCS revision and vcs.modified=false. Candidate matching isolated stdlib tests 24 passed, judge resolved on installer PATH; worker source/binary verifier and opt-in source-reporting path accepted the actual clean candidate installation.
  • Readonly landed-source AIG adapter tests: 22 top-level passed, including provider/exhaustion/incomplete-report handling.
  • Full local unit gate: 8939 passed, 5 skipped, coverage passed; types-build/packages/full lint/full formatter/deadcode passed. Final tightened scanner-requirement regression suites passed 312, then 176 tests.
  • Independent read-only P0–P3 integration review: no actionable findings; includes both worker seams, old-pin defaults, manual rescans, ignored-file rejection and immutable-image binding. No helper-isolation claim.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Fresh-review repairs published — exact head 2334deb

Published 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:

  • Explicit family manifest selection is retained for root SKILL.md + plugin manifest or multi-manifest bundles; this disambiguates identity while native source56 scans the full parent artifact. Real native binary reproduction confirms directory rejection versus manifest credential preflight.
  • Both qualified worker paths now own daemon containers with a fresh run label; verify exact immutable IDs and run/command labels before removal; check every disappearance and final residue. Shared host-process termination alone is not daemon cleanup.
  • Optional overview timeout may be contained by a zero-exit native host. Child finality is checked separately; failed/unknown finality sweeps boundedly, preserves the mounted workspace and stops further claims rather than trusting empty polling.
  • Native Docker deliberately omits positive commandStarted. Completed validated judge/attempt/overview output accepts that real wire shape and retains optional prose. Failed unknown-start attempts retain unknown counts; malformed flags and explicit-false completed attempts remain rejected.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Final published consumer preparation — exact head verified

Head: 2334deb9c8276629e511aab4bbe7acd0e92a1aa9

  • Native Git branch, fresh PR readback, local HEAD and clean worktree agree.
  • Exact-head hosted CI: success — https://github.com/openclaw/clawhub/actions/runs/41834802317
  • Fresh exact-head independent narrative review: findings-free P0–P3. Reviewer covered all nine repair files, necessary supervisor context and frozen native source56 contracts; independently reran 215/215 tests and confirmed clean matching heads before/after. No helper-owned isolation claim.
  • Full serialized local unit coverage: 8995 passed, 5 skipped. Full types/build/lint/installed formatter passed.
  • All accepted review findings are repaired: native manifest ambiguity, daemon ownership/late-create custody, contained overview timeout finality and omitted native Docker commandStarted compatibility.
  • Prior inspected real desktop/mobile UI proof remains applicable; UI did not change in runtime/custody follow-ups, so no duplicate captures.

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 specs/plugin-qualified-runtime.md. Local Docker daemon remains unavailable; local daemon ownership tests are executable mocks plus real host-process supervision, not an invented native-image run. Parent owns remaining live-provider/corpus evaluation.

Still draft and not activation authorization. No production source-pin/workflow/config/data/env change, merge, deploy or npm release. Old pin remains c3cfaf1515a47685786d72f031c714b1e5d9b34e. Full sample results and the parent/human rollout decision remain separate; Vercel quota remains outside this task.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen
Patrick-Erichsen merged commit 560125d into main Nov 7, 2026
38 of 40 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the simple-plugin-aig-decisions-consumer branch November 7, 2026 00:40
jesse-merhi added a commit that referenced this pull request Nov 9, 2026
* 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

This branch was successfully deployed

1 active deployment
Preview – clawhub — 0336d442 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal backlog priority with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant