# Changelog

> **This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.**

## Score

- CAI 61 → 63 (+2.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 74 → 67 (-6.5)
- Architecture 90 → 97 (+6.7)
- Maturity 68 → 68 (-0.1)
- Readiness 47 → 54 (+7.1)
- Security 78 → 67 (-11.1)
- Performance 78 → 100 (+21.7)

## Resolved (33)

- ContextManager.historyEntry (cognitive 18) (Sources/ContextManager.swift)
- ContextManager.prepareEntries (cognitive 16) (Sources/ContextManager.swift)
- Duplicated block (11 lines × 2) (Sources/Handlers.swift)
- Duplicated block (12–15 lines × 2) (Sources/Handlers.swift)
- Duplicated block (13–19 lines × 2) (Sources/Handlers.swift)
- Duplicated block (18 lines × 2) (Sources/Core/ApfelError.swift)
- Duplicated block (30 lines × 2) (Sources/Handlers.swift)
- Duplicated block (32–34 lines × 2) (Sources/Handlers.swift)
- Duplicated block (5 lines × 2) (Sources/Core/MCPToolRegistry.swift)
- Duplicated block (6 lines × 2) (Sources/Handlers.swift)
- Duplicated block (8 lines × 2) (Sources/CLI/Completions.swift)
- Duplicated block (8 lines × 3) (Sources/Handlers.swift)
- Duplicated block (8–11 lines × 3) (Sources/Handlers.swift)
- Duplicated block (9 lines × 3) (Sources/Handlers.swift)
- Duplicated block (9–11 lines × 2) (Sources/CLI.swift)
- Duplicated block (9–19 lines × 2) (Sources/Handlers.swift)
- FunctionTooLong: CLI.swift.printUsage (Sources/CLI.swift)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- …and 13 more

## New (84)

- BatchRecordParser.parse (cognitive 21) (Sources/CLI/Batch.swift)
- BatchRecordParser.parse (cyclomatic 19) (Sources/CLI/Batch.swift)
- BatchRunner.swift.generateBatchRecord (cognitive 22) (Sources/BatchRunner.swift)
- BatchRunner.swift.runBatch (cognitive 23) (Sources/BatchRunner.swift)
- BatchRunner.swift.runBatch (cyclomatic 17) (Sources/BatchRunner.swift)
- CLI.swift.emitOneShotResult (cognitive 17) (Sources/CLI.swift)
- ContextManager.historyEntry (cognitive 18) (Sources/Engine/ContextManager.swift)
- Duplicated block (10 lines × 2) (Sources/Handlers.swift)
- Duplicated block (11 lines × 2) (Sources/CLI.swift)
- Duplicated block (12–13 lines × 2) (Sources/InputTokensHandler.swift)
- Duplicated block (12–15 lines × 2) (Sources/Handlers.swift)
- Duplicated block (12–19 lines × 3) (Sources/Handlers.swift)
- Duplicated block (5 lines × 2) (Sources/Core/SchemaParser.swift)
- Duplicated block (5 lines × 2) (Sources/Handlers.swift)
- Duplicated block (5 lines × 2) (Sources/Server.swift)
- Duplicated block (5 lines × 2) (Sources/Server.swift)
- Duplicated block (64 lines × 2) (Sources/Handlers.swift)
- Duplicated block (7 lines × 2) (Sources/Handlers.swift)
- Duplicated block (7 lines × 2) (Sources/Handlers.swift)
- Duplicated block (7 lines × 2) (Sources/Server.swift)
- …and 64 more

## Changes since last survey

- 32 commits — 17 feature/other, 15 fixes

## By area

- (root) — 13 commits
- Tests/apfelTests — 5 commits
- Sources/Engine — 4 commits
- Sources/CLI — 3 commits
- Sources/Core — 2 commits
- Tests/integration — 2 commits
- .github/FUNDING.yml — 1 commit
- .github/workflows — 1 commit
- docs/apfel-vs-fm.md — 1 commit

## Notable commits

- fix: fix(build): pin the SDK stamp so brew-core builds get macOS 27 behaviour (#521) (#540)
- fix: fix(build): require the macOS 27 SDK; CI on xcode-27 + macOS 26 launch check (#520) (#535)
- fix: fix(cli): mention the JSON envelope in the unknown-finish note only for -o json (#564) (#566)
- fix: fix(cli): suggest --permissive when -f guardrail fires (#505) (#539)
- fix: fix(context): oversized one-shot prompts exit 4 on every OS; fallback estimate prices chat framing (#544) (#549)
- fix: fix(core): detect function-fenced tool calls, retry decodingFailure (#544) (#546)
- fix: fix(retry): classify retries through the typed macOS 27 classifier (#522) (#536)
- fix: fix(schema): generate properties in the declared order, server and CLI (#560) (#561)
- fix: fix(server): cancel abandoned non-streaming requests and release their permit (#542) (#547)
- fix: fix(streaming): compute deltas in Unicode scalars, not Characters (#543) (#545)
- fix: fix(test): prove the isError path ran; accept the model's reply, refusals included (#562) (#563)
- fix: fix(token-counter): count macOS 27 reasoning entries; no fixed window in Sources/ (#513) (#537)
- fix: fix(tools): describe tools to the model as a plain-language list (#555) (#556)
- fix: fix(usage): refusals after a repair round bill the earlier round on macOS 27 (#516) (#538)
- fix: test(code): per-prompt line caps and fixed seeds in the --code one-liner battery (#552) (#553)
- change: Add GitHub Sponsors button
- change: build(deps): Hummingbird 2.26.0 -> 2.27.1 (#548)
- change: ci: run unit tests and model-free suites on macOS 26 too (#510 item 7, #205) (#559)
- change: docs(apfel-vs-fm): source builds need the SDK 27, bare apfel starts chat, Swift library row
- change: docs(changelog): drop the superseded #544 bullet left by the rebase
- …and 12 more
