Skip to content

Add Web JS-backed staging browser driver (#2115 follow-up) - #2171

Merged
leehack merged 14 commits into
mainfrom
test/2115-web-staging-browser-driver
Nov 23, 2026
Merged

leehack merged 14 commits into
mainfrom
test/2115-web-staging-browser-driver

Conversation

@leehack

@leehack leehack commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add the local Chromium driver, public Dart fixture, and scenario wiring for Web JS-backed GGUF and projector staging.
  • Replay sanitized Chromium receipts to check explicit wasm64 loads and reloads, unrelated capability refusals, non-unsupported refusal rejection, and model requests made during a refusal.
  • Address audit-daa742 findings and merge origin/main (85643f74f2b00a59ae70b479c9b4cbbd7f1ccc74) into prior head 5692399853cce1cf780b84172ddcead161a48f5a -> new head 970c016e9dfd120db52c9294ce95e0939f8a2437, keeping only the 13 tooling, fixture, matrix, and coverage-registry files on top of main:
    • Removed the no-op tool/testing/playwright_web_js_backed_model_staging.py entry from tagHistoryFiles in tool/testing/check_webgpu_bridge_tag.dart (reverting check_webgpu_bridge_tag.dart to origin/main).
    • Added test_refusal_requires_unsupported_field in test/unit/tooling/playwright_web_js_backed_model_staging_grader_test.dart so all four refusal cases (old-bridge-v0.1.86, old-worker, old-core, forced-fetch) fail if the refusal reason only appears in model_error or error instead of unsupported.
    • Updated doc/testing_matrix.md under ## Web JS-backed model staging to replace "after adopting the matching v0.1.92+ assets" with accurate wording stating that omitting --dry-run fetches the pinned bridge assets automatically.
  • Refs Web: expose capability-gated JS-backed GGUF and projector staging #2115. This draft is a maintainer-tooling follow-up outside the release scope of Add capability-gated JS-backed staging on Web #2165.

Changelog

N/A: Maintainer test tooling only.

Production-readiness scope

Completeness checklist

  • Merged origin/main (85643f74f2b00a59ae70b479c9b4cbbd7f1ccc74) and applied the three audit-daa742 fixes into new head 970c016e9dfd120db52c9294ce95e0939f8a2437.
  • Pinned refusal reason validation to the unsupported field (test_refusal_requires_unsupported_field) and killed the any-field refusal (json.dumps(result)) mutant.
  • Replayed sanitized receipts offline across all tooling and markdown verification suites on 970c016e9dfd120db52c9294ce95e0939f8a2437.

PR type guidance

  • Tooling — Restores the local browser scenario and proves its grader rejects invalid results. N/A for public API and release validation.

Test Plan

Verified on new head 970c016e9dfd120db52c9294ce95e0939f8a2437 (macOS arm64, Flutter 3.47.1 / Dart 3.13.1, Python 3.15.2):

  • dart run tool/prepare_workspace.dart (clean git status)
  • python3 tool/ci/check_format.py (Formatted 1949 files (0 changed))
  • dart analyze (No issues found!)
  • dart run tool/testing/check_webgpu_bridge_tag.dart (16 live pins agree on v0.1.93; 1 docs restate the release 454836373 provenance correctly)
  • TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/playwright_web_js_backed_model_staging_test.dart test/unit/tooling/playwright_web_js_backed_model_staging_grader_test.dart test/unit/tooling/check_webgpu_bridge_tag_test.dart (+444: All tests passed!)
  • Mutation check (json.dumps(result) refusal-field mutant on tool/testing/playwright_web_js_backed_model_staging.py): killed by test_refusal_requires_unsupported_field in playwright_web_js_backed_model_staging_grader_test.dart (8 subtest failures across old-bridge-v0.1.86, old-worker, old-core, forced-fetch for model_error and error; restored driver passes)
  • TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/ (+2680 ~11: All tests passed!)
  • TMPDIR="$(mktemp -d)" xargs dart test -p vm -j 1 --exclude-tags local-only < tool/ci/markdown_test_suites.txt (+1650 ~3: All tests passed!)
  • git diff --name-only --no-renames origin/main...HEAD | dart run tool/testing/classify_high_risk_changes.dart (Classification: high-risk, Surfaces: backendRuntime, regressionPolicy)
  • Prior-head checks and audits no longer count for 970c016e9dfd120db52c9294ce95e0939f8a2437: earlier CI runs, the audit-daa742 audit on 5692399853cce1cf780b84172ddcead161a48f5a, prior-head Chromium browser runs from Add capability-gated JS-backed staging on Web #2165, and prior-head checks from 5692399853cce1cf780b84172ddcead161a48f5a do not carry over to 970c016e9dfd120db52c9294ce95e0939f8a2437.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze Workspace prep, format, analyzer macOS arm64, Flutter 3.47.1 PASS Verified on 970c016e9dfd120db52c9294ce95e0939f8a2437 (prepare_workspace.dart, check_format.py, dart analyze, check_webgpu_bridge_tag.dart).
root-vm Driver CLI and receipt grader, scenario wiring, tooling, markdown suites macOS arm64, Flutter 3.47.1 Targeted PASS Driver/grader/tag (+444), test/unit/tooling/ (+2680 ~11), and markdown_test_suites.txt (+1650 ~3) passed on 970c016e9dfd120db52c9294ce95e0939f8a2437.
web-js-backed-model-staging Direct and worker staging, output parity, reload, and version skew Chromium CPU Prior-head evidence (stale) Real Chromium cases and Qwen3-4B memory results from #2165 are prior-head evidence and no longer count for 970c016e9dfd120db52c9294ce95e0939f8a2437.
coverage-lib Runtime coverage N/A N/A This diff changes local validation tooling, fixtures, and matrix docs only (lib/ unchanged vs origin/main).

Review Notes

  • Merged origin/main (85643f74f2b00a59ae70b479c9b4cbbd7f1ccc74) and resolved the three audit-daa742 findings from prior head 5692399853cce1cf780b84172ddcead161a48f5a -> new head 970c016e9dfd120db52c9294ce95e0939f8a2437 (pushed via tool/git/safe_pr_head_update.dart).
  • Earlier CI runs and the audit-daa742 audit on 5692399853cce1cf780b84172ddcead161a48f5a no longer count for 970c016e9dfd120db52c9294ce95e0939f8a2437.
  • Fresh CI is green on 970c016e9dfd120db52c9294ce95e0939f8a2437, and the independent delta re-audit audit-0d4b20 found no P1, P2 or P3 (readiness exits 2).

High-risk regression review

  • Classification — High risk (backendRuntime, regressionPolicy).
  • Implementation task — Web: expose capability-gated JS-backed GGUF and projector staging #2115 local Chromium driver and offline runtime-receipt coverage (updated with origin/main merge and audit-daa742 fixes at 970c016e9dfd120db52c9294ce95e0939f8a2437).
  • Independent blocking QA task — audit-0d4b20 (claude-opus-5-5-auditor-0d4b20, operator-owned) at 970c016e9dfd120db52c9294ce95e0939f8a2437: no P1, P2 or P3; the three audit-daa742 findings are fixed. Evidence: llamadart-evidence/pr-2171/audit-0d4b20/.
  • Exact head / current base — 970c016e9dfd120db52c9294ce95e0939f8a2437 / 85643f74f2b00a59ae70b479c9b4cbbd7f1ccc74.
  • Production-branch deletion, bypass, or miswire proof — On 970c016e9dfd120db52c9294ce95e0939f8a2437, the any-field refusal (json.dumps(result)) mutant failed test_refusal_requires_unsupported_field in playwright_web_js_backed_model_staging_grader_test.dart across all 4 refusal cases × both model_error/error (8 subtest failures), and all driver/grader/tag (+444), test/unit/tooling/ (+2680 ~11), and markdown_test_suites.txt (+1650 ~3) tests pass on the restored driver.
  • Affected-family real-model/artifact evidence — Prior-head Chromium results in Add capability-gated JS-backed staging on Web #2165 (stale for 970c016e9dfd120db52c9294ce95e0939f8a2437).
  • Explicit unavailable-family or other N/A evidence — Current-head validation ran offline driver/grader suites, bridge-tag checks, mutation verification, tooling tests, and markdown suites without live model downloads. Hardware WebGPU and real Safari were outside the prior browser evidence.
  • Known PR-caused P1 regressions — 0 (independent audit audit-0d4b20 at 970c016e9dfd120db52c9294ce95e0939f8a2437).
  • Unresolved review threads — 0.

leehack added a commit that referenced this pull request Nov 22, 2026
## Summary

- Add a capability-gated Web option for JavaScript-backed staging of
GGUF models and multimodal projectors. Preserve the bridge's browser
default when the option is omitted.
- Pin [llama-web-bridge-assets
v0.1.92](https://github.com/leehack/llama-web-bridge-assets/releases/tag/v0.1.92)
for the constructor capability and worker handshake. Wasm32 and Memory64
core bytes match v0.1.90.
- Preserve terminal transfer-length errors from older bridges, refuse
explicit staging when a custom bridge module cannot load, and cover
individual and combined tensor sizes in the wasm32 diagnostic.
- Move the local Chromium driver and its receipt tests to
[#2171](#2171). Closes #2115.

## Changelog

- [core] Add `ModelParams.jsBackedModelStaging` to control JS-backed Web
GGUF and projector staging, with capability checks in the pinned v0.1.92
bridge.

## Production-readiness scope

- **User-facing scope** — Set `jsBackedModelStaging` to `true` to
require JS-backed staging, `false` to disable it, or omit it to keep the
WebKit default where supported.
- **Supported platforms and paths** — llama.cpp on the Web, with direct
and worker runtimes and compatible wasm32 or Memory64 cores.
- **Unsupported paths** — An unavailable bridge module, missing bridge
capability, stale worker, incompatible Wasm core, or forced fetch-backed
load rejects explicit opt-in with `LlamaUnsupportedException`. Native
llama.cpp and both LiteRT-LM platforms reject any explicit setting.
- **Follow-ups** — The local Chromium driver is in
[#2171](#2171). Web GGUF
download cancellation is tracked in #2166. On plain `main` with v0.1.90
and on this branch with staging off and on, cancelling from the first
partial-load progress callback aborts the first GET, then the retry
ladder makes a second GET and succeeds on wasm64.

## Completeness checklist

- [x] Implemented the declared library scope and typed unsupported-path
diagnostics.
- [x] Updated the API docs, README, website, examples, support matrix,
package skills, and PR changelog.
- [x] Covered staging option forwarding, unsupported combinations,
version skew, and terminal transfer errors.
- [x] Recorded the issue-linked validation exemption against the
Chromium evidence below.
- [x] Reviewed source and error paths for secret-bearing URLs and
credentials.
- [x] Tracked the driver and pre-existing cancellation issue above.

## PR type guidance

- **Feature** — The tri-state option has positive and negative tests,
API and example documentation, and a support-matrix entry.
- **Bugfix coverage** — Failing-first Chromium and Chrome tests
reproduce the legacy error retry and missing module refusal. A Chrome
test verifies the cumulative-size diagnostic. The prior independent
runtime audit caught 22 original mutations and confirmed five
fix-specific reversions.
- **Docs-only** — N/A. This changes runtime behavior.

## Test Plan

- [x] Clean workspace preparation, formatting, `dart analyze`, and
platform boundaries on Flutter 3.47.1.
- [x] `test/unit/tooling/` on the VM with isolated temporary storage.
2,370 passed and 10 skipped. The separately targeted validation coverage
suite passed 15 tests.
- [x] Targeted model parameter and LiteRT-LM VM suites. 1,690 passed and
1 skipped.
- [x] Targeted WebGPU Chrome suites. 390 passed.
- [x] Both scenario lists, PR matrix generation, and a tracked-file
search for driver and scenario references.
- [x] Prior-head full VM and Chrome, library coverage, docs, and runtime
evidence recorded below.

## Matrix Evidence

| Matrix row | Scope covered | Platform / model / backend | Result |
Evidence / notes |
| --- | --- | --- | --- | --- |
| `static-format-analyze` | Format, analyzer, Web/native import
boundaries | macOS arm64, Flutter 3.47.1 | PASS | Workspace preparation
left tracked files clean. |
| `root-vm` | Tooling, model parameters, LiteRT-LM | macOS arm64,
isolated TMPDIR | Targeted PASS | 2,370 tooling tests passed with 10
skipped and 1,690 targeted library tests passed with 1 skipped. The
prior full run passed 15,659 with 135 skipped. |
| `root-chrome` | WebGPU backend and error handling | macOS arm64, Dart
Chrome runner | Targeted PASS | 390 passed. The prior full run passed
5,227 with 1 skipped. |
| `coverage-lib` | 70% minimum line coverage for `lib/` | macOS arm64,
Dart VM | Prior head | 93.79% line coverage (37,065 of 39,521). |
| `high-risk-exact-head-independent-qa` | Independent blocking audit
against current main | `14035b78` against `b6cbf850` (current `main`
`135a6cad` adds only unrelated deploy files) | PASS | Fresh-session
`auditor-deep` ACCEPT after the driver split. Library, tests, docs and
pin tests were preserved byte for byte. 22 library mutations and 5
reversions caught, 390 Chrome and 519 VM tests passed, and all 14 pins
plus the `v0.1.92` manifest verified. Readiness exits 2 locally |
| `structured-output-adversarial` | Grammar, template, parser, and
streaming contract | N/A | N/A | Staging changes model and projector
loading. |
| `docs-site` | Website build, links, metadata, and routes | Local Jaspr
build | Prior head | Website build, link checks, analysis, and 31 tests
passed. |
| `release-doc-version-consistency` | Current install snippets and
companion pins | Current published versions | Prior head | Release docs
verifier passed. |
| `webgpu-bridge-tag-consistency` | Published bridge pin and provenance
| Immutable v0.1.92 artifacts | Prior head | 14 live pins agree. Release
454541989 and manifest bytes verified. |
| `examples-tests` | Chat app regressions | Flutter VM and Chrome |
Prior head | 698 VM and 141 Chrome tests passed at `61781eaf`. |
| Chromium staging matrix | Output parity, reload, model and projector
staging, version skew | Chromium CPU, Stories15M, LFM2-VL-450M, Qwen3-4B
| Prior head | All 68 cases passed at `a8eeb693`. The driver is now in
[#2171](#2171). |
| Chromium transfer and module controls | Transfer errors, explicit
opt-out, and missing custom bridge | Chromium CPU, v0.1.90 and v0.1.92 |
Prior head | 15 focused cases. Both tags emitted typed transfer-length
errors after one load attempt for short responses and conflicting size
headers. Stories15M loaded with staging disabled on both versions. A
missing module made zero model requests and returned the documented
exception types for `true`, `false`, and omission. |
| `web-webgpu-generation` | Hardware WebGPU offload | GPU | N/A | The
staging matrix used CPU. |
| `webgpu-multimodal-regression` | Image and audio inputs | Qwen
multimodal | N/A | The projector cases used deterministic text
generation after loading and staging the projector. |

### Chromium runtime evidence

The driver carried by
[#2171](#2171) produced this
prior-head evidence. The 68-case Chromium CPU matrix ran on Chromium
159.0.8154.6 on macOS arm64. Staged and control generation outputs
matched, including reloads. The WebKit user agent exercised
browser-default policy in Chromium. Chromium does not expose worker JS
heap samples.

Largest sampled Wasm linear-memory capacity across the cores created
during each case. The unstaged Qwen3-4B wasm32 controls retried on
wasm64.

| Model | Execution | Requested core | Default staging | JS-backed
staging |
| --- | --- | --- | --- | --- |
| LFM2-VL-450M + projector | Direct | wasm32 | 787 MiB | 673 MiB |
| LFM2-VL-450M + projector | Direct | wasm64 | 930 MiB | 792 MiB |
| LFM2-VL-450M + projector | Worker | wasm32 | 787 MiB | 673 MiB |
| LFM2-VL-450M + projector | Worker | wasm64 | 930 MiB | 792 MiB |
| Qwen3-4B | Direct | wasm32 | 8,197 MiB (wasm64 retry) | 2,953 MiB |
| Qwen3-4B | Direct | wasm64 | 8,197 MiB | 2,980 MiB |
| Qwen3-4B | Worker | wasm32 | 8,197 MiB (wasm64 retry) | 2,953 MiB |
| Qwen3-4B | Worker | wasm64 | 8,197 MiB | 2,980 MiB |

For the Qwen3-4B direct wasm64 cases, sampled page JS peaks were 435 MiB
by default and 1,498 MiB with staging.

The models were Stories15M (SHA-256
`61b50d457809a5194818fd22e6724b456cd7bb9a6264c52c8110684c53f3704a`),
LFM2-VL-450M fixture model (SHA-256
`1fbf4797e8669cdeabd97fa1d31ab046907cb1fc78b1c3d4bda1ba879574e5d7`) and
projector (SHA-256
`a6a813fae4ba3f90852a990fdd4786a017dba0e80e599a366853ba539ee2b5ef`), and
Qwen3-4B (SHA-256
`ab27b9bfa375a178d6cba48f3ad892b94b7739659dcc7aae8058ce0ffed6b328`).

## Review Notes

- Independent review status — ACCEPT at the exact head. The browser
driver moved to #2171, which is not release-scoped.
- CI status / head SHA — 37 passed, 10 skipped on
`14035b78cbc4e1fd6ce303a25d9f6bacb52fa4d4`.

## High-risk regression review

- **Classification** — high-risk (`artifactConsumer`, `backendRuntime`).
- **Implementation task** — #2115 capability-gated staging, bridge
v0.1.92 pin, runtime diagnostics, documentation, and library regression
tests.
- **Independent blocking QA task** — fresh-session `auditor-deep`,
ACCEPT.
- **Exact head / current base** —
`14035b78cbc4e1fd6ce303a25d9f6bacb52fa4d4` /
`135a6cadf1e511a5da4504b812e2ef1f74a56de9`. Last merged base
`b6cbf85065d567f72046fb91f745b3abac211edb`.
- **Production-branch deletion, bypass, or miswire proof** — The prior
runtime audit caught all 22 original mutations and confirmed five
fix-specific reversions. The driver grader mutations are tracked in
[#2171](#2171).
- **Affected-family real-model/artifact evidence** — Prior-head direct
and worker CPU in Chromium with checksum-verified v0.1.90 and v0.1.92
bridge, worker and core files and Stories15M. Manifest SHA-256
`c247b099018f55472dc83e561f0105a83f4ce03aa153d32365a07b34cde129f1` and
`4f2fb82d55a932e9182e703d5265f3fc5875f808d4d9aa0ba18a0585d0d7784b`,
respectively. The matrix preserves the larger GGUF and projector
results.
- **Explicit unavailable-family or other N/A evidence** — The referenced
runs used Chromium CPU. Hardware WebGPU offload and real Safari/iOS were
outside their scope. Earlier version-skew cases mixed published assets.
The focused rerun used matched bridge, worker and core assets from each
published release.
- **Known PR-caused P1 regressions** — 0. The independent audit agrees.
- **Unresolved review threads** — 0.
Base automatically changed from web-js-backed-staging-main to main November 22, 2026 22:15
leehack added a commit that referenced this pull request Nov 22, 2026
## Summary

- Prepare core and all three Apple runtime companions at `0.20.6` for
#2149. The release includes capability-gated JS-backed staging for Web
GGUF models and projectors with bridge `v0.1.92` (#2165).
- Refresh current installation snippets and regenerate the chat app,
validation harness, and observability locks. The Apple companions retain
their published core floors and SwiftPM runtime pins.

## Changelog

N/A: Prepares release metadata and generates 0.20.6 notes from merged
changes.

## Production-readiness scope

- **User-facing scope** — Release notes and install guidance for the
core and the llama.cpp, LiteRT-LM, and Stable Diffusion Apple
companions.
- **Supported platforms/paths** — Core pub archive, Flutter Apple
SwiftPM packages, and the docs site. The landed Web change and its
runtime evidence are in #2165.
- **Unsupported or intentionally unavailable paths** — N/A for release
metadata. The Web staging option follows the capability checks
documented in #2165.
- **Out of scope / follow-ups** — #2090 and the Stable Diffusion
`v0.4.0-1` pin are planned for 0.20.7. #2171 tracks the separate browser
driver. #2136, #554, and #1702 remain open. The package owner verifies
pub.dev automated-publishing settings before release approval.

## Completeness checklist

- [x] Bumped the core and companion versions, recorded the release
notes, refreshed install guidance, and regenerated the three consumer
locks.
- [x] Unsupported platform/option changes are N/A for this metadata
diff.
- [x] Kept the current install docs and changelogs aligned with the
candidate. API and support-matrix edits are N/A for this diff.
- [x] Verified the release receipt, companion compatibility, and
rejection of a changed receipt digest.
- [x] Validation coverage registry changes are N/A for this metadata
diff.
- [x] The diff and receipt contain no credentials or private artifact
paths.
- [x] The release follow-ups are linked above.

## PR type guidance

- **Release prep** — Versions, changelogs, install docs, and generated
locks. Feature, bugfix, and docs-only guidance is N/A.

## Test Plan

- [x] Clean `dart run tool/prepare_workspace.dart`, repository format,
`dart analyze`, and platform boundaries with Flutter 3.47.1.
- [x] Root VM and Chrome suites excluding local-only, tooling suite, and
validation coverage inventory. All passed.
- [x] Both version verifier modes, the release candidate rehearsal, live
bridge and native digests, six Apple SwiftPM digests, companion registry
preflight, and three staged companion dry-runs.
- [x] Core archive consumer, docs build and website tests, chat app VM
and targeted Chrome, basic and server examples, and observability.
- [x] Studio core and UI formatting, analysis, VM and targeted Chrome
with Flutter 3.50.0, plus the Studio Android acceptance tooling tests.
- [x] `coverage-lib` is N/A because the diff changes no library
behavior.

## Matrix Evidence

| Matrix row | Scope covered | Platform / model / backend | Result |
Evidence / notes |
| --- | --- | --- | --- | --- |
| `static-format-analyze` | Workspace preparation, format, analysis,
platform boundaries | macOS arm64 / Flutter 3.47.1 | PASS | 1,924 files
formatted with zero changes. Clean analysis and platform boundaries. |
| `root-vm` | VM suite excluding local-only | macOS arm64 / Dart | PASS
| 15,659 passed and 135 skipped in an isolated system temp. |
| `root-chrome` | Chrome suite excluding local-only | macOS / Chrome |
PASS | 5,227 passed and one skipped. |
| Release tooling | Tooling suite and coverage inventory | macOS / Dart
VM | PASS | 2,370 tooling tests passed and 11 skipped. All 15 inventory
tests and 37 targeted companion pin tests passed. The publisher
rehearsal rejected a corrupted receipt digest. |
| `docs-site` | Site build, links, analyzes and tests | macOS / Jaspr |
PASS | 4,592 pages, 64 sitemap entries, no broken internal links, and 31
website tests. |
| `release-doc-version-consistency` | Core and companion versions and
compatibility | macOS / Dart | PASS | Default and strict modes passed
with no pending companion bumps. |
| `webgpu-bridge-tag-consistency` | Bridge pins, live manifest and
release provenance | WebGPU `v0.1.92` | PASS | All 14 pin references
agree. |
| `native-release-digests` | Runtime archive digests | llama.cpp
`v1.0.0-4`, LiteRT-LM `v0.19.1-7`, Stable Diffusion `v0.4.0` | PASS | 12
llama.cpp, eight LiteRT-LM, and 12 Stable Diffusion bundle digests
match. |
| `release-companion-pub-gate` | Package registry, SwiftPM, and staged
publication dry-runs | pub.dev / Apple SwiftPM | PASS | Preflight and
all three staged dry-runs passed. Six SwiftPM digests match. All four
0.20.6 version endpoints returned HTTP 404. |
| `release-representative-smokes` | Core archive and consumer resolution
| macOS / Dart | PASS | 2,037 selected files. The fresh consumer and
packaged basic example resolved and analyzed. |
| `examples-tests` | Chat app, basic, server, observability | macOS /
Dart and Flutter | PASS | Chat app 698 VM and 141 Chrome, basic 51,
server 54, observability seven. |
| Studio packages | Package-local format, analysis, VM and targeted
Chrome | macOS / Flutter 3.50.0 | PASS | Core 314 VM and 18 Chrome. UI
206 VM and nine Chrome. Four Android acceptance tooling tests passed. |
| `android-release-device-pool` | Old and modern arm64 devices | Android
| N/A for prep | No Android runtime, CPU profile, or native pin changes
since 0.20.5. |
| `coverage-lib` | Line coverage | — | N/A | No library behavior changes
in the prep diff. |
| `genkit-release` | Independently versioned adapter | — | N/A | Genkit
is outside this release. |
| `high-risk-exact-head-independent-qa` | Independent blocking review |
`39e4d68a` against `main` `99cb4291` | PASS | Fresh-session
`auditor-deep` ACCEPT. Versions, floors, pins, both changelogs and size
limits checked. The squash rehearsal and the publication trace (core,
then llama.cpp, LiteRT-LM, Stable Diffusion) passed. 4 of 5 verifier
mutations were rejected. The surviving one is an existing P3 limitation,
offset by the source-PR comparison. Readiness exits 2 locally |

## Review Notes

- Independent review ACCEPT at the exact head.
- Head `39e4d68a24690754828222f90e345fd03a33158f`. The labeled [Verify
release prep
run](https://github.com/leehack/llamadart/actions/runs/45080590366/job/137389057874)
passed. The final description update triggers another verification at
the same head and base.

## High-risk regression review

- **Classification** — High-risk / `artifactConsumer`.
- **Implementation task** — #2149, llamadart 0.20.6 release preparation.
- **Independent blocking QA task** — fresh-session `auditor-deep`,
ACCEPT.
- **Exact head / current base** —
`39e4d68a24690754828222f90e345fd03a33158f` /
`99cb4291da4eb304258083ed3fab3a1c61e93006`.
- **Production-branch deletion, bypass, or miswire proof** — N/A for
production code. The local publisher rehearsal accepted the candidate
and rejected a deliberately changed release receipt digest.
- **Affected-family real-model/artifact evidence** — The live default
bridge, native archive and Apple SwiftPM identities match. See #2165 for
Web runtime evidence.
- **Explicit unavailable-family or other N/A evidence** — The prep diff
changes versions, installation guidance, package resolution metadata,
and release notes. The physical Safari/iOS and Montréal follow-ups
remain in #2136 and #554.
- **Known PR-caused P1 regressions** — 0. The independent audit agrees.
- **Unresolved review threads** — 0 at creation.

## Collector ledger

| Source | Disposition | Release note or reason |
| --- | --- | --- |
| #2165 | Included | Added capability-gated JS-backed Web model and
projector staging with bridge v0.1.92. |
| #2150 | N/A | Apple setup guide correction. |
| #2151, #2157 | N/A | Maintainer release tooling and tests. |
| #2152, #2158, #2159 | N/A | Private qualification and test harness
changes. |
| #2161, #2167, #2168, #2170 | N/A | Static deployment and CI
maintenance. |

One included PR, ten N/A, and zero unresolved inputs. The collector
separately recognized the generated 0.20.5 docs cut.

## Release notes review

- 99cb429 Combine the new staging
option and its bridge capability requirement with the WebGPU v0.1.92 pin
announcement.

## Release notes input

Previous-tag: v0.20.5@ee0bfb72da29ad64c12e83683ff0d7590710956e
Through: 99cb429
Input-SHA256:
e4fac36cc031df0d8a382db47b2e0a3a6fcc6ca19bada0aea093201aba1c1247
@leehack
leehack marked this pull request as ready for review November 23, 2026 17:21
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

@leehack
leehack merged commit 09c7acc into main Nov 23, 2026
91 of 94 checks passed
@leehack
leehack deleted the test/2115-web-staging-browser-driver branch November 23, 2026 17:26
@leehack leehack mentioned this pull request Nov 24, 2026
13 tasks done
leehack added a commit that referenced this pull request Nov 24, 2026
## Summary

- Prepare llamadart `0.20.8` for #2215. The release updates Web bridge
assets to `v0.1.94`, reduces Web GGUF loading memory, and refuses
oversized wasm32 single-thread hints before download.
- The packaged DartPad GGUF example gains multi-turn chat, a model
picker, generation settings, and streaming stats. These example features
landed in #2192 and #2198.
- Prepare all three Apple SwiftPM companions at `0.20.8` for the updated
install snippets. Their native pins and published core floors stay the
same.

## Changelog

N/A: Prepares version metadata and generates the 0.20.8 notes from
merged PR changelog sections.

## Production-readiness scope

- **User-facing scope** — Core and companion versions, install guidance,
release notes, and current DartPad example version guidance.
- **Supported platforms and paths** — Core pub archive, three Apple
SwiftPM companions, and docs site. The runtime changes are in #2207,
#2209, and #2211.
- **Unsupported or intentionally unavailable paths** — Automatic staging
follows the browser, core, and size limits described in the notes. On
wasm32 single-thread, an oversized hint throws before download.
- **Follow-ups** — #2215 tracks the independent Genkit release and later
minor work. #2212 and #2196 are outside this release.

## Completeness checklist

- [x] Updated versions, install snippets, current docs, and generated
changelogs and locks.
- [x] Recorded shipped staging limits and the refusal path in the
current release notes.
- [x] Kept the runtime API and capability registry outside the metadata
diff.
- [x] Verified changelog inputs from the exact first-parent history. The
included runtime fixes carry their own regression evidence.
- [x] Reviewed the release diff and evidence for credentials, signed
URLs, and private paths.
- [x] Linked the remaining release work above.

## PR type guidance

- **Release prep** — The diff updates package metadata and docs. Feature
and bugfix implementation guidance is N/A.

## Test Plan

- [x] Clean workspace preparation, repository format, Dart analysis, and
platform boundaries.
- [x] Full root VM and Chrome suites excluding local-only, including the
release tooling suite and validation coverage inventory.
- [x] Both versions verifier modes, bridge and native digests, protected
changelog, and publisher receipt rehearsal.
- [x] Core archive, core dry run, companion registry preflight, and
three staged companion dry runs.
- [x] Docs, representative examples, Studio packages, and exact-main
DartPad model simulation.
- [x] Independent Genkit resolver checks and staged dry run.
- [x] `coverage-lib` is N/A for this release metadata diff.

## Matrix Evidence

| Matrix row | Scope covered | Platform / model / backend | Result |
Evidence / notes |
| --- | --- | --- | --- | --- |
| `static-format-analyze` | Clean preparation, format, analysis, and
platform boundaries | macOS / Flutter 3.47.1 | PASS | 1,949 files
checked, zero changes. Workspace preparation left the checkout clean. |
| `root-vm` | VM suite including release tooling, excluding local-only |
macOS / Dart | PASS | 15,995 passed, 135 skipped. |
| `root-chrome` | Chrome suite excluding local-only | macOS / Chrome |
PASS | 5,321 passed, one skipped. |
| `docs-site` | Site build, links, website and observability | macOS /
Jaspr | PASS | 4,722 pages, 65 sitemap entries, no broken internal
links. 31 website tests and seven observability tests passed. |
| `release-doc-version-consistency` | Core and Apple version and pin
pairing | macOS / Dart | PASS | Both verifier modes and 52
capability-inventory and companion pin tests passed. |
| `webgpu-bridge-tag-consistency` | Bridge release and pin provenance |
v0.1.94 | PASS | 16 live pins agree, including the pinned manifest. |
| Native and SwiftPM digests | Native asset identity | GitHub releases |
PASS | All 32 native bundle digests and six SwiftPM asset digests match.
|
| `release-companion-pub-gate` | Package metadata and staged dry runs |
pub.dev / Flutter | PASS | All four new version endpoints returned 404.
Registry preflight passed. Each companion dry run had zero warnings and
one hint for the local core override. Confirm the pub.dev automated
publisher settings before merge. |
| `release-representative-smokes` | Core archive and dry run | macOS /
Dart | PASS | 2,063 files staged. The fresh consumer and packaged basic
example resolved and analyzed. Zero core dry-run warnings. |
| DartPad Web simulation | Worker cold and cached load and generation;
oversize refusal | Chromium 158 / WebGPU / SmolLM2 135M and Gemma 4 E2B
| PASS | Six cells passed at base `0ba664e7df`. Both refusal paths made
zero model requests. Core Gemma passed fresh-profile reruns with an
exact prompt-input check. |
| Examples | Chat app, DartPad GGUF, basic, and server | macOS / Flutter
and Dart | PASS | Chat app 698 VM and 141 Chrome, DartPad 22 VM and 24
Chrome, basic 51, server 54. |
| Studio packages | Package-local format, analysis, and tests | macOS /
Flutter 3.50.0 | PASS | Core 314 VM and 18 Chrome. UI 206 VM and 9
Chrome. Four Android acceptance tooling tests passed. |
| `genkit-release` | Independently released adapter | macOS / Dart |
PASS for validation | 478 model-free tests passed against hosted core
0.20.6, hosted 0.20.7, and checkout core 0.20.8. Genkit DartPad passed
44 VM and 5 Chrome tests. Staged adapter dry run passed against hosted
core with zero warnings. |
| `android-release-device-pool` | Physical Android acceptance | — | N/A
| The prep updates metadata and docs. See the existing runtime
qualification for unaffected native paths. |
| `coverage-lib` | Library coverage | — | N/A | The prep updates
metadata and docs. |
| `high-risk-exact-head-independent-qa` | Independent blocking review |
Current head and base | PASS | Independent audit accepted exact head
`a40678c837` against base `0ba664e7df`: no P1/P2. |

## Review Notes

- Independent blocking review accepted at
`a40678c8373a94f6a4917421ba3d1d36ecda6158` against
`0ba664e7df2620571d567d9a6aaf6f08f98d4865`; hosted CI green at this
head.
- Require a successful current-description **Verify release prep** run,
resolved review threads, and explicit publication approval before
squashing. The squash must preserve the default GitHub message or the
exact title and description.

## High-risk regression review

- **Classification** — High-risk, `artifactConsumer`.
- **Implementation task** — #2215 core and Apple companion release
preparation.
- **Independent blocking QA task** — audit of the exact head: version
and companion bumps, changelog ledger and receipt reproduced, publish
dry runs, docs build, bridge manifest, real-model DartPad smoke (SmolLM2
wasm32, Gemma 4 memory64). Evidence in `llamadart-evidence/pr-2216/`.
- **Exact head / current base** —
`a40678c8373a94f6a4917421ba3d1d36ecda6158` /
`0ba664e7df2620571d567d9a6aaf6f08f98d4865`.
- **Production-branch deletion, bypass, or miswire proof** — The
release-candidate rehearsal verifies the candidate tree and the reviewed
release receipt. The verifier rejected a changed receipt digest.
- **Affected-family real-model/artifact evidence** — See matrix and
constituent PRs #2207, #2209, #2211, and #2213.
- **Explicit unavailable-family or other N/A evidence** — No native
runtime or SwiftPM pin changes in this prep. Device runs are N/A for
this metadata diff.
- **Known PR-caused P1 regressions** — None found in implementation
validation. Independent verdict: accept, 0 P1/P2.
- **Unresolved review threads** — 0 at creation.

## Collector ledger

| First-parent source | Disposition |
| --- | --- |
| `4653cd0e0cee4ff04830b17c969c2be8f87546cc` | Generated 0.20.7 docs
cut. |
| #2187 `02b77eaf849b34894cd5c6ab137706e1efa4f675` | N/A. Documentation
pairing update. |
| #2189 `14c48744c364f39c440ab7aacabf7e173ecb2a04` | N/A. CI test-time
fix. |
| #2192 `e20c22d3f92f6ea884cd0fdeb9082de57d6a42e9` | Core changelog
input. |
| #2191 `38f46af31e60f6471bed2d426e7b8ee6bef9e0da` | Independent Genkit
note. |
| #2193 `2e1e5d3badc4367a036e1c133966d5af67d12e8f` | N/A. Bumps the
dev-only coverage dependency to 1.16.1 and aligns the internal CI LCOV
formatter with its empty skipped-suite JSON handling. |
| #2195 `85643f74f2b00a59ae70b479c9b4cbbd7f1ccc74` | Core changelog
input and independent Genkit note. |
| #2194 `fc11cd01d5547a0ab3f0f2e81bd8a155eb5cd8d1` | N/A. Updates the
pinned flutter-actions/setup-flutter commit SHA in the companion
publishing workflow. |
| #2197 `e1e4cd4c23734c5f7e363294ded42de39b946ab8` | Independent Genkit
note. |
| #2171 `09c7acc167ae3338f16f49d2946372a099cd065c` | N/A. Maintainer
test tooling only. |
| #2198 `456d8db684884ad91de837583ec33133517939ae` | Core changelog
input. |
| #2201 `bf3e5e35d657e1f2e89731b14b187e90ee5df210` | Independent Genkit
note. |
| #2200 `90877e69cc4c8c869798d35c811cede185a434c6` | Core changelog
input. |
| #2202 `01da6484749b4d09fa3bef8c438e4f3f263ad593` | Independent Genkit
note. |
| #2203 `11412c0baaf053b11f72431c08f18e786aa7afb1` | N/A. Changes
internal CI selection, validation and maintainer documentation. |
| #2205 `f20366850be64e9943a873a048ed5321d98f7c1f` | N/A. Changes
maintainer CI job selection only. |
| #2206 `64c379ad108f88cefad51ae0792f172a0b22e6dd` | N/A. Changes
maintainer CI job selection only. |
| #2207 `9bcef23b85ed74983132dfe0c18f093736a0658a` | Core changelog
input. |
| #2208 `65626fe2a5b24f7b578d68df7a9eec5eb4837560` | N/A. Changes
repository CI selection and cache-check diagnostics only. |
| #2209 `c7f1689aa6f9b0318669411504b31546c9d6e40a` | Core changelog
input and independent Genkit note. |
| #2211 `58a4028911e82c701704bf846d2381435d585432` | Core changelog
input. |
| #2213 `4675ce5bf6c5323edebf6bd8e0e7f254415f9333` | Independent Genkit
note. |
| #2214 `0ba664e7df2620571d567d9a6aaf6f08f98d4865` | N/A. Changes the
native diagnostic tests only. |

## Release notes review

- e20c22d Combine the multi-turn
DartPad chat, settings, and streaming stats with the model picker and
loading improvements.
- 85643f7 Omit the DartPad UI
dependency migration because it adds no separate behavior for example
users.
- 456d8db Combine the model picker with
the DartPad chat improvements. The current example guide lists each
supported choice.
- 90877e6 Keep the download feedback
and error recovery in the combined DartPad note. Leave rebuild details
and memory guidance in the example docs.
- 9bcef23 Combine the Chromium memory64
staging default with the wasm32 defaults. Preserve the 4 GiB cap.
- c7f1689 Keep the core bridge version
and bounded weight uploads in the bridge note. Route the Genkit
playground note to the independent adapter release.
- 58a4028 Include wasm32 staging and
pre-download refusal alongside memory64 behavior, with the exact size
hints.

## Release notes input

Previous-tag: v0.20.7@943e4f42ff305b6ccf6be38a4342bd11d8a93900
Through: 0ba664e
Input-SHA256:
881f5a0ff337741e7a41518e8a43fb8339c66a03958b04df768a9d59c2154cf3
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