@agenticprimitives/intent-resolver

中文文档
0.0.0-alpha.42发布于 2026/10/26MITTypeScriptES Module近 30 天下载 4323

Resolver layer skeleton (W1) — types + PassThroughResolver only. Full resolver engine deferred to W2.

原始使用文档
文档目录6 节
  1. What ships today
  2. What lands in W2 (designed, not shipped)
  3. Where this is heading / market context
  4. Boundary with the engagement layer (spec 336)
  5. Build
  6. Status — honest version

@agenticprimitives/intent-resolver

Part of Agentic Primitives — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. Developer kit · All packages

Status: STUB / SKELETON (Wave 0.5 of the W1 implementation wave). W1 ships types + PassThroughResolver only; the full resolver engine lands in W2 per the w1 implementation wave plan.

Between "what a user said" and "what the system can match" sits resolution: turning an opaque expressed intent into a normalized canonical order. ERC-7683 made the resolver a named role in cross-chain intents; Anoma made it the heart of its architecture. Both treat resolution as separate from matchmaking — and so do we, because the resolver is where AI enters the trust chain. When a model infers a constraint a user never typed, that inference needs provenance: which model, which prompt, what confidence, and whether the user confirmed it. In this substrate that provenance is a typed ResolutionReceipt, and resolution happens under the same canonical identity, delegation, and audit trail as everything else the agent does.

This package is the designed Layer 4 of that spine — interface reserved now, engine landing in W2 — so the resolver grows in its own bounded home instead of being bolted onto the marketplace later.

Part of agenticprimitives — the trust substrate for the agent economy: one canonical Smart Agent identity with custody, delegation, naming, credentials, and audit evidence designed as one system.

What ships today

The complete W1 surface is three exports:

  • IIntentResolver — resolve(intent): Promise<ResolvedOrder | null>. The stable contract every future resolver implements.
  • ResolvedOrder — resolvedFromIntentId + canonicalConstraints + expandedAssumptions + validationRequirements, with an optional erc7683Order slot reserved for cross-chain interop.
  • PassThroughResolver — the deterministic W1 implementation: returns the intent's existing ConstraintSet / AssumptionSet unchanged. No LLM, no normalization, no surprises.
import { PassThroughResolver } from '@agenticprimitives/intent-resolver';

const resolver = new PassThroughResolver();
const order = await resolver.resolve(intent); // constraints pass through unchanged

What lands in W2 (designed, not shipped)

Constraint normalization (colloquial scope → canonical codes), credential-requirement expansion, LLM-driven resolution with full ResolutionReceipt provenance (RR-INV-01..05 — every resolution produces a receipt, and inferred constraints cannot bind without user confirmation), and ERC-7683 order emission. Per-domain resolvers live in apps or W2+ resolver packages, never here.

Where this is heading / market context

  • ERC-7683 defines the resolver-assumption pattern for cross-chain orders; this package follows its resolver/matchmaker separation and targets its order shape for interop.
  • Anoma treats intent resolution as constraint solving; the ConstraintSet types this resolver consumes (from intent-marketplace) are CSP-shaped for the same reason.
  • x402 / Google AP2 machine-payment rails make the stakes concrete: a resolved order can bind a payment mandate, so the resolution step must be attributable and auditable under the same identity substrate as the spend it triggers. That is the combination — resolution with receipts, inside one delegation + custody + audit chain — that stitched stacks do not offer.

Boundary with the engagement layer (spec 336)

Resolution normalizes the requester's side; it never speaks to candidates. Downstream, a candidate ranking is a resolver's assertion, not a fact — apdisc:MatchCandidate carries named-resolver provenance, multi-dimensional evidence, and stated reasons, and a single similarity score must never decide who receives sensitive data. Whether a matched provider will actually take this intent, on what terms is the engagement layer's question (spec 336): probes carry audience-bound projections (never the canonical intent), and the six response kinds — including decline and temporarily-unavailable — are recordable business facts, not resolution failures.

Authoritative spec: spec 239 — intent spine, §4.5 (see spec.md). Owns spine layer 4 (skeleton); bounded surface in CLAUDE.md and capability.manifest.json.

Build

pnpm --filter @agenticprimitives/intent-resolver typecheck
pnpm --filter @agenticprimitives/intent-resolver test
pnpm --filter @agenticprimitives/intent-resolver build

Status — honest version

STUB / SKELETON. PassThroughResolver is the only implementation and it is intentionally trivial. Everything in "What lands in W2" is a spec'd commitment, not shipped capability. Wave sequencing: w1-implementation-wave-plan.md. Repo-wide security findings: docs/audits/findings.yaml.

版本与发布记录

@agenticprimitives/intent-resolver 共发布 40 个版本,首次发布于 2026/06/11;过去 12 个月发布了 40 个版本。

版本发布日期距今
0.0.0-alpha.42latest2026/10/2612 天前
0.0.0-alpha.412026/10/2612 天前
0.0.0-alpha.402026/10/1721 天前
0.0.0-alpha.392026/10/1722 天前
0.0.0-alpha.382026/10/1622 天前
0.0.0-alpha.372026/10/1622 天前

其他发布通道:alpha → 0.0.0-alpha.3。

关于 @agenticprimitives/intent-resolver 的常见问题

@agenticprimitives/intent-resolver 是什么?

Resolver layer skeleton (W1) — types + PassThroughResolver only. Full resolver engine deferred to W2.

如何安装 @agenticprimitives/intent-resolver?

在项目目录运行 npm install @agenticprimitives/intent-resolver,或使用 pnpm add / yarn add / bun add。

@agenticprimitives/intent-resolver 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agenticprimitives/intent-resolver 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agenticprimitives/intent-resolver 可以商用吗?

@agenticprimitives/intent-resolver 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@agenticprimitives/intent-resolver 的下载量有多少?

根据 npm 官方下载统计,@agenticprimitives/intent-resolver 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,323 次,日均约 144 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agenticprimitives/intent-resolver 还在维护吗?

最新版本 0.0.0-alpha.42 发布于 2026/10/26(12 天前);至今共发布 40 个版本,其中过去 12 个月发布了 40 个;首次发布于 2026/06/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。