Proof line in Nibu's voice: the intervention frame says "will stop", no purpose clause

Nibu ruled "Nibu will prevent that to protect you." is not her voice. The
intervention row is now "{agent} will stop {patient}" and the proof packet no
longer fills the beneficiary role; a packet that does is refused as a role the
frame does not name, so a purpose is never silently dropped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Weksa 2026-11-07 10:00:41 +00:00
commit 02e376f126
4 changed files with 27 additions and 17 deletions

View file

@ -64,11 +64,7 @@ const FRAMES: &[Row] = &[
"hazard_warning",
"{agent} may endanger {patient} by touching {instrument}",
),
(
"frame:2",
"intervention",
"{agent} will prevent {patient} to protect {beneficiary}",
),
("frame:2", "intervention", "{agent} will stop {patient}"),
];
/// Speech acts: the opener of the first sentence.

View file

@ -349,7 +349,7 @@ pub struct Trace {
}
/// The `nibu-proof-001` packet: the meaning of `examples/english-lowering/nibu-proof-001/interlingua.yaml`
/// (warn the player off the damaged control; Nibu prevents it for them) as typed
/// (warn the player off the damaged control; Nibu will stop it) as typed
/// ids of inventory revision 2, for the corpus item `item:nibu:1`. No features:
/// nothing here is style.
pub fn proof_packet() -> Packet {
@ -408,11 +408,7 @@ pub fn proof_packet() -> Packet {
id: node("n5"),
concept: id("concept:2"),
frame: id("frame:2"),
roles: vec![
fill("role:1", "n3"),
fill("role:2", "n4"),
fill("role:8", "n1"),
],
roles: vec![fill("role:1", "n3"), fill("role:2", "n4")],
features: vec![],
},
],

View file

@ -807,7 +807,7 @@ fn proof_packet_lowers_and_the_lowering_scores_against_items() {
"--slug",
"nibu",
"--text",
"Warning: you may endanger yourself by touching the control. NIBU will prevent that to protect you.",
"Warning: you may endanger yourself by touching the control. NIBU will stop that.",
"--speaker",
"entity:nibu",
"--group",
@ -833,7 +833,7 @@ fn proof_packet_lowers_and_the_lowering_scores_against_items() {
"{text}"
);
// The referent cites entity:nibu: its stored en-US form (NIBU here) reaches the text as stored.
assert!(text.contains("NIBU will prevent"), "{text}");
assert!(text.contains("NIBU will stop"), "{text}");
let missing = weksa(d.path(), &["lower", "./p.cc", "packet:0000000000000000"]);
assert!(!missing.status.success() && out(&missing).contains("no packet"));

View file

@ -15,7 +15,7 @@ use weksa::{
};
const PROOF: &str = "Warning: you may endanger yourself by touching the control. \
Nibu will prevent that to protect you.";
Nibu will stop that.";
fn committed() -> (Inventory, tempfile::TempDir) {
let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../..");
@ -75,7 +75,7 @@ fn only_the_addressee_is_you_and_is_reflexive() {
assert_eq!(
lowered(&p, &inv).unwrap(),
"Warning: the player may endanger the player by touching the control. \
Nibu will prevent that to protect the player."
Nibu will stop that."
);
}
@ -270,7 +270,7 @@ fn a_name_survives_lowering_verbatim_where_the_concept_word_was() {
assert_eq!(
through(&e).unwrap(),
"Warning: you may endanger yourself by touching the control. \
nibu-of-the-deep will prevent that to protect you."
nibu-of-the-deep will stop that."
);
}
@ -335,6 +335,24 @@ fn an_addressee_entity_still_lowers_to_you_and_is_never_looked_up() {
assert_eq!(
lower(&view(&p, &inv), &inv, &faulting).unwrap(),
"Warning: you may endanger yourself by touching the control. \
The ship mind will prevent that to protect you."
The ship mind will stop that."
);
}
#[test]
fn a_purpose_the_frame_does_not_say_is_refused_not_dropped() {
// The intervention row says "will stop"; a packet that also fills the
// beneficiary role would assert a purpose the text does not carry.
let (inv, _dir) = committed();
let mut p = proof_packet();
p.predications[1].roles.push(weksa::packet::RoleFill {
role: iv("role:8"),
filler: nd("n1"),
});
assert_eq!(
lowered(&p, &inv),
Err(LowerError::Unrendered {
what: "a role the frame does not name"
})
);
}