Skip to content

Prepare genkit_llamadart 3.13.0 release - #2346

Merged
leehack merged 1 commit into
mainfrom
genkit313-release-main
Nov 27, 2026
Merged

leehack merged 1 commit into
mainfrom
genkit313-release-main

Conversation

@leehack

@leehack leehack commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

Changelog

  • [packages/genkit_llamadart] Support llamadart 0.22.x alongside 0.21.x.
  • [packages/genkit_llamadart] Forward image tool results to the next model turn on qualified native llama.cpp vision templates.

Production-readiness scope

Completeness checklist

  • Two-file prep scope verified against the prerequisite.
  • Package changelog records the compatibility and image tool-result changes.
  • Hosted compatibility exercised at each core version. Runtime regressions and public capability evidence were covered by Forward image tool results through the Genkit adapter #2338.
  • Checked the diff for sensitive output or data handling. N/A for new API, examples, runtime code, and capability registry entries.

PR type guidance

  • Independent Genkit release prep. The package manifest and changelog are the only changed files.

Test Plan

  • dart run tool/prepare_workspace.dart on the clean worktree
  • Package dart analyze --fatal-infos and dart test -x real-model with hosted llamadart 0.21.0 and 0.22.0, using the repository fixture layout
  • Package docs and checker tests
  • Root release-docs verifier in normal and --release-prep modes
  • Root Genkit floor, release-routing and staging tests
  • Standalone dart pub publish --dry-run with hosted llamadart 0.22.0
  • N/A for full root VM, Chrome, coverage and new model qualification. The prep changes release metadata and dependency constraints. See Forward image tool results through the Genkit adapter #2338 for the feature’s runtime verification.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
genkit-contracts Hosted 0.21.0 and 0.22.0 dependencies macOS / model-free Pass 508 tests per version, fatal-info analysis, exact hosted lockfile and package config on each version
genkit-release Standalone publish dry-run, release docs, routing and staging macOS / model-free Pass 0 publish dry-run warnings, two release-doc verifier modes and 13 root tooling tests
genkit-native-cpu Image tool-result runtime N/A for release prep N/A Feature evidence is recorded in #2338

Review Notes

  • Independent review — Pending at the draft head.
  • CI status / head SHA — Head 55d36534e14b0e586dee2f1045e85e0bc1622be5 targets main. The cherry-pick has the same Git tree as validated head 207ef23cf1ac90e7be812121afb311bd11d71c4d. The local validation above applies to those identical files. Hosted checks and the independent audit are pending at the new head.

High-risk regression review

  • Classification — high-risk, artifactConsumer
  • Implementation task — Genkit 3.13.0 release prep under 0.23.0 release plan #2337
  • Independent blocking QA task — Pending coordinator handoff
  • Exact head / current base — 55d36534e14b0e586dee2f1045e85e0bc1622be5 / 90c6ed0b3433cf4b0ffaa87fe1015b03b6907739
  • Production-branch deletion, bypass, or miswire proof — Pending independent QA. The prerequisite demonstrates the floor checks reject incorrect and malformed constraints.
  • Affected-family real-model/artifact evidence — Hosted core 0.21.0 and 0.22.0 used for the package contract suite. The source feature’s qualified template evidence is in Forward image tool results through the Genkit adapter #2338.
  • Explicit unavailable-family or other N/A evidence — The release prep only adjusts package metadata and the core dependency range.
  • Known PR-caused P1 regressions — 0 found in local validation. Independent audit pending.
  • Unresolved review threads — Pending hosted verification.

@leehack leehack mentioned this pull request Nov 26, 2026
10 tasks done
@leehack
leehack marked this pull request as ready for review November 27, 2026 00:07
@leehack
leehack merged commit 505a1f6 into main Nov 27, 2026
53 of 73 checks passed
@leehack
leehack deleted the genkit313-release-main branch November 27, 2026 00:10
@github-actions

Copy link
Copy Markdown
Contributor

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

