The critical-path foundation for the benchmark + simulation harness. Scenario is a TOML-deserializable scripted-caller data type; ScenarioStep covers speak_loud / speak_quiet / pause / await_reply / end. Determinism is the point -- reproducible thresholds in CI (ADR-0010). All other sim modules land as stubs here + fill in across S2-S7. Threshold consts (BARGE_IN_KILL_TIME_P99_MS = 80.0, MOUTH_TO_EAR_P99_MS = 700.0, TICK_LAG_MAX_MS = 10.0, TICK_OVERRUN_PCT_MAX = 1.0, SWEEP_CONCURRENCIES = [1,10,50]) land now per the plan's S1 step 2 note (used by S5/S6/S7 wiring). Adds toml = 0.8 to workspace.dependencies (the first consumer; spec §1.1 claim of pre-existing membership was inaccurate). Task S1 of slice-4½ -- everything else depends on this landing. Signed-off-by: Aaron D. Lee <himself@adlee.work>
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
# crates/rutster-sim/Cargo.toml — the self-hostable benchmark + simulation
|
|
# harness crate (ADR-0010 spearhead step 4½). Default-off `sim-bench`
|
|
# feature gates the CI-regressed threshold sweep so the routine
|
|
# `cargo test --all` gate stays fast.
|
|
[package]
|
|
name = "rutster-sim"
|
|
version = "0.0.0"
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
repository.workspace = true
|
|
description = "Self-hostable benchmark + simulation harness (ADR-0010 spearhead step 4½)."
|
|
|
|
[dependencies]
|
|
rutster-media = { path = "../rutster-media" }
|
|
rutster = { path = "../rutster" }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "sync", "time"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
toml = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
url = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
# The CI-regressed threshold sweep. Default OFF so `cargo test --all` (the
|
|
# routine gate) stays fast. A separate CI job runs
|
|
# `cargo test --all --features=sim-bench -- --test-threads=1` per spec §5.4 +
|
|
# §6.5. A latency regression fails the build the same way a broken test
|
|
# does (ADR-0010).
|
|
sim-bench = []
|