Prove suffix reuse across unequal retained histories

This commit is contained in:
gloamxun committed 2026-12-02 01:06:03 +08:00
1 parent f78aff25c5
commit 1ff049737f
9 files changed
+781 -153

No files matched your search

+5 -2
View File
@@ -678,9 +678,12 @@ pub struct Execution {
pub stream_sources: BTreeSet<usize>,
#[serde(default)]
pub generated_inputs: std::collections::BTreeMap<usize, GeneratedInput>,
/// Reads made during this execution, not a license to reuse output after
/// state changes. Incremental execution/cache reuse is a later milestone.
/// Dependencies observed over the execution. Suffix reuse additionally
/// validates the state and the reads that follow its checkpoint.
pub reads: BTreeSet<Dependency>,
/// Internal epochs relate active checkpoint cuts to repeated reads.
#[serde(skip)]
dependency_evidence: dependency_reads::DependencyEvidence,
/// Per-source observations distinguish suffix reads from identical prefix reads.
#[serde(default, skip_serializing_if = "Option::is_none")]
line_observations: Option<BTreeMap<usize, usize>>,