worldtree-sdk cutover — adopt the Python SDK for the consumer client layer #20
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?
Decision
Operator-ruled (2026-07-18): ratatoskr adopts worldtree-sdk (Python) 1.0.0 for its consumer client layer, retiring its hand-rolled httpx wrappers (
sessions.py/sse_client.py/tier3.py). Adopt-canonical over stay-independent. The SDK is the GA Python client ratatoskr's own parity pass shaped.Design (locked, vor-cross'd with worldtree-codex, heid-panel-reviewed)
Contract:
docs/contracts/worldtree_sdk_cutover.contract.md. Six decisions:first_messagestays ratatoskr-owned.ApiErrorfloor → ratatoskr exceptions; see the § Error map table — route is the discriminator, default →SessionApiFailed).worldtree-sdk==1.0.0from the internal gitea PyPI. CLEARED — registry live.Scope
Consumer client layer ONLY (→
ratatoskr.wtadapter, caller-injected transport). CLI/TUI/Starlette web external behavior preserved. Bifrost PROVIDER planes (memory/affect, ADR-0009) untouched.Slice plan
1 Foundation → 2 Sessions/turn → 3 Persona+history → 4 Agents (folds in the pending tier3 model→role) → 5 Characters/me/caps/models → 6 Admin → 7 Teardown.
Multi-session migration. Tracks all slices to done.