Entropy profile
Available in
SPA (bottom tab entropy) · Marimo sandbox
The chart plots Shannon entropy against byte offset. In full resolution it measures every window and groups the results into approximately 1,500 buckets. The band shows each bucket’s minimum and maximum. The line shows the maximum. Shading marks regions of at least 32 bytes where the measured entropy meets the threshold.
Threshold. The default is window-aware: 4.5 bits/byte at the default 32-byte window (the same value entropy_scan uses), scaled with the expected entropy of random bytes for other windows (16 → 3.63, 64 → 5.31, 256 → 6.61, 1024 → 7.20). A window of w bytes can reach at most log2(min(w, 256)) bits/byte (5.0 for 32, drawn as a dashed line); the former fixed default 7.5 was unreachable below 182-byte windows and never reported anything. An explicit threshold is used as given; if it is unreachable the response says so (threshold_reachable: false, warning threshold_unreachable) and the chart shows a warning.
Resolution. resolution=full visits every window (exact region membership, envelope from the fixed-point estimate, error < 1e-9); sampled is the bounded-step profile; auto (default) is full up to 8 MiB and sampled above, with full_resolution_available: true — the SPA then shows the sampled chart immediately and replaces it with the full one when the follow-up request returns.
Backed by GET /api/inspect/entropy?window=32&buckets=1500&resolution=auto (optional threshold, view=raw|vas|va). Response fields added on top of the historical ones: envelope (starts/stops/min/max/mean columns), resolution, full_resolution_available, threshold, threshold_source, max_entropy, threshold_reachable, warnings, region_count, regions_truncated (list capped at 2000), min_region_bytes, and byte_end per region.