feat(index): preserve responsiveness during root indexing - #283
feat(index): preserve responsiveness during root indexing#283randomvariable wants to merge 5 commits into
Conversation
Bound interactive and maintenance queues, carry request deadlines across the SubC transport, and yield standing-root maintenance when cold-build capacity is saturated. Demote maintenance workers so reader latency remains stable under index load. Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>
|
Thank you - this lands squarely on planes we actively harden, so it will get a thorough review rather than a fast one. Initial scope notes before the deep pass: (1) main moved tonight in exactly this area - the executor's per-actor admission accounting changed (maintenance no longer consumes interactive capacity) and several of the test files you touch were rewritten to event-based assertion form - so a rebase onto current main is worth doing early; expect conceptual interplay between your queue bounds and the new accounting. (2) This bundles three separable features (queue bounding/backpressure, cross-path request budget carrying, maintenance yield/demotion) - if review friction builds, splitting them in that order would let the first land fastest, but we will review as-is first. (3) Concurrency-core changes here go through adversarial review including storm suites on loaded runners - the release storm gate in your test plan is the right instinct. Full review follows. |
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk> Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
7436084 to
a2e1d8a
Compare
Use pressure-aware deficit round robin to rotate standing roots across bounded search, semantic, and callgraph work. Preserve laptop responsiveness by default while allowing an explicit performance policy. Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk> Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Bound Pi-facing requests below the host deadline, move allocator scans off the transport thread, and avoid repeated standing-root reconciliation. Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk>
Signed-off-by: Naadir Jeewa <naadir@randomvariable.co.uk> Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Summary
index.resource_policy = "performance"bypasses resource admission while preserving concurrency and correctness boundsTest Plan
cargo fmt --all -- --checkcargo test -p agent-file-tools standing_rootscargo test -p agent-file-tools callgraph_storecargo test -p agent-file-tools search_indexcargo test -p agent-file-tools semantic_indexbun test packages/opencode-plugin/src/__tests__/config.test.ts packages/pi-plugin/src/__tests__/config.test.tsgit diff --checkContribution
AI-assisted implementation and verification with OpenAI Codex through Oh My Pi. The author reviewed the changes and test evidence.