fabro/lib
Scott Werner 594bf6e632 refactor(llm): simplify Bedrock tool sanitization internals
- Return String from the sanitize helpers instead of Cow: every call
  site feeds the result into json!, which allocates anyway, so the
  borrowed fast path only cost extra branches and Cow-variant tests.
- Route all toolUse/toolResult construction through private
  tool_use_block/tool_result_block constructors that own the sanitize
  calls, so the toolUse/toolResult pairing invariant is enforced by
  construction rather than by call-site discipline.
- Drop a test assertion the type system already guarantees (encoding
  takes &Request, so it cannot mutate the input) and assert wiring
  tests against the sanitize helpers instead of re-pinning the exact
  replacement literals in a second file.

No wire-format changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 17:43:22 -04:00
..
apps refactor: simplify model-keyed fallback internals 2026-07-30 12:51:36 -04:00
components refactor(llm): simplify Bedrock tool sanitization internals 2026-07-31 17:43:22 -04:00
foundation fix: keep stored run events from older releases deserializable 2026-07-30 13:24:08 -04:00
packages/fabro-api-client refactor: simplify model-keyed fallback internals 2026-07-30 12:51:36 -04:00