100%

00 — walking-skeleton

Goal

Prove the end-to-end wire: a single scripts/intel-query.sh callers <sym> invocation runs an up-front freshness gate that is zero-cost when compiler_repo HEAD is unchanged, and on exactly one changed file performs a scoped incremental sync before serving the query. Thin vertical slice across all legs (gate -> scoped SCIP emit -> serve), one file deep.

Implementation Sketch

Wire ensure_fresh as the first step of one read subcommand (callers). Fast path: mtime pre-filter + per-file content-hash compare against the stored manifest; all match -> serve immediately. Changed path: one file’s content hash diverged -> invoke sync-ori-graph.sh --changed <that-file>, then serve. Signal is content-hash, never git. No GDS on this slice.

Spec References

intel_repo/CLAUDE.md §Embedding (embedding_content_hash deterministic + skip-on-match — the content-hash precedent); :Symbol.content_hash; intel_repo/scripts/sync-ori-graph.sh —changed

Work Items

  • Add a per-file content-hash manifest (local, no Neo4j, no git) written on each sync; read it in the wrapper
  • Add ensure_fresh fast-path (mtime pre-filter + content-hash compare) gating callers
  • Changed-path: scoped sync-ori-graph.sh --changed for the hash-diverged file, then serve
  • Smoke test: unchanged content -> zero-extra-cost (even with a dirty tree); one content edit -> exactly one scoped sync