HKUDS/DeepTutor · error · HTTPException
unknown L3 slot
Error message
unknown L3 slot {key!r} What it means
Guard in the _validate_doc_key helper: for layer=L3 the key path segment is not one of the known L3 slots, so the requested memory document does not exist. It is an input-shape error about the key, not about missing data — the slot name itself is invalid.
Solutions
- Use one of the documented L3_SLOTS names as the key segment
- Fetch the list of valid slots from the memory API before addressing an L3 doc
- Check the layer: if the doc is an L2 surface, pass layer=L2 with a SURFACES name
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at deeptutor/api/routers/memory.py:66 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/2338cbd884a0a91e.
Report an issue: GitHub.
Appendix: source
Thrown at deeptutor/api/routers/memory.py:66
paths,
)
_ENTRY_ID_RE = re.compile(r"^m_[0-9A-HJKMNP-TV-Z]{26}$")
logger = logging.getLogger(__name__)
router = APIRouter()
Layer = Literal["L2", "L3"]
# ── Helpers ──────────────────────────────────────────────────────────────
def _validate_doc_key(layer: Layer, key: str) -> None:
if layer == "L2" and key not in SURFACES:
raise HTTPException(status_code=404, detail=f"unknown surface {key!r}")
if layer == "L3" and key not in L3_SLOTS:
raise HTTPException(status_code=404, detail=f"unknown L3 slot {key!r}")
def _validate_layer(layer: str) -> Layer:
if layer not in {"L2", "L3"}:
raise HTTPException(status_code=400, detail="layer must be L2 or L3")
return layer # type: ignore[return-value]
def _validate_surface(surface: str) -> Surface:
if surface not in SURFACES:
raise HTTPException(status_code=404, detail=f"unknown surface {surface!r}")
return surface # type: ignore[return-value]
# ── Overview / list ──────────────────────────────────────────────────────
@router.get("/overview")View on GitHub (pinned to 3e82f13042)