shadow::run follows the live service's per-process trace files: each segment boots a session from that process's startup save (a fresh start powers on instead), replays the transition's admissions, runs it, takes the live captures in the live order around a deferred rollback, and compares its own trace line field by field, the ledger digest, and the FLYSIM01 bytes of every live save (host-fields and archive-order substituted). The first difference stops it with a diverged verdict and divergence.json. A spool copies live generations as they appear; a lag guard backs off while the live fly loses real time. verdict.json is fly-shadow-verdict-v1, the contract CUT-01 reads; fly-shadow check applies the cutover rule. trace::compare_line is shared with trace::compare. tests/shadow.rs runs the real service through a restart under a shadow and plants four differences, each caught with the right kind, field and step.
33 lines
1.2 KiB
TOML
33 lines
1.2 KiB
TOML
[package]
|
|
name = "fly-legacy-session"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "The live fly's composition on the session framework: the pokered-macros-v1 task and executor, the FLYSIM01 import, and the parity harness against the legacy loop's FLY_TRACE."
|
|
|
|
[lib]
|
|
name = "fly_legacy_session"
|
|
path = "src/lib.rs"
|
|
|
|
# SHADOW-01: the session runtime run beside the live fly (`infra/units/flyshadow.service`).
|
|
[[bin]]
|
|
name = "fly-shadow"
|
|
path = "src/bin/fly-shadow.rs"
|
|
|
|
[dependencies]
|
|
# The session framework and its legacy workers (AGENT-01, ENV-01).
|
|
fly-session = { path = "../fly-session" }
|
|
flybus = { path = "../flybus" }
|
|
# The unchanged legacy engine the task and executor run: flysim's macro layer, flybrain-gb's
|
|
# palette, macro executor, PokeState, reward adapter and ratchet, read through MEM-01's image.
|
|
# flysim is a library dependency only; nothing here changes the service it builds.
|
|
flysim = { path = "../flysim" }
|
|
flybrain-gb = { path = "../flybrain-gb" }
|
|
flybrain-core = { path = "../flybrain-core" }
|
|
serde_json = { workspace = true }
|
|
tokio = { version = "1", features = ["rt", "rt-multi-thread", "sync", "time", "macros", "signal"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|