Skip to content

docs(repo): clarify sql targets the temporal store, not the node/edge graph#173

Merged
theagenticguy merged 1 commit into
mainfrom
fix/sql-docs-temporal-tier
May 29, 2026
Merged

docs(repo): clarify sql targets the temporal store, not the node/edge graph#173
theagenticguy merged 1 commit into
mainfrom
fix/sql-docs-temporal-tier

Conversation

@theagenticguy
Copy link
Copy Markdown
Owner

Summary

codehub sql and the MCP sql tool's sql arg run against the DuckDB temporal store (cochanges + symbol_summaries). The node/edge graph moved to lbug in ADR 0016 and is reachable only via the typed tools or Cypher. Docs across the repo still said "SQL against the graph store" (field-report Issue 4), and the opencodehub-guide skill shipped a whole "Graph schema" + "SQL cheat-sheet" of SELECT … FROM nodes/relations queries that error against the current store.

Changes (guidance/strings only — no query behavior change)

  • Reworded every user-facing site: CLAUDE.md, AGENTS.md, packages/cli/README.md, the sql --help in cli/src/index.ts, cli/src/agent-context.ts, docs/reference/cli.md, docs/agents/tool-decision-matrix.mdx.
  • Rewrote the opencodehub-guide SKILL.md cheat-sheet (both copies: .claude/skills + plugins/) to real lbug Cypher: single :CodeNode label with kind as a property, snake_case props (file_path, start_line, step_count, …), per-type relationship labels ([r:CALLS]), plus a small temporal-SQL cochanges example. The framing now states the two-store split explicitly.
  • Fixed two MCP next-step hints (dependencies, list-findings) that told users to run SELECT * FROM relations … → now MATCH ()-[r:…]->() RETURN r Cypher.

Test plan

  • grep confirms zero FROM relations / FROM nodes / "DuckDB-backed graph" guidance remains in live docs.
  • Both SKILL.md copies are byte-identical and contain no broken SQL.
  • tsc --noEmit + biome clean on the touched code files.

Heads-up (not caused by this PR)

A pre-existing mcp unit test, impact surfaces cochanges (tool-handlers.test.js), fails on clean main — the cochange test-harness wiring drifted since #117 (the DuckDB-graph rip). It's not in any path this PR touches and is not a branch-protection-required check (the mcp unit suite is the non-required test job). Tracked separately for a focused harness fix.

…ge graph

`codehub sql` and the MCP `sql` tool's `sql` arg run against the DuckDB
temporal store (cochanges + symbol_summaries). The node/edge graph moved
to lbug in ADR 0016 and is reached via the typed tools or Cypher. Docs
across the repo still said "SQL against the graph store", and the
opencodehub-guide skill shipped a whole "Graph schema" + "SQL cheat-sheet"
of `SELECT FROM nodes/relations` queries that ERROR against the current
store (field-report Issue 4).

Reworded every user-facing site: CLAUDE.md, AGENTS.md,
packages/cli/README.md, the `sql` --help in cli/src/index.ts,
cli/src/agent-context.ts, docs reference/cli.md + tool-decision-matrix.mdx,
and both copies of the opencodehub-guide SKILL.md (.claude + plugins). The
SKILL cheat-sheet is rewritten to REAL lbug Cypher: single `:CodeNode`
label with `kind` as a property, snake_case props, per-type relationship
labels, plus a small temporal-SQL cochanges example. Also fixed two MCP
next-step hints (dependencies, list-findings) that told users to run a
relations SELECT — now a Cypher MATCH on the relationship label.

No production query behavior changes — guidance and strings only.
Typecheck and biome clean. A pre-existing, unrelated mcp unit test
("impact surfaces cochanges") fails on clean main from cochange-harness
drift since the #117 DuckDB-graph rip; not in any path this PR touches and
not a required check. Tracked separately.
@theagenticguy theagenticguy enabled auto-merge (squash) May 29, 2026 21:55
@theagenticguy theagenticguy merged commit 814774a into main May 29, 2026
42 of 45 checks passed
@theagenticguy theagenticguy deleted the fix/sql-docs-temporal-tier branch May 29, 2026 21:57
@github-actions github-actions Bot mentioned this pull request May 29, 2026
theagenticguy pushed a commit that referenced this pull request May 29, 2026
🤖 Automated release via release-please
---


<details><summary>analysis: 0.3.3</summary>

##
[0.3.3](analysis-v0.3.2...analysis-v0.3.3)
(2026-05-29)


### Features

