Skip to content

build(local-ai): publish signed llama.cpp runtime bundles - #1603

Closed
RomneyDa wants to merge 1 commit into
mainfrom
openclaw/debug-c-runtime-download-issue
Closed

RomneyDa wants to merge 1 commit into
mainfrom
openclaw/debug-c-runtime-download-issue

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a main-only Azure Artifact Signing workflow that publishes minimal OpenClaw-signed llama.cpp b11026 runtime bundles for x64 and arm64
  • pin and verify upstream archive, commit, license, file inventory, and every pre-sign byte before the signing environment is entered
  • verify signed payload identity and unsigned dependency hashes before publishing a durable GitHub release that does not replace the app's Latest release
  • document the required two-stage rollout: publish signed bundles first, then update the Local AI catalog with the generated archive hashes

This follows up #1596 and addresses the remaining antivirus-reputation failure mode shown in ggml-org/llama.cpp#26739. The Gateway-side managed llama.cpp fix in openclaw/openclaw#163093 is a separate runtime path, so no Gateway change is needed for this publisher.

Architecture

  • Old owner: the Companion Local AI catalog consumed upstream llama.cpp archives directly.
  • New owner: this repository owns a reviewed, immutable publisher for the signed runtime dependency.
  • Preserved invariant: the catalog will continue to require exact archive size and SHA-256 pins. Signing does not weaken source or payload integrity checks.
  • Rollout boundary: a follow-up catalog PR is required after this workflow runs from main, because the final signed archive hashes cannot exist before official signing.

Required proof pools

  • windows-11-sac-on: required for the follow-up catalog PR. Not verified / blocked here because the official signed bundles can only be produced by the protected, main-only signing environment after this publisher merges.

Validation

  • pwsh scripts/test-signed-llama-runtime-release.ps1
  • pwsh scripts/test-ci-workflow-contract.ps1
  • pwsh scripts/test-ci-change-classifier.ps1
  • real upstream b11026 reduction and authorization for x64 and arm64
    • x64 source archive: 150,102,391 bytes, SHA-256 6799f0962d066c54aee3773f0e5efa0076e46418695c0f4f6d24a38e7007dfb1, 25 retained runtime files
    • arm64 source archive: 142,993,717 bytes, SHA-256 d4a31d05b4fe997872020d81e8482e7712c7c254ec9c7ccdb9597ae2a31e6728, 12 retained runtime files
  • final Codex AutoReview: clean, no accepted/actionable findings
  • Parallels Windows 11 ARM64, exact head 2af3c1e9934fcc15add2646ca5f6c398d6f4afb3
    • ./build.ps1: passed
    • Shared tests: 4,221 passed, 36 skipped, 0 failed
    • Tray tests: 3,889 passed, 0 skipped, 0 failed
    • prerequisite note: the snapshot's no-RID ARM64 test host did not stage its installed VC++ 14.44 runtime app-locally. The initial native-load failure also reproduced on current origin/main. Staging the guest's official installed ARM64 msvcp140*, vcruntime140*, and concrt140 DLLs into the isolated test output resolved the prerequisite; the failed probe and the complete required sequence were then rerun successfully.

Real behavior proof

  • The reducer accepted both exact upstream archives and retained only the llama server dependency closure plus the pinned upstream license.
  • The verifier rejected a tampered llama-server-impl.dll fixture.
  • Workflow contract tests require immutable action SHAs, pre-login byte verification, recursive signing, protected release-signing environment use, exact release-tag ownership, and --latest=false publication.
  • Official Authenticode and Smart App Control reputation proof is intentionally deferred to the signed release and catalog follow-up. Not verified / blocked until the protected workflow runs on merged main.

Follow-up

After merge, dispatch signed-llama-runtime-release.yml, record the published x64 and arm64 sizes and SHA-256 hashes, then update the Local AI catalog to consume those signed assets and collect windows-11-sac-on proof.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@RomneyDa RomneyDa added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement 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 Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 7:16 AM ET / 11:16 UTC (Revision 2).

ClawSweeper review

What this changes

Adds a protected workflow that verifies, reduces, signs, and publishes pinned x64 and ARM64 llama.cpp runtime bundles for later adoption by Companion’s Local AI catalog.

Merge readiness

✅ Ready for maintainer review

The prior validation blocker is resolved by the reported exact-head Windows reruns. No actionable introduced defect was found, and current main does not contain this publisher.

