feat(AutoLP): recover token-owned legacy LP policy through its actual manager #1429

Closed
opened 2026-10-06 06:39:25 +00:00 by PlasticDigits · 1 comment
Owner

The merged #1398 remediation initializes manager-approved reserve/share economics in AutoLP 1.1.0 and requires explicit same-pair UpdateConfig to establish a missing legacy LP policy. The current launcher uses a human manager, but older sisters may name the community-tax token contract as their manager. A human cannot impersonate that contract, and unchanged token settings intentionally remain a no-op (#1237).

Inventory the actual sister GetConfig.manager and GetLpPolicy first. If token-owned legacy sisters exist, implement and review a narrowly authorized token-mediated policy refresh/rebind path (or a concrete supported replacement/recovery path) before enrolling them in the rollout. Preserve real manager authorization, finite LP/ratio/swap floors, atomic rollback, reserve/share anchor approval, and the no-op settings invariant. Permissionless skim must never refresh policy from mutable spot.

Test both permitted manager execution and rejected foreign/permissionless refresh, unchanged settings, policy shortages and complete failed-reply rollback. Record the implementation and subsequent migration/readback independently. Production rollout/maximum-hook gas remains #1421; source implementation #1398 can close without claiming legacy deployment is complete.

References: docs/qa/issue-1398/README.md AC4, skills/AGENTS_NET_EXECUTION_FLOORS.md NE1398-9, smartcontracts/contracts/community-tax-autolp/src/lp_guard.rs and contract.rs.

The merged #1398 remediation initializes manager-approved reserve/share economics in AutoLP 1.1.0 and requires explicit same-pair UpdateConfig to establish a missing legacy LP policy. The current launcher uses a human manager, but older sisters may name the community-tax token contract as their manager. A human cannot impersonate that contract, and unchanged token settings intentionally remain a no-op (#1237). Inventory the actual sister GetConfig.manager and GetLpPolicy first. If token-owned legacy sisters exist, implement and review a narrowly authorized token-mediated policy refresh/rebind path (or a concrete supported replacement/recovery path) before enrolling them in the rollout. Preserve real manager authorization, finite LP/ratio/swap floors, atomic rollback, reserve/share anchor approval, and the no-op settings invariant. Permissionless skim must never refresh policy from mutable spot. Test both permitted manager execution and rejected foreign/permissionless refresh, unchanged settings, policy shortages and complete failed-reply rollback. Record the implementation and subsequent migration/readback independently. Production rollout/maximum-hook gas remains #1421; source implementation #1398 can close without claiming legacy deployment is complete. References: docs/qa/issue-1398/README.md AC4, skills/AGENTS_NET_EXECUTION_FLOORS.md NE1398-9, smartcontracts/contracts/community-tax-autolp/src/lp_guard.rs and contract.rs.
Author
Owner

PR #1431 is merged through fj at b5a056fe3b, and its source was checked together with #1432. The combined tree has no merge conflicts. Token 1.4.0's explicit manager proxy preserves same-pair approval, unchanged-settings no-op, net floors and atomic callbacks.

Local acceptance: verify-1429 5 PASS/0 FAIL/0 SKIP including the full contract workspace; verify-1398 7 PASS and verify-1237 8 PASS; strict all-target Clippy and formatting pass. Fresh optimized synthetic migration/recovery runs each pass 10 checks with 23 transaction receipts, including exact anchor recovery, positive LP skim and complete failed-swap rollback.

Problems handled: expired OpenBao session recovered with routine certificate login; ordinary fj merge returned HTTP 405 while the hosted status was unmet; the explicitly requested CI override disabled only that status requirement temporarily and restored original protection settings afterward. No fake success statuses were posted. Missing frontend WalletConnect configuration was replaced by a public build-only fixture for local build acceptance; git push used a nonlogging OpenBao askpass helper. The combined build changed token, AutoLP, launcher and pair artifact bytes, so four stale standalone checksums were rebuilt and corrected.

Integrated source/build/chain receipt. This implementation issue closes without a verification hold. Production migration/recovery/readback, maximum-hook/AutoLP gas and release operations remain actual post-merge work in existing #1421/#1384/#1386; no production deployment was performed. The bounded inventory still found no bound sister target, which is not universal proof of absence. Hosted CI was skipped by instruction.

PR #1431 is merged through fj at b5a056fe3b9437b181dbfd99b1fe7c2752ca7bc3, and its source was checked together with #1432. The combined tree has no merge conflicts. Token 1.4.0's explicit manager proxy preserves same-pair approval, unchanged-settings no-op, net floors and atomic callbacks. Local acceptance: verify-1429 5 PASS/0 FAIL/0 SKIP including the full contract workspace; verify-1398 7 PASS and verify-1237 8 PASS; strict all-target Clippy and formatting pass. Fresh optimized synthetic migration/recovery runs each pass 10 checks with 23 transaction receipts, including exact anchor recovery, positive LP skim and complete failed-swap rollback. Problems handled: expired OpenBao session recovered with routine certificate login; ordinary fj merge returned HTTP 405 while the hosted status was unmet; the explicitly requested CI override disabled only that status requirement temporarily and restored original protection settings afterward. No fake success statuses were posted. Missing frontend WalletConnect configuration was replaced by a public build-only fixture for local build acceptance; git push used a nonlogging OpenBao askpass helper. The combined build changed token, AutoLP, launcher and pair artifact bytes, so four stale standalone checksums were rebuilt and corrected. [Integrated source/build/chain receipt](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/merge-2026-10-06-1431-1432/README.md). This implementation issue closes without a verification hold. Production migration/recovery/readback, maximum-hook/AutoLP gas and release operations remain actual post-merge work in existing #1421/#1384/#1386; no production deployment was performed. The bounded inventory still found no bound sister target, which is not universal proof of absence. Hosted CI was skipped by instruction.
Sign in to join this conversation.
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#1429
No description provided.