Skip to content

materialize OVERRIDES rel and bump ontology to 13#143

Merged
HumanBean17 merged 2 commits into
masterfrom
feat/hints-stored-overrides
May 15, 2026
Merged

materialize OVERRIDES rel and bump ontology to 13#143
HumanBean17 merged 2 commits into
masterfrom
feat/hints-stored-overrides

Conversation

@HumanBean17
Copy link
Copy Markdown
Owner

Summary

  • Implements PR-A from plans/PLAN-HINTS.md (stored [:OVERRIDES] edges, ONTOLOGY_VERSION 13, EdgeType + neighbors + tests + README). Background: propose/HINTS-ROAD-SIGNS-PROPOSE.md §6 / §7.17.
  • Materializes (subtype_method)-[:OVERRIDES]->(supertype_declared_method) in build_ast_graph.py (one IMPLEMENTS/EXTENDS hop, matching signature, deduped + deterministic order). Schema drop/create wired; counts_json includes overrides.
  • Bumps ast_java.ONTOLOGY_VERSION to 13; extends kuzu_queries._EDGE_TYPES so meta() edge counts include OVERRIDES.
  • Adds OVERRIDES to mcp_v2.EdgeType, updates NodeRecord.edge_summary and server tool copy so stored OVERRIDES is valid in neighbors; virtual keys unchanged.
  • README: ontology 13, re-index callout, graph edge table (10 types).
  • Tests: all six PR-A names in tests/test_mcp_v2_compose.py, plus schema / MCP enum updates.
  • Docs follow-up: AGENTS.md, docs/AGENT-GUIDE.md, .cursor/rules/*, CODEBASE_REQUIREMENTS.md now reference ontology 13 and the OVERRIDES / neighbors story.

Re-index / ontology

Ontology 13 — full graph rebuild required (java-codebase-rag reprocess default or build_ast_graph.py); indexes built before this version are below KuzuGraph’s required ontology check.

Manual evidence

rm -rf /tmp/hints-pr-a && mkdir -p /tmp/hints-pr-a && \
  .venv/bin/python build_ast_graph.py \
  --source-root tests/fixtures/override_axis_rollup_smoke \
  --kuzu-path /tmp/hints-pr-a/code_graph.kuzu
.venv/bin/python -c "import kuzu; c=kuzu.Connection(kuzu.Database('/tmp/hints-pr-a/code_graph.kuzu',read_only=True)); r=c.execute('MATCH ()-[e:OVERRIDES]->() RETURN count(e) AS n'); print('OVERRIDES count:', int(r.get_next()[0]) if r.has_next() else 0)"

Expected: OVERRIDES count: 3 on that fixture.

Test plan

  • .venv/bin/ruff check .
  • PATH="<repo>/.venv/bin:$PATH" .venv/bin/python -m pytest tests -v (457 passed, 10 skipped; CLI subprocess tests need venv-first PATH on hosts that shadow java-codebase-rag)

Made with Cursor

HumanBean17 and others added 2 commits May 16, 2026 00:22
Store subtype→supertype override pairs in Kuzu, admit OVERRIDES in
neighbors/meta, align describe copy and tests with override_axis
rollup, and refresh operator/agent docs for ontology 13.

Co-authored-by: Cursor <cursoragent@cursor.com>
Per-direction max preserves stored inbound [:OVERRIDES] after the
dispatch-up rollup reuses the same key; extend fixture and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HumanBean17 HumanBean17 merged commit 23ace5e into master May 15, 2026
1 check passed
@HumanBean17 HumanBean17 deleted the feat/hints-stored-overrides branch May 23, 2026 16:21
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