Skip to main content
slowave_commit closes the current task session, records the verified outcome, and triggers offline memory consolidation. It is the final step of the Slowave cognitive cycle. Every task that begins with slowave_activate should end with slowave_commit. If the commit is skipped, the idle-session reaper will eventually close the session, but without the outcome metadata, feedback enforcement, or procedure capture that commit provides.

Parameters

string
required
The active session identifier returned by slowave_activate. The session must exist and must not already be ended.
string
required
The confirmed goal for the task, as understood after completing the work. This may refine the initial_goal provided at activation if the task evolved. Must be nonblank.
string
required
The result of the task. Must be one of:
  • success — the task was completed as intended.
  • partial — the task was partially completed or the result is incomplete.
  • failure — the task was not completed or ended in an error.
string
required
A standalone, human-readable description of what actually happened. Write this as a self-contained sentence that is meaningful without other context — it will be surfaced in future memory retrievals. Must be nonblank.
object
required
A structured record of how the outcome was verified.
object
An optional record of the reusable method that was applied during the task. Include a procedure when the task followed a clear, repeatable sequence of steps that would be useful to a future agent working on a similar problem in the same scope.
array
An optional executed-attempt trace of the task. Limited to at most 32 entries. Each entry describes one step of what the agent did, not the Slowave lifecycle itself.
Do not include Slowave lifecycle calls in the trajectory — entries like “Activated the Slowave session”, “Called slowave_recall”, or “Committed the session” will be silently filtered out by the server. The trajectory is a narration of your task actions and observations only. If the server filtered entries, the response will include a trajectory_lifecycle_filtered count.

Response

string
The session identifier that was closed, echoed back for confirmation.
integer
The number of episodic memories created from this session’s activity during consolidation.
string
complete for a normal closure where all required feedback was present.
boolean
true when the session was successfully closed.
string
The recorded outcome, echoed back.
string
The recorded verification status, echoed back.
string
closed when the session was freshly committed; updated when commit was called on an already-ended session.
integer
Present only when trajectory entries were removed because they described Slowave lifecycle operations. Indicates how many entries were filtered. If this field appears, review your trajectory construction to exclude Slowave tool calls.
string
Informational only. Present when the session had several tool-use events but zero slowave_recall calls, as a reminder that deliberate mid-task recall is available.

Incomplete feedback error

If any retrieval_id from an activation or recall during this session has not been fully covered by feedback, slowave_commit returns a retryable error:
The outstanding array lists every retrieval event and the specific memory and procedure IDs that still need assessment. Submit slowave_feedback for each entry in outstanding, then retry the commit.

When to include a procedure

Include the procedure field when:
  • The task followed a clear sequence of steps that solved a well-defined problem.
  • The method is likely to apply in a future session on the same or a related task.
  • The steps are repeatable and can be described without relying on task-specific ephemera.
Omit the procedure field when:
  • The task was a one-off that required unique judgment calls.
  • The steps are too specific to this exact situation to generalize.
  • The task failed and no reusable method emerged.
A procedure captured in slowave_commit is stored as an execution-backed record tied to the session’s outcome and verification. Failed attempts are stored too when a procedure is supplied — they appear as warnings when the procedure is retrieved in a future task. Only include a procedure when you genuinely followed the steps; do not reconstruct them post-hoc.

Idle-session fallback

If slowave_commit is never called, the idle-session reaper closes the session after SLOWAVE_SESSION_IDLE_TIMEOUT seconds (default 3600). Sessions closed by the reaper:
  • Do not enforce feedback completeness.
  • Do not capture a final goal, outcome summary, verification, or procedure.
  • Do not trigger the same consolidation quality as an explicit commit.
Always prefer an explicit slowave_commit call over relying on the reaper.

Examples