Reconcile retained history accounting

This commit is contained in:
2026-10-26 17:46:31 +00:00
parent 12fd0a7191
commit 6a1447c327
8 changed files with 62 additions and 58 deletions

View File

@@ -119,14 +119,9 @@ func TestCLIHistoryEvidenceKeepsCheckpointsAndConditionalReconciliation(t *testi
builder.observePreCLICheckpoint(preCLI, preOrigins)
builder.observeCLIEvidence(applications, records)
builder.observePostCLICheckpoint(postCLI, postOrigins)
preCount, _ := documentAtPath(preCLI, Keys("count"))
postCount, _ := documentAtPath(postCLI, Keys("count"))
preCount.Text = "producer mutation"
postCount.Text = "producer mutation"
model := builder.freeze()
if model.preCLICheckpoint == nil || model.postCLICheckpoint == nil ||
model.preCLICheckpoint.root == preCLI || model.postCLICheckpoint.root == postCLI ||
len(model.cliPayloads) != 6 {
t.Fatalf("checkpoint/CLI payload ownership = pre:%#v post:%#v CLI:%d", model.preCLICheckpoint, model.postCLICheckpoint, len(model.cliPayloads))
}