feat(graph): add read-only Godot resource audit (orphan/dangling/impact)#82
Merged
Conversation
Adds a separate, read-only `audit` CLI subcommand reporting orphan Godot resources, dangling path references, and reverse-dependency impact. Computed from the existing graph plus on-disk existence checks — no extraction, no new node/edge writes — so it is golden-neutral and leaves `check` byte-identical. The .tres/.tscn/project.godot files carry no `file:` graph node and their references stay in `unresolved_refs`, so the audit keys on resource PATHS, not incoming graph edges.
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
codegraph auditsubcommand for Godot projects:--orphans—.tres/.tscnresources nothing references--dangling— path references whose target is missing on disk--impact <path>— reverse-dependency list for a changed resource/scriptcheckflag), so plaincheckoutput stays byte-identical (locked by a committed snapshot test).Design note
Godot
.tres/.tscn/project.godotfiles carry nofile:graph node; their references live inunresolved_refs. The audit therefore keys on resource paths, not incoming graph edges. Dangling exclusion precedence:.godot//addons/prefix →godot:dynamic:sentinels → on-disk existence.This is a downstream-only feature — no analogue in upstream colby (verified against v1.1.1 HEAD).
Verification
make cigreen locally (fmt + clippy + test + guardrail)git diff --stat reference/empty (golden-neutral; read-only)cargo test -p codegraph-bench4/4 (golden oracle)godot_resource_audit.rs(7 cases) + CLI e2eaudit.rs(orphan/dangling JSON +checkbyte-identical baseline)