ERC-8470: Launch Observations

An agent about to buy a token should be able to make one read: “what did a detector I trust see about this launch, and at which block?” This Pre-ERC makes that a standard on-chain record. latestFinding(chainId, token, detector, kind, param) returns a typed value and the block it held at, so an agent, a wallet guard or a router can refuse a missing or stale reading inside the same transaction that buys.

It is the observed half of ERC-8462 (Token Launch Declarations). That proposal lets a launchpad declare facts at launch, so that “detectors, wallets and lenders can compare what a launchpad declared with what they observe”. Observations use the same ERC-8376 launch id, or chain id + token when no directory lists the launch.

Sketch

  • One call per token and detector: latestByToken and latestFinding. A missing observation or finding comes back as “not read”, never as a 0 that looks clean. The reader sets how old a reading may be.
  • A small typed core: first-block share, early-buyer share, the creator’s prior launches, share held by wallets linked through funding, a product label, and any ERC-8376 base signal by its field name.
  • Plus a tally (against / careful / clear) and the hash and URI of the full report.
  • Any address can be a detector. Append-only: a newer observation supersedes the old one, and both stay readable.
  • ERC-8004: the detector is an 8004 identity, lists the registry in its registration file, and agents that relied on a reading can rate it in 8004 reputation.

Facts at a block, not verdicts. Unlike ERC-8376 reports there is no score, no abuse pattern and no bond.

One correction since my reply on the 8462 thread: liquidity is now read through ERC-8376’s lpLockedShare / lpLockRemaining signals (which is how an 8463 lock shows up), not a finding of our own.

Status

Draft, reference contract and tests are written. A full observation costs about $0.04 in gas on Robinhood Chain. We run Toll on Robinhood Chain, which reads launches straight from the chain and can be called by agents over MCP and x402. We would be the first detector writing to the registry.

Questions

  1. Is one read per (token, detector) enough for guards, or do they also need “latest by any detector in a list”?
  2. Staleness: should the reader choose the bound (as drafted), or should the registry set one per kind?
  3. ERC-8004: is reputation feedback from agents the right link, or should observations also answer 8004 validation requests?
  4. Is the typed core right: the five kinds above plus the 8376 signals?

@Cybercentry: with 8376 heading to Review, we reuse its signals by field name. Corrections welcome.

Reader-chosen freshness makes sense. Could you share the schema and reference contract? One case I’d test: a reading is still within the age limit, but its observed block has been reorged out. Would the record bind a block hash, or would readers rely on a stated finality policy?

Thanks. The draft and the reference contract are in the PR: Add ERC: Launch Observations by soli0x · Pull Request #2121 · ethereum/ERCs · GitHub (contract and
Foundry tests under assets/).

On reorgs, today it is a stated policy: a detector SHOULD observe only finalized blocks, and if an observed block is reorged out it records a correction at a final block. The old record stays and readers see both.

Your case is a fair hole, though: a guard can’t tell from the record alone that its block is still canonical. Checking on chain doesn’t really work, since blockhash() only reaches back 256 blocks (about 25 seconds on Robinhood Chain at 0.1 s blocks). So I’ll add the observed block hash to the ObservationRecorded event. It costs no storage, and any reader or indexer can compare it with the canonical chain. The finality policy stays the main rule, and the hash makes a broken one visible. On an Arbitrum Orbit chain like Robinhood Chain, “finalized” means the block’s batch is final on the parent chain, so a detector reads at the finalized tag rather than the head.

Facts at a block, with “not read” instead of a clean looking 0, is the right default for a guard. I read the reference contract in the PR and two things stood out.

  1. On Arbitrum chains block.number is the parent chain’s block (Ethereum, for Robinhood Chain) and blockhash returns a pseudo-random value, not the L2 hash. Right now Robinhood Chain’s finalized block is about 99.9M while block.number there reads about 26.3M, so _checkOwnChainBlock reverts with InvalidObservedBlock for an own-chain observation at any recent block, which includes every ERC-8376 keyed one, unless your deployed version already differs from the PR. The guard example in the spec has the same mismatch: once an observation exists, block.number - at underflows and the buy reverts. The Foundry tests run on a plain EVM, so they can’t see it. ArbSys(100).arbBlockNumber() gives the L2 number, and the EIP-2935 history contract is deployed on Robinhood Chain and serves L2 hashes over a longer window than 256 blocks, which may also help with the reorg case ted0x raised. Probably worth a line in the spec on which block number a registry and a guard read on an Arbitrum chain.

  2. setDetectorIdentity checks ownerOf or getAgentWallet once, and every later observation copies that link. Copying at record time makes sense, but if the 8004 agent is transferred or its wallet changes, the old detector address keeps stamping that agentId, and the new holder can link the same agentId from another address. Guards that pin a detector address are fine. Anything that trusts the agentId and its reputation should recheck the link when it reads, or recordObservation could recheck it before copying.

