gabriel / musehub public
feat patch mwp-1 task/mwp-1-generation-authority #10 / 11
AI Agent gabriel · 26 days ago · Jun 29, 2026 · Diff

feat(mwp-1): Phase 1 — distinguish root from unresolved at both generation sites

Both wire_push_unpack_mpack (step 9b) and _build_commit_graph_from_raw now separate 'genuine root (pids==[])' from 'commit with parents but unresolved generations'. The unresolved branch logs a loud [MWP1] WARNING identifying the site and the unresolved parent ids — the seam Phase 2 will hook into.

No behavior change to the root case (gen 0 still correct). Unresolved case still falls back to 0; Phase 2 replaces that fallback with backfill.

Tests MWP1_04 (seam: _build_commit_graph_from_raw) and MWP1_05 (seam: wire_push_unpack_mpack) are GREEN. Phase 0 tests MWP1_01 and MWP1_03 remain RED — the assertion is unchanged, which is correct: Phase 2 is the fix.

musehub#106 muse#58

sha256:9fa9f5bd7edf5160c2425cf7c3b6ab9dd677d41a9593565c7e8e94900a0cef41 sha
+5 ~2 symbols
sha256:050db76bb6f52b0e46f3b7bd9b5a3fefe2cd13668c1028667a31944a665990c0 snapshot
+5
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 7 symbols
+ _UNRESOLVED_MARKER variable variable _UNRESOLVED_MARKER L321–321
+ _WIRE_SHARED_LOGGER variable variable _WIRE_SHARED_LOGGER L320–320
+ logging import import logging L32–32
+ test_mwp1_04_seam_root_vs_unresolved_build_commit_graph function async_function test_mwp1_04_seam_root_vs_unresolved_build_commit_graph L325–384
+ test_mwp1_05_seam_push_path_logs_unresolved_warning function async_function test_mwp1_05_seam_push_path_logs_unresolved_warning L393–479

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:9fa9f5bd7edf5160c2425cf7c3b6ab9dd677d41a9593565c7e8e94900a0cef41 --body "your comment"