# Finite observation draws, version 1

Protocol identity: `aner.observed-random/v1`. Both implementations are deterministic transformations of finite input. No PRNG, operating system generator, clock, seed, or hash supplies output bits. A physical source must supply uncertainty, and no validated entropy estimate is claimed.

Input is at most 1 MiB of UTF-8 text, with at most 100,000 observations. Whitespace means ASCII space, tab, LF, CR, FF and VT. Other characters or encodings are rejected. Capture files must be completed regular files, never devices, streams or symlinks.

## Extract

Extraction returns the observed bits and counts of observations, pairs, discarded pairs and unused observations.

For `coin`, H/h/0 map to 0 and T/t/1 map to 1. Symbols can touch. Nonoverlapping pairs 01 give 0, 10 give 1, equal pairs are discarded. An odd final symbol is unused. Independent identically distributed tosses with fixed bias justify independent fair extracted bits; source errors, changing bias or correlation can violate this model.

For `bubble`, tokens are canonical decimal integer nanoseconds from 0 through 9223372036854775807, strictly increasing, with at least three timestamps. Preserve input order. Form adjacent intervals, then compare nonoverlapping interval pairs: first less than second gives 0, greater gives 1, equality discards the pair. An unpaired final interval is unused. `observations` counts timestamps; `unusedObservations` counts unpaired intervals. Exchangeability balances a single pair's ordering, but additional assumptions across pairs are needed for independent output bits. Units do not establish sensor resolution.

## Consume

Each draw consumes bits from a finite buffer starting at the supplied cursor. Bounds are canonical decimal strings from 2 through 9223372036854775808. Cursor is an integer from zero through the bit count. Read k bits MSB first, where k is the bit length of bound minus one. If the candidate is below the bound, accept it. Otherwise discard the full candidate and continue.

A receipt has exactly `{upperExclusive, value, startCursor, endCursor, rejectedCandidates, exhausted}`. Bounds and successful values are decimal strings. On insufficient remaining bits, `value` is null and `exhausted` is true. Previously rejected blocks stay consumed; an incomplete final block remains unconsumed. Never modulo reduce, pad, rewind, reuse, replenish or silently substitute another source. Uniformity conditional on success requires independent fair bits and source independent acquisition and stopping.

## Retain

Portable transcripts have `{protocol, adapter, raw, source, extraction, receipts}`. Source has `{kind, sourceId, identityVerified: false, validatedEntropyBits: 0}`, with kind `fixture` or `physical-recording`. A physical classification is an unverified assertion. Zero validated credit means no estimate has been established, not a measurement of zero physical entropy.

A verifier recomputes extraction and draws sequentially from cursor zero. Continuing a previous transcript requires verifying it before appending. Browser transcripts preserve entered text; local captures separately preserve exact UTF-8 bytes and a SHA-256 consistency manifest. Editing both raw input and manifest can create another internally consistent record, so hashes provide no source authentication. Reimport and restart repeat captured data; there is no global reuse registry.

All bundled fixtures and test cases are predictable software inputs. Accepted pairs, valid receipts and passing statistical checks do not prove entropy. Physical acquisition, device authentication, source characterization, dependence analysis and source specific health checks are separate work.
