Recover cellular checkpoints with action evidence
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 41s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 1m6s
Foundation / checks (network) (push) Canceled after 29s
Foundation / checks (ecs) (push) Canceled after 58s

This commit is contained in:
dingo
2026-10-10 23:23:17 -04:00
parent ad6e53c2e9
commit 13273b46f4
7 changed files with 256 additions and 0 deletions
@@ -115,6 +115,12 @@ struct CellularPublicationFailure {
struct PublishedCellularBatch {
CommittedCheckpoint committed;
};
struct RecoveredCellularCheckpoint {
CommittedCheckpoint committed;
CheckpointManifest manifest;
std::unique_ptr<server::CellularLives> state;
std::vector<server::CellularActionRecord> actions;
};
// Owner/operator connection only: uploads a tick-0 state and records genesis.
[[nodiscard]] std::expected<CommittedCheckpoint, PublicationFailure> provision_environmental_region(
@@ -204,6 +210,11 @@ retry_cellular_prepared(Postgres& db, const CellularPreparedCommit& prepared,
[[nodiscard]] std::expected<ResolvedCommit, LeaseStoreFailure>
resolve_cellular_prepared(Postgres& db, const CellularPreparedCommit& prepared,
std::chrono::milliseconds timeout);
[[nodiscard]] std::expected<RecoveredCellularCheckpoint, RecoveryFailure>
recover_cellular_checkpoint(Postgres& db, const FilesystemObjectStore& objects, RegionKey key,
const LeaseGrant& lease,
std::span<const Sha256Digest> retained_builds,
std::chrono::milliseconds timeout);
// After an `unknown` publication: resolve exactly the prepared bytes. A committed
// result yields the final batch; absent may be retried with the same prepared bytes