Skip to content

feat: audit Template artifacts with AIG MCP - #4514

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/delta-shrimp
Nov 10, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/delta-shrimp

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Templates need their shipped instructions, automations and files audited as one artifact without recursively rescanning external ClawHub dependencies.

User Impact

Routes Templates through the dedicated AIG MCP profile and removes the duplicate yellow install subtext while preserving the Security audit sidebar and copy/readiness gates. External dependency code and audit reports are not fetched. Production release follows the exact-SHA Test deployment and Template canary checks.

Why This Change Was Made

Binds the merged ClawScan #155 host producer to the unchanged approved scanner-tools image. Both workers require the trusted Template family/profile, native Template target identity, complete AIG MCP evidence and the existing evidence-only publication judge. Template claims receive the existing 70-minute native-package lease instead of expiring mid-scan. Ordinary skill/plugin policies and secret/integrity/cleanup protections are preserved.

Evidence

  • 609 focused worker, installer, lease and claim tests passed; 53 UI regressions passed.
  • ci:static, ci:types-build, ci:packages, and schema/CLI/Convex typechecks passed.
  • Complete candidate P0–P3 Sol/high/Standard autoreview is scoped-clean.
  • Real local-browser before/after proof: warning removed, Review unchanged, copy unavailable. Chromium1440×1040; local Convex fixture @local/research-assistant1.0.0 at http://127.0.0.1:3562/local/templates/research-assistant; audit state is seeded, not a live scanner verdict.
  • Exact merged producer/binary/source reporting and approved OCI image/tool preflight passed. Actual AIG fixture mechanics read all12 shipped files without unexpected connections; this scripted-provider proof is not model detection-quality evidence. A later local live-provider attempt ended in APIConnectionError without a verdict; exact-SHA Deploy Test and the existing Test Template canary remain release checks.
  • Local full unit run:9,472 passed,6 failures in four untouched environment/policy-fixture files,5 skipped. Exact published-head CI is authoritative for landing and is being collected.

Contributor: @Patrick-Erichsen.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 04:38
Add trusted Template-profile validation and dormant qualified-runtime routing without changing existing skill/plugin scans or activation pins.

Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
OpenClaw-Publication: 0b7e0745-c146-471a-9a65-1080173e66b8
@vercel

vercel Bot commented Nov 10, 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 10, 2026 4:36pm UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 10, 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.

@roboclaw-bot roboclaw-bot changed the title feat: audit shipped Template content with AIG MCP feat: prepare Template-only AIG MCP audit routing Nov 10, 2026
Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

Template install subtext — real-browser proof

After — warning removed

After: Template install subtext removed; Review sidebar remains

Before — current main baseline

Before: yellow Template install warning below the command

Verified the original yellow install subtext removal without changing the sidebar security audit or enabling command copy for a suspicious Template.

  • Before: ClawHub main 32c8be8ff5a85dc605c671c1e73df489ae6abbda.
  • After: that same source with only the exact six-file UI diff from 4017affd53cbd9604debf68e838bb1d477c29f1f applied. No scanner changes were included in this proof.
  • Runtime: actual ClawHub development server at http://127.0.0.1:3562/local/templates/research-assistant, backed by this task’s disposable local Convex API/site on ports 3560/3561. Chromium, 1440 × 1040, light theme, same anonymous account and fixture before/after.
  • Fixture: @local/research-assistant v1.0.0, scanStatus=suspicious, release audit verdict suspicious displayed as Review. Seeded through a reusable, local-guarded fixture action with real Convex storage and registry reads. The scan outcome is simulated fixture data, not a live AIG or LLM scan. The temporary seed companion is not part of the PR. No API interception, generated HTML, production backend, or synthetic product pixels were used.
  • Browser assertions: warning count 1 → 0; sidebar audit Review → Review; CLI command copy control remains unavailable in both; no page JavaScript errors. Both full-resolution captures inspected for legibility and framing.
  • Tests: VITE_CONVEX_URL=https://example.invalid node node_modules/vitest/vitest.mjs run src/lib/templateRoutes.test.ts 'src/routes/$owner/templates/-$slug.test.tsx' — 53 passed (2 files). git diff --check passed.

