Skip to content

fix: qualify reviewed hardware probes in release checks - #139046

Merged
steipete merged 1 commit into
mainfrom
codex/frv-hardware-scan-inventory
Sep 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-hardware-scan-inventory

Conversation

@steipete

@steipete steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Release qualification rejects the reviewed llama.cpp hardware probe as an unexpected critical finding. The trusted scanner on main also lacks the exact release/2026.9.2 context registration already present in the approved release preparation, so that release cannot select its inventory.

Why This Change Was Made

Record the explicitly approved @openclaw/llama-cpp-provider:dangerous-exec:src/hardware.ts finding with required count 1, and register only release/2026.9.2 against the current policy. Preserve release/2026.9.1's existing required counts separately; its frozen source predates the hardware detector. Extended-stable counts, optional packed findings, layout discrimination, unknown-context rejection, and scanner rules remain unchanged.

The detector added in #138464 uses one private execFile wrapper for fixed read-only hardware commands. Arguments are passed separately, with a 3-second timeout, 64 KiB output limit and cancellation. Direct Node runtime inspection confirmed the default shell: false; the detector is called during setup, not inference. This change records the reviewed finding without rewriting runtime code to evade detection.

User Impact

Current and 2026.9.2 release checks can qualify the reviewed hardware probe. Additional execution findings still fail the exact-count inventory check. The frozen 2026.9.1 policy remains unchanged, and unregistered release contexts continue to fail closed.

Evidence

  • Both new public scanner cases failed before the approved inventory update. A separate exact-9.2 layout regression failed before the registration was restored. The final scanner and hardware suites pass 31 tests, and the complete changed-file gate passes.
  • Rescanned the same 90 retained supplemental inert plugin packages from source/tooling 2329399cf6a9a2ca0c19d6c620b713a2768f9125, verifying every tarball hash before and after. Before: 58 findings, 50 reviewed critical findings, one unexpected hardware finding. After: 58 findings, 51 reviewed, zero unexpected, passing for both current and release/2026.9.2.
  • Every package result remains identical except that single hardware finding moving into the reviewed inventory. Frozen-9.1 reports are identical before/after apart from the declared tooling revision: they continue to reject the post-release hardware file in these newer inputs. Frozen source ad6fe23aecb9b833d68139b0ddc9f239b894d2f1 has no hardware.ts. release/2026.9.3 remains rejected.
  • The exact 9.2 context registration was inspected in approved release source b88b7fb691745c0e809732f0729f239f2b91c8b4; there is no broad release-ref fallback.

This proof covers supplemental inert checked-in npm input, not final built publication bytes. Product runtime changes: 0. Tooling: +12 net lines, principally separating the frozen map; tests: +49 net lines. Fresh managed P2 review found no actionable findings.

@clawsweeper

clawsweeper Bot commented Sep 5, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 5, 2026
@steipete
steipete marked this pull request as ready for review September 5, 2026 11:36
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 7:44 AM ET / 11:44 UTC.

ClawSweeper review

What this changes

Updates release security checks to recognize the reviewed llama.cpp hardware probe for current and 2026.9.2 candidates while preserving 2026.9.1 expectations.

Merge readiness

✅ Ready for maintainer review

Keep open: the release-qualification gap remains on current main. The patch addresses it without introducing a blocking correctness or security defect.

Priority: P2
Reviewed head: 3af3f5be252e2c31e8a0387c34d20d40999e764f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused policy repair with useful boundary regressions and scoped replay evidence; no introduced defects found.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Its supplied 90-package replay covers the changed scanner inventory and reports the expected single reclassification; supplemental inert inputs match the production owner's scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Its supplied 90-package replay covers the changed scanner inventory and reports the expected single reclassification; supplemental inert inputs match the production owner's scope.
Evidence reviewed 12 items Pinned scope and merge ownership: Raw commit inspection confirms the original head has the recorded merge-base parent. The verified test merge has the pinned base followed by the exact head; its delta contains only the scanner and scanner tests.
Current-main gap remains: Fetched main still omits the hardware finding and release/2026.9.2 registration. Comparing these files against the reviewed head yields exactly the introduced repair.
Exact inventory enforcement: The added hardware key requires one finding. Frozen 2026.9.1 retains its previous required map, extended-stable retains its separate policy, and the report builder rejects unequal expected and observed counts.
Findings None None.
Security None None.

How this fits together

Release qualification scans inert plugin packages using trusted tooling and compares critical findings against a reviewed inventory. The resulting pass or failure feeds the plugin prerelease gate.