@leehack leehack mentioned this pull request Nov 27, 2026
8 of 11 tasks
leehack added a commit that referenced this pull request Nov 28, 2026
## Summary

- Prepare core `llamadart` and all three Apple companions at 0.23.0
(llama.cpp v1.1.0 release). Each companion requires `llamadart:
'>=0.23.0 <0.24.0'`. SwiftPM pins: `llamadart-native@v1.1.0-1` (new;
resolves the pending llama.cpp companion bump),
`litert-lm-native@v0.20.0` and `stable-diffusion-native@v0.4.0-1`
(unchanged).
- Generate both core changelogs from `v0.22.0..12f15a6` with
`collect_pr_changelog.dart` (7 compacted bullets; the docs page keeps
0.23.x and 0.22.x and drops 0.21.x). `genkit_llamadart` is not part of
this release.
- `llamaCppAppleCompanionVersion` moves to `0.23.0`; `MIGRATION.md`
gains `0.22.x` -> `0.23.0` (native v1.1.0-1, bridge v0.1.96, `v1.0.0`
Apple companions rejected, ROCm >= 6.3, Android Qualcomm Vulkan
refusal).
- Align install snippets and regenerate the three path locks.
`.flutter-version` untouched; the docs version cut is left to
`docs_version_cut.yml`.
- Plan: #2337. Publication needs the squash-merge approval; this PR
stays a draft until an independent `auditor-deep` audit passes.

## Changelog

N/A: Release prep promotes the collected changes into the 0.23.0 release
notes.

## Production-readiness scope
- **User-facing scope:** Release and install matching core and Apple
companion versions at 0.23.0.
- **Supported platforms/paths:** Existing core native and Web paths and
the three Apple SwiftPM companions.
- **Unsupported or intentionally unavailable paths:** Pub rejects
cross-minor core and companion pairings; core 0.23.0 rejects `v1.0.0`
llama.cpp Apple builds with `LlamaUnsupportedException` (see
`MIGRATION.md`). `genkit_llamadart` 3.13.0 constrains `llamadart:
'>=0.21.0 <0.23.0'` and does not admit core 0.23.0 until its own
release.
- **Out of scope / follow-ups:** Genkit constraint release (independent
package); #2378, #2379, #2295 and the other open items in #2337.

## Completeness checklist
- [x] Release metadata, install snippets, path locks and the pinned
companion version agree.
- [x] Cross-minor pairing is excluded by every companion constraint.
- [x] README, website docs, migration guide and changelogs cover this
release; public API, examples and support matrices are N/A for the prep
diff.
- [x] Release tooling tests and both verifier modes passed.
- [x] Capability registry changes are N/A: the prep adds no capability.
- [x] Diff and ledger reviewed for credentials and private path
disclosure.
- [x] Independent audit and publication gates are listed below.

## PR type guidance
Release preparation. Feature, bugfix and docs-only categories are N/A
for the version, metadata and generated notes diff.

## Test Plan
- [x] `dart run tool/prepare_workspace.dart`, plus `dart pub get` in
`packages/llamadart_validation` and `website/examples/observability`.
- [x] `python3 tool/ci/check_format.py`, `dart analyze`, `dart run
tool/testing/check_platform_boundaries.dart` (Flutter 3.47.1).
- [ ] Full VM and Chrome suites pending hosted CI; local
`test/unit/tooling/` plus `test/unit/hook/` passed (3,501 passed, 11
skipped) at the prior head; this head changes docs and changelog wording
only.
- [x] `coverage-lib` is N/A: the prep diff changes no `lib/` behavior
beyond the companion-version constant.
- [x] `dart run tool/testing/verify_release_docs_versions.dart` and
`--release-prep` (both clean); `check_webgpu_bridge_tag.dart
--release-prep v0.22.0`; `check_released_changelog_sections.dart
--prep`; `collect_pr_changelog.dart --verify-input`.
- [x] `python3 tool/release/check_core_archive.py`,
`./tool/docs/build_site.sh`, `companion_pub_preflight.dart` (all three
companions exist on pub.dev, no changed published version) and `flutter
pub publish --dry-run` for each companion (0 warnings; the 0.23.0
versions are unpublished).
- [x] Minor-prep patch parity (`patch_branch.dart parity --main
12f15a6 --require-closed-forward-ports`) passed in a clean clone.

