From f3ad78a6aafaef4436ca61ea1e60b8d1a49cd861 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 22:47:53 +0100 Subject: [PATCH] K23 fix-up: the harness's doc names no admission; the write-path check reads domain.rs: one query to her mind, the forge only read Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/harness.rs | 2 +- crates/mind-body/src/projection/interpret/tests.rs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/mind-body/src/projection/harness.rs b/crates/mind-body/src/projection/harness.rs index ff13449..b737a62 100644 --- a/crates/mind-body/src/projection/harness.rs +++ b/crates/mind-body/src/projection/harness.rs @@ -6,7 +6,7 @@ //! clock and a mocked "last heard from" table. The fixture is a `MouthReader`, so `project` reads it exactly as it reads //! the mouth, and whether a message is for her is still `address::is_for`, over the fixture's names. Its optional //! `[domain]` is what a read of her domain returned (`domain::DomainFacts`: repos and their pull requests, campaigns and -//! what was admitted under them, repos skipped), so a re-test renders her domain without the forge or her mind. +//! what was ruled, opened and closed under them, repos skipped), so a re-test renders her domain without the forge or her mind. //! - A **batch** (`--batch `) runs `project` once per state, scenario and sample and writes one Markdown report. //! - A **simulation** (`--simulate `, `simulate.rs`) runs the cast of the swarm in turn in one simulated room. //! diff --git a/crates/mind-body/src/projection/interpret/tests.rs b/crates/mind-body/src/projection/interpret/tests.rs index cc9de96..6695fdb 100644 --- a/crates/mind-body/src/projection/interpret/tests.rs +++ b/crates/mind-body/src/projection/interpret/tests.rs @@ -535,6 +535,13 @@ fn the_frame_offers_one_note_and_no_path_from_a_note_reaches_a_write() { assert!(!source.contains(write), "{name} reaches a write: {write}"); } } + // Her domain's live reader holds a mind client: it sends a query and nothing else (map 16.22.2). + let domain = include_str!("../domain.rs"); + for write in ["persona_put", "PersonaPut", ".admit(", "Admit(", "MindPort", "self_run"] { + assert!(!domain.contains(write), "domain.rs reaches a write: {write}"); + } + assert_eq!(domain.matches("client.call(").count(), 1, "one call to her mind, the query"); + assert!(["post(", "put(", "patch(", "delete("].iter().all(|verb| !domain.contains(&format!(".{verb}"))), "the forge is only read"); let projection = include_str!("../../projection.rs"); assert!(!projection.contains("persona_put") && !projection.contains(".admit("), "project holds the persona door read-only"); }