GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - edycutjong/successor: 🛫 Your coin migrated: swap, sell the old token, or write it off, verified against CoinMarketCap data

BranchesTags
Open more actions menu

Latest commit

 

History

182 Commits
182 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
api
api
 
 
data
data
 
 
docs
docs
 
 
e2e
e2e
 
 
evals
evals
 
 
public
public
 
 
scripts
scripts
 
 
successor
successor
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.gitleaks.toml
.gitleaks.toml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
DEMO.md
DEMO.md
 
 
JUDGE.md
JUDGE.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
lighthouserc.json
lighthouserc.json
 
 
pyproject.toml
pyproject.toml
 
 
vercel.json
vercel.json
 
 

Repository files navigation

Successor icon

Successor 🛫

CoinMarketCap says a coin migrated, but only in prose. Successor reads the notice, finds the successor token, checks it against CMC's own rows, and gives the holder one verdict.

Successor: CPOOL flaps turn to CLEAR, three lamps go green, and the status column settles on SELL OLD, +15.7%. An AI reader proposes the successor from CMC's prose notice; code checks it against CMC rows (CMC data 2026-11-22 03:49 UTC).

For judges: the 2-minute path Live Demo Landing page Pitch deck Demo video DoraHacks BUIDL X post dev.to article Built for CMC API Hackathon Round 2


Python FastAPI Vercel Qwen CoinMarketCap API CI CodeQL Release License


No wallet needed anywhere. Every lookup makes read-only calls to CoinMarketCap and, when a notice is new, one agent read on Qwen (at most 3 model calls). Why it matters, in one example (CMC quotes, 2026-11-22 03:49 UTC): a tracker shows $5,924.93 for 10,000 AGIX, which has traded $0 in 24 h; swapped into FET at the ratio the agent found and code price-confirmed, the same coins are $463.42. Try it: https://successor.edycu.dev (judges: /judge, a 2-minute path whose first three steps take 30 seconds), or curl -N 'https://successor.edycu.dev/api/lookup?q=CPOOL&qty=10000'.

What to expect: the featured coins answer in about a second (cached agent read: median 0.796 s, slowest 1.363 s; n=12, 2026-11-22 11:16 UTC, docs/proof/bench/bench-cached-2026-11-22T1116Z.json). A coin whose notice the agent has not read yet needs a fresh Qwen read first: median 15.44 s, slowest 21.45 s (n=6 on CPOOL, 2026-11-22 05:22 UTC, docs/proof/bench/bench-cold-2026-11-22.json). Successor reads the free-text notice field (/v2/cryptocurrency/info?aux=notice), CMC's own record of the migration, and checks it against CMC's rows.

📸 See it in Action

Live re-run of the AGIX lookup on 2026-11-23 13:53 UTC; CMC prices have moved since the 2026-11-22 03:49 UTC table below.

Screen capture of the live Successor board, 2026-11-23 13:53 UTC. A holder types AGIX. The agent's trace streams, slowed 6x: the recorded extraction follows fetch.ai and proposes ASI at ratio 0.43335, code verifies FET against CMC (C2) and the FET flaps turn. The verdict lands: SWAP, $469 as FET against a $5,932 tracker value for 10,000 AGIX, with checks C1 to C6 (ratio confirmed at -0.6%, AGIX market at $0 volume).

Live capture of successor.edycu.dev, 2026-11-23 13:53 UTC · two consecutive AGIX lookups 8 s apart, identical figures · the lookup took 0.87 s: the first 0.57 s after Enter is cut and the agent-to-verdict span is slowed ×6 · the agent's read is the recorded 2026-11-22 extraction · receipts: docs/proof/broll/. AGIX swapped into FET is $469 here and $463.42 in the table below.

The static board below is six real lookups captured on 2026-11-22 03:49 UTC (raw streams in docs/proof/assets/). Every verdict is market-sensitive, so each one carries its capture time.

Successor board: six real lookups with their verdicts, checks and capture time (CMC data 2026-11-22 03:49 UTC)

