Harden router trust lifecycle and single-use settlement (#1388) #1408
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!1408
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-1388-router-trust"
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?
A replaced router could leave existing community-tax instances bound to obsolete settlement authority, and a trusted-router regression could emit the same settlement entry repeatedly. This adds live-wasm-admin or bound-factory-governance recovery/revocation with exact candidate code ID/SHA-256/factory/capability and immutable/factory-governed custody checks, monotonic route IDs and bounded single-use token settlement slots. Router/token release 1.3.0 preserves existing configuration and storage while revoking only obsolete router exemptions.
Rollout preflight rejects stale bindings across the complete inventory, including unpaired zero-rate tokens. Artifact probes compare actual code IDs and full hashes. Trading discovery checks live code identity before every cache lookup and rejects migrations during discovery, while retaining the five-second capability/rate TTL within unchanged code identity. Catalog provenance remains independently enforced.
Fixes #1388. Production rollout remains separate under #1384.
Issue acceptance checklist:
Validation: final focused verifier 12 PASS / 0 FAIL / 1 production SKIP; funding regression verifier 13 PASS / 0 FAIL / 1 production SKIP; 890 contract tests, 475 indexer library tests, 55 Postgres API tests and 268 frontend tests. Two earlier-version migrations and two 12-check rotation/revocation rehearsals passed on LocalTerra; native/invoice atomic flows passed. Commit hooks and independent security review passed.
Validation receipts and exact commands: results. Reproduce with
make verify-issue-1388andmake verify-issue-1381; see the agent checklist, recovery runbook, and RTTRUST1388-1–RTTRUST1388-10. Complete runnable checks first. An agent may skip unavailable items and report overall PASS with explicit skips, leaving the corresponding criterion unverified with a concrete reason; executed failures remain FAIL.