## Matrix Evidence
| Matrix row | Scope covered | Platform / model / backend | Result |
Evidence / notes |
| --- | --- | --- | --- | --- |
| `release-doc-version-consistency` | Install snippets, companion
versions, SwiftPM pins | Repository | PASS | Both verifier modes passed.
|
| `webgpu-bridge-tag-consistency` | Bridge tag pins | Repository | PASS
| 16 live pins agree on `v0.1.96`. |
| `docs-site` | Website build and links | Jaspr docs | PASS |
`build_site.sh`. |
| `static-format-analyze` | Format, analyzer, boundaries | Repository |
PASS | Pinned Flutter 3.47.1. |
| `root-vm`, `root-chrome` | Full suites | Hosted CI | Pending | Prep
diff changes only the companion-version constant under `lib/`. |
| `high-risk-exact-head-independent-qa` | Exact-head release review |
Core and Apple companions | Pending | Independent `auditor-deep`
required before ready. |
| `release-metadata-verification` | Bounded core-patch route | N/A | N/A
| Core minor with three companion minor bumps. |

## Review Notes
- Independent review status: auditor-deep accepted head 18af35b; its
three wording findings are fixed at this head and need a delta re-check.
- CI status / head SHA: pending /
5aa54fe.

## High-risk regression review
- **Classification:** High-risk (`artifactConsumer`).
- **Implementation task:** 0.23.0 core and Apple companion release prep.
- **Independent blocking QA task:** Pending.
- **Exact head / current base:**
5aa54fe /
`12f15a644034a36b630ab0089c5d1fa82feb1cb9`.
- **Production-branch deletion, bypass, or miswire proof:** Both
verifier modes cover companion pairing, SwiftPM pins and version skew;
`native_release_pins_test.dart` pins `llamaCppAppleCompanionVersion` to
the first companion release naming `v1.1.0-1`. Independent mutation
review pending.
- **Affected-family real-model/artifact evidence:** Bridge `v0.1.96`
consistency verified; runtime changes landed through their own audited
PRs.
- **Explicit unavailable-family or other N/A evidence:** The prep diff
changes version metadata and docs only.
- **Known PR-caused P1 regressions:** 0 known, audit pending.
- **Unresolved review threads:** 0 when opened.

## After merge (release automation)

Squash-merge only, with GitHub's default message.
`release_on_prep_merge.yml` (this branch is `release/prep-0.23.0`) then:

- [ ] Re-verifies the receipt from the landed squash message and runs
`verify_release_docs_versions.dart --release-prep` and
`companion_pub_preflight.dart` before any tag.
- [ ] Pushes core tag `v0.23.0`; `publish_pubdev.yml` publishes
`llamadart 0.23.0` and creates the GitHub Release.
- [ ] Waits for `llamadart 0.23.0` on pub.dev, then pushes
`llamadart_llama_cpp_flutter-v0.23.0`,
`llamadart_litert_lm_flutter-v0.23.0` and
`llamadart_stable_diffusion_flutter-v0.23.0`;
`publish_companion_pubdev.yml` publishes each (all three are new
versions that pin `>=0.23.0 <0.24.0`).
- [ ] `docs_version_cut.yml` snapshots the 0.23.0 docs (it no longer
reopens `## Unreleased`); `docs_pages.yml` deploys; `ci.yml` and the
Laya Tetris workflow redeploy the hosted demos.
- [ ] Manual afterwards: pub.dev pages, GitHub Release marked latest,
version selector, both demo SHAs, smoke checks. Genkit is not released.