flowchart TD
  A[Candidate plugin packages] --> B[Trusted security scanner]
  C[Release context] --> D[Reviewed inventory]
  B --> E[Exact finding comparison]
  D --> E
  E --> F[Qualification report]
  F --> G[Plugin prerelease gate]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +49, Other +12. Total +61 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 50 1 +49
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 14 2 +12
Total 2 64 3 +61

Review metrics

Metric Value Why it matters
Production versus tests Product runtime 0; release tooling +12 net; tests +49 net Tooling growth preserves frozen expectations without adding a second scanner or changing hardware execution.
Qualification policy 1 required finding added with count 1; 1 exact release context added The change remains bounded while additional findings and unknown contexts continue to fail.

Technical review

Best possible solution:

Keep qualification in the existing trusted scanner; the small policy split is justified by the frozen release contract and avoids duplicating scanning logic.

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

Yes, from source: current main rejects the hardware execution finding and cannot select release/2026.9.2. The supplied replay corroborates this; the reviewer did not execute it.

Is this the best way to solve the issue?

Yes. Updating the existing reviewed inventory fixes the owning boundary while retaining exact-count enforcement; weakening scanner rules or disguising the hardware call would be worse.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs a concrete release-qualification mismatch with limited scope and no product runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Its supplied 90-package replay covers the changed scanner inventory and reports the expected single reclassification; supplemental inert inputs match the production owner's scope.

Label justifications:

  • P2: Repairs a concrete release-qualification mismatch with limited scope and no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Its supplied 90-package replay covers the changed scanner inventory and reports the expected single reclassification; supplemental inert inputs match the production owner's scope.

Evidence

What I checked:

  • Pinned scope and merge ownership: Raw commit inspection confirms the original head has the recorded merge-base parent. The verified test merge has the pinned base followed by the exact head; its delta contains only the scanner and scanner tests. (2f55f18213aa)
  • Current-main gap remains: Fetched main still omits the hardware finding and release/2026.9.2 registration. Comparing these files against the reviewed head yields exactly the introduced repair. (scripts/lib/plugin-npm-security-scan.mts:99, e55f25b15ea6)
  • Exact inventory enforcement: The added hardware key requires one finding. Frozen 2026.9.1 retains its previous required map, extended-stable retains its separate policy, and the report builder rejects unequal expected and observed counts. (scripts/lib/plugin-npm-security-scan.mts:1089, 3af3f5be252e)
  • Behavioral regression coverage: New package-scanner cases distinguish one hardware finding from two and verify frozen 2026.9.1 still rejects both. Layout coverage accepts exactly 2026.9.2 while retaining unknown-context and mixed-layout rejection. Tests were inspected, not executed. (test/scripts/plugin-npm-security-scan.test.ts:263, 3af3f5be252e)
  • Production entrypoint and proof boundary: The prerelease workflow passes the target context through the scanner runner to the changed policy owner. Package preparation explicitly defines these artifacts as supplemental inert inputs, so final publication-byte proof is outside this scanner's existing contract. (scripts/plugin-npm-security-prepare.mts:161, 3af3f5be252e)
  • Reviewed probe and dependency signal: The inventoried file imports Node child_process and contains one private execFile call with separate arguments, a 3-second timeout, a 64 KiB buffer limit, and cancellation. Its callers select fixed hardware-query commands; setup.ts:375 invokes detection during setup. (extensions/llama-cpp/src/hardware.ts:42, 3af3f5be252e)

Likely related people:

  • Peter Steinberger: Raw commit 9b95e87 adds extensions/llama-cpp/src/hardware.ts:42 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9b95e87c4b2b; files: extensions/llama-cpp/src/hardware.ts)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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.

@steipete
steipete merged commit 9010252 into main Sep 5, 2026
179 of 180 checks passed
@steipete
steipete deleted the codex/frv-hardware-scan-inventory branch September 5, 2026 11:52
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 5, 2026
Backport the reviewed hardware scan inventory and exact release/2026.9.2
registration from #139046, preserving the frozen 2026.9.1 policy.

Backport Undici 8.10.2/7.29.1, the approved version-specific overrides and
cooldown exceptions, paired NO_PROXY normalization, and locked release
toolchain digests from #139056.

Validated 31 scanner/hardware tests, 205 proxy/guard/dispatcher tests, frozen
dependency installation, full build and SDK/UI budgets, and independent
P0-P2 review. Both patches match their canonical main landings.

(cherry picked from commit 9010252)
(cherry picked from commit d7a1753)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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