Changelog
All notable changes to this project will be documented in this file.
From v0.1.0 onward this file is generated by
towncrier via towncrier build;
do not edit it by hand — add a newsfragment under changelog.d/ instead.
0.12.2 (2026-11-27)
Documentation
- Add docs/deepseek/ module documentation and mkdocs nav entries for the direct DeepSeek provider (20261127T133140Z-add-docs-deepseek-module-documentation-a-d9a4) (#776) (69ea39b)
0.12.1 (2026-11-13)
Documentation
- docstring gap: add docstring to AnthropicModel.request_stream in src/robotsix_llmio/anthropic/model.py:39 (20261113T014937Z-docstring-gap-add-docstring-to-anthropic-149e) (#761) (c3c7960)
- Document ARCHITECTURE.md update expectation and env-var coverage in CONTRIBUTING.md and README (20261113T044900Z-document-architecture-md-update-expectat-e2e9) (#764) (b73ac03)
- Reorganize module clients: align to per-module layout (src/docs/tests) (20261113T050656Z-reorganize-module-clients-align-to-per-m-5e0e) (#766) (57d589c)
- Reorganize module config: align to per-module layout (src/docs/tests) (20261113T050656Z-reorganize-module-config-align-to-per-mo-2ad2) (#767) (d9bbda6)
- Reorganize module core: align to per-module layout (src/docs/tests) (20261113T050656Z-reorganize-module-core-align-to-per-modu-de3d) (#765) (d5752a0)
0.12.0 (2026-11-04)
Features
- Export FailoverCostGuardError from the root robotsix_llmio package like its exception peers (20261104T172617Z-export-failovercostguarderror-from-the-r-a683) (#752) (b681843)
- Sweep robotsix_llmio root package for exception peers missing from the top-level exports (20261104T175316Z-sweep-robotsix-llmio-root-package-for-ex-734f) (#755) (9ce7f88)
0.11.1 (2026-11-02)
Documentation
- AGENT.md: CI / workflows — When a PR replaces, renames, or removes a CI job, update the repo's required st… (20261102T125450Z-agent-md-ci-workflows-when-a-pr-replaces-7763) (#748) (b184b96)
0.11.0 (2026-10-30)
Features
- Emit DeprecationWarning for legacy default/fallback tier-config keys and document a shim removal policy (20261030T040153Z-emit-deprecationwarning-for-legacy-defau-8914) (#736) (95d5125)
Documentation
- Reorganize module claude-sdk: align to per-module layout (src/docs/tests) (20261030T041900Z-reorganize-module-claude-sdk-align-to-pe-ccec) (#740) (ce57018)
- Reorganize module core: align to per-module layout (src/docs/tests) (20261030T041900Z-reorganize-module-core-align-to-per-modu-879d) (#739) (ee3f29e)
- Reorganize module openrouter: align to per-module layout (src/docs/tests) (20261030T041900Z-reorganize-module-openrouter-align-to-pe-9a8c) (#738) (3040ada)
0.10.1 (2026-10-26)
Bug Fixes
0.10.0 (2026-10-26)
Features
- Add a direct Anthropic Messages API transport (anthropic/ subpackage, "anthropic" provider prefix) (20261025T134107Z-add-a-direct-anthropic-messages-api-tran-f572) (#720) (572c4fc)
- Generalise TierConfig to an ordered N-slot provider chain with 2-slot back-compat migration (20261025T134210Z-generalise-tierconfig-to-an-ordered-n-sl-1168) (#719) (d98c2d1)
- Rework core/failover.py to cascade through the full provider slot chain (20261025T134210Z-rework-core-failover-py-to-cascade-throu-8657) (#722) (e81db23)
- Set baked default slot order to anthropic → claudeSDK → openrouter for all capability levels (20261025T134210Z-set-baked-default-slot-order-to-anthropi-5a97) (#723) (baf15eb)
- Update config loader and add persisted-config migration for old slot keys (20261025T134210Z-update-config-loader-and-add-persisted-c-21e8) (#724) (e6fd9dc)
Documentation
- AGENT.md: Configuration conventions — When changing baked defaults in
src/robotsix_llmio/config/tier.py, keep the l… (20261025T175444Z-agent-md-configuration-conventions-when-5d0e) (#725) (4d570be) - Update docs and CHANGELOG for the 3-slot provider failover chain (20261025T134210Z-update-docs-and-changelog-for-the-3-slot-634b) (#727) (14fbf96)
0.9.2 (2026-10-23)
Bug Fixes
- CI failure: CI on main (20261023T092155Z-ci-failure-ci-on-main-966a) (#714) (6986cde)
- claude_sdk: stop refusing Bash tokens that cannot name a real path (#716) (19f120a)
0.9.1 (2026-10-22)
Bug Fixes
- claude_sdk: stop the CLI loading the login's claude.ai connectors (#710) (3bc5e3f)
- deps: bump claude-agent-sdk and certifi past fresh advisories (#711) (f51fbf8)
0.9.0 (2026-10-14)
Features
- Add per-request failover cost guard to block more-expensive retries (20260909T194112Z-add-per-request-failover-cost-guard-to-b-6272) (#697) (e29e985)
Documentation
- Validate failover cost reduction and completion rate via cost-monitor (20260909T194112Z-validate-failover-cost-reduction-and-com-4c9a) (#699) (3a7341c)
0.8.0 (2026-10-14)
Features
- price-ceiling: --fix bars cache-read outliers in source and the weekly check opens a PR with the diff (#690) (8db705e)
Bug Fixes
0.7.10 (2026-10-13)
Bug Fixes
- CI failure: Price ceiling drift check on main (20261012T063138Z-ci-failure-price-ceiling-drift-check-on-e292) (#685) (a8d6f00)
- ci: bump bump.yml pin to ghwf 81726d29 (App token scoped to the repo NAME) (#688) (9f51396)
0.7.9 (2026-10-06)
Bug Fixes
- claude_sdk: deny the operator's claude.ai connector tools and AskUserQuestion in headless agents (#682) (e17e8ef)
0.7.8 (2026-10-05)
Bug Fixes
- CI failure: Price ceiling drift check on main (20261005T065020Z-ci-failure-price-ceiling-drift-check-on-0c1e) (#680) (31266fb)
0.7.7 (2026-10-02)
Documentation
- Document the clients/ REST-client layer in ARCHITECTURE.md's "Layer model" section (20261002T131450Z-document-the-clients-rest-client-layer-i-0eef) (#678) (52a8ba4)
0.7.6 (2026-09-09)
Bug Fixes
- claude_sdk: let the Bash confinement hook reach the CLI's own scratch area for the workspace session (#664) (3595b3b)
- claude_sdk: stop the Bash confinement hook refusing the workspace's own .venv interpreter and regex fragments (#662) (7a8aa21)
0.7.5 (2026-09-08)
Bug Fixes
- claude_sdk: deny the Skill tool for restricted agents (#660) (d948d4e)
- tracing: keep the trace-name guard after the root span ends (#657) (8e396ff)
0.7.4 (2026-09-06)
Bug Fixes
0.7.3 (2026-09-05)
Bug Fixes
- claude_sdk: spill oversized system prompts to --system-prompt-file (#651) (453bad9)
- schedule GC-finalizer aclose() on the running loop instead of dropping it (#645) (787547d)
0.7.2 (2026-09-04)
Bug Fixes
- claude_sdk: enumerate exact tool names in the naming note (#634) (70c6ae9)
- claude_sdk: teach the naming note the ToolSearch load step for deferred tools (#636) (60987bb)
- make the OpenRouter transport a base dependency, not an extra (#643) (a02fbcd)
0.7.1 (2026-09-01)
Bug Fixes
- claude_sdk: tell tool agents their tools' real mcp__milltools__ names (#631) (f5e1791)
- deps: refresh first-party pins + ghwf workflow pins to $/-tolerant main (#633) (7eee4cf)
0.7.0 (2026-09-01)
⚠ BREAKING CHANGES
- TierLevel has three members; TierConfig has a new shape; LEVEL{1..5}DEFAULT, call/acall_with_tier_fallback, ModelHealthTracker and the LLMIO* env vars are gone.
Features
- arm failover until the hinted quota reset; workhorse fallback moves to pro (#628) (3f51f20)
- ask_image tool — image questions for text-only models via the vision binding (#629) (f06700a)
- collapse 5 levels to 3 across two provider slots with automatic failover (#625) (3f9127a)
- explicit slot resolution for consumers; dead credential arms failover (#626) (4b3f2ae)
- level 3 back to deepseek-v4-pro, ceiling aligned to cheapest healthy band (#622) (0d2429a)
Bug Fixes
- classify the CLI "Not logged in" wording as an auth error (#627) (ab978be)
- pin level 3 to the dated deepseek-v4-pro-0813 snapshot (#624) (f45db0a)
Reverts
0.6.0 (2026-08-31)
⚠ BREAKING CHANGES
- tiers: every consumer's integer levels must shift by +1 for levels >= 2 (TierConfig.for_level accepts 1..5; TierLevel gains LEVEL5; LEVEL5_DEFAULT exported; LLMIO_LEVEL5_* env overrides). tier_fallback walks five tiers. check-price-ceilings now checks LEVEL3_DEFAULT for mimo.
Features
Bug Fixes
- CI failure: Price ceiling drift check on main (20260831T062341Z-ci-failure-price-ceiling-drift-check-on-1c9f) (#616) (8f919a5)
- ci: use the $/ self-repository syntax for the local composite action (#617) (ff0f7d6)
- claude_sdk: re-prompt the same session for JSON when a tool agent signs off in prose (#611) (4954852)
- claude_sdk: recognise "You've hit your limit" as usage exhaustion (#612) (d051ac1)
- claude_sdk: ship tool-returned images as MCP image blocks, not byte reprs (#606) (90c7c4f)
- claude_sdk: treat a spent session window as usage exhaustion (#605) (f369b36)
- config: raise the level-2 output cap to 65536 (xhigh reasoning eats it) (#603) (40ba3fc)
- core: import robotsix-http's public compute_backoff, and bump the pin (#607) (13a53e4)
- deps: bump mcp to 1.28.1 — WebSocket Host/Origin validation advisory (#618) (a18e324)
- Fix _tier_fallback_loop to skip same-provider levels on exhaustion (20260829T220859Z-fix-tier-fallback-loop-to-skip-same-prov-9026) (#613) (e7ae5cd)
- openrouter: apply explicit provider routing to non-DeepSeek models too (#608) (e660cb8)
- tier: level-3 max_tokens 65536 → 131072 — reasoning burn hit the cap (#621) (ce5931d)
- tighten cheap-tier max_price to $0.10/$0.20 and pin flash snapshot 20260731 (#601) (211f229)
0.5.0 (2026-08-24)
Features
- Switch llmio level1 default model to deepseek/deepseek-v4-flash-latest (20260824T192519Z-switch-llmio-level1-default-model-to-dee-56bd) (#599) (d52f6ae)
0.4.2 (2026-08-21)
Bug Fixes
0.4.1 (2026-08-14)
Bug Fixes
- _parse_output raises TypeError on PromptedOutput([]) — empty validators guard missing (20260811T141407Z-parse-output-raises-typeerror-on-prompte-0b4d) (#576) (7ee9418)
- a refused session option is not a transient spawn failure (#580) (4d9ea9c)
- an E2BIG spawn refusal is not transient (#578) (eee2e14)
- surface the Claude CLI's stderr on a transport failure (#579) (8622770)
0.4.0 (2026-08-10)
⚠ BREAKING CHANGES
- callers relying on a failure at the starting tier propagating immediately must now pass fallback_enabled=False.
Features
- Cooldown before retrying a systematically-failing model in the fallback chain (20260809T142723Z-cooldown-before-retrying-a-systematicall-e410) (#561) (a4bbddc)
- tier fallback on by default (#570) (158b3db)
Bug Fixes
- CI failure: Docs on main (20260809T214217Z-ci-failure-docs-on-main-78fc) (#564) (4c1c35c)
- CI failure: Docs on main (20260809T235823Z-ci-failure-docs-on-main-537f) (#572) (dfa0bbe)
- Fix case mismatch in mkdocs.yml nav: contributing.md → CONTRIBUTING.md (20260809T170705Z-fix-case-mismatch-in-mkdocs-yml-nav-cont-2721) (#563) (667127f)
- Fix mkdocs.yml nav: contributing.md → CONTRIBUTING.md (regression from PR #564) (20260809T220937Z-fix-mkdocs-yml-nav-contributing-md-contr-ec93) (#571) (b77c22f)
0.3.2 (2026-08-09)
Bug Fixes
0.3.1 (2026-08-08)
Bug Fixes
0.3.0 (2026-08-08)
Features
- add build_agent_for_level — pick a capability level, get an agent on that level's default provider+model (#210) (28b23a8)
- claude_sdk: surface tool/thinking activity as live events (#405) (54b495c)
- claude-sdk: allow web tools while otherwise restricted (#544) (a065fe7)
- claude-sdk: restrict built-in tools via builtin_tools, fix tool-path model (#207) (596f52f)
- claude-sdk: surface model reasoning in Langfuse traces (#208) (03c5d0d)
- config: make TierConfig.level1 optional with a baked default (#290) (1fdde38)
- core: is_usage_exhausted predicate + thread should_fallback through run_agent (#496) (5c52572)
- native image support on the claude_sdk path (#411) (aada2ed)
- release: adopt release-please, retire towncrier (#547) (e4e8018)
Bug Fixes
- audit: drop suppressions for CVEs this repo already fixed (#545) (d11916a)
- claude_sdk prompt flattening stringifies binary content parts (#410) (93b9f4a)
- claude-sdk: honour the task_budget floor; never retry API 400s (#526) (c65df6b)
- claude-sdk: retry without task_budget when the model rejects it (#541) (cfe7cdc)
- claude-sdk: treat an expired OAuth credential as terminal, not transient (#528) (27af25c)
- config: stop deriving task_budget from max_tokens on Claude SDK tiers (#542) (621f9e5)
- detect Claude usage-credit exhaustion instead of treating it as a reply (#388) (519c376)
- detect usage-exhaustion when the SDK collapses it into a raised exception (#390) (fd88a2b)
- openrouter: stop hard-pinning DeepSeek; bound fallback price (#499) (4874a16)
- raise Claude Agent SDK query wall-clock cap from 20min to 1h (#408) (0112772)
- release: mint an App token so release PRs get CI (#549) (3957795)
- statically declare lazy core exports under TYPE_CHECKING to kill CodeQL py/undefined-export FP (#204) (6cc7f41)
- tests: stop fake claude_agent_sdk stub leaking across tests (#148) (4891330)
- tier: break provider↔config.tier import cycle via core.tier_enum leaf (a7c128e)
- tracing: always give the trace root a non-empty Langfuse name (#192) (cbe22ee)
- tracing: name the trace even when the root loses session context (#197) (2af509c)
0.2.0 (2026-08-08)
Features
- Claude SDK agents can now be granted
WebFetch/WebSearchwhile otherwise restricted, via the newweb_tools=Trueargument. They were previously denied along with the filesystem and shell built-ins, so a restricted research agent had no way to look anything up — and a refused tool call is indistinguishable from an empty result, so it reported "sources fetched, all empty" instead of "I cannot search". Reading the web mutates nothing local, so it is separable from the sandbox the denylist exists to enforce. Default stays off. (#web-tools-opt-in)
Bug Fixes
- Clear the security audit on
main: bumpcryptography48.0.1 → 50.0.0 (GHSA-g6cj-pr64-35w5, GHSA-m2h6-j472-rp4c, GHSA-jwv3-5hgf-82ww and their PYSEC equivalents — six advisories) andpymdown-extensions10.21.3 → 11.0.1 (GHSA-9xwg-3r6f-jcx2, a path traversal in the b64 extension). Both are transitive and were failing the audit on every PR, not just new ones. (#clear-security-audit-debt) - Dropped the audit suppressions for PYSEC-2026-3552/3553/3554. All three are fixed in cryptography 49.0.0/50.0.0 and this repo already resolves 50.0.0, so the advisories never applied — the entries silenced nothing and would have masked any future advisory that reused an id. The mcp/claude-agent-sdk suppression, which still has no upstream fix, is untouched. (#drop-obsolete-cve-suppressions)
- Stop sending a
task_budgetderived frommax_tokenson the Claude SDK tiers.ClaudeAgentOptionshas no per-response cap, so the value could only become an advisory whole-loop allowance the model is shown as a countdown — and both baked defaults (8192 on level 3, 16384 on level 4) sat below the API's 20,000 floor and were clamped up, so they capped nothing and simply told the model it had a small allowance for the entire task. Observed 2026-08-06: agents abandoning work before starting it ("I'm out of token budget for this task before I could load the required tools"), and a hard 400 on models that reject the parameter outright. Below-floor values now send no budget at all rather than being clamped up. The OpenRouter tiers keepmax_tokens— there it is a real enforced per-response cap. (#no-task-budget-on-claude-sdk-tiers) - Drop
task_budgetand retry once when the API reports the model does not support it, instead of failing the call.task_budgetis a beta parameter only some models accept; the transport was sending it unconditionally whenever a tier configuredmax_tokens, so every call against any other model died with400 This model does not support user-configurable task budgets. Observed on 2026-08-06 taking mill's refine stage down across five boards. The supported set cannot be hardcoded here — callers configure a tier alias (sonnet,opus) that theclaudeCLI resolves downstream — so the rejection itself is the discovery mechanism: the budget is dropped, the request re-sent, and the model remembered so later calls skip straight to the working shape. (#task-budget-unsupported-model) OTelTraceFilterno longer raises when the active span does not implementget_span_context(). Anything reporting itself as recording reaches the filter — span shims, no-op spans, and test doubles implementing only the slice of the OTel Span protocol their own caller needs — and a raising log filter breaks logging for the entire process. A missing attribute now degrades to "no trace id", honouring the "never raises" contract the class docstring already stated. (#trace-filter-tolerates-partial-span)
Miscellaneous
- #20260803T115850Z-robotsix-llmio-enable-credit-balance-per-253f, #20260803T141753Z-remove-stale-test-changelog-py-reference-7e51, #20260803T153036Z-enable-pin-bump-periodic-workflow-on-rob-15f7, #20260804T185648Z-ci-fix-out-of-scope-ci-failure-security-41d4, #20260806T185814Z-add-a-contributing-page-to-the-docs-site-d54d
0.1.5 (2026-08-03)
Features
- Add
is_usage_exhaustedpredicate and threadshould_fallbackthroughrun_agent/arun_agent. Callers can now passshould_fallback=is_usage_exhaustedto degrade to the fallback model only when the primary's usage is exhausted (pydantic-aiUsageLimitExceededorClaudeSDKUsageExhaustedError), while still failing loudly on genuine errors — instead of the previous fall-back-on-everything default. (#20260728T170424Z-is-usage-exhausted-fallback-predicate)
Bug Fixes
- Bump the pinned
robotsix-httpto pick up itsis_transientfix. After llmio's retry primitives moved to that package, ajson.JSONDecodeErrorwrapped in a cause chain (a model emitting malformed JSON for a tool call) and openai'sAPITimeoutErrorstopped being recognised as transient, so those failures hard-errored a run instead of being retried. (#bump-robotsix-http-transient) - Claude SDK: respect the
task_budget.totalAPI floor, and stop retrying API400s.
A tier's max_tokens was mapped straight onto ClaudeAgentOptions.task_budget, but the two are different controls — max_tokens is a hard per-response output cap, while task_budget is an advisory whole-loop budget with an API-enforced minimum of 20,000 tokens. Any agent configured below that floor had every call rejected with 400 \task_budget.total` must be at least 20,000 tokens for this model(mill'srefine, atmax_tokens: 8192).build_task_budget()` now clamps to the floor and warns once per agent.
The 400 was also misclassified as transient: the CLI reports it as assistant text inside an is_error=True result, which claude_agent_sdk collapses into its degenerate-success frame, so the bounded retry burned all three attempts re-sending an identically invalid request and then surfaced an opaque transport failure that callers could read as "ran, changed nothing". A 400 is deterministic, so it now raises the dedicated ClaudeSDKPermanentAPIError and is never retried. Scoped to 400 — 429 and 5xx stay transient. (#claude-sdk-task-budget-floor)
- Classify an expired or rejected Claude OAuth credential as its own terminal failure instead of a transient one. The CLI streams Failed to authenticate. API Error: 401 ... as assistant text and then exits non-zero, which claude_agent_sdk collapses into its generic returned an error result: success message — so a dead credential looked retryable, burned all three attempts against the same expired token, and surfaced as an opaque ClaudeSDKAPIError transport failure. _stream_query now raises the new ClaudeSDKAuthError from both shapes (collapsed exception and clean is_error=True result), and is_claude_sdk_transient excludes it so it fails fast. Callers can catch it alongside ClaudeSDKUsageExhaustedError to degrade to a different capability tier and keep serving while the credential is dead. (#claude-sdk-auth-401)
- DeepSeek-on-OpenRouter requests no longer hard-pin the upstream provider. The layer previously sent {"only": ["DeepSeek"], "allow_fallbacks": False}, so when the DeepSeek upstream account ran out of balance (HTTP 402 Provider returned error, provider_name: DeepSeek, is_byok: False) every deepseek/* request failed even though ~17 other providers served the same model and OpenRouter had already marked DeepSeek status: -5. Routing now uses order + allow_fallbacks: True, keeping DeepSeek first for prompt-cache warmth while letting OpenRouter route past it during an outage.
Fallback cost is bounded by a new max_price ceiling, configurable per tier via provider_kwargs (max_price_prompt / max_price_completion) and defaulting to $0.70/$1.40 per 1M tokens on the capable tier and $0.15/$0.30 on the cheap tier — measured so several healthy providers stay eligible while excluding the ~$1.740/$3.480 tail. allow_fallbacks=False remains available as an explicit opt-in.
Relatedly, an upstream provider's 402 is now treated as transient and retried, so a retry can re-route to a healthy provider. A 402 for our own exhausted OpenRouter credits (which carries no provider_name/is_byok: False markers) still fails fast, as does a BYOK provider's 402. (#openrouter-upstream-402-routing)
Miscellaneous
- #20260803T004545Z-agent-md-testing-conventions-when-splitt-7ef7, #20260731T011721Z-split-tests-core-test-core-retry-async-p-34a6, #20260731T021045Z-openrouter-provider-py-openrouterprovide-3ce8, #20260731T024933Z-remove-redundant-hand-edit-from-towncrie-3923, #20260725T080322Z-robotsix-llmio-migrate-retry-logic-to-co-d00b, #20260728T104245Z-add-missing-openrouter-test-files-to-arc-daef, #20260730T123815Z-split-tests-core-test-tracing-live-py-82-a2bc, #20260730T123816Z-split-tests-claude-sdk-test-tracing-py-4-f305, #20260731T130105Z-relocate-non-claude-live-tests-out-of-te-65bb, #20260801T130625Z-split-tests-core-test-core-tier-fallback-626a, #20260801T130625Z-update-pinned-action-versions-in-setup-r-5714, #20260731T133725Z-remove-claude-sdk-model-py-backward-comp-78ca, #20260731T134949Z-add-otel-span-level-observability-to-tie-6e75, #20260802T142620Z-fix-contributing-md-pre-commit-hook-tabl-7e00, #20260802T142620Z-remove-orphaned-changelog-py-module-test-4aa7, #20260802T142620Z-update-architecture-md-stale-test-file-r-1483, #20260801T143332Z-add-unit-test-for-max-tokens-forwarding-ac77, #20260729T144040Z-split-tests-config-test-tier-py-491-line-a7ac, #20260729T144040Z-split-tests-core-test-tracing-routing-py-91f8, #20260731T144353Z-agent-md-ci-workflows-when-adding-a-chan-d097, #20260731T154246Z-openrouter-init-py-re-export-is-openrout-007b, #20260801T164707Z-add-otel-span-attributes-to-claude-sdk-s-1159, #20260728T184801Z-sync-contributing-md-pre-commit-hook-tab-a1fc, #20260729T190419Z-config-factory-py-create-model-silently-0479, #20260731T192823Z-re-anchor-the-agent-md-changelog-d-rule-2baa, #20260727T212738Z-add-missing-tests-config-and-tests-clien-d7e5, #20260731T213328Z-robotsix-llmio-enable-mypy-baseline-peri-59cf, #20260802T223636Z-enable-prompt-caching-on-the-openrouter-738f, #20260729T231031Z-split-tests-claude-sdk-test-stream-py-64-667d
0.1.4 (2026-07-27)
Bug Fixes
- Replace duplicated HTTP retry primitives with robotsix-http (#20260723T133749Z-migrate-robotsix-llmio-to-robotsix-http-2a3f)
Miscellaneous
- #20260727T002702Z-update-architecture-md-stale-test-core-r-e874, #20260725T022916Z-robotsix-llmio-remove-dead-internal-peri-85b1, #20260721T090836Z-add-codespell-to-pre-commit-hooks-for-do-4a18, #20260721T090836Z-split-tests-claude-sdk-test-claude-sdk-p-62e9, #20260723T091136Z-extract-shared-parse-key-usage-from-dupl-b471, #20260722T091151Z-add-deptry-to-dev-dependencies-pre-commi-4f72, #20260722T091151Z-extract-shared-install-transport-for-tim-17fb, #20260725T092225Z-extract-claudesdk-error-classes-and-prom-d28b, #20260725T092226Z-split-tests-core-test-tracing-py-820-lin-2faa, #20260724T092814Z-refactor-claude-sdk-transient-py-to-use-aadc, #20260724T092815Z-split-tests-core-test-core-tier-fallback-2c44, #20260726T094418Z-split-tests-core-test-core-retry-py-661-183e, #20260726T094419Z-update-architecture-md-stale-test-listin-4d79, #20260720T101622Z-ci-failure-ci-on-main-289f, #20260721T103828Z-ci-failure-docs-on-main-a33a, #20260720T114054Z-robotsix-llmio-enable-agent-check-period-bebe, #20260720T114055Z-robotsix-llmio-enable-trace-review-perio-f2b8, #20260720T123735Z-optimization-the-refine-stage-spent-1-90-f633, #20260720T141755Z-enable-triage-boilerplate-periodic-workf-182f, #20260721T142311Z-robotsix-llmio-enable-module-size-period-e11f, #20260720T172333Z-fix-towncrier-directory-changes-changelo-ec14, #20260721T180008Z-remove-redundant-hand-rolled-audit-job-f-c57a, #20260722T184306Z-consolidate-vulture-deptry-and-modules-i-09df, #20260723T192932Z-consolidate-repetitive-test-parse-timest-e274, #20260721T202017Z-test-gap-add-unit-tests-for-src-robotsix-88c8, #20260724T203353Z-wrap-terminal-claude-sdk-provider-errors-1232, #20260724T211617Z-update-test-stream-query-extra-transient-99a5, #20260724T213724Z-add-test-for-default-wrapping-path-in-st-be14, #20260722T214253Z-remove-dead-pydantic-v1-dict-backward-co-2434, #20260726T232058Z-claude-sdk-init-py-add-missing-type-chec-37ce, #20260726T232058Z-top-level-init-py-re-export-refdocssetti-d77e, #20260726T234216Z-ci-failure-docs-on-main-9739
0.1.3 (2026-07-20)
Bug Fixes
- Sync wrappers (
call_with_retry,call_with_retry_and_fallback,call_with_tier_fallback,run_agent) now drive the shared async loops without an event loop. The #382/#392 dedup refactor wrapped them inasyncio.run(...), which invoked the caller's syncfninside a running loop — crashing every run_sync-style callable (pydantic-aiAgent.run_sync, claude_sdk tool agent) withRuntimeError: asyncio.run() cannot be called from a running event loop/This event loop is already running. (#20260719T000000Z-sync-wrappers-run-loop-free-fix-run-sync-crash)
Miscellaneous
- #20260718T002044Z-robotsix-llmio-re-enable-security-postur-7c5b, #20260716T024533Z-claude-sdk-accept-tools-with-optional-ru-97b4, #20260718T081729Z-robotsix-llmio-enable-audit-periodic-wor-64e4, #20260718T081730Z-robotsix-llmio-enable-repo-description-s-97e5, #20260718T081730Z-robotsix-llmio-enable-state-sync-periodi-8420, #20260719T084953Z-extract-shared-deny-permission-helper-fr-6402, #20260719T084953Z-extract-shared-insertion-helper-from-ins-01fc, #20260720T090023Z-add-uv-malware-check-1-to-changelog-ci-j-c3d3, #20260718T090224Z-add-uv-malware-check-1-to-ci-uv-sync-inv-217e, #20260715T093757Z-robotsix-llmio-enable-security-posture-p-f4a7, #20260713T101313Z-ci-failure-ci-on-main-5db2, #20260715T103257Z-remove-stale-release-yml-entry-from-zizm-1ca1, #20260718T131354Z-robotsix-llmio-enable-docstring-coverage-a30d, #20260718T131355Z-robotsix-llmio-enable-health-periodic-wo-3093, #20260718T131355Z-robotsix-llmio-enable-survey-periodic-wo-e5dc, #20260718T141805Z-remove-stale-security-posture-periodic-p-3575, #20260718T142018Z-remove-stale-state-sync-periodic-pass-pr-208e, #20260718T142635Z-standardize-docstrings-to-google-style-f-2538, #20260719T153036Z-add-tests-for-untested-private-core-modu-1344, #20260714T153350Z-robotsix-llmio-enable-bc-check-and-test-a491, #20260719T154210Z-robotsix-llmio-enable-changelog-autofill-5f5a, #20260718T154931Z-remove-stale-get-json-entry-from-vulture-cbac, #20260716T163127Z-robotsix-llmio-enable-completeness-check-f559, #20260716T163127Z-robotsix-llmio-enable-copy-paste-periodi-a83f, #20260714T163835Z-cleanup-remove-orphaned-knowledge-and-se-1fc0, #20260716T171231Z-orphaned-refdocs-package-at-top-level-du-62b3, #20260716T172051Z-copy-paste-4-file-clone-in-refdocs-remov-85c1, #20260717T172151Z-setup-logging-not-re-exported-from-top-l-bde8, #20260717T173541Z-ci-fix-out-of-scope-ci-failure-cve-2026-60aa, #20260717T175659Z-agent-md-ci-workflows-when-adding-a-cve-8c54, #20260718T184435Z-robotsix-llmio-re-enable-state-sync-peri-d7d8, #20260718T184436Z-robotsix-llmio-re-enable-security-postur-8067, #20260715T192539Z-robotsix-llmio-enable-module-curator-per-241d, #20260717T233024Z-remove-security-posture-from-periodic-ag-9b1e
0.1.2 (2026-07-13)
Features
- Native image support on the claude_sdk path: prompts carrying pydantic-ai
BinaryContentimage parts are now sent to the CLI via streaming-input mode as base64imagecontent blocks (both the no-tools model and the tool-agent path), so vision-capable Claude models actually see attachments. Also fixes the tool-agent path stringifying multimodal list prompts through an f-string (the image-hang bug persisted there). Non-image binaries still degrade to the compact placeholder. (#claude-sdk-native-image-support) claude_sdk._stream_querynow surfaces live tool-call, tool-result, thinking, and intermediate-text activity asClaudeSDKActivityEventobjects — previously only logged at INFO level and otherwise discarded. Callers opt in with the newactivity_events(on_event)context manager (exported fromrobotsix_llmio.claude_sdk), which applies to both the no-toolsClaudeSDKModelpath and the SDK-tools_SdkToolAgentHandlepath without any change tobuild_agent()/run()call sites. (#20260707T084111Z-claude-sdk-activity-events)
Bug Fixes
- Fix Claude Agent SDK prompt flattening stringifying binary content parts: a pydantic-ai
BinaryContent(e.g. an attached image) was rendered viastr(), ballooning a 2 MB image into a ~6 MB escaped-byte prompt that stalled the CLI subprocess for the full per-call wall-clock cap (and was then retried). Binary parts now flatten to a compact[binary attachment: <media type>, <n> bytes — not visible to this text-only model]placeholder. (#claude-sdk-binary-content-placeholder) - Raise
SDK_QUERY_TIMEOUT(the Claude Agent SDK per-call wall-clock cap) from 20 minutes to 1 hour. A genuine multi-turn tool loop tripped the old cap under host load, surfacing as aClaudeSDKQueryTimeoutand failing the turn even though the call was still making progress. Still well under the SDK's own ~2h backstop. (#20260707T125132Z-raise-sdk-query-timeout-to-1h)
Miscellaneous
- #20260709T003851Z-fix-docs-modules-yaml-restore-config-des-2fc4, #20260706T093924Z-deactivate-all-periodic-mill-workflows-k-cb45, #20260706T093945Z-deactivate-all-periodic-mill-workflows-k-be5b, #20260706T112203Z-ci-failure-ci-on-main-df39, #20260706T143435Z-robotsix-llmio-enable-core-periodic-work-c3e5, #20260706T154921Z-boilerplate-doc-classifier-internal-only-4eb1, #20260706T154921Z-boilerplate-triage-skip-for-mechanical-i-b4a0, #20260706T154921Z-boilerplate-triage-skip-mechanical-draft-b4a0, #20260706T160801Z-extract-shared-markers-tuple-to-eliminat-c908, #20260704T204244Z-consolidate-modules-refdocs-knowledge-se-7742, #20260706T232513Z-clean-up-orphaned-changelog-d-newsfragme-5225
0.1.1 (2026-07-06)
Bug Fixes
- Extend usage-credit-exhaustion detection to the case where
claude_agent_sdkcollapses the condition into a raised generic exception (e.g. the degenerate-success message) instead of a cleanis_error=Truereturn, discarding the real "You're out of usage credits" text before it would otherwise be checked._stream_querynow also checks the assistant text already streamed intochunksbefore such an exception fires, so this case raisesClaudeSDKUsageExhaustedErrortoo instead of being misclassified as an ordinary transient error, retried 3x at the same exhausted tier, and finally leaked to the caller verbatim. (#claude-sdk-usage-exhausted-collapsed-exception) - Detect Claude subscription usage-credit exhaustion as a distinct failure. The SDK reports this as
a normal-looking
is_error=Trueresult carrying the text "You're out of usage credits" rather than raising, so it was previously returned as if it were a genuine reply, or (when the SDK did raise) retried 3x at the same exhausted tier as a misclassified "degenerate success"._stream_querynow raises the newClaudeSDKUsageExhaustedErrorfor this specific signature, andis_claude_sdk_transientexcludes it (like the existing turn-limit case) so it fails immediately instead of burning retries at a tier that cannot recover until its credits reset. (#claude-sdk-usage-exhausted-detection)
Miscellaneous
- #20260704T001000Z-baseline-check-caller, #20260704T002000Z-shared-lint-workflows, #20260704T003000Z-auto-release-caller, #20260704T090500Z-mill-sandbox-test-gate-binaries, #20260706T093635Z-deactivate-all-periodic-mill-workflows-k-357b, #20260704T141241Z-export-refdocs-symbols-from-top-level-in-419b, #20260704T150338Z-add-uv-audit-locked-to-ci-for-lockfile-v-9b23, #20260704T150338Z-extract-shared-retry-loop-core-to-elimin-2edd, #20260704T150338Z-fix-readme-env-var-table-document-llmio-0636, #20260705T152545Z-split-claude-sdk-tool-agent-py-802-lines-7060, #20260703T180000Z-adopt-towncrier, #20260703T181500Z-pep735-dependency-groups, #20260703T182500Z-enable-deptry-bandit, #20260703T183000Z-artifact-upload-if-always, #20260703T183500Z-dedupe-ci-gates, #20260703T184000Z-ruff-ignore-comments, #20260703T185000Z-modules-yaml-conformance, #20260703T185500Z-test-layout, #20260703T190000Z-pre-commit-alignment, #20260703T190500Z-readme-skeleton, #20260703T191000Z-agent-md-skeleton, #20260704T194337Z-add-uv-audit-as-a-blocking-dependency-vu-bd05, #20260704T204046Z-add-hypothesis-property-based-tests-for-fee2, #20260704T204113Z-adopt-towncrier-newsfragment-workflow-4798, #20260704T204113Z-standards-alignment-requires-python-3-14-c597, #20260704T204114Z-agent-md-replace-upstreamed-rules-with-s-4b16, #20260704T205235Z-robotsix-llmio-adopt-robotsix-modules-fo-9ac0, #20260705T230752Z-tierconfigloaderror-should-inherit-from-6ef6
0.0.0 (unreleased)
- Add
ruffto sandbox extra packages (.robotsix-mill/config.yaml) so the implement agent's pre-flight lint checks find it on PATH without repeated discovery attempts. - Added a Contributing page to the MkDocs docs site, including the root
CONTRIBUTING.mdvia themkdocs-include-markdown-pluginso new contributors can find the developer guide from the site. - Harden prompted-output JSON extraction and system prompt against models
that hallucinate DSML/XML tool-call markup (e.g. deepseek-v4-flash).
Added XML-tag stripping to
_extract_json_objectand an anti-DSML instruction to the system prompt whenPromptedOutputis active._JSON_OUTPUT_INSTRUCTIONin the Claude SDK tool path also received the anti-DSML hardening. - Enable pin_bump periodic workflow for automated dependency pin bumping
- Add
credit_balanceperiodic workflow stub (.robotsix-mill/periodic/credit_balance.yaml) to enable OpenRouter credit monitoring at the library level. - Added a new testing convention rule to
AGENT.md: when splitting, renaming, or removing test files (or adding a newtests/sub-suite), update ARCHITECTURE.md's test coverage strategy listing in the same change to prevent documentation drift. - Annotate the stable request prefix (system prompt + tool schemas) with
cache_control: {"type": "ephemeral"}markers on the OpenRouter path so upstream providers (DeepSeek, Anthropic, …) cache it and charge cache-read rates (~10% of full input price) on subsequent turns instead of re-billing the full prefix as fresh input. Add an INFO log line inrecord_openrouter_costsummarising the cached-vs-uncached input token split so the win is directly measurable in logs. - Removed dead
robotsix_llmio.changelogmodule and its orphaned test; the project uses towncrier newsfragments underchangelog.d/instead. - Stamp
llmio.stream.turn_count,llmio.stream.tool_calls,llmio.stream.thinking_blocks, andllmio.stream.is_errorOTEL span attributes from the Claude SDK streaming loop, mirroring the pattern used bycore/retry.pyandcore/tier_fallback.py. - Update
ARCHITECTURE.mdtest tree: replace stale split-file references (test_core_retry_async.py,test_tracing_live.py,test_tier.py) with their actual split children, and add 11 other test files that were missing from the listing. - Add OpenTelemetry span observability to tier-fallback lifecycle (
_tier_fallback_loop): each tier attempt now produces a child span withllmio.tier.level,llmio.tier.provider,llmio.tier.model,llmio.tier.attempt_index, andllmio.tier.succeededattributes; promotion events additionally stampllmio.tier.promotionsandllmio.tier.fallback_activatedon the parent run span so Langfuse traces expose the full tier-escalation history. - Documented CI rule: do not add
changelog.d/**globs to any module'spathsindocs/modules.yaml— theproject-rootmodule already claims them. - Re-export
is_openrouter_upstream_payment_errorfromrobotsix_llmio.openrouter, matching the package's existing convention of individually exporting its transient-signature peer predicates. - Remove
claude_sdk/model.pybackward-compatibility re-export shim; all consumers migrated to the private sub-modules (_errors,_model,_prompt). openrouter: addis_deepseek_reasoning_400transient detection for DeepSeek's reasoning-content 400, wired intois_openrouter_transientso a missing-reasoning_contentAPI error is retried instead of surfacing as terminal.- Split
tests/core/test_core_retry_async.py(455 lines, 22 tests) into three focused modules:test_core_retry_async_parity.py,test_core_retry_async_fallback.py, andtest_core_retry_async_sync_wrappers.py. Moved_HTTPErrand reused_anoop_sleep/_noop_sleepfromtests/core/conftest.py. - Split
tests/core/test_tracing_routing.py(530 lines → 211) into three files by testing strategy: routing,_StampProcessor, and_FilteredBatchSpanProcessor. Extracted shared_FakeSpanhelpers totests/core/_fake_span.py. create_model()now forwardstlc.max_tokensfrom the tier config to the provider constructor (matching the existing behaviour ofget_provider_for_level()andbuild_agent_for_level()incore/factory.py). Previously the bakedmax_tokensvalue was silently dropped.- Split
tests/claude_sdk/test_stream.py(641 lines) into two files:test_stream_short_log.py(~214 lines, 18 tests) for_short/_log_stream_message/activity event callbacks, and the trimmedtest_stream.py(~427 lines, 17 tests) for_stream_query. Both files are well under the 500-line community limit. - Split
tests/core/test_tracing_live.py(824 lines, 9 tests) into two provider-scoped files:tests/core/test_tracing_live_openrouter.py(OpenRouter DeepSeek, 2 tests) andtests/core/test_tracing_live_claude.py(Claude SDK + general, 7 tests). Shared Langfuse helpers (_langfuse_creds,_require,_langfuse_traces,_langfuse_get) extracted totests/core/conftest.py. - Sync
CONTRIBUTING.mdpre-commit hooks table with.pre-commit-config.yaml: removedcheck-ast,check-case-conflict,debug-statements(not configured); addedcodespellanddeptry(configured but undocumented). - Added missing
tests/openrouter/test-file entries (test_async_client.py,test_openrouter_provider.py,test_openrouter_provider_cost.py) to the Test coverage strategy section of ARCHITECTURE.md. - Updated
ARCHITECTURE.mdtest coverage listing: addedtests/clients/andtests/config/directories, and expanded thetests/core/section to cover all 29 test files. - Split
tests/core/test_core_tier_fallback.pyintotest_core_tier_fallback_sync.py+test_core_tier_fallback_async.py+ slimmedtest_core_tier_fallback.py(isolation); extract_noop_sleep/_anoop_sleeptoconftest.py - Updated
ARCHITECTURE.mdto replace staletest_core_retry.pyreference with the three split files (test_core_retry_sync.py,test_core_retry_async.py,test_core_retry_properties.py). - Add
TYPE_CHECKINGblock toclaude_sdk/__init__.pyso that mypy, pyright, and IDEs can resolve the six lazily-exported names (ClaudeSDKAPIError,ClaudeSDKModel,ClaudeSDKProvider,ClaudeSDKQueryTimeout,ClaudeSDKTurnLimitError,ClaudeSDKUsageExhaustedError) as valid module attributes — matching the pattern used by every other__init__.pyin the project. - Re-export
RefdocsSettingsat the top-levelrobotsix_llmiopackage so callers ofbuild_refdocs_toolscan construct its parameter type without reaching into the internalclients.refdocssubpackage. - Updated
ARCHITECTURE.mdtest listing: replaced staletest_claude_sdk.pyentry with the 10 topic-specific files undertests/claude_sdk/, and addedtest_core_tier_fallback.py/test_core_tier_fallback_next_tier.pyto thetests/core/section. - Split
claude_sdk.modelinto three cohesive modules:_errors(exception classes),_prompt(prompt/image helpers), and_model(ClaudeSDKModel+ constants).model.pyremains a backward-compatible re-export shim. Internal consumers updated to import from the specific sub-modules. - Split
tests/core/test_tracing.py(820 lines) intotest_tracing_setup.py(setup + surface API) andtest_tracing_routing.py(trace routing + span processors), matching the existing topic-split pattern. - Remove dead periodic workflow configs
state_sync.yamlandsecurity_posture.yaml— both are either internal-only or absent from the available workflow catalog. - Fix: when
extra_transientreturnsFalsein_stream_query, wrap the exception inClaudeSDKAPIErrorinstead of propagating it raw, so all non-RobotsixLLMIOErrorexceptions from the Claude SDK are consistently wrapped for a uniform cross-provider error surface. - Add
ClaudeSDKAPIError(subclass ofRobotsixLLMIOError) to wrap terminalclaude_agent_sdktransport/process failures at the provider boundary, so callers catchingRobotsixLLMIOErrorconsistently cover all three provider paths (OpenRouter, REST clients, Claude SDK). Raw SDK exceptions likeCLIConnectionError/ProcessErrorthat exhaust their transient retries are now surfaced asClaudeSDKAPIError— a minor break for any caller currently catching rawclaude_agent_sdktypes directly. - Refactor
claude_sdk/transient.pyexception-chain walks to use the shared_walk_cause_chaingenerator fromcore.retry, removing ~20 lines of duplicated bounded-loop boilerplate. - Consolidated repetitive test functions in
tests/core/test_langfuse_cost.pyfrom 22 to 10 using@pytest.mark.parametrizeacross six groups (_parse_timestamp,_observation_provider,_observation_cost,fetch_logged_cost,fetch_by_provider,prune_before). - Extract shared
_parse_key_usagehelper inprovider_cost.py, replacing duplicate inlineKeyUsageconstruction in sync and async OpenRouter clients. - Remove dead Pydantic v1
.dict()fallback in_to_dict()(src/robotsix_llmio/config/loader.py). The project requires pydantic>=2, so the backward-compat try/except for.dict()was unreachable. - Inline robotsix-http retry primitives directly into
core/retry.py(RetryConfig, _compute_backoff, _walk_cause_chain, _status, is_transient) so the library is importable without the git dependency. Remove robotsix-http from pyproject.toml dependencies and tool.uv.sources. - Replace duplicated HTTP retry primitives with robotsix-http. The generic
RetryConfig,_compute_backoff,_walk_cause_chain,_status, andis_transientsymbols are now imported fromrobotsix_http.retryinstead of inlined. The loop-free_drive_syncand all LLM-domain logic (rate-limit handling, fallback, OTel span recording) stay local. - Add
deptryto dev dependencies, pre-commit hooks, and CI to catch misplaced/unused dependencies automatically. - Remove redundant hand-rolled
auditjob from CI workflow; the sharedpython-ci.ymlalready runsuv auditvia its defaultrun-audit: trueinput. - Add codespell to pre-commit hooks to catch common misspellings in docstrings and comments.
- Add
max_tokensfield toTierLevelConfigwith per-level baked defaults (level 1: 4096, level 2: 8192, level 3: 8192, level 4: 16384), plumbed through the Claude SDK transport astask_budgetto cap output cost. - Add
trace_reviewperiodic to.robotsix-mill/periodic/for automated trace quality inspection via Langfuse. - Enable
changelog_autofillperiodic task for automated changelog entry commits. - Extract shared
_deny_hook_output()helper in_confinement.pyto deduplicate the deny-block structure between_make_confine_hook()and_make_bash_confine_hook() - Extract shared
_insert_into_format()helper from the near-duplicate_insert_into_md()and_insert_into_rst()functions inchangelog.py; format-specific differences are now injected via callbacks, removing ~70% duplication. - Remove stale
_get_jsonentry from vulture whitelist; the function was already deleted whencore/_rest_client.pywas simplified to only the_DEFAULT_BASE_URLconstant. - Convert all NumPy-style docstrings (
Parameters/Returns/Raisessections) to Google-style (Args:/Returns:/Raises:) for correct rendering by mkdocstrings' default parser Add ruff pydocstyle rules (D100, D101, D103, D400, D412, D413, D414, D417) to enforce consistent docstring formatting - Enable
healthperiodic agent for broad codebase health scanning across all eight dimensions. - Enable
surveyperiodic workflow — creates.robotsix-mill/periodic/survey.yamlname-only stub so robotsix-mill's built-in survey agent discovers this repo. - Enable periodic
auditagent for broad-spectrum codebase health assessment. - Remove
security_postureperiodic agent opt-in (policy enforcement now lives in robotsix-standards audit) - Document the dual CVE-ignore mechanism in AGENT.md and CONTRIBUTING.md — when adding a vulnerability ignore, both
[tool.uv.audit].ignoreinpyproject.tomlandpip-audit-ignore-vulnsinci.ymlmust be updated. - Ignore CVE-2026-59950 (GHSA-vj7q-gjh5-988w) in
uv audit— the vulnerablemcp==1.27.2is a transitive dependency viaclaude-agent-sdkwith no upstream fix yet available. setup_loggingis now re-exported from the top-levelrobotsix_llmiopackage, matching the pattern of other public APIs. Import it asfrom robotsix_llmio import setup_logging.- Removed the orphaned
src/robotsix_llmio/refdocs/package (5 files), which was superseded bysrc/robotsix_llmio/clients/refdocs/and had no remaining callers or tests. Also removed the now-unreferenced_get_jsonhelper fromcore/_rest_client.py. - Claude SDK provider now accepts tools whose ctx parameter has a default
value (e.g.
ctx: RunContext[None] = None): the function is invoked without ctx, letting the default apply. Only tools with a required ctx (no default) still raiseUserErrorat build time. - Add
module_curatorperiodic agent to keepdocs/modules.yamlsynchronized with the live directory tree. - Remove orphaned
robotsix_llmio.knowledgeandrobotsix_llmio.self_reviewbackward-compatibility packages (dead code — all consumers userobotsix_llmio.clients.knowledgeandrobotsix_llmio.clients.self_review). - Enable
bc_checkandtest_gapperiodic agents via minimal presence files under.robotsix-mill/periodic/. - Fix
docs/modules.yaml: restoreconfigentry to its consumer-facing scope (TierConfig schema, loader, create_model factory) and re-add thedev-toolingmodule for repo tooling/config files that were incorrectly merged intoconfig. - Consolidated refdocs, knowledge, and self_review modules under a shared
clients/parent with commonBaseHttpClientin_base.py(already completed by sibling ticket; no additional changes needed). - Extract shared
_MARKERStuple +isinstancepattern for pydantic-ai output-mode markers into a singlecore/_output_markers.pyhelper, removing the identical duplicated definition fromcore/provider.pyandclaude_sdk/provider.py. - Internal boilerplate: registered
doc_classifier: internal-onlypattern for non-user-facing changes that skip the doc agent - Removed stale
changelog.d/directory and its orphaned newsfragments; updatedCONTRIBUTING.mdanddocs/modules.yamlto referencechanges/instead. - Add
robotsix_llmio.changelog.insert_changelog_entry— detects the project's existing changelog format (CHANGELOG.rst,CHANGELOG.md,CHANGELOG, in that order) before inserting a bullet entry under the unreleased section. Falls back toCHANGELOG.mdwhen no changelog file exists, preventing orphan.mdfiles on RST-based projects. - Extract shared REST client
_get_jsonhelper intocore/_rest_client.py, deduplicating the near-identical_get()methods fromKnowledgeClient,SelfReviewClient, andAsyncRefdocsClient. The shared_DEFAULT_BASE_URLconstant is also moved there. - Split
src/robotsix_llmio/claude_sdk/_tool_agent.py(802 lines) into four focused private submodules:_output.py(structured JSON parsing),_tool_converter.py(pydantic-ai → SDK MCP tool conversion),_confinement.py(workspace path-traversal hooks), and_chat_messages.py(tracing chat-message rendering). The original module now holds only_SdkToolResultand_SdkToolAgentHandle(~470 lines). TierConfigLoadErrornow inherits fromRobotsixLLMIOErrorinstead ofException, so it's caught by a singleexcept RobotsixLLMIOErrorclause as the library's exception contract documents.- Add Hypothesis property-based tests for the transient retry backoff formula (boundedness, non-negativity, jitter range, monotonicity).
- Added
robotsix-modulesas a dev dependency and a CI step (robotsix-modules-validate docs/modules.yaml) to enforce module taxonomy consistency. - AGENT.md: replace two upstreamed rules with cross-references to the robotsix standards repo; align .pre-commit-config.yaml to the standard hook set (remove
debug-statements,check-ast,check-case-conflict;check-jsonanddetect-private-keyalready present). - CI: resolve all zizmor (pedantic) workflow-lint findings — add explanatory comments to write permissions, name the anonymous jobs, deny-by-default top-level permissions on dependabot-auto-merge/docs, and a concurrency group on dependency-review. Unblocks
Lint workflowson main. - Consolidated
refdocs,knowledge, andself_reviewmodules under a sharedclients/parent, extracting duplicated_get()logic into a commonBaseHttpClientinclients/_base.py. Import paths are nowrobotsix_llmio.clients.{refdocs,knowledge,self_review}. - Extract shared
_retry_loopincore/retry.pyand_tier_fallback_loopincore/tier_fallback.py, eliminating ~250 lines of duplicated sync/async retry and tier-escalation logic. Each publiccall_with_retry/acall_with_retryandcall_with_tier_fallback/acall_with_tier_fallbackis now a ~5-line thin shim that passes sync or asyncinvoke/sleepadapters into the shared core.run.pylikewise extracts_run_with_trace_and_closeto deduplicate the trace-span boilerplate betweenrun_agentandarun_agent. - Extract shared retry-loop helpers
_compute_backoff,_handle_rate_limit, and_handle_transientfrom duplicated sync/async variants incore/retry.py. - Fix README environment-variable table:
LLMIO_LEVEL{1,2,3}_MODELandLLMIO_LEVEL{1,2,3}_PROVIDER_KWARGSupdated to{1,2,3,4}to match the actual four-tier configuration system (Level 4 was already supported in code anddocs/config/index.mdbut missing from the README table). - Re-export
AsyncRefdocsClient,RefdocsClientError, andbuild_refdocs_toolsfrom the top-levelrobotsix_llmiopackage (sibling-pattern gap withknowledgeandself_reviewsub-packages). - Remove dead Langfuse v1
createdAtfield fallbacks from_to_recordand_observation_to_recordinlangfuse_cost.py -
Remove stale Keep a Changelog content from CHANGELOG.md — the file is now fully towncrier-managed (release-workflow-written only).
-
Export
record_costandflush_current_providerfromcore.costviacore.__init__(TYPE_CHECKING,__all__, and_SUBMODULE_ATTRS), matching the pattern of every othercoresubmodule. - Export
run_multi_table_migrationsfromcore.__init__(TYPE_CHECKING,__all__,_SUBMODULE_ATTRS) — it was the only public symbol incore.sqlite_utilsmissing from the package's public API. - Add
check-added-large-files,check-ast, andcheck-case-conflictpre-commit hooks frompre-commit-hooks. - Add Dependabot auto-merge caller workflow (
.github/workflows/dependabot-auto-merge.yml) so dependabot PRs auto-merge once required checks pass. - Remove
.github/workflows/release.yml: per robotsix-standards, first-party libraries are consumed from git via uv[tool.uv.sources], not from PyPI. No packages are published to PyPI. - Add robotsix-standards reference link to README.md and AGENT.md.
- Centralise four environment-variable name strings into module-level constants (
_ENV_LOG_LEVEL,_ENV_LOG_FORMAT,_ENV_OPENROUTER_API_KEY,_ENV_REFDOCS_API_KEY) inlogging.py,openrouter/provider.py, andrefdocs/_settings.py, following theENV_LANGFUSE_*pattern incore/_otel.py. - Add
site_urltomkdocs.ymlto fix MkDocs 1.6+ sitemap generation, social card images, canonical links, and 404 page asset paths. - Introduced
LangfuseClientError(RobotsixLLMIOError)incore.langfuse_client, replacing bareRuntimeErrorat all Langfuse HTTP/auth/iteration-limit sites, and re-exported it from bothrobotsix_llmio.coreand the top-levelrobotsix_llmiopackage so consumers can catch Langfuse-specific errors by type. - Fix
[project.urls]inpyproject.toml: renameSourcetoRepository, pointDocumentationto the deployed MkDocs site, and add aChangelogURL. - Fix README CI badge URL (was pointing at robotsix-mill instead of robotsix-llmio) and clarify env var scoping of
LLMIO_LEVEL<N>_*variables inget_provider_for_leveldocs. Remove stale "follow-up concern" sentence fromtier.pymodule docstring. - Fix stale references in CONTRIBUTING.md: remove bandit (replaced by ruff S rules), fix mypy override module name (
openrouter_deepseek→openrouter), update layer diagram, correct GitHub org (robotsix-dev→damien-robotsix). - Corrected stale documentation claims across six doc files: removed YAML references from
load_tier_configentries, fixednew_modelsignature in core docs, removed mention of removed bracket-qualifier feature fromParsedIdentifier, updatedClaudeSDKTurnLimitErrorto reflect_MAX_TURNSagent-loop cap, correctedOpenRouterProviderdescription (mapping is inTierConfig), removed false claim thatopenrouterextra is the default, and removed obsolete "transport aliases" references. - Fix check-then-act race in
_StampProcessor.on_starttrace naming: consolidate two separate lock acquisitions into a single critical section covering the check, name computation, attribute set, and set insertion, so concurrent spans of the same trace cannot both observe the guard as unset. - Update ARCHITECTURE.md: fix stale references to the deleted
openrouter_deepseekpackage, correctOpenRouterProviderfrom abstract to concrete, update PEP 562 lazy-import coverage list, fix test paths, and align extras list withpyproject.toml. - Remove vestigial
from __future__ import annotationsfromcore/constants.py,refdocs/_base.py, andexceptions.pywhere no PEP 604 unions or forward references exist. - ClaudeSDK provider: fix
build_agent(level=1, output_type=MyModel)raisingUserErrorbecause the DeepSeek-specific level-gate in_resolve_output_typeleft the raw model unwrapped. The no-tools path now wraps non-str structured types inPromptedOutputat all levels before delegating to super(). - Fix
OpenRouterProvider.new_modelresource leak: closehttpx.AsyncClientwhen any constructor (pydantic-ai provider,AsyncOpenAI, model class, or_post_build_model) raises, instead of leaking the client to GC. - Fix backoff jitter applied after the cap in transient retry logic, which allowed sleep times to reach 1.5× the documented
TRANSIENT_BACKOFF_CAP. Jitter is now applied to the raw exponential value before capping, so the final delay never exceeds the cap. - Fix
call_with_retry/acall_with_retry: rate-limit (UsageLimitExceeded) on the last retry attempt now correctly triggers the one-shotfallback_fninstead of re-raising immediately. Fallback activation no longer consumes a transient-retry slot — the fallback always gets the same full retry budget as the primary. - Fix
extra_body.provideroverride suppressing the per-tier reasoning policy inOpenRouterDeepseekModel._inject_pin. Custom provider routing now coexists with reasoning injection (reasoning is injected independently of the provider pin). - Add Bash command workspace confinement for claude_sdk tool agents: a
new
PreToolUsehook deniesBashcommands referencing absolute paths outsideworkspace_root, closing a bypass that allowed host-file mutation via shell redirects and hardlinks even when the edit-tool confinement hook was in place. - build(deps): bump actionlint from v1.7.7 to v1.7.12
- build(deps): bump ruff-pre-commit from v0.15.18 to v0.15.20
- Add
.github/workflows/dependency-review.ymlto gate PRs against known-vulnerable dependencies usingactions/dependency-review-action@v5.0.0withfail-on-severity: moderateand an allow-list of common open-source licenses. - Define
RefdocsClientError(RobotsixLLMIOError)inrefdocs/__init__.pyand use it in_async_client._get()instead of bareRuntimeError, consistent with the typed-exception pattern inknowledge/andself_review/. - Define
OpenRouterAPIError(subclass ofRobotsixLLMIOError) and raise it instead of bareRuntimeErrorin the OpenRouter transport, provider, and cost-source modules. Re-export from the top-level package. - Add
security_postureperiodic workflow to.robotsix-mill/periodic/for automated security posture review.