Repository navigation
fix(027): bound the binding tests' waits by time; record 021's passing candidate - #167
Conversation
AI review (no-findings)Reviewing the five changed paths for bugs, security issues, and governance inconsistencies.
No governance violations: none of the changed paths are under {"head": "ea2a634376b41298c37bd85cc9c7fc3605386ccc", "verdict": "no-findings", "findings": []}Subject: 6060167...ea2a634, diff digest d1eeb7c587e131e36daefb131ee1d27bf01c936ee86306e7a79934c6bbe3fc65, 1 call(s). An AI comment is not an approval. |
…g candidate The rustev-node negative tests and the conformance driver waited for an engine-side condition for at most 100,000 event-loop turns, which a loaded CI runner exhausted (#151's bindings / wasm, the late-resolution test). Both waits are now bounded by 120 s of wall time, still yielding with setImmediate; no assertion changes. Spec 021: make release-candidate passed in full at 419b664 (archives byte-identical, archive policy, unpacked tests on 1.98.1 and 1.88, audit, SBOMs, release manifest 8b4e92e8...). Spec 045: its second acceptance item is met; only the upload order remains for the owner.
ea2a634 to
1dc4815
Compare
AI review (no-findings)Reviewing the five changed paths for bugs, security issues, and inconsistencies. Code changes ( Both files replace a 100,000-iteration event-loop spin with a wall-time
Spec changes (021, 027, 045)
No concrete defects found. {"head": "1dc481588e39ef0fb102551a302a7aa72aeb147d", "verdict": "no-findings", "findings": []}Subject: 21a00fc...1dc4815, diff digest d1eeb7c587e131e36daefb131ee1d27bf01c936ee86306e7a79934c6bbe3fc65, 1 call(s). An AI comment is not an approval. |
Spec 029 increment 3: repeat sets and `rustev.repeat-report/1` (3.1, 3.2.5, 3.5, 3.6). Library only; no CLI, ledger, baseline or gate yet; no live run, provider call or spend. `implementation` stays `in-progress`. - `rustev-eval/src/repeat.rs` (new): `repeat(RepeatInputs)` over N reconciled runs. Refuses the `live` source (`live-source-unavailable`), N outside 1 to 64, unreconciled case measures (`reconcile`), runs that differ in dataset, split, evaluator configuration, plan or metric list or do not list the split's cases in manifest order (`mixed-runs`), a `replay` set whose runs are not identical (`not-reproducible`), an unreported stability metric or override, and a cohort over the bootstrap bound (`bootstrap-too-large`). The report names the source, configurations, dataset, split and fixed role (3.7.1), provenance, adapter rules, plan, each run's document digests and run seed, the stable cohort, and per cohort (`all`, then each slice) every metric's per-run values, `mean`, `sd`, `min`, `max`, `pooled`, interval and band with its basis. Slices below their minimum are unknown throughout; a metric without a per-case measure (cost totals, `brier`) has across-run statistics in `all` only. Latency, queue and cost metrics state their observation (`historical` for candidate runs, 3.11.2). A held-out report records `held_out` as unknown until increment 4 adds the ledger. - `rustev-eval/src/report.rs`, `eval_cases.rs`: `cost_per_1000/observed` and `/estimated` case measures (3.2.5), unknown unless cost units are declared comparable, the observed series unknown for a case with liability or an unknown charge; none for a candidate. - `rustev-eval/src/repeat_stats.rs`: `across_runs`, factored out of `run_stats` unchanged, for metrics stated only by the run reports. - Tests (`tests/reports.rs`): replay set (zero `deterministic_replay` band, pooled equal to the report, distinct run seeds, stable cohort, totals and `brier`, observations, unknown `cost_per_1000`, a reported slice and one below its minimum, round trip and byte determinism); captured set with a case losing its bundle (stable cohort, positive `k_sd` band); one captured run (unknown band); differing replays, the live source and N of 0 and 65 refused; mixed baseline and candidate runs, unreconciled measures and an unreported stability metric refused; a candidate set with historical observations and `interval_width` bands. - `tools/rustev-release/archive-policy.json`: `src/repeat.rs`. - Spec 029: increment 3 record and engineering choices. Still open from increment 2: owner decision D-029-1 (Brier per-case measures), recorded in spec 029's implementation record. Local verification (macOS arm64): `make gate` passes with spec-spine 0.31.0; `cargo clippy -p rustev-eval --all-targets -- -D warnings`, `cargo test -p rustev-eval` and `cargo test -p rustev-fp-corpus` pass. Review round 1 (1 finding, not a defect, evidence added): the finding says a candidate's cases get a known `cost_per_1000/observed` when costs are comparable and known. The cost measures sit inside `case_measures_of`'s `if inputs.candidate.is_none()` block (opened above the latency loop, outside the reviewed hunk), so a candidate's cases carry none. A comment now says so in the hunk, and a new test, `cost_per_1000_is_measured_for_a_baseline_and_never_for_a_candidate`, declares cost units comparable and checks that the baseline's cases carry cost per 1000 while the candidate's carry none and its repeat report's `cost_per_1000/observed` is historical and unknown. Review round 2: no findings. Rebased onto `main` after #159 (no conflict). `make code` passes locally on this head, except two failures caused by other worktrees sharing the build target (a test binary removed by a concurrent `cargo clean`, and `rustev-jev`'s `lodging_swap` finding its output directory already created by a concurrent run); each passes when rerun alone. Review round 3 (1 finding, fixed by making the rule explicit): the finding says `cost_unknown_attempts` should carry no observation. It is one of the four cost series a spec 004 candidate report replaces with "the candidate was not executed; latency and cost are the baseline's", so it is an observation of the runs and historical for a candidate, as 3.12.4 needs. `observation` now lists latency, queue, the four cost series and `cost_per_1000/*` by name instead of a `cost_` prefix, with that reason in its comment; the candidate test checks the cost series are historical and a quality metric has no observation. Local on this head: `make gate` passes; `cargo test --workspace --no-fail-fast` passes except `rustev-release --test manifests`, which reports a `rustev-aicortex` member that exists only in another lane's worktree sharing the build target, and passes when run alone; clippy, fmt and boundaries pass. Rebased onto `main` after #157 (no conflict); `rustev-eval` and `rustev-release` tests (including `manifests`, now that `rustev-aicortex` is on `main`) and `rustev-eval` clippy pass on the rebased head. Review round 4: no findings. Rebased onto `main` after #162 (no conflict). Review round 5: no findings. Rebased onto `main` after #160 (no conflict); `make code` and `make gate` pass locally on this head. Review round 6: no findings. Its `code` run failed in `rustev-remote-http --test runtime_batch` (`a_deadline_or_a_cancellation_after_send_ends_every_member_as_independent_calls_do`), a timing test in a crate this PR does not touch. Rebased onto `main` after #167, which changes no Rust source, so the previous head's local `make code` still covers the Rust tree; `make gate` passes.
Summary
Small follow-up in lane C (specs 027, 021, 045).
integrations/rustev-node/test/negative.test.mjsand the conformance driver (tools/rustev-conformance/js/run.mjs) bounded their waits for an engine-side condition by 100,000 event-loop turns. A loaded CI runner exhausted them in "a host backend resolving after the deadline is discarded and counted" (impl(028): boundary telemetry rule and the contract's redaction policy and trace line #151'sbindings / wasm, "waited forever"). Both waits are now bounded by 120 s of wall time, still yielding withsetImmediateand never sleeping; no assertion changed.make release-candidatepassed in full at419b664(a reviewed head of impl(031): increment 5, the npm members and the absences in the release set #162), locally on macOS arm64: eleven archives byte-identical across two clean runs, archive policy, unpacked tests on 1.98.1 and MSRV 1.88,cargo denyclean with no exception, SBOMs, changelog, and the release manifest (SHA-2568b4e92e8dbd42fb91394474bb02fd58a59875c8fe8310f066174d44069b4761a). Recorded in 021 as evidence for that commit only; the release candidate is rerun at the commit the owner names. 045's second acceptance item is met; it stayspendingon the upload-order item, which waits for the owner.Nothing is signed, tagged or published.
Checks
node --checkon both scripts: OK.make gate: passed.spec-spine couple: OK.check-authored-content.sh: clean.bindingsjobs.