Holding Verdict Why (from the captured stream and its receipt rows)
CPOOL SELL OLD (rule R8) CPOOL was renamed to CLEAR with a 1:1 swap; at CMC's quotes the old token is worth 15.7% more than the swap (old $0.0243011 vs 1 × new $0.0210…)
AGIX SWAP (R9) The notice links fetch.ai; the Reader reads ratio 0.43335 there; code confirmed it with CMC prices on the event date. 10,000 AGIX: $5,924.93 at the old price (a tracker), $463.42 as FET after the swap
BIT SWAP (R9) Ratio 1, price-confirmed on the event date
EPS WRITE OFF (R6) CMC's quote reports $0 of 24 h volume for the old token and for the successor (its market-pairs endpoint still listed two EPS pairs with $41.75 between them; docs/DX-REPORT.md, finding 5)
REP WRITE OFF (R6) Same rule: $0 of quoted volume, and the swap deadline the notice quotes has passed (one unflagged pair still listed $49.20; CMC itself excludes a second pair's $195.02)
DAI NOT VERIFIABLE (R10) Ratio not stated and the linked announcement could not be fetched

💡 The Problem & Solution

The Problem

When a token is renamed, migrated or redenominated, CMC records it in one free-text notice field on the coin's page. The contract, the ratio and the deadline sit inside prose and markdown links. Trackers keep showing the old ticker at a price that no longer means what the holder thinks it means: in the AGIX row of the table above, a tracker shows $5,924.93 for 10,000 AGIX while the same coins swapped into FET are $463.42 (CMC quotes, 2026-11-22 03:49 UTC).

How big is it? On the census served at /api/census (scan captured 2026-11-22T02:32:34Z, active top 2000 by CMC rank): 161 coins carry a notice, 141 of them migration-type, and 74 of those name no contract address at all: the successor, where one is named, is a name or a link in a sentence. That is a field a program cannot read, and a holder should not have to.

The Solution

An agent with a hard split of roles:

  • Reader (Qwen qwen4-max, a tool-using loop). Reads the notice, may open links the coin's own CMC page lists (follow_link), and proposes the successor name and symbol, contract, chain, ratio and deadline, each with the quote it came from.
  • Inspector (plain code). Verifies every proposal against CMC rows: the contract against CMC's contract list for the successor, the chain, the ratio against historical quotes on the event date (it confirms within ±5%, TOL in successor/verify/ratio.py), whether both tokens still trade. Then a deterministic table of rules (R1 to R10, successor/verify/verdict.py) picks the verdict.

The LLM never decides the verdict. SWAP is only produced when the successor is verified against CMC's data (its contract matches, the notice links its CMC page, or it is the only CMC id with that exact name and symbol) and the ratio is price-confirmed; a contract the Reader quoted that fails to match blocks SWAP. Otherwise SWAP is withheld, and a claim that fails a check ends as NOT VERIFIABLE, SELL OLD or WRITE OFF as the table says. SELL OLD (R8) needs the old token to trade at least 5% above the swap value at CMC's quotes (PREMIUM in successor/verify/verdict.py); under that margin a confirmed swap stays SWAP (R9), and when the old token is still above the swap its reason states the margin. CPOOL sits near that line and has shown both verdicts: SELL OLD at 15.7% (03:49 UTC capture above) and SWAP at 4.6% (2026-11-22 23:43 UTC, docs/proof/assets/lookup-CPOOL-2026-11-22T2343Z.ndjson). The four verdicts are SWAP · SELL OLD · WRITE OFF · NOT VERIFIABLE, plus NOTHING TO DO when the coin you hold is already the successor. The wording is "what CMC's data supports", not advice. Fees, gas and slippage are excluded and said so on screen.

🏗️ Architecture & Tech Stack

Successor architecture. A holder's GET /api/lookup goes to api/index.py and successor/flow.py, which resolve the coin (C1) and read its CMC notice. 1, Reader proposes: Qwen qwen4-max reads only the notice text (and up to 2 allow-listed linked pages via follow_link, or a cached extraction) and proposes successor, contract, chain, ratio and dates with verbatim quotes; CMC prices are never sent to it and it has no verdict field. 2, Inspector checks: plain code in successor/verify/ runs C3 quoted verbatim, C2 successor and contract, C5 markets alive, C4 ratio within 5 percent, C6 price integrity against CMC rows, and can send one refute reason back. 3, Rules decide: verdict.py picks SWAP (R9), SELL OLD (R7, R8), WRITE OFF (R6), NOT VERIFIABLE (R3, R5, R10) or NOTHING TO DO (R4); SWAP only if C2 verified the successor and C4 price-confirmed the ratio. Six CMC endpoints: /v1/key/info, /v1/cryptocurrency/map, /v2/cryptocurrency/info, /v2/cryptocurrency/quotes/latest, /v2/cryptocurrency/quotes/historical, /v2/cryptocurrency/market-pairs/latest. Every step streams as NDJSON to the board and its receipt drawer.

Drawn from the code; every component names its file. Full size: successor.edycu.dev/architecture · source: docs/architecture.html (self-contained HTML + SVG).

Layer Choice
Runtime Python 3.12 on Vercel and in CI (requires-python >=3.11), FastAPI as one Vercel serverless function (api/index.py, maxDuration 60), streaming NDJSON
Front end Plain HTML/CSS/JS in public/ (a departure board: split-flap names, lamps, trace, receipt drawer). No build step
LLM Qwen qwen4-max on Alibaba Cloud DashScope (intl); QWEN_MODEL overrides it (the day-one spike script scripts/spike_llm.py fell back to qwen3.8-max-0902; the product has no fallback). The Reader's extraction for a notice is cached by coin and notice hash in data/extractions/
Data CoinMarketCap Pro API only. Prices, contracts and notices are never taken from the LLM
State None: committed JSON (data/) for the extraction cache and census, no database

🏆 CoinMarketCap API Integration

Endpoints Successor calls (5 to 12 calls per lookup in the captured streams; info?address= only when you paste a contract or the Reader quotes one; key/info from the credit guard at most every 10 minutes (cached) and from /api/health at most once a minute per instance (cached)). All are verbatim in the receipt drawer and in docs/proof/spike/:

Endpoint Used for
GET /v1/cryptocurrency/map (listing_status=active,inactive,untracked) Resolve a symbol, slug or contract to CMC ids; exposes symbol collisions (CLEAR maps to 2 coins)
GET /v2/cryptocurrency/info (aux=notice, and ?address=) The notice itself; every chain's contract for equality checks against what the Reader proposed
GET /v2/cryptocurrency/quotes/historical Prices of old and new token on the event date, to confirm the swap ratio
GET /v2/cryptocurrency/quotes/latest Current price and 24 h volume, for the live value of "swap" against "sell old"
GET /v2/cryptocurrency/market-pairs/latest Whether the old token still trades on spot pairs
GET /v1/key/info Credits left and monthly limit, shown on /api/health

One real call: code and response

Code, successor/cmc.py (CmcClient.info, abridged):

params: dict[str, Any] = {"aux": aux}  # default aux = "urls,platform,date_added,notice,status"
if ids:
    params["id"] = ",".join(map(str, ids))
if address:
    params["address"] = address
return await self.get("/v2/cryptocurrency/info", params)

Response, verbatim fields from docs/proof/spike/01-info.json (HTTP 200, 1 credit, captured 2026-11-22T01:24:19Z):

"12573": {"id": 12573, "symbol": "CPOOL", "name": "Clearpool",
  "notice": "Clearpool (CPOOL) has rebranded to Clearpool (CLEAR) and undergone a 1:1 swap from the [old contract](https://etherscan.io/token/0x66761fa41377003622aee3c7675fc7b5c1c2fac5) to [new contract](https://etherscan.io/token/0x5200f539478f58d9aea962095ba3b16b5e550e00). For more details, please [click here](https://x.com/ClearpoolFin/status/2122523453270180117)."}
"42884": {"id": 42884, "symbol": "CLEAR", "name": "Clearpool",
  "platform": {"name": "Ethereum", "token_address": "0x5200f539478f58d9aea962095ba3b16b5e550e00"}}

The notice is prose; the successor's contract is a field on another coin. The Reader proposes 0x5200…0e00 from the prose and code compares it with CLEAR's token_address (check C2). Every lookup's calls and raw rows are in the receipt drawer.

Successor's own endpoints: GET /api/lookup?q=&qty=&id=&fresh= (NDJSON trace, or one JSON answer with Accept: application/json), GET /api/hero (the board's first-screen CPOOL lookup: the same flow on its own rate bucket), GET /api/notices, GET /api/census, GET /api/health. The API describes itself for tools and agents: OpenAPI at /api/openapi.json, interactive docs at /api/docs, and a plain-text guide at /llms.txt.

