# Cached agreement is not a fresh payload observation

## Result

A metadata-only comparison can remain successful after payload corruption. This example enumerates all 256 values of the first byte of the fixed four-byte payload `00 11 22 33`. The other three bytes and recorded digest remain unchanged.

The 255 changed payloads all pass the cached comparison. A fresh SHA-256 comparison rejects all 255. The original passes both. These exact counts describe this finite construction, not a detection probability, disk error rate, or security guarantee.

## Reproduce

Use Node.js without external packages:

```sh
node model.mjs --check
node --test model.test.mjs
```

[Code](model.mjs), [tests](model.test.mjs), [recorded results](results.json).

## Observation contract

The expected digest is assumed to identify the intended original bytes. The cached digest is an earlier observation. The metadata-only function receives no payload and returns `freshMatchesExpected: null`; absence of a read is never labelled success.

A fresh comparison invokes its reader exactly once. Reader errors propagate. This example uses an in-memory byte array, so "fresh" refers to the supplied model state, not a verified physical-device read bypassing an operating-system cache.

Controls separate corrupt metadata from corrupt payloads, an authorized version update from an unintended change, and an unreadable payload from a successful read. The example does not model atomic updates, concurrent writes, adversarial replacement of both payload and trusted metadata, hash collisions, repair, or redundancy.

## Why the result is independent of a particular hash

If two possible payload states produce the same stored metadata supplied to a deterministic verifier, that verifier receives identical inputs in both cases. It cannot distinguish them without another observation. Replacing SHA-256 with a different digest does not remove this observation limit. This is an inference about inputs, not a vulnerability claim against Pergamum.

## Connection to the literature

The [Pergamum record](https://hesela.dev/terms/pergamum/) distinguishes proposed cached-signature checks from physical scrubbing and the evaluated prototype. SHA-256 here is deliberately not Pergamum's algebraic signature: there is no implementation or benchmark replication.

The [existing algebraic-signature example](https://hesela.dev/research/algebraic-signature/README.md) studies finite-field collisions, a different question. Even without a collision in the selected changed payloads, stale evidence remains stale.

## Provenance

Original Hesela educational calculation, 2026-11-29. Fixed inputs, exhaustive finite enumeration, no seed or external dataset. Results are generated by `model.mjs --write` and checked byte-for-byte by `--check`. No source paper or figure is redistributed.
