This is the execution-capable Morpho workflow skill.
It is the Morpho-side counterpart to the EVK skill. It is still more conservative than the EVK path, but it now supports a real end-to-end flow for compatible requests: resolve the requested collateral and borrow assets, check feed readiness, execute funding when available, deploy the oracle adapter, deploy the Morpho market, and verify the result.
This published skill carries its own local runtime and bundled planning artifacts under scripts/lib/ and data/part2/ rather than assuming a separate repo checkout is available at execution time.
It should script as much of the Morpho path as the code can honestly support: feed readiness classification, executable funding, communal proxy deployment when needed, propagation rechecks, adapter deployment, market deployment, verification, resumable artifacts, and a generated rollback-plan.json for every orchestrated run.
When the supported path is available and the user explicitly asks for it, this variant can send real transactions and should be treated as a guarded execution skill rather than a planning-only helper.
Use one request file and one wrapper command. Do not pick lower-level commands unless debugging or resuming a known run.
request.json with exact collateralAssets, exact borrowAssets, chain, RPC, Morpho policy, feed-funding intent, and send/broadcast intent.references/live-request-template.json and replace every placeholder before use.LIVE_SIGNER_ENV via feedFunding.privateKeyEnv / send.privateKeyEnv. agentic-lending-morpho preflight-morpho-market --input-file ./request.json --format json
Stop unless safeToRun === true. Preflight rejects placeholder RPCs, dummy addresses, dummy private keys, mismatched RPC chain IDs, and missing live deployment policy.
agentic-lending-morpho ensure-feeds-and-deploy-morpho-market --input-file ./request.json --format json
--progress jsonl for machine-readable progress or --progress silent to suppress live progress output.approval-summary.json, agent-decision.json, summary.json, rollback-plan.json, and progress-events.jsonl.approval-summary.json is the explicit handoff artifact for user approval: what will run, whether it may send txs, expected duration, and likely resource impact.phase === "completed", there are no hard blockers, and verifyResult.verified === true.If the run needs continuation, resume the same run directory rather than reconstructing state from memory:
agentic-lending-morpho ensure-feeds-and-deploy-morpho-market --resume-from-run-dir
Timeouts and stalls should now name the stalled phase and point back to --resume-from-run-dir when that is the right recovery path.
references/workflow.mdreferences/current_capabilities.mdreferences/morpho-oracle-adapter.mdreferences/state-machine.md when feed activation and market deployment are both in scopereferences/summary-contract.md before interpreting wrapper output or claiming successGather these before attempting a Morpho-first workflow:
collateralAssetsborrowAssetsIf any of those are missing, stop and ask instead of inventing them.
When preparing a request for this skill, always express the market assets explicitly as:
collateralAssets: array of { symbol, address }borrowAssets: array of { symbol, address }Do not leave asset selection implicit. The planner needs the exact collateral and borrow assets in order to resolve feeds, choose a direct-versus-composed oracle route, and verify the final market correctly.
For live execution, also include explicit activationMode, executionMode, rpcPreference, morphoCoreAddress, morphoPolicy, feedFunding, send, and broadcast fields. Use references/live-request-template.json as the starting shape, and check references/deployment-packs/ for chain-specific operator notes. Never use placeholder RPC URL, raw private keys, signer address, Morpho core address, IRM address, or LLTV without replacing and validating them.
collateralAssetsborrowAssetsmorphoensure-feeds-and-deploy-morpho-market when the goal is to check feeds, fund if needed, deploy communal proxies when needed, wait for propagation, deploy, verify, and persist one coherent run directoryprice() succeeds and is positiveFor a deployable request, prefer this command shape:
agentic-lending-morpho ensure-feeds-and-deploy-morpho-market --input-file ./request.json
Use it when the agent already has a concrete request file with the selected collateral and borrow assets.
Use --resume-from-run-dir when continuing a previously persisted run.
Check agent-decision.json first after wrapper runs. It is the small model-friendly status object with safeStatus, nextCommand, mustNotDo, and successClaimAllowed.
Check rollback-plan.json before sending any further dependent transactions. It records whether the run stayed local-only or already created forward-only onchain state.
Use these reliability commands when resuming or auditing:
agentic-lending-morpho explain-next --run-dir --format json agentic-lending-morpho verify-feed-to-market-handoff --run-dir --format json Treat bundled data/part2/feed-status.json and data/part2/market-registry.json as packaged snapshots. They are valid local inputs for fallback planning paths, but live RPC-backed checks still take precedence whenever the request needs a current on-chain claim.
Do not infer success from narrative text. Use exact wrapper fields and artifacts. Read references/summary-contract.md for the full contract.
Minimum full-success predicate:
phase is completedblockers is absent or emptypropagationResult.ready === truedeployResult.sendSummary.completed === true for live deployment claimsverifyResult.verified === trueagent-decision.json.successClaimAllowed === truerollback-plan.json has been inspected and reported as local-only or forward-only on-chain stateIf any field is missing, say which artifact or field is missing instead of guessing.
Before saying the Morpho market uses the activated feed, prove the handoff in artifacts:
price()If those checks are too hard to prove from available artifacts, report verification-ready or blocked; do not report completed.
Always report:
plan-only, funding handoff required, feeds funded; waiting for propagation, market deployment ready, verification-ready, completed, or blockedBe blunt about current Morpho limits.
Do not blur design-doc intent into executable support.
But do not understate the implemented path either: if the selected-asset request is executable, say so plainly and use the resolve → feed-check → funding → deploy → verify sequence.
共 6 个版本