M12.7: reconcile pending migration evidence in census snapshots
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (network) (push) Successful in 21m1s
Foundation / checks (client) (push) Successful in 22m9s
Foundation / checks (tsan) (push) Successful in 24m36s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 33m38s
Foundation / checks (checks) (push) Canceled after 33m49s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (network) (push) Successful in 21m1s
Foundation / checks (client) (push) Successful in 22m9s
Foundation / checks (tsan) (push) Successful in 24m36s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 33m38s
Foundation / checks (checks) (push) Canceled after 33m49s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "evo/persistence/cellular_history_store.hpp"
|
||||
#include "evo/persistence/cellular_migration_store.hpp"
|
||||
#include "evo/server/lifecycle/cellular_census_set.hpp"
|
||||
|
||||
#include <chrono>
|
||||
@@ -27,7 +28,8 @@ enum class CellularSnapshotError : std::uint8_t {
|
||||
history,
|
||||
census,
|
||||
coverage,
|
||||
context
|
||||
context,
|
||||
migration
|
||||
};
|
||||
struct RegisteredCellularRegion {
|
||||
std::uint64_t region{}, frame{};
|
||||
@@ -49,6 +51,7 @@ struct RegisteredCellularCensusSnapshot {
|
||||
std::vector<RegisteredCellularRegion> catalog; // Exact registry view used for head selection.
|
||||
CellularCensusSnapshot snapshot;
|
||||
Uuid history_domain{}; // Schema 51 database namespace captured with catalog and heads.
|
||||
std::vector<CellularMigrationObservation> migrations; // Schema 52 verified pending handoffs.
|
||||
};
|
||||
struct CellularSnapshotFailure {
|
||||
CellularSnapshotError kind{};
|
||||
@@ -57,6 +60,7 @@ struct CellularSnapshotFailure {
|
||||
CellularHistoryFailure history{}; // Meaningful for history.
|
||||
server::CellularCensusSetError census{}; // Meaningful for census.
|
||||
CellularCoverageFailure coverage{}; // Meaningful for coverage.
|
||||
RecoveryFailure migration{}; // Meaningful for migration; no partial result on failure.
|
||||
};
|
||||
// Test/fault seam after each head has been captured (zero-based request index).
|
||||
// Production callers pass nothing. A throwing hook closes the capture connection.
|
||||
@@ -76,9 +80,10 @@ load_cellular_census_snapshot(Postgres&, std::uint64_t world,
|
||||
std::span<const Sha256Digest> retained_builds,
|
||||
std::chrono::milliseconds timeout,
|
||||
const CellularCensusSnapshotHooks& hooks = {});
|
||||
// Schema 51: require resources for EVERY registered region of this world,
|
||||
// Schema 52: require resources for EVERY registered region of this world,
|
||||
// including expired/released holders and regions with unavailable checkpoints.
|
||||
// Capture the registry and all heads in the SAME short database snapshot.
|
||||
// Capture domain, registry, pending handoffs and heads in the SAME database view.
|
||||
// Fully verify retained handoff capsules/ghosts after capture. Ghosts add no stock.
|
||||
// Empty/over-bound registries or any coverage/frame mismatch fail, never zero.
|
||||
// Completeness is only for registered regions of this connected database view;
|
||||
// Domain/world identifies this database history, including supported restore forks.
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
#include "evo/server/lifecycle/cellular_migration_trace.hpp"
|
||||
|
||||
namespace evo::persistence {
|
||||
struct CellularMigrationObservation {
|
||||
server::CellularMigrationTrace trace;
|
||||
bool staged{}; // Ghost/capsules are verified evidence, never additional owned stock.
|
||||
};
|
||||
struct CellularMigrationPrepared {
|
||||
RegionKey key{}; // Source region.
|
||||
std::vector<std::uint8_t> trace;
|
||||
|
||||
Reference in New Issue
Block a user