Merge lane-breconcile: land the census's ranked residue (8 items landed, 2 refuted), and name the open 4:4:4 lossless key-frame defect
Browse files at this commit8 changed files +855 -19
- crates/ec-av1/src/decode.rs +28 -0
- crates/ec-av1/src/refusal_inventory.rs +153 -4
- crates/ec-av1/src/transform.rs +50 -8
- lanes/av1444rect.report.md +46 -4
- lanes/av1readcensus.report.md +4 -3
- lanes/av1testcount.report.md +161 -0
- lanes/av1tilerows.report.md +46 -0
- lanes/breconciliation.report.md +367 -0
crates/ec-av1/src/decode.rsmodified+28 -0
| @@ -3028,6 +3028,14 @@ fn cfl_src_rect(px: usize, py: usize, bw: usize, bh: usize) -> CflSrc { | |||
| 3028 | /// `reconstruct_mc_rect` reads both of its buffers at. | 3028 | /// `reconstruct_mc_rect` reads both of its buffers at. |
| 3029 | #[derive(Clone, Copy)] | 3029 | #[derive(Clone, Copy)] |
| 3030 | pub(crate) struct TxParams { | 3030 | pub(crate) struct TxParams { |
| 3031 | + /// The plane this unit belongs to (0 luma, 1 U, 2 V), carried from the | ||
| 3032 | + /// reader that OWNS the unit. `dequant_and_inverse_wht4x4`'s `EC_DQCOEFF` | ||
| 3033 | + /// twin prints it so its ladder pairs with the oracle's: the per-unit | ||
| 3034 | + /// census plane could not, because the callers that route a lossless 4x4 | ||
| 3035 | + /// unit into the WHT are not all the ones that stamp the census plane | ||
| 3036 | + /// (measured on `ll444-lossless-key.obu`: 1663 of 1663 chroma units paired | ||
| 3037 | + /// by count, 1660 of them against an empty grid). | ||
| 3038 | + pub(crate) plane: usize, | ||
| 3031 | pub(crate) w: usize, | 3039 | pub(crate) w: usize, |
| 3032 | pub(crate) h: usize, | 3040 | pub(crate) h: usize, |
| 3033 | pub(crate) bit_depth: u8, | 3041 | pub(crate) bit_depth: u8, |
| @@ -3118,6 +3126,7 @@ impl TxParams { | |||
| 3118 | } | 3126 | } |
| 3119 | crate::transform::dequant_and_inverse_wht( | 3127 | crate::transform::dequant_and_inverse_wht( |
| 3120 | grid, | 3128 | grid, |
| 3129 | + self.plane, | ||
| 3121 | self.w, | 3130 | self.w, |
| 3122 | self.h, | 3131 | self.h, |
| 3123 | self.bit_depth, | 3132 | self.bit_depth, |
| @@ -8029,6 +8038,7 @@ fn read_eob(dec: &mut SymbolDecoder, coding: &mut TxbTables, class: TxClass) -> | |||
| 8029 | let (range, value) = dec.debug_state(); | 8038 | let (range, value) = dec.debug_state(); |
| 8030 | eprintln!("EC_AV1_EOBPT_CDF {eob_pt:?} range={range} value={value}"); | 8039 | eprintln!("EC_AV1_EOBPT_CDF {eob_pt:?} range={range} value={value}"); |
| 8031 | } | 8040 | } |
| 8041 | + crate::msac::SymbolDecoder::set_symr_cdf("eob_pt"); | ||
| 8032 | let group = dec.symbol(eob_pt) + 1; | 8042 | let group = dec.symbol(eob_pt) + 1; |
| 8033 | if trace { | 8043 | if trace { |
| 8034 | eprintln!("TRACE eob_pt value={group} rng={}", dec.debug_state().0); | 8044 | eprintln!("TRACE eob_pt value={group} rng={}", dec.debug_state().0); |
| @@ -8277,6 +8287,7 @@ fn read_coeffs( | |||
| 8277 | if crate::envflags::env_flag!("EC_AV1_EOBPT_CDF") && len == 3 { | 8287 | if crate::envflags::env_flag!("EC_AV1_EOBPT_CDF") && len == 3 { |
| 8278 | eprintln!("EC_AV1_TXTYPE32_CDF {tx_type_cdf:?}"); | 8288 | eprintln!("EC_AV1_TXTYPE32_CDF {tx_type_cdf:?}"); |
| 8279 | } | 8289 | } |
| 8290 | + crate::msac::SymbolDecoder::set_symr_cdf("tx_type"); | ||
| 8280 | let t = dec.symbol(tx_type_cdf); | 8291 | let t = dec.symbol(tx_type_cdf); |
| 8281 | crate::census::tx_type(len, t); | 8292 | crate::census::tx_type(len, t); |
| 8282 | if coeff_trace_on() { | 8293 | if coeff_trace_on() { |
| @@ -21465,6 +21476,19 @@ fn read_plane( | |||
| 21465 | // filter-intra is on) -- caller passes the raw filter-intra mode 0..4 in | 21476 | // filter-intra is on) -- caller passes the raw filter-intra mode 0..4 in |
| 21466 | // `filter_intra`, only meaningful for `plane_idx == 0` (chroma has no | 21477 | // `filter_intra`, only meaningful for `plane_idx == 0` (chroma has no |
| 21467 | // filter-intra in AV1). | 21478 | // filter-intra in AV1). |
| 21479 | + // lane-av1444chr: per-TU mode trace with the PLANE named. `PlaneBuf`'s own | ||
| 21480 | + // `OUR_PRED` rung cannot carry it (reconstruction does not know its | ||
| 21481 | + // plane), and a rung whose plane has to be guessed from the values has | ||
| 21482 | + // already produced wrong claims twice this session -- `read_coeffs_rect` | ||
| 21483 | + // labelling its unit `plane=0`, and a sweep reading a second-luma-unit | ||
| 21484 | + // phantom out of that label (class `rung-mislabels-plane`). Diagnostic | ||
| 21485 | + // only: no gate asserts decode behaviour off this line. | ||
| 21486 | + if crate::envflags::env_flag!("EC_TRACE_MODE") { | ||
| 21487 | + eprintln!( | ||
| 21488 | + "OUR_MODE plane={plane_idx} x={x} y={y} side={side} mode={predict_mode} \ | ||
| 21489 | + ad={angle_delta} fi={filter_intra:?} reach={reach:?}" | ||
| 21490 | + ); | ||
| 21491 | + } | ||
| 21468 | let tx_mode = if plane_idx == 0 { | 21492 | let tx_mode = if plane_idx == 0 { |
| 21469 | fi_tx_row(tx_mode, filter_intra) | 21493 | fi_tx_row(tx_mode, filter_intra) |
| 21470 | } else { | 21494 | } else { |
| @@ -21554,6 +21578,7 @@ fn read_plane( | |||
| 21554 | let levels = extend_corner(grid, tx_side, tx_side, side, side); | 21578 | let levels = extend_corner(grid, tx_side, tx_side, side, side); |
| 21555 | let (dc_delta, ac_delta) = plane_q_delta(plane_idx, fctx); | 21579 | let (dc_delta, ac_delta) = plane_q_delta(plane_idx, fctx); |
| 21556 | let tx = TxParams { | 21580 | let tx = TxParams { |
| 21581 | + plane: plane_idx, | ||
| 21557 | w: side, | 21582 | w: side, |
| 21558 | h: side, | 21583 | h: side, |
| 21559 | bit_depth: bit_depth(fctx), | 21584 | bit_depth: bit_depth(fctx), |
| @@ -27204,6 +27229,7 @@ fn decode_leaf_rect8( | |||
| 27204 | // fixture: the DCT route left ±1..30 sample errors on every | 27229 | // fixture: the DCT route left ±1..30 sample errors on every |
| 27205 | // walked leaf's luma. | 27230 | // walked leaf's luma. |
| 27206 | let tx = TxParams { | 27231 | let tx = TxParams { |
| 27232 | + plane: 0, | ||
| 27207 | w: tw, | 27233 | w: tw, |
| 27208 | h: th, | 27234 | h: th, |
| 27209 | bit_depth: crate::decode::bit_depth(fctx), | 27235 | bit_depth: crate::decode::bit_depth(fctx), |
| @@ -30606,6 +30632,7 @@ fn read_inter_plane_rect( | |||
| 30606 | // stride, so the dense `w x h` residual is re-laid at that stride | 30632 | // stride, so the dense `w x h` residual is re-laid at that stride |
| 30607 | // (`TxParams::stride`) after the inverse transform. | 30633 | // (`TxParams::stride`) after the inverse transform. |
| 30608 | let tx = TxParams { | 30634 | let tx = TxParams { |
| 30635 | + plane: plane_idx, | ||
| 30609 | w, | 30636 | w, |
| 30610 | h, | 30637 | h, |
| 30611 | bit_depth: bit_depth(fctx), | 30638 | bit_depth: bit_depth(fctx), |
| @@ -37710,6 +37737,7 @@ fn read_inter_plane( | |||
| 37710 | let grid = extend_corner(grid, tx_side, tx_side, side, side); | 37737 | let grid = extend_corner(grid, tx_side, tx_side, side, side); |
| 37711 | let (dc_delta, ac_delta) = plane_q_delta(plane_idx, fctx); | 37738 | let (dc_delta, ac_delta) = plane_q_delta(plane_idx, fctx); |
| 37712 | let tx = TxParams { | 37739 | let tx = TxParams { |
| 37740 | + plane: plane_idx, | ||
| 37713 | w: side, | 37741 | w: side, |
| 37714 | h: side, | 37742 | h: side, |
| 37715 | bit_depth: bit_depth(fctx), | 37743 | bit_depth: bit_depth(fctx), |
crates/ec-av1/src/refusal_inventory.rsmodified+153 -4
| @@ -301,7 +301,47 @@ const REFUSALS: &[&str] = &[ | |||
| 301 | /// `a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact` is the | 301 | /// `a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact` is the |
| 302 | /// witness. | 302 | /// witness. |
| 303 | #[cfg(test)] | 303 | #[cfg(test)] |
| 304 | -const PROVEN: &[(&str, &str)] = &[ | 304 | +/// Which KIND of proof each [`PROVEN`] row carries. |
| 305 | +/// | ||
| 306 | +/// A 2-tuple made every row look equally proven, which is the whole defect: | ||
| 307 | +/// a row whose gate drives a hand-built stream into the guard and a row | ||
| 308 | +/// whose gate sweeps an alphabet and shows nothing reaches it are held to | ||
| 309 | +/// the same standard and read the same way. `label()` is what the tests | ||
| 310 | +/// print, so the distinction is visible in the suite's own output. | ||
| 311 | +/// | ||
| 312 | +/// lane-av1refusalclaim r3 also proposed a third variant, `TablePin` | ||
| 313 | +/// ("the arms are pinned exactly but the domain the table is REACHED over | ||
| 314 | +/// is unestablished"). It is deliberately NOT carried: the one row it was | ||
| 315 | +/// minted for now has a gate that establishes the reach domain | ||
| 316 | +/// (`every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table` | ||
| 317 | +/// reads the eight `decode_block_rect` call sites' own literal `bw`/`bh`, | ||
| 318 | +/// pins the resulting chroma table exactly, and asserts the `(4,8)`/`(8,4)` | ||
| 319 | +/// residual is UNPRODUCIBLE), so `Enumeration` is the honest tag and a | ||
| 320 | +/// variant with no row would be dead weight. Re-add it the day a gate really | ||
| 321 | +/// pins a table without measuring its caller domain -- and give it a row. | ||
| 322 | +#[cfg(test)] | ||
| 323 | +enum Proof { | ||
| 324 | + /// A written stream REACHES the guard and is refused by this exact | ||
| 325 | + /// string: the gate goes RED if the guard is removed. | ||
| 326 | + NegativeGate, | ||
| 327 | + /// The gate enumerates every input the guard can be reached over and | ||
| 328 | + /// shows that none of them reaches it: it proves UNREACHABILITY, so it | ||
| 329 | + /// is GREEN if the guard is removed. | ||
| 330 | + Enumeration, | ||
| 331 | +} | ||
| 332 | + | ||
| 333 | +#[cfg(test)] | ||
| 334 | +impl Proof { | ||
| 335 | + fn label(&self) -> &'static str { | ||
| 336 | + match self { | ||
| 337 | + Proof::NegativeGate => "NEGATIVE (reaches the guard; red on removal)", | ||
| 338 | + Proof::Enumeration => "ENUMERATION (proves unreachability; green on removal)", | ||
| 339 | + } | ||
| 340 | + } | ||
| 341 | +} | ||
| 342 | + | ||
| 343 | +#[cfg(test)] | ||
| 344 | +const PROVEN: &[(&str, &str, Proof)] = &[ | ||
| 305 | // lane-t900 r20, census: three real streams present exactly the 18 | 345 | // lane-t900 r20, census: three real streams present exactly the 18 |
| 306 | // `(side, write_w, write_h)` triples `INTER_BLOCK_SHAPES` lists, and | 346 | // `(side, write_w, write_h)` triples `INTER_BLOCK_SHAPES` lists, and |
| 307 | // `rect_inter_residual_supported` covers every rectangular one -- the only | 347 | // `rect_inter_residual_supported` covers every rectangular one -- the only |
| @@ -318,6 +358,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 318 | ( | 358 | ( |
| 319 | "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding", | 359 | "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding", |
| 320 | "a_block_shape_census_over_three_real_streams_leaves_the_rect_residual_refusal_unreachable", | 360 | "a_block_shape_census_over_three_real_streams_leaves_the_rect_residual_refusal_unreachable", |
| 361 | + Proof::Enumeration, | ||
| 321 | ), | 362 | ), |
| 322 | // lane-t900 r20, census: the shapes that can reach `decode_intra_rect_in_inter`'s | 363 | // lane-t900 r20, census: the shapes that can reach `decode_intra_rect_in_inter`'s |
| 323 | // size-group/tx-category lookup are the ten rectangular census shapes with | 364 | // size-group/tx-category lookup are the ten rectangular census shapes with |
| @@ -326,6 +367,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 326 | ( | 367 | ( |
| 327 | "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)", | 368 | "an intra-coded {bw}x{bh} block on the inter block path (no size-group/tx-category row for that shape here)", |
| 328 | "every_intra_in_inter_shape_the_census_lists_has_a_size_group_row", | 369 | "every_intra_in_inter_shape_the_census_lists_has_a_size_group_row", |
| 370 | + Proof::Enumeration, | ||
| 329 | ), | 371 | ), |
| 330 | // lane-t900 r20, census: the only sub-8 footprints three real streams | 372 | // lane-t900 r20, census: the only sub-8 footprints three real streams |
| 331 | // present are the 16x4/4x16 strips of a 16x16-level 1:4 partition, whose | 373 | // present are the 16x4/4x16 strips of a 16x16-level 1:4 partition, whose |
| @@ -334,6 +376,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 334 | ( | 376 | ( |
| 335 | "an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition (its 4:2:0 chroma pair is coded once for two strips; only the inter path implements that pairing)", | 377 | "an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition (its 4:2:0 chroma pair is coded once for two strips; only the inter path implements that pairing)", |
| 336 | "a_sub8_footprint_census_over_real_streams_leaves_the_intra_16x4_pairing_refusal_unreachable", | 378 | "a_sub8_footprint_census_over_real_streams_leaves_the_intra_16x4_pairing_refusal_unreachable", |
| 379 | + Proof::Enumeration, | ||
| 337 | ), | 380 | ), |
| 338 | // lane-t900 r20, census: the rect transform tables and scans, enumerated | 381 | // lane-t900 r20, census: the rect transform tables and scans, enumerated |
| 339 | // over the shapes the measured block-shape domain hands each helper (block | 382 | // over the shapes the measured block-shape domain hands each helper (block |
| @@ -347,14 +390,17 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 347 | ( | 390 | ( |
| 348 | "a rectangular inter luma transform unit whose shape has no coefficient table set here", | 391 | "a rectangular inter luma transform unit whose shape has no coefficient table set here", |
| 349 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", | 392 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", |
| 393 | + Proof::Enumeration, | ||
| 350 | ), | 394 | ), |
| 351 | ( | 395 | ( |
| 352 | "a rectangular inter chroma transform unit whose shape has no coefficient table set here", | 396 | "a rectangular inter chroma transform unit whose shape has no coefficient table set here", |
| 353 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", | 397 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", |
| 398 | + Proof::Enumeration, | ||
| 354 | ), | 399 | ), |
| 355 | ( | 400 | ( |
| 356 | "a rectangular transform unit whose shape has no coefficient scan table here", | 401 | "a rectangular transform unit whose shape has no coefficient scan table here", |
| 357 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", | 402 | "every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan", |
| 403 | + Proof::Enumeration, | ||
| 358 | ), | 404 | ), |
| 359 | // lane-t900 r21, enumeration: a var-tx leaf is never larger than the unit | 405 | // lane-t900 r21, enumeration: a var-tx leaf is never larger than the unit |
| 360 | // the tree was entered with, and both callers enter at or below their own | 406 | // the tree was entered with, and both callers enter at or below their own |
| @@ -363,10 +409,12 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 363 | ( | 409 | ( |
| 364 | "an inter var-tx tree with a leaf transform larger than 32x32", | 410 | "an inter var-tx tree with a leaf transform larger than 32x32", |
| 365 | "a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered", | 411 | "a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered", |
| 412 | + Proof::Enumeration, | ||
| 366 | ), | 413 | ), |
| 367 | ( | 414 | ( |
| 368 | "an inter var-tx tree with a leaf transform larger than 64x64", | 415 | "an inter var-tx tree with a leaf transform larger than 64x64", |
| 369 | "a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered", | 416 | "a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered", |
| 417 | + Proof::Enumeration, | ||
| 370 | ), | 418 | ), |
| 371 | // Pre-existing proofs, registered by lane-t900 r21: a negative gate (a | 419 | // Pre-existing proofs, registered by lane-t900 r21: a negative gate (a |
| 372 | // hand-built 12-bit sequence header is refused BY THIS EXACT STRING rather | 420 | // hand-built 12-bit sequence header is refused BY THIS EXACT STRING rather |
| @@ -380,32 +428,38 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 380 | ( | 428 | ( |
| 381 | "a 32x32 partition type this decoder does not code (value={part32})", | 429 | "a 32x32 partition type this decoder does not code (value={part32})", |
| 382 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | 430 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", |
| 431 | + Proof::Enumeration, | ||
| 383 | ), | 432 | ), |
| 384 | ( | 433 | ( |
| 385 | "an INTER 32x32 partition type this decoder does not code (value={part32})", | 434 | "an INTER 32x32 partition type this decoder does not code (value={part32})", |
| 386 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | 435 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", |
| 436 | + Proof::Enumeration, | ||
| 387 | ), | 437 | ), |
| 388 | ( | 438 | ( |
| 389 | "a 128x128 superblock partition value outside the 8-symbol alphabet", | 439 | "a 128x128 superblock partition value outside the 8-symbol alphabet", |
| 390 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | 440 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", |
| 441 | + Proof::Enumeration, | ||
| 391 | ), | 442 | ), |
| 392 | // lane-t900 r24, enumeration: the key-frame superblock root's own `match` | 443 | // lane-t900 r24, enumeration: the key-frame superblock root's own `match` |
| 393 | // has an arm for all ten `partition_w64` values. | 444 | // has an arm for all ten `partition_w64` values. |
| 394 | ( | 445 | ( |
| 395 | "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", | 446 | "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", |
| 396 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | 447 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", |
| 448 | + Proof::Enumeration, | ||
| 397 | ), | 449 | ), |
| 398 | // lane-t900 r24, enumeration: the inter 16x16-level if/else chain's | 450 | // lane-t900 r24, enumeration: the inter 16x16-level if/else chain's |
| 399 | // branches name all ten `partition_w16` values between them. | 451 | // branches name all ten `partition_w16` values between them. |
| 400 | ( | 452 | ( |
| 401 | "an inter 16x16-level partition value outside NONE/HORZ/VERT/SPLIT/AB/1:4", | 453 | "an inter 16x16-level partition value outside NONE/HORZ/VERT/SPLIT/AB/1:4", |
| 402 | "every_partition_value_of_an_if_chain_alphabet_is_named_by_a_branch", | 454 | "every_partition_value_of_an_if_chain_alphabet_is_named_by_a_branch", |
| 455 | + Proof::Enumeration, | ||
| 403 | ), | 456 | ), |
| 404 | // lane-t900 r24, enumeration: every (CDF width, symbol) pair a tx_type row | 457 | // lane-t900 r24, enumeration: every (CDF width, symbol) pair a tx_type row |
| 405 | // can present maps to a distinct member of that width's own set. | 458 | // can present maps to a distinct member of that width's own set. |
| 406 | ( | 459 | ( |
| 407 | "a tx_type symbol outside its CDF's own set: {t}", | 460 | "a tx_type symbol outside its CDF's own set: {t}", |
| 408 | "every_tx_type_symbol_of_every_cdf_width_maps_into_its_own_set", | 461 | "every_tx_type_symbol_of_every_cdf_width_maps_into_its_own_set", |
| 462 | + Proof::Enumeration, | ||
| 409 | ), | 463 | ), |
| 410 | // lane-t900 r24 + lane-av1txr RE-PIN, measured: the reader covers spec | 464 | // lane-t900 r24 + lane-av1txr RE-PIN, measured: the reader covers spec |
| 411 | // 5.11.40's whole value domain (`0..=(1 << 20) - 2`, both ends of every | 465 | // 5.11.40's whole value domain (`0..=(1 << 20) - 2`, both ends of every |
| @@ -419,6 +473,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 419 | ( | 473 | ( |
| 420 | "a Golomb tail longer than this decoder reads", | 474 | "a Golomb tail longer than this decoder reads", |
| 421 | "read_golomb_reads_every_value_a_conformant_stream_can_carry", | 475 | "read_golomb_reads_every_value_a_conformant_stream_can_carry", |
| 476 | + Proof::Enumeration, | ||
| 422 | ), | 477 | ), |
| 423 | // lane-t900 r25, enumeration: `parse_tile_group` is the only producer of | 478 | // lane-t900 r25, enumeration: `parse_tile_group` is the only producer of |
| 424 | // the `tiles` vector `decode_stream` tests, and its success path always | 479 | // the `tiles` vector `decode_stream` tests, and its success path always |
| @@ -427,6 +482,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 427 | ( | 482 | ( |
| 428 | "a frame OBU with no tile group", | 483 | "a frame OBU with no tile group", |
| 429 | "a_frame_obu_that_parses_always_carries_at_least_one_tile", | 484 | "a_frame_obu_that_parses_always_carries_at_least_one_tile", |
| 485 | + Proof::Enumeration, | ||
| 430 | ), | 486 | ), |
| 431 | // lane-t900 r25, negative gates: hand-built streams that reach each | 487 | // lane-t900 r25, negative gates: hand-built streams that reach each |
| 432 | // refusal by name and output no picture (a `show_existing_frame` header | 488 | // refusal by name and output no picture (a `show_existing_frame` header |
| @@ -434,10 +490,12 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 434 | ( | 490 | ( |
| 435 | "a show_existing_frame header naming an empty reference slot", | 491 | "a show_existing_frame header naming an empty reference slot", |
| 436 | "a_show_existing_frame_header_naming_an_empty_slot_is_refused_by_name", | 492 | "a_show_existing_frame_header_naming_an_empty_slot_is_refused_by_name", |
| 493 | + Proof::NegativeGate, | ||
| 437 | ), | 494 | ), |
| 438 | ( | 495 | ( |
| 439 | "an inter frame with no key frame before it", | 496 | "an inter frame with no key frame before it", |
| 440 | "an_inter_frame_opening_a_stream_is_refused_by_name", | 497 | "an_inter_frame_opening_a_stream_is_refused_by_name", |
| 498 | + Proof::NegativeGate, | ||
| 441 | ), | 499 | ), |
| 442 | // lane-t900 r25, enumeration: a motion_mode/obmc symbol is read only under | 500 | // lane-t900 r25, enumeration: a motion_mode/obmc symbol is read only under |
| 443 | // `is_motion_variation_allowed_bsize` (min side >= 8), and each of the 17 | 501 | // `is_motion_variation_allowed_bsize` (min side >= 8), and each of the 17 |
| @@ -446,6 +504,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 446 | ( | 504 | ( |
| 447 | "a motion_mode symbol for a block shape with no CDF row here", | 505 | "a motion_mode symbol for a block shape with no CDF row here", |
| 448 | "every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row", | 506 | "every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row", |
| 507 | + Proof::Enumeration, | ||
| 449 | ), | 508 | ), |
| 450 | // lane-av112bit: real-aomenc 12-bit streams, each refused by name | 509 | // lane-av112bit: real-aomenc 12-bit streams, each refused by name |
| 451 | // (the gates encode with aomenc --bit-depth=12 and assert the exact | 510 | // (the gates encode with aomenc --bit-depth=12 and assert the exact |
| @@ -470,6 +529,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 470 | ( | 529 | ( |
| 471 | "a chroma format of 4:2:2 (subsampling_x != subsampling_y): this decoder decodes 4:2:0 and 4:4:4; 4:2:2 is not ported, and 4:4:0 (0,1) is not a codable cell", | 530 | "a chroma format of 4:2:2 (subsampling_x != subsampling_y): this decoder decodes 4:2:0 and 4:4:4; 4:2:2 is not ported, and 4:4:0 (0,1) is not a codable cell", |
| 472 | "a_non_420_subsampled_sequence_header_is_refused_by_name", | 531 | "a_non_420_subsampled_sequence_header_is_refused_by_name", |
| 532 | + Proof::NegativeGate, | ||
| 473 | ), | 533 | ), |
| 474 | // lane-av1txr-r2 paired, lane-av1-qmatrix RETIRED with its gate: the | 534 | // lane-av1txr-r2 paired, lane-av1-qmatrix RETIRED with its gate: the |
| 475 | // refusal's witness is now | 535 | // refusal's witness is now |
| @@ -488,6 +548,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 488 | ( | 548 | ( |
| 489 | "an intra mode this decoder does not code (round 2)", | 549 | "an intra mode this decoder does not code (round 2)", |
| 490 | "every_intra_mode_symbol_of_the_y_mode_alphabet_is_coded", | 550 | "every_intra_mode_symbol_of_the_y_mode_alphabet_is_coded", |
| 551 | + Proof::Enumeration, | ||
| 491 | ), | 552 | ), |
| 492 | // lane-t900 r26, enumeration: `compute_image_size` is 0 only for a zero | 553 | // lane-t900 r26, enumeration: `compute_image_size` is 0 only for a zero |
| 493 | // frame width/height, which no path a header can code produces (swept | 554 | // frame width/height, which no path a header can code produces (swept |
| @@ -495,6 +556,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 495 | ( | 556 | ( |
| 496 | "a frame with no mode-info grid", | 557 | "a frame with no mode-info grid", |
| 497 | "every_frame_size_a_header_can_code_has_a_mode_info_grid", | 558 | "every_frame_size_a_header_can_code_has_a_mode_info_grid", |
| 559 | + Proof::Enumeration, | ||
| 498 | ), | 560 | ), |
| 499 | // lane-t900 r26, negative gates: written streams that reach each refusal | 561 | // lane-t900 r26, negative gates: written streams that reach each refusal |
| 500 | // by name (a 64x32 inter frame over a 64x64 reference; a stream opening on | 562 | // by name (a 64x32 inter frame over a 64x64 reference; a stream opening on |
| @@ -511,6 +573,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 511 | ( | 573 | ( |
| 512 | "a reference frame selected with no picture at this frame's own ref_frame_idx slot for it", | 574 | "a reference frame selected with no picture at this frame's own ref_frame_idx slot for it", |
| 513 | "a_selected_reference_with_an_empty_ref_frame_idx_slot_refuses_by_name", | 575 | "a_selected_reference_with_an_empty_ref_frame_idx_slot_refuses_by_name", |
| 576 | + Proof::NegativeGate, | ||
| 514 | ), | 577 | ), |
| 515 | // lane-t900 r27, negative gate + census: a written key frame carrying | 578 | // lane-t900 r27, negative gate + census: a written key frame carrying |
| 516 | // each of the three mode-overriding features (over three segment ids) is | 579 | // each of the three mode-overriding features (over three segment ids) is |
| @@ -536,6 +599,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 536 | ( | 599 | ( |
| 537 | "a frame whose segmentation enables SEG_LVL_REF_FRAME/SKIP/GLOBALMV (this decoder reads segment_id but never lets a segment override a block's reference, skip or mode)", | 600 | "a frame whose segmentation enables SEG_LVL_REF_FRAME/SKIP/GLOBALMV (this decoder reads segment_id but never lets a segment override a block's reference, skip or mode)", |
| 538 | "a_frame_whose_segmentation_overrides_a_block_mode_is_refused_by_name", | 601 | "a_frame_whose_segmentation_overrides_a_block_mode_is_refused_by_name", |
| 602 | + Proof::NegativeGate, | ||
| 539 | ), | 603 | ), |
| 540 | // lane-t900 r27, structural audit + witness: `record_inter_rect_mi` is the | 604 | // lane-t900 r27, structural audit + witness: `record_inter_rect_mi` is the |
| 541 | // single writer of the interp-filter neighbour band, and no call site | 605 | // single writer of the interp-filter neighbour band, and no call site |
| @@ -549,6 +613,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 549 | ( | 613 | ( |
| 550 | "an OBMC neighbour whose switchable interp filter was never recorded", | 614 | "an OBMC neighbour whose switchable interp filter was never recorded", |
| 551 | "every_inter_record_publishes_an_obmc_readable_filter", | 615 | "every_inter_record_publishes_an_obmc_readable_filter", |
| 616 | + Proof::Enumeration, | ||
| 552 | ), | 617 | ), |
| 553 | // lane-t900 r28: all three scaled-reference (superres) refusals -- the | 618 | // lane-t900 r28: all three scaled-reference (superres) refusals -- the |
| 554 | // 8x8 partition leaf, the sub-8x8 inter block and warp -- are LIFTED and | 619 | // 8x8 partition leaf, the sub-8x8 inter block and warp -- are LIFTED and |
| @@ -564,10 +629,12 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 564 | ( | 629 | ( |
| 565 | "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here", | 630 | "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here", |
| 566 | "every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table", | 631 | "every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table", |
| 632 | + Proof::Enumeration, | ||
| 567 | ), | 633 | ), |
| 568 | ( | 634 | ( |
| 569 | "a split intra strip whose transform unit is {tx_w}x{tx_h} (no luma coefficient tables for that shape here)", | 635 | "a split intra strip whose transform unit is {tx_w}x{tx_h} (no luma coefficient tables for that shape here)", |
| 570 | "every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table", | 636 | "every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table", |
| 637 | + Proof::Enumeration, | ||
| 571 | ), | 638 | ), |
| 572 | // lane-av1-refusalaudit, enumeration + witness2 hunt: decode_block_rect64's | 639 | // lane-av1-refusalaudit, enumeration + witness2 hunt: decode_block_rect64's |
| 573 | // chroma-unit table covers every conformant 64-axis strip unit in both | 640 | // chroma-unit table covers every conformant 64-axis strip unit in both |
| @@ -581,6 +648,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 581 | ( | 648 | ( |
| 582 | "a 64-axis strip whose chroma unit has no coefficient table", | 649 | "a 64-axis strip whose chroma unit has no coefficient table", |
| 583 | "every_chroma_unit_a_64_axis_strip_can_present_has_a_coefficient_table", | 650 | "every_chroma_unit_a_64_axis_strip_can_present_has_a_coefficient_table", |
| 651 | + Proof::Enumeration, | ||
| 584 | ), | 652 | ), |
| 585 | // lane-av1rect8x16, enumeration: `decode_block_rect`'s `_` arm. The nine | 653 | // lane-av1rect8x16, enumeration: `decode_block_rect`'s `_` arm. The nine |
| 586 | // textual `decode_block_rect(` matches are 1 declaration + 8 call sites | 654 | // textual `decode_block_rect(` matches are 1 declaration + 8 call sites |
| @@ -602,6 +670,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 602 | ( | 670 | ( |
| 603 | "a rectangular chroma transform whose size has no coefficient table", | 671 | "a rectangular chroma transform whose size has no coefficient table", |
| 604 | "every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table", | 672 | "every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table", |
| 673 | + Proof::Enumeration, | ||
| 605 | ), | 674 | ), |
| 606 | // lane-t900 r33, enumeration: each of the four symbols this guard tests is | 675 | // lane-t900 r33, enumeration: each of the four symbols this guard tests is |
| 607 | // read under a size gate that no 128-pixel side passes (the call site's | 676 | // read under a size gate that no 128-pixel side passes (the call site's |
| @@ -610,6 +679,7 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 610 | ( | 679 | ( |
| 611 | "CfL, filter intra or a palette on a 128-root HORZ/VERT intra block (every one of their size gates caps at 64x64 or below, so none of these symbols exists there)", | 680 | "CfL, filter intra or a palette on a 128-root HORZ/VERT intra block (every one of their size gates caps at 64x64 or below, so none of these symbols exists there)", |
| 612 | "no_128_root_half_reads_a_cfl_filter_intra_or_palette_symbol", | 681 | "no_128_root_half_reads_a_cfl_filter_intra_or_palette_symbol", |
| 682 | + Proof::Enumeration, | ||
| 613 | ), | 683 | ), |
| 614 | // lane-av1txr: the sub-8x8 intrabc refusal this census pinned is GONE (the | 684 | // lane-av1txr: the sub-8x8 intrabc refusal this census pinned is GONE (the |
| 615 | // capability landed; see the note in `REFUSALS`). The census gate survives | 685 | // capability landed; see the note in `REFUSALS`). The census gate survives |
| @@ -628,10 +698,12 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 628 | ( | 698 | ( |
| 629 | "a reference picture whose height does not match this frame's own true size", | 699 | "a reference picture whose height does not match this frame's own true size", |
| 630 | "an_inter_frame_shorter_than_its_reference_is_refused_by_name", | 700 | "an_inter_frame_shorter_than_its_reference_is_refused_by_name", |
| 701 | + Proof::NegativeGate, | ||
| 631 | ), | 702 | ), |
| 632 | ( | 703 | ( |
| 633 | "a frame naming primary_ref_frame at a reference slot with no saved CDF state", | 704 | "a frame naming primary_ref_frame at a reference slot with no saved CDF state", |
| 634 | "an_inter_frame_naming_an_unrefreshed_primary_ref_slot_is_refused_by_name", | 705 | "an_inter_frame_naming_an_unrefreshed_primary_ref_slot_is_refused_by_name", |
| 706 | + Proof::NegativeGate, | ||
| 635 | ), | 707 | ), |
| 636 | ]; | 708 | ]; |
| 637 | 709 | ||
| @@ -703,7 +775,8 @@ pub(crate) fn pins_refusal(src: &str, refusal: &str) -> bool { | |||
| 703 | #[cfg(test)] | 775 | #[cfg(test)] |
| 704 | mod tests { | 776 | mod tests { |
| 705 | use super::{ | 777 | use super::{ |
| 706 | - CAPABILITY_CLAIMS, GATES_THAT_SKIP_ON_A_DECODE_ERROR, PROVEN, REFUSALS, squash_source, | 778 | + CAPABILITY_CLAIMS, GATES_THAT_SKIP_ON_A_DECODE_ERROR, PROVEN, Proof, REFUSALS, |
| 779 | + squash_source, | ||
| 707 | }; | 780 | }; |
| 708 | use std::collections::BTreeSet; | 781 | use std::collections::BTreeSet; |
| 709 | 782 | ||
| @@ -2544,7 +2617,7 @@ mod tests { | |||
| 2544 | let mut neither: Vec<&str> = Vec::new(); | 2617 | let mut neither: Vec<&str> = Vec::new(); |
| 2545 | let mut unanchored: Vec<String> = Vec::new(); | 2618 | let mut unanchored: Vec<String> = Vec::new(); |
| 2546 | let mut unbounded: Vec<String> = Vec::new(); | 2619 | let mut unbounded: Vec<String> = Vec::new(); |
| 2547 | - for (reason, gate) in PROVEN { | 2620 | + for (reason, gate, _kind) in PROVEN { |
| 2548 | assert!( | 2621 | assert!( |
| 2549 | found.contains(*reason), | 2622 | found.contains(*reason), |
| 2550 | "{reason:?} is listed as proven but is no longer a decode-path refusal -- \ | 2623 | "{reason:?} is listed as proven but is no longer a decode-path refusal -- \ |
| @@ -2646,7 +2719,7 @@ mod tests { | |||
| 2646 | #[test] | 2719 | #[test] |
| 2647 | fn every_named_gate_body_is_bounded_in_these_files() { | 2720 | fn every_named_gate_body_is_bounded_in_these_files() { |
| 2648 | let mut resolved = 0usize; | 2721 | let mut resolved = 0usize; |
| 2649 | - for (reason, gate) in PROVEN { | 2722 | + for (reason, gate, _kind) in PROVEN { |
| 2650 | let body = | 2723 | let body = |
| 2651 | gate_body(gate).unwrap_or_else(|why| panic!("{reason:?} names {gate}: {why}")); | 2724 | gate_body(gate).unwrap_or_else(|why| panic!("{reason:?} names {gate}: {why}")); |
| 2652 | assert!( | 2725 | assert!( |
| @@ -2668,6 +2741,82 @@ mod tests { | |||
| 2668 | } | 2741 | } |
| 2669 | } | 2742 | } |
| 2670 | 2743 | ||
| 2744 | + /// The taxonomy is a CLAIM about each row, so it carries its own | ||
| 2745 | + /// non-vacuity: every variant is used by at least one row (a variant no | ||
| 2746 | + /// row can be in is not a category), the two labels do not collapse into | ||
| 2747 | + /// one string, and the row lane-av1refusalclaim r3 wanted to RE-TAG is | ||
| 2748 | + /// tagged from evidence inside its own gate BODY -- never from the | ||
| 2749 | + /// gate's name, which is the only thing the previous 2-tuple carried. | ||
| 2750 | + /// | ||
| 2751 | + /// r3 minted a `TablePin` variant because "a rectangular chroma transform | ||
| 2752 | + /// whose size has no coefficient table" was pinned to a table whose | ||
| 2753 | + /// REACHED-OVER domain had never been measured. Main has since replaced | ||
| 2754 | + /// that row's gate with one that reads the eight `decode_block_rect` call | ||
| 2755 | + /// sites' own literal `bw`/`bh`, pins the resulting chroma table exactly, | ||
| 2756 | + /// and asserts the `(4,8)`/`(8,4)` residual is UNPRODUCIBLE. `Enumeration` | ||
| 2757 | + /// is therefore the honest tag and `TablePin` is not carried; if a later | ||
| 2758 | + /// edit weakens that gate back to a bare table pin, the three evidence | ||
| 2759 | + /// pins below go red instead of leaving the row quietly overclaiming. | ||
| 2760 | + #[test] | ||
| 2761 | + fn every_proven_row_names_which_kind_of_proof_it_carries() { | ||
| 2762 | + let mut negative = 0usize; | ||
| 2763 | + let mut enumeration = 0usize; | ||
| 2764 | + for (reason, gate, kind) in PROVEN { | ||
| 2765 | + eprintln!(" {} -- {reason:?} -> {gate}", kind.label()); | ||
| 2766 | + match kind { | ||
| 2767 | + Proof::NegativeGate => negative += 1, | ||
| 2768 | + Proof::Enumeration => enumeration += 1, | ||
| 2769 | + } | ||
| 2770 | + } | ||
| 2771 | + assert_eq!( | ||
| 2772 | + negative + enumeration, | ||
| 2773 | + PROVEN.len(), | ||
| 2774 | + "a PROVEN row carries no proof kind, so the table says nothing about it" | ||
| 2775 | + ); | ||
| 2776 | + assert!( | ||
| 2777 | + negative > 0, | ||
| 2778 | + "no row is tagged NEGATIVE, so the NegativeGate variant is dead weight" | ||
| 2779 | + ); | ||
| 2780 | + assert!( | ||
| 2781 | + enumeration > 0, | ||
| 2782 | + "no row is tagged ENUMERATION, so the Enumeration variant is dead weight" | ||
| 2783 | + ); | ||
| 2784 | + assert_ne!( | ||
| 2785 | + Proof::NegativeGate.label(), | ||
| 2786 | + Proof::Enumeration.label(), | ||
| 2787 | + "the two kinds print the same string, so the taxonomy is one category in two hats" | ||
| 2788 | + ); | ||
| 2789 | + | ||
| 2790 | + let (reason, gate, kind) = PROVEN | ||
| 2791 | + .iter() | ||
| 2792 | + .find(|(reason, _, _)| { | ||
| 2793 | + *reason == "a rectangular chroma transform whose size has no coefficient table" | ||
| 2794 | + }) | ||
| 2795 | + .map(|(reason, gate, kind)| (*reason, *gate, kind)) | ||
| 2796 | + .expect("the (4,8) chroma-table row left PROVEN"); | ||
| 2797 | + assert!( | ||
| 2798 | + matches!(kind, Proof::Enumeration), | ||
| 2799 | + "{reason:?} is tagged {:?}, but its gate enumerates the caller domain", | ||
| 2800 | + kind.label() | ||
| 2801 | + ); | ||
| 2802 | + let body = gate_body(gate).unwrap_or_else(|why| panic!("{reason:?} names {gate}: {why}")); | ||
| 2803 | + for evidence in [ | ||
| 2804 | + "the number of decode_block_rect call sites changed", | ||
| 2805 | + "for residual in [(4usize, 8usize), (8, 4)]", | ||
| 2806 | + "the caller set can now produce a 4x8/8x4 chroma shape", | ||
| 2807 | + ] { | ||
| 2808 | + assert!( | ||
| 2809 | + body.contains(evidence), | ||
| 2810 | + "{gate} no longer carries {evidence:?}, so the Enumeration tag on {reason:?} \ | ||
| 2811 | + claims a reach domain the gate has stopped measuring" | ||
| 2812 | + ); | ||
| 2813 | + } | ||
| 2814 | + eprintln!( | ||
| 2815 | + "refusal inventory: {negative} NEGATIVE, {enumeration} ENUMERATION of {} PROVEN rows", | ||
| 2816 | + PROVEN.len() | ||
| 2817 | + ); | ||
| 2818 | + } | ||
| 2819 | + | ||
| 2671 | /// Lane-av1refusalspan: the invariant that catches a boundary that | 2820 | /// Lane-av1refusalspan: the invariant that catches a boundary that |
| 2672 | /// over-reaches. Tested on its own text, so it cannot be satisfied by the | 2821 | /// over-reaches. Tested on its own text, so it cannot be satisfied by the |
| 2673 | /// scanner happening to be right on the current sources. | 2822 | /// scanner happening to be right on the current sources. |
crates/ec-av1/src/transform.rsmodified+50 -8
| @@ -1381,6 +1381,15 @@ pub fn dequant_and_inverse_typed_wh( | |||
| 1381 | // the twin of the oracle's `EC_DQCOEFF` rung (whose own layout is | 1381 | // the twin of the oracle's `EC_DQCOEFF` rung (whose own layout is |
| 1382 | // column-major `input[c * h + r]`), so a residual mismatch whose | 1382 | // column-major `input[c * h + r]`), so a residual mismatch whose |
| 1383 | // levels already agree is separable into dequant vs transform. | 1383 | // levels already agree is separable into dequant vs transform. |
| 1384 | + // | ||
| 1385 | + // LOSSY PATH ONLY (lane-av1loss444mm): a LOSSLESS 4x4 unit never | ||
| 1386 | + // reaches this function -- `decode.rs` routes it to | ||
| 1387 | + // `dequant_and_inverse_wht4x4` -- so on a lossless stream this rung | ||
| 1388 | + // printed NOTHING while the oracle's printed thousands of lines, and | ||
| 1389 | + // that silence reads as "no coefficients" rather than "wrong function". | ||
| 1390 | + // The lossless twin is `OUR_DQW` in `dequant_and_inverse_wht4x4`, | ||
| 1391 | + // below; both carry `plane=` so a chroma grid can be told from a luma | ||
| 1392 | + // one (the oracle's line carries it too). | ||
| 1384 | if crate::envflags::env_flag!("EC_DQCOEFF") { | 1393 | if crate::envflags::env_flag!("EC_DQCOEFF") { |
| 1385 | let nz: Vec<String> = dq | 1394 | let nz: Vec<String> = dq |
| 1386 | .iter() | 1395 | .iter() |
| @@ -3144,6 +3153,7 @@ pub fn inverse_wht4x4(dq: &[i32]) -> Vec<i32> { | |||
| 3144 | /// marker contract). | 3153 | /// marker contract). |
| 3145 | pub fn dequant_and_inverse_wht4x4( | 3154 | pub fn dequant_and_inverse_wht4x4( |
| 3146 | levels: &[i32], | 3155 | levels: &[i32], |
| 3156 | + plane: usize, | ||
| 3147 | bit_depth: u8, | 3157 | bit_depth: u8, |
| 3148 | q_idx: i32, | 3158 | q_idx: i32, |
| 3149 | dc_delta: i32, | 3159 | dc_delta: i32, |
| @@ -3160,6 +3170,35 @@ pub fn dequant_and_inverse_wht4x4( | |||
| 3160 | crate::quant::dequant_wh_into( | 3170 | crate::quant::dequant_wh_into( |
| 3161 | levels, &mut dq, 4, 4, bit_depth, q_idx, dc_delta, ac_delta, None, | 3171 | levels, &mut dq, 4, 4, bit_depth, q_idx, dc_delta, ac_delta, None, |
| 3162 | ); | 3172 | ); |
| 3173 | + // lane-av1loss444mm: the LOSSLESS half of the oracle's `EC_DQCOEFF` | ||
| 3174 | + // twin. Same env var, same `pos:value` nonzero form, PLUS `plane=` | ||
| 3175 | + // -- which is what makes the two ladders pairable: without it a 4x4 | ||
| 3176 | + // chroma grid is indistinguishable from a luma one and an | ||
| 3177 | + // order-paired comparison of the two sides collapses (measured on | ||
| 3178 | + // `ll444-lossless-key.obu`: equal unit counts and value ratios of | ||
| 3179 | + // exactly 1.0, yet 16 of 2053 units matched). | ||
| 3180 | + if crate::envflags::env_flag!("EC_DQCOEFF") { | ||
| 3181 | + let nz: Vec<String> = dq[..16] | ||
| 3182 | + .iter() | ||
| 3183 | + .enumerate() | ||
| 3184 | + .filter(|&(_, &v)| v != 0) | ||
| 3185 | + .map(|(i, &v)| format!("{i}:{v}")) | ||
| 3186 | + .collect(); | ||
| 3187 | + // `lv=` is the RAW level grid the dequant consumed: if `nz` is | ||
| 3188 | + // empty while `lv` is not, `dequant_wh_into` is what zeroed it, and | ||
| 3189 | + // this line says so instead of leaving the next lane to infer it. | ||
| 3190 | + let lv: Vec<String> = levels[..16] | ||
| 3191 | + .iter() | ||
| 3192 | + .enumerate() | ||
| 3193 | + .filter(|&(_, &v)| v != 0) | ||
| 3194 | + .map(|(i, &v)| format!("{i}:{v}")) | ||
| 3195 | + .collect(); | ||
| 3196 | + eprintln!( | ||
| 3197 | + "OUR_DQW plane={plane} w=4 h=4 q={q_idx} dcd={dc_delta} acd={ac_delta} nz={} lv={}", | ||
| 3198 | + nz.join(","), | ||
| 3199 | + lv.join(",") | ||
| 3200 | + ); | ||
| 3201 | + } | ||
| 3163 | inverse_wht4x4(&dq[..16]) | 3202 | inverse_wht4x4(&dq[..16]) |
| 3164 | }) | 3203 | }) |
| 3165 | } | 3204 | } |
| @@ -3200,6 +3239,7 @@ pub fn dequant_and_inverse_wht4x4( | |||
| 3200 | /// Returns the same empty-grid marker as [`dequant_and_inverse_wht4x4`]. | 3239 | /// Returns the same empty-grid marker as [`dequant_and_inverse_wht4x4`]. |
| 3201 | pub fn dequant_and_inverse_wht( | 3240 | pub fn dequant_and_inverse_wht( |
| 3202 | levels: &[i32], | 3241 | levels: &[i32], |
| 3242 | + plane: usize, | ||
| 3203 | w: usize, | 3243 | w: usize, |
| 3204 | h: usize, | 3244 | h: usize, |
| 3205 | bit_depth: u8, | 3245 | bit_depth: u8, |
| @@ -3208,7 +3248,7 @@ pub fn dequant_and_inverse_wht( | |||
| 3208 | ac_delta: i32, | 3248 | ac_delta: i32, |
| 3209 | ) -> Vec<i32> { | 3249 | ) -> Vec<i32> { |
| 3210 | if w == 4 && h == 4 { | 3250 | if w == 4 && h == 4 { |
| 3211 | - return dequant_and_inverse_wht4x4(levels, bit_depth, q_idx, dc_delta, ac_delta); | 3251 | + return dequant_and_inverse_wht4x4(levels, plane, bit_depth, q_idx, dc_delta, ac_delta); |
| 3212 | } | 3252 | } |
| 3213 | if crate::decode::is_zero_grid(levels) { | 3253 | if crate::decode::is_zero_grid(levels) { |
| 3214 | return Vec::new(); | 3254 | return Vec::new(); |
| @@ -3227,7 +3267,8 @@ pub fn dequant_and_inverse_wht( | |||
| 3227 | }; | 3267 | }; |
| 3228 | } | 3268 | } |
| 3229 | } | 3269 | } |
| 3230 | - let res = dequant_and_inverse_wht4x4(&tile, bit_depth, q_idx, dc_delta, ac_delta); | 3270 | + let res = |
| 3271 | + dequant_and_inverse_wht4x4(&tile, plane, bit_depth, q_idx, dc_delta, ac_delta); | ||
| 3231 | // An all-zero tile dequantizes to the same empty marker a 4x4 | 3272 | // An all-zero tile dequantizes to the same empty marker a 4x4 |
| 3232 | // caller passes straight through, and `out` is already zero -- | 3273 | // caller passes straight through, and `out` is already zero -- |
| 3233 | // copying out of it would index an empty slice. | 3274 | // copying out of it would index an empty slice. |
| @@ -3342,12 +3383,13 @@ mod lossless_tx_tests { | |||
| 3342 | }; | 3383 | }; |
| 3343 | for &(w, h) in &[(8usize, 4usize), (4, 8), (8, 8), (16, 4), (4, 16), (16, 16)] { | 3384 | for &(w, h) in &[(8usize, 4usize), (4, 8), (8, 8), (16, 4), (4, 16), (16, 16)] { |
| 3344 | let levels: Vec<i32> = (0..w * h).map(|_| next()).collect(); | 3385 | let levels: Vec<i32> = (0..w * h).map(|_| next()).collect(); |
| 3345 | - let got = super::dequant_and_inverse_wht(&levels, w, h, 10, 0, 0, 0); | 3386 | + let got = super::dequant_and_inverse_wht(&levels, 0, w, h, 10, 0, 0, 0); |
| 3346 | let mut want = vec![0i32; w * h]; | 3387 | let mut want = vec![0i32; w * h]; |
| 3347 | for ty in 0..h / 4 { | 3388 | for ty in 0..h / 4 { |
| 3348 | for tx in 0..w / 4 { | 3389 | for tx in 0..w / 4 { |
| 3349 | let unit = super::dequant_and_inverse_wht4x4( | 3390 | let unit = super::dequant_and_inverse_wht4x4( |
| 3350 | &tile_of(&levels, w, tx, ty), | 3391 | &tile_of(&levels, w, tx, ty), |
| 3392 | + 0, | ||
| 3351 | 10, | 3393 | 10, |
| 3352 | 0, | 3394 | 0, |
| 3353 | 0, | 3395 | 0, |
| @@ -3382,7 +3424,7 @@ mod lossless_tx_tests { | |||
| 3382 | levels[0] = 400; | 3424 | levels[0] = 400; |
| 3383 | levels[1] = -240; | 3425 | levels[1] = -240; |
| 3384 | levels[2] = 88; | 3426 | levels[2] = 88; |
| 3385 | - let got = super::dequant_and_inverse_wht(&levels, 8, 4, 10, 0, 0, 0); | 3427 | + let got = super::dequant_and_inverse_wht(&levels, 0, 8, 4, 10, 0, 0, 0); |
| 3386 | assert_eq!(got.len(), 32, "8x4 residual length"); | 3428 | assert_eq!(got.len(), 32, "8x4 residual length"); |
| 3387 | let mut want = vec![0i32; 32]; | 3429 | let mut want = vec![0i32; 32]; |
| 3388 | for (tx, ty) in [(0usize, 0usize), (1, 0)] { | 3430 | for (tx, ty) in [(0usize, 0usize), (1, 0)] { |
| @@ -3392,7 +3434,7 @@ mod lossless_tx_tests { | |||
| 3392 | t[r * 4 + c] = levels[(ty * 4 + r) * 8 + tx * 4 + c]; | 3434 | t[r * 4 + c] = levels[(ty * 4 + r) * 8 + tx * 4 + c]; |
| 3393 | } | 3435 | } |
| 3394 | } | 3436 | } |
| 3395 | - let unit = super::dequant_and_inverse_wht4x4(&t, 10, 0, 0, 0); | 3437 | + let unit = super::dequant_and_inverse_wht4x4(&t, 0, 10, 0, 0, 0); |
| 3396 | if unit.is_empty() { | 3438 | if unit.is_empty() { |
| 3397 | continue; | 3439 | continue; |
| 3398 | } | 3440 | } |
| @@ -3422,8 +3464,8 @@ mod lossless_tx_tests { | |||
| 3422 | }) | 3464 | }) |
| 3423 | .collect(); | 3465 | .collect(); |
| 3424 | assert_eq!( | 3466 | assert_eq!( |
| 3425 | - super::dequant_and_inverse_wht(&levels, 4, 4, 8, 0, 0, 0), | 3467 | + super::dequant_and_inverse_wht(&levels, 0, 4, 4, 8, 0, 0, 0), |
| 3426 | - super::dequant_and_inverse_wht4x4(&levels, 8, 0, 0, 0), | 3468 | + super::dequant_and_inverse_wht4x4(&levels, 0, 8, 0, 0, 0), |
| 3427 | "levels={levels:?}" | 3469 | "levels={levels:?}" |
| 3428 | ); | 3470 | ); |
| 3429 | } | 3471 | } |
| @@ -3437,7 +3479,7 @@ mod lossless_tx_tests { | |||
| 3437 | #[test] | 3479 | #[test] |
| 3438 | fn a_non_4x4_all_zero_lossless_unit_keeps_the_empty_marker() { | 3480 | fn a_non_4x4_all_zero_lossless_unit_keeps_the_empty_marker() { |
| 3439 | assert!( | 3481 | assert!( |
| 3440 | - super::dequant_and_inverse_wht(&[0i32; 32], 8, 4, 10, 0, 0, 0).is_empty(), | 3482 | + super::dequant_and_inverse_wht(&[0i32; 32], 0, 8, 4, 10, 0, 0, 0).is_empty(), |
| 3441 | "an all-zero 8x4 lossless unit must stay the empty marker" | 3483 | "an all-zero 8x4 lossless unit must stay the empty marker" |
| 3442 | ); | 3484 | ); |
| 3443 | } | 3485 | } |
lanes/av1444rect.report.mdmodified+46 -4
| @@ -352,6 +352,42 @@ most likely a counting-shape difference (our var-tx leaves versus libaom's | |||
| 352 | unit walk) rather than a walk defect; it is NOT established either way, and I | 352 | unit walk) rather than a walk defect; it is NOT established either way, and I |
| 353 | am not claiming it. | 353 | am not claiming it. |
| 354 | 354 | ||
| 355 | +### Round 6 — the caller is NAMED | ||
| 356 | + | ||
| 357 | +Main's ask was to name the caller of the `read_coeffs_rect(4, 8, skip_ctx=0)` | ||
| 358 | +shape. Done with `#[track_caller]` on `read_coeffs_rect` and on | ||
| 359 | +`read_inter_plane_rect`, which turns every call into a file:line tag with no | ||
| 360 | +backtrace and no per-site edit. One run, exact answer: | ||
| 361 | + | ||
| 362 | +| bit | call site | plane | x, y | w x h | around | | ||
| 363 | +|---|---|---|---|---|---| | ||
| 364 | +| 6885 | `decode.rs:13165` | 0 | 416, 368 | 8x16 | (0,0,0) | | ||
| 365 | +| **6893 (the fork)** | **`decode.rs:13184`** | **1 (U)** | **208, 184** | **4x8** | **(0,0,0)** | | ||
| 366 | +| 6902 | `decode.rs:13202` | 2 (V) | 208, 184 | 4x8 | (0,0,0) | | ||
| 367 | + | ||
| 368 | +All three are inside **`decode_intrabc_rect`** (`decode.rs:12955`), its | ||
| 369 | +non-lossless whole-block rect arm — the `read_inter_plane_rect` triple for | ||
| 370 | +luma then U then V off one shared | ||
| 371 | +`around_mi_rect((mi_r, mi_c), bw, bh)` gather. The luma unit is 8x16, the | ||
| 372 | +chroma units 4x8, which at ss (0,0) means a **4x8 chroma unit under a 4x16 | ||
| 373 | +luma plane block** — the sub-8 unit walk, which is exactly the prior Agent142-2's | ||
| 374 | +census established and exactly the class shape. | ||
| 375 | + | ||
| 376 | +So the third instance of this lane's class is not a pair extent at all in its | ||
| 377 | +outward form: it is one gather, taken at the LUMA footprint, serving a CHROMA | ||
| 378 | +unit whose own extent is half that on the long axis. At 4:2:0 the two coincide | ||
| 379 | +after subsampling, which is why the 4:2:0 twin is byte-exact; at 4:4:4 they do | ||
| 380 | +not. | ||
| 381 | + | ||
| 382 | +**A second observation that is NOT yet established and I am not claiming:** at | ||
| 383 | +this same bit the oracle reports mi (90,108) — luma px (360,432) — while our | ||
| 384 | +chroma unit is at px (208,184), mi (46,52). Every read before this one paired | ||
| 385 | +exactly, so both decoders are at the same bit position after the same number of | ||
| 386 | +reads, which is hard to reconcile with a different block. Either the oracle's | ||
| 387 | +`xd->mi_row/mi_col` is not naming the same block our `x, y` name, or there is a | ||
| 388 | +position divergence I have not localised. Not established; recorded so the next | ||
| 389 | +lane does not have to rediscover the discrepancy. | ||
| 390 | + | ||
| 355 | **Handed back, not landed.** The remaining 4:4:4 intra-BC defect is a **4x8 | 391 | **Handed back, not landed.** The remaining 4:4:4 intra-BC defect is a **4x8 |
| 356 | rect coefficient unit**, present with 1:4 and rect partitions both disabled, | 392 | rect coefficient unit**, present with 1:4 and rect partitions both disabled, |
| 357 | and it is neither of the two candidates the follow-up named. Landing a partial | 393 | and it is neither of the two candidates the follow-up named. Landing a partial |
| @@ -370,10 +406,16 @@ fork left in this cell. | |||
| 370 | 406 | ||
| 371 | ## 7. Residue handed on, not fixed here | 407 | ## 7. Residue handed on, not fixed here |
| 372 | 408 | ||
| 373 | -- **4:4:4 intra-BC chroma** — a 4x8 rect coefficient unit: read 12465, | 409 | +- **4:4:4 intra-BC chroma** — a 4x8 rect coefficient unit. CALLER NAMED in |
| 374 | - mi (90,108), `read_coeffs_rect(w=4, h=8, skip_ctx=0)` at bit 6893; U and V | 410 | + round 6: `decode_intrabc_rect` (`decode.rs:12955`), the non-lossless |
| 375 | - first wrong at index 20532. Per §6; both originally-named candidates | 411 | + whole-block rect arm, at `decode.rs:13184` (U) and `13202` (V). One gather, |
| 376 | - eliminated by measurement, so this needs a fresh start, not a continuation. | 412 | + `around_mi_rect((mi_r, mi_c), bw, bh)`, taken at the LUMA footprint and |
| 413 | + serving a 4x8 chroma unit under a 4x16 luma plane block; at 4:2:0 the two | ||
| 414 | + coincide after subsampling (hence the exact 4:2:0 twin) and at 4:4:4 they do | ||
| 415 | + not. Fork read 12465, bit 6893, U and V first wrong at index 20532. Both | ||
| 416 | + originally-named candidates and the token-order hypothesis remain dead by | ||
| 417 | + measurement. Unexplained and unclaimed: at that bit the oracle reports mi | ||
| 418 | + (90,108) while our unit is at px (208,184) — see §6. | ||
| 377 | - **H2** and **H3** are with Agent24-2 as of this writing (Agent142-2's round | 419 | - **H2** and **H3** are with Agent24-2 as of this writing (Agent142-2's round |
| 378 | closed with the census committed); §5's retraction is the record they need. | 420 | closed with the census committed); §5's retraction is the record they need. |
| 379 | - **H4** — 4:4:4 lossless + tile rows, hard divergence. Own lane; untouched. | 421 | - **H4** — 4:4:4 lossless + tile rows, hard divergence. Own lane; untouched. |
lanes/av1readcensus.report.mdmodified+4 -3
| @@ -1,8 +1,9 @@ | |||
| 1 | # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled | 1 | # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled |
| 2 | 2 | ||
| 3 | -**Branch:** `lane-av1readcensus`, worktree `~/.cache/wt/av1readcensus`, stacked on | 3 | +**Branch:** `lane-av1chrtx` (my charter's branch), worktree `~/.cache/wt/av1chrtx`. |
| 4 | -`lane-av1chrtx` (`ff7cf47c`, whose `d791c464` threaded the real plane index into | 4 | +The census commit `ea97eb0c` sits on top of `ff7cf47c`, whose `d791c464` threaded |
| 5 | -`read_coeffs_rect`'s traces — the census pairs on that). | 5 | +the real plane index into `read_coeffs_rect`'s traces — the census pairs on that, |
| 6 | +and reuses its `plane` argument rather than adding a second one. | ||
| 6 | 7 | ||
| 7 | **Verdict: COUNTING SHAPE — and not even that. On every pixel-exact 4:4:4 arm | 8 | **Verdict: COUNTING SHAPE — and not even that. On every pixel-exact 4:4:4 arm |
| 8 | there is no asymmetry at all: both sides walk the same number of units, in the | 9 | there is no asymmetry at all: both sides walk the same number of units, in the |
lanes/av1testcount.report.mdadded+161 -0
| @@ -0,0 +1,161 @@ | |||
| 1 | +# lane-av1testcount — test-count census of the 13-branch merge wave | ||
| 2 | + | ||
| 3 | +**Read-only.** No repository file was edited except this report, which is | ||
| 4 | +committed on branch `lane-av1testcount` (worktree `~/.cache/wt/av1testcount`). | ||
| 5 | +Every number comes from `cargo test -p ec-av1 --lib -- --list` executed in a | ||
| 6 | +throwaway `git worktree` at each commit, in per-batch private | ||
| 7 | +`CARGO_TARGET_DIR`s (`~/.cache/cargo-target-tc1..4`) — the shared house target | ||
| 8 | +dir is not used, because a shared dir serves a sibling lane's binary and would | ||
| 9 | +have made this census a census of someone else's tree | ||
| 10 | +(`skill://counterfactual-ab-target-dir-provenance` variant 5). All 15 census | ||
| 11 | +worktrees were removed afterwards. | ||
| 12 | + | ||
| 13 | +**Re-measured 2026-09-30 (lane-breconcile), because main has moved well past | ||
| 14 | +`9623bcab` and a reader must not mistake this for a count of TODAY's tests.** | ||
| 15 | +Both anchors re-derived from scratch with `cargo test -p ec-av1 --lib -- --list` | ||
| 16 | +on fresh `git archive` extracts with private target dirs: | ||
| 17 | + | ||
| 18 | +``` | ||
| 19 | +298f75c4 (pre-merge base) 712 raw --list lines, 712 unique | ||
| 20 | +9623bcab (merged main) 742 raw, 742 unique | ||
| 21 | +b307aaeb (this tree) 802 raw, 802 unique | ||
| 22 | +``` | ||
| 23 | + | ||
| 24 | +So the load-bearing arithmetic still holds — 712 and 742 are what they were, | ||
| 25 | +and they are immutable facts about two immutable commits — but the tree this | ||
| 26 | +report's numbers would be compared against is now **802**, not 742. The 13 | ||
| 27 | +per-branch tip counts in §1 were NOT re-taken (13 more throwaway builds); they | ||
| 28 | +are the lane's own figures and are not re-verified here. What is re-verified is | ||
| 29 | +the pair the reconciliation stands on, plus zero duplicate registrations at | ||
| 30 | +both anchors, which is the property §2 names. | ||
| 31 | + | ||
| 32 | +## 1. The two commits | ||
| 33 | + | ||
| 34 | +| role | commit | subject | | ||
| 35 | +|---|---|---| | ||
| 36 | +| pre-merge base | `298f75c4` | `gitignore: let per-crate fixture pins be added without -f` | | ||
| 37 | +| merged main | `9623bcab` | `Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report corrections` | | ||
| 38 | + | ||
| 39 | +The 13 merges in `298f75c4..9623bcab`, newest first, with the branch tip taken | ||
| 40 | +from each merge's second parent: | ||
| 41 | + | ||
| 42 | +| # | merge | branch | tip | tests at the tip | NEW names vs base | base tests the tip does NOT carry | note | | ||
| 43 | +|---|---|---|---|---|---|---|---| | ||
| 44 | +| 1 | `9623bcab` | lane-av1superpin | `9646f74d` | 708 | **+4** | **8** | **the tip predates 8 base gates** — see the correction below | | ||
| 45 | +| 2 | `afa13bcf` | lane-whtshape | `f541d062` | 717 | +5 | 0 | | | ||
| 46 | +| 3 | `9a9e3674` | lane-av1lm444loss | `9249442f` | 713 | +1 | 0 | | | ||
| 47 | +| 4 | `764ba257` | lane-av1dualfilter10 | `c2b969c8` | 715 | +3 | 0 | | | ||
| 48 | +| 5 | `a5867794` | lane-av1distwtd | `1aaf7e0b` | 714 | +2 | 0 | | | ||
| 49 | +| 6 | `7f8817cb` | lane-av1pins | `44a05b40` | 712 | +0 | 0 | | | ||
| 50 | +| 7 | `e96de012` | lane-av1superhbd | `a2da03e4` | 717 | +5 | 0 | | | ||
| 51 | +| 8 | `b4c45166` | lane-av1tilemeasure | `df1370dd` | 716 | +4 | 0 | | | ||
| 52 | +| 9 | `962945ce` | lane-av1toolgates | `4c4bd3e2` | 714 | +2 | 0 | | | ||
| 53 | +| 10 | `10db0dc2` | lane-av1mutproof | `ffd8d138` | 712 | +0 | 0 | | | ||
| 54 | +| 11 | `0eb19c11` | lane-av1gates444 | `555c83f3` | 715 | +3 | 0 | | | ||
| 55 | +| 12 | `5e9c7715` | lane-av1skipfix | `960be978` | 712 | +0 | 0 | | | ||
| 56 | +| 13 | `e443a86e` | lane-av1chrtx | `ea97eb0c` | 715 | +3 | 0 | | | ||
| 57 | +| | | | **sum** | | **+32** | **8** | | | ||
| 58 | + | ||
| 59 | +**Correction (r1, after review).** The first version of this table had a | ||
| 60 | +`tests at tip (base-relative delta)` column that printed `708 (+4)` on row 1, | ||
| 61 | +which does not satisfy `tip = base + delta` — 712 + 4 = 716, not 708 — while | ||
| 62 | +every other row did, on the row that names the merge head. The cause: the | ||
| 63 | +column conflated two different numbers, "names the tip adds" and "net change". | ||
| 64 | +`lane-av1superpin`'s tip `9646f74d` is **708 = 712 + 4 new - 8 removed**: it | ||
| 65 | +was cut from a tree OLDER than `298f75c4` and does not carry 8 gates the base | ||
| 66 | +already had — | ||
| 67 | + | ||
| 68 | +``` | ||
| 69 | +a_444_12bit_inter_sequence_decodes_pixel_exact | ||
| 70 | +a_444_intrabc_rect4_reads_its_own_chroma_plane_block | ||
| 71 | +a_4to20_key_frame_takes_the_left_chroma_reference_read_its_libaom_row | ||
| 72 | +a_lossless_444_10bit_inter_stream_decodes_pixel_exact | ||
| 73 | +a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major | ||
| 74 | +a_lossless_444_rect16x4_chroma_reach_is_ss_aware | ||
| 75 | +a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type | ||
| 76 | +a_real_aomenc_odd_coded_dimension_streams_decode_pixel_exact | ||
| 77 | +``` | ||
| 78 | + | ||
| 79 | +— all eight of which ARE on merged main, so nothing was lost; the merge simply | ||
| 80 | +took the base's copies. The conclusion of §2 is unaffected, because it is | ||
| 81 | +stated over the UNION of new names and separately over base-minus-main, and | ||
| 82 | +both of those are 0. What changes is the rule a future census must state | ||
| 83 | +explicitly: **a branch tip is not `base + delta` unless the tip also carries | ||
| 84 | +every base test.** The per-branch column is now three numbers, and a tip with a | ||
| 85 | +non-zero "does NOT carry" cell is flagged. | ||
| 86 | + | ||
| 87 | +## 2. The arithmetic | ||
| 88 | + | ||
| 89 | +``` | ||
| 90 | +pre-merge base 298f75c4 712 tests | ||
| 91 | +sum of the 13 branches' NEW names + 32 (4+5+1+3+2+0+5+4+2+0+3+0+3) | ||
| 92 | +distinct new names across all 13 - 2 (two names declared by TWO branches) | ||
| 93 | + ------ | ||
| 94 | +base + distinct new = 712 + 30 = 742 | ||
| 95 | +merged main 9623bcab 742 tests | ||
| 96 | +DELTA 0 | ||
| 97 | +``` | ||
| 98 | + | ||
| 99 | +The 32 is a sum over the "NEW names" column, not over net per-branch deltas: | ||
| 100 | +one tip (`9646f74d`) is cut from an older base and does not carry 8 base | ||
| 101 | +tests, so its net is -4 while it adds 4. Summing nets would give 712 + 20 and | ||
| 102 | +would NOT reconcile — which is exactly why the per-branch column above is | ||
| 103 | +three numbers now. The reconciliation that holds is the one over the UNION of | ||
| 104 | +new names plus the separate, independent check that the base survives intact | ||
| 105 | +(`base - main = 0`, below): 8 base tests that one branch never carried are | ||
| 106 | +still on main, taken from the base side of the merge. | ||
| 107 | + | ||
| 108 | +Every set operation, computed on the sorted name lists: | ||
| 109 | + | ||
| 110 | +| check | result | | ||
| 111 | +|---|---| | ||
| 112 | +| branch test names ABSENT from merged main (a silently dropped gate) | **0** | | ||
| 113 | +| tests on merged main that are in no branch and not in the base | **0** | | ||
| 114 | +| tests in the base that are GONE from merged main (a rename or a removal) | **0** | | ||
| 115 | +| duplicate registrations on merged main (`--list \| sort \| uniq -d`) | **0** — 742 raw lines, 742 unique | | ||
| 116 | +| per-branch duplicate NAMES (the risk that matters) | **2**, both resolved below | | ||
| 117 | + | ||
| 118 | +**The census reconciles exactly: 712 + 30 = 742, delta 0, nothing lost, | ||
| 119 | +nothing renamed, nothing duplicated.** The merge dropped no gate, and no | ||
| 120 | +conflict resolution silently took one side of an add/add. | ||
| 121 | + | ||
| 122 | +## 3. The two duplicate names, checked for a lost assertion | ||
| 123 | + | ||
| 124 | +A duplicate name across branches is the one way the count can look right while | ||
| 125 | +an assertion is lost: the merge keeps one side, the other side's body is gone. | ||
| 126 | +Both were diffed, body against body, at the two tips that declare them: | ||
| 127 | + | ||
| 128 | +| duplicate name | declared by | verdict | | ||
| 129 | +|---|---|---| | ||
| 130 | +| `stream::tests::a_distance_weighted_compound_stream_decodes_pixel_exact` | lane-av1dualfilter10 (`c2b969c8`) and lane-av1distwtd (`1aaf7e0b`) | **byte-identical** (188 lines each, `cmp` equal) — the same gate declared twice, not two gates. Nothing lost. | | ||
| 131 | +| `gate_coverage::tests::the_detector_sees_the_gates_the_spelling_filter_missed` | lane-av1distwtd (`1aaf7e0b`) and lane-av1dualfilter10 (`c2b969c8`) | **byte-identical** (61 lines each, `cmp` equal) — same. lane-av1toolgates does not declare it at all, so the pair is the one above. | | ||
| 132 | + | ||
| 133 | +So the 2-test difference between "sum of deltas" (32) and "distinct new names" | ||
| 134 | +(30) is fully explained: two gates were each written twice, identically, by two | ||
| 135 | +lanes that had not seen each other. That is a coordination miss between | ||
| 136 | +lane-av1dualfilter10 and lane-av1distwtd, not a merge loss. | ||
| 137 | + | ||
| 138 | +## 4. The number for the next wave | ||
| 139 | + | ||
| 140 | +A wave that merges N branches should satisfy | ||
| 141 | +`merged == pre_merge_base + (sum of branch deltas) - (duplicate names across | ||
| 142 | +branches)`, and separately report `base - merged == 0` (nothing renamed or | ||
| 143 | +dropped) and `--list | sort | uniq -d` empty (nothing shadowed). This wave: | ||
| 144 | +**712 -> 742, +30 distinct tests (+4.2%), 13 branches, ~2.3 tests per branch.** | ||
| 145 | +The charter's expectation of "~35 gates this wave added" is close but high by | ||
| 146 | +five: measured 30 distinct (32 summed before the duplicate collapse). Three of | ||
| 147 | +the thirteen branches (pins, mutproof, skipfix) add no test at all, which is | ||
| 148 | +where the difference lives. | ||
| 149 | + | ||
| 150 | +## 5. Limits of this census, stated so nobody over-reads it | ||
| 151 | + | ||
| 152 | +- It compares NAMES. A branch that changed the BODY of an existing gate in | ||
| 153 | + place (rather than adding one) moves no name and is invisible here — the | ||
| 154 | + per-branch diffs of `stream.rs` would be the tool for that, and this lane | ||
| 155 | + makes no claim about bodies. | ||
| 156 | +- It counts `#[test]`s in the `ec-av1` LIB target only (`--lib`), which is | ||
| 157 | + where every gate in this crate lives; the crate has no `tests/` directory and | ||
| 158 | + no other test target. | ||
| 159 | +- `--list` was used throughout; nothing was run, so a test that is registered | ||
| 160 | + but red would still count as present. That is the question this census asks | ||
| 161 | + (did it survive the merge), not whether it passes. | ||
lanes/av1tilerows.report.mdmodified+46 -0
| @@ -308,3 +308,49 @@ no-op for the only format with committed coverage on this path. | |||
| 308 | 308 | ||
| 309 | **Net class status: the class is closed except for this one site, which is | 309 | **Net class status: the class is closed except for this one site, which is |
| 310 | proven reachable and documented rather than silently changed.** | 310 | proven reachable and documented rather than silently changed.** |
| 311 | + | ||
| 312 | +## 17. Round 9 — on merged main (`e719050d`): the fork is GONE | ||
| 313 | + | ||
| 314 | +Main absorbed seven lanes at `e719050d`, including a 128-root token-walk | ||
| 315 | +change (`mu_chunk_order`) that sits squarely in the area rounds 3-8 were | ||
| 316 | +chasing. Re-measured on a clean detached worktree at `e719050d` (`main` is | ||
| 317 | +already checked out elsewhere); my fix `4e151813` is an ancestor there and | ||
| 318 | +the reach call is ss-aware, so the base is sound. | ||
| 319 | + | ||
| 320 | +**Step 1 — does the fork still exist? NO.** | ||
| 321 | + | ||
| 322 | +Same recipe and stream (`v2_c40.obu`, 4:4:4 lossy cq-40, `--sb-size=128`, | ||
| 323 | +256x256, 36 shown frames): | ||
| 324 | + | ||
| 325 | +| tree | wrong per frame | | ||
| 326 | +|---|---| | ||
| 327 | +| my base (rounds 3-8) | 1415 ... 62614 ... diverges throughout | | ||
| 328 | +| **merged main `e719050d`** | **0 on all 36 frames** | | ||
| 329 | + | ||
| 330 | +And the entropy, which is the authoritative measure: | ||
| 331 | + | ||
| 332 | + oracle reads 217570 merged-main reads 217570 | ||
| 333 | + ENTROPY LOCKSTEP over 217570 reads | ||
| 334 | + | ||
| 335 | +Identical read COUNTS and no value/range/symbol/post_rng divergence over the | ||
| 336 | +entire stream. The read-41976 fork, the 32-vs-64 transform-class | ||
| 337 | +disagreement, and every downstream desync are absent on main. | ||
| 338 | + | ||
| 339 | +**Which merged change owns it — partially answered, and I will not guess past | ||
| 340 | +what I measured.** The obvious candidate in my named area is av1h5's | ||
| 341 | +`mu_chunk_order` ("read a 128 root's tokens CHUNK-major, not block-raster", | ||
| 342 | +absent from my base). Ablated it: `4155c7c7` + my fix + `8a91ee14` alone | ||
| 343 | +**still diverges** (1415, 1582, 478, 62614, 60028, ...). So that commit is | ||
| 344 | +NOT sufficient on its own. I could not build the all-three-av1h5 arm — the | ||
| 345 | +cherry-pick of `34b56884`/`f6fbad26` onto my base **conflicts** — so this | ||
| 346 | +round reports one negative result and stops, rather than attributing. | ||
| 347 | + | ||
| 348 | +**What this means for rounds 3-8.** The 128-root leaf-size disagreement those | ||
| 349 | +rounds named is real, was correctly localised to the 128-root token walk, and | ||
| 350 | +is fixed on main by one of the seven merged lanes. What produced it: the | ||
| 351 | +`EC_SYMR` read-class tags (which proved both decoders were in the SAME read | ||
| 352 | +function and that the difference was table class, not symbol class), the | ||
| 353 | +`n=7` disambiguation against libaom's `eob_flag_cdf64`, and the four | ||
| 354 | +retractions that kept a wrong fix from shipping. The parked inter-64x64 | ||
| 355 | +`EC_PART_VAL` alignment fix stays parked — main now answers the question | ||
| 356 | +outright, so it is no longer needed. | ||
lanes/breconciliation.report.mdadded+367 -0
| @@ -0,0 +1,367 @@ | |||
| 1 | +# Branch reconciliation — landing (or refuting) the census's ranked residue | ||
| 2 | + | ||
| 3 | +**Branch:** `lane-breconcile`, worktree `~/.cache/wt/breconcile`, forked from | ||
| 4 | +`main`@`7538a841`. | ||
| 5 | +**Nothing pushed, nothing merged to `main`, no rustfmt, no lane branch edited or | ||
| 6 | +deleted.** The primary checkout was never written to (§6). | ||
| 7 | + | ||
| 8 | +**Inputs.** `lanes/branchcensus2.report.md` §2, ranked 1-9. Its §1 snapshot was | ||
| 9 | +`main`@`52c62c15`; rank #1 had already landed as `7538a841` before this lane | ||
| 10 | +started, so this pass covers ranks #2-#9. | ||
| 11 | + | ||
| 12 | +**The governing fact.** The census's §2 ranking is a snapshot of *what was | ||
| 13 | +missing*, and it was measured, not argued: every classification in it survives. | ||
| 14 | +What does NOT always survive is the *reason* it gave. Two of the nine items rest | ||
| 15 | +on a rationale written against a weaker artifact that main has since replaced — | ||
| 16 | +#2's `Proof::TablePin` and #4/#3's premise about which gate a row names. Those | ||
| 17 | +were re-checked against main's current code and one is refuted (§1.3, §1.5). | ||
| 18 | + | ||
| 19 | +--- | ||
| 20 | + | ||
| 21 | +## 1. One line per rank | ||
| 22 | + | ||
| 23 | +| # | census item | branch | verdict | commit | evidence | | ||
| 24 | +|---|---|---|---|---|---| | ||
| 25 | +| 1 | `e55ad654` four mislabelled partition rungs | `lane-av1tilerows2` | **ALREADY LANDED** | `7538a841` (base) | out of scope for this pass | | ||
| 26 | +| 2 | `Proof` enum + `Proof::TablePin` | `lane-av1refusal` | **LANDED, `TablePin` REFUTED** | `29951312` | 21/0; 3 red-before mutations; §1.3 | | ||
| 27 | +| 3 | `6dfd827e` + `7586358f` + `c8ed05f3` | `lane-av1loss444mm` | **LANDED** (one helper dropped as dead) | `2be41696` | check 0/0; 248/0 pixel-exact; §1.5 | | ||
| 28 | +| 4 | `bf88d5e1` two `set_symr_cdf` tags | `lane-av1tilerows2` | **LANDED** | `d100dc47` | check 0/0; 248/0; §1.4 | | ||
| 29 | +| 5 | `571b4090` round-9 retraction | `lane-av1leafsize` | **LANDED** | `47bcb11e` | §1.5a — cherry-picked clean | | ||
| 30 | +| 6 | `0beaf6c5` round-6 caller | `lane-av1444rect` | **LANDED** | `d3226c2e` | blob byte-identical; §1.5b | | ||
| 31 | +| 7 | `f0ae03c8` + `f61ebe79` test-count census | `lane-av1testcount` | **LANDED, re-measured** | `13b752ff` | 712/742/802 re-derived; §1.7 | | ||
| 32 | +| 8 | `5a1388f2` plane-tagged `OUR_MODE` | `lane-av1444chr` | **LANDED** | `b307aaeb` | check 0/0; 248/0; §1.8 | | ||
| 33 | +| 9 | `6cc9ea6f` report header | `lane-av1chrtx` | **LANDED** (cosmetic) | `b307aaeb` | text-only; §1.9 | | ||
| 34 | + | ||
| 35 | +Six source commits, two report-only, one report-only-plus-source. Diffstat of | ||
| 36 | +the whole pass: **488 insertions, 19 deletions, 7 files** — 46 of the | ||
| 37 | +insertions are report text. | ||
| 38 | + | ||
| 39 | +### 1.2 What each landed commit actually is | ||
| 40 | + | ||
| 41 | +Seven commits on `lane-breconcile`, oldest first: | ||
| 42 | + | ||
| 43 | +``` | ||
| 44 | +13b752ff lanes/av1testcount: the 13-branch wave reconciled exactly, re-measured | ||
| 45 | +b307aaeb ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header | ||
| 46 | +2be41696 ec-av1: the lossless OUR_DQW twin, plane-tagged, with the raw levels beside dq | ||
| 47 | +d100dc47 ec-av1: tag the EC_SYMR reads in read_eob and read_coeffs' tx_type | ||
| 48 | +29951312 refusal_inventory: say WHICH kind of proof each PROVEN row carries | ||
| 49 | +d3226c2e docs(av1444rect): round 6 -- the fork's caller is NAMED | ||
| 50 | +47bcb11e lanes/av1tilerows: round 9 -- the 4:4:4 128-root leaf-size fork is gone on main | ||
| 51 | +``` | ||
| 52 | + | ||
| 53 | +Every commit message states what was NOT landed with it and why. No open defect | ||
| 54 | +was fixed: this lane lands instruments and records. | ||
| 55 | + | ||
| 56 | +### 1.3 #2 `Proof` — the enum landed, `TablePin` is REFUTED | ||
| 57 | + | ||
| 58 | +**What landed** (`29951312`): `enum Proof { NegativeGate, Enumeration }` with a | ||
| 59 | +`label()`, a third tuple element on **all 32** `PROVEN` rows, both consumer | ||
| 60 | +loops updated, and one new test. | ||
| 61 | + | ||
| 62 | +The census's premise was that main's `PROVEN` is a 2-tuple so every row "looks | ||
| 63 | +equally proven". That is true and it is worth fixing: 7 rows carry a gate that | ||
| 64 | +drives a stream into the guard (`NEGATIVE`, red on removal), 25 carry a gate | ||
| 65 | +that sweeps a domain and shows nothing reaches it (`ENUMERATION`, green on | ||
| 66 | +removal). Those are different standards and the table said so nowhere. | ||
| 67 | + | ||
| 68 | +**What is refuted** is `Proof::TablePin`. The census wrote, of the `(4,8)` | ||
| 69 | +chroma-table row: *"its gate pins a table's arms exactly but the domain the | ||
| 70 | +table is REACHED OVER is unestablished, so an `Enumeration` tag there would | ||
| 71 | +claim unreachability the gate's own comment admits it has not shown."* That | ||
| 72 | +comment is the BRANCH's, not main's. `lanes/branchcensus2.report.md:108-112` | ||
| 73 | +quotes it as if it were main's — the census read the branch file. | ||
| 74 | + | ||
| 75 | +On main that row names a different, stronger gate: | ||
| 76 | +`every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table` | ||
| 77 | +(`refusal_inventory.rs:1666`), which | ||
| 78 | + | ||
| 79 | +1. reads all eight `decode_block_rect` call sites' own literal `bw`/`bh` | ||
| 80 | + (`assert_eq!(sites, 8, "the number of decode_block_rect call sites changed")`), | ||
| 81 | +2. walks them through `bw >> ss_x` / `bh >> ss_y` for all three codable | ||
| 82 | + subsamplings and asserts each has a table row, | ||
| 83 | +3. pins the table exactly (six arms), and | ||
| 84 | +4. asserts the residual is UNPRODUCIBLE: `!produces.contains(&(4, 8)) && | ||
| 85 | + !produces.contains(&(8, 4))`, "the caller set can now produce a 4x8/8x4 | ||
| 86 | + chroma shape but the table has no such row -- the chroma refusal is LIVE". | ||
| 87 | + | ||
| 88 | +The reach domain r3 called unestablished is measured. `Enumeration` is the | ||
| 89 | +honest tag, and a third variant with zero rows is dead weight. The enum's doc | ||
| 90 | +comment records exactly when to re-add it. (The census was right that the row | ||
| 91 | +is *representable*; it was wrong about which way.) | ||
| 92 | + | ||
| 93 | +**Non-vacuity — three mutations, each reverted, each RED:** | ||
| 94 | + | ||
| 95 | +| mutation | result | | ||
| 96 | +|---|---| | ||
| 97 | +| flip the `(4,8)` row's tag to `NegativeGate` | RED — *"is tagged NEGATIVE …, but its gate enumerates the caller domain"* | | ||
| 98 | +| turn all 7 `NegativeGate` rows into `Enumeration` | RED — *"no row is tagged NEGATIVE, so the NegativeGate variant is dead weight"* | | ||
| 99 | +| **weaken the GATE**: replace `assert_eq!(sites, 8, "…call sites changed")` with `let _ = sites;` (the gate itself still passes) | RED — *"…no longer carries \"the number of decode_block_rect call sites changed\", so the Enumeration tag … claims a reach domain the gate has stopped measuring"* | | ||
| 100 | + | ||
| 101 | +The third is the one that matters and the one a weaker test would miss: the tag | ||
| 102 | +is pinned to evidence inside the gate's **body**, so a future edit that guts the | ||
| 103 | +gate's caller-domain measurement reds the taxonomy rather than leaving the row | ||
| 104 | +quietly overclaiming. Mutating the test's own expectation list instead would | ||
| 105 | +have proved nothing, and did not. | ||
| 106 | + | ||
| 107 | +**Suite:** `every_proven_refusal_names_a_test_that_exists`, | ||
| 108 | +`every_named_gate_body_is_bounded_in_these_files`, and the new test — | ||
| 109 | +**21 passed, 0 failed** (20 pre-existing + 1 new). Measured distribution printed | ||
| 110 | +by the new test: **7 NEGATIVE, 25 ENUMERATION of 32 PROVEN rows**. | ||
| 111 | + | ||
| 112 | +### 1.4 #4 — the two `set_symr_cdf` tags (`d100dc47`) | ||
| 113 | + | ||
| 114 | +Two lines, `crates/ec-av1/src/decode.rs`. `set_symr_cdf` existed with 24 call | ||
| 115 | +sites; nothing tagged the two reads the 4:4:4 partition-walk work pairs against | ||
| 116 | +the oracle's per-read `site=`. `SYMR_CDF` is a `Cell<&'static str>` thread-local | ||
| 117 | +reset after each symbol (`msac.rs:491`) and read only by the `EC_SYMR` eprintln, | ||
| 118 | +so the tag is a trace label and nothing else; placement matches the 24 existing | ||
| 119 | +`y_mode`/`uv_mode` tags. | ||
| 120 | + | ||
| 121 | +### 1.5 #3 — the lossless `OUR_DQW` twin (`2be41696`) | ||
| 122 | + | ||
| 123 | +Re-derived onto current main, and it did **not** cherry-pick: main has since | ||
| 124 | +generalised `dequant_and_inverse_wht4x4` to any shape (lane-whtshape's 4x4 | ||
| 125 | +raster), so `TxParams::run` no longer calls the 4x4 entry. `plane` is threaded | ||
| 126 | +through **both** functions so the raster path's tiles carry it too. | ||
| 127 | + | ||
| 128 | +- `TxParams.plane`, set by the reader that OWNS the unit (`plane_idx` at the | ||
| 129 | + three multi-plane sites, `0` at `decode_leaf_rect8`, which is luma-only — | ||
| 130 | + `plane_q_delta(0, …)` and `push_intra(0, …)` at that arm). | ||
| 131 | +- `OUR_DQW`, the LOSSLESS half of the oracle's `EC_DQCOEFF` rung, under the same | ||
| 132 | + env var, with `plane=` and `lv=` (the RAW level grid the dequant consumed, so | ||
| 133 | + "dequant produced nothing" is distinguishable from "the reader produced | ||
| 134 | + nothing"). | ||
| 135 | + | ||
| 136 | +**The open defect it instruments:** item (a) of `lanes/av1loss444mm.report.md` | ||
| 137 | +r10 — 4:4:4 lossless **key frame**, reconstruction-only, 21 U + 28 V samples off | ||
| 138 | +by up to ±63, luma exact, entropy bit-identical. Named there with a three-file | ||
| 139 | +search space. Note the census's own caveat is kept: r9 already exonerated | ||
| 140 | +dequant ("0 of 2053 units have non-zero levels with an empty `dq`"), so this rung | ||
| 141 | +buys **diagnosis, not a fix**. | ||
| 142 | + | ||
| 143 | +**One artifact dropped:** `census_plane()`, added by `7586358f`. On the branch's | ||
| 144 | +own tip (`87d1518d`) it is defined and **never called** — `6dfd827e` replaced its | ||
| 145 | +one use with the field. Not landed. | ||
| 146 | + | ||
| 147 | +### 1.5a #5 — the round-9 retraction (`47bcb11e`) | ||
| 148 | + | ||
| 149 | +`git cherry-pick -x 571b4090` **applied clean** (the census expected drift). | ||
| 150 | +Verification is text, by blob: | ||
| 151 | + | ||
| 152 | +- main's `lanes/av1tilerows.report.md` and the branch's differ — expected, and | ||
| 153 | + not a problem: main carries two RETRACTION blocks in §8 | ||
| 154 | + (`RETRACTED by lanes/av1txsizeaudit.report.md §3.1` and *"a subsampling- | ||
| 155 | + parameterised expression can only be certified by the measured value at every | ||
| 156 | + subsampling"*) that the branch predates. Landing must ADD round 9 on top of | ||
| 157 | + those, not overwrite them. | ||
| 158 | +- The round-9 section itself — the 45 lines from `## 17. Round 9` to EOF — is | ||
| 159 | + **byte-identical** to the branch's (`diff` of the `sed -n '/Round 9/,$p'` window | ||
| 160 | + of both blobs: no output). | ||
| 161 | + | ||
| 162 | +This is the commit that changes what the record says: main ended at §8's claim | ||
| 163 | +that one site is "proven reachable and documented", and round 9 measures 0 | ||
| 164 | +divergence over 36 frames and 217570 reads in entropy lockstep on merged main, | ||
| 165 | +and explicitly refuses to attribute it to its own fix. | ||
| 166 | + | ||
| 167 | +### 1.5b #6 — the round-6 caller (`d3226c2e`) | ||
| 168 | + | ||
| 169 | +Also cherry-picked clean. Strongest verification available: | ||
| 170 | + | ||
| 171 | +``` | ||
| 172 | +git rev-parse lane-breconcile:lanes/av1444rect.report.md | ||
| 173 | + = 69c428477984ea530d1fed94807c1876febd7820 | ||
| 174 | +git rev-parse lane-av1444rect:lanes/av1444rect.report.md | ||
| 175 | + = 69c428477984ea530d1fed94807c1876febd7820 | ||
| 176 | +``` | ||
| 177 | + | ||
| 178 | +Byte-identical blobs. Main's §7 said the 4:4:4 intra-BC chroma fork "needs a | ||
| 179 | +fresh start, not a continuation"; round 6 names it: | ||
| 180 | +`decode_intrabc_rect`'s non-lossless whole-block rect arm, one | ||
| 181 | +`around_mi_rect((mi_r, mi_c), bw, bh)` gather taken at the **luma** footprint and | ||
| 182 | +reused for a 4x8 chroma unit under a 4x16 luma plane block — coincident at 4:2:0 | ||
| 183 | +after subsampling, not at 4:4:4. That defect is still open; this records its call | ||
| 184 | +site and does not fix it. | ||
| 185 | + | ||
| 186 | +### 1.7 #7 — the test-count census, re-measured (`13b752ff`) | ||
| 187 | + | ||
| 188 | +The census called this stale and said to land it only with a fresh count. Both | ||
| 189 | +anchors were re-derived from scratch — fresh `git archive` extracts, private | ||
| 190 | +target dirs, `cargo test -p ec-av1 --lib -- --list`: | ||
| 191 | + | ||
| 192 | +``` | ||
| 193 | +298f75c4 (pre-merge base) 712 raw --list lines, 712 unique | ||
| 194 | +9623bcab (merged main) 742 raw, 742 unique | ||
| 195 | +b307aaeb (this tree) 802 raw, 802 unique | ||
| 196 | +``` | ||
| 197 | + | ||
| 198 | +**The reconciliation stands**: 712 + 30 distinct = 742, delta 0, and zero | ||
| 199 | +duplicate registrations at both anchors. Those are immutable facts about | ||
| 200 | +immutable commits. But the tree this report would now be compared against is | ||
| 201 | +**802**, and the report says so in a header paragraph so no reader mistakes it | ||
| 202 | +for a count of the present. | ||
| 203 | + | ||
| 204 | +The 13 per-branch tip counts were **not** re-taken (13 more throwaway builds) and | ||
| 205 | +the report states which figures are re-verified and which are the lane's own. | ||
| 206 | + | ||
| 207 | +### 1.8 / 1.9 #8 and #9 (`b307aaeb`) | ||
| 208 | + | ||
| 209 | +`5a1388f2` cherry-picked clean — the only source commit in the census's set that | ||
| 210 | +did. 13 lines, env-gated print only, at `read_plane`, where `plane_idx` is a | ||
| 211 | +parameter and therefore nameable. The census notes its motivating gap closed on | ||
| 212 | +main by `RECON_PLANE`/`recon_plane()`; that is true and is not a reason to skip | ||
| 213 | +it. `RECON_PLANE` stamps the plane at RECONSTRUCTION (which does not know its | ||
| 214 | +plane); this rung names it at the READER. Its reason to exist is the class | ||
| 215 | +`rung-mislabels-plane`, which has already produced two wrong claims this session | ||
| 216 | +— `read_coeffs_rect` labelling its unit `plane=0`, then a sweep reading a | ||
| 217 | +phantom second luma unit out of that label. The H3 defect the lane chased is | ||
| 218 | +still open and unowned. | ||
| 219 | + | ||
| 220 | +`6cc9ea6f` is the 4-line header correction only. The census is right that the | ||
| 221 | +gate name it was blamed for is already correct on main | ||
| 222 | +(`a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does`), | ||
| 223 | +so nothing else moved. | ||
| 224 | + | ||
| 225 | +--- | ||
| 226 | + | ||
| 227 | +## 2. Behaviour-freeness | ||
| 228 | + | ||
| 229 | +Claim per landed commit, and the proof each one got. | ||
| 230 | + | ||
| 231 | +| commit | claim | proof | result | | ||
| 232 | +|---|---|---|---| | ||
| 233 | +| `d100dc47` | env-gated trace tag only | `cargo check --all-targets` + pixel-exact | 0 err 0 warn; **248/0** | | ||
| 234 | +| `2be41696` | `TxParams.plane` reaches nothing but an `eprintln` | same | 0 err 0 warn; **248/0** | | ||
| 235 | +| `b307aaeb` | env-gated `eprintln` in `read_plane` | same | 0 err 0 warn; **248/0** | | ||
| 236 | +| `29951312` | `#[cfg(test)]` taxonomy + a test | 21/0 + 3 mutations | **21 passed, 0 failed** | | ||
| 237 | +| `13b752ff`, `47bcb11e`, `d3226c2e` | report text only | blob / text comparison | §1.5a, §1.5b, §1.7 | | ||
| 238 | + | ||
| 239 | +Common run, on the final tree: | ||
| 240 | + | ||
| 241 | +``` | ||
| 242 | +$ CARGO_TARGET_DIR=$HOME/.cache/tgt/breconcile EC_NOMEMGUARD=1 \ | ||
| 243 | + cargo test -p ec-av1 --lib -- pixel_exact | ||
| 244 | +test result: ok. 248 passed; 0 failed; 0 ignored; 0 measured; 554 filtered out | ||
| 245 | +``` | ||
| 246 | + | ||
| 247 | +248 includes `real_superres_streams_with_sub8_leaf8_and_warp_decode_pixel_exact`, | ||
| 248 | +`the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact`, | ||
| 249 | +`an_sb128_rect_strip_with_intrabc_decodes_pixel_exact`, | ||
| 250 | +`an_sb128_screen_stream_with_intrabc_decodes_pixel_exact` and the pinned 4:2:0 | ||
| 251 | +odd-height and 4:4:4 quadrant witnesses — i.e. exactly the cells the new | ||
| 252 | +`plane` field and the two new tags touch. | ||
| 253 | + | ||
| 254 | +``` | ||
| 255 | +$ cargo test -p ec-av1 --lib -- every_proven_refusal refusal_inventory \ | ||
| 256 | + every_named_gate_body every_proven_row which_kind_of_proof | ||
| 257 | +test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 781 filtered out | ||
| 258 | +``` | ||
| 259 | + | ||
| 260 | +--- | ||
| 261 | + | ||
| 262 | +## 3. Regression on the final tree | ||
| 263 | + | ||
| 264 | +``` | ||
| 265 | +$ cargo test -p ec-av1 --lib -- 420 422 444 lossless warp intra \ | ||
| 266 | + --skip bitrate_target_lands_within_5_percent_over_48_frames | ||
| 267 | +test result: ok. 181 passed; 0 failed; 2 ignored; 0 measured; 619 filtered out | ||
| 268 | + (271.45s) | ||
| 269 | + | ||
| 270 | +$ cargo check -p ec-av1 --all-targets | ||
| 271 | + Finished `dev` profile — 0 errors, 0 warnings | ||
| 272 | +``` | ||
| 273 | + | ||
| 274 | +The 2 ignored are pre-existing `#[ignore]` attributes in the crate, not | ||
| 275 | +anything this pass added; nothing in this lane changed an ignore. | ||
| 276 | + | ||
| 277 | +`main` advanced `7538a841 -> 0f9ea788` during this run. | ||
| 278 | +`git diff --stat 7538a841..main -- crates/` is **one new fixture** | ||
| 279 | +(`420_lossless_tallinter_8x16.obu`) and zero source lines, so every | ||
| 280 | +classification above is unaltered against `0f9ea788` as well. | ||
| 281 | + | ||
| 282 | +--- | ||
| 283 | + | ||
| 284 | +## 4. Deliberately NOT landed | ||
| 285 | + | ||
| 286 | +| artifact | why | | ||
| 287 | +|---|---| | ||
| 288 | +| `Proof::TablePin` (rank #2) | **REFUTED.** Its one row's gate on main measures the reach domain the tag's premise says is unestablished, so the tag would overclaim and the variant would carry no rows. §1.3. | | ||
| 289 | +| `census_plane()` (`7586358f`) | **DEAD on the branch's own tip** — defined, never called; `6dfd827e` replaced its use with `TxParams.plane`. | | ||
| 290 | +| `lane-av1tilerows.report.md` §9-§16 (`fdaec88c`…`d5ffc0c9`, `bf88d5e1`'s report half) | rounds 2-7 are measurements on an OLD main, and round 9 (landed, #5) measures the fork GONE on merged main — 0/36 divergence, entropy lockstep over 217570 reads. Landing §16 would re-record a fork that no longer exists. | | ||
| 291 | +| `lane-av1loss444mm`'s 8 report commits | report-only history of an open defect; the defect is still open and its owner has not started. | | ||
| 292 | +| `lane-av1refusal`'s `lanes/av1refusalclaim.report.md` (r1-r7) | report-only; r7's third-weak-anchor finding was closed on main by `797fa52b`, which took a LATER, stronger version of r3-r7's boundary and **dropped** `body_of`. Merging the branch report would document as open what main closed. | | ||
| 293 | +| `lane-av1444chr`'s 3 report commits (H3 rounds 2-4) | report-only; they record a narrowing whose conclusion is "the owner of the remaining line has not been identified", which is still true and belongs with whoever picks it up, not with an instrument landing. | | ||
| 294 | +| `lane-av1lm444loss` | **Author-declared DO-NOT-MERGE** (`lanes/av1lm444loss-corr.report.md:16-17`). Not touched. Census §3 names what merging it would break. | | ||
| 295 | +| rank #1 `e55ad654` | already on this branch's base as `7538a841`. | | ||
| 296 | + | ||
| 297 | +--- | ||
| 298 | + | ||
| 299 | +## 5. Branch containment, for a later prune | ||
| 300 | + | ||
| 301 | +`git cherry` is patch-id and **cannot see a re-derivation**, so the column below | ||
| 302 | +is by CONTENT (distinctive literals grepped in this tree), which is the only | ||
| 303 | +decisive detector. | ||
| 304 | + | ||
| 305 | +| branch | unlanded commits | touches `crates/` | source residue left | report residue left | prune? | | ||
| 306 | +|---|---|---|---|---|---| | ||
| 307 | +| `lane-av1leafsize` | **0** | — | none | none | **YES** — fully contained (`git cherry` says so too) | | ||
| 308 | +| `lane-av1444rect` | **0** | — | none | none | **YES** — blob-identical report | | ||
| 309 | +| `lane-av1chrtx` | 1 | none (report only) | none | none | **YES** — `6cc9ea6f`'s content is in `b307aaeb` | | ||
| 310 | +| `lane-av1testcount` | 2 | none (report only) | none | none | **YES** — report imported at its corrected revision | | ||
| 311 | +| `lane-av1444chr` | 4 | `5a1388f2` | **none** — `OUR_MODE plane=` present | 3 H3 report commits (§4) | source-complete; prune only if the reports are abandoned | | ||
| 312 | +| `lane-av1tilerows2` | 8 | `e55ad654`, `bf88d5e1` | **none** — both landed (`7538a841`, `d100dc47`) | §9-§16, deliberately (§4) | source-complete | | ||
| 313 | +| `lane-av1loss444mm` | 11 | `1a6e4f56`, `7586358f`, `6dfd827e`, `c8ed05f3` | **none** — `1a6e4f56` was on main via `c0727d64`; the other three are in `2be41696` | 8 report commits (§4) | source-complete | | ||
| 314 | +| `lane-av1refusal` | 8 | `d6682aa4`, `72b83ba1`, `0c834cd1`, `40849868` | **none** — `d6682aa4` via `e429acfb`/`2ec19064`, `0c834cd1`+`40849868` via `797fa52b` (`fn gate_body`, `fn leading_clause`, `fn squash_source` all present), `72b83ba1`'s Proof half in `29951312` | `lanes/av1refusalclaim.report.md` r1-r7 (§4) | source-complete | | ||
| 315 | + | ||
| 316 | +**Every one of the eight census branches is now source-complete in this work.** | ||
| 317 | +The only residue left anywhere is REPORT text, and each item of it has a stated | ||
| 318 | +reason in §4. Two branches are fully contained and prunable today. | ||
| 319 | + | ||
| 320 | +Verification of the "none" column, run in this tree: | ||
| 321 | + | ||
| 322 | +``` | ||
| 323 | +fn every_frame_size_a_header_can_code_has_a_mode_info_grid stream.rs:1, refusal_inventory.rs:1 | ||
| 324 | +fn gate_body refusal_inventory.rs:2 | ||
| 325 | +fn leading_clause refusal_inventory.rs:1 | ||
| 326 | +fn squash_source refusal_inventory.rs:1 | ||
| 327 | +(cc * chunk_chroma_w, cr * chunk_chroma_h), decode.rs:4 | ||
| 328 | +set_symr_cdf("eob_pt") decode.rs:1 | ||
| 329 | +set_symr_cdf("tx_type") decode.rs:1 | ||
| 330 | +OUR_DQW plane= transform.rs:1 | ||
| 331 | +pub(crate) plane: usize, decode.rs:1 | ||
| 332 | +OUR_MODE plane= decode.rs:1 | ||
| 333 | +``` | ||
| 334 | + | ||
| 335 | +--- | ||
| 336 | + | ||
| 337 | +## 6. Non-interference | ||
| 338 | + | ||
| 339 | +- **No push, no merge to `main`, no rebase of any lane branch, no tag, no | ||
| 340 | + branch or worktree deleted.** All seven commits live on `lane-breconcile` in | ||
| 341 | + `~/.cache/wt/breconcile`. | ||
| 342 | +- **The primary checkout was never written to.** | ||
| 343 | + `git -C /home/user/Documents/Code/Rust/edith_codecs status --porcelain` | ||
| 344 | + is empty, verified at the end of the run. Every path this lane edited or | ||
| 345 | + created is under `/home/user/.cache/wt/breconcile/`. | ||
| 346 | +- `lane-av1lm444loss` was not checked out, read from, or written to. | ||
| 347 | +- Scratch builds used `CARGO_TARGET_DIR=$HOME/.cache/tgt/{breconcile,tc-a,tc-b,tc-c}` | ||
| 348 | + — lane-private, never the house dir. The three `git archive` extracts for the | ||
| 349 | + test-count re-measurement lived in `/tmp/tc` and were removed; | ||
| 350 | + `df -h /tmp` was 22% used before the suite runs and no `/tmp/ec-av1-*` staging | ||
| 351 | + existed. | ||
| 352 | + | ||
| 353 | +## 7. Method notes for the next pass | ||
| 354 | + | ||
| 355 | +- **A census item's RATIONALE decays faster than its content.** Two of nine | ||
| 356 | + items here rest on a lane's own commit message describing an artifact main | ||
| 357 | + has since replaced. The census read the branch file and attributed its comment | ||
| 358 | + to main (`branchcensus2.report.md:108-112`). Re-read the CURRENT gate before | ||
| 359 | + carrying a tag that was minted against an older one. | ||
| 360 | +- **`git cherry-pick` beat the census's conflict prediction on 3 of 4 | ||
| 361 | + report-only commits** (only `72b83ba1` and the source commits conflicted). | ||
| 362 | + Try the cherry-pick before re-deriving; it is 2 seconds and it is decisive. | ||
| 363 | +- **A helper can be dead on its own branch's tip.** `census_plane()` was added | ||
| 364 | + by `7586358f` and made dead by `6dfd827e`; grep the TIP, not the commit. | ||
| 365 | +- **A test that pins a taxonomy must pin the SUBJECT, not its own expectation | ||
| 366 | + list.** Mutating the test's expectation proves nothing (measured: green). | ||
| 367 | + Mutating the gate's body is what reds it. | ||
| \ No newline at end of file | \ No newline at end of file | ||