Skip to content

fix(plugins): accept reviewed llama runtime probe after build - #124194

Merged
fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/plugin-security-scan-llama-dist-baseline
Aug 15, 2026
Merged

fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/plugin-security-scan-llama-dist-baseline

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the publishable-plugin security release scan failed after the llama.cpp provider's canonical package runtime build emitted its reviewed llama-server --version probe in package-local dist/index.js.

Why This Change Was Made

Adds the generated llama.cpp runtime probe to the optional publishable-dist census with an exact count of one. The expectation activates only when that packed path exists, so source-only checkouts still pass while unknown findings and count drift remain release failures.

User Impact

No production runtime behavior changes. Maintainers can run the full publish security scan against both clean source trees and built llama.cpp package artifacts without a false release failure.

Evidence

  • Red on 571009dd8b885826c354c0bc82c506efef064502: canonical llama package runtime build followed by src/plugins/npm-install-security-scan.release.test.ts produced 93/94 passing tests and one unexpected @openclaw/llama-cpp-provider:dangerous-exec:dist/index.js:146 finding.
  • Green on signed head 6130a91106eea5e6ed98f1d44c72e6dacfe0edcb: the same full release test passes 94/94 with package-local dist absent.
  • Green on the same head after node scripts/lib/plugin-npm-runtime-build.mjs extensions/llama-cpp: the generated probe remains at dist/index.js:146, and the same full release test passes 94/94.
  • git diff --check passes; autoreview reports no actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@fuller-stack-dev fuller-stack-dev added the maintainer Maintainer-authored PR label Aug 15, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Aug 15, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 12:19 PM ET / 16:19 UTC.

ClawSweeper review

What this changes

The PR adds the llama.cpp package’s generated dist/index.js version probe as one reviewed critical finding in the publishable-plugin release scanner.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No actionable patch defect found. The one-entry allowance matches the built llama.cpp provider’s fixed-argument version probe and preserves the scanner’s exact-count and unknown-finding failures; keep this maintainer-authored, protected PR open until exact-head checks finish.

Priority: P2
Reviewed head: 6130a91106eea5e6ed98f1d44c72e6dacfe0edcb

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A narrow, source-aligned scanner-contract repair with an explicit maintainer security decision and no identified patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored, test-only PR is not subject to the external-contributor proof gate; its body nevertheless records built-package before/after release-scan evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored, test-only PR is not subject to the external-contributor proof gate; its body nevertheless records built-package before/after release-scan evidence.
Evidence reviewed 5 items Changed scanner contract: The PR adds exactly one package-and-path-specific reviewed finding; the scanner derives expected optional findings only from packed paths and compares the complete observed list against that expected count.
Runtime execution boundary: The llama.cpp owner code uses execFile with fixed --version arguments and rejects output that lacks the pinned build and commit identifiers.
Generated-artifact path: The provider declares index.ts as its plugin entry, and the package runtime builder converts TypeScript entries into dist outputs before packaging.
Findings None None.
Security None None.

How this fits together

Publishable plugins are built into package-local runtime files before release checks stage and scan the files that npm pack would ship. The scanner compares observed critical findings with a reviewed exact-count baseline and rejects anything unexpected or missing.

flowchart TD
  A[Plugin package metadata] --> B[Package runtime build]
  B --> C[Packed dist index]
  C --> D[Release security scanner]
  D --> E[Exact reviewed finding count]
  D --> F[Unexpected finding failure]
Loading

Before merge

  • Resolve merge risk (P1) - Merging changes a fail-closed release security census: the reviewed allowance remains safe only while the generated artifact contains exactly the fixed probe that the owner code validates; exact-head checks are still running.
Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Review metrics

Metric Value Why it matters
Production versus test delta production +0, tests +1 The change alters only the release scanner’s test-side reviewed-finding contract; it adds no runtime execution behavior.

Merge-risk options

Maintainer options:

  1. Complete exact-head release validation (recommended)
    Wait for the current head’s required checks to confirm the built package still produces exactly one reviewed finding before merging.

Technical review

Best possible solution:

Keep the package-specific exact-count allowance and merge only after exact-head release checks confirm the built artifact has one reviewed probe and no other critical findings.

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

Yes. Building the publishable llama.cpp package produces dist/index.js, which this release test stages and scans; the PR records the failing baseline and passing built-artifact path.

Is this the best way to solve the issue?

Yes. A packed-path-specific count preserves rejection of absent, additional, and unknown findings, unlike broadening or disabling the scanner rule.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f4a047b87c1b.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored, test-only PR is not subject to the external-contributor proof gate; its body nevertheless records built-package before/after release-scan evidence.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded release-scan false failure affecting plugin publishing validation rather than user runtime behavior.
  • merge-risk: 🚨 security-boundary: The PR expands a reviewed exception for a critical process-execution finding, albeit with an exact package, path, and count.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored, test-only PR is not subject to the external-contributor proof gate; its body nevertheless records built-package before/after release-scan evidence.

Evidence

What I checked:

  • Changed scanner contract: The PR adds exactly one package-and-path-specific reviewed finding; the scanner derives expected optional findings only from packed paths and compares the complete observed list against that expected count. (src/plugins/npm-install-security-scan.release.test.ts:52, 6130a91106ee)
  • Runtime execution boundary: The llama.cpp owner code uses execFile with fixed --version arguments and rejects output that lacks the pinned build and commit identifiers. (extensions/llama-cpp/src/llama-server-install.ts:216, f4a047b87c1b)
  • Generated-artifact path: The provider declares index.ts as its plugin entry, and the package runtime builder converts TypeScript entries into dist outputs before packaging. (extensions/llama-cpp/package.json:17, f4a047b87c1b)
  • Current-main gap and provenance: Current main contains the reviewed-dist baseline refresh but not this llama.cpp entry; the baseline refresh is present on main and is not in a local release tag. (src/plugins/npm-install-security-scan.release.test.ts:46, 571009dd8b88)
  • Maintainer security decision and after-fix evidence: The PR discussion records approval of this exact one-finding allowance and reports a failing built-artifact scan on the baseline plus passing source-only and built-artifact scans on the PR head. (6130a91106ee)

Likely related people:

  • Jason (Json): The current reviewed publishable-dist baseline dates to this contributor’s baseline-refresh commit. (role: reviewed scanner-baseline contributor; confidence: high; commits: 571009dd8b88; files: src/plugins/npm-install-security-scan.release.test.ts)
  • Peter Steinberger: Blame attributes the fixed-argument version probe and pinned-version validation to this current llama.cpp runtime history. (role: recent llama runtime contributor; confidence: medium; commits: 23dfbee04133; files: extensions/llama-cpp/src/llama-server-install.ts)

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-08-15T15:28:46.537Z sha 40eca915c4dd60363ae5116465a623f93864132c :: needs maintainer review before merge. :: none

@fuller-stack-dev
fuller-stack-dev force-pushed the fix/plugin-security-scan-llama-dist-baseline branch from 40eca91 to 6130a91 Compare August 15, 2026 16:13
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Maintainer security decision: approved the exact one-finding allowance for the generated llama runtime probe. The command is the checksum-selected managed llama-server, invoked with fixed argv --version; acceptance still requires the pinned build and commit in its output. The optional packed-path gate, unknown-finding rejection, and exact count of one remain fail-closed. No shell execution or user-controlled argv is introduced.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 15, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 96a7b25 into openclaw:main Aug 15, 2026
113 of 115 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the fix/plugin-security-scan-llama-dist-baseline branch August 15, 2026 16:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
steipete pushed a commit that referenced this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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