Linora

0304. Query proxy: rendezvous hashing and short-lived service tokens

Status: Accepted (2026-11-27). Implements the API side of 0021 for the doc-worker tier (WP-G, wave 2). Contract: ServiceTokenClaims.svc = 'api'.

Context

Queries need full documents, so doc workers answer them. They must keep a page warm in one worker, accept only internal callers, and trust the API’s authorization decision. The worker tier does not exist in wave 1.

Decision

Alternatives

Consequences

WP-G implements GET|POST /v1/files/:fileId/pages/:pageId/<query> with the public query schemas, verifies the svc token, and handles minSeq (503 + Retry-After). No new secret is needed.