fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)

fix(ai): advance Anthropic cache marker across tool results (#1927) master

* fix(ai): cache Anthropic tool results * docs(ai): add cache fix changelog fragment * test(ai): trim Anthropic cache regression * test(ai): use Haiku cache fixture