session_enter
Start a session by registering app and session IDs, resolving entry mode for human or dispatched work, and returning project context, handoffs, and governance flags.
Instructions
FIRST CALL of any session. Registers the app/session pair, resolves the
entry mode (human seat vs dispatched specialist — pass dispatch_id when
entering to work an assigned packet), and returns orientation: project
info, ORIENT.md presence, standing records (stack, portfolio, milestones,
commitments, governance flags), the latest project handoff, collection
aliases, and FRANK ledger presence. Close the session later with
session_handoff_write (human path) or handoff_write_v4 (dispatch path).
Identity-in-session PR2: verifier, attested_at, and seal_sig are
optional and route through the willow orchestrator branch. When the
per-verifier keyring (WILLOW_KEYRING) is enabled and all three are
supplied, the signature is verified over the frozen wire message BEFORE
any session record is written; an invalid signature returns a structured
error rather than a raw exception. When the keyring is not enabled the
three parameters are ignored and pre-PR2 behavior stands verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| project | No | ||
| seal_sig | No | ||
| verifier | No | ||
| workspace | No | ||
| session_id | Yes | ||
| attested_at | No | ||
| dispatch_id | No |