"""Layer 1 surface. Domain derivations register here later. No prompt text, no React payloads.""" from __future__ import annotations from typing import Any, Callable _READERS: dict[str, Callable[..., Any]] = {} def register_reader(key: str, reader: Callable[..., Any]) -> None: _READERS[key] = reader def read(key: str, *, profile_id: str, context: dict[str, Any] | None = None) -> Any: if key not in _READERS: raise KeyError(key) return _READERS[key](profile_id=profile_id, context=context or {}) def list_readers() -> list[str]: return sorted(_READERS)