Digest: a ruling the operator drove for her reads "by Nibu with Meta, the operator", so a bond label's clause comes last

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 23:19:17 +01:00
commit 44fbc04b7c
2 changed files with 6 additions and 5 deletions

View file

@ -397,11 +397,12 @@ pub(crate) struct Digest {
pub(crate) items: Vec<Item>,
}
/// Who ran a ruling's admission, in words after "ruled": by the operator and her where the operator drove a session of
/// hers, by the operator, in her own session; nothing when no one can be told.
/// Who ran a ruling's admission, in words after "ruled": by her with the operator where the operator drove a session of
/// hers (her bond's label for the operator may carry a clause, "Meta, the operator", so it comes last), by the operator,
/// in her own session; nothing when no one can be told.
fn by(who: Who, names: &Names) -> String {
match who {
Who::OperatorWithHer => format!(" by {} and {}", names.operator, names.her),
Who::OperatorWithHer => format!(" by {} with {}", names.her, names.operator),
Who::Operator => format!(" by {}", names.operator),
Who::Her => format!(" in {}'s own session", names.her),
Who::Unknown => String::new(),

View file

@ -279,7 +279,7 @@ fn a_fixture_reads_as_the_live_facts_do() {
assert_eq!(DomainSource::read(&facts, since(), now()).unwrap(), facts);
assert_eq!(texts(&facts), vec![
"- GameCult/Aetheria: merged \"Docs: passages made true\", opened by nibu".to_owned(),
"- aetheria-release: ruled by Meta and Eureka: \"Ship v0.2.0\"".to_owned(),
"- aetheria-release: ruled by Eureka with Meta: \"Ship v0.2.0\"".to_owned(),
]);
assert!(toml::from_str::<DomainFacts>("[[repos]]\nrepo = \"x\"\nwho = \"y\"\n").is_err(), "an unknown key refuses the fixture");
}
@ -305,7 +305,7 @@ fn who_is_the_mind_or_person_that_ran_it_never_a_faculty() {
assert_eq!(texts(&facts), vec![
"- camp-0: ruled: \"Hated standing is kill on sight, part 0\"".to_owned(),
"- camp-1: ruled in Eureka's own session: \"Hated standing is kill on sight, part 1\"".to_owned(),
"- camp-2: ruled by Meta and Eureka: \"Hated standing is kill on sight, part 2\"".to_owned(),
"- camp-2: ruled by Eureka with Meta: \"Hated standing is kill on sight, part 2\"".to_owned(),
"- camp-3: ruled by Meta: \"Hated standing is kill on sight, part 3\"".to_owned(),
]);
}