eureka-pipeline, huginn-mind: a Sleep turn shares the Persona slot, a consolidation is a pair
RunTurn gains Sleep and RunSlot/RunTurn::slot (PersonaTurn and Sleep hold the Persona slot, a Self run the other); live_holder, launch holders and the unit template compare slots, not turns. MemoryOrigin gains Sleep { run }. Admission refuses an unpaired consolidation both ways (MindRefusal::UnpairedConsolidation): a memory that consolidates others without a Superseded resolution of each by it in the batch, and a memory Superseded by memories that do not name it. Published schemas regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c1c3e7d6fe
commit
79edda37f6
15 changed files with 293 additions and 29 deletions
|
|
@ -736,10 +736,29 @@ unit_enums! {
|
|||
RulingAuthority { Operator, Standing, Defaulted, Mind }
|
||||
FindingOrigin { Introduced, PreExisting }
|
||||
RunOperator { Operator, Mind }
|
||||
RunTurn { PersonaTurn, SelfRun }
|
||||
RunTurn { PersonaTurn, SelfRun, Sleep }
|
||||
MemorySort { Asked, Decided, Committed, Learned, Did, Idea, Rapport }
|
||||
}
|
||||
|
||||
/// The slots of a Mind's runs: one live run of hers per instance and slot. A
|
||||
/// Persona session and her Sleep run share the Persona slot (unit
|
||||
/// `mind-persona@`); a Self run holds the other.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum RunSlot {
|
||||
Persona,
|
||||
SelfRun,
|
||||
}
|
||||
|
||||
impl RunTurn {
|
||||
/// The slot this turn holds while live; admission and launch both read it here.
|
||||
pub fn slot(self) -> RunSlot {
|
||||
match self {
|
||||
Self::PersonaTurn | Self::Sleep => RunSlot::Persona,
|
||||
Self::SelfRun => RunSlot::SelfRun,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
value_types! {
|
||||
pub struct CodeLocation { path: Short, line: u32, end_line: Option<u32>, symbol: Option<Symbol> = absent }
|
||||
pub struct CommitRange { base: Sha, head: Sha }
|
||||
|
|
@ -1004,6 +1023,8 @@ pub enum MemoryOrigin {
|
|||
Wake,
|
||||
/// A Self run of hers, by its label.
|
||||
SelfRun { run: Short },
|
||||
/// Her Sleep run, by its label: a memory she formed in her night.
|
||||
Sleep { run: Short },
|
||||
}
|
||||
|
||||
impl Bounded for MemoryOrigin {
|
||||
|
|
@ -1018,7 +1039,7 @@ impl Bounded for MemoryOrigin {
|
|||
list(&format!("{field}.with"), with, 8)
|
||||
}
|
||||
Self::Wake => Ok(()),
|
||||
Self::SelfRun { run } => run.validate(&format!("{field}.run")),
|
||||
Self::SelfRun { run } | Self::Sleep { run } => run.validate(&format!("{field}.run")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue