interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / g1-wire-frames / red-green / red.txt

74 lines · 6677 bytes Raw Blame History
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.
7test negative_control_fuzzer_finds_planted_allocation_over_cap ... ok
8test negative_control_fuzzer_finds_planted_panic ... ok
9test negative_control_fuzzer_finds_planted_read_past_frame ... FAILED
10test negative_control_fuzzer_finds_planted_non_canonical_accept ... FAILED
11test every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal ... FAILED
12test fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap ... FAILED
13thread 'negative_control_fuzzer_finds_planted_read_past_frame' (365422) panicked at crates/synapse-wire/tests/g1_fuzz.rs:148:5:
14planted read_past_frame bug not found; counts {}
15thread 'negative_control_fuzzer_finds_planted_non_canonical_accept' (365420) panicked at crates/synapse-wire/tests/g1_fuzz.rs:148:5:
16planted non_canonical_accept bug not found; counts {}
17thread 'every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal' (365417) panicked at crates/synapse-wire/tests/g1_fuzz.rs:110:5:
18accepted 0 of 14 valid seeds
19thread '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:
20no accepted Hello
21test result: FAILED. 2 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s
22test malformed_body_is_refused_with_typed_refusal ... ok
23test malformed_header_is_refused_with_typed_refusal ... ok
24test every_frame_kind_round_trips_to_identical_bytes ... FAILED
25test decoder_never_reads_past_a_frame ... FAILED
26test stream_reader_refuses_length_over_cap_before_reading_the_body ... ok
27test server_closes_connection_on_frame_before_hello_or_malformed_frame ... FAILED
28test server_refuses_protocol_violations_with_typed_refusals ... FAILED
29test have_want_sends_only_missing_chunks_and_acknowledges_durable_changes ... FAILED
30thread 'every_frame_kind_round_trips_to_identical_bytes' (365505) panicked at crates/synapse-wire/tests/g1_wire.rs:36:58:
31called `Result::unwrap()` on an `Err` value: Truncated { at: 16, need: 0 }
32thread 'decoder_never_reads_past_a_frame' (365504) panicked at crates/synapse-wire/tests/g1_wire.rs:206:60:
33called `Result::unwrap()` on an `Err` value: Truncated { at: 16, need: 0 }
34thread 'server_closes_connection_on_frame_before_hello_or_malformed_frame' (365509) panicked at crates/synapse-wire/tests/g1_wire.rs:530:50:
35called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" }
36thread 'server_refuses_protocol_violations_with_typed_refusals' (365510) panicked at crates/synapse-wire/tests/g1_wire.rs:245:59:
37called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" }
38thread 'have_want_sends_only_missing_chunks_and_acknowledges_durable_changes' (365506) panicked at crates/synapse-wire/tests/g1_wire.rs:245:59:
39called `Result::unwrap()` on an `Err` value: SynapseError { code: WireFrameMalformed, message: "wire frame: Truncated (Truncated { at: 16, need: 0 })" }
40test 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.
47test negative_control_fuzzer_finds_planted_read_past_frame ... ok
48test negative_control_fuzzer_finds_planted_panic ... ok
49test negative_control_fuzzer_finds_planted_allocation_over_cap ... ok
50test negative_control_fuzzer_finds_planted_non_canonical_accept ... ok
51test every_malformed_frame_in_fuzz_corpus_is_refused_with_typed_refusal ... FAILED
52test fuzzing_frame_decoder_finds_no_panic_no_read_past_frame_no_allocation_over_cap ... FAILED
53thread '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,
55thread '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:
56assertion `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
58test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.07s
59test malformed_body_is_refused_with_typed_refusal ... ok
60test malformed_header_is_refused_with_typed_refusal ... FAILED
61test every_frame_kind_round_trips_to_identical_bytes ... ok
62test stream_reader_refuses_length_over_cap_before_reading_the_body ... ok
63test decoder_never_reads_past_a_frame ... ok
64test server_closes_connection_on_frame_before_hello_or_malformed_frame ... ok
65test have_want_sends_only_missing_chunks_and_acknowledges_durable_changes ... FAILED
66test server_refuses_protocol_violations_with_typed_refusals ... FAILED
67thread 'malformed_header_is_refused_with_typed_refusal' (366472) panicked at crates/synapse-wire/tests/g1_wire.rs:78:54:
68called `Result::unwrap_err()` on an `Ok` value: (Frame { request_id: 0, body: Hello(Hello { max_frame_body: 4096, max_pending_chunk_bytes: 1048576 }) }, 28)
69thread 'have_want_sends_only_missing_chunks_and_acknowledges_durable_changes' (366470) panicked at crates/synapse-wire/tests/g1_wire.rs:288:9:
70assertion `left == right` failed
71 left: (2, 2)
72thread 'server_refuses_protocol_violations_with_typed_refusals' (366474) panicked at crates/synapse-wire/tests/g1_wire.rs:369:64:
73called `Result::unwrap()` on an `Err` value: SynapseError { code: IoFailure, message: "wire transport: Resource temporarily unavailable (os error 11)" }
74test result: FAILED. 5 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 20.30s