Why this is not "a plain API call": the information is not in a field. info returns prose; no endpoint returns "the successor of CPOOL is CLEAR, 1:1". The agent has to read, propose and then be checked by the endpoints above. docs/DX-REPORT.md lists what made this possible and what got in the way (quotes/latest stamps a fresh last_updated on a $0-volume coin, which is why a tracker-style last price can look current (AGIX: $0 of 24 h volume, last_updated a minute before the capture, docs/proof/assets/lookup-AGIX-2026-11-22T0349Z.ndjson); a checksummed-address 400 with a misleading message, date_added copied from old to new coin, convert=EUR scaling supply, quotes/latest reporting $0 of 24 h volume while market-pairs/latest lists counted pairs with volume, and the notice being free text).

📊 Engineering Rigor

Metric Value How to reproduce
Tests 88 passed, 82 % line coverage (gate 70 %; run 2026-11-22 21:16 UTC, docs/proof/gates/local-gates-2026-11-22T2116Z.txt), mypy clean make test-coverage, make typecheck
Evals 10/10 counted cases + 4/4 variants (a variant re-runs a case with a field stripped or a second capture; reported, not counted) python scripts/run_evals.py (replays real saved CMC rows and recorded Reader output)
Lookup latency, cached Reader read, live CMC calls p50 1.007 s · p95 1.454 s (= max at n=12) (n=12, 2026-11-22 04:29 UTC). Re-measured on HEAD 0f2e719, 2026-11-22 11:16 UTC: p50 0.796 s · p95 1.363 s (n=12, docs/proof/bench/bench-cached-2026-11-22T1116Z.json); an earlier run that hour hit one slow call (p95 5.148 s, n not recorded, file overwritten), so the p95 is network-dependent. python scripts/bench.py https://successor.edycu.dev CPOOL 12, samples in docs/proof/bench/
Lookup latency, cold Reader read (fresh=1: the agent re-reads the notice, up to 3 Qwen calls; CPOOL's recorded read took one, data/extractions/12573-6835dcd6.json; live CMC calls) p50 15.44 s · p95 21.45 s (= max at n=6) (n=6, CPOOL, 2026-11-22 05:22 UTC); earlier single samples 16.89 s (CPOOL), 8.79 s (MKR) on the day-one engine make bench-cold, samples in docs/proof/bench/bench-cold-2026-11-22.json, docs/proof/deploy/
Census 161 notices; verdicts over them: NOT VERIFIABLE 130 · NOTHING TO DO 26 · WRITE OFF 3 · SWAP 2 · SELL OLD 0 (verdicts captured 2026-11-22T03:45:14Z, under the WRITE OFF rule of that day: see Honest limit 2) GET /api/census, python scripts/census.py
Live-URL E2E 12 browser + API tests pass on https://successor.edycu.dev (the first screen's own CPOOL lookup with no click, click CPOOL/AGIX, assert verdict + receipt, /judge with no auth, 3 viewports). Every pipeline run on main executes them against the staged deployment before it is promoted, and live-check.yml runs them daily against the live URL. make e2e also runs one stubbed-stream test of the landing's verdict line (11 cases, e2e/test_landing_verdict.py), 13 tests in all. Recorded runs in docs/proof/gates/: e2e-live-2026-11-27.txt (12 passed on build 58a07f1) and e2e-live-2026-11-22.txt (the first run, from before the first-screen test replaced a click) make e2e
Unplug test No CMC key: error and no verdict. No LLM key on a cold notice: NOT VERIFIABLE. With every key removed the E2E tests fail tests/test_unplugged.py, tests/test_unplugged_http.py, make unplug-e2e (docs/proof/unplug/)
Security pip-audit: no known vulnerabilities (after moving to fastapi 0.165 / starlette 1.10: 11 advisories on 0.46.2); gitleaks: no leaks in the full history; CodeQL + Dependabot configured make audit, make secrets, docs/proof/gates/
Lighthouse (desktop, live) home and /judge: performance 100, accessibility 100, best practices 100, SEO 100 (2026-11-27 19:02 UTC, build 58a07f1, 2 runs per page, docs/proof/gates/lighthouse-2026-11-27T1902Z.json; the same scores at 18:37 UTC, before that build was deployed, lighthouse-2026-11-27T1837Z.json). On 2026-11-22 04:50 UTC, before the board's font and layout fix and the /judge restyle: home 82-83 / 96 / 100 / 100, /judge 100 / 93 / 100 / 100 (docs/proof/gates/lighthouse-2026-11-22.json) make lighthouse

The census numbers are the honest headline: most notices cannot be confirmed from CMC's data alone. 130 of 161 end in NOT VERIFIABLE, and the page says why (61: old and new token share one CMC page, 26: the proposed successor fails a check against CMC's records, such as a quoted contract no CMC coin carries, 22: the notice names no successor, 10: no ratio or announcement unfetchable, 11 more: no live successor market 5, a "swap" the notice text does not show 3, a quote not in the notice 2, other 1). A tool that said SWAP for those would be guessing.