* **cli:** expose 9 read-only graph tools as CLI subcommands
([#174](#174))
([be15666](be15666))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/storage bumped to 0.2.3
    * @opencodehub/wiki bumped to 0.2.3
</details>

<details><summary>cli: 0.5.6</summary>

##
[0.5.6](cli-v0.5.5...cli-v0.5.6)
(2026-05-29)


### Features

* **cli:** expose 9 read-only graph tools as CLI subcommands
([#174](#174))
([be15666](be15666))
* **cli:** status surfaces retrieval mode (summaries / vectors /
embedder)
([#172](#172))
([611e818](611e818))


### Bug Fixes

* **cli:** doctor verifies the bandit[sarif] formatter, not just the
binary ([#171](#171))
([0d78c92](0d78c92))
* **scanners:** exclude indexer-ignored dirs from vulture/radon/ty (drop
.venv noise)
([#168](#168))
([848aa34](848aa34))


### Documentation

* **repo:** clarify `sql` targets the temporal store, not the node/edge
graph ([#173](#173))
([814774a](814774a))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/analysis bumped to 0.3.3
    * @opencodehub/ingestion bumped to 0.4.5
    * @opencodehub/mcp bumped to 0.4.5
    * @opencodehub/pack bumped to 0.2.4
    * @opencodehub/scanners bumped to 0.2.3
    * @opencodehub/search bumped to 0.2.3
    * @opencodehub/storage bumped to 0.2.3
    * @opencodehub/wiki bumped to 0.2.3
</details>

<details><summary>cobol-proleap: 0.1.9</summary>

##
[0.1.9](cobol-proleap-v0.1.8...cobol-proleap-v0.1.9)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/ingestion bumped to 0.4.5
</details>

<details><summary>ingestion: 0.4.5</summary>

##
[0.4.5](ingestion-v0.4.4...ingestion-v0.4.5)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/analysis bumped to 0.3.3
    * @opencodehub/scip-ingest bumped to 0.2.5
    * @opencodehub/storage bumped to 0.2.3
</details>

<details><summary>mcp: 0.4.5</summary>

##
[0.4.5](mcp-v0.4.4...mcp-v0.4.5)
(2026-05-29)


### Features

* **cli:** expose 9 read-only graph tools as CLI subcommands
([#174](#174))
([be15666](be15666))


### Documentation

* **repo:** clarify `sql` targets the temporal store, not the node/edge
graph ([#173](#173))
([814774a](814774a))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/analysis bumped to 0.3.3
    * @opencodehub/pack bumped to 0.2.4
    * @opencodehub/scanners bumped to 0.2.3
    * @opencodehub/search bumped to 0.2.3
    * @opencodehub/storage bumped to 0.2.3
</details>

<details><summary>pack: 0.2.4</summary>

##
[0.2.4](pack-v0.2.3...pack-v0.2.4)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/analysis bumped to 0.3.3
    * @opencodehub/ingestion bumped to 0.4.5
    * @opencodehub/storage bumped to 0.2.3
</details>

<details><summary>scanners: 0.2.3</summary>

##
[0.2.3](scanners-v0.2.2...scanners-v0.2.3)
(2026-05-29)


### Bug Fixes

* **scanners:** exclude indexer-ignored dirs from vulture/radon/ty (drop
.venv noise)
([#168](#168))
([848aa34](848aa34))
</details>

<details><summary>scip-ingest: 0.2.5</summary>

##
[0.2.5](scip-ingest-v0.2.4...scip-ingest-v0.2.5)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/analysis bumped to 0.3.3
</details>

<details><summary>search: 0.2.3</summary>

##
[0.2.3](search-v0.2.2...search-v0.2.3)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/storage bumped to 0.2.3
</details>

<details><summary>storage: 0.2.3</summary>

##
[0.2.3](storage-v0.2.2...storage-v0.2.3)
(2026-05-29)


### Features

* **cli:** status surfaces retrieval mode (summaries / vectors /
embedder)
([#172](#172))
([611e818](611e818))
</details>

<details><summary>wiki: 0.2.3</summary>

##
[0.2.3](wiki-v0.2.2...wiki-v0.2.3)
(2026-05-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @opencodehub/storage bumped to 0.2.3
</details>

<details><summary>root: 0.6.7</summary>

##
[0.6.7](root-v0.6.6...root-v0.6.7)
(2026-05-29)


### Features

* **cli:** expose 9 read-only graph tools as CLI subcommands
([#174](#174))
([be15666](be15666))
* **cli:** status surfaces retrieval mode (summaries / vectors /
embedder)
([#172](#172))
([611e818](611e818))


### Bug Fixes

* **cli:** doctor verifies the bandit[sarif] formatter, not just the
binary ([#171](#171))
([0d78c92](0d78c92))
* **scanners:** exclude indexer-ignored dirs from vulture/radon/ty (drop
.venv noise)
([#168](#168))
([848aa34](848aa34))


### Documentation

* **repo:** clarify `sql` targets the temporal store, not the node/edge
graph ([#173](#173))
([814774a](814774a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant