Skip to content

feat: expose bounded application request hints for recovery - #373

Merged
beinan merged 1 commit into
mainfrom
codex/recovery-request-signals
Oct 18, 2026
Merged

beinan merged 1 commit into
mainfrom
codex/recovery-request-signals

Conversation

@beinan

@beinan beinan commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Recovery currently depends on ingress log streams to identify hot tables and table-specific read failures. Add opt-in bounded application request hints to the existing HTTP middleware and an internal nonce-bound JSON endpoint, so an observer can discover demand even while a handler is still waiting.

Requests never wait for the cache. Capacity, TTL and reply bytes are bounded; dropped/truncated observations remain explicitly incomplete and recover when loss ages out. Maintenance routes do not generate their own demand. Hints retain no payload/query/record identifiers and cannot authorize merge replacement or prove progress. The endpoint does not observe ingress-only or streaming-body failures.

Validation: metrics crate unit and actual Axum middleware integration tests pass for enabled/disabled processes; Clippy passes with warnings denied. An uncontended release microbenchmark measured 1M parse+record operations in 410 ms (not a production latency claim). See the crate documentation for rollout and coverage semantics.

@beinan
beinan merged commit a603939 into main Oct 18, 2026
11 checks passed
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