# 审计基线(a6afbd1 + 审计测试、未修复 filter) # 命令: cargo test -p xtervo-core --test filter_conservation -- --ignored # 时间: 2026-11-11 18:32:19 CST Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s Running tests/filter_conservation.rs (/home/user/AIworkspace/xtervo/target/debug/deps/filter_conservation-87e2f9a5267424d8) running 7 tests test known_deficit_sixel_lone_esc_must_not_be_passed ... FAILED test known_deficit_c1_continuation_bytes_are_not_controls ... FAILED test truncated_sixel_is_aborted_by_next_escape_sequence ... FAILED test utf8_c1_continuation_then_sixel_is_not_swallowed_by_vte ... FAILED test image_sequence_swallows_only_itself ... FAILED test plain_text_is_byte_identical_for_every_chunking ... FAILED test random_chunk_boundaries_mixed_corpus_are_chunking_invariant ... FAILED failures: ---- known_deficit_sixel_lone_esc_must_not_be_passed stdout ---- thread 'known_deficit_sixel_lone_esc_must_not_be_passed' (19) panicked at crates/core/tests/filter_conservation.rs:814:5: 处于 SixelEscape 时不能返回 None:原始 ESC 会被重复交给 vte note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ---- known_deficit_c1_continuation_bytes_are_not_controls stdout ---- thread 'known_deficit_c1_continuation_bytes_are_not_controls' (18) panicked at crates/core/tests/filter_conservation.rs:830:5: assertion `left == right` failed: UTF-8 文本不能触发 Sixel 状态机 left: [229] right: [229, 144, 132, 113, 72, 69, 76, 76, 79] ---- truncated_sixel_is_aborted_by_next_escape_sequence stdout ---- thread 'truncated_sixel_is_aborted_by_next_escape_sequence' (22) panicked at crates/core/tests/filter_conservation.rs:500:5: assertion `left == right` failed: 截断 Sixel 后的 SGR 不能丢 ESC left: [91, 51, 49, 109, 65, 70, 84, 69, 82, 27, 91, 48, 109] right: [27, 91, 51, 49, 109, 65, 70, 84, 69, 82, 27, 91, 48, 109] ---- utf8_c1_continuation_then_sixel_is_not_swallowed_by_vte stdout ---- thread 'utf8_c1_continuation_then_sixel_is_not_swallowed_by_vte' (23) panicked at crates/core/tests/filter_conservation.rs:448:5: assertion `left == right` failed: CJK 文本后紧跟 Sixel 时文本必须完整 left: [230, 161, 140, 233, 157, 162, 230, 152, 175, 228, 184, 164, 229, 157, 151, 32, 50, 53, 54, 32, 232, 137, 178, 239, 188, 140, 230, 159, 144, 229, 140, 186, 229, 159, 159, 226, 148, 144, 32, 226, 157, 175, 32, 226, 155, 182, 32, 229, 155, 190, 32, 231, 155, 174, 32, 230, 158, 156, 32, 229, 174, 158, 32, 208, 160, 209, 131, 209, 129, 209, 129, 208, 186, 208, 184, 208, 185, 32, 208, 144, 208, 145, 208, 146, 27, 80, 113, 34, 49, 59, 49, 59, 50, 59, 50, 35, 48, 59, 50, 59, 49, 48, 48, 59, 48, 59, 48, 35, 49, 59, 50, 59, 48, 59, 49, 48, 48, 59, 48, 35, 48, 66, 35, 49, 66, 7, 65, 70, 84, 69, 82] right: [230, 161, 140, 233, 157, 162, 230, 152, 175, 228, 184, 164, 229, 157, 151, 32, 50, 53, 54, 32, 232, 137, 178, 239, 188, 140, 230, 159, 144, 229, 140, 186, 229, 159, 159, 226, 148, 144, 32, 226, 157, 175, 32, 226, 155, 182, 32, 229, 155, 190, 32, 231, 155, 174, 32, 230, 158, 156, 32, 229, 174, 158, 32, 208, 160, 209, 131, 209, 129, 209, 129, 208, 186, 208, 184, 208, 185, 32, 208, 144, 208, 145, 208, 146, 65, 70, 84, 69, 82] ---- image_sequence_swallows_only_itself stdout ---- thread 'image_sequence_swallows_only_itself' (17) panicked at crates/core/tests/filter_conservation.rs:384:13: assertion `left == right` failed: sixel-st: 切分 #57 结果与单 chunk 不一致 left: Output { pass: [66, 69, 70, 79, 82, 69, 13, 10, 27, 13, 10, 65, 70, 84, 69, 82], sixel_images: 1, iip_images: 0, kitty_commands: 0, kitty_errors: 0 } right: Output { pass: [66, 69, 70, 79, 82, 69, 13, 10, 13, 10, 65, 70, 84, 69, 82], sixel_images: 1, iip_images: 0, kitty_commands: 0, kitty_errors: 0 } ---- plain_text_is_byte_identical_for_every_chunking stdout ---- thread 'plain_text_is_byte_identical_for_every_chunking' (20) panicked at crates/core/tests/filter_conservation.rs:290:9: assertion `left == right` failed: cyrillic: 单 chunk 输出必须逐字节等于输入 left: [208, 160, 209, 131, 209, 129, 209, 129, 208, 186, 208, 184, 208, 185, 32, 209, 130, 208, 181, 208, 186, 209, 129, 209, 130, 58, 32, 208] right: [208, 160, 209, 131, 209, 129, 209, 129, 208, 186, 208, 184, 208, 185, 32, 209, 130, 208, 181, 208, 186, 209, 129, 209, 130, 58, 32, 208, 144, 208, 145, 208, 146, 208, 147, 208, 148, 208, 149, 208, 150, 32, 208, 159, 208, 160, 208, 152, 208, 146, 208, 149, 208, 162] ---- random_chunk_boundaries_mixed_corpus_are_chunking_invariant stdout ---- thread 'random_chunk_boundaries_mixed_corpus_are_chunking_invariant' (21) panicked at crates/core/tests/filter_conservation.rs:586:13: assertion `left == right` failed: cyrillic: seed=0 结束时仍有暂存字节 left: 28 right: 0 failures: image_sequence_swallows_only_itself known_deficit_c1_continuation_bytes_are_not_controls known_deficit_sixel_lone_esc_must_not_be_passed plain_text_is_byte_identical_for_every_chunking random_chunk_boundaries_mixed_corpus_are_chunking_invariant truncated_sixel_is_aborted_by_next_escape_sequence utf8_c1_continuation_then_sixel_is_not_swallowed_by_vte test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 11 filtered out; finished in 0.01s error: test failed, to rerun pass `-p xtervo-core --test filter_conservation` EXIT=101