Phase-scoped repair notes, retrieved only from active, promoted program lineages.
Independent Hylo implementation of a design studied in HarnessPAI; no upstream code is
incorporated. Notes share the sealed program's digest. They describe repairs, not separately
validated executable skills. Rolling back a campaign removes the retired branch from recall.
PhasePlan
Bases: Contract
name
class-attribute
instance-attribute
name: str = Field(min_length=1, max_length=80)
goal
class-attribute
instance-attribute
goal: str = Field(min_length=1, max_length=500)
completion
class-attribute
instance-attribute
completion: str = Field(min_length=1, max_length=500)
fallback
class-attribute
instance-attribute
fallback: str = Field(min_length=1, max_length=500)
step_budget
class-attribute
instance-attribute
step_budget: int = Field(ge=1, le=10000)
PhasePlans
Bases: Contract
phases
class-attribute
instance-attribute
phases: list[PhasePlan] = Field(min_length=1, max_length=12)
RepairNote
Bases: Contract
phase
class-attribute
instance-attribute
phase: str = Field(min_length=1, max_length=80)
trigger
class-attribute
instance-attribute
trigger: str = Field(min_length=1, max_length=500)
repair
class-attribute
instance-attribute
repair: str = Field(min_length=1, max_length=1500)
limitation
class-attribute
instance-attribute
limitation: str = Field(min_length=1, max_length=500)
failure_refs
class-attribute
instance-attribute
failure_refs: list[str] = Field(min_length=1, max_length=12)
success_refs
class-attribute
instance-attribute
success_refs: list[str] = Field(min_length=1, max_length=12)
RepairNotes
Bases: Contract
repairs
class-attribute
instance-attribute
repairs: list[RepairNote] = Field(default_factory=list, max_length=8)
PhaseRepairMemory
PhaseRepairMemory(campaigns=())
Read-only view over campaign registries; never imports an unpromoted draft note.
campaigns
instance-attribute
campaigns = tuple(Path(p) for p in campaigns)
skipped
instance-attribute
retrieve
retrieve(query: str, *, phase: str | None = None, k: int = 4) -> list[dict]
validate_notes
validate_notes(notes: RepairNotes, phases: PhasePlans, evidence: dict) -> None
Every note cites an actual failed case and a successful case of the selected program.