Bound four-hop greedy reverse admission #1432

Merged
PlasticDigits merged 4 commits from fix/issue-1428-greedy-reverse into main 2026-10-06 08:02:53 +00:00
Owner

Populated four-hop greedy reverse quotes exhaust the existing 15M smart-query envelope on integrated router 1.4.0 / pair 1.21.0. Router 1.5.0 now rejects any four-hop reverse route containing greedy with GREEDY_REVERSE_ROUTE_UNSUPPORTED before external queries. The policy also covers mixed and empty-book routes; four-hop pool reverse and forward execution remain available.

Fresh forward sufficiency, original-trader/gross funding, net hook floors and simulation/maker/scan ceilings remain intact. Three hops is an admission ceiling, not universal provider compatibility. Raw failures for shorter populated mixed-decimal requests are retained; scoped successful requests are tested independently without fallback or substituted operations. The broader suite also repairs an existing integer-rounding fuzz fixture and retains its failure seed.

Validation:

  • make verify-issue-1428: PASS, 9 groups, zero failures/skips; integrated baseline reproduced, final matrix tested/retested with 22 checks and 15 fresh forward validations each.
  • Original populated four-hop requests reject in both directions at 207,757 probe gas including transaction/wrapper overhead. Actual smart-query outcomes and gas receipts remain separate.
  • Final 3M funded pool fixtures pass/retest all six scenarios and 18 smart queries each. Actual router 1.4→1.5 migration, funding, atomic invoice and 16 launch-guard checks pass.
  • Related verify-issue-1422, 1389, 1398, 1381 and 1390 pass with documented independent/historical/native/production skips; all executed final local assertions pass. Full contract workspace, frontend lint/types/build, formatting and independent review pass.
  • Cold pinned optimizer build verifies source/lock/image/output provenance; only router release hash changes. Earlier failures and repairs remain disclosed.

Issue criteria:

  • Reproduce integrated router 1.4.0 / pair 1.21.0 failure on an isolated pinned node; retain raw failures and fourteen preceding checks.
  • Implement bounded deterministic admission and test mixed/empty/populated behavior.
  • Preserve fresh sufficiency, gross/trader semantics, net floors and all existing ceilings; verify stale quote invalidation and no automatic retry/fallback/resend.
  • Test/retest final policy and exact supported quote scopes; separately recheck funded pools at unchanged 3M.
  • Document invariants, integrator behavior, immutable evidence and agent instructions with explicit skip permission.
  • Production migration/provider acceptance remains #1384/#1386/#1421; no production transactions were submitted.

Agent review instructions: read the issue/comments and final diff, follow GR1428, provision the isolated fixtures and run the checklist. Repeat corrected checks and record revision/UTC/commands/exits/evidence. Agents may mark unavailable items SKIP and overall PASS with explicit skips when all executed final checks pass; skipped criteria stay unchecked and executed failures remain FAIL until repaired/retested. Results and receipts include exact limitations and followup scope for broader populated one-to-three-hop qualification.

Resolves #1428.

Remote CI: Woodpecker pipeline 332 and the following run failed at the hosted secret-scan gate on three unchanged public Venus address literals. The repository-configured scan passes; hosted trusted-policy reconciliation remains a separate followup. Contracts/frontend/indexer CI jobs were skipped after that gate failure. This CI result remains FAIL and is not represented as a passed or skipped local check.

Populated four-hop greedy reverse quotes exhaust the existing 15M smart-query envelope on integrated router 1.4.0 / pair 1.21.0. Router 1.5.0 now rejects any four-hop reverse route containing greedy with `GREEDY_REVERSE_ROUTE_UNSUPPORTED` before external queries. The policy also covers mixed and empty-book routes; four-hop pool reverse and forward execution remain available. Fresh forward sufficiency, original-trader/gross funding, net hook floors and simulation/maker/scan ceilings remain intact. Three hops is an admission ceiling, not universal provider compatibility. Raw failures for shorter populated mixed-decimal requests are retained; scoped successful requests are tested independently without fallback or substituted operations. The broader suite also repairs an existing integer-rounding fuzz fixture and retains its failure seed. Validation: - `make verify-issue-1428`: PASS, 9 groups, zero failures/skips; integrated baseline reproduced, final matrix tested/retested with 22 checks and 15 fresh forward validations each. - Original populated four-hop requests reject in both directions at 207,757 probe gas including transaction/wrapper overhead. Actual smart-query outcomes and gas receipts remain separate. - Final 3M funded pool fixtures pass/retest all six scenarios and 18 smart queries each. Actual router 1.4→1.5 migration, funding, atomic invoice and 16 launch-guard checks pass. - Related `verify-issue-1422`, `1389`, `1398`, `1381` and `1390` pass with documented independent/historical/native/production skips; all executed final local assertions pass. Full contract workspace, frontend lint/types/build, formatting and independent review pass. - Cold pinned optimizer build verifies source/lock/image/output provenance; only router release hash changes. Earlier failures and repairs remain disclosed. Issue criteria: - [x] Reproduce integrated router 1.4.0 / pair 1.21.0 failure on an isolated pinned node; retain raw failures and fourteen preceding checks. - [x] Implement bounded deterministic admission and test mixed/empty/populated behavior. - [x] Preserve fresh sufficiency, gross/trader semantics, net floors and all existing ceilings; verify stale quote invalidation and no automatic retry/fallback/resend. - [x] Test/retest final policy and exact supported quote scopes; separately recheck funded pools at unchanged 3M. - [x] Document invariants, integrator behavior, immutable evidence and agent instructions with explicit skip permission. - [ ] Production migration/provider acceptance remains #1384/#1386/#1421; no production transactions were submitted. Agent review instructions: read the issue/comments and final diff, follow [GR1428](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ad8ddae15e8c99770839b70bff755c4307bb0d25/skills/AGENTS_GREEDY_REVERSE_SUPPORT.md), provision the isolated fixtures and run [the checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ad8ddae15e8c99770839b70bff755c4307bb0d25/docs/qa/issue-1428/README.md). Repeat corrected checks and record revision/UTC/commands/exits/evidence. Agents may mark unavailable items SKIP and overall PASS with explicit skips when all executed final checks pass; skipped criteria stay unchecked and executed failures remain FAIL until repaired/retested. [Results and receipts](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/commit/ad8ddae15e8c99770839b70bff755c4307bb0d25/docs/qa/issue-1428/RESULTS.md) include exact limitations and followup scope for broader populated one-to-three-hop qualification. Resolves #1428. Remote CI: [Woodpecker pipeline 332](https://ci.cl8y.com/repos/7/pipeline/332/1) and the following run failed at the hosted secret-scan gate on three unchanged public Venus address literals. The repository-configured scan passes; hosted trusted-policy reconciliation remains a separate followup. Contracts/frontend/indexer CI jobs were skipped after that gate failure. This CI result remains FAIL and is not represented as a passed or skipped local check.
Bound greedy reverse route admission
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
206571d308
Reject four-hop greedy reverse before external queries and retain protected sizing behavior.

Add isolated reproduction and retest receipts, agent invariants, and an exact-ratio fuzz fixture.
Crosslink greedy reverse implementation review
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
a88c12d1d7
Record hosted secret-scan findings and verification scope
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ad8ddae15e
Integrate AutoLP recovery into greedy reverse changes [skip ci]
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
eb726729f2
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!1432
No description provided.