gabriel / musehub public
fix patch task/fix-wire-commits-topo-order #1 / 1
AI Agent gabriel · 4 days ago · Jun 13, 2026 · Diff

fix: wire_commits assembly uses topo-sorted needed_rows order, not DB-order commit_rows

Iterating commit_rows.values() uses arbitrary PostgreSQL return order, breaking topological ordering. Using needed_rows.keys() (insertion-ordered by generation ASC from _walk_commit_delta) guarantees parents always precede children in the mpack.

sha256:51d22aa935a6da030cecbb386b1b07461d1879db185b777a2a382f84c0ac349f sha
~1 symbols
sha256:ba2c5bd27a052770b15b3e166e9095d92c1bf24b566823135b19eb3c498eb26c snapshot
~1
symbol modified
0
dead code introduced
Semantic Changes 1 symbol
← Older Oldest on task/fix-wire-commits-topo-order
All commits
Newer → Latest on task/fix-wire-commits-topo-order

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:51d22aa935a6da030cecbb386b1b07461d1879db185b777a2a382f84c0ac349f --body "your comment"