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

Merged
PlasticDigits merged 2 commits from fix/493-empty-book-shortcircuit-lcd-500-fanout into main 2026-07-25 04:51:51 +00:00
PlasticDigits commented 2026-07-25 04:33:43 +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
## 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
ghost1 commented 2026-07-25 04:33:47 +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 commented 2026-07-25 04:50:16 +00:00 (Migrated from gitlab.com)

added 12 commits

  • f959c3ef...3a0069ce - 11 commits from branch main
  • f03076c2 - merge: sync #493 with main; keep empty-book and #496 notes

Compare with previous version

added 12 commits <ul><li>f959c3ef...3a0069ce - 11 commits from branch <code>main</code></li><li>f03076c2 - merge: sync #493 with main; keep empty-book and #496 notes</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/317/diffs?diff_id=1923592324&start_sha=f959c3ef57548b27001cfa63400462f399ee7536)
project_80162261_bot_e646d24e9b17aa4b22040bfe08d3fd1c commented 2026-07-25 04:50:17 +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) merged commit 5887679ffb into main 2026-07-25 04:51:52 +00:00
PlasticDigits commented 2026-07-25 04:52:24 +00:00 (Migrated from gitlab.com)

mentioned in commit 5887679ffb

mentioned in commit 5887679ffb8fa840451035b9e047ff551bd00ce0
PlasticDigits commented 2026-07-25 04:52:44 +00:00 (Migrated from gitlab.com)

mentioned in commit 61162b47d9

mentioned in commit 61162b47d9de30d86ac06a8ea8c726071006669a
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!1035
No description provided.