test redaction failure via git store · Entire

test redaction failure via git store

10faadb→main·

pfleidi·4w ago·1 file·+2 added/-5 removed

Exercise the concrete GitStore latest-session reader in the redaction failure regression test.

This keeps the test checking that dropped transcripts surface ErrNoTranscript after condensation still writes checkpoint metadata.

Sessions

02eff406bed3View transcript

?\Refactor Checkpoint Storage Interfaces and Domain AdaptersCodex·GPT-5.5·2 steps

Changes

1

4193 unmodified lines

4194
4195
4196
4197
4198
4197
4198
4199
4200
8 unmodified lines

4209
4210
4211
4213
4214
4215
4212
4213
4214
4215

4193 unmodified lines

require.NoError(t, err, "redaction failure should not abort condensation")
    require.NotNil(t, result)

store, err := s.getCheckpointStore(context.Background(), repo)
    require.NoError(t, err)
    store := checkpoint.NewGitStore(repo, checkpoint.DefaultV1Refs())

committed, err := store.ListCommitted(context.Background())
    require.NoError(t, err)
8 unmodified lines

}
    require.True(t, found, "checkpoint metadata should be written even when transcript redaction fails")

summary, err := checkpoint.ReadCommittedCheckpoint(context.Background(), store, checkpointID)
    require.NoError(t, err)
    _, err = checkpoint.ReadLatestSessionContent(context.Background(), store, checkpointID, summary)
    _, err = store.ReadLatestSessionContent(context.Background(), checkpointID)
    require.ErrorIs(t, err, checkpoint.ErrNoTranscript, "transcript should be dropped when redaction fails")
}

Mcmd/entire/cli/strategy/manual_commit_test.go+2/-5