HKUDS/DeepTutor · error · HTTPException
preferences is written by the write_memory tool, not consoli
Error message
preferences is written by the write_memory tool, not consolidated
What it means
Error "preferences is written by the write_memory tool, not consolidated" thrown in HKUDS/DeepTutor.
Source
Thrown at deeptutor/api/routers/memory.py:318
language=req.language,
on_event=on_event,
)
return go
raise HTTPException(status_code=400, detail=f"unknown mode {req.mode!r}")
@router.post("/runs/start")
async def start_run(req: RunStartRequest):
"""Start one consolidator mode and return a run handle.
The run survives client disconnects; reconnect via
``GET /runs/{id}/events?since=N``.
"""
lyr = _validate_layer(req.layer)
_validate_doc_key(lyr, req.key)
if lyr == "L3" and req.key == "preferences" and req.mode not in ("dedup", "merge"):
raise HTTPException(
status_code=405,
detail="preferences is written by the write_memory tool, not consolidated",
)
from deeptutor.services.memory.consolidator.runs import (
RunBusyError,
get_run_manager,
)
manager = get_run_manager()
runner = _runner_for(req)
selection = (
{"profile_id": req.llm_selection.profile_id, "model_id": req.llm_selection.model_id}
if req.llm_selection
else None
)
try:
run = await manager.start(
layer=lyr,View on GitHub (pinned to 3e82f13042)
When it happens
Trigger: Thrown at deeptutor/api/routers/memory.py:318 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/1770940ca4e1fa8a.
Report an issue: GitHub.