Repository navigation
test(runtime): characterize autonomous-run bounds with an AC0 soak (AC0.1) - #236
Merged
Merged
Conversation
AC0.1 (ENG-986): context and separated-empty-truncation completion oracles fail on unchanged production code. Default characterization fixtures remain green. Add deterministic outages, two process kills, resource receipts and turn-overhead baseline. AC0.2 retains H0 registration and concurrency/fsync qualification.
…upted result Review follow-up for AC0.1: - the process-kill fixture kills and reaps its worker through a guard with a bounded deadline on every path, including an early exit or a panic. The regression worker_guard_reaps_an_already_exited_worker covers this; - recovery asserts the execution-ambiguous sentinel, the interrupted state and is_error, not a substring; - the perf runbook describes each fixture's receipt shape. Linear: ENG-986
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice AC0.1 of
autonomous-core.md· Linear ENG-986 · Base: #235 (AP1), on #233 and #232.What this adds
AC0.1 is a deterministic soak and characterization harness for long autonomous runs. It changes no production code. The fixtures assert how QQ stops today.
QQ_SOAK_EXPECT_COMPLETED=1turns them into the completion oracles that later slices flip.crates/qq-core/tests/support/soak.rs. A scripted provider driven through the public durableSessionRuntime. It scripts:It reports reached work, executed and settled tool calls, duplicate sequences, committed compactions, RSS samples, DB/WAL high-water samples and work-turn gaps.
crates/qq-core/tests/soak.rs. 7 default tests and 6--ignoredfixtures. The ignored ones cover:crates/qq-core/benches/turn_overhead.rs. Per-turn harness overhead near turns 10, 100 and 1 000. This is a standalone diagnostic, not an H0 budget.Docs.
docs/runbooks/perf-recording.md§ Autonomous-core characterization: how to run the fixtures, what each receipt contains, and what is a proxy. Fsyncs need an external tracer.benchmarks/perf/README.mdinventory row.Baseline (on this stack)
cargo test -p qq-core --test soak… -- --ignored(both kill/reopen cycles included)QQ_SOAK_EXPECT_COMPLETED=1turn_overhead(3 iterations, 2 runs)Review
177f4eawas reviewed independently (read-only). It got request changes on three findings, all fixed in196608d:WorkerGuardnow kills and reaps the worker within a 5 s deadline on every path, including an early exit or a panic. The regressionworker_guard_reaps_an_already_exited_workercovers it.state = interruptedandis_error.Verification
cargo test --workspace: 2019 passed. One unrelated timing flake,child_mutation_drains_before_steering_or_a_replacement_run_can_write, passed 6 of 6 on rerun.cargo clippy --workspace --all-targets --all-features -D warningsandcargo fmt --checkare clean.Not in this PR (AC0.2)
H0 metric registration, full concurrent-stream WAL/fsync qualification, and the cross-window 16 MiB case, which stays masked by the 4 MiB reservation until AC2. No budget is added for a metric that has no emitter.