Attacks defeated

Control Why it is load-bearing Test
A contract that is one hex digit off is refuted, never repaired A Reader that mistypes an address must not be able to talk code into a verdict tests/test_successor_c2.py::test_one_hex_digit_off_is_refuted_and_never_repairable
SWAP requires a verified successor (C2) and a price-confirmed ratio (C4), for every combination of check results The headline rule of the verdict table tests/test_never_swap_on_fail.py::test_properties_hold_for_every_combination
A dropped quoted contract or ratio withholds SWAP The Reader omitting a field must not weaken the check tests/test_never_swap_on_fail.py::test_a2a_r03_dropped_contract_or_ratio_quote_blocks_swap
A label-only "swap" from the Reader never reaches SWAP The Reader's event_type alone cannot make a verdict tests/test_flow_guards.py::test_label_only_swap_never_reaches_swap
A misread ratio or symbol is caught by code Misreads are in the eval set, run offline scripts/run_evals.py variants cpool-misread-ratio, cpool-misread-symbol
A notice that tries to instruct the model produces a clean verdict Prompt injection through a notice eval case 10 injection
follow_link refuses private addresses and hosts CMC does not list for the coin SSRF through a notice link tests/test_fetch_link.py
A hard 55 s cancel ends the stream with an error event A hung upstream cannot leave a lookup silent tests/test_flow_guards.py::test_hard_deadline_cancels_a_hung_await_and_ends_with_an_error_event

