···113113- `[ingest] implement backfill buffer replay`
114114- `[api] add accurate count parameter to stats`
115115- `[db] migrate block storage to msgpack`
116116+117117+<!-- gitnexus:start -->
118118+# GitNexus — Code Intelligence
119119+120120+This project is indexed by GitNexus as **hydrant** (599 symbols, 1624 relationships, 51 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
121121+122122+> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
123123+124124+## Always Do
125125+126126+- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
127127+- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
128128+- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
129129+- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
130130+- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.
131131+132132+## When Debugging
133133+134134+1. `gitnexus_query({query: "<error or symptom>"})` — find execution flows related to the issue
135135+2. `gitnexus_context({name: "<suspect function>"})` — see all callers, callees, and process participation
136136+3. `READ gitnexus://repo/hydrant/process/{processName}` — trace the full execution flow step by step
137137+4. For regressions: `gitnexus_detect_changes({scope: "compare", base_ref: "main"})` — see what your branch changed
138138+139139+## When Refactoring
140140+141141+- **Renaming**: MUST use `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` first. Review the preview — graph edits are safe, text_search edits need manual review. Then run with `dry_run: false`.
142142+- **Extracting/Splitting**: MUST run `gitnexus_context({name: "target"})` to see all incoming/outgoing refs, then `gitnexus_impact({target: "target", direction: "upstream"})` to find all external callers before moving code.
143143+- After any refactor: run `gitnexus_detect_changes({scope: "all"})` to verify only expected files changed.
144144+145145+## Never Do
146146+147147+- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
148148+- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
149149+- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
150150+- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.
151151+152152+## Tools Quick Reference
153153+154154+| Tool | When to use | Command |
155155+|------|-------------|---------|
156156+| `query` | Find code by concept | `gitnexus_query({query: "auth validation"})` |
157157+| `context` | 360-degree view of one symbol | `gitnexus_context({name: "validateUser"})` |
158158+| `impact` | Blast radius before editing | `gitnexus_impact({target: "X", direction: "upstream"})` |
159159+| `detect_changes` | Pre-commit scope check | `gitnexus_detect_changes({scope: "staged"})` |
160160+| `rename` | Safe multi-file rename | `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` |
161161+| `cypher` | Custom graph queries | `gitnexus_cypher({query: "MATCH ..."})` |
162162+163163+## Impact Risk Levels
164164+165165+| Depth | Meaning | Action |
166166+|-------|---------|--------|
167167+| d=1 | WILL BREAK — direct callers/importers | MUST update these |
168168+| d=2 | LIKELY AFFECTED — indirect deps | Should test |
169169+| d=3 | MAY NEED TESTING — transitive | Test if critical path |
170170+171171+## Resources
172172+173173+| Resource | Use for |
174174+|----------|---------|
175175+| `gitnexus://repo/hydrant/context` | Codebase overview, check index freshness |
176176+| `gitnexus://repo/hydrant/clusters` | All functional areas |
177177+| `gitnexus://repo/hydrant/processes` | All execution flows |
178178+| `gitnexus://repo/hydrant/process/{name}` | Step-by-step execution trace |
179179+180180+## Self-Check Before Finishing
181181+182182+Before completing any code modification task, verify:
183183+1. `gitnexus_impact` was run for all modified symbols
184184+2. No HIGH/CRITICAL risk warnings were ignored
185185+3. `gitnexus_detect_changes()` confirms changes match expected scope
186186+4. All d=1 (WILL BREAK) dependents were updated
187187+188188+## CLI
189189+190190+- Re-index: `npx gitnexus analyze`
191191+- Check freshness: `npx gitnexus status`
192192+- Generate docs: `npx gitnexus wiki`
193193+194194+<!-- gitnexus:end -->