Skip to content

Wave 4 / Search: docs say index lives in <root>/.skim but it is in ~/Library/Caches/skim/search/<hash> #381

Description

@dean0x

Wave: wave4-search-followups

flowchart LR
  T372["1. #372 lexical AND-intersect"]
  T373["2. #373 FileId skew"]
  T374["3. #374 AST verify gate"]
  T375["4. #375 remove index positional"]
  T377["5. #377 weights notice"]
  T380["6. #380 binarize + positional"]
  T376["7. #376 CRC marker"]
  T379["8. #379 worktree staleness"]
  T378["9. #378 risk volume weighting"]
  T381["10. #381 index-location docs"]
  T372 --> T373 --> T374 --> T375 --> T377 --> T380 --> T376 --> T379 --> T378 --> T381
  T373 -. requires .-> T374
  T373 -. requires .-> T380
  T380 -. requires .-> T376
  T375 -. requires .-> T377
  classDef cur fill:#dcffe4,stroke:#1a7f37,stroke-width:3px;
  class T381 cur;
Loading

Solid arrows = integration order into wave/wave4-search-followups. Dotted = hard dependency. One branch per ticket; this ticket highlighted.

Found via dog-fooding round 2 (2026-06-27, branch wave/wave4-search), tracked under #174 Wave 4. Priority: P2.

Problem: Docs (CLAUDE.md and user-facing) state the search index / search.db live in <root>/.skim/. Actually all artifacts (index.skidx/.skpost/.skfiles, ast_index.*, temporal.db) live in the OS cache dir ~/Library/Caches/skim/search/<hash>/ (hash of the canonical root). This mismatch cost real debugging time during dog-fooding.

Secondary: varying --root path spelling (trailing slash, etc.) hashes to a different dir and silently builds a duplicate index — observed 6 skim-search index dirs.

Best fix: correct the docs to the real location (and the SKIM_CACHE_DIR relationship); canonicalize the root path before hashing so equivalent roots map to one index dir; optionally print the resolved index path under --stats/--debug.

Refs: #174.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsearchCode search featurewave-4Wave 4: Compound queries

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions