I let a model read CoinMarketCap's migration notices, and made code decide the verdict
In the Successor repo, a language model reads the notice and code writes the verdict. I tried the other way first and could not defend it. The sentence that moves money CoinMarketCap records what happened to
In the Successor repo, a language model reads the notice and code writes the verdict. I tried the other way first and could not defend it.
The sentence that moves money
CoinMarketCap records what happened to a renamed or migrated coin in a free-text notice on /v2/cryptocurrency/info?aux=notice. For Clearpool it says the coin "has rebranded to Clearpool (CLEAR) and undergone a 1:1 swap" and links the old and new contracts. Nothing in the API turns that into a successor id, a contract to compare, or a ratio to test. On a 2026-11-22 scan of the active top 2,000, 161 coins carry a notice, and 141 of those are migration-type by a regex classification.
A holder wants one answer: swap, sell the old token, or write it off. That is Successor.
Split the job: the model proposes, code decides
An LLM is good at reading the sentence. It is a bad judge of whether the sentence is true. So the agent is two parts.
The Reader (Qwen qwen4-max) turns the notice into structured proposals. The schema forces every field to carry the exact sentence it came from:
"evidence_quote": {
"description": "verbatim substring of the source text that states the value",
...
}
A field with no verbatim quote is dropped. If the notice does not state the ratio, the Reader may follow the notice's own announcement link and read that page too (URL must appear verbatim in the notice, allow-listed, peer-checked per hop).
The Inspector is plain Python. It resolves the successor to a CMC id, compares the quoted contract with CMC's platform.token_address, tests the stated ratio against CMC prices on the event date, values "swap" against "sell old" on quotes/latest, and asks market-pairs/latest whether the old token still trades. Then one function decides:
def decide(f: Facts) -> Decision:
...
if f.c2 == "refuted":
return Decision(NOT_VERIFIABLE, "R5", f"successor refuted by CMC's data: {f.c2_reason}")
Eight ordered rules (R3 to R10) in this function, plus R1 and R2 for no notice and an unresolved holding in the flow, and no model call anywhere in them. A failed contract or ratio check blocks SWAP; the rules then pick NOT VERIFIABLE, SELL OLD or WRITE OFF and say why.
What it said about CPOOL
On a capture at 2026-11-22 03:49 UTC the old CPOOL token was worth 15.7% more than the 1:1 swap, so the verdict was SELL OLD. The notice implies a swap; CMC's own prices say otherwise. Captures later that day read 7.3% (05:58 UTC) and 10.4% (06:20 UTC), and at 23:43 UTC the margin was 4.6%, under the 5% that SELL OLD needs, so the same lookup read SWAP and said why. Verdicts move with the market, so every one on screen carries its capture time and a receipt: endpoint, parameters, credits, the verbatim CMC JSON, the model's prompt and raw output, and a curl.
Reproduce it yourself:
curl -N 'https://successor.edycu.dev/api/lookup?q=CPOOL&qty=10000'
When the notice does not say enough
AGIX's notice announces a merger into the Artificial Superintelligence Alliance but names no ratio. The Reader cannot invent one, because a field without a verbatim quote is dropped. In the captured run it follows the fetch.ai link the notice itself points to before its first proposal, reads 0.433350 FET per AGIX there, and the Inspector then checks that figure against CMC's prices at the event date (a difference of -0.6%, which confirms it). Ten thousand AGIX valued by a price tracker was $5,925 (2026-11-22 03:49 UTC capture) on a token that trades on $0 volume; at the swap ratio it was $463 of FET. That gap is the reason to check rather than trust the tracker's number.
Making the model's input hostile on purpose
The notice and the pages it links are untrusted text, so the evals include a case where the text tries to instruct the model. The expected result is the ordinary verdict, and that is what it produces, because the model never decides one. Misread ratios and symbols are in the eval set too: the checks catch them offline and the verdict falls back to NOT VERIFIABLE. The link fetcher only follows URLs that appear verbatim in the notice, re-checks the peer address at every hop, and has a hard deadline.
The honest part
Most notices cannot be confirmed. On the top-2,000 census (captured 2026-11-22), 161 coins carry a notice: 130 end NOT VERIFIABLE, 26 NOTHING TO DO, 3 WRITE OFF, 2 SWAP, 0 SELL OLD. Saying "I cannot verify this" is most of what the product does, and I think that is the right shape for something people may act on. The wording is "what CMC's data supports", never advice, and values exclude fees, gas and slippage.
Other things that did not go to plan:
-
CMC quirks, measured: checksummed-address lookups on
info?address=return a misleading 400,date_addedis inherited from the old coin, andconvert=EURscales supply and percent changes. Write-up in the repo'sdocs/DX-REPORT.md. - Eval caveat: the 10 counted eval cases replay recorded CMC rows and recorded Reader output. They test the checks, not the live model.
-
CI: GitHub Actions never started while the repo was private (billing), so the early gates ran locally (
docs/proof/gates/). Since the repo went public the six-stage pipeline runs on every push to main and every pull request: on main it tests a staged Vercel deployment before promoting it, and a green run cuts a semantic release for the commit it tested.
Numbers
88 tests (82% coverage), mypy/ruff/pip-audit/gitleaks clean. Cached lookup p50 0.796 s / p95 1.363 s (n=12); cold Reader read p50 15.44 s / p95 21.45 s (n=6), both 2026-11-22. With the CMC key removed, no verdict is produced, by design.
Live: https://successor.edycu.dev ยท Code: https://github.com/edycutjong/successor ยท Demo video (2:46): https://youtu.be/O4n1ZgZMT7I
Built for CoinMarketCap's Build with CMC: API Hackathon, Round 2 (AI Agents and Automation track): DoraHacks BUIDL.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.