gabriel / muse public
fix patch task/dom-14-15-dry-run-docs #1 / 1
AI Agent gabriel · 16 days ago · Jul 3, 2026 · Diff

fix: correct stale domains publish docs and add --dry-run local validation

musehub#117 Phase 4 (DOM_14, DOM_15): - DOM_14: fix every stale --viewer-type/--capabilities example and docstring in muse domains publish (was using invalid placeholder values like "genome"/"spatial" and wrong merge_semantics names) so following the documented examples on a first try actually works. - DOM_15: add --dry-run to muse domains publish, mirroring the server-side Pydantic schema (viewer_type enum, merge_semantics enum, 50-dimension cap, 16KB manifest cap) so a malformed manifest is caught locally with no network call and no signing identity required. - Also resolve a latent SigningIdentity forward-ref under TYPE_CHECKING, surfacing pre-existing (unrelated, out of scope) type debt rather than masking it as an undefined name.

sha256:2c375c7dbc7f97e90d8d7faee422b3dfb978ec70e0444beaeb2558b427c395e6 sha
+10 ~4 symbols
2 changed · 1120 in snapshot files
sha256:54ff9fe872d6b0bd69cde44934baa3b4d4cea1734bd2e06fe5f943ae047b9474 snapshot
+10
symbols added
~4
symbols modified
2
files changed
1120
files in snapshot
0
dead code introduced
Semantic Changes 14 symbols
~ muse/cli/commands/domains.py .py 5 symbols added, 4 symbols modified
+ _MAX_CAPABILITIES_BYTES variable variable _MAX_CAPABILITIES_BYTES L749–749
+ _MAX_DIMENSIONS variable variable _MAX_DIMENSIONS L748–748
+ _VALID_MERGE_SEMANTICS variable variable _VALID_MERGE_SEMANTICS L747–747
+ _VALID_VIEWER_TYPES variable variable _VALID_VIEWER_TYPES L746–746
+ _validate_manifest_locally function function _validate_manifest_locally L752–784
~ tests/test_domains_publish.py .py 5 symbols added
+ test_dry_run_invalid_merge_semantics_exits_one function function test_dry_run_invalid_merge_semantics_exits_one L463–482
+ test_dry_run_invalid_viewer_type_exits_one function function test_dry_run_invalid_viewer_type_exits_one L447–460
+ test_dry_run_requires_no_signing_identity function function test_dry_run_requires_no_signing_identity L507–525
+ test_dry_run_too_many_dimensions_exits_one function function test_dry_run_too_many_dimensions_exits_one L485–504
+ test_dry_run_valid_manifest_exits_zero function function test_dry_run_valid_manifest_exits_zero L426–444
Files Changed
~2
1120 in snapshot
← Older Oldest on task/dom-14-15-dry-run-docs
All commits
Newer → Latest on task/dom-14-15-dry-run-docs

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