docs(#2569): address argus review — add Errors/Panics doc sections + fix ClearTodo keyless-clear semantics

This commit is contained in:
damocles 2026-07-19 02:03:44 +02:00 committed by mara
commit 565b1b90fc
3 changed files with 61 additions and 5 deletions

View file

@ -106,6 +106,10 @@ pub fn for_agent(coord: &Coordinator, agent: &str) -> Result<Vec<LooseEnd>> {
/// This agent's dynamic todos as `LooseEnd::Todo` rows, optionally
/// filtered to one `subsystem`. Shared by [`for_agent`] and the
/// `ListTodos` handler so the row-mapping lives in one place.
///
/// # Errors
///
/// Propagates the todo-store query failure.
pub fn todos_for(
coord: &Coordinator,
agent: &str,