On your first question, I’d add the list read. A guard that trusts three detectors otherwise makes three calls and runs its own staleness check for each.

Thanks, both are real and I checked the first one on chain. Inside the EVM, Robinhood Chain’s block.number reads about 26.29M (the parent chain), while the chain’s own head is about 99.93M. So the own-chain check and the guard example were wrong on every Arbitrum chain, and plain-EVM Foundry tests could not see it.

Fixed in the PR:

  1. The spec now defines the block number as the chain’s own (ArbSys.arbBlockNumber() on Arbitrum chains), and the
    registry and the guard example both use it.
  2. The observed block hash is checked against the EIP-2935 history contract where it is deployed. On Robinhood Chain
    it is, and it returned the exact L2 hash in my test, so a reorged-out block is caught over about 8k blocks, not 256.
    That also closes ted0x’s case.
  3. recordObservation rechecks the 8004 link each time. If the agent was transferred or its wallet changed, the
    observation carries no agentId. Readers that trust an agentId should still recheck when they read.
  4. Added latestFindingFrom(chainId, token, detectors[ ], kind, param), which returns the first existing finding in list
    order.

Tests now mock ArbSys and the 2935 contract.

Ran the 45 Foundry tests locally at 4d09913; all pass. The out-of-window hash is still unverified, so I’d have a strict guard reject it.

done: added a hashChecked flag, stored in each observation and emitted with ObservationRecorded. it’s true only when the registry itself read the block’s hash (EIP-2935, or blockhash on chains where it takes the chain’s own numbers) and it matched; out of the window, or for another chain, it’s false. the spec now says a strict reader SHOULD treat hashChecked = false as unsupported, so a guard can refuse it on chain. on Robinhood Chain that means recording within ~14 min of the observed block. new tests cover each window (46 pass).

hashChecked is a clean way to let a guard refuse it on chain.

One number to check before it goes in the spec: Arbitrum’s version of EIP-2935 doesn’t keep 8191 blocks. ArbOS 40 sized the history contract to the L2 blocks produced while Ethereum builds 8192 blocks, which the ArbOS 40 notes put at about 27 hours (ArbOS 40 Callisto). Robinhood Chain’s blocks are faster, so I’d expect a window of hours there rather than 14 minutes, but it’s worth measuring: read the history contract at a few depths (10k, 100k, 300k blocks back) and put the window you find in the spec. If it covers most of a day, a strict reader turns away far fewer observations than the current text suggests.

measured it, you were right. on robinhood chain the history contract answered correctly up to ~392,870 blocks back, about 11h24m (hashes matched the real blocks at 100, 8,191, 10k, 100k and 300k; refused by 500k). it also caught a bug: the registry stopped asking after 8191 blocks, so it would have marked 14 min to 11 h old observations unchecked.
pushed a fix: no window is assumed now, the registry asks the history for any block and a refusal means not checked.
spec states the measured window instead of 8191/14 min, and the tests check a block 300k deep. thanks

some data for the motivation section, from what toll observed on robinhood chain (pons launches, last 14 days, outcome 24 h after launch):

today the only launch disclosure on chain is the venue naming which wallets skip the opening tax. that one flag covers opposite cases:

  • no declared bundle: 3,329 launches, 14.7% rugged, 1.4% graduated
  • declared bundle under 5% of supply: 398 launches, 37.7% rugged
  • declared bundle 30%+ of supply: 141 launches, 2.8% rugged, 13.5% graduated

a small exempt set looks like a farm, a large one looks like a team holding its allocation in the open. the flag can’t tell them apart. typed allocations with holder and vesting, as 8462 declares them, can. the other launchpads on the chain disclose nothing at launch at all.

Thanks, hashChecked gives a strict guard the signal it needs. I reran a7c640b: all 47 tests pass (pinned reproduction).