This is UI-removal proof only, not a claim that scanner routing, live security checks, deployment, or landing were verified.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR prepares disabled Template-only AIG MCP routing and removes repeated install warnings while preserving audit status and copy gates.

Example: Viewing @local/research-assistant v1.0.0 with a suspicious scan result.

  • Before: The install command has a yellow warning beneath it, and the sidebar shows Review.
  • After: The warning is removed, the sidebar still shows Review, and command copying remains unavailable.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, scoped preparation with inspected browser evidence, focused consumer coverage, passing head checks, and no actionable introduced defect; native activation remains separate.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the changed Template UI through a real local ClawHub server and Convex-backed suspicious fixture. They show warning removal, retained Review status, and unavailable copying. Worker tests use synthetic scanner responses and establish consumer mechanics only; this PR leaves native Template activation disabled and makes no live-scanner proof claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Templates need whole-artifact security assessment without recursively scanning external dependencies, and repeated install warnings clutter their detail pages.
Reason: The supplied maintainer-authored direction authorizes this bounded preparation and presentation change; the title, body, code, and specification consistently defer runtime activation.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it contains useful maintainer-directed preparation that is absent from main, and no blocking introduced defect was found.

Priority: P2
Reviewed head: 4017affd53cbd9604debf68e838bb1d477c29f1f

Before merge

None.

Findings

None.

Agent review details

How this fits together

Publication and rescan workers invoke ClawScan and validate its evidence before producing release audit results, which Template detail pages display.

flowchart TD
  A[Claimed package release] --> B[Publication and rescan workers]
  B --> C[Existing active scanner routing]
  B --> D[Disabled Template runtime binding]
  C --> E[Shared evidence validator]
  D --> E
  E --> F[Release audit result]
  F --> G[Template detail page]
Loading

Technical review

Best possible solution:

Retain the disabled preparation and shared validation, with native source/image qualification handled before a separate activation change.

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

This is feature preparation; the supplied real-browser comparison establishes the existing warning and its removal, while source inspection establishes that scanner activation remains disabled.

Is this the best way to solve the issue?

The approach is appropriate for the stated preparation scope: it reuses the existing qualifier and evidence validator rather than introducing another scanner executor or weakening runtime pins.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared native runtime qualification keeps the original intent (560125d: Bind native AIG MCP execution to reviewed clean source and an immutable Docker image, preserving plugin-specific overrides.)
  • Template scanner requirements keeps the original intent (560125d: Require ordinary Template scanner coverage and native rescans until a separately qualified replacement exists.)
  • Install warning presentation changes intended behavior with a stated reason (1c5fc5b: Expose adverse scan status and offer Add guidance only after clean security checks; later layout and audit changes retained those gates.)
  • Release audit display keeps the original intent (6fe2dc0: Use pinned release evidence for audit status independently of package installation readiness.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 560125d adds scripts/security/clawscan-plugin-runtime.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 560125d8ef84; files: scripts/security/clawscan-plugin-runtime.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
Introduced scope +825/-128 across 16 files Production changes are +201/-89, tests +537/-39, and specifications +87/-0; most growth covers rejection cases and both worker consumers.

Labels

Label changes:

  • add P2: Useful scanner integration preparation and a limited UI improvement, with no demonstrated urgent production failure.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Useful scanner integration preparation and a limited UI improvement, with no demonstrated urgent production failure.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

Reviewed November 10, 2026, 11:16 AM ET / 16:16 UTC.

roboclaw-bot and others added 2 commits November 10, 2026 16:31
Bind the merged host producer to the unchanged qualified scanner-tools image, preserve source reporting and Docker isolation, and cover Template publication leases and Test canary drain.

Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <20157849+Patrick-Erichsen@users.noreply.github.com>
OpenClaw-Publication: 86183b9e-9b77-4922-bc42-6f5fee8b9500
@roboclaw-bot
roboclaw-bot requested a review from a team as a code owner November 10, 2026 16:34
@roboclaw-bot roboclaw-bot changed the title feat: prepare Template-only AIG MCP audit routing feat: audit Template artifacts with AIG MCP Nov 10, 2026
@roboclaw-bot
roboclaw-bot merged commit 2737c1b into main Nov 10, 2026
59 of 60 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/delta-shrimp branch November 10, 2026 18:07

This branch was successfully deployed

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

Labels

P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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