Close session & get the signed receipt
session_closeClose a receipted session and get the signed summary receipt.
Optional — sessions also expire on their own — but closing timestamps the
outcome, which helps the machine learn real round-counts per
category. Returns the closed flag AND a signed session-summary
receipt (GAUNTLET #4) — moves count, total charged (one $2 open), and
the per-move context_hashes — to hand your principal. An unknown session
or key mismatch leaves closed false and returns an error instead of
the receipt (indistinguishable, so a session id can't be probed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | The API key that opened the session. | |
| session_id | Yes | The session_id to close. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| closed | No | ||
| receipt | No |