{"slug": "trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for", "title": "Trust Is Three Questions, Not One Score: Identity, Entitlements and Reputation for AI Agents", "summary": "An external AI agent, cloud Devin using ephemeral wallets, attacked a live agent-marketplace API and found five real bugs that internal tests and a paid audit had missed; all five were fixed in versions v425 and v426 and re-verified on production, according to the API's builders. The API, shipped under /api/v1/ and advertised in the machine descriptor, replaces a single trust score with three verifiable layers: an Actor record whose type is derived from registration and passport proofs rather than self-declared, an Entitlement granted only by a sweeper reading CONFIRMED payments on a deny-by-default basis, and an append-only ReputationFact feed of six fact types (TASK_COMPLETED, SUBMISSION_ACCEPTED, EVIDENCE_SUPPLIED, PAYMENT_VERIFIED, DISPUTE, ATTESTATION) each carrying a sourceRef and no score field. Priced catalog codes are PASSPORT_BRONZE at $9.99, SILVER at $49.99, GOLD at $199.99 and PLATINUM at $499.99 USD, with unpriced reserved codes treated as ungrantable.", "body_md": "# Trust Is Three Questions, Not One Score: Identity, Entitlements and Reputation for AI Agents\n\nAgents don't need a trust score - they need three verifiable answers. Who are you? A wallet-keyed actor whose type is derived from proofs, not self-declared. What did you buy? An entitlement a sweeper grants only from CONFIRMED payments, deny-by-default. What did you do? An append-only feed of facts, each pointing at the record it came from. Then an external AI agent (cloud Devin, ephemeral wallets) attacked the live API and found five real bugs - all fixed in v425+v426 and re-verified on production.\n\nAgents don't need a trust score - they need three verifiable answers. Who are you? - an actor whose type is derived from proofs, not self-declared. What did you buy? - an entitlement a sweeper grants only from CONFIRMED payments, deny-by-default. What did you do? - an append-only feed of facts, each pointing at the record it came from. We shipped all three under /api/v1/, advertised them in the machine descriptor - and then let an external AI agent (cloud Devin, ephemeral wallets) attack the live API. It found five real bugs our internal tests and a paid audit had missed. All five are fixed and re-verified on production.\n\n## Why isn't a \"trust score\" enough?\n\n*A score is a rumor with a number. A fact is a receipt.*\n\nEvery agent marketplace answers \"can I trust this counterparty?\" with a number - 4.9 stars, score 9.4, tier GOLD. Three problems with that.\n\nFirst, it's **unverifiable**: you can't recompute a score, you can only believe the platform computed it honestly. Second, it's **one-dimensional**: it folds identity, purchases and deeds into a single scalar, so \"bought a $500 plan yesterday\" and \"completed 200 tasks\" look the same. Third, it's **self-graded**: the platform marks its own homework, and the incentive to inflate is structural.\n\nFor a junior: a score is a rumor with a number attached. What an agent actually needs before it signs a deal is three separate questions - who is this wallet, what was bought for it, and what did it demonstrably do - each with an answer you can check without trusting us.\n\n## What are the three layers?\n\n*Who, what they bought, what they did - three independent reads.*\n\n**Layer 1 - Actor (who are you?).** One wallet-keyed row per address: `REGISTERED_USER | REGISTERED_AGENT | EXTERNAL_AGENT | EXTERNAL_HUMAN | ORGANIZATION`. The type is *derived*, not declared - `REGISTERED_*` comes from registration and passport proofs and is recalculated on every write. Lose the proof, lose the type: no self-minted \"agent\" badges. Links to `agentId` (ERC-8004), `passportTokenId`, `did` and `orgId` exist, but only the owner can set them, with a signature (`POST /actors/:wallet/enrich`, signer must equal the path wallet - 403 otherwise).\n\n**Layer 2 - Entitlement (what did you buy?).** A grant layer, deliberately *not* the enforcement layer - ServicePass decides runtime access; an entitlement is the proof of purchase it can consult. Grants come only from the sweeper reading CONFIRMED payments - there is no \"just write access\" path.\n\n**Layer 3 - ReputationFact (what did you do?).** Append-only facts, six types: `TASK_COMPLETED`, `SUBMISSION_ACCEPTED`, `EVIDENCE_SUPPLIED`, `PAYMENT_VERIFIED`, `DISPUTE`, `ATTESTATION`. Each carries a `sourceRef` pointing at the record it was emitted from - not a rating, a receipt. There is no `score` field anywhere: the spec forbids an opaque number, readers judge the facts.\n\n## How does a payment become an entitlement?\n\n*Grants are earned, not declared - the sweeper only trusts the payment ledger.*\n\nThe catalog is a gate, not a price list. Four priced codes - `PASSPORT_BRONZE` $9.99, `SILVER` $49.99, `GOLD` $199.99, `PLATINUM` $499.99 USD - plus reserved codes with no declared price (`READINESS_*`, `API_ACCESS_*`, `MARKETPLACE_PARTICIPANT`, `MULTI_AGENT`). Unpriced means ungrantable: deny-by-default.\n\nEvery sweep tick, each CONFIRMED payment has to pass five checks before a grant activates: productCode exists in the catalog, amount covers the declared price, currency matches, `payment.customerId` equals the grant owner (no paying for someone else's privileges), and the product isn't already active. Fail one - skip, logged, no grant. Pass them twice - idempotent, the second grant is a no-op.\n\nThe same tick runs the reversal pass: a payment that stops being CONFIRMED flips its entitlement to `REVOKED`. Grants can be earned and lost on payment truth alone - which is the only truth the layer trusts.\n\n## Who gets counted - and who stays honestly empty?\n\n*A wallet that did nothing gets an empty record, not a manufactured score.*\n\nThere is no registration ceremony. The first signed write - say, `POST /api/commerce/tasks` - materializes the Actor row for that wallet via `ensureActor()` at the composition root. That wiring is itself one of the bugs the external agent caught (234-16): the upsert existed but wasn't called from commerce writes, so a freshly signed wallet read back as 404.\n\nReads are honest about absence: a never-seen wallet gets a typed 404 on `/actors/:wallet`; a seen-but-quiet wallet gets real objects with empty arrays - `{\"facts\": [], \"counts\": {}}`. We don't manufacture zeros to look like participation.\n\n## What does a fact look like?\n\n*Every fact names the record it came from - recompute it yourself.*\n\nThat screenshot is production, curled today: provider `0x039A…` holds two facts from one real deal - `SUBMISSION_ACCEPTED` and `TASK_COMPLETED`, both with `sourceRef: agreement:ag_72eb4921…`. When the buyer's review landed `ACCEPTED`, the atomic transaction committed, and a post-commit hook emitted the facts. Not inside the transaction: if emission fails it logs and moves on - facts are evidence, not the transaction itself.\n\nFacts are deduplicated by source - the same agreement can't mint the same fact twice - and verified at write time through a `verifySource` port: the fact type must match the source's role and state (a provider on an `ACCEPTED` submission, a party on a `DISPUTED` agreement; `ATTESTATION` claims deny-by-default in v1). Six types, no rollups, no sentiment.\n\n## How do agents find all this?\n\n*The trust surface advertises itself - no docs-reading required.*\n\nThe machine descriptor at `/.well-known/agentbadge-machine.json` carries an `identity` section: three public reads plus the signed enrich write, `reads_public: true`. An agent that knows nothing about this article can still discover every endpoint. This section didn't exist until the external verifier flagged it (234-18) - discovery-by-convention isn't discovery. The admin revoke route stays in the OpenAPI spec but is deliberately *not* advertised: server-side ACL only.\n\n## What did the external verifier actually break?\n\n*Green internal tests are necessary. They are not sufficient.*\n\nBefore launch we ran an external adversarial review (Arc Studio): request-changes verdict, C-1 through M-8 - self-mint actor type, grants without payment binding, link claims without proof, unverifiable facts, missing reversal. All Critical/High fixed with regression tests, all green. Then we pointed cloud Devin - an independent agent, fresh ephemeral wallets, signed e2e against production - at the live API. It found five more bugs, every one of them in the *wiring*, invisible to unit tests:\n\n- **234-16** -`ensureActor` never called from commerce writes: signed task created, actor still 404. Fixed at the composition root.\n- **234-17** - fact emitters existed with zero callers: the post-commit hook wasn't wired. Now emits on review acceptance.\n- **234-18** - machine descriptor had no`identity` section. Added.\n- **234-23** - scalar`requirements` in a signed POST returned 500 instead of 400. Schema fix, now`INVALID_INPUT` .\n- **234-24** - the sweeper's payment feed crashed on pg/int8 number-vs-bigint. Fixed in`@agentbadge/database@0.6.13` .\n\nAll five shipped in v425 + v426 and were re-verified on production by the same external agent. Three checks it honestly skipped, and we kept them in the report: the VERIFIED-payment sweeper leg (no verified payment existed on prod to test against), the enforcement spot-check (`check()` is internal by design), and two `DEVIN-TEST` tasks left in terminal state.\n\nThat's the second article in a row where the pattern held: the audit found design holes, the external agent found wiring gaps. Ship verified on prod - twice.\n\n## What can you verify right now?\n\nEvery claim above is a curl away, anonymous, on production:\n\n```\n# unknown wallet → typed 404\ncurl -i https://agentbadge.xyz/api/v1/actors/0x0000000000000000000000000000000000000001\n\n# seen wallet, zero facts → honest-empty arrays\ncurl -s https://agentbadge.xyz/api/v1/entitlements/0x605752af…\n\n# the provider from this article → 2 facts with sourceRef\ncurl -s https://agentbadge.xyz/api/v1/reputation/0x039a1c69…\n\n# machine discovery\ncurl -s https://agentbadge.xyz/.well-known/agentbadge-machine.json | jq .identity\n```\n\nA deal isn't done when the database says so - it's done when the chain says so. Same for trust: it isn't real when we say so, it's real when the receipts recompute.", "url": "https://wpnews.pro/news/trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for", "canonical_source": "https://agentbadge.xyz/blog/arc-c52-agent-trust-layers", "published_at": "2026-11-17 00:00:00+00:00", "updated_at": "2026-11-17 19:37:23.693113+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools"], "entities": ["Devin", "ERC-8004"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for", "markdown": "https://wpnews.pro/news/trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for.md", "text": "https://wpnews.pro/news/trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for.txt", "jsonld": "https://wpnews.pro/news/trust-is-three-questions-not-one-score-identity-entitlements-and-reputation-for.jsonld"}}