gabriel / musehub public
BREAKING candidate/m-prime #1 / 1
AI Agent gabriel · 12 days ago · Nov 4, 2026 · Diff

merge: integrate R1 into the publishable #114 line (private staging candidate M′, staging-assets fix and #238 included)

sha256:4defb0407ee7fe26b1addb8df5cf3d31dae4ebf1ab92eeca1c05348b9d4c8458 sha
+211 ~183 −15 symbols
sha256:e0a8290c533f7f6f3b6a5c390dfde869674a785db6837aa4050bb75e7cb9e328 snapshot
+211
symbols added
~183
symbols modified
−15
symbols removed
−3
dead symbols removed
Semantic Changes 409 symbols
~ musehub/auth/repo_access.py .py 19 symbols added
+ REPO_READ variable variable REPO_READ L28–28
+ REPO_WRITE variable variable REPO_WRITE L29–29
+ _ClaimsLike class class _ClaimsLike L45–47
+ _FROM_CONTEXT variable variable _FROM_CONTEXT L36–36
+ _RepoLike class class _RepoLike L39–42
+ can_read_repo function async_function can_read_repo L64–90
+ AsyncSession import import AsyncSession L24–24
+ ContextVar import import ContextVar L19–19
+ HTTPException import import HTTPException L22–22
+ MusehubCollaborator import import MusehubCollaborator L26–26
+ Protocol import import Protocol L20–20
+ select import import select L23–23
+ status import import status L22–22
+ mcp_caller_scope variable variable mcp_caller_scope L34–34
+ object_read_scope function async_function object_read_scope L93–119
+ require_repo_read function async_function require_repo_read L122–132
+ require_repo_write_scope function function require_repo_write_scope L58–61
+ scope_allows_repo_read function function scope_allows_repo_read L50–51
+ scope_allows_repo_write function function scope_allows_repo_write L54–55
~ musehub/mcp/scope_policy.py .py 5 symbols added
+ READ_TOOLS variable variable READ_TOOLS L17–34
+ REQUIRED_SCOPE variable variable REQUIRED_SCOPE L36–67
+ SCOPED_CALLER_DENIED variable variable SCOPED_CALLER_DENIED L70–88
+ REPO_WRITE import import REPO_WRITE L13–13
+ tool_scope_error function function tool_scope_error L91–100
~ tests/test_security_r1_repo_authz.py .py 57 symbols added
+ OWNER variable variable OWNER L41–41
+ PENDING variable variable PENDING L43–43
+ READER variable variable READER L44–44
+ REST variable variable REST L101–109
+ STRANGER variable variable STRANGER L42–42
+ UI variable variable UI L110–110
+ WIRE variable variable WIRE L111–111
+ _agent_body function function _agent_body L241–249
+ _ctx function function _ctx L47–51
+ _get function async_function _get L82–96
+ _get_object function async_function _get_object L164–175
+ _paths function function _paths L114–116
+ _post_agent function async_function _post_agent L252–262
+ _store_object function async_function _store_object L154–161
+ ASGITransport import import ASGITransport L25–25
+ AsyncClient import import AsyncClient L25–25
+ AsyncGenerator import import AsyncGenerator L19–19
+ AsyncSession import import AsyncSession L26–26
+ Ed25519PrivateKey import import Ed25519PrivateKey L24–24
+ MSignContext import import MSignContext L29–29
+ MusehubCollaborator import import MusehubCollaborator L32–32
+ MusehubIdentity import import MusehubIdentity L33–33
+ MusehubObject import import MusehubObject L34–34
+ MusehubObjectRef import import MusehubObjectRef L34–34
+ MusehubRepo import import MusehubRepo L34–34
+ annotations import import annotations L16–16
+ app import import app L35–35
+ compute_collaborator_id import import compute_collaborator_id L30–30
+ compute_identity_id import import compute_identity_id L30–30
+ create_repo import import create_repo L39–39
+ datetime import import datetime L20–20
+ encode_pubkey import import encode_pubkey L28–28
+ execute_list_collaborators import import execute_list_collaborators L37–37
+ execute_list_simulations import import execute_list_simulations L38–38
+ get_db import import get_db L31–31
+ hashlib import import hashlib L18–18 ← moved from tests/test_object_refs_on_repush.py
+ optional_signed_request import import optional_signed_request L29–29
+ public_key_fingerprint import import public_key_fingerprint L28–28
+ pytest import import pytest L22–22
+ pytest_asyncio import import pytest_asyncio L23–23
+ read_resource import import read_resource L36–36
+ require_signed_request import import require_signed_request L29–29
+ timezone import import timezone L20–20
+ test_agent_cannot_grant_scope_beyond_its_own function async_function test_agent_cannot_grant_scope_beyond_its_own L266–273
+ test_expiring_agent_cannot_grant_longer_life function async_function test_expiring_agent_cannot_grant_longer_life L277–286
+ test_human_can_still_provision_agents function async_function test_human_can_still_provision_agents L290–294
+ test_mcp_resource_private_repo function async_function test_mcp_resource_private_repo L207–212
+ test_mcp_tools_private_repo function async_function test_mcp_tools_private_repo L216–225
+ test_object_cdn_private_object_access function async_function test_object_cdn_private_object_access L179–187
+ test_object_cdn_public_object_cached_publicly function async_function test_object_cdn_public_object_cached_publicly L191–194
+ test_object_cdn_unreferenced_object_denied function async_function test_object_cdn_unreferenced_object_denied L198–201
+ test_private_repo_allowed_to_owner_and_collaborator function async_function test_private_repo_allowed_to_owner_and_collaborator L135–139
+ test_private_repo_denied_to_anonymous function async_function test_private_repo_denied_to_anonymous L128–131
+ test_private_repo_denied_to_unrelated_and_pending function async_function test_private_repo_denied_to_unrelated_and_pending L120–124
+ test_public_repo_readable_by_everyone function async_function test_public_repo_readable_by_everyone L143–149
+ test_webhook_deliveries_owner_only function async_function test_webhook_deliveries_owner_only L231–236
+ world function async_function world L55–79
~ tests/test_security_r1_scopes.py .py 67 symbols added
+ _backend function function _backend L237–244
+ _call function async_function _call L80–93
+ _ctx function function _ctx L51–53
+ _tool function async_function _tool L163–173
+ ASGITransport import import ASGITransport L22–22
+ AsyncClient import import AsyncClient L22–22
+ AsyncGenerator import import AsyncGenerator L16–16
+ AsyncMock import import AsyncMock L18–18
+ AsyncSession import import AsyncSession L24–24
+ FetchCommitNotFound import import FetchCommitNotFound L44–44
+ MPackValidationError import import MPackValidationError L46–46
+ MSignContext import import MSignContext L29–29
+ MUSEHUB_WRITE_TOOL_NAMES import import MUSEHUB_WRITE_TOOL_NAMES L40–40
+ MagicMock import import MagicMock L18–18
+ MusehubCollaborator import import MusehubCollaborator L32–32
+ MusehubCommit import import MusehubCommit L34–34
+ MusehubCommitRef import import MusehubCommitRef L34–34
+ MusehubIdentity import import MusehubIdentity L33–33
+ MusehubObject import import MusehubObject L34–34
+ MusehubObjectRef import import MusehubObjectRef L34–34
+ MusehubRepo import import MusehubRepo L34–34
+ ObjectInput import import ObjectInput L41–41
+ READ_TOOLS import import READ_TOOLS L39–39
+ REQUIRED_SCOPE import import REQUIRED_SCOPE L39–39
+ SCOPED_CALLER_DENIED import import SCOPED_CALLER_DENIED L39–39
+ _write_object import import _write_object L43–43
+ annotations import import annotations L12–12
+ app import import app L37–37
+ base64 import import base64 L14–14
+ blob_id import import blob_id L27–27
+ build_wire_mpack import import build_wire_mpack L26–26
+ compute_collaborator_id import import compute_collaborator_id L30–30
+ compute_identity_id import import compute_identity_id L30–30
+ create_repo import import create_repo L42–42
+ datetime import import datetime L17–17
+ fake_id import import fake_id L27–27
+ get_db import import get_db L31–31
+ handle_request import import handle_request L38–38
+ json import import json L15–15
+ mcp_caller_scope import import mcp_caller_scope L28–28
+ optional_signed_request import import optional_signed_request L29–29
+ patch import import patch L18–18
+ pytest import import pytest L20–20 ← moved from tests/test_auth_dead_identity_recovery.py
+ pytest_asyncio import import pytest_asyncio L21–21
+ require_signed_request import import require_signed_request L29–29
+ select import import select L23–23
+ timezone import import timezone L17–17
+ tool_scope_error import import tool_scope_error L39–39
+ wire_fetch import import wire_fetch L44–44
+ wire_fetch_objects import import wire_fetch_objects L45–45
+ wire_push_unpack_mpack import import wire_push_unpack_mpack L45–45
+ test_every_authenticated_mcp_tool_is_classified_once class function test_every_authenticated_mcp_tool_is_classified_once L98–105
+ test_fetch_objects_only_returns_repo_objects function async_function test_fetch_objects_only_returns_repo_objects L212–221
+ test_fetch_rejects_foreign_commit_wants function async_function test_fetch_rejects_foreign_commit_wants L225–232
+ test_mcp_private_repo_reads_gated function async_function test_mcp_private_repo_reads_gated L177–184
+ test_mcp_push_rejects_mislabelled_object function async_function test_mcp_push_rejects_mislabelled_object L275–283
+ test_mcp_scope_policy_enforced function async_function test_mcp_scope_policy_enforced L203–206
+ test_mcp_write_gate_for_tools_without_own_check function async_function test_mcp_write_gate_for_tools_without_own_check L188–199
+ test_rest_private_read_requires_repo_scope function async_function test_rest_private_read_requires_repo_scope L121–128
+ test_rest_public_read_unaffected_by_scope function async_function test_rest_public_read_unaffected_by_scope L132–134
+ test_rest_repo_write_requires_repo_write_scope function async_function test_rest_repo_write_requires_repo_write_scope L138–141
+ test_tool_scope_error_rules function function test_tool_scope_error_rules L108–115
+ test_wire_private_read_requires_repo_scope function async_function test_wire_private_read_requires_repo_scope L147–150
+ test_wire_push_accepts_correct_blob function async_function test_wire_push_accepts_correct_blob L264–271
+ test_wire_push_rejects_mislabelled_blob function async_function test_wire_push_rejects_mislabelled_blob L248–260
+ test_wire_write_requires_repo_write_scope function async_function test_wire_write_requires_repo_write_scope L154–158
+ world function async_function world L57–77
~ musehub/api/routes/api/auth.py .py 1 symbol modified
~ musehub/api/routes/api/snapshots.py .py 1 symbol added, 7 symbols modified
~ musehub/api/routes/mcp.py .py 1 symbol added, 1 symbol modified
+ mcp_caller_scope import import mcp_caller_scope L40–40
~ musehub/api/routes/musehub/_ui_helpers.py .py 1 symbol added, 2 symbols modified
+ require_repo_read import import require_repo_read L17–17
~ musehub/api/routes/musehub/blame.py .py 1 symbol added, 1 symbol modified
+ require_repo_read import import require_repo_read L25–25
~ musehub/api/routes/musehub/bridges.py .py 2 symbols added, 1 symbol removed, 5 symbols modified
− require_valid_token import import require_valid_token L18–18
+ require_repo_read import import require_repo_read L19–19
+ require_scope import import require_scope L18–18
~ musehub/api/routes/musehub/collaborators.py .py 2 symbols added, 6 symbols modified
+ require_repo_read import import require_repo_read L29–29
+ require_scope import import require_scope L28–28
~ musehub/api/routes/musehub/issues.py .py 1 symbol added, 3 symbols modified
+ require_repo_read import import require_repo_read L31–31
~ musehub/api/routes/musehub/labels.py .py 1 symbol added, 1 symbol modified
+ require_repo_read import import require_repo_read L30–30
~ musehub/api/routes/musehub/objects.py .py 1 symbol added, 4 symbols modified
+ require_repo_read import import require_repo_read L23–23
~ musehub/api/routes/musehub/releases.py .py 1 symbol added, 4 symbols modified
+ require_repo_read import import require_repo_read L30–30
~ musehub/api/routes/musehub/search.py .py 1 symbol added, 1 symbol modified
+ require_repo_read import import require_repo_read L28–28
~ musehub/api/routes/musehub/topics.py .py 1 symbol added, 1 symbol removed, 3 symbols modified
− require_valid_token import import require_valid_token L33–33
+ require_scope import import require_scope L33–33
~ musehub/api/routes/musehub/ui_proposals.py .py 1 symbol added, 1 symbol modified
+ require_repo_read import import require_repo_read L22–22
~ musehub/api/routes/musehub/webhooks.py .py 1 symbol added, 6 symbols modified
~ musehub/api/routes/wire.py .py 2 symbols added, 9 symbols modified
+ can_read_repo import import can_read_repo L31–31
+ require_repo_write_scope import import require_repo_write_scope L31–31
~ musehub/mcp/dispatcher.py .py 8 symbols added, 1 symbol modified
+ _REPO_GATE_EXEMPT variable variable _REPO_GATE_EXEMPT L437–437
+ _REPO_WRITE_GATED variable variable _REPO_WRITE_GATED L440–444
+ _caller_can_read_repo function async_function _caller_can_read_repo L472–478
+ _caller_can_write_repo function async_function _caller_can_write_repo L447–455
+ _repo_gate_error function async_function _repo_gate_error L458–469
+ can_read_repo import import can_read_repo L59–59
+ mcp_caller_scope import import mcp_caller_scope L59–59
+ tool_scope_error import import tool_scope_error L60–60
~ musehub/mcp/resources.py .py 1 symbol modified
~ musehub/mcp/write_tools/collaborators.py .py 1 symbol added, 1 symbol modified
+ can_read_repo import import can_read_repo L9–9
~ musehub/services/musehub_auth.py .py 1 symbol added, 5 symbols modified
+ func function import func L47–47
~ delete
~ select
~ update
~ musehub/services/musehub_wire_fetch.py .py 2 symbols added, 12 symbols modified
~ musehub/services/opengraph_cards.py .py 1 symbol added, 1 symbol modified
+ can_read_repo import import can_read_repo L20–20
~ tests/test_auth_authorization.py .py 3 symbols added, 1 symbol removed, 10 symbols modified
− test_private_repo_with_claims_allowed method method test_private_repo_with_claims_allowed L80–82
+ test_private_repo_accepted_collaborator_allowed method async_method test_private_repo_accepted_collaborator_allowed L87–88
+ test_private_repo_authenticated_non_member_raises_404 method async_method test_private_repo_authenticated_non_member_raises_404 L90–94
+ test_private_repo_owner_allowed method async_method test_private_repo_owner_allowed L84–85
~ tests/test_auth_dead_identity_recovery.py .py 19 symbols added, 10 symbols removed, 4 symbols modified
− _auth function async_function _auth L66–76
− _make_dead_identity function async_function _make_dead_identity L79–109
− _sign function function _sign L49–50
− compute_identity_id import import compute_identity_id L33–33
− pytest import import pytest L30–30 → moved to tests/test_security_r1_scopes.py
− test_D1_dead_identity_blocks_reregister_without_fix function async_function test_D1_dead_identity_blocks_reregister_without_fix L116–135
− test_D2_dead_identity_reregister_succeeds function async_function test_D2_dead_identity_reregister_succeeds L142–156
− test_D3_recovered_identity_auth_succeeds function async_function test_D3_recovered_identity_auth_succeeds L163–178
− test_D4_active_identity_cannot_be_stolen function async_function test_D4_active_identity_cannot_be_stolen L185–200
− test_D5_active_identity_same_key_login function async_function test_D5_active_identity_same_key_login L207–218
+ _active_keys function async_function _active_keys L65–73
+ _identity_id function async_function _identity_id L58–62
+ AsyncGenerator import import AsyncGenerator L21–21
+ MSignContext import import MSignContext L31–31
+ app import import app L35–35
+ compute_key_id import import compute_key_id L32–32
+ datetime import import datetime L22–22
+ pytest_asyncio import import pytest_asyncio L24–24
+ require_signed_request import import require_signed_request L31–31
+ timezone import import timezone L22–22
+ update import import update L27–27
+ signed_as function async_function signed_as L77–82
+ test_D1_active_identity_rejects_different_key function async_function test_D1_active_identity_rejects_different_key L85–90
+ test_D2_hard_deleted_keys_do_not_allow_takeover function async_function test_D2_hard_deleted_keys_do_not_allow_takeover L93–103
+ test_D3_revoked_keys_do_not_allow_takeover function async_function test_D3_revoked_keys_do_not_allow_takeover L106–119
+ test_D4_active_identity_same_key_login function async_function test_D4_active_identity_same_key_login L122–126
+ test_D5_new_handle_registers function async_function test_D5_new_handle_registers L129–134
+ test_D6_cannot_revoke_last_active_key function async_function test_D6_cannot_revoke_last_active_key L137–149
+ test_D7_can_revoke_one_of_two_keys function async_function test_D7_can_revoke_one_of_two_keys L152–175
~ _kp
~ delete
~ select
~ tests/test_key_status.py .py 3 symbols added, 6 symbols modified
+ _add_spare_key function async_function _add_spare_key L88–104
+ AuthError import import AuthError L36–36
+ test_ks07_last_active_key_cannot_be_revoked function async_function test_ks07_last_active_key_cannot_be_revoked L220–230
~ tests/test_object_refs_on_repush.py .py 1 symbol removed, 1 symbol modified
− hashlib import import hashlib L23–23 → moved to tests/test_security_r1_repo_authz.py
← Older Oldest on candidate/m-prime
All commits
Newer → Latest on candidate/m-prime

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