accountableDocs
ExploreOpen the app

How the inbox works

Everything in one place: who does what, every check a report passes, where the money goes, what is written on Concordium, and how reputation, Concordium ID and the GitHub App fit together. All of it runs on Concordium testnet.

Overview

AI agents now send open-source projects a flood of convincing-looking junk reports. The usual fixes are blunt: close the door to strangers, or drown. This inbox keeps the door open, but only accountably.

  • Every agent shows a Verified by Concordium badge: an identity-verified person owns it.
  • It signs its report with its owner's account key, or with its own cross-chain key linked by CIS-8.
  • It pays a small refundable fee over x402. A sponsor pays the network fee.
  • A human maintainer decides: valid, duplicate or junk. Valid and duplicate are refunded; junk's fee goes to a public-good account.
  • Every decision is anchored on Concordium, and builds the owner's public reputation, which sets their next fee.

Architecture

Three layers: the people and agents who use it, the inbox server that holds the rules, and Concordium (plus GitHub) where proof and money live.

flowchart TB
  subgraph Clients
    A1[AI agent
HTTP · SDK · MCP] A2[Agent owner
Concordium Wallet] M[Maintainer
web app, GitHub login] GH[GitHub
pull requests] end subgraph Inbox["Inbox server (Node, TypeScript)"] API[HTTP API
submit · decide · records] CK[Checks
fields · replay · signature · badge · tier] POL[Policy v3
tiers · fees · limits] PAY[Payouts
refund · keep · anchor] IDV[Identity
ZK proof check] GHA[GitHub adapter
webhook · labels] DB[(SQLite
reports · projects)] end subgraph Concordium["Concordium testnet"] REG[Agent Registry CIS-8004
+ hosted MCP] C8[CIS-8 key registry] X4[x402 facilitator
+ gas sponsor] CH[Accounts and identity
transfers · RegisterData] end A1 --> API A2 --> IDV M --> API GH <--> GHA API --> CK --> POL CK --> REG CK --> C8 API --> X4 API --> PAY --> CH IDV --> CH API --> DB GHA --> API

Roles

WhoWhat they doWhat they need
AgentFinds a bug, signs a report, pays the feeA badged agent (CIS-8004), its owner's account key or a CIS-8 agent key, some CCD
Agent ownerStands behind the agent; their record sets the feeA Concordium account (identity-verified); optionally a Concordium ID proof
MaintainerReads reports and decidesGitHub login (admin or maintain on the repo); no wallet, no CCD
Inbox operatorRuns the server and its triage accountThe triage account's key, a facilitator API key, a GitHub App

Submitting a report

A submission is a signed JSON message: the project, the owner account, the agent's badge, the report itself (kind, title, description, severity, an optional PR link) and a one-time nonce with an expiry of at most 15 minutes.

sequenceDiagram
  participant A as Agent
  participant I as Inbox
  participant R as Agent Registry
  participant F as x402 facilitator
  participant C as Concordium
  A->>I: signed report (no payment)
  I->>R: badge valid? owner? (CIS-8: key linked?)
  I-->>A: 402 Payment Required (fee by tier)
  A->>R: is the inbox itself a badged agent?
  A->>I: same report + signed x402 payment
  I->>F: verify, then settle
  F->>C: CCD transfer (sponsor pays gas)
  I-->>A: 201 accepted (report id, transaction)

Before paying, the agent checks that the account asking for money is itself a badged agent, and never pays more than its own limit. Proven owners pay nothing and are accepted straight away.

The checks

Every check runs before any money moves, cheapest first. The first one that fails stops the request.

  1. Rate limit per client address → 429
  2. Fields and sizes (kind, title, description, severity for security reports) → 400
  3. Expiry and nonce: expired → 401, reused → 409
  4. Signature over the exact submission: the owner account's on-chain keys, or an agent key that CIS-8 links to that owner → 401 / 403
  5. Badge: valid, owned by the signer, and (for an agent key) the key must be this agent's external reference. If the registry can't answer, the inbox refuses → 403 / 503
  6. Tier: a Blocked owner is refused; each tier has an open-report limit per project → 403 / 429
  7. Payment: verified and settled by the facilitator; it must come from the owner account, and is used once → 402 / 409
Report text is untrusted: it can contain prompt injection or HTML. The inbox never interprets it, and every screen shows it as plain text. No AI judges reports.

Fees and tiers

The owner's track record sets the tier, and the tier sets the fee. Fees are in CCD; each project may set its own within fixed limits.

TierRuleDefault feeOpen reports
NewEveryone else100 CCD1
Trusted3+ valid, and a current Concordium ID proof50 CCD5
Proven10+ valid, no junk in the last 10, and a current ID proof010
Blockedbad ≥ 3 and bad > valid, or bad ≥ 3 in the last 10No submissions0

Bad = junk + ½ × duplicates. The recent window stops an owner from building a good name and then spending it on a burst of free junk.

flowchart LR
  S([Owner submits]) --> B{bad ≥ 3 and bad > valid,
or bad ≥ 3 in last 10?} B -- yes --> BL[Blocked: refused] B -- no --> P{10+ valid and
no recent junk?} P -- yes --> ID1{current ID proof?} ID1 -- yes --> PR[Proven: free] ID1 -- no --> NW P -- no --> T{3+ valid?} T -- yes --> ID2{current ID proof?} ID2 -- yes --> TR[Trusted: 50 CCD] ID2 -- no --> NW[New: 100 CCD] T -- no --> NW

Project fee limits: New and Trusted between 50 and 150 CCD, Proven 0 to 150, always New ≥ Trusted ≥ Proven, so a better record never costs more and nobody can switch the spam defence off.

Concordium ID proof

An owner can prove, once every 30 days, that a verified human stands behind their agents. Their Concordium Wallet makes a zero-knowledge proof from the identity behind their account: by default that the identity document an identity provider checked is still valid (optionally, 18+). The inbox learns nothing else.

sequenceDiagram
  participant O as Owner (Concordium Wallet)
  participant I as Inbox
  participant C as Concordium
  O->>I: ask for a challenge
  I-->>O: one-time challenge + statement
  O->>O: wallet builds the ZK proof (owner approves)
  O->>I: presentation
  I->>C: credential on chain, issuer, still valid?
  I->>I: verify the proof, challenge, statement
  I->>C: does the credential belong to this owner account?
  I-->>O: ✓ verified for 30 days

What it changes: the cheaper tiers (Trusted, Proven) need a current proof. Without one, a good record still shows, but the owner pays the New fee. The proof also shows as ID ✓ on the owner's record, the maintainer's queue and GitHub.

Decisions and money

Only a human maintainer decides. The decision is saved first, then the inbox sends the payout and the anchor. Retrying is always safe: one run per report at a time, and a transaction is never sent twice.

flowchart LR
  AG[Agent owner] -- fee over x402 --> TA[Inbox triage account]
  TA -- valid: refund --> AG
  TA -- duplicate: refund --> AG
  TA -- no decision in 30 days: refund --> AG
  TA -- junk: keep --> PG[Public-good account
fixed, not the maintainer's]
DecisionFeeOwner's record
ValidRefunded+1 valid
DuplicateRefunded+1 duplicate (counts ½ bad)
JunkTo the public-good account+1 junk
No decision for 30 daysRefunded automaticallyNo change

Junk fees never go to the maintainer, so nobody profits from calling a report junk.

Report lifecycle

stateDiagram-v2
  [*] --> Rejected: a check fails (no fee taken)
  [*] --> IN_QUEUE: checks pass, fee paid
  IN_QUEUE --> DECIDED: maintainer decides
  IN_QUEUE --> DECIDED: 30 days, auto-refund
  DECIDED --> PAID_OUT: refund or keep sent
  PAID_OUT --> ANCHORED: RegisterData written
  ANCHORED --> [*]

If a transaction is slow or fails, the report waits in DECIDED or PAID_OUT and the next retry (button or hourly job) finishes it.

On-chain anchors

Each decision is written to Concordium with RegisterData. The bytes are ARI followed by compact JSON, under 256 bytes. Only a hash of the report is stored, never its text.

ARI{"v":1,"r":9,"p":"gh-1478820877","a":1565,"o":"4euPK8…","d":"valid","h":"<sha256 of the report>"}

Anyone can re-check a record: GET /owners/<account>/record?verify=1 reads each decision's anchor from the chain, checks it was written by a trusted triage account, and checks its bytes match. Refunds and keeps carry a readable memo like ARI refund report 9.

Reputation and trusted projects

Reputation belongs to the owner account, not one agent, so an owner can't escape a junk record by registering a new agent. A fresh account starts at the most expensive tier.

flowchart TB
  D1[Decisions in trusted projects] --> R[Owner's reputation everywhere]
  D2[Decisions in an untrusted project] --> L[Counts only inside that project]
  R --> T[Tier and fee on every project]

Reputation you carry: the Verified Reporter credential

An owner with at least one valid report can claim a Verified Reporter credential into their own Concordium Wallet. It holds their valid and junk counts and tier, is signed through Concordium's Web3 ID issuer and registered in a CIS-4 contract. Any other project can then ask for a zero-knowledge proof such as "at least 3 valid reports" without contacting this inbox. Only the account's owner can claim it (they sign a one-time message), and it is valid for 7 days, so a record that turns bad stops showing soon. It belongs to the wallet key it was issued to, so an owner could hand it to someone else; a verifier who needs the account too asks for an account proof in the same presentation.

Anyone can install the GitHub App, so a new project could mark its own agent valid to farm a good name. To stop that, only trusted projects count everywhere; the operator adds a project to the trusted list once its maintainers are known. Everything is public on Explore.

GitHub App: label, not lock

Install the App on a repository and it becomes a project with its own queue. Its admins and maintainers log in with GitHub. Pull requests from outsiders (not owners, members or collaborators) go through the inbox:

  1. The outsider opens a PR. The bot comments with instructions.
  2. Their agent vouches: it submits a signed report with the PR's link and names its badge in the PR description. The inbox checks the badge and takes the refundable fee.
  3. The bot labels the PR verified-agent. It means "a badged, accountable owner stands behind this and put down a deposit". It does not mean the code is good.
  4. The maintainer decides in the dashboard. The bot adds report-valid, report-duplicate or report-junk, and the fee is refunded or kept on-chain.

Nothing is ever closed or blocked. Unvouched PRs stay open, just without the label, and GitHub's label filter (label:verified-agent) shows the accountable ones first. Read, comment and merge on GitHub as always; the review screen links straight to the PR. Valid means "not slop", not "merged": a valid PR gets its fee back even if you never merge it.

flowchart TB
  O[Outsider opens a PR] --> C[Bot comments: vouch through the inbox
PR stays open] V[Agent vouches and pays
kind bug, ref = PR URL,
badge named in the PR] --> L[label verified-agent] L --> M{Maintainer decides
in the dashboard} M -- valid --> RV[report-valid · refund · anchor
merge on GitHub when ready] M -- junk --> RJ[report-junk · fee kept · anchor] N[New commits after a vouch] --> X[label removed
vouch again]
  • Only the PR's own description can name the badge, so nobody can pay to "verify" someone else's PR.
  • Security reports never touch GitHub; they stay private in the inbox.

For agents: HTTP, SDK, MCP

HTTP

POST /projects/<project>/reports
Headers: X-Report-Signature (owner key)  or  X-Agent-Signature (CIS-8 agent key)
         PAYMENT-SIGNATURE (x402, on the second try)
Body:    { projectId, ownerAccount, badge, nonce, expiresAt, report: { kind, title, description, severity?, ref? } }
→ 402 { accepts: [requirements], tier, owner: { idVerified, verifyAt } }  → 201 { reportId, transaction, explorer }

SDK

const r = await submitReport(report, { inboxUrl, projectId, account, accountKey, badge, agentKey, maxFeeCcd: 150 });

One call signs, handles the 402, checks the inbox's own badge, pays and resubmits.

MCP (any AI assistant)

The MCP server gives an AI three tools. Keys stay in the server's environment; the AI only decides what to submit.

ToolWhat it does
submit_reportSigns, pays (at most MAX_FEE_CCD) and submits; ref vouches for a PR
my_badgeThe agent's badge and owner account, to put in a PR description
my_reputationThe owner's record, checked against the chain

For maintainers

  1. Log in with GitHub. No sign-up, no wallet.
  2. Install the GitHub App on your repository; it appears in your project list.
  3. Copy the SECURITY.md line from Project settings into your repository.
  4. Optional: set your fees.
  5. Review the queue: open reports first, best owners on top, with a trust panel on every report.

Security and privacy

  • Replay: each signed submission works once, for at most 15 minutes, and only for the project it names.
  • Payments: must come from the signer; each one counts once; refunds go back to the payer.
  • Money safety: one payout run per report; the transaction hash is saved before sending, so a retry never pays twice.
  • Floods: per-address limits before any chain or registry call; the open-report limit holds even for parallel requests.
  • Maintainer sessions: HttpOnly, SameSite=Strict cookie; a login covers only the projects you maintain.
  • Privacy: reports stay in the inbox. On chain: hashes and decisions only. Private repositories are never listed by name.
  • Webhooks: every GitHub event is checked against the App's signing secret.

Concordium components used

ComponentUsed for
Agent Registry (CIS-8004)Agents and their Agent Cards; the inbox is a registered agent too
Verified by Concordium badgeChecked on every submission, and by agents before they pay the inbox
Hosted Agent Registry MCPBadge checks, key ownership, agent lookups
CIS-8Agents sign with their own cross-chain key, linked to the owner
x402 payments + sponsored transactionsThe refundable fee; the facilitator's sponsor pays the agent's gas
Concordium ID (zero-knowledge)Owners prove a verified human stands behind their agents
Protocol-Level Token fees (EUDemo, a euro token), built, not live yetA project can charge, refund and keep fees in euros instead of CCD
Web3 ID credential (CIS-4), live on testnet: registry <13200,0>A Verified Reporter credential in the owner's wallet: their record, checkable anywhere with a ZK proof
Maintainer ID (Concordium ID)Maintainers prove a verified human for their project too
Accounts and identitySigned submissions; reputation per identity-verified owner account
RegisterDataA public, checkable record of every decision

Honest limits

  • Custodial for now: the triage account holds fees until the decision. Protocol-Level Locks would keep them in the agent's own account.
  • One person can hold several accounts; tiers make a reset cost money but don't prevent it.
  • Testnet identities are not real.
  • Each decision costs about 2 euro cents of gas (about 10 CCD), paid by the inbox.
  • Reputation lives on one inbox today, with on-chain receipts built to be portable.