docs(#293): verification guardrails for slippage enrichment + stale quote assets #832
No reviewers
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!832
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-verification-ec88"
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?
Summary
Verification QA for https://gitlab.com/PlasticDigits/cl8y-dex-terraclassic/-/work_items/293 after the Expert Mode / route-based slippage implementation. Updates
make verify-issue-293acceptance and documents a stale-indexer-DB prerequisite that caused false FAIL on slippage enrichment.Root cause of live [3c] failure (stale VM): duplicate
USTC-Crows in indexerassetsfrom a prior deploy —find_quote_tokenpicked an unroutable quote address andenrich_route_slippagesilently omitted fields. Fresh deploy (make setup-cloud-localterra --fresh) restores enrichment.Changes
scripts/qa/verify-issue-293.sh: [3-preflight] duplicate quote-asset probe; [3c] checksslippage_percent+spot_amount_outpresence, math consistency, and retail-guard exercisability (>30%) instead of brittle global≥99%/pool≤5% thresholdsdocs/testing.md,docs/indexer-invariants.md,skills/AGENTS_LOCALNET_TRADING_SWARM.md: document slippage enrichment acceptance +--freshprerequisiteVerification checklist
make test-swarm-liquiditycd packages/localnet-trading-swarm && npm run test:runroute_slippagelib testscd indexer && cargo test route_slippage --libnpm run test -- src/pages/SwapPage.test.tsx -t 293make verify-issue-293[3b]make verify-issue-293[3c] after--freshdeploymake verify-issue-293[3a]http://127.0.0.1:5173Issue left open for product review.
changed the description
changed the description
changed the description
mentioned in issue #293
Security review
Commit reviewed:
131ca8a6bd8bef0450b5de4f6ac258f0716b1c34Scope: MR !832 — docs and QA guardrails for GitLab #293 slippage enrichment verification (
docs/indexer-invariants.md,docs/testing.md,skills/AGENTS_LOCALNET_TRADING_SWARM.md,scripts/qa/verify-issue-293.sh). No production indexer, frontend, or contract code changes.Method: Reviewed the full MR diff. Traced attacker-controlled inputs on the changed script paths (new
[3-preflight]Postgres probe, updated[3c]Python acceptance logic). Checked for injection, authz bypass, secret leakage, SSRF, and unsafe deserialization.Outcome:
FINDINGS: 0medium+ vulnerabilities.Inline threads: None (no findings to anchor).
Notes (informational, below reporting threshold)
psqlpreflight uses a hardcodedUSTC-Cliteral inside a localdocker compose execcall; no external input reaches the query. This is dev/QA-only and not attacker-exposed.VERIFY293_INDEXER_URLcan redirect the embedded Python client to an arbitrary host, but that env override predates this MR and is limited to operators running the local verification script — not a production attack surface introduced here.Security review: no medium+ findings on this diff.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit
131ca8a6bd. Configure here.Preflight passes zero USTC rows
Medium Severity
The new
[3-preflight]check only fails whenUSTC-Crow count is greater than one. When the count is zero, it still records PASS with “quote asset rows unique,” even though the failure message for duplicates says the count should be one and the updated docs tie missing quote assets to broken slippage enrichment.Reviewed by Cursor Bugbot for commit
131ca8a6bd. Configure here.added 1 commit
97762c08- Fix verify-issue-293 preflight to fail when USTC-C row count is zeroCompare with previous version
changed the description
resolved all threads
Security review
Commit reviewed:
97762c0804545778c44805b27f01bcca3d6ef892Scope: MR !832 — docs and QA guardrails for GitLab #293 slippage enrichment verification (
docs/indexer-invariants.md,docs/testing.md,skills/AGENTS_LOCALNET_TRADING_SWARM.md,scripts/qa/verify-issue-293.sh). No production indexer, frontend, or contract code changes.Method: Reviewed the full MR diff at head
97762c08(includes preflight fix requiring exactly oneUSTC-Casset row). Traced attacker-controlled inputs on changed script paths: new[3-preflight]Postgres probe (docker compose exec … psqlwith hardcoded symbol literal), updated[3c]Python acceptance logic (reads indexer/api/v1/tokensand/api/v1/route/solve). Checked for injection, authz bypass, secret leakage, SSRF, path traversal, and unsafe deserialization.Outcome:
FINDINGS: 0medium+ vulnerabilities.Inline threads: None (no findings to anchor).
Notes (informational, below reporting threshold)
[3-preflight]psqlquery uses a hardcoded'USTC-C'literal inside a localdocker compose execcall; no external input reaches the SQL. Dev/QA-only, not attacker-exposed.VERIFY293_INDEXER_URLcan redirect the embedded Python HTTP client to an arbitrary host, but that env override predates this MR and is limited to operators running the local verification script — not a production attack surface introduced here.97762c08fixes a QA false-pass whenUSTC-Crow count is zero (bash empty-string vs numeric compare); this is a test-correctness fix, not a security boundary change.Security review: no medium+ findings on this diff.
mentioned in commit
038a457ca7mentioned in commit
cde24381bbmentioned in commit
b3ab6a315e