Wake Status
wake_statusRead-onlyIdempotent
Check which context layers loaded successfully on this session start. Returns a structured status: which of embryo, conventions, agent identity, closing note, and opening note were found, plus a missing[] list. Call this after load_context() or resume_session() to verify your bootstrap was complete and diagnose what to fetch manually.
Optional: pass profile='worker-dev' (or another platform:profile: slug) to additionally check the REQUIRE keys named in that profile's recipe. Missing required facts surface in the same missing[] list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | Variable substitutions for the recipe (e.g. {'TASK_FACT_KEY': 'comms:dispatch:dev:42'}). | |
| scope | No | Optional project/tenant-scope prefix (e.g. 'chad' or a project slug). Used for tenant-local recipe override AND, when agent_id is set, for project-scoped self-note lookups (project:<scope>:agent:<agent_id>:self-note:closing preferred over global). | |
| profile | No | Optional profile slug to validate REQUIRE keys against (e.g. 'worker-dev'). | |
| agent_id | No | Calling agent's identity slug (e.g. 'emily_code_4.7'). When set, closing/opening/identity checks use exact-key lookups (agent:<agent_id>:self-note:closing, agent:<agent_id>:identity) instead of tenant-wide substring scans — required for correct status on multi-agent tenants. When agent_id resolves no notes, response includes is_fresh_agent=true to signal a brand-new agent that should bootstrap from platform layer (embryo + conventions + bootstrap recipe). When omitted, the response includes a warning that the status is account-level. |