WIP: Draft: fix(indexer): empty-book hybrid short-circuit + CosmWasm LCD 500 fan-out (#493) #1033

Closed
PlasticDigits wants to merge 0 commits from 493-indexer-short-circuit-empty-book-hybrid-grid-stop-lcd-500-fan-out-on-cosmwasm-rejects into main
PlasticDigits commented 2026-07-25 04:33:26 +00:00 (Migrated from gitlab.com)

Summary

  • Empty-book hybrid short-circuit: Under global_v4, Fresh mirrors with no fillable match-side resting orders price pool-only once (skip 17-point grid). 1-hop pool-only baselines also skip coordinate descent. Live-book hops unchanged; no solver_version bump.
  • LCD CosmWasm 500 fan-out: Broaden deterministic reject classification (query wasm contract failed / codespace wasm on /cosmwasm/... paths) so sibling LCD endpoints are not queried. Infra 429/408/502+ still fail over.
  • Docs/invariants/skills crosslinked for third-party agents.

Closes #493

Test plan

  • cd indexer && cargo test --lib -- --test-threads=1 empty_book_short_circuits live_book_still_runs mirror_has_fillable classify_deterministic wasm_query_reject infra_500_still gateway_502 rate_limit_429
  • cd indexer && cargo test --test api_route_solve_db_hybrid -- --test-threads=1 empty_book_skips_full_grid live_book_still_grids
  • python3 scripts/check_route_solver_docs.py
  • After deploy: cold empty-book Ember→CORAL (or similar) should show far fewer db_hybrid_queries / no multi-endpoint CosmWasm 500 WARN storms

Closes #493

## Summary - **Empty-book hybrid short-circuit:** Under `global_v4`, Fresh mirrors with no fillable match-side resting orders price pool-only once (skip 17-point grid). 1-hop pool-only baselines also skip coordinate descent. Live-book hops unchanged; no `solver_version` bump. - **LCD CosmWasm 500 fan-out:** Broaden deterministic reject classification (`query wasm contract failed` / `codespace wasm` on `/cosmwasm/...` paths) so sibling LCD endpoints are not queried. Infra 429/408/502+ still fail over. - Docs/invariants/skills crosslinked for third-party agents. Closes #493 ## Test plan - [x] `cd indexer && cargo test --lib -- --test-threads=1 empty_book_short_circuits live_book_still_runs mirror_has_fillable classify_deterministic wasm_query_reject infra_500_still gateway_502 rate_limit_429` - [x] `cd indexer && cargo test --test api_route_solve_db_hybrid -- --test-threads=1 empty_book_skips_full_grid live_book_still_grids` - [x] `python3 scripts/check_route_solver_docs.py` - [ ] After deploy: cold empty-book Ember→CORAL (or similar) should show far fewer `db_hybrid_queries` / no multi-endpoint CosmWasm 500 WARN storms Closes #493
ghost1 commented 2026-07-25 04:33:32 +00:00 (Migrated from gitlab.com)

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot) to get automatic reviews on future PRs.
PlasticDigits (Migrated from gitlab.com) closed this pull request 2026-07-25 04:33:48 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1033
No description provided.