Tasks API
Memorose exposesL3 as a task and goal execution surface rather than hiding it behind internal workers.
What These Routes Are For
Use the Tasks API when you need to:- inspect task trees for one stream
- inspect all goal trees for one user
- pull ready-to-run work
- update task state after execution
Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
GET | /v1/users/:user_id/streams/:stream_id/tasks/tree | Return the goal tree for one stream |
GET | /v1/users/:user_id/tasks/tree | Return all goal trees for one user |
GET | /v1/users/:user_id/tasks/ready | Return ready-to-run tasks whose dependencies are satisfied |
PUT | /v1/users/:user_id/tasks/:task_id/status | Update one task |
Status Update Request
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
status | enum | Yes | New task status |
progress | number | No | Progress value from 0.0 to 1.0 |
result_summary | string | No | Human-readable summary of the outcome |
Response
The update route returns the updatedL3Task object.
Practical Notes
statusfollows theTaskStatusenum inmemorose-common.- Completed tasks can sediment their outcome back into the event stream.
readytasks are not just pending tasks; they are pending tasks whose dependencies are already satisfied.