From 97712fbacb637e472e964a51e92cf44f5d2fd942 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Mon, 23 Nov 2026 20:26:54 +0100 Subject: [PATCH] =?UTF-8?q?docs(brief-28):=20name=20the=20filter=20trap=20?= =?UTF-8?q?precisely=20=E2=80=94=20file=20name=20=E2=89=A0=20suite=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PostsModelTests.swift file holds free-function @Tests AND the PostsModelWriteRailTests suite; the filter matched neither. The devlog row said 'free functions' alone, which undersold it. --- .../20261123-home-repoint-retains-old-editor-target_log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/devlog/20261123-home-repoint-retains-old-editor-target_log.md b/docs/devlog/20261123-home-repoint-retains-old-editor-target_log.md index 732bb6d..2b56fd9 100644 --- a/docs/devlog/20261123-home-repoint-retains-old-editor-target_log.md +++ b/docs/devlog/20261123-home-repoint-retains-old-editor-target_log.md @@ -115,7 +115,7 @@ path (`repoint(to:)` then `bind`). | Problem | Root Cause | Fix | |---------|------------|-----| | Stale-scan pin's park probe never passed (5 s poll timeout) | `pollUntil` re-evaluates its `where !condition()` per iteration WITHOUT sleeping when true, and `DispatchSemaphore.wait` consumes — two parked scans drained the count in two iterations, the final `#expect(condition())` saw zero | A non-consuming `ParkedFlag` (NSLock box, `@unchecked Sendable`); the park itself is a bounded `release.wait(timeout: .now() + 30)` so a failed test never leaks a parked cooperative thread | -| `-only-testing:MuseionTests/PostsModelTests` matched ZERO tests in a filtered run (17 executed, not more) | Those `@Test`s are free functions; MuseionTests/AGENTS.md: "Suite-name filters do not run free functions" — the rail passed only because the sibling filters matched | The mid-pass pin is a `PostsModelWriteRailTests` member and ran in the FULL rail (715); no verification claim was taken from the filtered run for it | +| `-only-testing:MuseionTests/PostsModelTests` matched ZERO tests in a filtered run (17 executed, not more) | The filter names a FILE, not a suite: `PostsModelTests.swift` holds free-function `@Test`s (unfilterable by suite) AND the `@Suite("write rail #179") struct PostsModelWriteRailTests`; "PostsModelTests" matches neither, and the rail's zero-match guard stays silent when sibling filters match | Filter by SUITE name (`grep '@Suite(' `), never by file name. The mid-pass pin ran in the FULL rail (715) under its suite; no verification claim was taken from the filtered run for it | | Vanish-path rewrite first tore down the CAPTURED session | `openSessionTargets(id)` reads `session` now while `openSession?.teardown` hit the pre-scan object — a same-id reopen mid-scan would leave the live session armed | `if let open = session, open.targets(postID: id, home: home)` — the original shape (current session), identity-matched | | `swiftlint:disable:next large_tuple` flagged superfluous | The return type sat on the `) ->` line, not the `func` line the `:next` covers | Signature on one line so the tuple starts on the covered line (PostStore.swift:259 precedent) | | A context-fuzzy patch duplicated "The refusal" in a doc comment | The edit span started mid-line | Re-read and re-patched the two lines |