synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / crumb-synapse / negative-control.txt
| 1 | Negative control for the D5 suite (2026-10-14, on 9f0e1b0 plus the S12 wording change) |
| 2 | |
| 3 | Break on purpose: crates/synapse-evidence/src/lib.rs, EvidenceReceipt::verify, the result of |
| 4 | key.verify_strict(...) was discarded (`.ok();` in place of |
| 5 | `.map_err(|_| ReceiptError::SignatureInvalid)?;`), so any signature would be accepted. |
| 6 | |
| 7 | Run: CRUMB_C_BIN=<pinned crumb.c> cargo test -q -p synapse-bench --test crumb_synapse_qualification -- --nocapture --test-threads=1 |
| 8 | |
| 9 | Result: exit 101 (red). |
| 10 | test result: FAILED. 13 passed; 1 failed; 1 ignored |
| 11 | s06_forged_and_tampered_receipts_refused panicked: "not refused: Current { ... outcome: Pass }" |
| 12 | (the receipt with its last signature byte flipped verified Current); no D5-RESULT S06 line. |
| 13 | |
| 14 | Revert: git checkout -- crates/synapse-evidence/src/lib.rs (no production diff remains; the |
| 15 | committed run in results.txt is green on the unmodified code). |