Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/a0-host-bounds/red-green/red.txt # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / evidence / a0-host-bounds / red-green / red.txt` 208 lines ยท 13485 bytes Raw Blame History 1 warning: unused imports: `COUNTER_WRAP_UJ` and `MAX_SAMPLE_GAP` 2 --> crates/synapse-bench/src/bounds.rs:23:27 3 | 4 23 | use crate::energy::{Spbm, COUNTER_WRAP_UJ, MAX_SAMPLE_GAP, SAMPLE_PERIOD, SENSOR_PERIOD_S}; 5 | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ 6 | 7 = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default 8 9 warning: unused import: `crate::floor::FloorReport` 10 --> crates/synapse-bench/src/bounds.rs:24:5 11 | 12 24 | use crate::floor::FloorReport; 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 14 15 warning: unused import: `Verifier` 16 --> crates/synapse-bench/src/bounds.rs:27:52 17 | 18 27 | use `ed25519`_dalek::{Signature, Signer, SigningKey, Verifier, VerifyingKey}; 19 | ^^^^^^^^ 20 21 warning: unused import: `std::hint::black_box` 22 --> crates/synapse-bench/src/bounds.rs:32:5 23 | 24 32 | use std::hint::black_box; 25 | ^^^^^^^^^^^^^^^^^^^^ 26 27 warning: unused import: `FileExt` 28 --> crates/synapse-bench/src/bounds.rs:34:25 29 | 30 34 | use std::os::unix::fs::{FileExt, OpenOptionsExt}; 31 | ^^^^^^^ 32 33 warning: fields `file`, `buf`, `offset`, and `chunks` are never read 34 --> crates/synapse-bench/src/bounds.rs:480:5 35 | 36 479 | pub struct DeviceState { 37 | ----------- fields in this struct 38 480 | file: File, 39 | ^^^^ 40 481 | buf: AlignedBytes, 41 | ^^^ 42 482 | offset: u64, 43 | ^^^^^^ 44 483 | chunks: u64, 45 | ^^^^^^ 46 | 47 = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default 48 49 warning: `synapse-bench` (lib test) generated 6 warnings (run `cargo fix --lib -p synapse-bench --tests` to apply 5 suggestions) 50 Finished `test` profile [unoptimized + debuginfo] target(s) in 5.53s 51 Running unittests src/lib.rs (target/debug/deps/synapse_bench-`a5aabe17679cd948`) 52 53 running 20 tests 54 test bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks ... FAILED 55 test bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight ... FAILED 56 test bounds::tests::memory_read_touches_every_word_of_every_pass ... FAILED 57 test bounds::tests::energy_figures_come_from_counter_differences ... FAILED 58 test bounds::tests::advancing_counter_passes_preflight ... ok 59 test bounds::tests::arm_sha256_matches_the_sha2_crate ... FAILED 60 test bounds::tests::memory_copy_copies_and_counts_both_directions ... FAILED 61 test bounds::tests::energy_figures_refuse_broken_windows ... FAILED 62 test bounds::tests::sha2_crate_probe_counts_hashed_bytes ... FAILED 63 test bounds::tests::w1_source_with_a_different_digest_is_refused ... FAILED 64 test rng::tests::below_stays_in_bounds_and_shuffle_is_permutation ... ok 65 test bounds::tests::device_probes_write_then_read_back_the_pattern ... FAILED 66 test bounds::tests::`ed25519`_probe_verifies_and_refuses_a_bad_signature ... FAILED 67 test bounds::tests::report_figures_are_recomputed_from_integers ... FAILED 68 test bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions ... FAILED 69 test bounds::tests::verify_refuses_a_protocol_changed_after_the_run ... FAILED 70 test bounds::tests::verify_refuses_a_changed_raw_sample ... FAILED 71 test bounds::tests::verify_accepts_sealed_evidence_as_written ... FAILED 72 test bounds::tests::verify_refuses_a_changed_report_figure ... FAILED 73 test bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing ... FAILED 74 75 failures: 76 77 ---- bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks stdout ---- 78 79 thread 'bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks' (`3458097`) panicked at crates/synapse-bench/src/bounds/tests.rs:97:5: 80 2 repetitions cannot give a range 81 82 ---- bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight stdout ---- 83 84 thread 'bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight' (`3458093`) panicked at crates/synapse-bench/src/bounds/tests.rs:152:5: 85 a counter that never advances is not a meter: None 86 87 ---- bounds::tests::memory_read_touches_every_word_of_every_pass stdout ---- 88 89 thread 'bounds::tests::memory_read_touches_every_word_of_every_pass' (`3458096`) panicked at crates/synapse-bench/src/bounds/tests.rs:486:5: 90 assertion `left == right` failed 91 left: 0 92 right: 24576 93 94 ---- bounds::tests::energy_figures_come_from_counter_differences stdout ---- 95 96 thread 'bounds::tests::energy_figures_come_from_counter_differences' (`3458091`) panicked at crates/synapse-bench/src/bounds/tests.rs:230:5: 97 assertion `left == right` failed 98 left: None 99 right: Some(20.0) 100 101 ---- bounds::tests::arm_sha256_matches_the_sha2_crate stdout ---- 102 103 thread 'bounds::tests::arm_sha256_matches_the_sha2_crate' (`3458088`) panicked at crates/synapse-bench/src/bounds/tests.rs:535:9: 104 assertion `left == right` failed: length 0 105 left: Some([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) 106 right: Some([227, 176, 196, 66, 152, 252, 28, 20, 154, 251, 244, 200, 153, 111, 185, 36, 39, 174, 65, 228, 100, 155, 147, 76, 164, 149, 153, 27, 120, 82, 184, 85]) 107 108 ---- bounds::tests::memory_copy_copies_and_counts_both_directions stdout ---- 109 110 thread 'bounds::tests::memory_copy_copies_and_counts_both_directions' (`3458095`) panicked at crates/synapse-bench/src/bounds/tests.rs:497:5: 111 assertion `left == right` failed 112 left: 0 113 right: 32768 114 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 115 116 ---- bounds::tests::energy_figures_refuse_broken_windows stdout ---- 117 118 thread 'bounds::tests::energy_figures_refuse_broken_windows' (`3458092`) panicked at crates/synapse-bench/src/bounds/tests.rs:260:9: 119 decreasing counter accepted 120 121 ---- bounds::tests::sha2_crate_probe_counts_hashed_bytes stdout ---- 122 123 thread 'bounds::tests::sha2_crate_probe_counts_hashed_bytes' (`3458099`) panicked at crates/synapse-bench/src/bounds/tests.rs:550:5: 124 assertion `left == right` failed 125 left: 0 126 right: 1200 127 128 ---- bounds::tests::w1_source_with_a_different_digest_is_refused stdout ---- 129 130 thread 'bounds::tests::w1_source_with_a_different_digest_is_refused' (`3458108`) panicked at crates/synapse-bench/src/bounds/tests.rs:468:5: 131 assertion failed: matches!(load_w1_flush(&repo_root(), &src), 132 Err(BoundsRefusal::W1SourceMismatch(_))) 133 134 ---- bounds::tests::device_probes_write_then_read_back_the_pattern stdout ---- 135 136 thread 'bounds::tests::device_probes_write_then_read_back_the_pattern' (`3458089`) panicked at crates/synapse-bench/src/bounds/tests.rs:514:5: 137 assertion `left == right` failed 138 left: 0 139 right: 32768 140 141 ---- bounds::tests::`ed25519`_probe_verifies_and_refuses_a_bad_signature stdout ---- 142 143 thread 'bounds::tests::`ed25519`_probe_verifies_and_refuses_a_bad_signature' (`3458090`) panicked at crates/synapse-bench/src/bounds/tests.rs:561:5: 144 assertion `left == right` failed 145 left: 0 146 right: 10 147 148 ---- bounds::tests::report_figures_are_recomputed_from_integers stdout ---- 149 150 thread 'bounds::tests::report_figures_are_recomputed_from_integers' (`3458098`) panicked at crates/synapse-bench/src/bounds/tests.rs:324:10: 151 called `Option::unwrap()` on a `None` value 152 153 ---- bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions stdout ---- 154 155 thread 'bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions' (`3458106`) panicked at crates/synapse-bench/src/bounds/tests.rs:431:5: 156 a dropped repetition (cherry-picking) must not verify: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "`c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0`", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "`9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef`", probes: [] }, bound_inputs: [], probes: [] }) 157 158 ---- bounds::tests::verify_refuses_a_protocol_changed_after_the_run stdout ---- 159 160 thread 'bounds::tests::verify_refuses_a_protocol_changed_after_the_run' (`3458104`) panicked at crates/synapse-bench/src/bounds/tests.rs:415:5: 161 Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "`c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0`", raw_sha256: "", source_rev: "synthetic", repetitions: 4, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "`9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef`", probes: [] }, bound_inputs: [], probes: [] }) 162 163 ---- bounds::tests::verify_refuses_a_changed_raw_sample stdout ---- 164 165 thread 'bounds::tests::verify_refuses_a_changed_raw_sample' (`3458101`) panicked at crates/synapse-bench/src/bounds/tests.rs:376:5: 166 one nanosecond changed in raw.json must break the report: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "`c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0`", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "`9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef`", probes: [] }, bound_inputs: [], probes: [] }) 167 168 ---- bounds::tests::verify_accepts_sealed_evidence_as_written stdout ---- 169 170 thread 'bounds::tests::verify_accepts_sealed_evidence_as_written' (`3458100`) panicked at crates/synapse-bench/src/bounds/tests.rs:369:5: 171 assertion `left == right` failed 172 left: 0 173 right: 8 174 175 ---- bounds::tests::verify_refuses_a_changed_report_figure stdout ---- 176 177 thread 'bounds::tests::verify_refuses_a_changed_report_figure' (`3458102`) panicked at crates/synapse-bench/src/bounds/tests.rs:395:5: 178 an edited figure must not verify: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "`c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0`", raw_sha256: "", source_rev: "synthetic", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "synthetic", clock_resolution_ns: 1, energy_sensor: "synthetic", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "`9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef`", probes: [] }, bound_inputs: [], probes: [] }) 179 180 ---- bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing stdout ---- 181 182 thread 'bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing' (`3458094`) panicked at crates/synapse-bench/src/bounds/tests.rs:136:28: 183 hidden meter must refuse, got a report: Ok(Report { schema: "synapse-bench/a0-host-bounds-report/v1", protocol_sha256: "`c53e423d5d21c11eb4685095a9c66eec4f8c3c028ce43c3e0b7b8def35a3e4a0`", raw_sha256: "", source_rev: "test", repetitions: 3, central_statistic: Median, spread_statistic: Range, bound_statistic: MaxRate, instruments: Instruments { clock: "CLOCK_MONOTONIC (std::time::Instant)", clock_resolution_ns: 1, energy_sensor: "aien_spbm hwmon, SoC package only (GB10 SPBM firmware counters; pkg, cpu_e, cpu_p; no published accuracy; not compared with an external meter; NVMe drive energy outside it, UNMEASURED)", energy_step_uj: 1000, energy_update_period_ms: 100, energy_sample_period_ms: 100 }, w1_flush: W1Flush { path: "evidence/phase5-group-commit/floor.json", sha256: "`9c30eddf2e278921b28df5ecd8f3b2e2b8f43771c73c5c540b8d9dc965f5ccef`", probes: [] }, bound_inputs: [], probes: [] }) 184 185 186 failures: 187 bounds::tests::arm_sha256_matches_the_sha2_crate 188 bounds::tests::device_probes_write_then_read_back_the_pattern 189 bounds::tests::`ed25519`_probe_verifies_and_refuses_a_bad_signature 190 bounds::tests::energy_figures_come_from_counter_differences 191 bounds::tests::energy_figures_refuse_broken_windows 192 bounds::tests::frozen_overflowed_or_missing_counters_refuse_preflight 193 bounds::tests::hidden_energy_device_refuses_with_instrument_unavailable_and_writes_nothing 194 bounds::tests::memory_copy_copies_and_counts_both_directions 195 bounds::tests::memory_read_touches_every_word_of_every_pass 196 bounds::tests::protocol_refuses_too_few_repetitions_and_unaligned_device_chunks 197 bounds::tests::report_figures_are_recomputed_from_integers 198 bounds::tests::sha2_crate_probe_counts_hashed_bytes 199 bounds::tests::verify_accepts_sealed_evidence_as_written 200 bounds::tests::verify_refuses_a_changed_raw_sample 201 bounds::tests::verify_refuses_a_changed_report_figure 202 bounds::tests::verify_refuses_a_protocol_changed_after_the_run 203 bounds::tests::verify_refuses_dropped_extra_or_resized_repetitions 204 bounds::tests::w1_source_with_a_different_digest_is_refused 205 206 test result: FAILED. 2 passed; 18 failed; 0 ignored; 0 measured; 19 filtered out; finished in 0.23s 207 208 error: test failed, to rerun pass `-p synapse-bench --lib`