Repository navigation
Conversation
A god node labelled index() (an ordinary web view) or a community named after one slugs to "index", so to_wiki wrote its article to index.md and then replaced it with the catalog; the catalog entry linked back to the catalog itself. Reserve the index slug in the dedup set, and link the navigation footer to index.md directly so the label resolver can map an "index" label to its own deduplicated file. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Graphify reviewed this change.
Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.
Graphify review — findings
Reserves the index slug for the wiki catalog so a community or god node whose label slugs to index (e.g. a hub named index() or an Index class on a case-insensitive filesystem) gets its own file instead of being overwritten by index.md. Hardcodes the navigation footer's catalog link to index.md via _INDEX_LINK rather than routing through the label resolver, so an index-labelled article no longer links back to itself and the catalog no longer lists an entry pointing at itself. Adds test_to_wiki_article_labelled_index_does_not_overwrite_index_md covering both cases.
Worth a look
- Removing 'index' from resolver breaks intra-article links to a community/god-node slugged 'index' —
graphify/wiki.py:380· Escalate · medium- agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 267 functions depend on the 70 functions this change touches.
Health — this change adds coupling hotspots:
- new:
to_wiki()— 45 callers, 8 callees - new:
main()— 98 callers, 3 callees - new:
dispatch_command()— 2 callers, 125 callees - new:
test_poisoned_manifest_is_healed()— 0 callers, 6 callees
Verification — 267 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 93 function(s) in the blast radius were not formally verified this run
Test selection
Test selection
5 of 300 test file(s) selected (2%) via static blast radius.
tests/test_export_idempotent_writes.py— impacttests/test_export_path_length.py— impacttests/test_wiki.py— impact, changed-testtests/test_wiki_link_filename_parity.py— impacttests/test_wiki_truncation_indicator.py— impact
Selection is safe under the controlled-regression assumption; always-run tests + a periodic full run are the backstops. Advisory — it never changes the check verdict.
· 4 more finding(s) on lines outside this diff (see the check run).
|
Re the Graphify review finding "Removing 'index' from resolver breaks intra-article links to a community/god-node slugged 'index'" (
Repro: a two-community graph labelled
No code change needed. |
Atomic label sidecars (#3853), docx table/all-text extraction (#3833), wiki index-collision (#3818) and escaped wikilink aliases (#3772), community-listing real-node filter (#3836), warn-once on missing pypdf extra (#3710), plus the --help logo banner + app.graphify.com line. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Shipped in v0.9.72 (now on PyPI) via an authorship-preserving cherry-pick, so your commit keeps contributor-graph credit. Thanks @breken-ai! An article named index no longer overwrites the generated index.md hub. |
What does this PR do?
to_wikiwritesindex.mdas the catalog, but the slug-dedup set never reserved that name. An article whose label slugs toindexwas written toindex.mdand then overwritten by the catalog. This happens with a god node labelledindex()(a common web view), a community that the default hub labeler names after one, or anIndexgod node on a case-insensitive filesystem. The catalog entry for that article then linked back to the catalog itself ([index()](index.md)), andto_wikistill counted the lost article as written.Reproduced end to end with a small Python project whose
index()view calls four helpers, thengraphify update .andgraphify export wiki:Fix, in
graphify/wiki.py:_unique_slug's dedup set now starts withindex(it is case-folded, so this also coversIndex), so such an article getsindex_2.md.[index](index.md)directly and no longer goes through the label resolver. The resolver's hardcoded{"index": "index"}seed is removed, so a label ofindexresolves to its own deduplicated file. The footer text is byte-identical to before.Type of change
How was this tested?
Tested on macOS with Python 3.12 (uv).
Graphify-specific checklist
This change was prepared with AI assistance (Claude) and verified with the commands above.
🤖 Generated with Claude Code