synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / j3-crypto-vectors / red-green / review-red.txt
| 1 | # J3 review round, red: new tests against stubs (ed25519_edge_cases empty, CORPUS_SHA256 unpinned). 2026-10-14T18:57:22Z |
| 2 | $ cargo test -p synapse-bench --lib crypto_vectors |
| 3 | |
| 4 | running 15 tests |
| 5 | test crypto_vectors::tests::inner_portable_backend_is_in_use ... ok |
| 6 | test crypto_vectors::tests::sealed_corpus_digest_is_pinned ... FAILED |
| 7 | test crypto_vectors::tests::decoder_refuses_malformed_corpora_with_typed_errors ... ok |
| 8 | test crypto_vectors::tests::corpus_pins_the_edge_case_decisions ... ok |
| 9 | test crypto_vectors::tests::every_length_across_the_block_boundaries_is_in_the_corpus ... ok |
| 10 | test crypto_vectors::tests::rfc8032_vectors_match_the_rust_crate_and_are_in_the_corpus ... ok |
| 11 | test crypto_vectors::tests::corpus_round_trips_byte_for_byte ... ok |
| 12 | test crypto_vectors::tests::models_reproduce_dalek_on_the_whole_corpus ... ok |
| 13 | test crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation ... FAILED |
| 14 | test crypto_vectors::tests::a0_instruction_code_gives_every_corpus_digest ... ok |
| 15 | test crypto_vectors::tests::published_sha256_answers_match_the_rust_crate_and_are_in_the_corpus ... ok |
| 16 | test crypto_vectors::tests::every_corpus_answer_is_the_rust_crates_answer ... ok |
| 17 | test crypto_vectors::tests::sealed_corpus_matches_the_rust_crates_exactly ... ok |
| 18 | test crypto_vectors::tests::workspace_sha2_is_built_with_its_aarch64_instruction_backend ... ok |
| 19 | test crypto_vectors::tests::portable_sha2_backend_gives_the_sealed_corpus ... ok |
| 20 | |
| 21 | failures: |
| 22 | |
| 23 | ---- crypto_vectors::tests::sealed_corpus_digest_is_pinned stdout ---- |
| 24 | |
| 25 | thread 'crypto_vectors::tests::sealed_corpus_digest_is_pinned' (11814) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:440:5: |
| 26 | assertion `left == right` failed: corpus digest not pinned |
| 27 | left: 0 |
| 28 | right: 64 |
| 29 | |
| 30 | ---- crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation stdout ---- |
| 31 | |
| 32 | thread 'crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation' (11806) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:696:32: |
| 33 | edge case noncanonical_r_y_p_plus_1 missing |
| 34 | |
| 35 | |
| 36 | failures: |
| 37 | crypto_vectors::tests::each_edge_case_is_in_the_corpus_and_catches_a_wrong_implementation |
| 38 | crypto_vectors::tests::sealed_corpus_digest_is_pinned |
| 39 | |
| 40 | test result: FAILED. 13 passed; 2 failed; 0 ignored; 0 measured; 42 filtered out; finished in 0.69s |
| 41 | |
| 42 | error: test failed, to rerun pass `-p synapse-bench --lib` |
| 43 | |
| 44 | # Negative control for the backend check: the portable-backend assertion run in the default (instruction) build must fail. |
| 45 | $ SYNAPSE_J3_PORTABLE_INNER=1 cargo test -p synapse-bench --lib -- --exact crypto_vectors::tests::inner_portable_backend_is_in_use |
| 46 | |
| 47 | running 1 test |
| 48 | test crypto_vectors::tests::inner_portable_backend_is_in_use ... FAILED |
| 49 | |
| 50 | failures: |
| 51 | |
| 52 | ---- crypto_vectors::tests::inner_portable_backend_is_in_use stdout ---- |
| 53 | |
| 54 | thread 'crypto_vectors::tests::inner_portable_backend_is_in_use' (11895) panicked at crates/synapse-bench/src/crypto_vectors/tests.rs:375:5: |
| 55 | assertion `left == right` failed: sha2 backend: instruction code linked = true, CPU reports sha2 = true |
| 56 | left: Instructions |
| 57 | right: Portable |
| 58 | |
| 59 | |
| 60 | failures: |
| 61 | crypto_vectors::tests::inner_portable_backend_is_in_use |
| 62 | |
| 63 | test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 56 filtered out; finished in 0.52s |
| 64 | |
| 65 | error: test failed, to rerun pass `-p synapse-bench --lib` |
| 66 | |
| 67 | # Note: portable_sha2_backend_gives_the_sealed_corpus is a regression guard on the fallback; it first failed only because the symbol needle matched its own constant in the binary (fixed by storing it reversed). It cannot be red for the intended reason without breaking sha2's portable code. |