docs(#144): fold held-branch log; extend row 12
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
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.
This commit is contained in:
1 parent
6c57dc075b
commit
5c18a24d4e
2 files changed
+10
-2
No files matched your search
@@ -15,6 +15,8 @@ Ship FEAT-004 (Argus cycle-1 smallest-win, effort S): search across post titles
|
|||||||
- `postRow(_:)` extracted (`LibraryPostRow` + full context menu) — sections and search results render the same row; results carry Rename/Convert/Move/Archive/Trash too.
|
- `postRow(_:)` extracted (`LibraryPostRow` + full context menu) — sections and search results render the same row; results carry Rename/Convert/Move/Archive/Trash too.
|
||||||
- DOX closeout: `Museion/AGENTS.md` PostsPaneView entry gains the `**#144:**` line (field, debounce, off-main posture, frontmatter exclusion, ordering, both render surfaces).
|
- DOX closeout: `Museion/AGENTS.md` PostsPaneView entry gains the `**#144:**` line (field, debounce, off-main posture, frontmatter exclusion, ordering, both render surfaces).
|
||||||
- Verification: build SUCCEEDED; suite 574/574 (xcresult executed count); swiftformat idempotent; swiftlint adds zero error-severity violations.
|
- Verification: build SUCCEEDED; suite 574/574 (xcresult executed count); swiftformat idempotent; swiftlint adds zero error-severity violations.
|
||||||
|
- Rework (same day, 22:00 dispatch — the dispatched branch reduced onto this landing, no behavior change): `Museion/LibrarySearch.swift` extracts the pure core `results(for:in:bodyOf:)` (nonisolated enum, injected `@Sendable` reader) and `search()` mounts it inside the structured scan, shape unchanged — `.task(id: trimmedQuery)` untouched, per-piece cancellation now carried by the reader's `Task.isCancelled` guard (a superseded sweep's body reads stop between files; the in-memory title walk completes and the caller's guard discards its result).
|
||||||
|
- Rework verification: build SUCCEEDED (platform=macOS); targeted suite 7/7 (xcresult: totalTestCount 7, passed 7, failed 0, skipped 0 — real hosted runner); ranking flip (`bodyHits + titleHits`) fails exactly the ranking pin (6 passed / 1 failed), restored and re-verified 7/7; `swiftformat --lint` 0/3 files; swiftlint adds nothing (PostsPaneView.swift keeps its pre-existing `file_length` warning at 614 lines); full suite 588/589 — the single failure is `MuseionUITests.testAppLaunches` (activation flake: "Failed to activate application … (current state: Running Background)", reproduced twice, untouched target; the hosted unit tests — all 7 new pins included — ran green inside the launched app, so the launch path itself is proven).
|
||||||
|
|
||||||
## Decisions & Rationale
|
## Decisions & Rationale
|
||||||
|
|
||||||
@@ -25,7 +27,7 @@ Ship FEAT-004 (Argus cycle-1 smallest-win, effort S): search across post titles
|
|||||||
| `postRow(_:)` extraction | Search results lacked the context menu (Rename/Move/etc. unreachable from results); one row+menu source for both sites beats duplicating the menu block. |
|
| `postRow(_:)` extraction | Search results lacked the context menu (Rename/Move/etc. unreachable from results); one row+menu source for both sites beats duplicating the menu block. |
|
||||||
| Stale-while-revalidate during debounce (`matches` nils only on clear) | Spec's exact code: later keystrokes keep showing prior results through the 250 ms window instead of a spinner flicker; ProgressView is the first-search state. |
|
| Stale-while-revalidate during debounce (`matches` nils only on clear) | Spec's exact code: later keystrokes keep showing prior results through the 250 ms window instead of a spinner flicker; ProgressView is the first-search state. |
|
||||||
| No `readBody` size gate | `Post.scan` already reads every post.md unbounded at startup — search adds no new exposure class; a gate would change shared-function behavior beyond this diff. Ceiling documented as a `ponytail:` note with the `PostScanCache`-style memo upgrade path (LearningsIndex posture). |
|
| No `readBody` size gate | `Post.scan` already reads every post.md unbounded at startup — search adds no new exposure class; a gate would change shared-function behavior beyond this diff. Ceiling documented as a `ponytail:` note with the `PostScanCache`-style memo upgrade path (LearningsIndex posture). |
|
||||||
| No unit test for the filter | View-local state, no pure logic added — the spec's verification is manual smoke; the repo has no component-render harness (named unpinned delta in the audit report). |
|
| No unit test for the filter → superseded by the rework's seam + suite | Landing posture: view-local state, no pure logic added, no component-render harness (manual smoke). The rework extracts the pure core with an injected reader — ranking/partition/stripping are now pinned (`MuseionTests/LibrarySearchTests.swift`, 7 pins); the view layer stays untested per house convention. |
|
||||||
| Two `PostsLibraryColumn` instances (unfocused layout + focus reveal) keep separate query state | Matches #108's documented per-view `collapsed` posture; only one is alive at a time; AGENTS.md row promises availability, not shared state. Reviewer confirmed fine. |
|
| Two `PostsLibraryColumn` instances (unfocused layout + focus reveal) keep separate query state | Matches #108's documented per-view `collapsed` posture; only one is alive at a time; AGENTS.md row promises availability, not shared state. Reviewer confirmed fine. |
|
||||||
|
|
||||||
## Gotchas & Fixes
|
## Gotchas & Fixes
|
||||||
@@ -37,6 +39,8 @@ Ship FEAT-004 (Argus cycle-1 smallest-win, effort S): search across post titles
|
|||||||
| swiftlint gate exits 2 repo-wide | Pre-existing: 289 violations / 72 serious at HEAD, identical with the diff; earlier chained runs piped through `tail` masked the exit code | Proven pre-existing via stash control (same 289/72); named here and in the commit; my file adds zero errors |
|
| swiftlint gate exits 2 repo-wide | Pre-existing: 289 violations / 72 serious at HEAD, identical with the diff; earlier chained runs piped through `tail` masked the exit code | Proven pre-existing via stash control (same 289/72); named here and in the commit; my file adds zero errors |
|
||||||
| GitNexus `detect-changes` said "No changes detected" despite a dirty tree | Stale index after an earlier incremental analyze | Re-ran `analyze` (full, 5,820 nodes) → detect-changes then reported the true scope (`PostsLibraryColumn` + docs) |
|
| GitNexus `detect-changes` said "No changes detected" despite a dirty tree | Stale index after an earlier incremental analyze | Re-ran `analyze` (full, 5,820 nodes) → detect-changes then reported the true scope (`PostsLibraryColumn` + docs) |
|
||||||
| Review flag: comment claimed `.task(id:)` cancels the in-flight scan | `Task.detached` never receives parent cancellation — the prose promised an invariant the code didn't have | Structured-concurrency fix above; the comment is now true |
|
| Review flag: comment claimed `.task(id:)` cancels the in-flight scan | `Task.detached` never receives parent cancellation — the prose promised an invariant the code didn't have | Structured-concurrency fix above; the comment is now true |
|
||||||
|
| Test source rejected as "Unprintable ASCII character" (held branch, LibrarySearchTests.swift:56:43) after earlier green runs | A JSON-transported patch rode a decoded TAB byte into the whitespace-query string literal — Swift rejects raw tabs in single-line string literals, and the transport decodes `\t`/`\n` escapes | The literal ships as the two-character `\t` escape (held-branch commit 7e75d53): compose Swift string-escape bytes via chr(92) when patching through JSON transports. The rework carries the fixed file byte-identical (blob 2368676) |
|
||||||
|
| Held branch's full-suite attempts dispatched ZERO tests ×3 (04:11–04:41: automation-mode timeout, runner hung before connection) | Three concurrent xcodebuild test runners (library-search + helm + vivarium) contending for testmanagerd — the #30 contention family | #134 lesson applied: stopped retrying, captured the seam runs before the wedge (7/7 at 02:13; flip run 1/7 as intended at 02:15). Channel recovered by 20:13 (review re-run 7/7); the rework's full suite ran clean apart from the UI-launch flake above |
|
||||||
|
|
||||||
## Files Changed
|
## Files Changed
|
||||||
|
|
||||||
@@ -45,12 +49,16 @@ Ship FEAT-004 (Argus cycle-1 smallest-win, effort S): search across post titles
|
|||||||
| `Museion/PostsPaneView.swift` | +164/−23: search state, field, results, empty state, structured scan, `postRow(_:)` extraction |
|
| `Museion/PostsPaneView.swift` | +164/−23: search state, field, results, empty state, structured scan, `postRow(_:)` extraction |
|
||||||
| `Museion/AGENTS.md` | `**#144:**` line on the PostsPaneView entry (DOX closeout) |
|
| `Museion/AGENTS.md` | `**#144:**` line on the PostsPaneView entry (DOX closeout) |
|
||||||
| `AGENTS.md` | write-log window refresh + gitnexus index-stats churn |
|
| `AGENTS.md` | write-log window refresh + gitnexus index-stats churn |
|
||||||
|
| `Museion/LibrarySearch.swift` | rework: the pure seam extracted from the scan (nonisolated enum, injected reader) |
|
||||||
|
| `Museion/PostsPaneView.swift` | rework: `search()` mounts the seam inside the structured task — no behavior change |
|
||||||
|
| `MuseionTests/LibrarySearchTests.swift` | rework: 7-pin suite, byte-identical from the held branch |
|
||||||
|
|
||||||
## Open Items & Next Steps
|
## Open Items & Next Steps
|
||||||
|
|
||||||
- [ ] Deferred: re-filter when a watcher rescan lands while a query sits unchanged (any keystroke refreshes; a later slice if it bites)
|
- [ ] Deferred: re-filter when a watcher rescan lands while a query sits unchanged (any keystroke refreshes; a later slice if it bites)
|
||||||
- [ ] Deferred: `folder(of:)` re-walk per piece per sweep — `PostScanCache`-style body memo if it ever measures hot (named in `search()`'s ponytail note; see the `local-store-caching` skill)
|
- [ ] Deferred: `folder(of:)` re-walk per piece per sweep — `PostScanCache`-style body memo if it ever measures hot (named in `search()`'s ponytail note; see the `local-store-caching` skill)
|
||||||
- [ ] Manual smoke: type a known word into Search posts → flat match list; clear → sections return; right-click a result → full menu
|
- [ ] Manual smoke: type a known word into Search posts → flat match list; clear → sections return; right-click a result → full menu
|
||||||
|
- [ ] Held for consent: `Museion/AGENTS.md` + `MuseionTests/AGENTS.md` catalog entries for `LibrarySearch.swift` / `LibrarySearchTests.swift` (text in the branch handoff) — the implementation session's write-protection blocks AGENTS.md writes without a live user; apply or approve
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Complete history of session logs in this directory, newest first. One-line summa
|
|||||||
| 2026-11-03 | issue | [20261103-issue58-voice-payload-landed_log.md](20261103-issue58-voice-payload-landed_log.md) | #58: Swadia VOICE payload — new owned-insight skill, retelling/next-line cards, interview-first stance, allocation row P1 10 · P2 9 · Chat 11 |
|
| 2026-11-03 | issue | [20261103-issue58-voice-payload-landed_log.md](20261103-issue58-voice-payload-landed_log.md) | #58: Swadia VOICE payload — new owned-insight skill, retelling/next-line cards, interview-first stance, allocation row P1 10 · P2 9 · Chat 11 |
|
||||||
| 2026-11-03 | issue | [20261103-issue147-app-target-lint-clean-five-error-spots_log.md](20261103-issue147-app-target-lint-clean-five-error-spots_log.md) | #147: last five lint error spots — sidecar to extension, renames, guard wraps, PostStoreTests split; two flaky-test root causes fixed |
|
| 2026-11-03 | issue | [20261103-issue147-app-target-lint-clean-five-error-spots_log.md](20261103-issue147-app-target-lint-clean-five-error-spots_log.md) | #147: last five lint error spots — sidecar to extension, renames, guard wraps, PostStoreTests split; two flaky-test root causes fixed |
|
||||||
| 2026-11-03 | issue | [20261103-issue146-postsmodel-split-under-lint-ceilings_log.md](20261103-issue146-postsmodel-split-under-lint-ceilings_log.md) | #146: PostsModel split under lint ceilings — six extensions to three domain files, watcher to file-scope extension; pure move, 574 green |
|
| 2026-11-03 | issue | [20261103-issue146-postsmodel-split-under-lint-ceilings_log.md](20261103-issue146-postsmodel-split-under-lint-ceilings_log.md) | #146: PostsModel split under lint ceilings — six extensions to three domain files, watcher to file-scope extension; pure move, 574 green |
|
||||||
| 2026-11-03 | issue | [20261103-issue144-library-search-across-titles-and-bodies_log.md](20261103-issue144-library-search-across-titles-and-bodies_log.md) | #144: library search — trimmed-id debounce, structured off-main body scan (audit: detached → nonisolated), postRow menu for results |
|
| 2026-11-03 | issue | [20261103-issue144-library-search-across-titles-and-bodies_log.md](20261103-issue144-library-search-across-titles-and-bodies_log.md) | #144: library search — trimmed-id debounce, structured off-main body scan (audit: detached → nonisolated), postRow menu for results; rework: LibrarySearch seam + 7-pin suite |
|
||||||
| 2026-11-03 | issue | [20261103-issue143-scan-parse-cache-incremental-rescan_log.md](20261103-issue143-scan-parse-cache-incremental-rescan_log.md) | #143: path+mtime+size parse memo — rescans re-read only changed post.md; pre-read stamp closes the overlap race; equality-gated posts assignment |
|
| 2026-11-03 | issue | [20261103-issue143-scan-parse-cache-incremental-rescan_log.md](20261103-issue143-scan-parse-cache-incremental-rescan_log.md) | #143: path+mtime+size parse memo — rescans re-read only changed post.md; pre-read stamp closes the overlap race; equality-gated posts assignment |
|
||||||
| 2026-11-03 | issue | [20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md](20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md) | #142: single-line edits re-key folds in place; chrome becomes per-glyph layers — no more per-keystroke full-document restyle/raster |
|
| 2026-11-03 | issue | [20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md](20261103-issue142-fold-rekey-paragraph-scoped-chrome-layers_log.md) | #142: single-line edits re-key folds in place; chrome becomes per-glyph layers — no more per-keystroke full-document restyle/raster |
|
||||||
| 2026-11-02 | issue | [20261102-issue141-image-drop-illustration-ingest_log.md](20261102-issue141-image-drop-illustration-ingest_log.md) | Image drop → assets/ ingest at drop point; window-destination routing, firstRect viewport-band solve, finish-audit fixes |
|
| 2026-11-02 | issue | [20261102-issue141-image-drop-illustration-ingest_log.md](20261102-issue141-image-drop-illustration-ingest_log.md) | Image drop → assets/ ingest at drop point; window-destination routing, firstRect viewport-band solve, finish-audit fixes |
|
||||||
|
|||||||
Reference in new issue
Block a user