feat(AutoLP): recover legacy policies through the actual manager #1431

Merged
PlasticDigits merged 2 commits from fix/issue-1429-manager-policy-recovery into main 2026-10-06 08:01:32 +00:00
Owner

Legacy AutoLP sisters managed by their token cannot accept a human same-pair policy refresh, while identical paid settings must remain a no-op. Token 1.4.0 adds an explicit manager-only RefreshAutolpPolicy execute for its bound token-owned sister: exact positive live reserve/share/LP approval forwards only a same-pair UpdateConfig, preserving authorization, settings, floors and atomic callbacks.

Read-only production inventory exhausted the documented historical/current AutoLP code lists and found no sisters; both discovered tokens have autolp: null. Recovery implementation and actual synthetic migration/readback are recorded independently. No production transaction was submitted.

Fixes #1429. Production rollout and maximum-hook gas remain #1421.

  • Inventory actual bindings/managers/policies where present; record bounded empty inventory.
  • Permit explicit manager recovery; reject foreign callers, wrong identities, stale/zero snapshots, unsupported policy queries, active lock and attached funds.
  • Preserve unchanged-settings no-op and existing swap/provide/LP floors; verify complete shortage and failed-reply rollback.
  • Test and retest: 14 new recovery cases, full workspace 996 tests, #1429 verifier 5 PASS, #1398 verifier 7 PASS, #1237 verifier 8 PASS, strict Clippy and formatting.
  • Build optimized wasm; synthetic LocalTerra first/retest each pass 10 checks and 23 transaction receipts, with actual token 1.3→1.4 and AutoLP 1.0→1.1 migration/readback.
  • Document LP1429 invariants and crosslink AGENTS.md, contract/integrator/security/testing docs and ./skills guidance.
  • Production migration/readback: no bound sister observed; no production deployment claimed.

Agent reproduction and checked criteria: docs/qa/issue-1429/README.md. Run make verify-issue-1429, make verify-issue-1398 and make verify-issue-1237; inspect expected error causes and complete economic snapshots, then reproduce the isolated-chain smoke against reviewed artifacts. Agents may explicitly SKIP unavailable items and mark overall PASS WITH SKIPS when all executed checks pass; skipped boxes stay unchecked, and executed failures remain FAIL until corrected and retested. Public inventory and separate initial/retest chain receipts are included alongside the checklist.

Legacy AutoLP sisters managed by their token cannot accept a human same-pair policy refresh, while identical paid settings must remain a no-op. Token 1.4.0 adds an explicit manager-only RefreshAutolpPolicy execute for its bound token-owned sister: exact positive live reserve/share/LP approval forwards only a same-pair UpdateConfig, preserving authorization, settings, floors and atomic callbacks. Read-only production inventory exhausted the documented historical/current AutoLP code lists and found no sisters; both discovered tokens have autolp: null. Recovery implementation and actual synthetic migration/readback are recorded independently. No production transaction was submitted. Fixes #1429. Production rollout and maximum-hook gas remain #1421. - [x] Inventory actual bindings/managers/policies where present; record bounded empty inventory. - [x] Permit explicit manager recovery; reject foreign callers, wrong identities, stale/zero snapshots, unsupported policy queries, active lock and attached funds. - [x] Preserve unchanged-settings no-op and existing swap/provide/LP floors; verify complete shortage and failed-reply rollback. - [x] Test and retest: 14 new recovery cases, full workspace 996 tests, #1429 verifier 5 PASS, #1398 verifier 7 PASS, #1237 verifier 8 PASS, strict Clippy and formatting. - [x] Build optimized wasm; synthetic LocalTerra first/retest each pass 10 checks and 23 transaction receipts, with actual token 1.3→1.4 and AutoLP 1.0→1.1 migration/readback. - [x] Document LP1429 invariants and crosslink AGENTS.md, contract/integrator/security/testing docs and ./skills guidance. - [ ] Production migration/readback: no bound sister observed; no production deployment claimed. Agent reproduction and checked criteria: docs/qa/issue-1429/README.md. Run make verify-issue-1429, make verify-issue-1398 and make verify-issue-1237; inspect expected error causes and complete economic snapshots, then reproduce the isolated-chain smoke against reviewed artifacts. Agents may explicitly SKIP unavailable items and mark overall PASS WITH SKIPS when all executed checks pass; skipped boxes stay unchecked, and executed failures remain FAIL until corrected and retested. Public inventory and separate initial/retest chain receipts are included alongside the checklist.
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!1431
No description provided.