playtest atlas: follow state changes, regards, persona material and pressures in the timeline

The first Zyphos run committed thirteen sweeps of patches that added no place, subject,
fact or commitment; the timeline recorded none of it. Each new state of a subject's
holdings, dependencies, authority and offices, and each new regard, persona material and
pressure, is now a followed entry first seen in the sweep that produced it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 05:44:03 +01:00
commit ff89da5db0

View file

@ -329,6 +329,7 @@ struct World {
commitments: Vec<Commitment>,
regards: Vec<Regard>,
materials: Vec<Material>,
pressures: Vec<String>,
unread: Vec<String>,
}
@ -543,6 +544,7 @@ fn parse_world(view: &str) -> World {
world.unread.push(format!("fact: {piece}"));
}
}
world.pressures = items(body("Pressures"));
for piece in items(body("Commitments")) {
match commitment_of(&piece) {
Some(commitment) => world.commitments.push(commitment),
@ -600,6 +602,26 @@ impl World {
keyed.insert(format!("office:{}:{}", subject.id, office.name), ("office", format!("{} of {}", office.name, subject.label)));
}
}
// What a sweep changes without adding a thing: a subject's holdings,
// dependencies, authority or offices, a regard, a persona's material, a
// pressure. Each new state is a key of its own, first seen when it appears.
for subject in &self.subjects {
let state = format!("holdings: {}; depends on: {}; authority: {}; offices held: {}; forums: {}", subject.holdings, subject.depends, subject.authority, subject.offices_held.len(), subject.forums);
keyed.insert(format!("state:{}:{state}", subject.id), ("state", format!("{} ({state})", subject.label)));
}
for regard in &self.regards {
keyed.insert(
format!("regard:{}:{}:{}", regard.holder_id, regard.toward, regard.total),
("regard", format!("{} regards {}: {} ({})", regard.holder, regard.toward, regard.word, regard.total)),
);
}
for material in &self.materials {
let name = self.subjects.iter().find(|subject| subject.id == material.id).map_or(material.id.as_str(), |subject| subject.label.as_str());
keyed.insert(format!("material:{}:{}|{}|{}", material.id, material.voice, material.values, material.memories), ("persona", format!("{name}: voice {}; values {}", material.voice, material.values)));
}
for pressure in &self.pressures {
keyed.insert(format!("pressure:{pressure}"), ("pressure", pressure.clone()));
}
for fact in &self.facts {
keyed.insert(format!("fact:{}", fact.id), ("fact", fact.statement.clone()));
}
@ -1055,7 +1077,7 @@ per-patch evidence references are not readable outside the kernel, so an entry n
let sweeps: BTreeSet<usize> = seen.values().map(|entry| entry.sweep).collect();
for sweep in sweeps {
let mut by_lens: BTreeMap<String, BTreeMap<&str, Vec<&str>>> = BTreeMap::new();
for entry in seen.values().filter(|entry| entry.sweep == sweep) {
for entry in seen.values().filter(|entry| entry.sweep == sweep && !(sweep == 0 && entry.section == "state")) {
by_lens.entry(if sweep == 0 { "Begin's seed".to_owned() } else { lens_names(&entry.lenses) }).or_default().entry(entry.section).or_default().push(&entry.label);
}
out.push_str(&format!("### Sweep {sweep}{}\n\n", if sweep == 0 { " (Begin's seed and run-ahead)" } else { "" }));