## Release notes input

Previous-tag: v0.22.0@cfacd46b813875747ffa5519416a626c9c576e03
Through: 12f15a6
Input-SHA256:
fc95ad231b23f84b7876aec594dea3e66f6962f2d13801dc0429bc9324d1c98e

## Release notes review
- e6752db Merged into the single DRY
sampler bullet with its follow-up validation and the sampler-setup
failure note.
- 50ee16f Reworded to name the explicit
`ComputeDevice.gpu` `LlamaUnsupportedException` from the PR body.
- 2c7bf3c Merged into the DRY sampler
bullet as the `dryAllowedLength` window rejection.
- 0078f82 Merged into the DRY sampler
bullet as the token allow-list rejection.
- 8b36668 Dropped as a relaxation of
the same DRY guard, folded into the DRY sampler bullet's rejection
wording.
- ea74603 Merged the llama.cpp v1.1.0
adoption and ROCm note into one bullet; the bridge v0.1.96 item became
the bridge alignment bullet, extended with its user-visible Web load
effects from the v0.1.96 bridge notes.
- e0e4bef Folded the v1.1.0-1 wrapper
rebuild into the single llamadart-native adoption bullet and the
file-descriptor and DRY bullets.
- bdb8c26 Merged into the DRY sampler
bullet as the `LlamaInferenceException` setup failure.

## Release notes ledger

<details>
<summary>Collector ledger</summary>

