Platform-wide Hardening: Compression, Routing, Billing, and Team Controls
Prompt compression scope, BYOK routing, request validation, and billing/team fixes
This release delivers broad hardening pass across Cailos. Prompt compression now applies only to English and Spanish per message role, with meaning-altering English entries removed and new Spanish table added that never alters articles or prepositions. BYOK-only teams route exclusively to providers with active keys, are exempt from Cailos-side caps, and return 404 when no key matches; routing narrows candidate pool before language preference and plan editor respects team constraints. Request validation is strengthened: tool calls and function tools are validated at ingress, streaming with n > 1 is rejected with 400, and adapter-translation failures surface immediately as invalid rather than tripping shared circuit breaker. Claude forced-tool-choice disables budget thinking while keeping adaptive thinking, and rebuilt Gemini tool-call turns carry documented placeholder. Responses now include X-Cailos-Model and per-million-token pricing headers, and provider refusals return 400 with provider's own message and masked account IDs. Billing is corrected so race hand-over books each runner's part on its own endpoint, and paid-but-unserved calls write charge rows so dashboard spend matches budget meter. Team controls are tightened with playground refusal for deactivated owners, free-plan cap of three active owned teams, and self-serve member leave. Retired-model renames preserve redirects and exclusions, eval answers match whole words and numbers with plurals, units, and CJK text, frontend cards maintain state across redraws, and Railway drain time is configurable per service with unrecognised ENV_TYPE refusing to boot.
-
fixed
Teams with deactivated owners are now refused in the playground too, and the free plan is capped at three active owned teams with row-lock enforcement.
-
added
Members can now leave teams themselves; deactivated users' dashboard stream ends; unknown exclusion-removal types re-render instead of erroring.
-
fixed
Renaming a retired model keeps its redirect and exclusions; renaming onto a retired name keeps that name's redirect; scan errors mask account IDs.
-
changed
Eval answers now match whole words and numbers with plurals, units, and CJK text; wrong tool names and permanent errors score zero.
-
fixed
Frontend cards maintain clicks, focus, scroll, and touches across redraws; rankings shortcuts fire reliably and failures refresh is quiet.
-
changed
Railway drain time is now configurable per service; unrecognised ENV_TYPE refuses to boot; test settings no longer call Jev's real service.
-
changed
Compression is now applied only to English and Spanish, selected per message role; other languages pass through byte-identical.
-
removed
44 English compression entries that changed meaning were removed, including legal terms, request framings, and back-references.
-
added
Added a new 41-entry Spanish compression table that never alters articles or prepositions.
-
changed
BYOK-only teams now route exclusively to providers with active keys, are exempt from Cailos-side caps, and return 404 when no key matches.
-
changed
Routing instructions now narrow the candidate provider pool before language preference is applied; plan editor's try-it respects team constraints.
-
added
Tool calls and function tools are now validated at request ingress; streaming with n greater than 1 is rejected with a 400 error.
-
fixed
Race hand-over billing now books each runner's part on its own endpoint, price, and key; usage estimates include reasoning and tool-call tokens.
-
changed
Paid but unserved calls now write charge rows so dashboard spend matches the budget meter; charge rows are excluded from request counts and stats.
-
fixed
A request adapter that cannot translate now surfaces immediately as invalid rather than tripping the shared circuit breaker.
-
changed
Claude forced tool choice now disables budget thinking while keeping adaptive thinking; Gemini rebuilt tool-call turns carry a documented placeholder.
-
added
Responses now include X-Cailos-Model and per-million-token price headers set before streaming begins; non-stream bodies carry pricing in cailos block.
-
changed
Provider refusals for invalid requests are now returned as 400 with the provider's own message and masked account IDs; Cailos-side account refusals are no longer misread.