Repository navigation
feat(extract): structural extraction for YAML config files - #14
Merged
Merged
Conversation
`.yaml`/`.yml` had no dispatch entry, which also meant `collect_files` never enumerated them (it walks `_DISPATCH` suffixes only), so a config-driven repo produced nothing and the `is_package_manifest_path` apm.yml branch in `_get_extractor` was unreachable. `extract_yaml` emits a node per block-mapping key labelled by its DOTTED PATH (`search.departments`), plus file -> key -> key `contains` edges, so an anchor reads `profile/config.yaml::search.departments`. Pure line parsing, no tree-sitter and no PyYAML dependency, matching `extract_markdown`. Bounded the same way `extract_json` is manifest-only (Graphify-Labs#1224): depth 3, 40 children per parent, 400 nodes and 1 MiB per file, and keys inside a SEQUENCE item are skipped as data rows. A pre-commit config therefore yields just `repos`, while a CI workflow yields its real job tree. Verified on three real files; no new failures in the suite (38 pre-existing, unchanged before and after). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Owner
Author
|
CI note: the two Both fail identically on an unmodified checkout at They are JS/TS import-resolution assertions with no path to the YAML extractor. I also diffed the whole suite before and after this change, on the same machine, and the failure sets are identical - 38 pre-existing both ways, zero new: The other 36 are missing optional extras (
🤖 Generated with Claude Code |
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.
.yaml/.ymlhad no_DISPATCHentry, which also meantcollect_filesnever enumerated them (it walks dispatch suffixes only). A config-driven repo produced nothing, and theis_package_manifest_pathapm.yml branch in_get_extractorwas unreachable.extract_yamlemits a node per block-mapping key labelled by its dotted path (search.departments), plus file -> key -> keycontainsedges, so an anchor readsprofile/config.yaml::search.departments. Pure line parsing, no tree-sitter and no PyYAML dependency, matchingextract_markdown.Bounded the same way
extract_jsonis manifest-only (Graphify-Labs#1224): depth 3, 40 children per parent, 400 nodes and 1 MiB per file, and keys inside a sequence item are skipped as data rows.Verified on three real files:
.github/workflows/ci.yml.pre-commit-config.yamlreposonly) - it is data, not sections15 new tests. No new failures in the suite: 38 pre-existing, byte-identical before and after.
Client-side counterpart: aethergraph-cli
feat/content-symbols.🤖 Generated with Claude Code