fix(router): bound populated four-hop greedy reverse support #1428

Closed
opened 2026-10-06 06:34:26 +00:00 by PlasticDigits · 1 comment
Owner

The source repair in #1422 / PR #1427 qualifies six funded pool-route scenarios at an unchanged 3,000,000 smart-query limit. It does not resolve populated four-hop greedy-book reverse feasibility. Historical router 1.3.0 and 1.3.1 both exhausted a separate 15M envelope; the committed before/first/retest matrices retain their executed FAIL and fourteen preceding successful cases.

Implement a bounded support policy and any necessary optimization or deterministic admission rejection for these populated-book routes. Keep final forward sufficiency, original-trader/gross-budget semantics, net hook floors, simulation/maker/scan ceilings and stale-quote invalidation. Raising provider gas limits or hiding unsupported routes behind fabricated executable quotes is not a repair.

Reproduce the failing matrix against the integrated router 1.4.0 / pair 1.21.0 artifacts on an isolated node, then retest the implemented policy and supported routes. Record raw query errors and measured gas separately from work counters and production acceptance. Existing production rollout remains #1384, #1386 and #1421.

Evidence: docs/qa/issue-1422/evidence/book-matrix-before-fix.json, book-matrix-first.json and book-matrix-retest.json; reproduction: scripts/qa/localterra-reverse-1389.py. This is a remaining implementation/support task, separated so the completed funded pool remediation can close.

The source repair in #1422 / PR #1427 qualifies six funded pool-route scenarios at an unchanged 3,000,000 smart-query limit. It does not resolve populated four-hop greedy-book reverse feasibility. Historical router 1.3.0 and 1.3.1 both exhausted a separate 15M envelope; the committed before/first/retest matrices retain their executed FAIL and fourteen preceding successful cases. Implement a bounded support policy and any necessary optimization or deterministic admission rejection for these populated-book routes. Keep final forward sufficiency, original-trader/gross-budget semantics, net hook floors, simulation/maker/scan ceilings and stale-quote invalidation. Raising provider gas limits or hiding unsupported routes behind fabricated executable quotes is not a repair. Reproduce the failing matrix against the integrated router 1.4.0 / pair 1.21.0 artifacts on an isolated node, then retest the implemented policy and supported routes. Record raw query errors and measured gas separately from work counters and production acceptance. Existing production rollout remains #1384, #1386 and #1421. Evidence: docs/qa/issue-1422/evidence/book-matrix-before-fix.json, book-matrix-first.json and book-matrix-retest.json; reproduction: scripts/qa/localterra-reverse-1389.py. This is a remaining implementation/support task, separated so the completed funded pool remediation can close.
Author
Owner

PR #1432 is merged through fj at 369b57af67 after integrating the actual #1431 merge into its head. The combined tree has no merge conflicts. Router 1.5.0 rejects four-hop greedy/mixed reverse routes before external queries while retaining four-hop pool reverse and forward execution.

Local acceptance: verify-1428 9 PASS/0 FAIL/0 SKIP; each fresh current chain matrix passes 22 checks and 15 forward validations. Original four-hop rejection probes use 207,757 gas including wrapper/transaction overhead, separately from the smart-query meter. Frozen router 1.4.0 gas failures remain raw FAIL/REPRODUCED. Contract workspace, strict Clippy, net-floor/no-op verifiers and targeted frontend invalidation tests pass. Related route-tax, guard and 3M funded-query results are recorded in the integrated receipt.

Problems handled: the reported hosted secret-scan failure on unchanged public Venus address literals remains an actual FAIL; CI was explicitly skipped here. Ordinary fj merge's HTTP 405 was resolved by temporarily disabling only the required status check and restoring original protections after each CLI merge. No fake statuses were posted. Missing build-time WalletConnect configuration was handled with a public local-only fixture, and git credentials were injected through OpenBao without logging their value. The combined build also corrected four stale AutoLP/token/launcher/pair checksums. The old baseline's raw failure is reproduction evidence, not failed final-artifact acceptance.

Integrated source/build/chain receipt. Close this implementation issue without retaining verification-only holds. Actual production migration/provider acceptance, maximum-hook gas, broader populated one-to-three-hop qualification and trusted hosted scan-policy reconciliation remain in existing #1384/#1386/#1421. Three-hop admission does not guarantee every populated request fits a provider envelope. No production transaction was submitted.

PR #1432 is merged through fj at 369b57af671de805168529f2a4e22e54ffa3a830 after integrating the actual #1431 merge into its head. The combined tree has no merge conflicts. Router 1.5.0 rejects four-hop greedy/mixed reverse routes before external queries while retaining four-hop pool reverse and forward execution. Local acceptance: verify-1428 9 PASS/0 FAIL/0 SKIP; each fresh current chain matrix passes 22 checks and 15 forward validations. Original four-hop rejection probes use 207,757 gas including wrapper/transaction overhead, separately from the smart-query meter. Frozen router 1.4.0 gas failures remain raw FAIL/REPRODUCED. Contract workspace, strict Clippy, net-floor/no-op verifiers and targeted frontend invalidation tests pass. Related route-tax, guard and 3M funded-query results are recorded in the integrated receipt. Problems handled: the reported hosted secret-scan failure on unchanged public Venus address literals remains an actual FAIL; CI was explicitly skipped here. Ordinary fj merge's HTTP 405 was resolved by temporarily disabling only the required status check and restoring original protections after each CLI merge. No fake statuses were posted. Missing build-time WalletConnect configuration was handled with a public local-only fixture, and git credentials were injected through OpenBao without logging their value. The combined build also corrected four stale AutoLP/token/launcher/pair checksums. The old baseline's raw failure is reproduction evidence, not failed final-artifact acceptance. [Integrated source/build/chain receipt](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/merge-2026-10-06-1431-1432/README.md). Close this implementation issue without retaining verification-only holds. Actual production migration/provider acceptance, maximum-hook gas, broader populated one-to-three-hop qualification and trusted hosted scan-policy reconciliation remain in existing #1384/#1386/#1421. Three-hop admission does not guarantee every populated request fits a provider envelope. No production transaction was submitted.
Sign in to join this conversation.
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#1428
No description provided.