Skip to content

integrations: graphify importer — draft inferred contracts from graph… - #81

Merged
davet47 merged 1 commit into
mainfrom
graphify-importer
Jul 18, 2026
Merged

integrations: graphify importer — draft inferred contracts from graph…#81
davet47 merged 1 commit into
mainfrom
graphify-importer

Conversation

@davet47

@davet47 davet47 commented Jul 18, 2026

Copy link
Copy Markdown
Owner

….json

The brownfield entry point (issue #80): a standalone script that reads a graphify knowledge graph and emits skeleton contracts, all status: inferred. Signatures come from the Python source via ast (the graph has none); deps only from EXTRACTED calls/references/inherits/implements edges between selected units; test candidates as pytest node ids. Refuses existing contracts by default; validates every emission through parse_contract.

Pure tooling — no new MCP tools or CLI commands, nothing under src/. Dogfood: graphify-out/graph.json is the repo's own extracted graph (--code-only, local tree-sitter); sales README gains the bootstrap walkthrough. Importer handles the released CLI's format (links key, leading-dot method labels, L1 file nodes), not just the v8 source's.

What and why

Checklist

  • uv run pytest passes (full suite).
  • Touches contract.py or implhash.py? The hash-stability tests
    (tests/test_contract_hash.py, tests/test_implhash.py) still pass, and
    any change to what busts a hash is intentional.
  • Touches the context packets or hashing? uv run python bench/benchmark.py
    still reports >5x.
  • Scope: this does not expand the 5-MCP-tool / 5-CLI-command surface, or it
    was discussed in an issue first.
  • Tool errors stay structured (HashloomError); no stack traces over MCP.

….json

The brownfield entry point (issue #80): a standalone script that reads a
graphify knowledge graph and emits skeleton contracts, all status: inferred.
Signatures come from the Python source via ast (the graph has none); deps
only from EXTRACTED calls/references/inherits/implements edges between
selected units; test candidates as pytest node ids. Refuses existing
contracts by default; validates every emission through parse_contract.

Pure tooling — no new MCP tools or CLI commands, nothing under src/.
Dogfood: graphify-out/graph.json is the repo's own extracted graph
(--code-only, local tree-sitter); sales README gains the bootstrap
walkthrough. Importer handles the released CLI's format (links key,
leading-dot method labels, L1 file nodes), not just the v8 source's.
@davet47
davet47 merged commit af0416d into main Jul 18, 2026
10 checks passed
@davet47
davet47 deleted the graphify-importer branch July 18, 2026 08:38
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