Initialize a SKILL.state session
initialize_skillStart a skill execution session: store the immutable specification and initial state, then receive the boot prompt that becomes the LLM's entire context for step-by-step execution.
Instructions
Create a new SKILL.state execution session. Stores the immutable skill specification P and the initial execution state Σ_0, then returns the initial prompt payload (P, Σ_0, boot observation). From this point on, the LLM must treat that payload as its ENTIRE context — there is no message history. Advances happen exclusively through execute_step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Unique identifier for this skill session, e.g. 'triage-ticket-1042'. Must not collide with an existing active session. | |
| environment | No | Execution environment: 'mock' (default generic mock) or 'warehouse' (SkillExecBench Environment 1). | mock |
| state_schema | No | Optional domain schema for execution state Σ (arXiv:2608.26263 §3.1, §7). Can specify required keys (with expected primitive types like 'string', 'number', 'boolean', 'object', 'array') and disallowed unexpected keys. If Σ violates this schema, the step is rolled back. | |
| initial_state | No | Σ_0 — the starting structured execution state as a JSON object. Defaults to an empty object. This is the ONLY state the LLM will ever see. | |
| skill_specification | Yes | P — the IMMUTABLE procedural skill specification. A markdown instruction document or a structured JSON object. It is deep-frozen by the runtime and returned verbatim in every subsequent turn payload. |