Skip to content
· 10 min LIVE

The Thermometer Can't Grade Itself: Six Signed Readings You Can Recompute

EPIC-240 physical measurement, live in production: signed MeasurementObservation artifacts with strict sequence and previous-hash chain, server-assessed immutable trust levels, content-addressed public artifact reads, measurement-to-evidence adapters, sandboxed document bytes, and a synthetic cold-chain dogfood whose six DEVIN-TEST readings can be recomputed without our database. Two custody commitments carrying measurement evidence are anchored on Arc testnet and independently verify as MATCH. The audit and independent verification found real defects - missing abuse resistance, a positive-ingest proof gap, and a CSP overwrite - fixed before publication and owner-verified green.

AB
AgentBadge Team
Agency for the Agentic Web
The Thermometer Can't Grade Itself: Six Signed Readings You Can Recompute
🤖 For AI agents: Machine-readable: JSON Markdown llms.txt Agent Guide

EPIC-239 taught our ledger what physical objects are and where they came from. EPIC-240 answers the next question: what happened to those objects while they moved? Not 'the API says the temperature was fine' - a signed measurement artifact with a strict sequence chain, a server-assessed trust level, a content hash anyone can recompute, and a public path into custody evidence and testnet anchors. In the live dogfood, six synthetic temperature readings form a verifiable chain. Five are linked into the public shipment replay of the 400 kg parent and its 250 kg / 150 kg children. Two custody commitments that include those measurement hashes are anchored on Arc testnet and independently verify as MATCH. The independent production verifier also found real problems: missing abuse resistance, a verification gap around positive ingest, and a CSP overwrite that could turn evidence bytes into same-origin active content. Those were fixed, re-verified, and then the owner ran the production verification runbook green.

This is part of the Arc campaign series. Previous published episode: 400 kilograms, two children, four anchors (EPIC-239). This article is EPIC-240: physical measurement - the layer that turns telemetry from a claim into evidence a third party can recompute.

The problem: a measurement is just a sentence until someone can check it

Here is the small lie every dashboard tells by omission, and we've believed it ourselves: a number appears on the screen, and the very fact that it is displayed makes it feel like evidence. Minus two point five degrees Celsius. Humidity normal. Weight accepted. The UI doesn't know whether a sensor actually produced that number, whether a backend job typed it in, whether someone replayed yesterday's payload, or whether the same device skipped half of its sequence and nobody noticed. We can't tell either.

For a junior: imagine a school exam where you write the answers, sign the paper, grade it yourself, and write "verified" at the top. The signature may be real. The paper may even contain correct answers. But the word "verified" means nothing, because you are both the person making the claim and the person grading it.

That is the default state of most telemetry. Devices emit readings. Servers store them. Charts render them. Nothing in that chain automatically proves who signed the reading, whether it is the next reading in the device's own history, whether it is bound to the physical object it claims to describe, or whether the server changed its mind later.

If software agents are going to act on physical-world inputs, that gap isn't academic for us. An agent doesn't need a pretty chart. It needs to know whether the input may enter evidence at all.

Measurement integrity is a solved problem - everywhere except software

Industries that move food, medicine, chemicals and machines already know that measurements are not decoration. Cold-chain logistics treats temperature as a controlled input because the wrong reading can turn a safe shipment into a recall. Laboratories chain calibration certificates because an instrument is only useful if its state at the time of measurement is knowable. Industrial systems keep audit trails because after an incident "the dashboard looked fine" is not an answer.

The pattern is always the same, and it's worth saying slowly. Identity of the measuring device. Integrity of the reading. Ordering over time. Evidence of the object's identity. A trust decision made by someone other than the thing being measured.

Software often skips all five because they're inconvenient. A row in a database is easier. EPIC-240 is our refusal to keep doing that inside the agent economy.

What shipped: the rail from reading to evidence

EPIC-240 adds a measurement rail with five deliberately boring pieces. We wanted boring here, because boring is what you can verify:

  • Immutable typed artifacts - a MeasurementObservation is canonical JSON, stored by content hash. The stored canonical text is the digest source of truth. Change one byte and the artifact digest no longer matches.
  • Signed ingest - the device signs the unsigned observation with EIP-191 over RFC 8785 canonical JSON. The artifact hash is different: it covers the full artifact including the signature. The signable payload and the artifact hash are separate names because confusing them is how verification systems quietly break.
  • Strict sequence and previous-hash chain - the first accepted sequence for a device/property stream is exactly 1. After that the server accepts only lastAccepted + 1, and previousRecordHash must match the predecessor's artifact digest. Rejected attempts are append-only audit rows, not silent rewrites.
  • Server-assessed trust - payload trustLevel is only what the sender declares. The server assesses trust once at ingest from the version-controlled device registry and stores that as immutable assessedTrustLevel. The thermometer cannot grade itself.
  • Evidence adapters - a measurement is not an economic event. Only its digest, type, issuer and URI enter evidence sets. Canonical process evidence keeps the device ActorRef; a separate adapter exists for the legacy econ-events write schema because pretending those schemas are identical would hide a real boundary we don't want to maintain.

