gabriel / musehub public
feat patch mist task/mist-phase4-router-registration #1 / 1
AI Agent gabriel · 143 days ago · May 1, 2026 · Diff

feat(mist): phase 4 — explicit mists router registration

- Add 'mists' to _DIRECT_REGISTERED in routes/musehub/__init__.py to prevent double-registration via auto-discovery - Import api_mists_router in main.py alongside api_identities_router et al. - Call app.include_router(api_mists_router, prefix='/api', tags=['Mists']) in the explicit registration block - Add TDD test suite (10 tests) covering _DIRECT_REGISTERED membership, main.py import/include_router presence, OpenAPI schema paths, endpoint reachability, and duplicate operationId detection

All 63 mist-domain tests pass (phases 1–4).

sha256:d9306280eda9ce9e15e2327094fb38f905fe1cc00dff06b922a72edb94b90849 sha
+17 ~1 symbols
sha256:138b9c0116186324a57d0dba14e0ac98ea2faba1592952f7c38f1f1fc21fd258 snapshot
+17
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes 18 symbols
+ TestMistsRouterDirectRegistration class class TestMistsRouterDirectRegistration L21–45
+ test_mists_excluded_from_auto_discovery method method test_mists_excluded_from_auto_discovery L22–28
+ test_mists_router_imported_in_main method method test_mists_router_imported_in_main L30–36
+ test_mists_router_registered_via_include_router method method test_mists_router_registered_via_include_router L38–45
+ TestMistsRouterEndpoints class class TestMistsRouterEndpoints L81–130
+ test_explore_endpoint_returns_200 method async_method test_explore_endpoint_returns_200 L83–89
+ test_explore_response_is_valid_json method async_method test_explore_response_is_valid_json L92–96
+ test_get_nonexistent_mist_returns_404_not_422 method async_method test_get_nonexistent_mist_returns_404_not_422 L99–108
+ test_no_duplicate_operation_ids method async_method test_no_duplicate_operation_ids L111–130
+ TestMistsRouterOpenAPI class class TestMistsRouterOpenAPI L48–78
+ test_create_mist_operation_in_schema method async_method test_create_mist_operation_in_schema L63–69
+ test_explore_mists_operation_in_schema method async_method test_explore_mists_operation_in_schema L72–78
+ test_mists_paths_in_openapi_schema method async_method test_mists_paths_in_openapi_schema L50–60
+ AsyncClient import import AsyncClient L18–18
+ annotations import import annotations L15–15
+ pytest import import pytest L17–17
~ musehub/main.py .py 1 symbol added
+ api_mists_router import import api_mists_router L64–64
← Older Oldest on task/mist-phase4-router-registration
All commits
Newer → Latest on task/mist-phase4-router-registration

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