DocumentationLow-level design

Low-level design

Design the Tasks API modules and the queue-publication failure path.


Low-level design documents the modules, interfaces, and internal connections of one High-level design component. This workspace belongs to Tasks API. Its links to the gateway, worker, and database remain in High-level design.

Tasks API preview

Low-level design
Tasks HTTP APIInterface
Task commandsModule
Task queriesModule
Reminder schedulerModule
Queue unavailableError scenario
due timeon failure

From Reminder scheduler, the arrow labeled on failure is the error path. The module references the reminders table and the Reminder queue without redefining them.

Modules and error handling

Each artifact on this canvas has an ownership link to Tasks API.

  • Tasks HTTP API is the entry. The routes the gateway forwards are POST /tasks, PATCH /tasks/:id, POST /lists, and GET /lists. Its data-contract references are tasks, todo_lists, and task_status. Connections lists those three. The columns stay on the Data Model.
  • Task commands creates tasks, moves them between lists, and marks them complete. It refuses an empty title — the acceptance criterion on Capture a task in one step, placed on the module that can enforce it. It depends on tasks and todo_lists.
  • Task queries reads the user’s lists and their tasks from tasks and todo_lists.
  • Tasks HTTP API calls both modules. Task commands continues to Reminder scheduler, labeled due time, when a task gains a due time.
  • Reminder scheduler writes the reminders row and publishes to Reminder queue. The worker handles provider calls, following the decision Push reminders via a queue.
  • Queue unavailable describes an error in the scheduler: the Tasks API cannot publish a saved reminder to the queue. The task and reminder row survive; scheduling remains pending. Retry publication with the reminder’s stable id so retrying does not create another reminder. Provider delivery and its retries belong to the worker, outside this workspace.

The notification worker would have its own Low-level design workspace. Delivery errors and provider retries belong there; this workspace covers failures when the API publishes to the queue.

Node types

The layer supports six artifact types:

  • Structure — an interface (the entry points) and a module (a responsibility boundary). Auth, validation, and transaction handling can be represented as modules.
  • Overlays — a named path, and an error scenario. A named path is a lens over arrows that already exist. It highlights that route and dims the rest. It is not a card. An error scenario attaches to a module or connection. Here, on failure leads to Queue unavailable. This project includes an error scenario but no named path. The gallery shows an example of the named-path type.
  • Extensions — an extension point (a pluggable contract with a default) and an AI agent (instructions, a model, tools). The example uses neither. An extension point could support additional reminder channels.
Low-level design node types
  • ModuleTask commandsA responsibility boundary inside one component.
  • InterfaceTasks HTTP APIEntry points exposed by part of the component.
  • Named pathComplete a taskA named lens over a request path through existing modules.
  • Error scenarioQueue unavailableA failure hung off a module or edge.
  • Extension pointReminder channelA pluggable contract with a default behavior.
  • AI agentTask capture assistantAn agent with instructions, a model, and tools.

Workspace rules

  • One workspace maps to exactly one High-level design component. You open it by drilling into that component. Namespaces are not how these workspaces are grouped.
  • Data contracts stay in the Data Model. Tasks HTTP API references tasks, todo_lists, and task_status. It does not restate their columns.
  • Arrows inside the component carry a label, and they stay inside the owning component. In the app the line pattern says what the arrow is: solid for a synchronous call, dashed for an event, double for data, dotted for a dependency. An error outcome is labeled on the arrow — here, on failure, from Reminder scheduler to Queue unavailable.
  • A link out to another component is cross-layer, not a canvas arrow. Reminder scheduler connects to Reminder queue that way, because the queue is a separate box on the high-level design. The app displays module error scenarios as overlays. This preview shows Queue unavailable as a card connected to the scheduler.

Next

Continue to Implementation Package to prepare three implementation briefs from this design.