Then there is the unglamorous production surface: payload caps, rate limits, typed errors, OpenAPI entries, route tests, content-addressed reads, and a document evidence rail that verifies exact bytes against a declared digest.

The measurement pipeline - device signature, strict validation, artifact store, server-assessed trust, evidence adapter and public recomputation

Three concrete examples of why this is useful

Example 1: for us, the cold-chain demo stopped being theatre

EPIC-239 already proved that our 400 kg batch could split into 250 kg and 150 kg children with exact conservation. But a batch without measurements is still a story about objects, not conditions. EPIC-240 puts signed temperature evidence into the same public replay.

The parent shipment carries sequence 1. Split-a carries sequences 2 and 3. Split-b carries sequences 4 and 5. The public response says exactly what kind of evidence this is: assessedTrustLevel: SIGNED_DEVICE, verificationStatus: verified-artifact-and-accepted-ingest, and testDataMarker: DEVIN-TEST. Not hidden test data. Not fake production measurements. Explicit synthetic rails.

Example 2: for the community, the verification does not need our database

The artifact endpoint returns canonical JSON by digest. The offline verifier takes six public artifact files, recomputes artifact hashes, recovers the EIP-191 signer, compares it with the registry address, and walks every previousRecordHash link. Result: allPass: true for sequence 1 through 6.

That's the difference between "trust our API" and "here is the chain, check it yourself". The useful pattern is not our specific thermometer. It is the proof shape: canonical artifact, signer recovery, strict sequence, public content addressing.

Example 3: for integrators, evidence bytes are served as hostile input

Measurements are not the only evidence. Supply chains still produce packing lists, photos, certificates and PDFs. EPIC-240's document rail stores exact bytes only after recomputing the declared content digest. The byte endpoint preserves the declared media type for retrieval, but serves it with content-security-policy: sandbox and x-content-type-options: nosniff.

That detail matters to us. Evidence bytes are attacker-controlled content. If your evidence viewer can execute the evidence, you've built an exploit delivery mechanism with good typography.

The live proof: six readings, one chain, two anchors

We started the live run from the EPIC-239 lineage shape: one 400 kg parent batch, split into 250 kg and 150 kg children. Then we signed and ingested five synthetic temperature observations through the real production path. A sixth came later during independent re-verification.

seq subject value artifact digest
1 parent batch -2.500 Cel 0x62a9ad2c...de2d5
2 split-a, 250 kg -2.400 Cel 0xdf84cd3b...43db
3 split-a, 250 kg -2.375 Cel 0xd106fda5...81f69
4 split-b, 150 kg -1.900 Cel 0x4df8b5e7...577e9
5 split-b, 150 kg -1.875 Cel 0xad60b8aa...49b1
6 split-a, fresh positive ingest -2.125 Cel 0xbd7ccae5...7629

The public replay is readable right now, no account needed:

GET https://agentbadge.xyz/api/ledger/shipments/devin-test-240-prodseed-1-split-a

HTTP 200
{
  "shipmentId": "devin-test-240-prodseed-1-split-a",
  "measurements": [
    {
      "artifactDigest": "0xdf84cd3b9cba952344373133568444fba9ee7bb49037fd06ef0fab12a44c43db",
      "artifactUri": "/api/v1/artifacts/0xdf84cd3b9cba952344373133568444fba9ee7bb49037fd06ef0fab12a44c43db",
      "property": "temperature",
      "value": "-2.400",
      "unit": "Cel",
      "sequenceNumber": 2,
      "declaredTrustLevel": "DECLARED",
      "assessedTrustLevel": "SIGNED_DEVICE",
      "verificationStatus": "verified-artifact-and-accepted-ingest",
      "testDataMarker": "DEVIN-TEST"
    }
  ]
}

(Abridged for readability. Split-a has a second measurement at sequence 3; the parent and split-b responses carry their own rows. The measurement block leak scan is clean: no internal UUIDs, no tenant fields, no transport signatures.)

Terminal capture of the production replay response - signed measurement rows with artifact digests, assessed trust and DEVIN-TEST markers

The two child custody transitions then went through the commitment pipeline. Their evidence roots include measurement artifact digests. The sealed commitments were anchored on Arc testnet:

child txHash block independent check
split-a 0x26f32226...6815 75420183 MATCH
split-b 0x1bde4928...cdb3 75420230 MATCH
Real Arcscan capture of the split-a anchor transaction - status Success, block 75420183, Memo contract call visible; not an illustration

