From b69ddd3963d01de1be267256d498e1e8da48b1f8 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Mon, 30 Nov 2026 22:15:58 +0100 Subject: [PATCH 1/3] test(editor): pin the external watch's false 67 conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The external guest's watch (PostsModelImports.startExternalWatch) reads disk raw while the session's text/lastFlushedText came through readDocument's normalizing external branch (BOM strip + CRLF->LF), so diskTextChanged raised conflictAlert on unchanged BOM/CRLF files — re-arming after every sibling directory event and after either alert answer, blocking departures and quit (brief-32, argus cycle-6). Three RED pins over the real watch closure (externalWatcher.onEvent): no conflict on an unchanged BOM/CRLF guest, no re-arm after yes-reload or keep-local, and the load-bearing negative — a real foreign write still raises. Targeted rail at base: 11 executed / 8 passed / 3 failed (all three new pins), 164 SwiftCompile lines. --- MuseionTests/ImportExternalTests.swift | 86 ++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/MuseionTests/ImportExternalTests.swift b/MuseionTests/ImportExternalTests.swift index 45bf022..4eccb48 100644 --- a/MuseionTests/ImportExternalTests.swift +++ b/MuseionTests/ImportExternalTests.swift @@ -25,6 +25,16 @@ private func writeExternal(_ name: String, _ body: String) throws -> URL { return url } +/// brief-32: the guest-watch pins' own temp dir — `startExternalWatch` +/// observes the file's CONTAINING folder, so their guest must live where +/// no sibling test ever writes. +private func watchedDir() throws -> URL { + let dir = FileManager.default.temporaryDirectory + .appendingPathComponent("museion-watch-\(UUID().uuidString)", isDirectory: true) + try FileManager.default.createDirectory(at: dir, withIntermediateDirectories: true) + return dir +} + @Suite(.serialized) @MainActor struct ImportExternalTests { @@ -190,4 +200,80 @@ struct ImportExternalTests { #expect(!session.conflictAlert) #expect(session.text == "# C\n\nForeign edit.") } + + // MARK: - The guest watch (brief-32: the #67 compare's disk read) + + @Test func `external watch raises no 67 conflict on an unchanged BOM and CRLF file`() throws { + let model = PostsModel() + let dir = try watchedDir() + let ext = dir.appendingPathComponent("watched.md") + // Windows-authored file: BOM + CRLF. The open read normalizes + // (readDocument's external branch); the watch must read in the + // SAME representation or every directory event reads as #67. + try "\u{FEFF}# Title\r\n\r\nBody line.\r\n".write(to: ext, atomically: true, encoding: .utf8) + defer { try? FileManager.default.removeItem(at: dir) } + + model.openExternal(ext) + let session = try #require(model.externalSession) + #expect(session.text == "# Title\n\nBody line.\n") + + // Sibling directory events re-fire the compare (the watch observes + // the containing folder): representation alone must never raise. + model.externalWatcher.onEvent?() + #expect(!session.conflictAlert) + model.externalWatcher.onEvent?() + #expect(!session.conflictAlert) + } + + @Test func `external watch still conflicts on a real write and never re-arms after yes-reload`() throws { + let model = PostsModel() + let dir = try watchedDir() + let ext = dir.appendingPathComponent("foreign.md") + try "\u{FEFF}# Title\r\n\r\nBody line.\r\n".write(to: ext, atomically: true, encoding: .utf8) + defer { try? FileManager.default.removeItem(at: dir) } + + model.openExternal(ext) + let session = try #require(model.externalSession) + + // A REAL external modification (different content, same BOM/CRLF + // representation): the departure gate must still see it. + try "\u{FEFF}# Title\r\n\r\nRewritten underneath.\r\n".write(to: ext, atomically: true, encoding: .utf8) + model.externalWatcher.onEvent?() + #expect(session.conflictAlert) + + // Yes-reload takes the foreign content, normalized: + session.reloadFromDisk() + #expect(!session.conflictAlert) + #expect(session.text == "# Title\n\nRewritten underneath.\n") + + // The next directory event reads the same unchanged bytes — the + // false conflict must not re-arm. + model.externalWatcher.onEvent?() + #expect(!session.conflictAlert) + } + + @Test func `external watch never re-arms after keep-local on a BOM and CRLF file`() throws { + let model = PostsModel() + let dir = try watchedDir() + let ext = dir.appendingPathComponent("kept.md") + try "\u{FEFF}# Title\r\n\r\nBody line.\r\n".write(to: ext, atomically: true, encoding: .utf8) + defer { try? FileManager.default.removeItem(at: dir) } + + model.openExternal(ext) + let session = try #require(model.externalSession) + + try "\u{FEFF}# Title\r\n\r\nForeign body.\r\n".write(to: ext, atomically: true, encoding: .utf8) + model.externalWatcher.onEvent?() + #expect(session.conflictAlert) + + // No: keep local — the disk state is seen, the local buffer stays + // and stays pending. + session.keepLocal() + #expect(!session.conflictAlert) + #expect(session.text == "# Title\n\nBody line.\n") + #expect(session.saveState == .changed) + + model.externalWatcher.onEvent?() + #expect(!session.conflictAlert) + } } -- 2.36.6 From 70dd47ed8c5348a2849d2db7df00346365cb64ef Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Mon, 30 Nov 2026 22:17:13 +0100 Subject: [PATCH 2/3] fix(editor): normalize the guest watch's disk read MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The external guest's watch read disk raw while the session's text and lastFlushedText came through readDocument's normalizing external branch, so diskTextChanged saw a difference on every BOM/CRLF file and raised conflictAlert on unchanged content — re-arming after each sibling directory event and after either alert answer, blocking departures and quit until the user's own flush rewrote the file normalized (finding museion/external-watch-compares-unnormalized-text, argus cycle-6; unticketed, brief-32). Extract the external branch (BOM strip + CRLF->LF) into EditorSession.readExternalDocument(at:) — one shared normalizer, two callers: the open read (readDocument) and the watch's onEvent. The #67 compare is now normalized-to-normalized; what readDocument loads is unchanged. --- Museion/EditorSession.swift | 23 +++++++++++++++++------ Museion/PostsModelImports.swift | 9 ++++++--- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Museion/EditorSession.swift b/Museion/EditorSession.swift index 8462562..f7793e5 100644 --- a/Museion/EditorSession.swift +++ b/Museion/EditorSession.swift @@ -157,16 +157,27 @@ final class EditorSession { private static func readDocument(_ target: SessionTarget) -> String? { switch target { case let .post(id, home): - return PostStore.readBody(id: id, home: home) + PostStore.readBody(id: id, home: home) case let .externalFile(url): - guard var text = try? String(contentsOf: url, encoding: .utf8) else { return nil } - if text.hasPrefix("\u{FEFF}") { - text.removeFirst() - } - return text.replacingOccurrences(of: "\r\n", with: "\n") + readExternalDocument(at: url) } } + /// #67/brief-32: the ONE external-target disk read — raw UTF-8, BOM + /// stripped, CRLF normalized to LF. Every reader of an external file's + /// bytes goes through here (the open read above, the guest watch in + /// PostsModelImports, Yes-reload, keep-local), so the #67 compare is + /// always normalized-to-normalized: the watch used to read raw and + /// raised a false conflict on every directory event over an unchanged + /// BOM/CRLF file. + static func readExternalDocument(at url: URL) -> String? { + guard var text = try? String(contentsOf: url, encoding: .utf8) else { return nil } + if text.hasPrefix("\u{FEFF}") { + text.removeFirst() + } + return text.replacingOccurrences(of: "\r\n", with: "\n") + } + /// Target-aware write: posts → `PostStore.overwrite` (+ sidecar); /// external → the whole text, in place, no sidecar (#93). private func writeDocument() throws { diff --git a/Museion/PostsModelImports.swift b/Museion/PostsModelImports.swift index 7de61cc..534e47d 100644 --- a/Museion/PostsModelImports.swift +++ b/Museion/PostsModelImports.swift @@ -62,11 +62,14 @@ extension PostsModel { } /// #93: watch the open external file — its rescan is the #67 disk-change - /// check, reused verbatim for foreign files. PostsWatcher fires on the - /// main actor already; no re-hop needed. + /// check, reused verbatim for foreign files. The disk read goes through + /// the shared external normalizer (brief-32): the session's text is + /// normalized on open, so a raw read raised a false conflict on every + /// directory event over an unchanged BOM/CRLF file. PostsWatcher fires + /// on the main actor already; no re-hop needed. private func startExternalWatch(url: URL) { externalWatcher.onEvent = { [weak self] in - guard let self, let session = externalSession, let disk = try? String(contentsOf: url, encoding: .utf8) else { return } + guard let self, let session = externalSession, let disk = EditorSession.readExternalDocument(at: url) else { return } session.diskDidChange(diskText: disk) } externalWatcher.start(urls: [url.deletingLastPathComponent()]) -- 2.36.6 From 822b1b562eddd565c5d0b2ae42de7b5cf500a688 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Mon, 30 Nov 2026 22:19:19 +0100 Subject: [PATCH 3/3] docs: brief-32 session log, INDEX row, changelog entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Devlog records the class-site re-derivation (post-side rescan disclosed as representation-consistent with evidence), the helper location decision (EditorSession.swift beside readDocument — no ceiling pressure, no new file), and the RED/GREEN evidence chain. --- CHANGELOG.md | 2 + ...al-watch-compares-unnormalized-text_log.md | 135 ++++++++++++++++++ docs/devlog/INDEX.md | 1 + 3 files changed, 138 insertions(+) create mode 100644 docs/devlog/20261130-external-watch-compares-unnormalized-text_log.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f25ce7..c2dc78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file. The format ### Fixed +- **editor:** The external guest's file watch compares normalized text (finding `museion/external-watch-compares-unnormalized-text`, argus cycle-6; unticketed fix, brief-32) — `startExternalWatch`'s onEvent read the disk RAW while the session's `text`/`lastFlushedText` came through `readDocument`'s normalizing external branch (BOM strip + CRLF→LF), so `diskDidChange` raised the #67 conflict whenever the raw bytes differed from BOTH normalized snapshots — which they ALWAYS did for a BOM- or CRLF-carrying file, even with content unchanged. The false alarm blocked departures (select/newPost/newOutline/openExternal) and quit (the #200 gate), and re-armed after every sibling directory event (the watch observes the containing folder) and after either alert answer, until the writer's own flush rewrote the file normalized. The external branch is now the ONE shared read — `EditorSession.readExternalDocument(at:)` (raw UTF-8 → BOM strip → CRLF→LF) — called by both the open read (`readDocument`) and the watch's onEvent, so the #67 compare is normalized-to-normalized; what `readDocument` loads is unchanged (no second normalizer at the compare site, and `diskDidChange` itself is untouched). A real foreign write still raises the alert — the departure gate is not blinded. +3 tests over the real watch closure (`externalWatcher.onEvent`): no conflict on an unchanged BOM/CRLF guest (initially and across sibling events), a real write still conflicts, and no re-arm after either alert answer (yes-reload and keep-local); RED-first 3/3 at the pin (11 executed / 8 passed / 3 failed — the three new pins). Suite 720 + - **editor:** A Home repoint is a guarded document departure (finding `museion/home-repoint-retains-old-editor-target`, argus cycle-5; unticketed fix, brief-28) — Settings → Choose… committed the new Home and flipped `watchedHome` without departing the open session: the session's immutable target kept the OLD Home, so a same-slug piece in the new library made the ID-only reselect return it (autosave/Save/quit wrote the old library while structural operations resolved against the new one), the new library's rescan raised a spurious reload conflict on it, a no-collision piece was torn down by the vanish path with its dirty buffer dropped, and a card scan from the old library could land on the new library's same-slug piece. #198's departure gate never saw this seam. Now `PostsModel.repoint(to:)` runs the SAME gate (`sessionMayDepart`'s three legs — unanswered conflict, failed flush, never-loaded retype; no parallel gate) BEFORE anything commits: a refusal changes nothing (preference, binding, the session's target and buffer stay; the #198 reason spoken once, the #200 quit-refusal posture, since no Posts strip is in sight from Settings), an acceptance lands the edits on the old library first and clears the departed piece's state — nothing auto-reopens. Document identity is (Home, ID) everywhere (`EditorSession.targets`, `PostsModel.openSessionTargets`): every bare `session.postID ==` comparison is retired across select, the structural rail, conversion, the pass guard, Micropub and the card refresh, and async continuations re-validate identity at COMPLETION (the card-scan hop-back; `rescan`'s stale-Home verdict is hoisted to cover the list, the revision and the #67 text, not just the vanish check). The in-memory draft survives a repoint (no Home until first save). +9 tests over a two-Home same-slug rig (the three refusal legs with ordering pinned, same-slug open + save on flush AND quit, no-collision cleanup, stale card scan via the per-model `scanPieceCards` seam — mutation-checked, pass after repoint; review r1: the hoisted `rescan` stale-Home verdict via the `scanLibrary` seam — mutation-checked — and the draft-survives repoint), RED-first 6/6 at the pin. Suite 717 (unticketed fix, brief-28) - **editor:** Quit no longer bypasses the document departure gate (#200, follow-up to the #198 audit) — `PostsModel.shutdown()` flushed both sessions best-effort and ignored the results, so quitting with an unanswered reload-conflict alert wrote the local text over the foreign disk body (`flush()` holds for conflicts only in the debounce, never itself), and a failed quit-time flush silently dropped the only copy of the edits. Quit now routes through the same departure gate as navigation (`documentsMayDepart` → `sessionMayDepart`): an unanswered conflict never writes over the foreign body, and the failed-flush-at-quit posture is BLOCK QUIT — `WritingLockAppDelegate.applicationShouldTerminate` refuses termination with one spoken reason (running before the Cold Turkey ask, so a refusal never strands a walked-away block), pinned at the pure `quitReply(posts:)` seam. Finish-audit additions: a never-loaded session's retyped words refuse too (their flush is a vacuous success — the same gap closed for navigation), and the external guest's quit-time flush is pinned. +5 tests, all flip-verified. Suite 708 diff --git a/docs/devlog/20261130-external-watch-compares-unnormalized-text_log.md b/docs/devlog/20261130-external-watch-compares-unnormalized-text_log.md new file mode 100644 index 0000000..fe14aa1 --- /dev/null +++ b/docs/devlog/20261130-external-watch-compares-unnormalized-text_log.md @@ -0,0 +1,135 @@ +# brief-32 — the external guest's watch compares normalized text + +> **Date:** 2026-11-30 +> **Type:** fix (unticketed) +> **Reference:** finding `museion/external-watch-compares-unnormalized-text` (argus cycle-6 bugs pass, `museion-bugs.md` finding 1; MEDIUM, certain) — branch `fix/external-watch-compares-unnormalized-text` off `main` at `5341c4ee53291ad74b30e812ca84fc5cbdbf990b` + +## Goal + +`startExternalWatch`'s onEvent read the open external guest's disk text RAW +(`String(contentsOf: url, encoding: .utf8)`, PostsModelImports.swift:69) and +handed it straight to `session.diskDidChange(diskText:)` — no BOM strip, no +CRLF→LF. But the session's `text` and `lastFlushedText` came through +`readDocument`'s external branch (EditorSession.swift:162-166), which strips a +`\u{FEFF}` prefix and maps `\r\n`→`\n`. `diskDidChange` raises the #67 +`conflictAlert` when the handed text differs from BOTH `lastFlushedText` and +`text` — which it ALWAYS did for a file whose bytes carry a BOM or CRLF, even +with content unchanged. + +Blocking surface: the alert makes `sessionMayDepart` refuse → `select`, +`newPost`, `newOutline`, `openExternal` (via `departOpenDocuments`) and quit +(via `documentsMayDepart` riding `WritingLockAppDelegate`) all block. Both +alert answers clear the state for the moment, but the watcher observes the +containing DIRECTORY (PostsModelImports.swift:72), so the next sibling-file +event re-fires the raw compare and re-arms the false conflict — until the +user's own flush rewrites the file normalized. A quit-blocking false alarm +that keeps coming back. + +## Class-site re-derivation (pattern-exhaustive, from root cause) + +Re-derived from the pin myself (basis: `grep -rn 'diskDidChange|readDocument| +readBody|String(contentsOf' Museion/*.swift` plus a full read of the seam): +every site that feeds `diskDidChange` or seeds session text — + +| # | Site | Read path | Verdict | +|---|------|-----------|---------| +| 1 | PostsModelImports.swift:69 — the external watch's onEvent | raw `String(contentsOf:)` | **the defect** (fixed) | +| 2 | PostsModelWatcher.swift:157/197 — the post-side rescan's #67 read | `PostStore.readBody` | representation-consistent: `readDocument`'s POST branch reads through the same `readBody` (EditorSession.swift:160), so both sides of that compare are byte-identical reads of the same file | +| 3 | EditorSession.swift:136 (init seed), :269 (reloadFromDisk), :316 (keepLocal) | `readDocument` | the normalized baseline itself — all three stay on it | +| 4 | Sites seeding session text otherwise: `edit(_:)` (the editor surface), `adoptText(_:)` (Fix Card apply, caller-computed) | — | not disk reads; not in the class | + +No sites beyond the scanner's seed table were found; the one seeded site +believed unexposed (the post-side rescan, #2) is disclosed above with its +consistency evidence. The other `String(contentsOf:)` reads in +`PostsModelOutline`/`Micropub`/`FixCardStore`/`PostStore` internals feed other +consumers, never the #67 compare. + +## What Was Done + +**ONE shared normalization for the external read path — two callers, no +second normalizer at the compare site:** + +- `EditorSession.readExternalDocument(at:) -> String?` (EditorSession.swift, + internal static, extracted byte-identically from `readDocument`'s external + branch): raw UTF-8 read → BOM prefix strip → CRLF→LF. This is now the ONE + external-target disk read — `readDocument`'s external case calls it, and + the guest watch calls it. `reloadFromDisk`/`keepLocal` already read through + `readDocument`, so all four external readers (open, watch, yes-reload, + keep-local) funnel through the same helper: the #67 compare is + normalized-to-normalized by construction. +- `PostsModelImports.startExternalWatch`'s onEvent now reads + `EditorSession.readExternalDocument(at: url)` instead of the raw + `String(contentsOf:)`. Nothing else in the closure changes. +- `readDocument` itself only re-dispatches (both switch cases are now single + expressions; swiftformat's `redundantReturn` rewrites it to the implicit + switch-expression form — syntax-only, semantics identical). **What + `readDocument` loads is unchanged**: the fix adds a caller, not a second + normalizer. `diskDidChange`'s compare is untouched — deliberately: a + normalize-at-compare site would be a parallel second normalizer, exactly + what the fix direction rules out. + +**Helper location decision** (called by the brief): it lives in +EditorSession.swift beside `readDocument`/`writeDocument`. The session owns +document reading (the `readDocument`/`writeDocument` pair is the existing +contract), no new file was warranted for 11 lines, and +`file_length`/`type_body_length` are disabled in this repo's `.swiftlint.yml` +— no ceiling pressure either way. + +**Tests (RED-first):** three pins in `ImportExternalTests` driving the REAL +watch closure (`model.externalWatcher.onEvent?()` — the exact code a +directory event runs), over a dedicated temp dir (the watch observes the +containing folder, so the guest lives where no sibling test writes): + +1. `external watch raises no 67 conflict on an unchanged BOM and CRLF file` — + BOM+CRLF guest (`"\u{FEFF}# Title\r\n\r\nBody line.\r\n"`) opened through + `openExternal`; pins the normalized open (`session.text`), then fires the + watch closure twice: no alert, ever. +2. `external watch still conflicts on a real write and never re-arms after + yes-reload` — the load-bearing negative: a REAL foreign write (different + content, same BOM/CRLF representation) still raises the alert (the + departure gate must not go blind); yes-reload takes the foreign content + normalized; the next watch event over the unchanged file does NOT re-arm. +3. `external watch never re-arms after keep-local on a BOM and CRLF file` — + the No answer's leg: keep-local sees the (normalized) disk state, the + local buffer stays and stays pending (`saveState == .changed`); no + re-arm. + +## Verification + +- **RED at the pinned base** (5341c4ee + tests only, commit b69ddd3's tree): + `./scripts/full-test.sh start -- -only-testing:MuseionTests/ImportExternalTests` + → run dir `20261130T211504Z-Museion`: **11 executed / 8 passed / 3 failed** + (xcodebuild exit 65; all three failures are the new pins on + `!session.conflictAlert`), 164 SwiftCompile lines (cold build, real + compile — #197 clear). Suite-name filter per #195/#31/#134 (the file also + holds the suite; filter by SUITE name, never file name). +- **GREEN targeted** (fix tree, pre-format-pass): + same filter, run dir `20261130T211616Z-Museion`: **11 executed / 11 + passed / 0 failed** (xcodebuild exit 0), 59 SwiftCompile lines. +- **GREEN full rail** at the fix commit 70dd47e (exact committed tree, + post-format): `./scripts/full-test.sh start` → run dir + `20261130T211720Z-Museion`: **720 executed / 720 passed / 0 failed / + 0 skipped, xcodebuild exit 0**, 3 SwiftCompile lines (incremental rebuild + of the touched files — nonzero, #197 clear). 720 = the 717 baseline + the + 3 new pins; the 717 rail re-covers the untouched open path (acceptance 3). +- **swiftformat** `.`: 0/152 files formatted, 278 skipped, rc 0. +- **swiftlint** `.`: 0 violations, 0 serious, 141 files, rc 0. +- GitNexus impact analysis: not run — no `.gitnexus/`, no gitnexus binary, no + `.claude/skills/gitnexus/` in this clone (root AGENTS.md's GitNexus block + is stale, as the cycle-6 audit disclosed); the manual caller trace above is + the impact analysis. No AGENTS.md file was written by this session + (consent-gated): the intended root-window row and the Museion/AGENTS.md + EditorSession-bullet delta ship as the owner-apply patch + `~/daedalus-builds/museion/brief-32-agents-owner-apply.patch` + (`git apply --check` clean at the branch head). + +Evidence classes: failing-test proof (RED 3/3 at base), coupled-run proof +(targeted GREEN + full-rail GREEN at the committed head), structural proof +(caller-trace table above). + +## Commits + +- b69ddd3 `test(editor): pin the external watch's false 67 conflict` (RED, + pushed first) +- 70dd47e `fix(editor): normalize the guest watch's disk read` +- docs: CHANGELOG [Unreleased] entry + this log + INDEX row diff --git a/docs/devlog/INDEX.md b/docs/devlog/INDEX.md index bd4ce5e..42b5bbc 100644 --- a/docs/devlog/INDEX.md +++ b/docs/devlog/INDEX.md @@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa | Date | Type | File | Summary | |------|------|------|---------| +| 2026-11-30 | fix | [20261130-external-watch-compares-unnormalized-text_log.md](20261130-external-watch-compares-unnormalized-text_log.md) | Unticketed fix (brief-32, argus cycle-6): the external guest's watch reads through the ONE shared external normalizer — the false #67 conflict on unchanged BOM/CRLF files (re-arming after sibling events and alert answers, blocking departures/quit) is gone; real foreign writes still raise; RED-first 3 pins over the real watch closure; rail 720/720 | | 2026-11-23 | fix | [20261123-home-repoint-retains-old-editor-target_log.md](20261123-home-repoint-retains-old-editor-target_log.md) | Unticketed fix (brief-28, argus cycle-5): a Home repoint is a guarded document departure — the gate runs before the preference/binding commit, the refusal keeps Home A and the buffers; document identity is (Home, ID) across the model and re-checked at async completion (card scan, rescan — both mutation-checked); RED-first 6/6 at ca265d3b, review r1 +2 pins (rescan hoist, draft survives); rail 717/717 | | 2026-11-19 | fix | [20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md](20261119-issue200-gate-quit-time-flushes-through-departure-gate_log.md) | Quit routes through the departure gate (#200): conflict-held shutdown, BLOCK-QUIT at applicationShouldTerminate, never-loaded-retype guard; finish-audit fixes; rail 708/708 | | 2026-11-17 | fix | [20261117-acp-backpressure-defeats-timeout-and-shutdown_log.md](20261117-acp-backpressure-defeats-timeout-and-shutdown_log.md) | Unticketed fix (brief-27, argus cycle-4): stdin writes move to a dedicated writer queue — engine backpressure can no longer defeat the request deadline, Stop, or a bounded reaping close; neverRead/serverPing fake modes, 3 RED-first smokes + healthy-contract pin, suite 697/697 | -- 2.36.6