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 <noreply@anthropic.com>
This commit is contained in:
parent
c61e4102e5
commit
f3ad78a6aa
2 changed files with 8 additions and 1 deletions
|
|
@ -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 <plan>`) runs `project` once per state, scenario and sample and writes one Markdown report.
|
||||
//! - A **simulation** (`--simulate <plan>`, `simulate.rs`) runs the cast of the swarm in turn in one simulated room.
|
||||
//!
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue