Beagle SCM
CODE-026: index-accelerate history + search consumers (blocked on GRAF-002/SPOT-003)
Deps: BLOCKED on landing two worktree modules into be/ — GRAF-002
shared/commitindex.js (lazy commit-DAG index: p1 parentage / p2 commit→tree /
p3 tree-child edges / p4 commit-ts) and SPOT-003 shared/spotidx.js (trigram
reject-filter). Both are put-staged, NOT in be/ yet. Perf only. See Beagle indices.
Context
- These consumers do full O(history) / O(tree) / O(files) walks that a landed
index would answer index-only; the indexes exist as worktree modules but
are not merged, so today the walks are the only option.
- commitindex p1-p4 (GRAF-002) serves parentage / commit→tree / tree-child /
ts; spotidx (SPOT-003) is the trigram pre-filter for tree-wide search.
Goals
- Once the indexes land, retarget each walk below onto the index; keep the
full-walk path as the cold/miss fallback the indexes already assume.
Constraints
- Do NOT re-implement either index here — consume commitindex / spotidx once
landed. be/ JS only. Each retarget is behavior-preserving (same results,
fewer object reads), repro-gated on a warm-vs-cold walk-count.
WIP
TODOs
Blockers and bummers
- All items blocked until GRAF-002 / SPOT-003 merge into be/; unblock this
ticket when they land (verify via
jab log, not the worktree READMEs).
Outcome
- Blocked. Suggested commit (per item, post-merge):
CODE-026: <consumer> via commitindex/spotidx.