session_reconcile
Compare declared session exit actions against actual receipt log data to uncover unverified claims and unreported privileged actions, then finalize the session.
Instructions
Close a bound session and reconcile what you DECLARE you did against what the receipt log shows you actually did (check-out; willow-gate seam Phase 4 / H3).
exit_declaration is the reconciled subset of the entry header — tools (the
willow-gate CLASSES you exercised: read/write/execute/admin), plus your
self-scored pass_count/fail_count/drift/state_hash. The server sources
the ground truth from ReceiptLog (every gated call that actually ran since your
check-in — you cannot feed it), classifies those tools, and diffs:
claimed_not_done— a class you claim you used that NO receipt backs;beyond_entry/done_not_claimed— a privileged class the receipts show you used that you did not pre-declare / did not report.cleanis false if any privileged discrepancy is found; read-level over/under- reporting is surfaced but never fails the session. The session is DROPPED after this call (its per-call nonce set is freed), so verify_call for it then fails.
Requires a live session bound to your app_id (call session_bind first); returns {error} if there is none. This RECONCILES and records — it never blocks a handoff, so run session_handoff_write / handoff_write_v4 as usual alongside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| session_id | Yes | ||
| exit_declaration | Yes |