test(fixtures): publish cross-format pins and preflight baselines (RM-2367)
User description
Linear project: ANN/SNN Hybrid
Refs #127 and RM-2367 (engram-parser v0.4.0 milestone).
- Publish a TSV of the existing fetch pins (full revisions, exact lengths and SHA-256 digests, licenses, formats and required sidecars), with a no-download regression test to keep the manifest in sync.
- Add an ignored, cache-first mmap preflight for the three baseline pairs. It verifies the pin set, V-projection mapping, dtype and shape.
- Record a reproducible blocker for strict numeric parity: the SHA-verified, separately pinned Qwen2.5 pair has a V-projection difference beyond the Q8_0 rounding bound, independently reproduced with gguf-py 0.19.0 and direct Safetensors BF16 byte reads. Confirm conversion provenance or repin before treating it as a numeric gate. No Qwen3 or OLMoE real-run result is claimed, and no sibling repos are changed.
Validation: cargo fmt, cargo clippy --all-targets --all-features --locked -- -D warnings, targeted manifest test and ignored/no-cache behavior. Both actual Qwen2.5 checkpoints and the config matched their SHA-256 pins; dtype and shape checks passed in the numeric diagnostic. No weights committed.
Summary by cubic
Publicly pins the same weights across GGUF and Safetensors and adds an opt-in, cache-first mmap preflight that verifies structural parity (dtype and shape) for three baseline pairs. Other hybrid repos can now consume one manifest instead of duplicating model lists; the Qwen3.5 stretch pair is pinned for topology only.
- Adds a regression test that fails when the TSV drifts from the fetch pins.
- Fixture pins now record tier, artifact dtype, and shard-index role explicitly.
- Offline mode fails on any cached size or SHA-256 mismatch instead of dropping the file, including a same-size edit to a previously verified stamp; auto/require modes replace the cache only with newly verified downloads, staged and checked before the old copy is removed.
- Shard-indexed checkpoints open the pinned index directly, with coverage for missing, corrupt, and sharded fixtures.
Numeric parity is not established
The Qwen2.5-0.5B pair passes the structural preflight but differs at V projection element 0 by more than the Q8_0 rounding bound. gguf-py and direct Safetensors byte reads independently reproduced the mismatch, so it can't be dismissed as quantization noise. Don't treat this pair as a numeric parity gate until conversion provenance is confirmed or the weights are repinned.
Summary by CodeRabbit
- Documentation
- Added guidance for an optional cross-format checkpoint preflight using pinned fixtures. It checks selected tensor formats and dimensions without comparing values, and documents cache-only and download-required options.
- Clarified that the preflight is separate from the memory-budget check, documented cache-repair behavior, and recorded an observed Qwen2.5 numeric discrepancy whose cause is unknown.
- Tests
- Added opt-in preflight coverage for Qwen3, Qwen2.5, and OLMoE fixtures, including checks that documented fixture pins match the published list and that sharded checkpoints resolve correctly.
CodeAnt-AI Description
Publish shared model fixture pins and add a cross-format preflight
What Changed
- Publishes a checked TSV of pinned model files, including their revisions, formats, sizes, checksums, and licenses.
- Adds an opt-in preflight for three baseline GGUF and Safetensors pairs that checks the V projection dtype and shape without claiming the tensor values match.
- Corrupt cached fixtures now fail in offline mode; download-enabled modes replace them only with verified files and fail if repair is unavailable.
Impact
✅ Shared, checked model pins for downstream repositories
✅ Cross-format structure checks without default downloads
✅ Corrupt fixtures are not mistaken for missing files
💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
@codeant-ai ask: Your question here
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
@codeant-ai ask: Can you suggest a safer alternative to storing this secret?
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
@codeant-ai: Your feedback here
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
@codeant-ai: Do not flag unused imports.
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
@codeant-ai: review
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.