gabriel / muse public
feat patch task/muse-domain-info-text-fields #1 / 1
AI Agent gabriel · 18 hours ago · Sep 23, 2026 · Diff

feat: muse domain-info text output articulates every DomainSchema field

Text mode (the default, non-JSON output) previously only showed Domain/Plugin/Merge mode/Capabilities/Registered -- dimensions, the schema description, top_level shape, and schema_version were JSON-only. This meant real terminal transcripts (e.g. the build-with-muse episode 05 script) could not show real dimension output in text mode without fabricating it, since the text output never actually printed dimension names -- only muse domain-info --json did.

Added: Description, Top level (kind + node_type/element_type/key_type/ dtype+rank via new _shape_summary() helper), Schema ver., and a Dimensions section listing every dimension's name, shape, and independent_merge vs blocking status. --capabilities-only mode is unaffected -- still lightweight, no schema fields added.

Verified against the real installed CLI for both the code domain (5 dimensions) and the midi domain (21 dimensions, MUSE_ENABLE_MIDI=1).

New tests: TestTextModeFullSchema in tests/test_cmd_domain_info.py (7 tests) covering description, top_level, schema_version, dimension count, dimension names, shape+merge-style formatting, and that --capabilities-only stays lightweight. Full domain-info regression suite (120 tests across test_cmd_domain_info.py, test_cmd_domain_info_hardening.py, test_cmd_remaining.py, test_domain_info_envelope.py) passes with zero regressions.

Also updated docs/reference/plumbing.md's documented text-output example to match the real new output.

sha256:c606568badb1bd51b0da285b5c395370f5e6148b205cd3948de4113c5714ba70 sha
+9 ~6 symbols
4 changed · 1207 in snapshot files
sha256:20f25c55ab64ce347280522b2eefbb937bf90dc3241967d6918bd3fac10ce0cd snapshot
+9
symbols added
~6
symbols modified
4
files changed
1207
files in snapshot
0
dead code introduced
Semantic Changes 15 symbols
~ muse/cli/commands/domain_info.py .py 1 symbol added, 1 symbol modified
+ _shape_summary function function _shape_summary L105–122
~ run
~ pyproject.toml .toml 2 symbols modified
~ tests/test_cmd_domain_info.py .py 8 symbols added
+ TestTextModeFullSchema class class TestTextModeFullSchema L260–308
+ test_capabilities_only_unaffected method method test_capabilities_only_unaffected L303–308
+ test_dimension_shows_shape_and_merge_style method method test_dimension_shows_shape_and_merge_style L295–301
+ test_shows_description method method test_shows_description L267–271
+ test_shows_dimension_count method method test_shows_dimension_count L284–287
+ test_shows_every_dimension_name method method test_shows_every_dimension_name L289–293
+ test_shows_schema_version method method test_shows_schema_version L279–282
+ test_shows_top_level_shape method method test_shows_top_level_shape L273–277
Files Changed
~4
1207 in snapshot
← Older Oldest on task/muse-domain-info-text-fields
All commits
Newer → Latest on task/muse-domain-info-text-fields

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