You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Fix `run_update_rpg()` statistics so `edge_count` / `edges_delta` are
computed from the serialized RPG JSON that is actually written to disk,
rather than from `updated_rpg.edges`.
- Add dependency graph stats to update/check outputs:
- `dep_nodes`
- `dep_edges`
- `dep_nodes_delta`
- `dep_edges_delta`
- `dep_to_rpg_map_size`
- Update `/cmind.update_rpg` instructions to display feature graph and
dependency graph counts separately.
- Extend tests to cover serialized RPG edge counts and embedded
dependency graph stats.
## Why
`RPG.to_dict()` merges dep-graph-derived semantic edges into the
serialized `rpg.json`. The previous `update_rpg` result used
`len(updated_rpg.edges)`, so it could report `edges_delta: 0` even when
the
persisted RPG edge set changed substantially.
This makes the command output match the graph data users actually
inspect via `rpg.json` and `check_encode.py`.
## Test plan
- [x] Targeted pytest:
```bash
uv run --with . --with pytest --with pytest-timeout python -m pytest -q
tests/test_encode_commands.py tests/test_step4_integration.py -k
"check_encode or run_update_rpg or update_rpg_template" --timeout=60
Result:
5 passed, 39 deselected
- Verified local check_encode output includes dependency graph stats:
{
"node_count": 7425,
"edge_count": 37004,
"dep_nodes": 2661,
"dep_edges": 5394
}
- RPG edit impact review passed.
Notes
The full default smoke test still fails on existing unrelated
repository-wide issues:
- import path failures for top-level common / rpg imports during
full-repo smoke
- 7 unrelated stub detections
Those failures are not introduced by this PR; the scoped scripts import
smoke passes.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
0 commit comments