当前位置: 首页 > Skill >

Agentic Lending Morpho

Agentic Lending Morpho

Agentic Lending Morpho

制定并执行针对 Api3 支持市场的 Morpho 优先代理借贷工作流。当用户需要 Morpho 市场或针对所选抵押品的市场组合时使用。

0.1.11 2026.11.25 686
获取Skill文件查看使用说明
作 者:顾知 许可证: 更新时间:2026.11.25
本文目录展开

Agentic Lending Morpho

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.

Golden path for normal use

Use one request file and one wrapper command. Do not pick lower-level commands unless debugging or resuming a known run.

  1. Create request.json with exact collateralAssets, exact borrowAssets, chain, RPC, Morpho policy, feed-funding intent, and send/broadcast intent.

    • For a live-shaped Arbitrum WETH/USDC example, copy references/live-request-template.json and replace every placeholder before use.
    • feedFunding.mode should be written with the canonical enum values: classify-only, dry-run, or real-send.
    • The runtime also accepts natural aliases (check-only → classify-only, simulate → dry-run), but docs and saved request files should stick to the canonical values.
    • Never paste a raw private key into chat. For live execution, point the request at a local environment variable such as LIVE_SIGNER_ENV via feedFunding.privateKeyEnv / send.privateKeyEnv.
  2. Preflight before live-capable execution:

    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.

  3. Run:

    agentic-lending-morpho ensure-feeds-and-deploy-morpho-market --input-file ./request.json --format json

    • The wrapper now emits phase-by-phase progress on stderr for preflight, feed classification, funding/handoff, propagation wait, deployment, and verification.
    • Use --progress jsonl for machine-readable progress or --progress silent to suppress live progress output.
  4. Inspect the persisted run directory, especially 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.
  5. Report full success only when 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 <run-dir> --input-file <run-dir>/request.json --format json

Timeouts and stalls should now name the stalled phase and point back to --resume-from-run-dir when that is the right recovery path.

Safety expectations

  • default to planning, dry-run, or guarded verification first
  • only use signer-backed feed funding or market deployment when the user explicitly asks for it
  • treat browser-assisted funding as an explicit handoff, not a silent autonomous path
  • require exact asset selection before deployment planning or submission
  • require a usable RPC endpoint for any on-chain verification claim
  • never ask the user to paste a raw private key into chat
  • keep signer material in environment variables or local runtime config, never in committed files or request templates

Read next

  1. references/workflow.md
  2. references/current_capabilities.md
  3. references/morpho-oracle-adapter.md
  4. references/state-machine.md when feed activation and market deployment are both in scope
  5. references/summary-contract.md before interpreting wrapper output or claiming success

Minimum required inputs

Gather these before attempting a Morpho-first workflow:

  • chain name and chain id
  • explicit collateralAssets
  • explicit borrowAssets
  • target market shape or risk intent
  • whether the user wants planning only, dry-run, or transaction submission
  • live RPC availability for the chain if anything beyond planning is expected
  • Morpho policy inputs needed for deployment on that chain when transaction submission is requested

If any of those are missing, stop and ask instead of inventing them.

Request-shape rule

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/<chain>/ 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. Bare 64-hex private keys are accepted and normalized to 0x..., but environment-variable inputs remain the preferred documented path.

Default workflow

  1. Normalize the request into:
    • chain
    • collateralAssets
    • borrowAssets
    • protocol = morpho
    • market or risk intent
    • desired execution mode
  2. Treat asset selection as a first-class input.
    • confirm the exact collateral asset set and borrow asset set the user wants
    • for multiple collateral assets, remember this becomes a Morpho market set: one market per supported collateral/borrow pair
  3. Resolve the oracle path before any deploy step.
    • prefer a direct pair when the exact requested route is available and usable
    • otherwise use a supported composed route when the planner can prove it cleanly
    • keep feed-name matching generic: literal exact pair first, alias-normalized fallback second
  4. Check feed readiness before deployment.
    • if feeds are already live on the deployable on-chain path, continue
    • if funding is needed and executable, run the funding path first
    • if funding executes, wait for live propagation/readability before deployment
    • if the funding branch is browser-assisted or unsupported, stop and report that honestly instead of pretending transaction submission can continue
  5. Prefer the orchestration wrapper for the real sequence.
    • use ensure-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 directory
    • use lower-level commands only when debugging or resuming a prior run
  6. Prepare and deploy the Morpho oracle adapter path.
    • use the Api3-backed Morpho oracle adapter design as the canonical oracle shape
    • preserve artifact handoff from adapter deployment into market deployment
    • keep proxy-first ordering whenever a communal proxy deploy is required
    • verify the adapter uses the same feed/proxy sources that were proven live
    • for dry-run previews, allow the planner to show both transactions by threading the predicted adapter address
    • for live send, require the market creation step to re-thread from the adapter deployment receipt address instead of trusting predicted nonce math alone
  7. Verify the deployed market.
    • confirm the market exists on-chain
    • confirm params, IRM, and LLTV expectations
    • confirm oracle price() succeeds and is positive
  8. Stop at the honest boundary.
    • if the request can only reach planning or funding handoff, say so clearly
    • do not present Morpho deployment as equivalent to the EVK live deploy path unless the code actually supports the requested environment
    • do not treat feed discovery, funding readiness, adapter design readiness, deployment readiness, and verified market creation as the same milestone

Preferred command path

For 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 <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 <dir> --format json
  • agentic-lending-morpho verify-feed-to-market-handoff --run-dir <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.

Success gates for less capable models

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:

  • top-level phase is completed
  • blockers is absent or empty
  • feed readiness is proven live, or post-funding propagationResult.ready === true
  • deployResult.sendSummary.completed === true for live deployment claims
  • verifyResult.verified === true
  • agent-decision.json.successClaimAllowed === true
  • rollback-plan.json has been inspected and reported as local-only or forward-only on-chain state

If any field is missing, say which artifact or field is missing instead of guessing.

Feed-to-market handoff checks

Before saying the Morpho market uses the activated feed, prove the handoff in artifacts:

  • the required feed route was resolved for the selected collateral/borrow pair
  • the feed was already live, or funding/proxy deployment completed and propagation later reported ready
  • any required communal proxy is deployed and readable before adapter deployment
  • the deployed adapter references the activated feed/proxy source, not a stale or predicted-only address
  • the created market uses the adapter output from this run
  • verification reads the deployed market oracle and receives a positive price()

If those checks are too hard to prove from available artifacts, report verification-ready or blocked; do not report completed.

Output expectations

Always report:

  • whether the request was normalized successfully
  • which collateral assets and borrow assets were selected for the Morpho market or market set
  • whether the required Api3 feeds are already live, fundable, browser-assisted, or unsupported
  • whether feed funding was executed, skipped as unnecessary, or handed off
  • whether post-funding propagation/readability was proven before deployment
  • whether the deployed adapter consumed the activated feed/proxy path
  • whether the deployed market consumed the adapter output from the same run
  • what oracle adapter shape is planned or deployed for Morpho
  • which steps are planning-only versus executable today
  • the exact wrapper phase: plan-only, funding handoff required, feeds funded; waiting for propagation, market deployment ready, verification-ready, completed, or blocked
  • exact blockers preventing a full Morpho deployment flow, if any
  • the next concrete command, file, or implementation gap to close

Tone

Be 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.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Agentic Lending Morpho
    • Golden path for normal use
    • Safety expectations
    • Read next
    • Minimum required inputs
    • Request-shape rule
    • Default workflow
    • Preferred command path
    • Success gates for less capable models
    • Feed-to-market handoff checks
    • Output expectations
    • Tone
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期