@economyos-xyz/eps-1
v0.1.0
Published
EPS-1 — the EconomyOS Primitive Standard: the economyos-primitive.json manifest schema, a zero-config validator, and the content-address (keccak256) canonicalization used to anchor a primitive in AgentRegistry.
Maintainers
Readme
EPS-1 — the EconomyOS Primitive Standard (v1)
The minimal, ERC-style interface a third-party primitive implements to plug
into the EconomyOS App Store. A
primitive is described by one JSON manifest, economyos-primitive.json,
content-addressed by keccak256 over its canonical encoding. That hash is the
claimHash a creator anchors on-chain with
AgentRegistry.attest(subject = creator, claimHash) — the permissionless,
tamper-evident publication record the indexer reads (zero new contracts).
Contents
economyos-primitive.schema.json— the normative JSON Schema (draft 2020-12).example.economyos-primitive.json— a valid reference manifest.src/— the runtime contract shared by publisher and indexer:validateEps1Manifest(manifest)→{ valid, errors[] }(zero-dep).canonicalize(value)→ deterministic, key-sorted JSON string.eps1ClaimHash(manifest)→0x…32-byte content-address.
Why one shared package
Publish-side (@economyos-xyz/sdk) and discovery-side (agent-api indexer) MUST
compute the identical content-address, or the on-chain anchor and the re-hashed
manifest won't match. Keeping the validator + canonicalization here — one source
of truth — guarantees they do.
Trust
trust.tier and effective trust.riskCaps in a manifest are advisory. The
authoritative tier (unverified default, verified via a curator attestation)
and the effective per-call cap are decided by the registry/indexer, never
self-asserted (§3 rule 5, §6).
