Files
wanderbooks/crates/ledger-mcp/src
swaitsandClaude Fable 5.2 32acdc1c44 fix(mcp): the remote door's limits, disk cost, names and front line after review (P15 B1)
Per-address limits count an IPv4 address or an IPv6 /64 (mapped addresses
as the IPv4 one) and the table evicts per-address entries only, never a
connection's own call limit; waiting requests give way to a new one (an
address's oldest, or the fullest address's) instead of filling the window;
a stale client document is used when the fetch budget is spent and nothing
is fetched from /token. Registrations nobody allowed live in memory only,
a redirect is at most 512 bytes and a client's together 4 KiB. An error of
a sign-in for a client nobody approved is a page, never a redirect.
Names lose invisible and direction-changing characters and are cut to
forty; a revoked key frees its place; calls refused for rate or another
company's books are counted, not written, the limit asked first. The
client document fetch refuses ::/96 and 2002::/16, uses no proxy; the host
is read from the request's authority under HTTP/2; remote.json is private
on Windows too; every connection must begin with a per-start secret before
the PROXY header, given to the app over the admin socket.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:16:15 -07:00
..