Correction-aware event-time windows with atomic retractions, session splits, finality guards and deterministic replay.

moon add LMK-ai-nb/tideweave@0.1.0import { "LMK-ai-nb/tideweave" @tide }let cfg = @tide.config(@tide.Session(gap=10), lateness=20)
let engine = @tide.Engine::new(cfg)
let view = @tide.View::new()
let outcome = engine.apply(@tide.Transact(id="batch-1", changes=[
@tide.Put({ id: "left", key: "device-A", at: 0, value: 20 }),
@tide.Put({ id: "right", key: "device-A", at: 16, value: 35 }),
]))
view.apply(outcome)
let restored = @tide.restore(engine.checkpoint())
assert_true(restored.rows() == engine.rows())moon version --all
moon check --target all --deny-warn
moon test --target all --deny-warn
moon build --target all --deny-warn
moon fmt --check
moon info
moon run cmd/demo
node scripts/build.mjs
node --test tests/cli.test.mjs
node scripts/serve.mjsnode bin/tideweave.mjs run examples/order-amendment.json --checkpoint checkpoint.json
node bin/tideweave.mjs run examples/session-correction.json
node scripts/benchmark.mjspub(all) struct Config {
window : WindowSpec
lateness : Int
max_events : Int
max_operations : Int
} derive(Eq)pub(all) enum WindowSpec {
Tumbling(size~ : Int, offset~ : Int)
Sliding(size~ : Int, slide~ : Int, offset~ : Int)
Session(gap~ : Int)
} derive(Eq)impl ToJson for WindowSpecfn config(window : WindowSpec, lateness? : Int, max_events? : Int, max_operations? : Int) -> Config raise TideErrorInstall
Download zipCorrection-aware event-time windows with atomic retractions, session splits, finality guards and deterministic replay.