muse_registry.py
python
sha256:0e9549ec7b463911bc08b7d586dc320b1ac9b1f5c943ee7e3865dcc6cb0f6f83
chore(governance): sync handover+roadmap to 84db8c8 (drift:…
Human
1 day 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
1 commit
sha256:6abcf1fa82a7a621ccbc945f19acdba5bc0db54569599404a1452fb4a096a199
fix(ISR): default require_independent_second_reviewer to require
Human
minor
⚠
1 day ago