```text
From: v0.22.0@cfacd46b813875747ffa5519416a626c9c576e03
Through: 12f15a6
{"sha":"4809d67c4852533638dd9e5cdfc4a4c571d26375","pr":null,"source":"git","disposition":"generated-docs"}
{"sha":"de12abb6d1e8c2e0daf56ef41a9cbf7e490e31cd","pr":2338,"source":"git","disposition":"included","sectionSha256":"eb3aab5f83806eca9aae007eb7c54790616f8d3ad2d0e7a29a9a039f605e319b","bullets":[{"target":"packages/genkit_llamadart","text":"Forward image `MediaPart` values in Genkit tool results to the next model turn on native llama.cpp vision models with a qualified template, and reject audio and unsupported runtimes with `UNIMPLEMENTED`."}]}
{"sha":"e6752db1fb289a045bc59c86d58d2f6367608535","pr":2339,"source":"git","disposition":"included","sectionSha256":"ee8fcecebb812ad604284b862bf54d7203b84d2e5b8634b7d8ee72b3322514a8","bullets":[{"target":"core","text":"Add `GenerationParams.dryMultiplier`, `dryBase`, `dryAllowedLength`, `dryPenaltyLastN` and `drySequenceBreakers` (DRY repetition penalty) for native llama.cpp, reported by `LlamaEngineCapabilities.samplerControls`; WebGPU and LiteRT-LM reject them."}]}
{"sha":"90c6ed0b3433cf4b0ffaa87fe1015b03b6907739","pr":2344,"source":"git","disposition":"n/a","sectionSha256":"547c97553bb2d4b394d95891c5da18702c088825d4470ae2f4e0ce817649470e","reason":"Dependency validation and documentation maintenance."}
{"sha":"505a1f6928e9c27176ed24bf15dabc7aa536eea3","pr":2346,"source":"api","disposition":"included","sectionSha256":"60bcd9fae6b1a76739f607aa7039157a6096772ded9197c8eaa61752fa00fd20","bullets":[{"target":"packages/genkit_llamadart","text":"Support llamadart 0.22.x alongside 0.21.x."},{"target":"packages/genkit_llamadart","text":"Forward image tool results to the next model turn on qualified native llama.cpp vision templates."}]}
{"sha":"50ee16f4aef300a7bfd2f933f8f56e4efc069b22","pr":2354,"source":"git","disposition":"included","sectionSha256":"9918ad4e5a7c62b6fd73ec3d712a8c49f4d585e626edb5db49a1875c4eb995fd","bullets":[{"target":"core","text":"Block llama.cpp GPU loads on Android when a Qualcomm proprietary Vulkan device is registered. Automatic GPU attempts fall back to CPU and log a warning."}]}
{"sha":"2c7bf3c5fa4e357fc2e14222829b14a0f26c83a7","pr":2356,"source":"git","disposition":"included","sectionSha256":"05e657b2fba9caa081b8c65d9a3eb052cb7b308783e32a8a8526b28a9af3f089","bullets":[{"target":"core","text":"Reject `dryAllowedLength` at or above the DRY window after capping it at the actual llama.cpp context size."}]}
{"sha":"0078f82d0f8e416d3465ff49f0a39c8f9a773ed6","pr":2355,"source":"git","disposition":"included","sectionSha256":"3d07f25c402fe6f698874a6d4c4e175b0c1ff3f899694d1508ab2e146b87a40a","bullets":[{"target":"core","text":"Native llama.cpp rejects DRY settings that can exhaust a token allow-list with `LlamaArgumentException`."}]}
{"sha":"ee7511b7bfd2ecec400f3527e3d1b162ce147431","pr":2359,"source":"git","disposition":"n/a","sectionSha256":"484e8798f710859cf8eb73e01f31b06ac0a2bc9e031264b5767c4c374a902961","reason":"Test coverage only."}
{"sha":"aa6ef36390c0248a097ff98682ffe2f7220ad6a0","pr":2365,"source":"git","disposition":"n/a","sectionSha256":"06de6a95fafa37cda9ffcc55a20218ad0c15d76fcd9e34796bcce16765647005","reason":"Maintainer release tooling tests only."}
{"sha":"8b36668b1072af8bebacfe6a76951279f4e6a389","pr":2361,"source":"git","disposition":"included","sectionSha256":"08af7c5efcf2c10e3341e05ca9cb5583c28ca085abfc32261e764438670a2c69","bullets":[{"target":"core","text":"Allow longer native llama.cpp DRY windows with sparse token bans while retaining overflow protection."}]}
{"sha":"b70a33d6fd263baa1e09bb3dd15630a4255a267c","pr":2369,"source":"git","disposition":"n/a","sectionSha256":"4771b2258b514a18f17202aacac6561296104bb674da6b4bb330a972f9be8dfa","reason":"Changes the maintainer release runbook."}
{"sha":"dc01c4090973a7cb20d8a398fbb5afd59c9a4716","pr":2364,"source":"git","disposition":"included","sectionSha256":"e9e5729ec3b7762e4aef38564f1d47f07925c5afabb82f303bdf6bf138d78a2f","bullets":[{"target":"core","text":"Show backend-reported per-request token counts and timings in the example chat app."}]}
{"sha":"e73992069ccab4a7d098bf7ae7fac845b9096be3","pr":2370,"source":"git","disposition":"n/a","sectionSha256":"79073e6e0b27080d57889629d210ec521b59d3cb668250ce6e6873e6c0af004f","reason":"Documentation only."}
{"sha":"2ff20f0b713ac632dfcfd8fc779f984bf1554eef","pr":2368,"source":"git","disposition":"n/a","sectionSha256":"8d6e1adc8e0ff94443d0f53e5b1c25a9f7ec6232115afc47855a55b73fc1e339","reason":"Changes regression coverage for maintainer release tooling."}
{"sha":"07583fce048661a5b5a287e2db1fc879f2e3e983","pr":2362,"source":"git","disposition":"n/a","sectionSha256":"718fef6902fab3cb6485df631a568ad88c9fa2c11ea97d0ca03002507dd2d620","reason":"Changes maintainer release verification."}
{"sha":"253c62484587ff45c7cb30d2e0c128cb5aae842b","pr":2363,"source":"git","disposition":"included","sectionSha256":"2ef3f74777f68aa751aa52d5492dab94ca421dbeaf4a4265cc1eba44e50e367b","bullets":[{"target":"core","text":"Unsupported sampler errors now name the tuning fields to reset after disabling XTC, dynamic temperature, or Mirostat."}]}
{"sha":"fc037053e2cbbdde1ff67bf9debc4783718aada1","pr":2367,"source":"git","disposition":"n/a","sectionSha256":"1fbf7f7d659bde57626cf46fffbfc20e8b6a132725c21b1e4f6569d8886c7bf6","reason":"Maintainer release tooling change."}
{"sha":"51f8d5efab082114ad5cbb157acec35c21a8aaa0","pr":2366,"source":"git","disposition":"n/a","sectionSha256":"1fbf7f7d659bde57626cf46fffbfc20e8b6a132725c21b1e4f6569d8886c7bf6","reason":"Maintainer release tooling change."}
{"sha":"ea746039cf6ab90a076160eddb377abaa6da9725","pr":2372,"source":"git","disposition":"included","sectionSha256":"670f691272639e1ae4fa7f47fcdadd5b033c285cf16f90885d8ebd2956ec20b0","bullets":[{"target":"core","text":"Adopt `llamadart-native` v1.1.0 (llama.cpp v1.1.0). Native runtime overrides must now be built from llama.cpp v1.1.0; v1.0.0 builds throw `LlamaUnsupportedException`. On Linux x64, the HIP backend needs ROCm 6.3 or newer."},{"target":"core","text":"Align the default WebGPU bridge assets to `v0.1.96`, which embeds llama.cpp v1.1.0."},{"target":"packages/llamadart_llama_cpp_flutter","text":"Pin Apple SwiftPM to `leehack/llamadart-native@v1.1.0`."}]}
{"sha":"6c1dccfbedb70e51dce641c864fc832dd99815bd","pr":2373,"source":"git","disposition":"n/a","sectionSha256":"9fdd590174651023484d7472067ac777ce43cfa986f942f8c5a9665aa1a346ea","reason":"Tests and maintainer docs only; retry behavior is unchanged."}
{"sha":"e0e4bef9cb063a56c37a435d064c89c52028db8e","pr":2375,"source":"git","disposition":"included","sectionSha256":"a3b0dbd7ec86125eadb1d9bdc78c0dde21e09f8c8e1559ca678d89fb94b7b806","bullets":[{"target":"core","text":"Adopt `llamadart-native` v1.1.0-1, a wrapper rebuild of llama.cpp v1.1.0 that adds model-from-file-descriptor and DRY sampler exports to the generated bindings."},{"target":"packages/llamadart_llama_cpp_flutter","text":"Pin Apple SwiftPM to `leehack/llamadart-native@v1.1.0-1`."}]}
{"sha":"bdb8c262e29b5dea40d888eb1400494279ae7321","pr":2376,"source":"git","disposition":"included","sectionSha256":"8143e1f6a328c805102edcb1e108b1675bd4112cd5695fbcbdfa5423da5258a5","bullets":[{"target":"core","text":"A failure inside `GenerationParams.dryMultiplier` sampler setup is now a `LlamaInferenceException` instead of ending the process, and exit teardown waits for the setup (llamadart-native `v1.1.0-1` and later; older runtimes keep the previous behavior)."}]}
{"sha":"12f15a644034a36b630ab0089c5d1fa82feb1cb9","pr":2377,"source":"git","disposition":"included","sectionSha256":"33ac3270859b3fcf3a6bcfe1e094169fddc1618e11ed6a52b3c0ce5baabbe585","bullets":[{"target":"core","text":"Add `LlamaEngine.setModelFromFileDescriptor` to load a single-file GGUF from an open file descriptor without a copy (Android document grants, user-picked iOS/macOS files); it throws `LlamaUnsupportedException` on Windows, the Web, LiteRT-LM and native runtimes older than `llamadart-native` v1.1.0-1."}]}
WARNING 505a1f6 (#2346): ambiguous landed Changelog boundary at body line 12.
```

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant