Add Explain View run reports and RPG visualizer#84
Open
QingtaoLi1 wants to merge 18 commits into
Open
Conversation
Align update-rpg worktree comparisons and git diff outputs to the cmind workspace root so subdirectory workspaces do not duplicate RPG nodes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Report update_rpg results using the actual output fields, include raw git delta counts, and propagate semantic diff summaries so Explain View no longer shows zero/empty values for changed files and graph node counts.
Use package-aware imports for llm_usage_count_coarse and make intentional no-op/unsupported backend methods explicit so smoke stub detection no longer flags valid code.
Normalize list-valued feature paths before searching so search_rpg with feature/all scope no longer crashes when RPG nodes map to multiple paths. Add regression coverage for list-valued meta.path entries.
Clear stale sub-agent errors once a later iteration completes so successful rpg_edit reports do not surface recovered timeouts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Adds a shared Explain View run-report system for CoderMind commands, a new
RPG visualizer, and a batch of
rpg_edit/ git-workspace correctness fixes.What's included
Explain View run reports (new)
scripts/common/run_events.py— structured event contract for command runsscripts/common/run_report.py— shared sanitized HTML report renderer(
write_command_report())plan.py,update_graphs.py, andrpg_edit/review.pytest_run_report.py,test_rpg_edit_run_report.pyRPG visualization (new)
scripts/rpg_visualize.py— interactive D3 visualizer rendering three views(Feat Graph tree, collapsible Dep Graph, and Feat↔Dep Mapping)
rpg_edit improvements
RPG_EDIT_APPLY_RESULT_FILEoutput alongsideRPG_EDIT_PLAN_FILEearlier timeouts
git / workspace correctness
git_utils: subdirectory-workspace-aware diffs and diff-range helpersupdate_rpg: worktree comparisons aligned to the cmind workspace root(fixes duplicated RPG nodes from subdirectory workspaces)
update_rpgreport now uses actual output fields + raw git delta countsBug fixes
dep_graph: missing propertymeta.pathentries (no longer crashes onfeature/allscope)GitRunner: fixmain_branchinit parameter; merge to base branch, notmainfalse stub detection
Test plan
uv run pytest CoderMind/tests/test_run_report.pyuv run pytest CoderMind/tests/test_rpg_edit_run_report.pyuv run pytest CoderMind/tests/test_encode_commands.py CoderMind/tests/test_encoder_workspace_layout.pyuv run pytest CoderMind/tests/test_sync_from_commit_diff.py CoderMind/tests/test_rpg_evolution.pyuv run python CoderMind/scripts/rpg_visualize.py rpg.json -o out.html