museion/library-search: test coverage + injectable seam for landed #144 #157

Merged
AlexKucera merged 3 commits from feat/library-search into main 2026-11-04 09:05:00 +01:00
3 Commits
Author SHA1 Message Date
AlexKucera 5c18a24d4e docs(#144): fold held-branch log; extend row 12
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
Exactly one #144 devlog row and one log remain: the held branch's
distinct content (raw-tab toolchain gotcha, runner-contention record)
folds into the canonical landing log, the no-unit-test decision row
is superseded by the rework's seam + 7-pin suite, Files Changed gains
the rework rows, and the AGENTS.md catalog entries are held for
consent (session write-protection). No CHANGELOG change — the landed
entry stands.
2026-11-03 22:28:35 +01:00
AlexKucera 6c57dc075b test(library): pin search seam, 7 cases (#144)
CI / ci (push) Canceled after 0s
The held branch's 7-pin suite, carried byte-identical (blob
23686761de): ranking + scan-order
preservation (the [a, c, b, d] discriminator), body-only match,
title+body dedup into the title half, case-insensitivity on both
fields, empty/whitespace query, unreadable body, and the real
readBody rail over a temp Home (frontmatter never matches).
Test coverage for the landed #144, closed by 53c314d.
2026-11-03 22:17:50 +01:00
AlexKucera 08005d322f refactor(library): extract search seam (#144)
CI / ci (push) Canceled after 0s
Mount the pure LibrarySearch.results(for:in:bodyOf:) core inside the
landed structured scan: the nonisolated async search() keeps its shape
(off-main, same task, .task(id: trimmedQuery) untouched) and now
delegates to the seam with PostStore.readBody as the injected reader;
the reader's per-piece Task.isCancelled guard preserves the sweep's
between-files cancellation of body reads. No behavior change vs
53c314d; the seam exists so the ranking logic is testable.
2026-11-03 22:17:40 +01:00