Skip to content

chore: P3 wording and WebGPU coreVariant sweep (Refs #2048) - #2052

Merged
leehack merged 1 commit into
mainfrom
chore/2048-sweep-1
Nov 18, 2026
Merged

leehack merged 1 commit into
mainfrom
chore/2048-sweep-1

Conversation

@leehack

@leehack leehack commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Give chat templates the vocabulary's BOS and EOS text on native llama.cpp (Fixes #1972) #1990 empty-token wording: clarify in LlamaEngine.getMetadata Dartdoc (lib/src/core/engine/engine.dart) and website/docs/guides/chat-template-and-parsing.md that tokenizer.ggml.bos_token and tokenizer.ggml.eos_token are empty when the token id is negative or has no piece text.
  • Prove Web ToolChoice grammar enforcement and chat-app tool invocation (Refs #1673) #1984 coreVariant handling: in test/e2e/webgpu/tool_choice_grammar_e2e_test.dart, reject missing/unknown coreVariant on non-legacy routes and report coreWasmSha256: null (instead of assuming coreWasm32Sha256) when coreVariant is null or unrecognized.
  • Admit LiteRT-LM strict JSON Schema on the Android arm64 GPU (#174) #2006 wording: scope Set B's clean-bundles note to G1–G4 in doc/cross_platform_validation.md (since W2c is a diagnostic build) and drop the duplicated chat-app-litert-json-schema reference in packages/llamadart_validation/assets/capability_coverage.json.
  • WebGPU bridge & tool-calling docs/skill: reorder v0.1.84+ before v0.1.85+ in website/docs/platforms/webgpu-bridge.md, and scope the plain-string and diagnostic marker claims in website/docs/guides/tool-calling.md and skills/llamadart-tool-calling/SKILL.md (< and > excluded from unquoted copied spellings; < excluded from diagnostic argument bytes and <| marker prefixes excluded from diagnostic tails).
  • Refs #2048, #2049.

Production-readiness scope

  • User-facing scope: none; documentation, skill, validation inventory, Dartdoc, and local-only E2E test hygiene only. No lib/ runtime behavior changed.
  • Supported platforms/paths: docs, skills, Dartdoc, and WebGPU E2E test harness.
  • Unsupported or intentionally unavailable paths: unchanged; non-legacy WebGPU ToolChoice E2E routes now reject null/unknown coreVariant instead of falling back to coreWasm32Sha256.
  • Out of scope / follow-ups: remaining unchecked items in #2048.

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 changelog entries are updated where relevant (no user-observable runtime change, so no changelog entry).
  • Regression coverage covers the original issue plus key negative/version-skew paths where relevant.
  • Public capability changes update the validation coverage registry with a pack or a reasoned, issue-linked exemption; inventory checks pass (N/A: no new public capability; validation_coverage_test.dart passes).
  • Security/privacy review completed: no secrets, bearer tokens, signed URLs, or raw secret-bearing paths leak through logs, cache keys, metadata, errors, or snapshots.
  • Follow-up work that is useful but not required for this PR is tracked in GitHub Issues (#2048).

PR type guidance

  • Feature PR: N/A (docs, skill, Dartdoc, and local-only E2E test cleanup).
  • Bugfix PR: N/A (no runtime behavior change).
  • Docs-only PR: N/A (also updates test/e2e/webgpu/tool_choice_grammar_e2e_test.dart, packages/llamadart_validation/assets/capability_coverage.json, and skills/llamadart-tool-calling/SKILL.md).

Test Plan

  • dart run tool/prepare_workspace.dart
  • dart format --output=none --set-exit-if-changed lib test tool example
  • dart analyze
  • dart run tool/testing/check_platform_boundaries.dart
  • TMPDIR="$(mktemp -d)" dart test -p vm -j 1 test/unit/tooling/ (1989 passed, 11 skipped)
  • TMPDIR="$(mktemp -d)" dart test -p vm -j 1 --exclude-tags local-only test/unit/core/engine/engine_test.dart (288 passed)
  • dart test -p chrome --exclude-tags local-only test/unit/core/engine/engine_test.dart (287 passed, 1 skipped)
  • TMPDIR="$(mktemp -d)" dart test -p vm -j 1 test/unit/backends/llama_cpp/llama_cpp_service_special_token_text_test.dart test/unit/core/template/handlers/lfm2_handler_test.dart test/unit/test_structure/mirrored_unit_structure_test.dart (5 + 72 + 2 passed)
  • ./tool/docs/build_site.sh (4272 pages, no broken internal links)
  • dart run tool/testing/check_webgpu_bridge_tag.dart & dart run tool/testing/verify_release_docs_versions.dart
  • coverage-lib N/A: no lib/ runtime behavior change (Dartdoc comment only).

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze format, analyzer, web/native import boundaries macOS PASS dart format, dart analyze, check_platform_boundaries.dart clean
root-vm tooling + affected unit suites macOS VM PASS test/unit/tooling/ (1989 passed, 11 skipped), engine_test.dart (288 passed), llama_cpp_service_special_token_text_test.dart (5 passed), lfm2_handler_test.dart (72 passed), mirrored_unit_structure_test.dart (2 passed)
root-chrome browser-compatible engine suite Chrome PASS engine_test.dart (287 passed, 1 skipped)
docs-site website build, links, search macOS PASS ./tool/docs/build_site.sh (4272 pages, 0 broken links)
web-tool-choice-grammar local-only WebGPU ToolChoice E2E Chrome N/A local-only model-backed suite; not run in this environment
coverage-lib line coverage N/A no lib/ runtime behavior change
high-risk-exact-head-independent-qa independent audit of exact head Opus 5.5 auditor session, base 3cda71436 (merges cleanly onto 3c8403a8b) PASS READY, 0 P1; evaluator exit 2; evidence llamadart-evidence/pr-2052/audit-d308bbeb2/
other rows N/A no native pin, companion, Genkit, Model Store, or runtime change

Review Notes

  • Independent review status: READY at d308bbeb2cbec356066fe53c973aefca852ccd06; the only lib/ change is a Dartdoc sentence (no production call-site change).
  • CI status / head SHA: 43/43 green at d308bbeb2cbec356066fe53c973aefca852ccd06

High-risk regression review

  • Classification: high-risk (backendRuntime via lib/src/core/engine/engine.dart; classify_high_risk_changes.dart)
  • Implementation task: chore/2048-sweep-1
  • Independent blocking QA task: separate Opus 5.5 auditor session
  • Exact head / current base: d308bbeb2cbec356066fe53c973aefca852ccd06 / 3cda714368b509d789a882206580e9186b812daa
  • Production-branch deletion, bypass, or miswire proof: N/A (only a Dartdoc comment changed in lib/)
  • Affected-family real-model/artifact evidence: N/A (no runtime behavior change)
  • Explicit unavailable-family or other N/A evidence: web-tool-choice-grammar is local-only and not run without local model weights
  • Known PR-caused P1 regressions: 0
  • Unresolved review threads: 0

@leehack
leehack marked this pull request as ready for review November 18, 2026 17:08
@leehack
leehack merged commit 9fe3d9b into main Nov 18, 2026
79 of 84 checks passed
@leehack
leehack deleted the chore/2048-sweep-1 branch November 18, 2026 17:08
@leehack leehack mentioned this pull request Nov 18, 2026
9 of 12 tasks
@github-actions

Copy link
Copy Markdown
Contributor

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

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