From d7d34585018d94c43cb2fe38fa31a576006354b7 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 21 Nov 2026 16:01:35 -0700 Subject: [PATCH] fix(spec): rule parts cited in bookspec's words in the web tests The sub-reference check reads 'INVARIANT n' as the old vocabulary and WB-assist-6 has no numbered parts; the comments now cite what exists. Co-Authored-By: Claude Fable 5.2 --- crates/ledger-gui/tests/web_connect.rs | 6 +++--- crates/ledger-link/tests/acme.rs | 4 ++-- crates/ledger-link/tests/link.rs | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/ledger-gui/tests/web_connect.rs b/crates/ledger-gui/tests/web_connect.rs index 1d036781..2c85d74c 100644 --- a/crates/ledger-gui/tests/web_connect.rs +++ b/crates/ledger-gui/tests/web_connect.rs @@ -320,7 +320,7 @@ fn copied(h: &Harness<'_, App>) -> Vec { .collect() } -/// WB-assist-6 INVARIANT 1: off by default, nothing but the switch and +/// WB-assist-6: off by default, nothing but the switch and /// words; and no switch at all when the window cannot offer them. #[test] fn the_switch_is_off_by_default_and_an_owner_without_web_assistants_has_none() { @@ -348,7 +348,7 @@ fn the_switch_is_off_by_default_and_an_owner_without_web_assistants_has_none() { ); } -/// WB-assist-6 INVARIANTS 2, 3: turned on, the progress in plain words, +/// WB-assist-6: turned on, the progress in plain words, /// then the address with Copy, the three steps for Claude, and for ChatGPT /// and the rest the plain "we haven't tested this yet". #[test] @@ -460,7 +460,7 @@ fn the_progress_steps_are_in_order() { ); } -/// WB-assist-6 INVARIANT 4: the relay cannot be reached (nothing is lost, +/// WB-assist-6: the relay cannot be reached (nothing is lost, /// the window and the local assistants work), the clock is wrong (it needs /// the person), the certificate is waited for. #[test] diff --git a/crates/ledger-link/tests/acme.rs b/crates/ledger-link/tests/acme.rs index 66369e5f..54ab4578 100644 --- a/crates/ledger-link/tests/acme.rs +++ b/crates/ledger-link/tests/acme.rs @@ -591,7 +591,7 @@ fn order_for(r: &Rig, authority: &Authority) -> OrderRequest<'static> { } } -/// WB-link-4 (INVARIANT 6): the relay's list can name any directory, and +/// WB-link-4 (invariant 6): the relay's list can name any directory, and /// the app contacts only a host compiled into it: no request is made for /// any other, however it is spelled. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] @@ -628,7 +628,7 @@ async fn a_directory_on_a_host_the_app_does_not_know_is_refused_before_any_reque assert!(r.acme.state.lock().unwrap().new_accounts.is_empty()); } -/// WB-link-4 (INVARIANT 6): an account kept for a directory that is not on +/// WB-link-4 (invariant 6): an account kept for a directory that is not on /// the list is not used; a new one is made at the authority named. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] async fn a_kept_account_for_an_unlisted_directory_is_not_used() { diff --git a/crates/ledger-link/tests/link.rs b/crates/ledger-link/tests/link.rs index 6aa14a31..fdc176ff 100644 --- a/crates/ledger-link/tests/link.rs +++ b/crates/ledger-link/tests/link.rs @@ -593,7 +593,7 @@ async fn a_stalled_handshake_is_dropped_and_no_door_means_no_service() { assert!(w.assistant(&host).await.unwrap().ends_with(BODY)); } -/// WB-link-4 (INVARIANTS 7 and 8 of certs.rs): the relay names the +/// WB-link-4 (invariants 7 and 8 of certs.rs): the relay names the /// authorities, so a certificate from one it made up is refused (the /// program trusts the public roots, not the relay's list): nothing is /// stored or served, the state says so, and a lifetime over the cap is @@ -634,7 +634,7 @@ async fn a_certificate_from_an_authority_the_relay_made_up_is_never_stored_or_se assert!(!w.dir.path().join("link/cert.json").exists()); } -/// WB-link-4 (INVARIANT 7): a certificate kept on disk that the program +/// WB-link-4 (invariant 7): a certificate kept on disk that the program /// would not trust is discarded and ordered again, and "a new address" /// does not bring it back. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] @@ -705,7 +705,7 @@ async fn a_name_taken_on_the_first_claim_settles_before_the_certificate_and_the_ assert!(w.assistant(&host).await.unwrap().ends_with(BODY)); } -/// WB-link-4 (INVARIANT 9 of certs.rs): a certificate is not served after +/// WB-link-4 (invariant 9 of certs.rs): a certificate is not served after /// its end, even when it cannot be renewed, and the state says it is gone. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] async fn an_expired_certificate_is_not_served_and_the_state_says_so() {