Repository navigation
Conversation
lg2m
force-pushed
the
refactor/eng-1007-ac1-state-and-steps
branch
from
October 9, 2026 22:43
6c880ba to
c4a0376
Compare
lg2m
marked this pull request as ready for review
October 9, 2026 22:45
|
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.
AC1.2 / AC1.3 — ENG-1007
Stack: main → #263 (AC1.1) → this PR. Spec: docs/plans/autonomous-core.md AC1.
Groups execution state by reset scope (
RunScope,WindowScope,SliceScope,TurnScope) and adds typedTurnStepphases for preparation, compaction, provider streaming, settlement, candidate review, tools/checkpoints and result projection. Concrete borrowing streams keep pull-driven yields and drop-cancellation, with no producer tasks, event buffering or extra stream boxing. The outer driver is 143 lines. Zero test edits. No protocol, schema, prompt or AC2 lifetime changes.Restack on main (2026-10-08)
Main changed
executeunder this stack, so those changes are ported into the new phases:inherited_effectsis aRunEnvironmentinput, and the overflow prune classifies inherited results by their stored effects.ContextPrunedandActivityChanged { Compacting }are emitted asTurnStep::Emitfrom the compaction phase.InRunCompactionError: a persistence failure is aServerfailure.A line-set check confirms that every line main added to
executeis present, apart from theTurnStep::Emit/run.wrapping.The previous CI failure (
wall_clock_budget_settles_a_hanging_provider_without_a_final_response, 0 vs 1 request) matches the known load flake recorded in the compaction and latest-models ledgers. It passed 4/4 locally.Verification (stack top)
cargo fmt --all -- --check;cargo clippy --workspace --all-targets --all-features -- -D warnings;cargo test --workspace -- --test-threads=4: 2,218 passed, 0 failed;cargo build --workspace;git diff --check.Performance — open item
The earlier 30-pair alternating A/B+A/A for context_assembly, tool_dispatch and turn_overhead (vs 88398d1) was run on a loaded host (IO pressure 21.85–67.18%). Context and turn tails could not be reproduced. The dispatch 20-iteration +41% did not reproduce at 10,000 iterations: A/B median +1.22%, A/A +2.48%. Host IO pressure was still ≈21% at restack, so quiet-host qualification has not been redone. No waiver is claimed; merging before qualification is a lead decision. Numbers are in docs/plans/progress/autonomous-core.md; raw evidence is in target/qq-perf/ac1-state-and-steps/qualification/.