Harden Markdown graph intelligence in compass.graph/1 - #298
Merged
Conversation
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.
Summary
compass.graph/1while adding bounded typed Markdown normalization internallyconfig_keyhierarchies with Config provenance, JSON Pointer paths, stable value-independent IDs, and nested containmenttitlefor the document display name and summarize only established content metadata; generic and credential-shaped values do not enter the public graphGraphify comparison
The comparison audits the official Graphify v8 deterministic Markdown extractor source. Graphify parses nested YAML metadata onto its page node and covers ATX headings and local document references with line-level locations. Compass now matches nested frontmatter while adding queryable typed key hierarchy, exact key ranges, stable escaped paths, value-disclosure controls, pipe-table hierarchy, semantic row/cell identities, Setext headings, exact byte/column anchors, and cell-owned references.
Compass exceeds that audited structural graph baseline without introducing a Graphify runtime, test, configuration, artifact, or fallback dependency.
Compatibility
compass.graph/1config_key, Config provenance,contains, source-anchor, and qualified-name contractscompass.languages.extraction/4so stale Markdown caches rebuild automaticallyVerification
./scripts/qualify_code_graph_v1.sh --fixtures-onlycargo test --workspace --lib --bins --locked— passedcargo clippy --workspace --lib --bins --locked -- -D warnings— passedcargo test --locked -p compass-languages --test markdown_coverage— 11 passedcargo test --locked -p compass-graph --test domain_normalization— 6 passedcargo test --locked -p compass-cli --test compass_product— 8 passedcargo fmt --all -- --check,git diff --check, andscripts/check_product_boundary.sh— passedThe macOS debug/release CLI link emits the repository's existing compact-unwind size warning; it does not fail the build or tests.