For the article bridge, we reran the public verification path ourselves. The offline measurement verifier returned allPass: true for sequence 1 through 6. The commitment checker returned memoId, memoData and sealedField true for both anchors.

The recompute bridge - a laptop outside the data center shows six artifact cards, allPass true, and two MATCH beams reaching a public blockchain receipt
The proof pipeline - six artifact pages chain into evidence roots, two commitments anchor on testnet, and an outside verifier recomputes MATCH

The part that actually matters: the verifier made the system better

We treat self-verification as worth exactly nothing in this business, so EPIC-240 went through two adversarial passes before this article: a parallel clean-context audit and an independent production verification. Both found things that made the rail better.

First, the audit found that measurement ingest had no rate limiter. That isn't a theoretical nit. A signer can mint valid transport signatures for free, and every invalid signed body can force validation work plus a rejection-audit write. Verify-before-fix mattered: the regression failed red first. After the fix, the first 12 invalid signed requests produce typed 422s and audit rows; request 13 returns 429 and writes no audit row. Both focused re-audits then returned APPROVE WITH NITS, with Critical/High open at zero.

Second, the independent production verifier pointed out a boundary problem: it could prove negative rejects, artifacts, replay and anchors, but it could not prove fresh positive ingest without the registered synthetic device key. We didn't solve that by sharing the key. The accepted mechanism was a one-shot exact-body/time-boxed capability for one DEVIN-TEST measurement body. The verifier validated the binding, posted exactly once, got HTTP 201, and then reverified sequence 6 from the public artifact chain. No private key, transport signature value, or capability contents entered evidence.

Third, the verifier found a real security bug in document bytes. The byte route intended to return content-security-policy: sandbox, but global security middleware overwrote the route header after next(). A text/html DEVIN-TEST upload could have executed as same-origin active content. The fix was small and important: preserve route-specific CSP. We re-captured the header after deployment because a passing local test wasn't enough here. Fresh production capture now shows the exact header:

GET /api/v1/artifacts/0x052eda50eb82a8d154afa8882cb024fc0a20129e441ea0a42fb044deca5270fe/bytes

HTTP 200
content-type: text/html
content-security-policy: sandbox
x-content-type-options: nosniff
Terminal capture of evidence byte headers - CSP sandbox and nosniff on a real production artifact download

Finally, the owner ran the production verification runbook personally: 15 PASS, 0 FAIL, 1 intentional SKIP on the read-only path. The optional write branch had already passed separately as 16 PASS, 0 FAIL, 0 SKIP. This isn't just CI theater. The final check is a human running the public system and seeing the expected output. If you can't reproduce the check, we haven't finished the proof.

The honest section: what this is not

We'd rather you hear it from us than guess:

  • Every measurement here is synthetic DEVIN-TEST. No real sensor, hardware attestation, calibration or physical-truth claim is made.
  • SIGNED_DEVICE is not truth. It means a registered key signed a valid, ordered observation. It doesn't prove the physical temperature was -2.4 C.
  • The device registry is v1 config. It's version-controlled and reviewed, not a full device identity or calibration service.
  • Anchors are on Arc testnet. The production database and production code path are real; no mainnet value moved and no mainnet claim is implied.
  • Custody in this dogfood uses InMemoryHopExecutor. There is no escrow-spend proof in this epic.
  • Document bytes are integrity plumbing, not semantic verification. Exact bytes match a digest. That doesn't mean the PDF's contents are true.
  • Audit wording stays exact: parallel Devin audit passed; Arc/external confirmation pending.

What this opens

The important thing isn't the thermometer demo. What matters to us is that the agent economy now has a rail where physical-world inputs can enter as typed evidence instead of untyped assertions.

For us, this connects three layers that previously stood apart, and we can now read them in one public surface: asset lineage says what exists, custody commitments say which transition was accepted, and measurement artifacts say which signed observations were part of the evidence. For the community, it is a concrete pattern you can copy without copying our product: canonical artifacts, strict device sequence, server-assessed trust, content-addressed reads, leak-checked public projections, and hostile-content handling for evidence bytes.

The next bricks are obvious but deliberately not claimed as shipped: real hardware integration, richer device registries, calibration evidence, higher-frequency telemetry batches, and semantic document verification. Those are future work; we're not claiming them here. What is live now is narrower and more useful: a measurement can be checked. You can check it.

Read the arc

Don't certify. Measure.

Shipped: signed measurement ingest with strict sequence/prevHash chain, server-assessed immutable trust levels, generic content-addressed artifact storage, measurement-to-evidence adapters, document byte integrity plumbing, sandboxed evidence downloads, live synthetic cold-chain dogfood, two testnet commitment anchors, independent re-verification, and an owner-green production runbook.