A202

io.github.a202-protocol由 GitHub 账号 a202-protocol 发布v0.1.0更新于 Oct 24, 2026

Verifiable agreements for agent-led commerce: mandates, obligations, evidence, transaction records.

已验证STDIO仅桌面开发者工具商业与电商

概览

AI 生成的概览

A202 为代理主导的商务提供可验证的协议对象:授权、义务、证据和交易记录。

可以做什么
A202 是一套用于独立组织之间可验证协议的规范与一致性测试套件,也涵盖由软件代理执行的交易。它定义了委托商业权限的类型化对象、交易与会话状态机、披露规则,以及可执行的一致性套件,用于判断实现是否通过或失败。仓库还包含 JSON 模式、测试夹具、清单和规范性运行器。
适用场景
当你需要为代理对代理或代理主导的交易建模或验证委托商业权限、协商状态或可验证一致性时使用。它面向必须就共享商业模型达成一致并证明一致性的实现。
运行要求
作为本地进程通过 stdio 运行。一致性运行器需要 Python 3 和 jsonschema>=4.18,可安装在虚拟环境中。未声明认证、环境变量或请求头。
安装前请注意
项目处于 1.0 之前的发布阶段,次要版本递增可能破坏兼容性。它整体为信息性内容,本身不执行交易或转移资金。名称是 Plural Worlds 的商标,允许的使用方式见 TRADEMARK.md。

安装

在 SourceWeft 中

  1. 打开 控制台中的 A202,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

A202: the Verifiable Agreement Protocol for Agent-Led Commerce

Status: Informative in full.

A202 is verifiable commerce for agent-to-agent or agent-led transactions: an open specification of commercial authority, negotiation state, and verifiable conformance for transactions between independent organisations, including transactions conducted on their behalf by software agents.

It defines typed objects for delegated commercial authority, a state machine for the transaction and for each bilateral session inside it, rules for what may be disclosed to whom, and an executable conformance suite that turns each of those into a check an implementation either passes or fails.

The full statement of purpose, scope, and non-goals is in CHARTER.md.

Created and developed by A. A. Musse. See MAINTAINERS.md.

Status

Released, pre-1.0.

  • v0.1.0 is the first tagged release of the set: a tag, a digest for every schema file, the conformance manifest, and release notes, published together. See RELEASES.md and CHANGELOG.md. Before 1.0 a MINOR increment may break compatibility, and any break carries migration notes.
  • The name is A202, spoken "A two-oh-two", and in full A202, the Verifiable Agreement Protocol for Agent-Led Commerce. The long form is a descriptor and not an expansion: the letters do not stand for it. The 202 is HTTP 202 Accepted, which A202-0017 makes the status an accepted submission returns, because acceptance is the primitive the rest of the specification is built on. The A202- reason-code prefix, the A202-NNNN proposal identifiers, and the a202-commercial/0.1 specification version string all follow from the name.
  • A202™ is a trademark of Plural Worlds. Permitted use of the name is stated in TRADEMARK.md.
  • Schema $id values resolve under https://schemas.a202.org. Fixture hosts use reserved .invalid names, because test data must never resolve.
  • Licensed under the Apache License, Version 2.0. One licence covers the whole repository: specification text, schemas, fixtures, manifest, runner, and informative documents. The licence carries an express patent grant from each contributor. See LICENSE and CONTRIBUTING.md.
  • External contributions are accepted on the terms in CONTRIBUTING.md: inbound contributions under the same licence, with a developer certificate of origin sign-off.

Layout

PathContents
CHARTER.mdPurpose, scope, non-goals, design principles
GOVERNANCE.mdHow the project is run, and what the sponsor does and does not control
MAINTAINERS.mdWho maintains this repository
CONTRIBUTING.mdContribution status, and the terms a contribution is accepted under
SECURITY.mdPrivate coordinated disclosure
THREAT-MODEL.mdAdversaries assumed, properties defended, and what is deliberately not defended
CODE_OF_CONDUCT.mdExpected conduct
TRADEMARK.mdThe A202 name, and what use of it is and is not permitted
RELEASES.mdVersioning, what a release consists of, compatibility policy
CHANGELOG.mdWhat changed, and where the release notes required by RELEASES.md accumulate
.github/Review routing, the pull request and issue forms, and the workflow that runs the suite on every change
proposals/The A202 change proposal process
schemas/Canonical commercial model, transaction profile extension model, and the JSON schemas
authority/Commercial mandate: delegated authority, constraints, delegation, approval, revocation
discovery/Counterparty invitation: how an unregistered party enters one named transaction
negotiation/Transaction and session state machines, and auction event semantics
conformance/Fixtures, manifest, normative runner, and the conformance grade definitions

Each specification document carries a status header stating which of its sections are normative and which are informative.

Running the conformance suite

The runner validates every fixture named in the manifest against the schemas, then applies the invariants that JSON Schema cannot express. Schema validity is not conformance, which is the reason the runner exists.

It needs jsonschema>=4.18. If that is not on the system interpreter, a virtual environment is enough:

bash
python3 -m venv .venv && .venv/bin/pip install "jsonschema>=4.18"

Run it from the repository root:

bash
python3 conformance/run-conformance.py --verbose

The expected result is every fixture passing and none failing, with the totals the manifest carries: the manifest is the single source for the count, and the runner prints it on every run. The runner also asserts that each negative fixture is refused for the reason code the manifest declares for it, wherever the normative layer raises codes at all. Run it before and after any schema change.

Every negative fixture is minimal: removing the single offending element must leave a document that validates cleanly. A negative fixture that fails for an incidental reason tests nothing, so verify that when adding one.

The suite does not depend on anyone remembering to run it. It runs, together with the reference implementation tests and the MCP server tests, on every pull request and on every push to the default branch, under .github/workflows/checks.yml. GOVERNANCE.md section 3.4 requires the suite to pass for any change to schemas, fixtures, the manifest, or the runner, and that workflow is what turns the requirement into a gate.

Where to start reading

  1. CHARTER.md for what this is and what it deliberately is not.
  2. schemas/canonical-commercial-model-v0.1.md for the object model, the envelope, and the invariants schema validation cannot express.
  3. negotiation/pilot-transaction-state-machine-v0.1.md for what moves state and what does not.
  4. conformance/manifest-v0.1.json for the fixtures that decide whether an implementation agrees with either of the above.

来源:README.md,提交 8473b04

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分