Skip to content

Pin llamadart-native v1.1.0-4 - #2481

Merged
leehack merged 3 commits into
mainfrom
lane-native-v1-1-0-4
Nov 30, 2026
Merged

leehack merged 3 commits into
mainfrom
lane-native-v1-1-0-4

Conversation

@leehack

@leehack leehack commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Pin the default llama.cpp bundles and Apple SwiftPM XCFramework to llamadart-native v1.1.0-4. The only change from v1.1.0-3 is the file SHA-256 export (llama_dart_file_sha256_api_version, llama_dart_file_sha256) from llamadart-native#258. Same upstream llama.cpp v1.1.0@171527522610996f5f0acf12334e185156ca8f44.
  • Regenerate bindings on Linux (Dart 3.13.1 container). The diff is additive: the two exports and llama_dart_file_sha256_status. The Android download fast path from #2470 now resolves against the pinned runtime.
  • Bind the Android qualification tools and default AOT consumer qualification to v1.1.0-4; keep the Web bridge pin aligned (v0.1.96, same upstream commit).
  • release/0.23.x is untouched. Companion versions and core floors are left to next-minor release prep.

Changelog

  • [core] Update the default llama.cpp native runtime to v1.1.0-4, which provides the native file SHA-256 export used for Android model verification.
  • [packages/llamadart_llama_cpp_flutter] Update the Apple SwiftPM XCFramework to v1.1.0-4.

Production-readiness scope

  • User-facing scope: Native GGUF consumers resolve the new runtime; Android model downloads can hash with the native wrapper (API version 1) instead of the portable path.
  • Supported platforms/paths: Existing llama.cpp native-assets targets and the matching Flutter Apple SwiftPM companion.
  • Unsupported or intentionally unavailable paths: A runtime without the exports (earlier tags, custom overrides) keeps portable hashing. The hook still rejects incompatible Apple companion pins with the existing upgrade diagnostic.
  • Out of scope / follow-ups: Package versions and dependency floors are handled during next-minor release prep. --release-prep verification reports the expected pending companion bump.

Completeness checklist

  • Declared scope is fully implemented, or explicitly reduced above.
  • Unsupported platform/option combinations fail loudly with actionable diagnostics or are clearly documented as unavailable.
  • Public API docs, README/website docs, examples, support matrices, and the PR changelog section are updated where relevant.
  • Regression coverage covers the original issue plus key negative/version-skew paths where relevant. The native symbol suite checks declarations, exports, API version and hashing; -3 is the missing-export control.
  • Validation coverage registry: N/A, no public capability change.
  • Security/privacy review completed: pin metadata and generated code only.
  • Follow-up work tracked: None beyond release prep.

PR type guidance

Native artifact repin. The owner release adds two exports; behavior is exercised by the native symbol suite and a host smoke.

Test Plan

  • dart run tool/prepare_workspace.dart
  • python3 tool/ci/check_format.py, dart analyze, platform boundaries, git diff --check
  • dart test -p vm -j 1 --exclude-tags local-only via the coverage row
  • dart test -p chrome --exclude-tags local-only
  • coverage-lib
  • Native sync Python suites, native release digests, bridge tag with --verify-manifest, release-doc verifier, docs build and links, validation package tests

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze Format, analysis, import boundaries Flutter 3.47.1 / Dart 3.13.1 PASS Root checks complete
native-release-digests Pin tables vs published release v1.1.0-4, 12 bundles PASS Match SHA256SUMS; also checked against the evidence record
native-sync-python-suites Pin, header archive, binding sync Python 3.15 PASS 160 + 14 + 23 + 5 tests; 70 AOT qualification tests; 3 Android prepare tests
webgpu-bridge-tag-consistency Bridge tag vs native pin, immutable manifest Bridge v0.1.96 PASS Verified with --verify-manifest
release-doc-version-consistency Core and companion docs Current checkout PASS --release-prep reports the expected pending companion bump, as for v1.1.0-3
docs-site Site build and links Jaspr PASS Build and link validation passed
Android qualification pins Archive and headers identity packages/llamadart_validation PASS 655 tests passed
Apple XCFramework Checksum, slice exports macOS, iOS, iOS simulator PASS swift package compute-checksum equals the pin; every slice exports both new symbols and grammar_top_k
Host smoke Real v1.1.0-4 macOS arm64 dylib through modelFileSha256 macOS arm64 PASS API version 1, native status 0, digests equal shasum -a 256 for 0 B, 3 B, 1 MiB+17 B and 96 MiB+5 B. The v1.1.0-3 dylib has no exports and falls back.
root-vm / coverage-lib Full VM suite and line coverage macOS arm64 PASS 16,751 passed, 136 skipped, 1 failed: the new symbol test's own declaration check, fixed in 1d9be1b3d0 and passing alone. Library line coverage 93.88% (38,224/40,717).
root-chrome Browser-compatible suite Chrome PASS 5,423 tests passed, one skipped.
Apple SwiftPM app builds example/chat_app release builds with the companion macOS arm64/x86_64, iOS arm64 (no codesign) PASS Packaged llama.framework exports both new symbols in every slice built.
high-risk-exact-head-independent-qa Independent blocking review Exact head and base PASS auditor audit clean at 33def83 (llamadart-evidence/pr-2481/audit.md)

Review Notes

  • Independent review status: accepted: independent audit of exact head 33def83 against main 377d97d found no blocking issues.
  • CI status / head SHA: green at 33def83d73 (one macOS worker_test quarantine timeout passed on rerun) (merged main 377d97d2fa into 1d9be1b3d0; evidence above ran at 1d9be1b3d0).

High-risk regression review

  • Classification: High-risk (artifactConsumer, backendRuntime, regressionPolicy)
  • Implementation task: Default native artifact repin and generated FFI declarations.
  • Independent blocking QA task: Completed by the independent audit (clean).
  • Exact head / current base: Head 33def83d73, base main 377d97d2fa.
  • Production-branch deletion, bypass, or miswire proof: Audit confirmed; the symbol test fails without the generated declarations or exports.
  • Affected-family real-model/artifact evidence: Published v1.1.0-4 binaries and XCFramework (release run); host SHA-256 smoke above. No model generation: only the hashing exports changed.
  • Explicit unavailable-family or other N/A evidence: No Android device run; the Android path is covered by the existing injected-binding tests and the real-library host smoke.
  • Known PR-caused P1 regressions: 0 (implementation)
  • Unresolved review threads: 0 at opening.

Pin the default llama.cpp bundles and Apple SwiftPM XCFramework to
llamadart-native v1.1.0-4, which adds the file SHA-256 exports.
Regenerate bindings and bind the Android qualification tools to the
new archive and headers.
@leehack
leehack marked this pull request as ready for review November 30, 2026 23:54
@leehack
leehack merged commit 5f41210 into main Nov 30, 2026
91 of 93 checks passed
@leehack
leehack deleted the lane-native-v1-1-0-4 branch November 30, 2026 23:54
@github-actions

Copy link
Copy Markdown
Contributor

Chat app preview removed for leehack/llamadart-chat-pr-2481.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant