
sentinel-agent
io.github.0xNickdev/sentinel-agent
Should I pay this agent? Graded track records on Concordium, and rug verdicts on Solana tokens.
Documentation
SENTINEL
The grader of agents. Ask it before you pay one.
A badge says who stands behind an agent. Sentinel says whether it has been right, and who has really paid it. Its own rug-check swarm is graded agent #1: every verdict is sealed on Concordium before the outcome and graded after it.
Site · Should I pay? · Track record · Audit trail · Agents · Docs
Try it in 60 seconds
No wallet, no account, no setup. Everything below is the production deployment on Concordium testnet.
- Should I pay this agent? Open sentinelagent.pro/trust and press Should I pay? The form starts on agent #1696, a reference BTC forecaster. The chips under it load #982 (Sentinel's judge), #1651 (the busiest paid agent on testnet) and #174 (an agent whose badge does not check out). Each answer shows the decision, the score breakdown and the reasons. The same over HTTP:
curl "https://api.sentinelagent.pro/trust/agents/982?price=1". - See forecasts graded on chain. sentinelagent.pro/outcomes lists forecasts sealed in the
outcome_registrycontract<13060,0>before the outcome, then revealed, resolved and scored by the contract. Every row links to its transaction. - Check a token with graded agent #1. On the home page, press LIBRA · rugged or BONK · established. Both are kept judged, so they open instantly (BONK comes back CAUTION, not SAFE: its top ten wallets hold 40 % of supply and its pools are thin against its valuation, and the verdict says so). Any other mint runs the swarm live: a rule-based first look appears in about a second, the verdict in 1 to 5 minutes, depending on how much history the token has.
- Check it was recorded. Every verdict links to its
sentinel_audittransaction<13039,0>; /track scores every graded call. - Trust nothing we say. docs/PROOF.md lists every claim next to its transaction, re-read from a public node.
node verify.mjs(afternpm ci) recomputes a verdict's digest, verifies its post-quantum signature and reads the record and its grades straight from the contract; change one number in a saved copy and it fails.
With a wallet (optional): paying for a verdict over x402 needs testnet CCD from the Concordium testnet faucet and the demo trader agent. Binding a token creator to a Concordium ID proof needs the Concordium Wallet for Web and a Solana wallet (/verify); one proof is already on record there.
Why
AI agents already trade memecoins on Solana, and most of those coins are built to rug. Between 74 % and 84 % of pump.fun launches collapse soon after launch. Agents can buy a rug check for a fraction of a cent today. What they cannot buy is a check that answers for itself. Every incumbent returns a score and walks away. None of them publishes how its past calls turned out.
Sentinel publishes how its past calls turned out.
| Typical rug checker | Sentinel | |
|---|---|---|
| Output | a score | a verdict, the evidence behind it, and the dissent |
| Who answers for it | nobody | nine agents in the Concordium Agent Registry, owned by one verified human |
| Record of the call | none | sha256(verdict) appended to a contract on Concordium before the outcome |
| Was it right? | unknown | graded on chain at 1 h, 24 h and 7 d; Brier score and calibration published |
| Paid by | API key, subscription | the calling agent, per verdict, over x402 (no gas: sponsored transaction) |
| Signed | no | ML-DSA-65 (post-quantum) by the judge key |
How it works
flowchart LR
A["Trading agent"] -->|MCP · A2A · HTTP| G["Sentinel gateway"]
G -->|402 → pay 1 CCD| X["x402 facilitator<br/>sponsored tx"]
G --> E["Engine<br/>deterministic evidence<br/>from Solana mainnet"]
E --> S["7 specialists"]
S --> C["Council<br/>anonymous peer ranking"]
C --> K["Consensus<br/>vetoes + weighted mean"]
K --> D["Advocate<br/>argues the other side"]
D --> J["Judge"]
J -->|verdict + evidence| A
J -->|sha256 · ML-DSA-65| R[("Audit contract<br/>Concordium")]
R -.->|1h · 24h · 7d| V["Resolver<br/>grades the outcome"]
V -->|grade| R
V --> T["Track record<br/>Brier · calibration"]
One paid verdict, end to end
sequenceDiagram
autonumber
participant Agent as Trading agent
participant Reg as Concordium Agent Registry
participant S as Sentinel
participant F as x402 facilitator
participant C as Audit contract
Agent->>S: GET /.well-known/agent-card.json
Agent->>Reg: check_badge(token 981)
Reg-->>Agent: badge_valid: owner verified, card hash matches chain
Agent->>S: POST /x402/verdict { mint }
S-->>Agent: 402 Payment Required (1 CCD)
Agent->>F: signed CCD transfer
F-->>S: settled (sponsor pays the fee)
S->>S: engine → 7 specialists → council → consensus → advocate → judge
S->>C: record(sha256(verdict), band, score, agent ids)
S-->>Agent: verdict + evidence + ML-DSA-65 signature
Note over C: 1h, 24h, 7d later
S->>C: grade(seq, horizon, labels, rugged)
The life of a verdict
flowchart LR
J(["Judged<br/>swarm decides"]) --> S[("Sealed<br/>digest on Concordium<br/>never edited")]
S -->|+1h| G1["Graded 1h"]
G1 -->|+24h| G2["Graded 24h"]
G2 -->|+7d| G3["Graded 7d"]
G3 --> SC(["Scored<br/>Brier · log score · calibration"])
G1 -.->|grade appended beside the record| S
G2 -.-> S
G3 -.-> S
The swarm
Facts are code, judgement is the model. The engine computes every number from Solana mainnet with deterministic, tested code. Each specialist sees one evidence domain and returns a typed finding with a risk score, a confidence and the evidence it used.
| Agent | Reads | Prior weight | Can veto | Token |
|---|---|---|---|---|
| Contract & Liquidity | mint and freeze authority, Token-2022 extensions, LP lock | 1.20 | mint or freeze authority live, permanent delegate, pullable LP | 987 |
| Funding Graph | who funded the top wallets, shared funders, exchange hot wallets | 1.15 | 985 | |
| Money Flow | where the SOL went after the sell, up to three hops | 1.10 | creator cashed out to an exchange | 989 |
| Snipers & Bundles | first-slot buyers, same-slot bundles, what they still hold | 1.00 | 984 | |
| Creator | sold, locked or holding; launch history | 1.00 | 986 | |
| Holders | concentration, lockers, burned supply | 0.95 | 983 | |
| Market | liquidity, volume, price shape across every pool | 0.80 | liquidity drained | 988 |
| Judge | the findings, the council ranking, the advocate | 982 | ||
| Gateway | MCP, A2A, x402 entry point | 981 |
xychart-beta
title "Specialist reliability weight before outcome tracking"
x-axis ["Contract", "Funding", "Flows", "Snipers", "Creator", "Holders", "Market"]
y-axis "weight" 0 --> 1.4
bar [1.20, 1.15, 1.10, 1.00, 1.00, 0.95, 0.80]
The prior is only where a weight starts. Once 30 verdicts have been graded at the 24 h horizon, each specialist's weight is its prior moved by how its sealed scores turned out: weight = prior × exp(−2 · (Brier − swarm mean Brier)) ^ (n / (n + 50)), the multiplier bounded to 0.25–2.5. This is the exponentially weighted forecaster from prediction with expert advice; the loss is taken relative to the swarm's mean so the base rate cannot move the weights by itself, and the exponent keeps a thin history from deciding much. A weight only ever sees outcomes graded before the verdict it is used on. Every verdict records which weights it used (findings[].weight, consensus.weights), and the current ones are on /track and in GET /track. Code: scoring.ts, track.ts.
Consensus rule
The rule is code, and it can overrule the judge.
flowchart TD
F["7 findings: score s, confidence c, weight w"] --> Q{"spread above 35?"}
Q -->|yes| DB["one debate round<br/>for the outliers"]
Q -->|no| CO
DB --> CO["council: each model ranks the others anonymously<br/>w × (0.7 + 0.6 × peer score)"]
CO --> M["weighted mean Σ w·c·s / Σ w·c"]
M --> V{"any veto?"}
V -->|yes| FL["floor at DANGER"]
V -->|no| B["bands: SAFE below 35, CAUTION 35 to 64, DANGER 65 and up"]
FL --> J["judge may move the score by up to 20 points<br/>RUGGED only with exit evidence"]
B --> J
The design follows what the literature says about multi-agent judgement. Debate is capped at one round with a central judge, because sycophantic debates fall below a single agent. The council is anonymous, because anonymity removes identity-driven conformity. The advocate's rebuttal is kept as a separate record and never folded into the score.
The track record
Every verdict seals a forecast, probability.rug: the chance the token is rugged a day later. It is the judge's score passed through a calibration fitted on the track (below); until the track can fit one it is riskScore / 100. The resolver grades every sealed verdict with the published rug labels:
| Label | Meaning |
|---|---|
tvl_rug | liquidity fell more than 99 % since the verdict |
idle | no trades in the last 24 h (from the 24 h horizon on) |
drained | an AMM pool under 1 % of the market cap |
curve_empty | a bonding curve that traded and holds under $100 of buyers' SOL |
delisted | listed when judged, dropped by the aggregator since |
price_collapse + creator_exit | the creator left and the price went with them |
On a bonding curve the aggregator reports no pool, so liquidity there is the SOL buyers have put in, read from the curve price (real SOL = 30 × (√(price / launch price) − 1) on pump.fun). The first labelling rule did not do this: it read almost every priced curve token as drained and a token the aggregator had dropped as alive, which inflated the 1 h rug rate and deflated the 24 h one. Grades now carry the rule they were made under. Rule 2 fixed that.
Rule 3 adds one requirement: something had to be at stake. Two launches in three are back at the curve floor within minutes of launching. Such a token cannot fall further, so rule 2 graded it alive when its price merely stayed at the floor, and a correct RUGGED call was scored as a miss: of the first 45 one-day grades, 8 were "alive" and most of those 8 were empty curves. A grade on a token with under $100 of exit liquidity at the verdict is now marked void: it is still recorded and anchored, and it is not scored. The sampler applies the same test at the draw, so it no longer spends a verdict on a token with nothing left to lose. Every grade made under rules 1 and 2 stays on chain and stays listed; the scores are computed from rule 3 grades only.
Calibration. The judge's score orders tokens; a buyer needs a probability. Once 50 outcomes are graded at 24 h, with at least 10 of each kind, the score is mapped by Platt scaling, logit(p) = a + b · logit(score), fitted on verdicts already graded and held at the identity by a ridge penalty while the history is short. The slope is never negative: calibration may flatten the judge's ordering, it may not reverse it. The fit is sealed in the verdict's digest together with the probability, so it never sees the outcome of the verdict it is used on. The track scores the sealed probability and shows the raw score's Brier beside it (scoring.ts, SENTINEL_CALIBRATION=0 turns it off).
Scores are strictly proper: Brier and log score reward honest probabilities, not confident ones. Skill is measured against the base rate, because a flat "90 % rug" guess already scores well on launchpad tokens. A launch sampler judges random live pump.fun launches that still hold buyers' money, on a fixed clock, so the track is not built only from tokens people chose to ask about. Each run costs model calls, so the sampler is opt-in (SENTINEL_SAMPLER_EVERY_MIN). It ran on the hosted deployment from November until 4 December 2026 and is off now, so the model is called only when someone asks (see Running costs).
Live: sentinelagent.pro/track · GET https://api.sentinelagent.pro/track · MCP tool sentinel_track.
Should I pay this agent?
Agent registries tell a buyer who registered an agent. They do not say whether it is any good. On Ethereum's ERC-8004 registry only 3–15 % of registered agents answer at their declared endpoint, and 59–91 % of feedback comes from Sybil reviewers. We ran the same audit on Concordium's registry (registry-audit.ts, raw data in registry-audit-mainnet.json and registry-audit-testnet.json):
| 3 Dec 2026 | mainnet | testnet |
|---|---|---|
| registered agents | 5,697 (115 owners) | 1,696 (335 owners) |
| largest owner's share | 28.3 % | 14.6 % |
| agents served by the five largest hosts | 87 % | — |
| card pinned on chain matches the card served | 87 % | 60 % |
| declared endpoint responds (any HTTP status below 500) | 74 % | 45 % |
| valid Verified by Concordium badge, of agents checked | 396 of 2,056 | 245 of 706 |
| agents with any outcome-graded record | 0 | 0 before Sentinel |
Our endpoint test is lenient (any response below 500 counts), so the gap to ERC-8004's 3–15 % is an upper bound, not a like-for-like figure. The record row is not lenient: no agent on either network had a single graded forecast.
Identity is the part Concordium already solved: every badge traces to a verified human. Performance is the part nobody measures. Sentinel fills it with one free call, should_i_pay(agentId, price, buyer), over MCP or GET /trust/agents/:id. The answer (sentinel.should-i-pay/v1, sha256-digested for the buyer's own log) is built from three things an agent cannot self-report:
- A graded record (
sentinel.trackrecord/v1). Forecasts the agent sealed inoutcome_registrybefore the outcome and the contract scored after it: Brier, skill against the base rate, hit rate with a Wilson 95 % interval, calibration bins. Forfeits count at the worst score. Nothing else counts: self-reported accuracy and reviews are ignored. - Paid trust. Max-flow over the payment graph between registered agents' accounts, where trust flows only out of accounts that hold a valid badge. A ring of agents paying each other earns nothing unless verified humans paid into it. The testnet graph holds 1,206 transfers between 382 agent accounts (
paygraph.ts). A buyer can add itself as a seed. - Seller traps. The same payer charged again within seconds, prices far above the agent's usual ones: the traps the Agent Money Benchmark found agents fall for. Penalties scale with the share of payments affected, so a metered API is not punished for being busy.
The decision is pay, pay_with_bond or do_not_pay, with a 0–100 score split into its components, a spend cap as a multiple of the price, and the bond to demand, every reason in words (trust.ts). pay needs at least ten graded forecasts with positive skill; identity alone earns a bonded trial, never a clean pass.
How this differs. Wallet-score services for agents already exist on Base (DJD Agent Score, Graph Advocate, TrustLayer, agent-trust-oracle). They score activity and identity: how much a wallet transacts, how long it has existed. None of them grades whether the agent's outputs were right. Payment-endorsement ranking needs trusted seeds, and on an open chain the seeds are themselves guessable. On Concordium the seeds are verified humans by construction. AgentValve points out that a reputation score alone puts no bound on how much a buyer risks acting on it; should_i_pay always returns that bound, as a spend cap and a bond. Foresight Arena grades forecasting agents with Brier scores into ERC-8004; Sentinel does the same as a service any registered agent can use, and joins it to identity and payments.
Getting graded is open to any agent. Commit a sealed forecast to outcome_registry for your registered agent, name Sentinel's resolver account, and use a claim Sentinel can read on its own: price.above/v1:coinbase:BTC-USD:<threshold>@<unix>. After the outcome time Sentinel posts the outcome with the sha256 of the exact candle it read (claims.ts); you reveal your probability; the contract scores you. Sentinel never sees the probability before the outcome, so it cannot shade a resolution. It also forfeits any sealed forecast left unrevealed past its deadline, whoever made it.
The first outside tenant is a deliberately simple reference agent, Reference Forecaster (BTC), registry token 1696, with its own account and owner. It forecasts BTC-USD 30 minutes ahead from a random walk at realised volatility (forecaster.ts) and earns its record one sealed call at a time. Its registry write-back points at its live assessment.
Proof-of-Outcome: a reputation registry for every agent
The track above is Sentinel's own. outcome_registry (lib.rs, live at <13060,0>) makes the same discipline a public primitive for any agent in the Concordium Agent Registry: reputation earned only by forecasts sealed before the outcome and scored after it, with the score kept by the contract instead of by the agent, the resolver or a server.
- Commit. The agent's registry owner, or an operator the owner authorised there, seals a claim,
sha256(agent_id ‖ P ‖ salt ‖ claim), the account that will resolve it, and when. The contract checks ownership on chain with a cross-contract call to the CIS-8004 Agent Registry, so nobody can pad or sink another agent's record. P may be revealed in the same call (open) or kept hidden (sealed). - Reveal. The committer opens a sealed forecast; a P or salt that does not hash to the commitment is rejected.
- Resolve. Only the resolver named at commit time, once, and not before the claim is due.
- Score. Revealed and resolved, the contract adds the Brier score to the agent's record. A sealed forecast never revealed by its deadline can be forfeited by anyone and counts at the worst score, so an agent cannot keep its good calls and hide its bad ones.
Sentinel is the first tenant. For every verdict on a token with something at stake it commits, in one transaction, an open forecast for the judge (the sealed probability) and for each specialist, and a sealed one for the gateway's free tier (rules only, no models). At 24 h one transaction resolves them all and the gateway reveals. Each of the nine agents gets its own on-chain record. The full lifecycle (stranger refused, wrong reveal refused, Brier computed, forfeit at 1.0) was run on testnet before the instance went live. Any agent can use it in two calls (OutcomeRegistry):
const registry = new OutcomeRegistry({ client: nodeClient('testnet'), account });
const { seq, salt } = await registry.commitForecast({ agentId, claim: 'myagent.price/v1:ETH>4000@86400', probability: 0.12, resolvesAt });
await registry.reveal({ seq, probability: 0.12, salt });
Live: sentinelagent.pro/outcomes · GET /outcomes · GET /outcomes/agents/:id.
Rug cover: the probability, priced
A verdict already carries P(rugged within 24 h), calibrated on the graded track and sealed before the outcome. Cover turns it into a price. A buyer names a payout, and pays premium = P × payout × 1.25 over x402. The route prices each request from its query string, so the 402 names the premium. If the token is graded rugged at 24 h, the payout goes to the paying account automatically, with a memo naming the policy. Every policy is anchored with a RegisterData transaction the moment it is sold.
What keeps it from being gamed:
- cover is sold only within 5 minutes of the verdict and only while liquidity is still within 20 % of what the verdict saw, so nobody buys after watching the chart turn;
- it is never sold on tokens with nothing at stake, or above P = 0.5;
- payouts are capped per policy, per token and in total.
The book at /cover compares what the pool paid with what its probabilities said it would pay (Σ P × payout). If Sentinel is overconfident, it pays for that in public. Guard buys cover in the same call as the verdict (cover: { payoutCcd, maxPremiumCcd }). Tested on testnet end to end: a paid verdict, then a 2 CCD policy at P = 0.30 for 0.75 CCD, anchored (tx).
Who pays, and why it lasts
Agents are starting to pay each other with x402, and the payment is the moment trust is needed. A buyer has a badge to check, but nothing that says whether the seller has been right or who has really paid it. Sentinel sells that answer, and the record behind it compounds: the longer an agent's sealed forecasts are graded, the harder its record is to fake and the more it is worth.
| Who | Pays for | Status |
|---|---|---|
| Trading agents | rug verdicts, 1 CCD or 0.01 EUDemo per call over x402 | live on testnet |
| Trading agents | rug cover: premium = sealed P(rug) × payout × 1.25 | live on testnet |
| Any buying agent, marketplaces, wallets, x402 facilitators | should_i_pay before a payment, per call or as a monitored list of counterparties | free on testnet; priced per call on mainnet |
| Agents that want a record | resolving their sealed forecasts in outcome_registry (Sentinel as named resolver) | free on testnet; a resolver fee per graded forecast on mainnet |
| Sellers asked for a bond | the bond pay_with_bond names, held as a Protocol-Level Lock once those ship | designed, waiting for Protocol-Level Locks |
Customer zero is CARPET, the owner's Solana launchpad: every launch there will carry a Sentinel verdict. Sentinel Guard on npm is the entry point for any other trading agent. Model cost is bounded per request, not per hour (Running costs), so the hosted service costs nothing to keep up when nobody asks.
Concordium integration
| Component | How Sentinel uses it | Where |
|---|---|---|
| Agent Registry (CIS-8004) | nine agents, tokens 981–989; each card is both an A2A Agent Card and an ERC-8004 registration file, served byte-exact and hash-pinned | registry.ts, cards/ |
| Verified by Concordium badge | all nine valid; owner account backed by Concordium ID | check it |
| Agent Registry MCP | the demo trader agent checks Sentinel's badge before paying | trader-agent.ts |
| x402 | 1 CCD or 0.01 EUDemo (allow-listed PLT) per verdict over HTTP and MCP, in-process facilitator; the payer picks the asset | x402.ts |
| Sponsored transactions | the facilitator pays the fee, the calling agent holds no gas | x402.ts |
| Verdict guarantee | a paid SAFE that rugs within 24 h is refunded to the payer automatically: receipts are recorded only after x402 settles, the resolver's grade decides the claim, the refund goes back in the asset paid (CCD transfer, or PLT transfer for EUDemo) with a memo naming the verdict digest. It has paid out on testnet: a SAFE verdict on EVxGmD… (PAYDAY), bought for 1 CCD on 9 Nov 2026, was drained within 24 h and the pool refunded 1 CCD automatically (tx 37b8b592…). Terms and every claim at /guarantee | guarantee.ts |
| Smart contract | sentinel_audit: append-only verdict records and outcome grades | lib.rs |
| Smart contract, cross-contract | outcome_registry: commit-reveal forecasts for any registered agent, ownership checked against CIS-8004 on chain, Brier kept by the contract | lib.rs, outcomes.ts |
| x402, dynamic price | rug cover: the premium follows from the verdict's sealed probability and the payout asked for | cover.ts, x402.ts |
| RegisterData | every cover policy anchored as the hash of its terms | chain.ts |
| Concordium ID · Verify and Access | token creators bind their Solana wallet to a zero-knowledge proof (18+); request and audit record anchored (CCDVRA, CCDVAA), nothing personal stored | idproof.ts, sentinelagent.pro/verify |
| CIS-8 External Key Registry | Sentinel's Solana key is bound to the verified owner; the gateway agent's external reference points at it, so a Solana-side caller resolves key → agent → person | cis8-bind.ts, link-agent-key.ts |
| Registry metadata | each agent carries trackRecord (graded Brier score) and trackRecordUrl: reputation from outcomes, not feedback | refresh-cards.ts |
Live on testnet
| Audit contract | <13039,0> |
| Outcome registry | <13060,0> · operator for 981–989 authorised by the owner, tx |
| Agent Registry | CIS-8004 <12802,0>, CIS-8 <12801,0> |
| Verdict signing key | /.well-known/sentinel-keys.json |
| CIS-8 binding | Solana key 3QtXHLffyBqQGnrtLrogXkHgt8sbTtKy4ZhGNBR8TX9c → owner, tx; gateway external reference, tx |
| Verified creator (example) | request CCDVRA · audit CCDVAA |
| Agent | Token | Badge token address |
|---|---|---|
| Sentinel (gateway) | 981 | JyP9XuYWbM5LAuY1BXBRN |
| Judge | 982 | JyP9XvdzXNaG12mhEPWxc |
| Holders | 983 | JyP9XwjUTQ5BqA1U88GxH |
| Snipers & Bundles | 984 | JyP9XxpxPRa7fHFHdSi8f |
| Funding Graph | 985 | JyP9XyvSKT53VQV4eCrRY |
| Creator | 986 | JyP9Y11vFUZyKXirwTVGZ |
| Contract & Liquidity | 987 | JyP9Y27QBW4u9exdA4hkR |
| Market | 988 | JyP9Y3Ct7XZpynCTKGUka |
| Money Flow | 989 | JyP9Y4JN3Z4kouSAhLdSi |
Verified creators
A token creator proves, once, that a real adult stands behind their Solana wallet. Every verdict on that wallet's tokens then carries a verified_creator finding, weighed by the Creator agent as accountability, never as proof of good intent.
flowchart LR
W[Solana creator wallet] -->|1 connect| S[Sentinel]
S -->|2 anchor request CCDVRA| C[(Concordium)]
W -->|3 sign challenge naming the anchor| S
ID[Concordium wallet or ID App] -->|4 ZK proof: age 18+| S
S -->|5 verify and anchor audit record CCDVAA| C
S -->|6 verified_creator on every verdict| V[Verdicts]
The Verify and Access protocol runs in-process with @concordium/web-sdk (no Docker verifier). Sentinel enforces the presentation context itself, including the binding to the anchor block, because web-sdk 12.0.2 skips that check. Stored: wallet, claim, time, the two anchors. Not stored: name, birth date, documents.
Bugs we found in Concordium's tooling
While integrating the Agent Registry, Sentinel hit two bugs in Concordium's official Agent Registry MCP that broke CIS-8 key registration and metadata reads on every network. We diagnosed both, worked around them by calling the contract directly, and reported them together with a third finding about wallet support. Concordium's engineers confirmed all three; the two bugs were fixed after our report and the fixes are live on the hosted MCP.
| Finding | What was wrong | Outcome |
|---|---|---|
build_cis8_register | targeted an entrypoint register that exists on no network; the CIS-8 module on testnet <12801,0> and mainnet <10081,0> exposes registerExternalKey | fixed in PR #15; our binding tx confirmed the parameter shape |
get_metadata | passed the token id as a number where the schema's TokenIdU64 wants little-endian hex, so every read failed | fixed in the same PR |
| Phantom and CIS-8 proofs | the solana-ed25519 scheme signs raw canonical bytes; Phantom's signMessage refuses arbitrary bytes | a limit of the proof scheme, not the tool; a scheme wrapping the bytes in Solana's off-chain message format goes to the CIS-8 spec. Raw-byte signers (a programmatic ed25519 key, the Solana CLI) work today |
We re-checked the hosted MCP after the fix on 8 Nov 2026: get_metadata { token_id: 982, key: "trackRecord", network: "testnet" } returns the agent's on-chain track record (24h n=1 brier=0.0784 …), and build_cis8_register now emits CIS-8.registerExternalKey on <12801,0>.
Contract interface
record RecordParam { digest, chain, subject, verdict, risk_score, agent_ids, observed_at } → seq
grade GradeParam { seq, horizon, labels, rugged, liquidity_bps, price_bps, observed_at }
view(seq) → Record grades(seq) → [Grade] count() · info()
setSubmitter admin only
events Verdict · Graded · SubmitterChanged
Only authorised submitters can write. Nothing can be updated or deleted. Each horizon can be graded once.
outcome_registry
commit [CommitParam { agent_id, claim, commitment, evidence, resolver, resolves_at, reveal_window, reveal? }] → [seq]
reveal [{ seq, probability_bps, salt }] committer only, until reveal_by
resolve [{ seq, outcome, evidence }] the named resolver, once, after resolves_at
forfeit [seq] anyone, after reveal_by, sealed forecasts only
setOperator [{ agent_id, operator, allowed }] the agent's CIS-8004 owner, checked on chain
forecast(seq) · forecasts({from, limit}) · agent(id) → AgentScore · operator · info
events Committed · Revealed · Resolved · Scored · Forfeited · OperatorChanged
Use it from an agent
MCP (Streamable HTTP): https://api.sentinelagent.pro/mcp
| Tool | Price | Returns |
|---|---|---|
sentinel_quick { mint } | free | first look in about a second for fresh launches: authorities, extensions, holders, liquidity, market; engine rules, no models; says what it did not read · also GET /quick/:mint |
sentinel_verdict { mint, idempotency_key?, max_price_ccd? } | 1 CCD over x402 | verdict, evidence, dissent, attestation; progress as notifications |
sentinel_track { limit? } | free | Brier, skill, reliability, per-specialist scores, graded verdicts |
sentinel_audit { digest? | mint? } | free | past verdicts with their Concordium records |
sentinel_agents | free | the nine agents, tokens and badges |
sentinel_check_badge { id } | free | badge status from the registry |
A2A: https://api.sentinelagent.pro/a2a · HTTP: POST https://api.sentinelagent.pro/x402/verdict { "mint": "…" }
Discovery: listed in the official MCP Registry as io.github.0xNickdev/sentinel-agent (server.json); the paid URLs are at /.well-known/x402-discovery.json for x402 catalogs.
Agents that spend on their own get two guards, both checked before the 402 so a refused call costs nothing. An Idempotency-Key header (or idempotency_key over MCP) makes a retry return the verdict already paid for. A max_price_ccd ceiling (body, MCP argument or X-Max-Price-CCD header) stops the call with price_above_max if the price is higher. Endpoints, prices, these rules and a ready agent prompt are at sentinelagent.pro/llms.txt.
Sentinel Guard (guard/, on npm as sentinelagent-guard) puts all of this behind one call for trading agents: it confirms Sentinel's badge with the Concordium Agent Registry, blocks on hard red flags for free, pays for the full verdict only when needed, and fails closed. It ships an ElizaOS action and a wrapper that stops an existing swap action from buying a blocked token.
const guard = createGuard({ pay: concordiumPayer({ address, privateKeyHex }), maxPriceCcd: 2 });
const d = await guard.check(mint); // allow | warn | block, with the reason and the audit link
Built for Protocol-Level Locks
Today the only hard limit on a Concordium agent's spending is its account balance. Concordium's roadmap adds Protocol-Level Locks (Simple Locks in January 2027, Enhanced Locks in March 2027): the owner fixes who may be paid, in which token, how much in total and until when, and the chain enforces it. Sentinel already works in those terms in two places on Concordium, so each becomes a lock without a redesign:
| Today, enforced in code | As a lock |
|---|---|
What an agent may spend over x402: a SpendLock (recipients, tokens with a total each, expiry) checks every payment before it is signed; lock.toSpec() exports the same rules | the same four fields, enforced by the chain |
| The guarantee pool: an account that refunds a paid SAFE that rugs within 24 h | amount = the pool, token = the asset the verdict was paid in, recipients = the payers on record |
Guard's trade mandate (maxPerTrade, maxPerDay, expiresAt) has the same shape, but it bounds swaps on Solana, where a Concordium lock does not reach; it stays in code.
The second row matters more. A refund promise backed by an account is a promise; backed by a lock the buyer can read on chain before paying, it is collateral.
An agent that asks before it buys:
node concordium/dist/scripts/trader-agent.js [mint]
# trader › Sentinel carries a valid Verified by Concordium badge (token 981, card hash matches the chain)
# trader › candidate: $XYZ …pump, launched 300s ago
# trader › paid https://testnet.ccdscan.io/transactions/…
# trader › DANGER · risk 82/100 · confidence 0.78
# trader › DECISION: skip (oracle says DANGER)
Repository
flowchart LR
engine["engine/<br/>signals, Solana adapter,<br/>outcome grading, scoring"] --> agents["agents/<br/>specialists, council,<br/>consensus, judge, attestation"]
agents --> concordium["concordium/<br/>registry, audit contract,<br/>resolver, sampler, x402"]
concordium --> mcp["mcp/<br/>MCP, A2A, server"]
mcp --> web["web/<br/>site"]
| Package | What |
|---|---|
engine/ | Chain-agnostic signals; Solana RPC, Dexscreener and Helius adapters; token lockers; money-flow trace; pump.fun launch feed over Yellowstone gRPC; outcome labels and proper scoring |
agents/ | Seven specialists, debate, anonymous council, advocate, structured judge, consensus with vetoes, ML-DSA-65 attestation, prompt-injection guards, CLI |
concordium/ | Agent Registry client and cards, sentinel_audit contract (Rust) and client, resolver, launch sampler, x402 gateway and facilitator, demo agents |
mcp/ | MCP server, A2A executor, hardened HTTP server (secure headers, body limit, CORS allowlist, rate limit) |
guard/ | Sentinel Guard: pre-trade allow/warn/block for trading agents, badge check, x402 payer, ElizaOS adapter, CLI; npm |
web/ | Next.js site: live swarm over SSE, verdict stamp, audit explorer with in-browser signature verification, track record |
Run it
npm install && npm run build && npm test
cp .env.example .env # ANTHROPIC_API_KEY and a Solana RPC URL at minimum
node agents/dist/cli.js --fixture rug # offline swarm run on a fixture
node agents/dist/cli.js <mint> # live mainnet verdict
node mcp/dist/scripts/serve.js # gateway, MCP, A2A, x402, track on :4020
SENTINEL_API_URL=http://localhost:4020 npm run dev -w web
Testnet setup, contract deployment and agent registration: concordium/README.md. Production deploy (Railway and Vercel): docs/DEPLOY.md.
Tests
| Suite | Tests |
|---|---|
| engine | 49 |
| agents | 38 |
| concordium | 103 |
| mcp | 20 |
| guard | 20 |
| audit contract (Rust) | 4 |
| outcome registry (Rust, against a CIS-8004 test double) | 5 |
| total | 239 |
Security
Prompt-injection guards treat every on-chain string as data. Inputs are validated, bodies are capped, origins are allowlisted, and unpaid routes are rate limited. A verdict is released only after x402 settlement. The audit contract is append-only. Verdicts carry ML-DSA-65 signatures that anyone can verify in the browser. Secrets live only in .env and the host's environment. Threat model: docs/SECURITY.md.
Running costs
The swarm is the only part that calls a model; should_i_pay, the outcome registry, the free first look and the resolver do not. On the hosted deployment:
- No idle runs. The launch sampler is off. The model is called only when a visitor or an agent asks about a token.
- One run per token per day on the free door. The site's live stream and A2A serve a stored verdict on the same token for 24 hours (
SENTINEL_FREE_CACHE_HOURS), however many people open it. New free runs are capped at 10 an hour and 2 at a time (SENTINEL_FREE_RUNS_PER_HOUR); past that, a stored verdict is served or the caller pays. - Paid runs pay for themselves.
POST /x402/verdictruns fresh for the agent that paid 1 CCD. - Two example tokens kept warm. LIBRA and BONK, the examples on the home page, are re-judged once a day (
SENTINEL_WARM_MINTS), two runs a day, so a visitor never waits on them. - Provider. Anthropic by default (Haiku specialists, Opus judge).
SENTINEL_LLM=deepseekwithDEEPSEEK_API_KEYruns the same swarm on DeepSeek (deepseek.ts); its output is checked against the same schemas, without Anthropic's constrained decoding.
What was built when
The hackathon ran from 2 November to 9 December 2026. Sentinel's first commit is from 31 October 2026, and we say so.
- Before the hackathon opened (31 October to 1 November). The rug-check product: the analysis engine, the specialist swarm with its judge, the first
sentinel_auditcontract, the x402 verdict endpoint, the MCP and A2A surface and a first site. On 1 November it went live on testnet with the nine agents registered. The engine's analysis logic was ported from two of the owner's own projects: the indexer of CARPET, a Solana launchpad (holders, snipers, bundles, funding graph, creator history), and the X-Ray forensics engine in aiagentzoo (exchange wallets, money flow, token lockers; those files say so in their headers). Nothing from CARPET's contracts, backend or keys is here. No code from other teams or other hackathon entries is used. - During the hackathon. Verified creators with Concordium ID (Verify and Access); ERC-8004 cards and the CIS-8 Solana key; the fast tier; Sentinel Guard on npm; the verdict guarantee with automatic refunds and its first live refund; EUDemo (PLT) pricing and refunds; outcome rules 2 and 3, learned agent weights and calibration; the
outcome_registrycontract (Proof-of-Outcome) with its cross-contract ownership check; rug cover; the pivot to grading any agent:should_i_pay, paid trust over the payment graph, the independent claim resolver, the registry audit; the security fixes; the redesign.
The commit history shows each step: git log --reverse.
Honest limits
- The badge proves that a verified person is accountable for the agents. It does not prove that a verdict is right; the track record is how you judge that.
- A verdict below CAUTION needs observation: a token nobody has traded, or one still on its bonding curve and under a day old, cannot be called SAFE, whatever the specialists found or did not find. The sampler therefore spends half its draws on survivors, tokens it judged before that were graded alive and still trade, so the track holds calls with both outcomes.
- The sampler is off on the hosted deployment since 4 December 2026 to keep model spend tied to real requests. The track now grows only from tokens people and agents ask about, which is exactly the selection bias the sampler exists to remove; the calls it made until then stay on the track.
- The track has been restarted twice, each time because the grading was wrong and we said so on the page: rule 1 misread bonding curves, rule 2 scored tokens that had nothing left to lose. Under rule 2 the judge scored worse than the base rate (skill −0.23 on 45 one-day grades). Rule 3 scores start from zero, and the number may again be unflattering.
- Calibration makes the sealed probability honest on average; it cannot add information the judge's score does not carry. If the score does not separate tokens that survive from tokens that die, the fitted slope goes to zero, every verdict gets the base rate, and skill is zero, not positive. Telling survivors apart needs features the swarm does not read yet (the first minutes of the trade tape).
- Creator proofs work end to end with the Concordium Wallet for Web. The Concordium ID App pairs and receives the request, but does not return a proof yet; we are working it through with Concordium.
- A verified creator is accountable, not automatically honest; a creator planning a rug will not verify.
- Phantom cannot sign CIS-8 proofs yet (see Bugs we found in Concordium's tooling); bind a Solana key with the Solana CLI or a programmatic key.
- The guarantee pool is an ordinary account Sentinel funds, not escrow, and Guard's price ceiling is enforced in the agent's own process, not by the chain. Protocol-Level Locks would hold both on-chain; they are not on testnet yet (see Built for Protocol-Level Locks). PLT payments use EUDemo, Concordium's allow-listed test token: payer and pool must both be on its allow list, which takes an EU-nationality proof at the faucet. The PLT refund path is tested with a direct transfer; an automatic EUDemo refund has not fired yet, because no EUDemo-paid SAFE has rugged. USDR is live on testnet but has no public faucet.
- Sentinel's forecasts on the outcome registry are resolved by Sentinel's own resolver: the outcome evidence is hashed on chain and the labels are reproducible from two market readings, but the resolver is not independent. For other agents Sentinel is the independent resolver; an agent can also name any resolver it likes.
- The payment graph reads CCD transfers from the wallet proxy, which does not list PLT (EUDemo, USDR) transfers yet, so stablecoin payments between agents are not in paid trust. The testnet graph is small; on mainnet it is the signal that matters.
- Chain data cannot tell a duplicate settlement from two genuine purchases in quick succession. Trap penalties are therefore proportional to the share of payments affected and stay bounded.
- The reference forecaster is ours, run from a separate account to show the flow end to end. Its record is real but it is not an independent customer.
- Cover has a moral hazard the caps only contain: a token's creator could buy cover and then rug. Mainnet cover needs a signed proof of a position outside the creator's funding cluster; the engine already maps that cluster.
- Everything runs on Concordium testnet.
Research
The design draws on four research passes, in docs/research/innovation-and-market-2026.md: the hackathon field, the agent-facing security market, 2024–2026 literature on rug detection and multi-agent judgement, and open-source projects.
License
No installation packages available.