Ephemeral-template (Echo) session creation — REST coverage #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gap
create_sessioncould only mint foundational sessions ({"agent_id": <agent>}). Starting an ephemeral template session (agent_id="echo") returned422 ephemeral_requires_config— ratatoskr had no way to supply the requiredconfigblock, so Echo was uncreatable. Surfaced as an opaquesession_api_failedat the CLI.Fix (implemented in-session, direct House Code Discipline)
create_session(config=…)— verbatim, role/model-agnostic config passthrough (PRE-004/005 guards; config+bifrost mutually exclusive).SessionInfo.kind/.configcapture on both create + list.--system-promptflag (buildsconfig={"system_prompt": …}; validation: non-empty, requires--new+--agent, xor bifrost);_amainsurfaceskind=.--whoamirenderer fixed to readallowed_roles/default_role(was reading deadallowed_models/default_model).Grounding
role↔modeldrift resolved with worldtree-dev (althing thread 01KXT976NN91DRBZBPXNZ2BVZR): canonical isconfig.role(neverconfig.model, which now hard-rejects); role cutover commit bb4d551 / ADR-0012. Pinned conversation-api-spec.md re-synced to v1.1 (b4a278c). Verified end-to-end against the live v0.16.2 target.Coverage
REST ephemeral-template create now covered. Contract: docs/contracts/issues/2.contract.md (Amendment 2026-07-18). Tests: 7 sessions + 6 CLI (TDD). Full suite green.
Tracking record for work already landed; closed by the implementing commit.