muse_registry.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
3 days ago
| 1 | """Optional Muse agent-key registry seam (§P0.4 / §P0.7). |
| 2 | |
| 3 | The kit verifies signatures; Muse owns key custody. Under Muse-backed regimes, |
| 4 | ``human_ref`` may resolve via an injected registry in tests or future adapters. |
| 5 | """ |
| 6 | |
| 7 | from __future__ import annotations |
| 8 | |
| 9 | from typing import Protocol |
| 10 | |
| 11 | |
| 12 | class MuseAgentKeyRegistry(Protocol): |
| 13 | """Resolve an agent public key from a human owner reference.""" |
| 14 | |
| 15 | def resolve_pubkey(self, *, human_ref: str, agent_id: str) -> str | None: |
| 16 | """Return ``ed25519:<base64>`` pubkey token or None when unknown.""" |
| 17 | |
| 18 | |
| 19 | class NullMuseAgentKeyRegistry: |
| 20 | """Default registry: no Muse lookup (entry-embedded pubkey only).""" |
| 21 | |
| 22 | def resolve_pubkey(self, *, human_ref: str, agent_id: str) -> str | None: |
| 23 | return None |
File History
2 commits
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
3 days ago
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439
feat: K1-P1 complete — agent provenance, build-verification…
Sonnet 4.6
patch
54 days ago