Skip to content

Sync the skill body: the latency preference and what it costs - #11

Merged
kev1n merged 1 commit into
mainfrom
sync-latency-preference
Aug 30, 2026
Merged

kev1n merged 1 commit into
mainfrom
sync-latency-preference

Conversation

@kev1n

@kev1n kev1n commented Aug 30, 2026

Copy link
Copy Markdown
Member

Body-only sync of getanyapi-com/anyapi#879, which is live. Produced by npm run sync-skills, so the body matches src/lib/agentSkill.ts exactly.

The skill's "Latency and request deadlines" section taught an agent to inspect a SKU's published p50Ms/p95Ms/p99Ms before picking a timeout, and then dead-ended: it offered nothing to do about a 12-second median. Every SKU has accepted an optional preferLatencyUnderMs since anyapi#874.

The added paragraph carries four things:

  • what the field does - fastest-clearing sources first, cheapest of those wins, never refused for being slow
  • the default - omit it and routing is unchanged, with the cheapest source serving
  • the price - sending it can cost more, and you are charged the serving source's price. anyapi#877 put the same warning in the field's own published description, for the same reason: on x402 and MPP the agent signs the raised floor before the call
  • quote_api as the free way to see that difference before spending, plus the two cases where the field is inert (a single-source SKU, and pages after the first on a paginated walk) so an agent does not retry into a deliberate no-op

bash scripts/check.sh passes: skills checks passed (1 manifest-listed skill).

Mirrors getanyapi-com/anyapi#879. The "Latency and request deadlines"
section taught an agent to read a SKU's published p50/p95/p99 and then
offered nothing to do about a slow one. Every SKU has accepted an optional
preferLatencyUnderMs since anyapi#874.

The paragraph carries the default (omit it and routing is unchanged), the
warning that sending it can raise the price, quote_api as the free way to see
that difference first, and the two cases where the field is inert so an agent
does not read a deliberate no-op as a failure.

Body-only sync, produced by `npm run sync-skills` in the anyapi repo.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kev1n
kev1n merged commit 4c40313 into main Aug 30, 2026
1 check passed
@kev1n
kev1n deleted the sync-latency-preference branch August 30, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant