Skip to content

Guard LiteRT-LM SwiftPM checksums with a published manifest fixture - #2027

Merged
leehack merged 1 commit into
mainfrom
test/litert-swiftpm-published-checksums
Nov 15, 2026
Merged

leehack merged 1 commit into
mainfrom
test/litert-swiftpm-published-checksums

Conversation

@leehack

@leehack leehack commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

Bind the four maintained LiteRT-LM SwiftPM targets by name, repository, tag, artifact filename and checksum to an independently downloaded owner manifest. Current production checksums already match; this adds a regression guard for the gap identified in #2003, scoped by #2023 and plan #2024.

Fixture: owner release v0.19.1-5, manifest SHA-256 b8d5d196e1c9c64026aad52ae14a9909228eabe6eceb4837a7cab60fffe58d9f. Downloaded bytes match the historical publication/audit receipt and live GitHub asset digest; all four archive digests match live asset metadata. Owner tag resolves to bb4e770912c1939277fac79118ad83660726f66a, upstream v0.19.1 to 7a03724cece417f1724c923b3d527b4319730841. GitHub reports immutable=false; this establishes identity continuity against historical evidence, not enforced release immutability.

Production-readiness scope

  • User-facing scope: Test guard only; no runtime or capability change.
  • Supported platforms/paths: VM metadata test of maintained SwiftPM manifest.
  • Unsupported or intentionally unavailable paths: N/A; no production paths changed.
  • Out of scope / follow-ups: Repin LiteRT-LM to litert-lm-native v0.19.1-5 (#1998) #2003 README, owner prose and changelog guards remain open. No Gemma provider target added.

Completeness checklist

  • Declared scope fully implemented.
  • Unsupported combinations: N/A, metadata-only guard.
  • Public docs/examples/changelog: N/A, no public behavior change.
  • Regression coverage: all ten one-at-a-time mutations fail relevant assertions.
  • Validation coverage registry: N/A, no capability change.
  • Security/privacy reviewed: public metadata only.
  • Follow-ups tracked by Repin LiteRT-LM to litert-lm-native v0.19.1-5 (#1998) #2003.

PR type guidance

Test-only regression guard; closes the checksum coverage gap without changing current values.

Test Plan

  • Pinned Flutter 3.47.1 workspace preparation on clean checkout; no tracked drift.
  • Targeted format check, analyze, platform boundaries, diff whitespace check.
  • Isolated TMPDIR VM native_release_pins, native_bundle_config and native_release_manifest: 96 passed.
  • Each target checksum flipped independently; checksum swap; wrong tag; wrong artifact; wrong URL; omitted target; duplicated target: all ten killed by assertions. Production manifest restored byte-for-byte before positive baseline.
  • Full root format/analyze/VM/Chrome: N/A for bounded local validation; targeted checks above, unchanged broad suites excluded by task scope.
  • coverage-lib: N/A, no lib behavior changed.
  • Model/device/SwiftPM build or download: N/A, metadata-only guard.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
root-vm Pins, bundle configuration, manifest reader macOS VM / no model PASS 96 final-tests.log
root-vm (causal controls) Four target identities and digests macOS VM / no model PASS 10 kills mutation-*.log; mutations.txt
static-format-analyze Edited Dart test and boundaries Flutter 3.47.1 PASS format.log, analyze.log, boundaries.log

Review Notes

  • Independent review status: parent review found no blocking findings at the exact head/current base; standard-risk scope.
  • CI status / head SHA: not run remotely; local head b455b8c.

High-risk regression review

@leehack
leehack merged commit ff5d778 into main Nov 15, 2026
38 checks passed
@leehack
leehack deleted the test/litert-swiftpm-published-checksums branch November 15, 2026 19:29
@github-actions

Copy link
Copy Markdown
Contributor

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

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