Honest limits (9)

  1. Most notices end NOT VERIFIABLE (130 of 161, 2026-11-22). The 161-coin census has 0 SELL OLD and only 2 SWAP; SELL OLD is demonstrated by the featured coins CPOOL (R8, in the 03:49 UTC capture; it reads SWAP when the margin falls under 5%) and RZUSD (R7).
  2. Verdicts are market-sensitive and flip between runs. RZUSD was WRITE OFF in one census run and SELL OLD live a short while later because the old token still trades; RAMP moved from WRITE OFF to NOT VERIFIABLE in a re-run. Every verdict on screen carries its capture time. Some flips were CMC's quote, not the market: on 2026-11-27 19:05 UTC the quote reported $0 of 24 h volume for the old RZUSD while market-pairs/latest listed five pairs with $2,388 between them, and the verdict was WRITE OFF. Since that day a $0 quote alone no longer makes a WRITE OFF: market-pairs/latest must also list under $100 of 24 h volume across pairs CMC flags neither as an outlier nor as excluded (LISTED_FLOOR_USD in successor/verify/verdict.py). At $100 or more the verdict is NOT VERIFIABLE and says why; below it (EPS and REP listed $41.75 and $49.20 in the 2026-11-22 captures) the WRITE OFF states both figures (docs/DX-REPORT.md, finding 5). The census keeps the verdicts of its capture day. Its 3 WRITE OFF coins, looked up under the new rule on 2026-11-27 between 20:40 and 20:41 UTC: EPS ($18.54 listed) and REP ($9.28) still read WRITE OFF, and ANT ($142 across two pairs) reads NOT VERIFIABLE; so does RZUSD ($2,322), which is not one of the three. The four streams are docs/proof/assets/lookup-{EPS,REP}-2026-11-27T2041Z.ndjson and lookup-{ANT,RZUSD}-2026-11-27T2040Z.ndjson.
  3. The Reader is slow. qwen4-max takes a median 8.6 s per call (p90 16.5 s, max 25 s, over the 297 recorded calls in data/extractions/); a cold lookup took 15.44 s median and 21.45 s at worst (n=6, docs/proof/bench/); the lookup deadline is 52 s and a hard cancel ends the stream at 55 s. Cached notices answer in about a second. Un-cached coins clicked live can end NOT VERIFIABLE with "agent unavailable".
  4. The census scope is the active top 2000 by rank. The four featured demo coins (CPOOL, AGIX, RZUSD, BIT) sit outside it and are marked and kept out of every count. Notice classification is a regex over CMC's field, not an LLM, and it errs in both directions. Read one by one on 2026-11-27 (the notice text only, not the linked pages): of the 11 migration-type notices that match only a weak keyword (swap, merge, upgrade, ticker, convert, replace or consolidate, and nothing stronger), 2 are trading warnings (AIDOGE, where "Uniswap" matches "swap", and ATLAS, which is also one of the 74 that name no contract address); of the 20 others, at least 3 describe a rename or a move (USDP, SANC, NOW). The other 130 migration-type notices were skimmed once, and one of them is arguable (ETHDYDX: the end of the bridge that converted ethDYDX to DYDX). So 141 and 74 are counts of pattern matches: the 141 includes at least 2 notices that are not migrations and leaves out at least 3 that are, and the 74 includes ATLAS.
  5. Event dates are inferred. CMC copies date_added from the old coin to the new one, so a rename is dated from the X post the notice links; where the successor's history starts later, the ratio falls back to the first common traded day within 7 days, labelled on screen.
  6. Only some announcements can be read. follow_link is limited to hosts CMC lists for the coin or its successor (MKR's forum post is not on that list, so MKR ends NOT VERIFIABLE).
  7. A project_ended notice with no successor is not extracted, so that branch of rule R6 is unreachable today.
  8. Rate limits are per serverless instance (20 lookups/min/IP, 60/min/IP for the board's first-screen CPOOL lookup, 3 fresh reads per 10 min/IP), not deployment-wide. The SSRF guard re-checks the peer address after connecting but does not pin the connection (a known time-of-check gap).
  9. Not financial advice, and no fees. Values exclude fees, gas and slippage, and a SWAP verdict reads "if the issuer's swap is still open" when the notice states no window.

What we got wrong

  • First verdict rule was a spike. The day-one deploy returned "engine": "spike" verdicts to rehearse timing; they were replaced by the R1 to R10 table before the board shipped (docs/proof/deploy/NOTES.md).
  • We expected a second proposal for AGIX and it never happened. We planned for the Reader to "change its mind" on AGIX. In the real run the Reader opens the fetch.ai link before its first proposal, proposes $ASI, and code maps it to FET through CMC's own /currencies/fetch/ link. One proposal, so we do not claim a repair turn.
  • We expected RZUSD to be WRITE OFF and then watched it flip when the old token traded again (limit 2). The market moving is one cause. CMC's quote can also report $0 of volume while its pairs endpoint still lists some, and once the window had closed that alone turned SELL OLD into WRITE OFF until 2026-11-27 (docs/DX-REPORT.md, finding 5; limit 2 has the rule that replaced it). The RZUSD eval's recorded rows are such a case (quote $0, five pairs listing $4,441): they read WRITE OFF then and pin NOT VERIFIABLE now. WRITE OFF is pinned by the EPS eval, and the SELL OLD (R7) branch by tests/test_never_swap_on_fail.py.
  • The spec assumed the checksummed contract address would work in info?address=. It returns HTTP 400 Invalid value for 'slug'; we lowercase 0x addresses (docs/DX-REPORT.md).
  • We added CI and could not run it until the repository went public. While it was private, GitHub Actions jobs never started (a billing limit on the account), so for that time the gates were only run by hand (docs/proof/gates/). The first full green pipeline run, all six stages plus release, is this run; the two attempts before it failed (Python setup, then a Deployment Protection bypass for the browser tests) and were fixed before it passed.
  • "Agent needed" was the wrong label for the 99 notices where the Reader opened or tried a link. That counts attempts, not necessity, and the census now says so.
  • The census's pattern for a contract address was wrong in both directions. Until 2026-11-27 (UTC) this README, the landing page and the deck said that 80 of the 141 migration notices "name the successor only in prose". The flag behind that number (prose_only) means "no contract address in the notice text". Its pattern read only 0x addresses, so it missed 8 notices that link a Solana token on solscan (PAYAI, YURU, MAY, MYRO and four PreStocks tickers), and it took any 40-hex 0x string for a contract, so 2 notices whose only one is the author's wallet in a mirror.xyz link (AWE, ZFI) passed as naming one. The count is 74. The pattern (scripts/census.py), the two flags on those 10 rows of data/census.json and the wording are corrected, and tests/test_census.py pins both; the demo video was recorded before that and still says 80.
  • Two fixes did nothing until their callers were checked. /api/hero got its own rate bucket so the first screen survives a room behind one address, but the board kept calling /api/lookup. And the release guard deferred to "the newer run" whenever main moved, a run the nightly snapshot bot never starts. Both were fixed on 2026-11-27 (UTC); e2e/test_live_flow.py now waits for the first screen's own lookup through /api/hero.

🚀 Getting Started

Prerequisites

Python 3.11+, a CoinMarketCap Pro API key, a DashScope (Alibaba Cloud Model Studio, intl) key.

Installation

uv venv && uv pip install -e '.[dev]'   # the dev extra brings uvicorn
export CMC_API_KEY=...        # CoinMarketCap Pro API key
export DASHSCOPE_API_KEY=...  # Qwen on DashScope (intl); QWEN_MODEL overrides qwen4-max
SERVE_STATIC=1 .venv/bin/uvicorn api.index:app --reload   # SERVE_STATIC=1 serves the board locally (Vercel serves public/ in production)
curl -N 'localhost:8000/api/lookup?q=CPOOL&qty=10000'    # or open http://localhost:8000 and click CPOOL

Keys are read server-side only and never appear in a response; the receipt's curl shows a placeholder.

🧪 Testing & CI

make ci                        # ruff, mypy, pytest + coverage, unplug tests, pip-audit, gitleaks (full history)
make e2e                       # 12 live-URL browser/API tests + 1 stubbed-stream test of the landing (BASE=http://localhost:8000 for a local run)
make unplug-e2e                # app with no keys: it errors and the live-flow tests must fail
make bench                     # cached lookup p50/p95 over 20 calls, gate p95 <= 3 s;  make bench-cold  for fresh Reader reads
make lighthouse                # accessibility >= 0.9 is a hard gate
python scripts/run_evals.py    # 10/10 counted cases, 4/4 variants (offline replay of recorded rows; an eval, not the product)

.github/workflows/ci.yml runs six stages: 1 Quality (ruff, mypy, tests, unplug) and 2 Security (pip-audit, gitleaks, kitchen-file guard) in parallel, 3 Build (evals, import check) plus a Vercel deployment that is not yet on the production domain, 4 E2E and 5 Performance (cached-lookup p95 <= 3 s over 20 calls, nearest rank, a latency-only miss re-measured once with both batches kept; Lighthouse) against that deployment, then 6 Deploy Gate (main only), which promotes that same deployment to production and checks /api/health reports the pushed commit. CodeQL (python, javascript-typescript, actions), gitleaks over the full history, a daily live check, a nightly notice snapshot (snapshot.yml writes data/snapshots/census-<date>.json and stops at the submission deadline; data/census.json and the figures in this README stay pinned to the 2026-11-22 capture), and Dependabot (pip + actions, monthly, grouped, no major bumps) run alongside. The snapshot bot commits only that one data file and pushes with GITHUB_TOKEN, which starts no pipeline run, so main's HEAD can be a few data-only commits ahead of production: /api/health build_sha names the commit stages 1 to 6 tested and promoted, not the newest snapshot. Releases are automatic: after Stage 6 is green, Conventional Commits since the last tag set the semver bump (scripts/release.py), and the job commits, tags and publishes the GitHub release with no manual step. Only code the pipeline tested is released: if another push has moved main on, that push's own run releases, and if only snapshot commits landed in between, the release goes on top of them. Stage 3 stamps that version into the deployment (and into the deck's static fallback), so /api/health reports the release it belongs to. The CI badge at the top shows the state of main; the first fully green run is this one. The local gate outputs are in docs/proof/gates/ (local gates, live E2E run, Lighthouse scores).

📁 Project Structure

api/index.py              one FastAPI function: /api/lookup /hero /notices /census /health
successor/agent/          Reader loop (Qwen) + follow_link (allow-list, SSRF guard)
successor/verify/         resolve, successor (C2), quotes, ratio (C4), market (C5), sanity, verdict (R1-R10)
successor/flow.py         stream orchestrator; receipt.py builds the proof drawer
public/                   the board (index.html, board.css, app.js), landing (about.html), deck (pitch.html), judge and architecture pages
data/                     cached Reader extractions, notices, census
evals/ tests/ e2e/        10 eval cases, 88 unit tests, 12 live-URL browser/API tests + 1 stubbed-stream landing test
scripts/                  census, evals, bench (cached + cold), unplug E2E
.github/                  CI/CD with the release job, CodeQL, gitleaks, live check, nightly snapshot, Dependabot, community files
JUDGE.md, /judge         the 2-minute path for a judge, no login
docs/proof/               verbatim CMC + Qwen responses, lookup captures, deploy and bench proof
docs/DX-REPORT.md         what made the CMC API possible, what got in the way
docs/architecture.html    the architecture diagram above (self-contained HTML + SVG; PNG in docs/assets/)

🆕 Pre-existing work and what is new

Everything in this repository was written for this hackathon, starting 2026-11-22 (first commit in the history). It uses no starter kit or template and no code from other projects. Libraries are installed from PyPI (FastAPI, httpx, pytest, ruff); fonts are Big Shoulders Display, Atkinson Hyperlegible Next and Fragment Mono on the board and the architecture page, and Sofia Sans Extra Condensed, Sofia Sans and Red Hat Mono on the landing, deck and judge page (all SIL Open Font License 1.1, self-hosted latin subsets, public/fonts/OFL-NOTE.txt).

📽️ Demo Materials

Live: https://successor.edycu.dev. Demo video (2:46, chapters in the description): https://youtu.be/O4n1ZgZMT7I · AGIX on the live board at 0:42, GAS NOT VERIFIABLE at 1:21. See DEMO.md for a three-minute walkthrough that a judge can follow with curl.

📄 License

MIT. See LICENSE.

About

🛫 Your coin migrated: swap, sell the old token, or write it off, verified against CoinMarketCap data

successor.edycu.dev/about

Topics

ai-agentcoinmarketcapcryptofastapihackathonpythonqwentoken-migration

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.