Priority: P2
Reviewed head: 2af3c1e9934fcc15add2646ca5f6c398d6f4afb3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused publisher with appropriate integrity safeguards and reported successful exact-head validation; the previous blocker is resolved.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Its preparation script reportedly reduced both real upstream archives; official signing and reputation coverage are explicitly deferred to protected publication and catalog adoption. No stored-state contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Its preparation script reportedly reduced both real upstream archives; official signing and reputation coverage are explicitly deferred to protected publication and catalog adoption. No stored-state contract changes.
Evidence reviewed 9 items Introduced scope: Read all eight introduced file patches against the pinned merge base. The branch adds publishing automation without changing catalog consumption or installed runtime state.
Prior validation request resolved: The captured body and #1603 (comment) report successful build, Shared 4,221 passed / 36 skipped, and Tray 3,889 passed after correcting the guest VC-runtime prerequisite and rerunning the failed probe at the unchanged reviewed head. These are contributor-reported results; this read-only review did not execute tests.
Signing authority safeguards: The workflow admits only main in the target repository, uses the release-signing environment, rechecks authorized bytes before Azure login, excludes libomp.dll from signing, and verifies signatures before publication. The verifier also preserves unsigned dependency hashes.
Findings None None.
Security None None.

How this fits together

Companion’s Local AI catalog selects integrity-pinned native llama.cpp downloads. This publisher turns reviewed upstream archives into signed release assets whose generated hashes can feed a separate catalog update.

flowchart TD
  A[Pinned upstream archives] --> B[Verify size and hashes]
  B --> C[Reduce runtime files]
  C --> D[Reverify authorized bytes]
  D --> E[Protected signing job]
  E --> F[Verify signatures and dependencies]
  F --> G[Publish release assets]
  G --> H[Future catalog update]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Added lines by purpose production scripts +330, contract tests +135, workflow/config +265, docs +15 The growth implements a separately authorized signing publisher with dedicated contract coverage and rollout documentation.

Technical review

Best possible solution:

Keep publication separate from consumption, then adopt verified signed archive pins and collect Smart App Control proof in the catalog follow-up.

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

Not applicable to this publishing capability; the body reports real reduction of both pinned upstream archives and successful exact-head Windows validation.

Is this the best way to solve the issue?

Yes. Separating official signing from catalog adoption preserves exact archive integrity pins without guessing hashes before publication.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9ab23fcd2d46.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded Local AI release improvement with catalog adoption deliberately left to a separate 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 MEMBER-authored PR is exempt from ordinary contributor proof. Its preparation script reportedly reduced both real upstream archives; official signing and reputation coverage are explicitly deferred to protected publication and catalog adoption. No stored-state contract changes.

Evidence

What I checked:

  • Introduced scope: Read all eight introduced file patches against the pinned merge base. The branch adds publishing automation without changing catalog consumption or installed runtime state. (.github/workflows/signed-llama-runtime-release.yml:1, 2af3c1e9934f)
  • Prior validation request resolved: The captured body and build(local-ai): publish signed llama.cpp runtime bundles #1603 (comment) report successful build, Shared 4,221 passed / 36 skipped, and Tray 3,889 passed after correcting the guest VC-runtime prerequisite and rerunning the failed probe at the unchanged reviewed head. These are contributor-reported results; this read-only review did not execute tests. (2af3c1e9934f)
  • Signing authority safeguards: The workflow admits only main in the target repository, uses the release-signing environment, rechecks authorized bytes before Azure login, excludes libomp.dll from signing, and verifies signatures before publication. The verifier also preserves unsigned dependency hashes. (.github/workflows/signed-llama-runtime-release.yml:73, 2af3c1e9934f)
  • Signing dependency contract: The introduced workflow directly executes this pinned action. Its action metadata supports extension filtering, recursive folder traversal, and traversal depth, matching the workflow’s signing inputs. (action.yml:50, c7ab2a863ab5)
  • Current-main necessity: Current main still selects ggml-org/llama.cpp b11026 archives with the same size and SHA-256 pins. The publisher workflow, release manifest, and preparation script are absent from its tree. (src/OpenClaw.Shared/Inference/Catalog/LlamaRuntimeCatalog.cs:60, 9ab23fcd2d46)
  • Explicit staged rollout: The maintainer-authored body explicitly defers official signing and Smart App Control observations until protected publication on main, followed by a separately pinned catalog update. It reports real upstream reduction for both architectures; this does not claim signed-runtime launch or reputation coverage. (docs/RELEASING.md:673, 2af3c1e9934f)

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • joelagnel: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-02T10:58:29.793Z sha 2af3c1e :: needs changes before merge. :: none

@RomneyDa

RomneyDa commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Required exact-head Parallels validation is now complete: build passed, Shared 4,221 passed / 36 skipped / 0 failed, and Tray 3,889 passed / 0 skipped / 0 failed. The initial ARM64 native-load failure reproduced on main and was resolved by staging the guests installed official VC++ 14.44 ARM64 runtime into the isolated test output before rerunning the failed probe and full required sequence.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. 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