synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / g1-wire-frames / red-green / red.txt
| 1 | # Red (2026-10-16, G1 working tree on base e863c87, before the first commit) |
| 2 | # Command: cargo test --no-fail-fast -p synapse-wire --test g1_wire --test g1_fuzz |
| 3 | # Every failure below is an assertion on the behaviour under test (no compile error). |
| 4 | # |
| 5 | # Red 1 stub: the frame body decoder is unimplemented (frame.rs body_probed: every body |
| 6 | # is refused as Truncated). Header checks, transport and server code unchanged. |
| 7 | test negative_control_fuzzer_finds_planted_allocation_over_cap ... ok |
| 8 | test negative_control_fuzzer_finds_planted_panic ... ok |
| 9 | test negative_control_fuzzer_finds_planted_read_past_frame ... FAILED |
| 10 | test negative_control_fuzzer_finds_planted_non_canonical_accept ... FAILED |
| 11 | test every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal ... FAILED |
| 12 | test fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap ... FAILED |
| 13 | thread 'negative_control_fuzzer_finds_planted_read_past_frame' (365422) panicked at crates/synapse-wire/tests/g1_fuzz.rs:148:5: |
| 14 | planted read_past_frame bug not found; counts {} |
| 15 | thread 'negative_control_fuzzer_finds_planted_non_canonical_accept' (365420) panicked at crates/synapse-wire/tests/g1_fuzz.rs:148:5: |
| 16 | planted non_canonical_accept bug not found; counts {} |
| 17 | thread 'every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal' (365417) panicked at crates/synapse-wire/tests/g1_fuzz.rs:110:5: |
| 18 | accepted 0 of 14 valid seeds |
| 19 | thread 'fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap' (365418) panicked at crates/synapse-wire/tests/g1_fuzz.rs:92:9: |
| 20 | no accepted Hello |
| 21 | test result: FAILED. 2 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s |
| 22 | test malformed_body_is_refused_with_typed_refusal ... ok |
| 23 | test malformed_header_is_refused_with_typed_refusal ... ok |
| 24 | test every_frame_kind_round_trips_to_identical_bytes ... FAILED |
| 25 | test decoder_never_reads_past_a_frame ... FAILED |
| 26 | test stream_reader_refuses_length_over_cap_before_reading_the_body ... ok |
| 27 | test server_closes_connection_on_frame_before_hello_or_malformed_frame ... FAILED |
| 28 | test server_refuses_protocol_violations_with_typed_refusals ... FAILED |
| 29 | test have_want_sends_only_missing_chunks_and_acknowledges_durable_changes ... FAILED |
| 30 | thread 'every_frame_kind_round_trips_to_identical_bytes' (365505) panicked at crates/synapse-wire/tests/g1_wire.rs:36:58: |
| 31 | called `Result::unwrap()` on an `Err` value: Truncated { at: 16, need: 0 } |
| 32 | thread 'decoder_never_reads_past_a_frame' (365504) panicked at crates/synapse-wire/tests/g1_wire.rs:206:60: |
| 33 | called `Result::unwrap()` on an `Err` value: Truncated { at: 16, need: 0 } |
| 34 | thread 'server_closes_connection_on_frame_before_hello_or_malformed_frame' (365509) panicked at crates/synapse-wire/tests/g1_wire.rs:530:50: |
| 35 | called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" } |
| 36 | thread 'server_refuses_protocol_violations_with_typed_refusals' (365510) panicked at crates/synapse-wire/tests/g1_wire.rs:245:59: |
| 37 | called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" } |
| 38 | thread 'have_want_sends_only_missing_chunks_and_acknowledges_durable_changes' (365506) panicked at crates/synapse-wire/tests/g1_wire.rs:245:59: |
| 39 | called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" } |
| 40 | test result: FAILED. 3 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s |
| 41 | |
| 42 | # Red 2 stubs (body decoder intact): the header checks for magic, flags and reserved |
| 43 | # bytes are off, the trailing-bytes check is off (frame.rs), the server wants every |
| 44 | # offered digest instead of only the missing ones, and accepts chunks it did not ask for |
| 45 | # or whose bytes do not match their digest (session.rs). The read timeout turns the |
| 46 | # missing refusal into a failure instead of a hang. |
| 47 | test negative_control_fuzzer_finds_planted_read_past_frame ... ok |
| 48 | test negative_control_fuzzer_finds_planted_panic ... ok |
| 49 | test negative_control_fuzzer_finds_planted_allocation_over_cap ... ok |
| 50 | test negative_control_fuzzer_finds_planted_non_canonical_accept ... ok |
| 51 | test every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal ... FAILED |
| 52 | test fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap ... FAILED |
| 53 | thread 'every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal' (366021) panicked at crates/synapse-wire/tests/g1_fuzz.rs:106:5: |
| 54 | [(14, "[(\"non_canonical_accept\", \"re-encoded 28 bytes differ from 28\")]"), (18, "[(\"non_canonical_accept\", \"re-encoded 28 bytes differ from 28\")]"), (19, "[(\"non_canonical_accept\", \"re-encoded 28 bytes differ from 28\")]"), (22, |
| 55 | thread 'fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap' (366022) panicked at crates/synapse-wire/tests/g1_fuzz.rs:66:5: |
| 56 | assertion `left == right` failed: violations: [("non_canonical_accept", "re-encoded 28 bytes differ from 28"), ("non_canonical_accept", "re-encoded 28 bytes differ from 28"), ("non_canonical_accept", "re-encoded 28 bytes differ from 28"), ( |
| 57 | left: 27218 |
| 58 | test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.07s |
| 59 | test malformed_body_is_refused_with_typed_refusal ... ok |
| 60 | test malformed_header_is_refused_with_typed_refusal ... FAILED |
| 61 | test every_frame_kind_round_trips_to_identical_bytes ... ok |
| 62 | test stream_reader_refuses_length_over_cap_before_reading_the_body ... ok |
| 63 | test decoder_never_reads_past_a_frame ... ok |
| 64 | test server_closes_connection_on_frame_before_hello_or_malformed_frame ... ok |
| 65 | test have_want_sends_only_missing_chunks_and_acknowledges_durable_changes ... FAILED |
| 66 | test server_refuses_protocol_violations_with_typed_refusals ... FAILED |
| 67 | thread 'malformed_header_is_refused_with_typed_refusal' (366472) panicked at crates/synapse-wire/tests/g1_wire.rs:78:54: |
| 68 | called `Result::unwrap_err()` on an `Ok` value: (Frame { request_id: 0, body: Hello(Hello { max_frame_body: 4096, max_pending_chunk_bytes: 1048576 }) }, 28) |
| 69 | thread 'have_want_sends_only_missing_chunks_and_acknowledges_durable_changes' (366470) panicked at crates/synapse-wire/tests/g1_wire.rs:288:9: |
| 70 | assertion `left == right` failed |
| 71 | left: (2, 2) |
| 72 | thread 'server_refuses_protocol_violations_with_typed_refusals' (366474) panicked at crates/synapse-wire/tests/g1_wire.rs:369:64: |
| 73 | called `Result::unwrap()` on an `Err` value: SynapseError { code: IoFailure, message: "wire transport: Resource temporarily unavailable (os error 11)" } |
| 74 | test result: FAILED. 5 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 20.30s |