# step: energy steering · wai-rs and energy_steering_verify.py # order: 190 # features: energy_steering # paths: wai/extensions/energy-steering.md # independent: energy-steering live python3 -I live-conformance/energy_steering_verify.py live-conformance/steering # # wai.live.steering (extensions/energy-steering.md): the reference module's unit tests # (policies and decisions round-trip and their rules refuse, the window, the request # reader over HLS, DASH and CMCD, the RFC 9651 parser, exact products at their limits, # the margin at its boundary, figures compared only within a class, and a pathway with # no figure never placed first by its rank while one with a figure is within the # limits) and tests/energy_steering.rs (the committed corpus regenerates byte for byte # from its fixed seeds, wai-rs gives every request and vector its stated outcome, every # reason of §10 refuses a vector, and §10 lists exactly the reference's codes); and, in # the step of every independent verifier above, the # corpus's second implementation, energy_steering_verify.py, written from the # extension's text and sharing no code with wai-rs, which reads the room with # live_rooms_verify.py and the per-hop records with live_metering_verify.py, parses RFC # 9651 itself, recomputes every report, figure, decision and manifest, and requires # every mutated copy of the corpus to fail; standard library only, run isolated (-I). # # The paths this step brings to the workflow's trigger, and why: # wai/extensions/energy-steering.md: tests/energy_steering.rs requires this extension's §10 to # list the codes the reference reports, energy_steering_verify.py reads that table, and the # registry's wire identifiers test reads its sections. set -euo pipefail (cd wai-rs && cargo test --no-default-features --features "$WAI_FEATURES" --lib energy_steering::) (cd wai-rs && cargo test --no-default-features --features "$WAI_FEATURES" --test energy_steering)