fix(swarm): bootstrap tx parsing + verify #293 OE-1 guardrail #807
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!807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-verification-7f54"
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 (MR !783 swarm liquidity landed on
main).Findings: Not a Swap UI decimal bug. Global
GET /api/v1/route/solvepicks different best routes per direction (multi-hop arb vs direct pool) on LocalTerra's lopsided factory topology — matching Brouie's analysis. Direct-pool quotes (pool_only=true) are near-inverse (~96% after fees). Swap UI renders human-scaled amounts correctly (36.12K CORAL, not raw micro-units).This MR fixes two regressions in
scripts/bots/swarm.pythat blocked the !783 bootstrap/LP path from confirming on-chain:gas estimate:prefix before parsing terrad JSON stdout.terrad query tx(notterrad tx query) for inclusion polling.Also adds
make verify-issue-293guardrail script and doc cross-links.Merge conflict resolution (2026-06-05): Rebased onto latest
main; resolvedMakefile.PHONYconflict by keeping bothverify-issue-293(this MR) and new main targets (deploy-local-no-build,build-indexer-release,fetch-qa-ci-artifacts,test-qa-redeploy-decision).Acceptance checklist
maingit merge origin/mainon MR branch.PHONYonly)make test-swarm-liquiditycd packages/localnet-trading-swarm && npm run test:runmake swarm-bootstrap-liquiditymake swarm-launchmake verify-issue-293step [3] / indexerroute/solveroute/solve?pool_only=true/Simulated Wallet: 1 EMBER→36.12KCORAL; flip 1 CORAL→1.006EMBERFollow-ups
deploy-dex-local.sh— hub LP deepen alone does not make global solver pick the same pool both ways.changed the description
mentioned in issue #293
changed the description
added 1 commit
319fa5b5- chore: make verify-issue-293.sh executableCompare with previous version
changed the description
Security review (automated)
Reviewed commit:
319fa5b52835bb9b188b8c2aa3145809512c8841Diff scope (vs
856f024):scripts/bots/swarm.py,scripts/qa/verify-issue-293.sh,Makefile,docs/testing.md,skills/AGENTS_LOCALNET_TRADING_SWARM.mdOutcome:
FINDINGS: 0medium+ — no inline threads opened.Summary
This MR is limited to localnet QA tooling: terrad stdout JSON normalization (
_json_from_terrad_output), switching tx inclusion polling toterrad query tx, and a newmake verify-issue-293guardrail. There are no changes to production services, on-chain contracts, indexer HTTP handlers, or frontend auth paths.Areas checked
docker exec/terrad)asyncio.create_subprocess_execwith argv lists;containerfrom compose;txhashfrom parsed terrad JSON (not shell-expanded).json.loadson dict-only terrad output; noeval/pickle. Prefix strip before{only affects local bot confirmation.verify-issue-293.sh)VERIFY293_INDEXER_URLdefaults to127.0.0.1:3001; script is operator-run QA, not an exposed service.Prior MR discussion threads: none to re-validate.
Cursor security review automation
Security review
Commit reviewed:
319fa5b52835bb9b188b8c2aa3145809512c8841Scope: 5 files —
scripts/bots/swarm.py(terrad JSON parsing +query txpolling fix), newscripts/qa/verify-issue-293.sh,Makefiletarget, and doc cross-links indocs/testing.md/skills/AGENTS_LOCALNET_TRADING_SWARM.md.Outcome:
FINDINGS: 0medium+Inline threads: none (no medium+ issues on this diff)
Summary
Reviewed added/modified code for injection, auth bypass, secret leakage, SSRF, unsafe deserialization, and supply-chain risk. All changes are confined to localnet QA tooling (Python swarm bot + verification shell script); no production contracts, indexer API, frontend, or auth paths are touched.
Paths traced
_terrad_query/_poll_tx_inclusiontxhashcomes from localterradbroadcast JSON, not external callers;containerfromdocker compose ps -q localterraasyncio.create_subprocess_exec(argv list, no shell)_json_from_terrad_outputterradinside Dockerjson.loadsverify-issue-293.shVERIFY293_INDEXER_URL, etc.) set by operator/CIcurl+urllib.request.urlopento indexerNo new dependencies, secrets, or production runtime behavior introduced.
Security review: no medium+ findings on this diff.
added 42 commits
main784cf4f5- merge: resolve Makefile .PHONY conflict with main (keep verify-issue-293 + main targets)Compare with previous version
changed the description
changed the description
Security review (automated)
Reviewed commit:
784cf4f5f12c3e630138d91a47bb84f082ea8515Diff scope (vs
c0dd110, MR !807):scripts/bots/swarm.py,scripts/qa/verify-issue-293.sh,Makefile,docs/testing.md,skills/AGENTS_LOCALNET_TRADING_SWARM.mdOutcome:
FINDINGS: 0medium+ — no inline threads opened.Summary
Re-reviewed after the merge commit that resolved the
Makefile.PHONYconflict withmain. Security posture is unchanged from the prior review on319fa5b: all changes remain confined to localnet QA tooling (Python swarm bot terrad stdout parsing /query txpolling fix, plus optionalmake verify-issue-293guardrail). No production contracts, indexer HTTP handlers, frontend auth paths, or new dependencies are touched.Paths traced
_terrad_query/_poll_tx_inclusiontxhashfrom localterradbroadcast JSON;containerfromdocker compose ps -q localterraasyncio.create_subprocess_exec(argv list, no shell)_json_from_terrad_outputterradinside Dockerjson.loadson dict-only payload after{prefix stripverify-issue-293.shVERIFY293_INDEXER_URL, etc.)curl+ embedded Pythonurllib.request.urlopenPrior inline threads: none. Prior top-level security reviews on
319fa5bremain valid; no new medium+ issues introduced by784cf4f.Security review: no medium+ findings on this diff.
Cursor security review automation
mentioned in commit
9d7331cd66mentioned in commit
33488c2acd