# Changelog

## Score

- CAI 63 → 64 (+1.2)
- Rubric changed (rubric-2026.09.11 → rubric-2026.09.18) — scores are not directly comparable.

## Lenses

- Code Health 85 → 85 (-0.6)
- Architecture 100 → 93 (-6.5)
- Maturity 58 → 58 (-0.0)
- Readiness 51 → 54 (+3.5)
- Security 79 → 84 (+4.6)
- Performance 83 (new)

## Resolved (78)

- ClassTooLong: DiffusionRunner (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- ClassTooLong: Flux2Pipeline (swift/Sources/CoreAIDiffusionPipeline/Pipelines/Flux2Pipeline.swift)
- DiffusionRunner.runSD3ComponentParity (cognitive 20) (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- DiffusionRunner.runSD3ComponentParity (cyclomatic 19) (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- Documentation: no architecture or design documentation (models/muse_glimmer/README.md)
- Documentation: no installation or build instructions (README.md)
- Documentation: no licence statement (README.md)
- Documentation: no project overview (README.md)
- Documentation: no usage examples (README.md)
- Duplicated block (10 lines × 2) (swift/Sources/CoreAIDiffusionPipeline/Schedulers/DPMSolverMultistepScheduler.swift)
- Duplicated block (10 lines × 2) (swift/Sources/CoreAILanguageModels/InferenceEngines/CoreAISequentialEngine.swift)
- Duplicated block (10 lines × 2) (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- Duplicated block (10–11 lines × 2) (swift/Sources/CoreAIDiffusionPipeline/Pipelines/Flux2Pipeline.swift)
- Duplicated block (11 lines × 2) (swift/Sources/CoreAIDiffusionPipeline/Pipelines/Flux2Pipeline.swift)
- Duplicated block (11 lines × 2) (swift/Sources/CoreAILanguageModels/Bundle/LanguageConfig.swift)
- Duplicated block (11 lines × 3) (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- Duplicated block (12 lines × 3) (swift/Sources/Tools/diffusion-runner/DiffusionRunnerMain.swift)
- Duplicated block (12 lines × 5) (swift/Sources/CoreAIDiffusionPipeline/Pipelines/Flux2Pipeline.swift)
- Duplicated block (12 lines × 6) (swift/Sources/CoreAIDiffusionPipeline/Pipelines/PipelineConfiguration.swift)
- Duplicated block (13 lines × 2) (swift/Sources/CoreAIDiffusionPipeline/Pipelines/Flux2Pipeline.swift)
- …and 58 more

## New (216)

- Associator.associate (cognitive 27) (swift/Sources/CoreAIVideoSegmenter/Tracking/Associator.swift)
- Associator.associate (cyclomatic 17) (swift/Sources/CoreAIVideoSegmenter/Tracking/Associator.swift)
- Change coupling: CoreAISequentialVLMEngine.swift ↔ LLMRunnerMain.swift (swift/Sources/CoreAILanguageModels/InferenceEngines/CoreAISequentialVLMEngine.swift)
- Change coupling: LLMRunnerMain.swift ↔ LLMServerMain.swift (swift/Sources/Tools/llm-runner/LLMRunnerMain.swift)
- ChatHandler.swift.runChatCompletion (cognitive 43) (swift/Sources/Tools/llm-server/ChatHandler.swift)
- ChatHandler.swift.runChatCompletion (cyclomatic 25) (swift/Sources/Tools/llm-server/ChatHandler.swift)
- ChatHandler.swift.runStreamingLoop (cognitive 40) (swift/Sources/Tools/llm-server/ChatHandler.swift)
- ChatHandler.swift.runStreamingLoop (cyclomatic 25) (swift/Sources/Tools/llm-server/ChatHandler.swift)
- ChatHandler.swift.tokenizeMessages (cognitive 20) (swift/Sources/Tools/llm-server/ChatHandler.swift)
- ClassTooLong: StaticShapeEngine (swift/Sources/CoreAILanguageModels/InferenceEngines/CoreAIStaticShapeEngine.swift)
- ConnectedComponents.areas (cognitive 35) (swift/Sources/CoreAIVideoSegmenter/Postprocessing/ConnectedComponents.swift)
- ConnectedComponents.areas (cyclomatic 18) (swift/Sources/CoreAIVideoSegmenter/Postprocessing/ConnectedComponents.swift)
- ConstrainedGenerationSession.swift._applyBitmask (cognitive 21) (swift/Sources/CoreAILanguageModels/GuidedGeneration/ConstrainedGenerationSession.swift)
- Coverage not measured — Swift suite
- Critical CVE: [GHSA redacted] (uv.lock)
- Duplicated block (10 lines × 2) (models/depth-anything/export.py)
- Duplicated block (10 lines × 2) (models/t5/export.py)
- Duplicated block (10 lines × 2) (python/src/coreai_models/models/macos/muse_glimmer_drafter_dflash.py)
- Duplicated block (10 lines × 2) (python/src/coreai_models/primitives/macos/cache.py)
- Duplicated block (10 lines × 2) (swift/Sources/CoreAIDiffusionPipeline/Components/CoreAIDiffusionModelFunction.swift)
- …and 196 more

## Changes since last survey

- 31 commits — 29 feature/other, 2 fixes

## By area

- swift/Sources — 22 commits
- python/src — 6 commits
- models/phi — 1 commit
- python/tests — 1 commit
- swift/Tests — 1 commit

## Notable commits

- fix: Fix BFloat16 KV-state crash in reset and cache growth (#268)
- fix: Fix SSMState.update_states slice_update end index missing trailing dim (#275) (#283)
- change: Add --replay mode to the LLM server (#266)
- change: Add DiffusionGemma-26B-A4B model Core AI export (#261)
- change: Add reasoning_effort control to the LLM server (#263)
- change: Add reproducible generation: seed and system_fingerprint (#265)
- change: Broaden tool-calling to Phi and Qwen3-Coder dialects (#271)
- change: Consolidate VLM sequential engine: route construction through EngineFactory (C1+C2) (#262)
- change: Consolidate VLM sequential engine: shared iterator helpers, tidy (B3+B4) (#251)
- change: Consolidate model-bundle and diffusion asset resolution (#304)
- change: CoreAISequentialEngine: idempotent generation via external session state (#258)
- change: Default prefill chunk to 4096 only at >=64GB memory (#274)
- change: Exclude RMSNormGated from 4bit weight quantization (#277) (#281)
- change: Gemma 4 E2B / E4B iOS runner upgrades (#302)
- change: Honor ContextOptions.reasoningLevel in the language model executor (#267)
- change: Image and Video Segmentation Bundle Cleanup (#308)
- change: Migrate Diffusion Quantization to Pre-Export (#286)
- change: New Model: Sana Sprint 0.6B (#289)
- change: Preview denoised x0 estimate for FLUX.2 latent preview (#254)
- change: Recover exported turn-end stop tokens from tokenizer.json (Gemma, Phi) (#264)
- …and 11 more

## Architecture

- Unchanged — 0 containers · 1 contexts · 0 edges
