test(posts): pin library write-rail seam (#179)
CI / ci (push) Canceled after 0s

RED: PostsModelRail skeleton (one internal seam pairing a library write
with exactly one rescan + the error strip, three error routings) and the
seam-observability suite. On the base every verb hand-copies the
write-then-rescan-then-strip choreography, so nothing reaches the rail:
executed 3 / failed 3, events [] at every verb. Fixes #179
This commit is contained in:
AlexKucera committed 2026-11-10 02:41:05 +01:00
1 parent 627ecf515e
commit 8c5ceffa3c
3 files changed
+211

No files matched your search

+5
View File
@@ -171,6 +171,11 @@ final class PostsModel {
/// Last failed-op message surfaced in the editor (nil = clean).
/// #146: setter internal — the split-out domain extensions set it.
var lastError: String?
/// #179: rail observability — the write-rail suite drives every
/// store-write verb and asserts one `.write` + one `.pairedRescan`
/// each. Nil in production (no observer, no cost).
@ObservationIgnored
var onRailEvent: (@MainActor (PostsModelRailEvent) -> Void)?
/// Home the watcher is bound to; also the rescan target.
private var watchedHome: URL?
private var watcher = PostsWatcher()