Data Flow
This page tracks key request/data paths from UI action to persistence and audit.Work Order Update Flow
- UI action calls
/api/work-ordersor/api/work-orders/:id. - Governor checks run for protected transitions.
- Repository updates SQLite rows.
- Activity records are written.
- Updated DTOs return to UI.
Protected Action Flow (Typed Confirm)
- Client includes
typedConfirmTextin request body. - Route calls
enforceTypedConfirmorwithGovernor. - Invalid/missing confirmation returns
428/403with policy metadata. - If allowed, action executes and logs activity/receipt data.
Console Message Flow
- Agent-scoped send:
/api/openclaw/console/sessions/:id/send(console.agent.chat). - Session-scoped chat:
/api/openclaw/console/sessions/:id/chat(console.session.chat, true session routing by session key). - Both paths create receipts and activity entries.
Workspace Edit Flow
- UI resolves file entry ID.
- Route validates path policy and protected-file rules.
- Optional typed-confirm gate applies based on action/file.
- Filesystem write is performed.
- Response returns updated file metadata/content.
Maintenance Flow
- Health/recover endpoints execute allowlisted OpenClaw commands.
- Output streams into receipts.
- Parent and child receipts are linked in recovery flows.