Address all valid PR #23 review findings

Merged
HB
4mo ago
+905-780

Summary

  • correct Foundation Models context-window provenance and evidence classifications
  • document Swift 6.4 cancellation-shield compiler/runtime gating
  • repair Core AI cache and guided-decoding evidence
  • reconcile FM CLI, MLX, and research-note claims
  • fix the reported Markdown issues and regenerate all derived indexes, skills, classifications, and snippet reports

Why

PR #23 merged before its valid review findings were addressed. Several claims overstated their evidence, some compatibility guidance omitted runtime constraints, and generated documentation needed to be rebuilt from corrected canonical sources.

This is a documentation and evidence repair; it does not change public code APIs.

Validation

  • git diff --check
  • Markdownlint 0.23.1: zero new MD028, MD031, or MD040 warnings in changed hunks
  • python3 scripts/mdlinks.py
  • python3 scripts/verify-skills.py --skills skills
  • all 148 unit tests
  • .build/docs-venv/bin/mkdocs build --strict --clean
  • 1,359 snippet fences classified with no failures or unclassified fences
  • generated index and skill byte-equality checks

Summary by cubic

Fixes valid PR #23 review findings by correcting evidence, tightening guidance, and rebuilding derived docs. Clarifies the on‑device context window, adds Swift 6.4 cancellation-shield gating, reconciles FM CLI claims, and refreshes indexes and snippet reports.

  • Bug Fixes
    • Foundation Models: record 4096 as the iOS 27 platform context value per Apple; keep the 8192 device probe as uncorroborated; note the shared input+output budget; advise reading contextSize at runtime.
    • Swift/runtime: gate withTaskCancellationShield to Swift 6.4 with Apple OS 27 runtime support; add a renamed fallback for older toolchains/runtimes.
    • Core AI: note the specialization‑cache clear flag across six tools; clarify guided‑decoding notes (CPU fill into kDLCPU tensors; MTLBuffer needs CPU‑accessible contents today).
    • FM CLI/MLX: mark /usr/bin/fm path as third‑party attested (suggestive, not verified); align guides and fix minor MLX training scope and examples.
    • Hygiene: fix Markdown issues and regenerate all derived artifacts — symbol index to 1206, snippet fences to 1359 with 0 unclassified, updated skills and indexes.