Repository navigation
Fold 2026-08-03 defect sweep and macOS 26.6 event ritual into guides and notes - #26
Conversation
- Spell the clearCache(at:) internals with the actual instance call AIModelCache.default.deleteEntries(for:) in part-07 ref 02; the bare spelling had minted a near-duplicate API-INDEX symbol (1206 -> 1205) - Fix the stale "four undocumented ones" sentence in the fm CLI harvest note after serve was reclassified as already verified - Note whitespace normalization in the two archival harvest notes that claim verbatim code blocks - Regenerate API-INDEX and skills with SOURCE_DATE_EPOCH pinned to 2026-08-02; verify-skills, mdlinks, and all 148 tests pass Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…and notes Defect-state changes, each verified against live GitHub before editing: - mlx#3883 (TF32 warn-once) and mlx#3924 (tile_matmad_nax static_assert) closed unmerged; the missing-else hazard re-verified still at HEAD (steel/gemm/nax.h:847,865, 2026-08-03). Parts 9, 11, 12 hedges updated. - mlx-lm#1566 closed by its author with no fix merged; generate_step / speculative_generate_step defaults re-checked unchanged at HEAD. Part 12. - mlx-swift-lm#358 closed unmerged in favor of open PR #453; issue #312 still open. Parts 12, 13. - coreai-torch#7: part-08 sighting genuinely said "Open PR" (stale since 2026-07-29) despite the ref sitting on the runbook false-positive list — fixed, and the runbook now says to triage STATE-CHANGED per sighting. - part-17 §7.6: live-docs re-check 2026-08-03 — resolved(in:) still current, parameter now some Sequence<Transcript.Entry>, resolve(in:) deprecated; the docs-vs-SDK contradiction stands. macOS 26.6 (25G72) event ritual, run 2026-08-03: interface diff clean for every framework, coreai-build help at its documented 27.0 fingerprint, snippet verification byte-identical, probes 46/34/0 host and 39/2/0 sim with all five host PROBE-RESULT values unchanged on 26.6. Baselines and trigger notes updated in the runbook, checklist, notes/README, probes/README. All guide edits are line-count-preserving; indexes and skills regenerated (1,780/1,418 counts unchanged); 148 script tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
📝 WalkthroughWalkthroughUpdated documentation for the 2026-08-03 SDK and MLX status snapshot. Corrected Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 8
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md`:
- Around line 1750-1753: Update the warning claim in the upstream PR `#3883` note
to state that no runtime warning was present in the inspected upstream state as
of August 3, 2026, rather than implying no runtime warning will ever arrive;
preserve the surrounding MLX silent-fallback context.
In `@guides/part-12-mlx-python/README.md`:
- Around line 31-32: Update all three passages to count only correctness PRs
`#3912`, `#3922`, and `#3924`, changing “four” to “three” and excluding performance PR
`#3918`. In guides/part-12-mlx-python/README.md lines 31-32,
guides/part-12-mlx-python/references/01-core-fundamentals.md lines 122-123, and
guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
lines 101-104, state only that these PRs are absent from MLX checkout 973e27f;
remove any claim about release absence.
In `@guides/part-12-mlx-python/references/03-quantization.md`:
- Around line 104-105: Update the NAX count from two to three in
guides/part-12-mlx-python/references/03-quantization.md lines 104-105,
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
lines 92-93, guides/part-12-mlx-python/references/05-serving-and-distributed.md
lines 1220-1221, and
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md lines
1319-1320; additionally, in 05-serving-and-distributed.md replace “landed” with
wording that reflects the PRs remained open or closed unmerged.
In `@guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md`:
- Line 992: Update the `#420` verification date from 2026-08-03 to the supporting
note’s 2026-07-31 in
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992,
then regenerate the corresponding skill copy at
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992
so both files match.
In `@notes/NEXT-BETA-CHECKLIST.md`:
- Around line 98-99: Update the host-version wording in the 2026-08-03 baseline
entry so it no longer identifies the host as macOS 26.5; use macOS 26.6
consistently, or explicitly qualify 26.5 as the SDK/runtime version rather than
the host OS.
In `@probes/README.md`:
- Around line 55-59: Update the HOST-26 row in the run table to reference macOS
26.6, keeping its run instructions and baseline consistent with the verified
host version documented in the 2026-08-03 entry.
In
`@skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md`:
- Around line 1966-1973: Update the checklist section discussing Transcript
image attachment resolution so the deprecation warning for resolve(in:) is
explicitly conditional on the SDK build: captured 27.0 SDKs expose resolve(in:)
without deprecation and lack resolved(in:), while only SDKs declaring the
deprecation should show the warning. Preserve the existing distinction between
the two method signatures and do not suggest a mechanical rename.
In
`@skills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md`:
- Line 2882: Update the PR status note near the reference-wrapper statement to
explicitly identify PR `#453` as the active/open fix and PR `#358` as the closed,
unmerged superseded PR. Ensure the wording cannot imply that PR `#453` was closed
unmerged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 8478546b-e72d-4652-b9b9-e19268f38d3f
⛔ Files ignored due to path filters (1)
notes/synthesis/callout-classifications/part-09.tsvis excluded by!**/*.tsv
📒 Files selected for processing (69)
guides/API-INDEX.mdguides/SILENT-FAILURES.mdguides/part-07-coreai-swift-runtime/references/02-specialization-caching-and-aot.mdguides/part-08-coreai-pytorch-conversion/references/01-conversion-and-the-io-contract.mdguides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.mdguides/part-11-metal-and-tensorops/references/02-cooperative-tensors-and-flash-attention.mdguides/part-12-mlx-python/README.mdguides/part-12-mlx-python/references/01-core-fundamentals.mdguides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.mdguides/part-12-mlx-python/references/03-quantization.mdguides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.mdguides/part-12-mlx-python/references/05-serving-and-distributed.mdguides/part-12-mlx-python/references/06-finetuning-and-porting-models.mdguides/part-13-mlx-swift/references/01-mlx-swift-lm-in-an-app.mdguides/part-13-mlx-swift/references/02-generation-tools-and-caching.mdguides/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.mdnotes/FRESHNESS-RUNBOOK.mdnotes/NEXT-BETA-CHECKLIST.mdnotes/README.mdnotes/web/2026-08-02-harvest/adjacent-sessions-297-375-310-256-258.mdnotes/web/2026-08-02-harvest/fm-cli-real-machine-evidence.mdnotes/web/2026-08-02-harvest/wwdc2026-253-music-understanding.mdprobes/README.mdskills/README.mdskills/apple-ai-evaluations/references/API-INDEX.mdskills/apple-ai-evaluations/references/SECTION-MAPS.mdskills/apple-ai-evaluations/references/SILENT-FAILURES.mdskills/apple-ai-migration/references/API-INDEX.mdskills/apple-ai-migration/references/SECTION-MAPS.mdskills/apple-ai-migration/references/SILENT-FAILURES.mdskills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.mdskills/apple-ai-shipping/references/API-INDEX.mdskills/apple-ai-shipping/references/SECTION-MAPS.mdskills/apple-ai-shipping/references/SILENT-FAILURES.mdskills/apple-app-intents/references/API-INDEX.mdskills/apple-app-intents/references/SECTION-MAPS.mdskills/apple-app-intents/references/SILENT-FAILURES.mdskills/apple-core-ai/references/API-INDEX.mdskills/apple-core-ai/references/SECTION-MAPS.mdskills/apple-core-ai/references/SILENT-FAILURES.mdskills/apple-core-ai/references/part-07-coreai-swift-runtime/references/02-specialization-caching-and-aot.mdskills/apple-core-ai/references/part-08-coreai-pytorch-conversion/references/01-conversion-and-the-io-contract.mdskills/apple-core-ai/references/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.mdskills/apple-foundation-models/references/API-INDEX.mdskills/apple-foundation-models/references/SECTION-MAPS.mdskills/apple-foundation-models/references/SILENT-FAILURES.mdskills/apple-metal-tensorops/references/API-INDEX.mdskills/apple-metal-tensorops/references/SECTION-MAPS.mdskills/apple-metal-tensorops/references/SILENT-FAILURES.mdskills/apple-metal-tensorops/references/part-11-metal-and-tensorops/references/02-cooperative-tensors-and-flash-attention.mdskills/apple-mlx/references/API-INDEX.mdskills/apple-mlx/references/SECTION-MAPS.mdskills/apple-mlx/references/SILENT-FAILURES.mdskills/apple-mlx/references/part-12-mlx-python/README.mdskills/apple-mlx/references/part-12-mlx-python/references/01-core-fundamentals.mdskills/apple-mlx/references/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.mdskills/apple-mlx/references/part-12-mlx-python/references/03-quantization.mdskills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.mdskills/apple-mlx/references/part-12-mlx-python/references/05-serving-and-distributed.mdskills/apple-mlx/references/part-12-mlx-python/references/06-finetuning-and-porting-models.mdskills/apple-mlx/references/part-13-mlx-swift/references/01-mlx-swift-lm-in-an-app.mdskills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.mdskills/apple-on-device-ai/references/API-INDEX.mdskills/apple-on-device-ai/references/SECTION-MAPS.mdskills/apple-on-device-ai/references/SILENT-FAILURES.mdskills/apple-speech/references/API-INDEX.mdskills/apple-speech/references/SECTION-MAPS.mdskills/apple-speech/references/SILENT-FAILURES.mdskills/skills-manifest.json
| > ⚠️ Upstream PR #3883 ("Warn once when float32 ops silently run at TF32 precision") existed | ||
| > because users are being surprised by this — it was **closed unmerged 2026-08-03**, so no runtime | ||
| > warning is coming. **This is the MLX analogue of the Core AI silent-fallback problem**: a | ||
| > precision reduction that produces correct-looking numbers and announces itself nowhere. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
sed -n '1738,1760p' guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
printf '\nRepository references to PR `#3883`:\n'
rg -n -C 3 '3883|no runtime warning|closed unmerged|August 3, 2026' .Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50411
🏁 Script executed:
printf '%s\n' 'Tracked candidate files:'
git ls-files | rg '(^|/)(guides|skills)/.*part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack\.md$'
printf '\nExact target lines by tracked file:\n'
while IFS= read -r f; do
printf '\n--- %s ---\n' "$f"
rg -n -C 2 'Upstream PR `#3883`|no runtime|warn-once PR \(`#3883`\)' "$f" || true
done < <(git ls-files | rg '(^|/)(guides|skills)/.*part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack\.md$')
printf '\nRepository metadata near the dated re-check:\n'
sed -n '14,26p' notes/README.md
sed -n '760,776p' guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.mdRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 2935
🏁 Script executed:
for f in \
guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md \
skills/apple-core-ai/references/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
do
printf '\n--- %s ---\n' "$f"
sed -n '1746,1755p' "$f"
done
printf '\nUpstream PR `#3883`:\n'
curl -fsSL https://api.github.com/repos/ml-explore/mlx/pulls/3883 |
jq '{state, merged, merged_at, closed_at, updated_at, title, html_url}'Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 1909
Scope the warning claim to the August 3, 2026 upstream snapshot.
Replace “so no runtime warning is coming” with “so no runtime warning was present in the inspected upstream state as of August 3, 2026.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md`
around lines 1750 - 1753, Update the warning claim in the upstream PR `#3883` note
to state that no runtime warning was present in the inspected upstream state as
of August 3, 2026, rather than implying no runtime warning will ever arrive;
preserve the surrounding MLX silent-fallback context.
| correctness fix PRs opened in the 72 hours before 2026-07-27** (PRs #3912, #3922 still open and #3924 closed | ||
| unmerged 2026-08-02, per a 2026-08-03 `gh` re-check — so no release or checkout contains them), one a *missing |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -u
printf '%s\n' '--- repository state ---'
git rev-parse HEAD
git status --short
printf '%s\n' '--- requested passages ---'
sed -n '20,40p' guides/part-12-mlx-python/README.md
sed -n '112,132p' guides/part-12-mlx-python/references/01-core-fundamentals.md
sed -n '92,112p' guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
printf '%s\n' '--- all references to candidate PRs and date/count claims ---'
rg -n -C 2 '`#3912`|`#3922`|`#3924`|correctness PR|three days|72 hours|2026-07-27|2026-08-02|2026-08-03' .
printf '%s\n' '--- GitHub PR metadata ---'
for n in 3912 3922 3924; do
gh api "repos/ml-explore/mlx/pulls/$n" --jq '"#\(.number)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\ttitle=\(.title)"' || true
doneRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50412
🏁 Script executed:
#!/bin/bash
set -u
log=/tmp/coderabbit-shell-logs/shell-output-uDfvAY
printf '%s\n' '--- state and requested passages from prior run ---'
sed -n '1,180p' "$log"
printf '%s\n' '--- exact NAX references in the relevant guide and research note ---'
rg -n -C 3 --no-heading '`#3912`|`#3922`|`#3924`|correctness PR|72 hours|three days|2026-07-27|2026-08-02|2026-08-03' \
guides/part-12-mlx-python notes/repos/issues-mlx-stack.md
printf '%s\n' '--- PR metadata, including repository and merge commits ---'
for n in 3912 3922 3924; do
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq '"#\(.number)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\tmerge_commit=\(.merge_commit_sha)\ttitle=\(.title)"' || true
doneRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50411
🏁 Script executed:
#!/bin/bash
set -u
printf '%s\n' '--- NAX source note ---'
rg -n -C 12 'NAX|3912|3922|3924|correctness|three days|four' notes/repos/mlx-tensorops-kernels.md
printf '%s\n' '--- PRs opened in the stated window ---'
gh api --paginate \
'search/issues?q=repo%3Aml-explore%2Fmlx+is%3Apr+created%3A2026-07-24..2026-07-27&per_page=100' \
--jq '.items[] | "#\(.number)\t\(.created_at)\t\(.state)\t\(.title)"' 2>&1 || true
printf '%s\n' '--- exact status for the three cited PRs ---'
for n in 3912 3922 3924; do
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq "#\(.number)\tcreated=\(.created_at)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\ttitle=\(.title)" 2>&1 || true
done
printf '%s\n' '--- checkout references ---'
git ls-files | rg '(^|/)(README|01-core-fundamentals|02-numerics-hardware-gating-and-custom-kernels)\.md$|mlx-tensorops-kernels'
rg -n -C 2 '973e27f|no release|no runtime|no release or checkout|none is in this checkout' \
guides/part-12-mlx-python notes/repos/mlx-tensorops-kernels.mdRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50411
🏁 Script executed:
#!/bin/bash
set -u
printf '%s\n' '--- candidate PR metadata and descriptions ---'
for n in 3912 3913 3918 3919 3920 3922 3924; do
printf '\nPR #%s\n' "$n"
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq '{number,created_at,state,merged,closed_at,merged_at,merge_commit_sha,title,labels:[.labels[].name],body}' \
2>&1 || true
done
printf '%s\n' '--- changed paths for likely candidates ---'
for n in 3918 3922 3924; do
printf '\nPR #%s files\n' "$n"
gh api --paginate "repos/ml-explore/mlx/pulls/$n/files?per_page=100" \
--jq '.[] | .filename' 2>&1 || true
doneRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 23781
Change the NAX count to three and narrow the absence claim.
The cited correctness PRs are #3912, #3922, and #3924. Do not count #3918; it is a performance change. Replace “four” with “three” in all three passages. State only that these PRs are absent from MLX checkout 973e27f; release absence is not established.
📍 Affects 3 files
guides/part-12-mlx-python/README.md#L31-L32(this comment)guides/part-12-mlx-python/references/01-core-fundamentals.md#L122-L123guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md#L101-L104
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@guides/part-12-mlx-python/README.md` around lines 31 - 32, Update all three
passages to count only correctness PRs `#3912`, `#3922`, and `#3924`, changing “four”
to “three” and excluding performance PR `#3918`. In
guides/part-12-mlx-python/README.md lines 31-32,
guides/part-12-mlx-python/references/01-core-fundamentals.md lines 122-123, and
guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
lines 101-104, state only that these PRs are absent from MLX checkout 973e27f;
remove any claim about release absence.
| NAX opened in the **72 hours before 2026-07-27** — PRs **#3912**, **#3922** and **#3924**; on a | ||
| 2026-08-03 `gh` re-check the first two were still open and #3924 was closed unmerged 2026-08-02 |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -eu
for f in \
guides/part-12-mlx-python/references/03-quantization.md \
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md \
guides/part-12-mlx-python/references/05-serving-and-distributed.md \
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md
do
echo "=== $f ==="
rg -n -C 4 '3912|3922|3924|Four|four|correctness.fix|correctness fix|NAX' "$f" || true
done
echo "=== all repository references to the PRs and NAX ==="
rg -n -i -C 2 '3912|3922|3924|NAX' guides skills 2>/dev/null | head -n 400 || trueRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50412
🌐 Web query:
MLX GitHub pull requests 3912 3922 3924 NAX
💡 Result:
Regarding the MLX framework, the requested GitHub pull requests refer to the following: - PR #3912: This pull request is an open issue titled Fix fp quantized matmul corruption when the quantized dim is not a multiple of 32 [1]. It addresses corruption in quantized matrix multiplication kernels specifically for shapes where the quantized dimension is 16 mod 32 [1]. - PR #3922: This pull request is referenced in discussions within PR #3912 [1]. It is described as providing the foundation for sorted gather_qmm boundary and correctness, and is associated with M5/NAX testing [1]. - PR #3924: This number is not a pull request for the ml-explore/mlx repository [1]. It is referenced in other repositories, such as being a ZenML pull request for provisioning execution status [2] and a pull request in the xorbitsai/inference repository for built-in support for gpt-oss [3][4][5][6]. NAX refers to a specific set of optimized kernels within MLX, often discussed in the context of JIT (Just-In-Time) compilation and hardware-specific optimizations (e.g., M5/NAX testing) [7][1]. Previously, PR #3426 was used to gate NAX JIT sources by macOS SDK version to ensure compatibility across different build environments [7].
Citations:
- 1: Fix fp quantized matmul corruption when the quantized dim is not a multiple of 32 ml-explore/mlx#3912
- 2: https://github.com/zenml-io/zenml/blob/5dd4ca38fa66d271dc71e7eab408f5ab7b0ee66f/RELEASE_NOTES.md
- 3: 9264Yf/inference@b2d793d
- 4: https://github.com/9264Yf/inference/blob/main/README.md
- 5: https://github.com/lwsinclair/inference
- 6: https://github.com/guyt101z/inference
- 7: Gate NAX JIT sources by macOS SDK version ml-explore/mlx#3426
🏁 Script executed:
#!/bin/bash
set -eu
for f in \
guides/part-12-mlx-python/references/03-quantization.md \
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md \
guides/part-12-mlx-python/references/05-serving-and-distributed.md \
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md
do
echo "=== $f ==="
rg -n -C 4 '3912|3922|3924|Four|four|correctness.fix|correctness fix|NAX' "$f" || true
done
echo "=== all repository references ==="
rg -n -i -C 2 '3912|3922|3924|NAX' guides skills 2>/dev/null | head -n 400 || trueRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50412
🏁 Script executed:
#!/bin/bash
set -u
echo "=== local PR ledger around the NAX entries ==="
sed -n '1370,1445p' notes/repos/mlx-tensorops-kernels.md 2>/dev/null || true
sed -n '1975,2020p' notes/repos/mlx-tensorops-kernels.md 2>/dev/null || true
echo "=== upstream PR metadata ==="
for n in 3912 3922 3924; do
echo "--- PR #$n ---"
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq '{number,title,state,merged_at,closed_at,created_at,updated_at,html_url,body}' 2>&1 || true
done
echo "=== upstream PRs created from 2026-07-24 through 2026-07-27 ==="
gh api --paginate \
-H 'Accept: application/vnd.github+json' \
'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
--jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-28T00:00:00Z") | {number,title,state,merged_at,closed_at,created_at,html_url}' 2>&1 || trueRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 28357
🌐 Web query:
site:github.com/ml-explore/mlx/pull "NAX" "2026-07-25"
💡 Result:
In the context of the MLX machine learning framework on macOS, NAX refers to the neural acceleration architecture utilized by Apple's M5 silicon [1][2]. On July 25, 2026, two significant pull requests were submitted to the ml-explore/mlx GitHub repository regarding Metal kernel optimizations: 1. [Metal] Rows-per-expert-aware gather_qmm_rhs tile geometry (#3918): This update improves performance for Mixture-of-Experts (MoE) prefill operations by dynamically selecting tile geometry based on the number of rows per expert [3]. For large batches, it shifts to a 32x64 tile geometry, which provides substantial speedups (up to 19-22% in some configurations) [3]. 2. [Metal] Fused causal-mask + softmax for the SDPA ops fallback (#3919): This PR optimizes Scaled Dot Product Attention (SDPA) by fusing the causal mask application directly into the softmax kernel [4]. This eliminates unnecessary intermediate memory allocations for the mask and scores, resulting in a 45-61% reduction in kernel time for the mask/softmax stage during long-context prefill [4]. These updates continue the ongoing development of specialized kernels within MLX to support high-performance computing on newer Apple hardware, including the NAX-enabled M5 chips [5][3][4].
Citations:
- 1: Speed up NAX split-K by better tuning and routing and fix NAX addmm ml-explore/mlx#3422
- 2: Add 1-bit affine quantization support (Metal) ml-explore/mlx#3161
- 3: Pick gather_qmm_rhs tile size from rows per expert ml-explore/mlx#3918
- 4: Fuse the causal mask into the SDPA fallback softmax ml-explore/mlx#3919
- 5: Fix fp quantized matmul corruption when the quantized dim is not a multiple of 32 ml-explore/mlx#3912
🏁 Script executed:
#!/bin/bash
set -u
for n in 3918 3921 3922 3924; do
echo "--- PR #$n ---"
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq '{number,title,state,created_at,closed_at,merged_at,body,labels:[.labels[].name]}' 2>&1 || true
done
echo "=== NAX search results with titles and dates ==="
gh api --paginate \
-H 'Accept: application/vnd.github+json' \
'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
--jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-27T00:00:00Z") | select((.title + " " + (.body // "")) | test("NAX|nax|quantized|gather_qmm|tile_matmad"; "i")) | {number,title,created_at,state,merged_at,closed_at,html_url}' 2>&1 || trueRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 11990
🌐 Web query:
"ml-explore/mlx" "#3918" correctness NAX
💡 Result:
MLX pull request #3918, titled [Metal] Rows-per-expert-aware gather_qmm_rhs tile geometry, is a performance-focused PR aimed at optimizing Mixture-of-Experts (MoE) inference [1]. Regarding correctness, the PR explicitly addresses this by confirming that the per-element K-accumulation order is independent of the tile geometry [1]. The authors verified this empirically and reported that the implementation is bit-exact across all configurations and rows-per-expert values tested, and token-identical on end-to-end model evaluations [1].
Citations:
🏁 Script executed:
#!/bin/bash
set -u
for n in 3918 3921 3922 3924; do
echo "--- PR #$n ---"
gh api "repos/ml-explore/mlx/pulls/$n" \
--jq '{number,title,state,created_at,closed_at,merged_at,body,labels:[.labels[].name]}' 2>&1 || true
done
echo "=== NAX-related PRs opened from 2026-07-24 through 2026-07-26 ==="
gh api --paginate \
-H 'Accept: application/vnd.github+json' \
'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
--jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-27T00:00:00Z") | select((.title + " " + (.body // "")) | test("NAX|nax|quantized|gather_qmm|tile_matmad"; "i")) | {number,title,created_at,state,merged_at,closed_at,html_url}' 2>&1 || trueRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 12007
🏁 Script executed:
#!/bin/bash
set -eu
for spec in \
"guides/part-12-mlx-python/references/03-quantization.md:101:108" \
"guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md:89:95" \
"guides/part-12-mlx-python/references/05-serving-and-distributed.md:86:93" \
"guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md:1315:1325"
do
file=${spec%%:*}
range=${spec#*:}
start=${range%:*}
end=${range##*:}
echo "=== $file:$start-$end ==="
sed -n "${start},${end}p" "$file"
doneRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 2849
Change the NAX count to three.
#3912, #3922, and #3924 are the three matching correctness-fix PRs; #3918 is performance-only. Update the count in all four files. In 05-serving-and-distributed.md, replace “landed” because the first two remained open and #3924 closed unmerged.
📍 Affects 4 files
guides/part-12-mlx-python/references/03-quantization.md#L104-L105(this comment)guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md#L92-L93guides/part-12-mlx-python/references/05-serving-and-distributed.md#L1220-L1221guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md#L1319-L1320
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@guides/part-12-mlx-python/references/03-quantization.md` around lines 104 -
105, Update the NAX count from two to three in
guides/part-12-mlx-python/references/03-quantization.md lines 104-105,
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
lines 92-93, guides/part-12-mlx-python/references/05-serving-and-distributed.md
lines 1220-1221, and
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md lines
1319-1320; additionally, in 05-serving-and-distributed.md replace “landed” with
wording that reflects the PRs remained open or closed unmerged.
| `TokenIterator`'s `.logits` path. The one-line fix (`self.state = result.state` in the | ||
| `.logits` branch of `prepare`) landed as commit `42f08a8`. | ||
| - **`#420` (still OPEN as of 2026-07-31)** — M-RoPE state dropped **across `ChatSession` turns**: | ||
| - **`#420` (still OPEN as of 2026-08-03)** — M-RoPE state dropped **across `ChatSession` turns**: |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -e
for f in \
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md \
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md
do
echo "=== $f ==="
sed -n '970,1010p' "$f"
done
echo "=== date and `#420` references ==="
rg -n -C 3 '420|2026-07-31|2026-08-03|verification' \
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md \
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.mdRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 26992
🏁 Script executed:
#!/bin/bash
set -e
src="guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md"
copy="skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md"
echo "=== current source/copy comparison ==="
cmp -s "$src" "$copy" && echo "files identical" || echo "files differ"
sha256sum "$src" "$copy"
echo "=== working-tree changes for the two files ==="
git status --short -- "$src" "$copy"
git diff --unified=2 -- "$src" "$copy" | sed -n '1,120p'Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 622
Update the stale #420 verification date.
Both files state #420 was open as of 2026-08-03, but the supporting note records the re-check as 2026-07-31. Update the source note and regenerate the skill copy.
📍 Affects 2 files
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md#L992-L992(this comment)skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md#L992-L992
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md` at
line 992, Update the `#420` verification date from 2026-08-03 to the supporting
note’s 2026-07-31 in
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992,
then regenerate the corresponding skill copy at
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992
so both files match.
| 2026-08-03 healthy baselines are **46 host tests, 34 skipped, 0 failures** and **39 simulator | ||
| tests, 2 intentional skips, 0 failures** (both re-verified on the macOS 26.6 host). Probes that need an |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Correct the stale host-version reference.
The event log and this baseline identify the host as macOS 26.6. The next sentence still says OS 27 probes skip on “this 26.5 host.” Update that wording, or state explicitly that 26.5 refers to the SDK/runtime rather than the host OS.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@notes/NEXT-BETA-CHECKLIST.md` around lines 98 - 99, Update the host-version
wording in the 2026-08-03 baseline entry so it no longer identifies the host as
macOS 26.5; use macOS 26.6 consistently, or explicitly qualify 26.5 as the
SDK/runtime version rather than the host OS.
| **Verified 2026-08-03 (host now macOS 26.6 `25G72`):** `swift test` on the host — | ||
| 46 tests, 34 skipped, 0 failures, exit 0. SIM-27 full run — 39 tests, 2 skipped (PCC | ||
| opt-in + the env-gated Instruments workload), 0 failures, `TEST SUCCEEDED`. All five | ||
| host-runnable PROBE-RESULT values matched their 26.5 baselines on 26.6 — no behavioral | ||
| drift from the 26.5.2 → 26.6 host update. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Update the stale host version in the run table.
Lines 55-59 record verification on macOS 26.6, but the HOST-26 row at Line 24 still says “today's host, macOS 26.5.” This makes the run instructions and the recorded baseline disagree. Update the row to macOS 26.6, or mark it as historical context.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@probes/README.md` around lines 55 - 59, Update the HOST-26 row in the run
table to reference macOS 26.6, keeping its run instructions and baseline
consistent with the verified host version documented in the 2026-08-03 entry.
| > ⚠️ **Contradiction with the captured SDK, flagged rather than smoothed — still live 2026-08-03.** | ||
| > The 27.0 beta interface (`27A5228h`, read 2026-07-29) contains **only** `func resolve(in | ||
| > transcript: Transcript) -> Transcript.ImageAttachment?`, no deprecation attribute, no | ||
| > `resolved(in:)` at all (`27.0:2959-2963`) — while a live-docs re-check (2026-08-03) still | ||
| > presents `resolved(in:)` as current, its parameter now `some Sequence<Transcript.Entry>` (was | ||
| > `ArraySlice<Transcript.Entry>` in the 07-27 harvest), and `resolve(in:)` as deprecated. Either | ||
| > `resolved(in:)` landed in a later build than the one captured, or the documentation is ahead of | ||
| > the SDK. The two spellings take **different argument types** — so don't mechanically rename; |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
rg -n -C 4 'ImageReference|resolve\(in:|resolved\(in:|deprecated' \
notes/sdk-interfaces/FoundationModels-27.0-macos.swiftinterface \
skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.mdRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 50411
🏁 Script executed:
python3 - <<'PY'
from pathlib import Path
import re
sdk = Path("notes/sdk-interfaces/FoundationModels-27.0-macos.swiftinterface").read_text()
doc = Path("skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md").read_text()
# Extract only the ImageReference declaration and the migration section.
m = re.search(r'public struct ImageReference\b.*?(?=\n@available|\Z)', sdk, re.S)
print("SDK ImageReference block:")
print(m.group(0) if m else "NOT FOUND")
print("\nMigration section:")
start = doc.index("### 7.6 SUPERSEDED")
end = doc.index("### 7.7", start)
print(doc[start:end])
PYRepository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills
Length of output: 1674
Make the deprecation warning conditional on the SDK build.
The captured 27.0 SDK exposes resolve(in:) without deprecation and does not expose resolved(in:). State that the warning applies only to SDKs that declare the deprecation.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md`
around lines 1966 - 1973, Update the checklist section discussing Transcript
image attachment resolution so the deprecation warning for resolve(in:) is
explicitly conditional on the SDK build: captured 27.0 SDKs expose resolve(in:)
without deprecation and lack resolved(in:), while only SDKs declaring the
deprecation should show the warning. Preserve the existing distinction between
the two method signatures and do not suggest a mechanical rename.
| > threshold.**"* | ||
| > | ||
| > Fix in flight: PR #358. A `KVCacheBox` reference wrapper is the maintainer-endorsed direction. | ||
| > Fix in flight: PR #453 (supersedes #358, closed unmerged 2026-08-03); the reference-wrapper approach stands. |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
State the status of PR #453 and PR #358 explicitly.
The parenthetical can be read as saying that PR #453 is closed unmerged. notes/README.md Line 23 says PR #358 was superseded by open PR #453. Use explicit wording so the guide does not report the wrong fix state.
Proposed clarification
-Fix in flight: PR `#453` (supersedes `#358`, closed unmerged 2026-08-03); the reference-wrapper approach stands.
+Fix in flight: open PR `#453` supersedes PR `#358`, which was closed unmerged; the reference-wrapper approach stands.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In
`@skills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md`
at line 2882, Update the PR status note near the reference-wrapper statement to
explicitly identify PR `#453` as the active/open fix and PR `#358` as the closed,
unmerged superseded PR. Ensure the wording cannot imply that PR `#453` was closed
unmerged.
Defect-state changes (each verified against live GitHub before editing)
tile_matmad_naxstatic_assert) both closed unmerged; #3924 with the maintainer declining the guard. Re-verified before writing: the else-less chain is still atsteel/gemm/nax.h:847,865at HEAD (2026-08-03), so Parts 9/11/12 hedges now state the closure and that the hazard stands with no fix incoming. Explicitly dated snapshot tables were left intact per house style.generate_step/speculative_generate_stepdefaults re-checked unchanged at HEAD the same day. Part 12 hedges updated; the advice itself stands.resolved(in:)still current (parameter nowsome Sequence<Transcript.Entry>, wasArraySlice),resolve(in:)deprecated. The docs-vs-SDK contradiction stands; both dates recorded, checklist §4 watch updated.macOS 26.6 (25G72) event ritual, run 2026-08-03
coreai-buildhelp at its documented 27.0 fingerprint.Statusordering held across 26.5 → 26.6).probes/README.md(which disagreed at 43/34, 39/34, and 36/2); trigger headers now log the event and watch for Xcode 27 beta 5.Mechanics
All guide edits are line-count-preserving, so the classification TSVs and
results.tsvkeys stayed valid — only regeneration was needed:build-indexes.sh(1,780/1,418 counts unchanged),build-skills.sh,mdlinks.py, and the full script test suite (148/148 pass). One TSV blurb updated (part-09 #3883 row) soSILENT-FAILURES.mdno longer implies the warn-once PR is alive.🤖 Generated with Claude Code
Summary by cubic
Folded the 2026-08-03 defect sweep and the macOS 26.6 update into the guides and notes. Cleaned stale issue statuses, clarified a cache API call, and regenerated indexes/skills; interfaces, snippets, and probes remain stable on 26.6.
mlx#3883(TF32 warn-once) andmlx#3924(tile_matmad_naxassert) marked closed unmerged; Parts 9/11/12 now state the closures and that the hazards remain at HEAD.mlx-lm#1566closed with no fix; defaults re-verified; guidance unchanged.mlx-swift-lm#358closed in favor of open#453;#312still open. References updated in Parts 12/13.coreai-torch#7“Open PR” sighting corrected; the runbook now calls for per-sighting triage of STATE-CHANGED rows.AIModelCache.default.deleteEntries(for:); this removed a duplicate symbol fromAPI-INDEX(now 1205).resolved(in:)(parameter nowsome Sequence<Transcript.Entry>),resolve(in:)deprecated; the docs-vs-SDK contradiction is still flagged.Written for commit 5e5da32. Summary will update on new commits.
Summary by CodeRabbit