Skip to content

test: cover #2073 and #2078 audit P3 gaps - #2085

Merged
leehack merged 1 commit into
mainfrom
test/audit-p3-coverage
Nov 19, 2026
Merged

leehack merged 1 commit into
mainfrom
test/audit-p3-coverage

Conversation

@leehack

@leehack leehack commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Production-readiness scope

  • User-facing scope: N/A (test-only; no production code or user-facing behavior changed).
  • Supported platforms/paths: Dart VM unit tests.
  • Unsupported or intentionally unavailable paths: N/A (test-only).
  • Out of scope / follow-ups: None.

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. (N/A — test-only)
  • Public API docs, README/website docs, examples, support matrices, and changelog entries are updated where relevant. (Changelog N/A — test-only)
  • 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 (or N/A with scope). (N/A — test-only)
  • 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, or explicitly marked "None" above.

PR type guidance

  • Test-only PR: closes #2073 audit P3 and #2078 audit P3 from 0.20.x audit follow-ups #2048 with no production code changes. Changelog: N/A (test-only).

Mutation check

Mutant Source Mutation Result Failing test
A01 tool/testing/verify_release_docs_versions.dart Delete checkLiteRtLmDocs(Directory.current, errors); in main KILLED (rc=1, +36 -1) release docs CLI runs checkLiteRtLmDocs
A02 tool/testing/verify_release_docs_versions.dart Compare only match[1] != expected.$1 (ignore upstream commit) KILLED (rc=1, +32 -5) README.md / support-matrix.md / native-and-web-sync.md / SKILL.md upstream tests + CLI test
N2 lib/src/core/template/tool_call_fallback_parser.dart Remove if (value < 0x20) return false; KILLED (rc=1, +28 -1) partial JSON releases at the first impossible token
N5 lib/src/core/template/tool_call_fallback_parser.dart Change if (escape != 'u') return false; to continue; KILLED (rc=1, +28 -1) partial JSON releases at the first impossible token
N12 lib/src/core/template/tool_call_fallback_parser.dart Change if (!_take(',')) return false; in arrayEnd to return true; KILLED (rc=1, +28 -1) partial JSON releases at the first impossible token
N14 lib/src/core/template/tool_call_fallback_parser.dart Change if (!_take(':')) return false; to return true; KILLED (rc=1, +28 -1) partial JSON releases at the first impossible token
N17 lib/src/core/template/tool_call_fallback_parser.dart Remove if (!_take('}')) guard in objectStart KILLED (rc=1, +28 -1) partial JSON releases at the first impossible token

Test Plan

  • dart run tool/prepare_workspace.dart (N/A — ran targeted dart analyze lib test tool and VM tests without modifying tracked workspace files)
  • python3 tool/ci/check_format.py (Formatted 1912 files (0 changed))
  • dart analyze lib test tool (No issues found!)
  • TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/verify_release_docs_companion_pins_test.dart test/unit/core/engine/gemma4_loose_stream_test.dart (+66: All tests passed!)
  • dart test -p chrome --exclude-tags local-only (N/A — verify_release_docs_companion_pins_test.dart is @TestOn('vm'); gemma4_loose_stream_test.dart parser logic is platform-independent)
  • coverage-lib matrix row (N/A — test-only, no lib/ changes)

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze format, analyzer macOS / Dart 3.x PASS check_format.py (0 changed), dart analyze lib test tool (No issues found!)
root-vm touched VM unit suites macOS / Dart VM PASS verify_release_docs_companion_pins_test.dart + gemma4_loose_stream_test.dart (+66: All tests passed!)
release-doc-version-consistency LiteRT-LM CLI and upstream commit checks macOS / Dart VM PASS Covered by verify_release_docs_companion_pins_test.dart (A01, A02 killed)

Review Notes

  • Independent review status: N/A (standard-risk test-only PR)
  • CI status / head SHA: pending

High-risk regression review

  • Classification: standard (classify_high_risk_changes.dart)
  • Implementation task: N/A
  • Independent blocking QA task: N/A
  • Exact head / current base: N/A
  • Production-branch deletion, bypass, or miswire proof: N/A
  • Affected-family real-model/artifact evidence: N/A
  • Explicit unavailable-family or other N/A evidence: N/A
  • Known PR-caused P1 regressions: 0
  • Unresolved review threads: 0

@leehack
leehack merged commit 4ceb9b3 into main Nov 19, 2026
37 checks passed
@leehack
leehack deleted the test/audit-p3-coverage branch November 19, 2026 16:47
@leehack leehack mentioned this pull request Nov 19, 2026
9 of 12 tasks
@github-actions

Copy link
Copy Markdown
Contributor

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

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