test_capability_decode

Functions

test_an_all_ones_version_word_decodes_as_not_advertised() → None

Two readers used to disagree on this exact word: one mapped it to

test_the_bitmap_words_decode_concretely() → None

test_snapshot_reader_normalizes_undecoded_capability_words() → None

test_operators_from_contract_uses_per_tile_truth_not_expansion() → None

test_contract_from_manifest_metadata_round_trips() → None

test_device_snapshot_normalizes_undecoded_capability_words(...) → None

Module Contents

test_capability_decode.test_an_all_ones_version_word_decodes_as_not_advertised() → None

Two readers used to disagree on this exact word: one mapped it to (0, 1) — a plausible-looking old shell — while the other ran it through from_u32 and got (65535, 65535), which compares GREATER than the capability-word version and so read words the shell never decoded. A sentinel below every real version makes them agree.

test_capability_decode.test_the_bitmap_words_decode_concretely() → None
test_capability_decode.test_snapshot_reader_normalizes_undecoded_capability_words() → None
test_capability_decode.test_operators_from_contract_uses_per_tile_truth_not_expansion() → None
test_capability_decode.test_contract_from_manifest_metadata_round_trips() → None
test_capability_decode.test_device_snapshot_normalizes_undecoded_capability_words(tmp_path) → None