The loop
- Scan. Run
lp-pool-scanon the allowlist or the dailytopuniverse. Treat its output as public-data estimates. - Read live state. Read
getLpPositionsorgetSolanaLpPositions, and the allowlist withgetLpAllowlistorgetSolanaLpAllowlist. Keep coverage, source times and unread positions. Missing values are unknown, not zero. - Apply the playbook. Run
lp-rebalancing-playbookagainst live values. If no rule fires, the verdict is Hold. - Quote. For the single highest-priority rule, call
quoteLpOperationorquoteSolanaLpOperation. Quoting signs and sends nothing. - Propose. Show the owner the rule, its trigger value against the threshold, and the quote: action, amounts, minimum receive bounds, slippage, fees and expiry. Write a Pending log row.
- Approve. The owner approves that exact quote in chat, under the playbook guardrails. If the quote expires or material terms change, re-quote and ask again.
- Execute. Call
executeLpOperationorexecuteSolanaLpOperationwith the approvedquoteIdandplanHash. Never execute a superseded quote. - Check status. Read
getLpOperationStatusorgetSolanaLpOperationStatusbyoperationId. Prepared, submitted and pending are not settled. Follow recovery for unknown or partial results, and never resend automatically. - Log. Update the row with the decision and, after settlement, the outcome. Refresh positions.
Playbook actions and operations
All kinds go through the same quote, execute and status tools for their chain. The
kind values above are the enum values in the published quote schemas.
Some actions need a separate swap first, for example a ratio fix before a re-range or converting harvested fees to a stable leg. That swap is its own action with its own quoteSpotTransaction quote and approval. LP quotes do not swap into the desired ratio. Settle the swap, then request a fresh LP quote. See Fund and quote.
Before any action that adds exposure, confirm the pool is admitted on the Spot MCP allowlist and supported by Spot MCP. A pool ranked by the scanner is not necessarily either. See allowlists end to end.
Log every proposal
Keep one row per proposal. The playbook defines the decision fields; the Spot MCP identifiers link each row to its quote and settlement.
Write the row as Pending when proposing. Mark it Superseded when a fresh quote replaces it and Expired when it is not approved within 24 hours. Report recorded amounts from attributable receipts, and label quote amounts as estimates.
What this workflow does not do
- It does not choose capital, pools or ranges for the owner. The skills propose; the owner decides.
- It does not prove profitability. Scanner fee APR and estimated fee APR are estimates. See LP analytics.
- It does not run unattended execution. For recurring reviews, see scheduled LP monitoring.