Introduce a pure, level-triggered reconciler in `crates/provisioning` that drives a declared cluster shape toward convergence over the existing node lifecycle, replacing the edge-triggered imperative node orchestration in `apps/myelin`. - `reconcile`/`reconcile_node`/`observe`: pure decider and observation folder with stable logical-node identity, per-attempt operation identity, and deterministic retry backoff; `ClusterDriver` is the sole writer of observed state, coalescing triggers, recording operations as pending before dispatch, and scheduling timed requeues. - `IdempotentEffectExecutor`: deduplicates submissions by `(run_id, logical_node_id, attempt)` and runs provider work on the engine-hosted blocking substrate, never blocking a reconcile pass. - Myelin integration: `MyelinEffectBackend` bridges `ProvisionPlugin` to the executor contract; `LocalProcessPlugin`/`LocalDockerPlugin` provider adapters; `ProvisionedClusterGuard` pumps triggers, observations, and due operations. - Retire the imperative acquire/bootstrap/teardown sequencing across `apps/myelin` orchestration, staging, observability, and provider adapters in favor of the declarative driver. - Move the reconciler specification to `docs/specs/archive`. Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
52 lines
1.2 KiB
TOML
52 lines
1.2 KiB
TOML
[package]
|
|
name = "myelin"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "AGPL-3.0-only"
|
|
publish = false
|
|
autobins = false
|
|
|
|
[features]
|
|
default = []
|
|
dashboard = []
|
|
|
|
[dependencies]
|
|
datastream = { path = "../../crates/datastream" }
|
|
data-plane = { path = "../../crates/data-plane" }
|
|
provisioning = { path = "../../crates/provisioning" }
|
|
dashboard = { path = "../../crates/dashboard" }
|
|
serde_json = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
swactor = { path = "../..", features = ["serde", "transport"] }
|
|
swactor-engine = { path = "../../crates/engine" }
|
|
swactor-transport = { path = "../../crates/transport" }
|
|
swactor-process = { path = "../../crates/process" }
|
|
distribution = { path = "../../crates/distribution" }
|
|
iroh-driver = { path = "../../crates/iroh-driver" }
|
|
iroh = "0.98"
|
|
tokio.workspace = true
|
|
swactor-vastai = { path = "../../tools/vastai" }
|
|
parking_lot = "0.12"
|
|
blake3 = "1"
|
|
toml = "0.8"
|
|
ureq = "2"
|
|
|
|
[dev-dependencies]
|
|
wiremock = "0.6"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|
|
signal-hook = "0.3"
|
|
|
|
[[bin]]
|
|
name = "myelin-worker"
|
|
path = "src/bin/worker_node.rs"
|
|
|
|
[[bin]]
|
|
name = "myelin-orchestrator"
|
|
path = "src/bin/orchestrator.rs"
|
|
|
|
[[bin]]
|
|
name = "myelin-chat"
|
|
path = "src/bin/chat.rs"
|
|
|