refactor!: remove the Graphify integration - #326
Merged
Merged
Conversation
Every signal Graphify provided is already available from the GitNexus/MDG graph Topos loads for COMPOSABLE, usually at better fidelity. Removes the adapter, the advisory-only graph representation, and the orphan probes, plus the two `metrics_never_leaks_graphify_keys` guards that protected a leak that can no longer happen. Refs #325 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… target Drops the Graphify MCP tool, the `graphify` variant of `topos_refactor(target=...)` with its `graphify_dir` parameter and dispatch tests, `resolve_graphify_dir`, and the `GenerateGraphify*` schemas. Tool surface: 18 tools / 39_584 chars -> 17 tools / 38_668 chars. The context-budget ratchet drops 40_500 -> 39_500, keeping the repo's ~2% headroom convention. Refs #325 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Drops `topos graphify generate|orphans`, its clap registration, and the `graphify-out/` .gitignore entry. Root command count 11 -> 10. Refs #325 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Strips Graphify from README, the Sphinx CLI/agents/measures/installation/
architecture pages, the canonical skill, and .agents/AGENTS.md. Updates the
MCP tool count (eighteen -> seventeen) and the CLI command list wherever
they were spelled out in prose.
`docs/decisions/refactor-suite.md` keeps its three surviving targets and
gains a "Removed target" section recording why Graphify went and what the
removal bought; its stale Python-era `crates/topos-*` paths are corrected to
the actual `topos/{engine,mcp,cli}/` layout while in there.
Adds the `## [Unreleased]` -> `### Breaking` changelog entry.
Refs #325
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
sgathrid
approved these changes
Aug 11, 2026
This was referenced Sep 16, 2026
Closed
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes Graphify Phase 1 (shipped v0.4.0) in full. Every signal it provided is already available from the GitNexus/MDG graph Topos loads for COMPOSABLE, usually at better fidelity: full
startLine/endLinespans instead of point anchors, a first-classCommunitynode label withMEMBER_OFedges instead of a bare Louvain field, and a continuousconfidence: f64+reasoninstead of a three-value enum. It had no production consumer, no CI coverage, and no agent-facing recommendation, and it wrapped a pre-1.0 external tool with a documented history of schema breaks.Closes #325
What was removed
topos/engine/src/adapters/graphify.rstopos/engine/src/graphs/graphify/{mod,models,object}.rstopos/engine/src/functors/probes/graphify/{mod,orphans}.rstopos/cli/src/commands/graphify.rs+graphify/{generate,orphans}.rstopos/mcp/src/tools/graphify.rstopos/mcp/src/tools/refactor.rsGenerateGraphify*schemas,RefactorTargetKind::Graphify,graphify_dirresolve_graphify_dir(topos/mcp/src/evaluation/mod.rs)Whole diff: 39 files, 156 insertions, 2,161 deletions.
Also removed:
TOPOS_GRAPHIFY_TIMEOUTandGRAPHIFY_OUThandling, thegraphify-out/.gitignoreentry, and the twometrics_never_leaks_graphify_keysguards ingraphs/{cfg,mdg}/object.rs— they protected against a leak that can no longer happen.Public-surface changes (breaking)
topos_generate_graphify_graphremoved. No replacement; nothing else generated that graph. Clients calling it break.topos_refactor(target="graphify")removed, along with thegraphify_dirparameter and thegraphify_orphan/graphify_fragile_edgehotspot kinds.graphifyis now rejected as an invalid enum value.topos graphify generate|orphansremoved.topos graphifynow errors as an unknown subcommand.Tool count and context budget
TOTAL_CEILING_CHARSratchetThe ratchet in
topos/mcp/src/context_budget.rswas moved down, keeping the repo's existing ~2% headroom convention. Every agent session pays for the tool-definition wire format on every request, so this is a permanent context saving.Verification
cargo test --workspace— 608 passed, 0 failed (engine 341, cli 155 + 9, mcp 103)cargo clippy --workspace --all-targets -- -D warnings— cleancargo fmt --all -- --check— cleancargo build --workspace;topos --helplists 10 commands with nographify, andtopos graphifyerrors withunrecognized subcommand 'graphify'tools/list/resources/list/prompts/listagainsttopos mcp): 17 tools,topos_generate_graphify_graphabsent, the substringgraphifyabsent from the entire serialized tool surface, 7 resources, 1 promptgrep -ri graphifyacross the repo (excludingopenwiki/,.git/) returns only the deliberate historical references: the## Removed targetsection indocs/decisions/refactor-suite.md, the ratchet's explanatory doc comment, and the new changelog entry.Docs
Graphify content stripped from
README.md,docs/source/{cli,agents,measures,installation,architecture}.rst,skills/topos/SKILL.md,topos/mcp/docs/content/{workflows,agent-contract}.md, and.agents/AGENTS.md.docs/decisions/refactor-suite.mdkeeps its three surviving targets and gains a Removed target section recording the rationale; its stale Python-eracrates/topos-*paths are corrected to the actualtopos/{engine,mcp,cli}/layout while in there.openwiki/and rootAGENTS.mdwere deliberately left alone — both regenerate.Notes
worst_files,leaf_composable_zeros) was deliberately skipped, per the issue's recommendation: zero evidence of use, and a deprecation period would keep paying the context-budget cost that is the main benefit here.🤖 Generated with Claude Code