fix(router): bound populated four-hop greedy reverse support #1428
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic#1428
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
PR #1432 is merged through fj at
369b57af67after 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.