pub enum RewritePhase {
Validate,
Stage,
Canary,
Cutover,
Cleanup,
Commit,
Rollback,
}Expand description
Rewrite plan phases.
Follows the grafOS rewrite lifecycle: Validate -> Stage -> [Canary] -> Cutover -> Cleanup -> Commit, with Rollback possible from any pre-Cleanup phase.
Variants§
Validate
Schema and constraint validation.
Stage
Resources staged for cutover.
Canary
Canary evaluation (optional).
Cutover
Atomic cutover to new bindings.
Cleanup
Post-cutover cleanup of old bindings.
Commit
Durable audit and generation bumps.
Rollback
Rollback to previous state (failure path).
Trait Implementations§
Source§impl Clone for RewritePhase
impl Clone for RewritePhase
Source§fn clone(&self) -> RewritePhase
fn clone(&self) -> RewritePhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RewritePhase
impl Debug for RewritePhase
Source§impl Display for RewritePhase
impl Display for RewritePhase
Source§impl From<RewritePhase> for RewritePhase
Lossless bridge from the runtime grafos_core::RewritePhase
state-machine variant to the event-layer grafos_observe:: RewritePhase variant. The two enums coexist by design — the
core one is the lifecycle state machine carried on
RewritePlan, the observe one is the event-payload form
consumed by the EventSink / dashboard. They share the same
7 variants with matching Display strings (slice 232 pinned
the core side; this impl pins the cross-layer 1:1 mapping).
impl From<RewritePhase> for RewritePhase
Lossless bridge from the runtime grafos_core::RewritePhase
state-machine variant to the event-layer grafos_observe:: RewritePhase variant. The two enums coexist by design — the
core one is the lifecycle state machine carried on
RewritePlan, the observe one is the event-payload form
consumed by the EventSink / dashboard. They share the same
7 variants with matching Display strings (slice 232 pinned
the core side; this impl pins the cross-layer 1:1 mapping).
Exhaustive match; future variant additions on either side force this impl to be updated.
Source§impl From<RewritePhase> for RewritePhase
Inverse of From<grafos_core::RewritePhase> — converts an
observed phase back to the core state-machine variant.
Lossless and exhaustive.
impl From<RewritePhase> for RewritePhase
Inverse of From<grafos_core::RewritePhase> — converts an
observed phase back to the core state-machine variant.
Lossless and exhaustive.