Skip to content

fix(merge): hard-fail on non-empty unrecognized batch filenames (#641) - #655

Open
yiziff wants to merge 1 commit into
Egonex-AI:mainfrom
yiziff:fix/641-hard-fail-unrecognized-batch-files
Open

fix(merge): hard-fail on non-empty unrecognized batch filenames (#641)#655
yiziff wants to merge 1 commit into
Egonex-AI:mainfrom
yiziff:fix/641-hard-fail-unrecognized-batch-files

Conversation

@yiziff

@yiziff yiziff commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #641

Test plan

  • PYTHONDONTWRITEBYTECODE=1 python -m unittest tests.skill.understand.test_merge_batch_graphs -v (81/81 pass)
  • Confirm incremental path with only batch-existing.json + batch-<N>.json still merges (unchanged)
  • Drop a non-empty batch-fused-1-2.json into intermediate/ and confirm merge exits non-zero with no assembled-graph.json
  • Drop an empty unrecognized stub and confirm merge warns but still succeeds

Prevent silent graph data loss by refusing to merge when fused/range
batch files carry nodes or edges, while still warning on empty stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incremental update: SKILL.md instructs writing batch-existing.json, but merge-batch-graphs.py silently drops it (all carried-over nodes lost)

1 participant