Pipeline config — JSON or DSL
JSON: {"schema":"onewater/pipeline@1","name":"…","sourceRate":120,"bufferSize":240,"stages":[{"name":"edge","capacity":2000,"latencyMs":3,"costPer1k":0.05}]}
DSL: key = value scalars plus stage <name> <capacity req/s> <latencyMs> <costPer1k USD> lines. # comments allowed.
System verdict
Throughput / latency tradeoff — valve sweep
Rule / config evaluator — edge-case validator
Ten deterministic rules (E1–E10) fire against the live config: structural validity, finite numerics, capacity/cost sanity, 1.25× headroom, saturation, buffer burst cushion, latency budget, and monthly cost budget. Edge cases — NaN, Infinity, zero/negative capacity, duplicate names, undersized cells — are caught before any math runs.
Evaluation result
Schema & protocol compliance checklist
Ten protocol checks (C1–C10) audit the config against the onewater/pipeline@1 contract: schema tag, intake band, stage count, positive capacities, valid latencies/costs, unique names, headroom, declared buffer, and unit-cost ceiling. Verdict: compliant / conditional / non-compliant.