Integrate the weight fingerprint from #451 with CUDA execution:
- model_identity is now device-aware (require_dense_device) and always
includes the weight fingerprint, so CUDA runs carry it too;
execution_identity simply delegates. The fingerprint is
device-independent: the same weights give the same digest on CPU and
CUDA.
- New optional spec setting model.fingerprint ("sampled" default,
"full"), dropped from the filled spec at its default so existing
digests are unchanged. It applies to the run's model identity and
therefore every step's reuse check; capture manifests keep a sampled
fingerprint.
- Resolve additive conflicts in capture_identity.py, inputs.py, the risk
map and OBSERVATION_RUNS.md by keeping both sides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the observation runner's execution limits.
- Chat templates: an optional prompt section renders each prompt
through the tokenizer's chat template (optional system message,
generation prompt), tokenized without extra special tokens. The
rendered-prompt digest joins the generation step identity and each
record; capture uses the same rendered prompts.
- Decoding: seeded sampling (temperature, top-p, top-k) alongside
greedy, with a per-example seed derived from the spec seed and example
id. Comparison treats sampled outcomes as exact only when strategy,
device, dtype and seed match, and says why otherwise.
- Batching: optional left-padded greedy batches with an explicit,
recorded pad token; rows are cut at their first eos so batched and
unbatched outcomes agree. Sampling with batches is refused because
per-example seeds cannot hold.
- Devices: dense CUDA for the runner and capture, with shards written
from CPU copies and device/dtype recorded. Quantized, offloaded,
dispatched, meta, split-device and MPS models are refused with
explicit reasons.
The schema stays additive within version 1; options at their defaults
are dropped from the filled spec, so existing spec digests are
unchanged (pinned in tests).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>