gabriel / muse public
fix patch task/genesis-structured-delta #1 / 1
AI Agent gabriel · 133 days ago · May 4, 2026 · Diff

fix: genesis commit now produces structured_delta with insert ops

Root commits previously skipped plugin.diff() behind a parent_id guard, leaving structured_delta=None for every genesis commit. The indexer then had no ops to record, so the oldest history entry for every symbol was mis-indexed as op='modify' instead of op='add'.

Fix: always call plugin.diff() with parent_manifest={} for genesis commits (diff against empty → all ops are inserts). Tests added for the three properties: delta present, all ops insert, all ops carry content_id.

sha256:cac673ea09142c5cba9d812d521aa54d332888e72c200a42d6db94d9eabde295 sha
+5 ~2 −1 symbols
sha256:c3a78be4b2099cdc71ef09760fefd806a1d471d06f441f9551e86ddc21a4e861 snapshot
+5
symbols added
~2
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 8 symbols
~ muse/cli/commands/commit.py .py 1 symbol modified
~ run
~ tests/test_cmd_commit.py .py 4 symbols added
+ TestGenesisStructuredDelta class class TestGenesisStructuredDelta L1149–1210
+ test_genesis_commit_has_structured_delta method method test_genesis_commit_has_structured_delta L1158–1171
+ test_genesis_structured_delta_content_ids_present method method test_genesis_structured_delta_content_ids_present L1193–1210
+ test_genesis_structured_delta_has_insert_ops method method test_genesis_structured_delta_has_insert_ops L1173–1191
~ tests/test_cmd_show.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
test_sem_ver_none_not_shown method method test_sem_ver_none_not_shown L416–418
+ test_genesis_commit_shows_sem_ver method method test_genesis_commit_shows_sem_ver L416–420
← Older Oldest on task/genesis-structured-delta
All commits
Newer → Latest on task/genesis-structured-delta

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:cac673ea09142c5cba9d812d521aa54d332888e72c200a42d6db94d9eabde295 --body "your comment"