thanks for rerunning it. we asked the editors for a first review on the PR. if anything else in the spec reads unclear to you, happy to change it

reference deployment is live on robinhood chain (4663)

registry: 0x730e3c356299c9203cb042f6c0a9274aeabf9af3
source verified on blockscout (exact match), built from the PR assets at a7c640b. launchDirectory() is zero since
there is no 8376 directory on this chain yet.

first observation from a live detector:

how the detector writes:

  • only what it read at one finalized block; observedBlockHash is that block’s hash, hashChecked through the 2935
    history contract
  • anything not read at that block goes in as not read (max value), never 0
  • first record cost ~829k gas

anyone can call latestByToken / latestFinding on it now. a readable list of every observation:

feedback on the field choices welcome before the next editor pass

Good to see it live with a detector already writing to it.

On the field choices, the two liquidity signals behave differently from the rest. lpLockedShare and lpLockRemaining are protective, so a guard checks them against a minimum, and not read is type(uint256).max, which clears any minimum: require(locked >= 8000) passes on a reading the detector never made. And it lands on the worst case. ERC-8376, whose measuring rules this spec keeps, reports both as unavailable when a lock was claimed and the liquidity then demonstrably left, so a launch that pulled its liquidity after claiming a lock is exactly the one whose lock reads as max.

The Reading example only has upper bounds, where max fails on its own. A lower bound line there with the != type(uint256).max check next to it, and a sentence in Absence that for a minimum that check is the only thing refusing not read, would cover it.

good catch, thanks. fixed in the PR (883230c):

· findings: not read is the largest value, so it fails any upper bound but passes any lower bound. a reader comparing against a minimum MUST check != type(uint256).max first
· use before a trade: added a lower-bound line for lpLockedShare with that check next to it, and a note on why it lands on the worst case (8376 reports a lock unavailable once the liquidity left after a lock was claimed)
· rationale: one line on it no contract change, so the deployed registry is still the PR’s code

The cross-chain reading guidance recommends bounding recordedAt, but that measures when the observation reached the registry. The contract sets it to block.timestamp and permits corrections at the same observedBlock. An hours-old source-chain snapshot submitted now or resubmitted as a correction, can therefore pass a recordedAt age limit without any newer state being observed.

For readers accepting cross-chain observations, that could make stale liquidity findings look fresh. I would explicitly distinguish publication time from observation time and state that recordedAt alone cannot bound the age of source-chain data. Could the draft recommend a separate source-chain freshness check or include an observedTimestamp with its trust assumptions stated?

you’re right, and the draft had it wrong: recordedAt is when the observation reached the registry, not when the state was read, so a late or resubmitted snapshot passes a recordedAt bound. pushed a fix to the PR.

the reading guidance now says: freshness is the observed block on the launch’s own chain. a reader that acts on a cross-chain observation reads that chain anyway (it’s about to trade there), so it takes the timestamp of observedBlock from that chain and checks the block’s hash against the observedBlockHash the event carries. recordedAt is publication time only, and a reader MUST NOT treat it as the age of a reading. that also covers corrections: a correction at the same observedBlock keeps the old observed block, so it doesn’t look fresher than the reading it corrects.

on observedTimestamp: we’d rather not add it. for another chain the registry can’t check it, so it would be the detector’s claim, and a reader that wants to rely on it still has to read the source chain to verify it, which gives it the real timestamp anyway. the block number plus its hash already pin the reading to one block on that chain. happy to add it as an emitted, unchecked field if readers that can’t reach the source chain need it, with exactly that trust assumption written next to it. does that work for you?

Thanks. The revised Reading guidance fixes the issue I raised. Under that rule, submitting an old snapshot late or correcting it at the same observedBlock, doesn’t make it fresh again. I’m fine leaving observedTimestamp out. It would be another unchecked detector claim and a reader with access to the source chain can get the block’s timestamp directly.

I’d make the off-chain assumption explicit, though. An on-chain guard consuming data from another chain needs authenticated source headers or an explicitly trusted oracle or attestation to check freshness. Without that, it can’t establish how old the source data is and mustn’t use recordedAt instead.

A sentence covering that limitation would be enough for me. I don’t think this needs an extra field.

agreed, added to the PR: a contract reading an observation of another chain can’t learn the observed block’s age on its own. it needs authenticated block headers of that chain, or an oracle or attestation it explicitly trusts, and without one it MUST NOT use recordedAt in its place. thanks for the careful read