Repository navigation
fix(session): carry #786 with accepted integration and Windows investigation - #788
Closed
agenteinstinct1-max wants to merge 9 commits into
Closed
agenteinstinct1-max wants to merge 9 commits into
agenteinstinct1-max wants to merge 9 commits into
Conversation
…738) A repetition-guard abort was handled by a single "is this the newest user message" check, so a recovery instruction could be consumed by, or dangle behind, a prompt queued while it ran, and a silent injection could suppress the one recovery the aborted prompt was owed. This replay applies the #738 work on top of the current accepted tip instead of the stale tree PR #769 was based on: - repetition-guard: persist a stable `data.ref` marker on the guard abort so recovery reads identity, not message text (an HTTP 400 that quotes the guard text is a different failure). - message-v2: keep the parts a guard abort already persisted, so a completed tool call stays visible to the recovery request and is not re-executed. - subagent-result: declare a recovery's prompt lineage in its synthetic part metadata and treat exactly that continuation as a continuation. - prompt: choose the generation target from the transcript plus the live set of waiting callers, scope the recovery budget per prompt lineage, settle each caller on its own answer, and preserve a persisted no-reply intent. - schema: store `PromptInput.noReply` on the user message, because part shape cannot distinguish a silent injection from a caller that submitted synthetic parts. Recovery wording now states that earlier copies of the repeated fragment stay in the transcript and only the output past the cutoff is missing. Refs #738 Co-authored-by: arena-agent <[email protected]>
…o accepted tip 897e851 Co-authored-by: arena-agent <[email protected]>
…on (Refs #738) The finish-nudge guard appends a synthetic user continuation and then reads the transcript back to select the next generation target. That read is the only source of the continuation, so any stored shape that places the nudge before the assistant that triggered it - a clock step between that generation and the nudge, or a read that has not observed the write yet - re-selects the same prompt. The loop then appends another nudge, and the whole nudge budget is spent without a single model request. The turn stops with the 3-nudge guard error and no answer, which is the shape CI reported for the retry-wait fixture: three nudges, no request after the first, both scripted parent replies still queued, and the terminal "did not complete the required finish tool after 3 nudges" error. The loop now keeps the continuation it injected in flight until an assistant answers it, and turn selection targets it (rules 0 and 0-in-runLoop). An answer retires it; a user message the loop had not already seen when it injected the nudge supersedes it, so new input still owns its own turn and no ordering assumption is made about a skewed clock. The nudge budget, its error contract, the guard text and every assertion are unchanged. Controls: the new unit test reproduces the CI shape deterministically by stepping the clock back once the first answer is on the wire. Before this change it asks the model once and stops after 3 nudges with the guard error; after it, every nudge is a request (4 hits, the last 3 carrying the nudge instruction) and the same bounded stop ends the turn. test/session/prompt.test.ts 153 pass / 0 fail with the new test, test/session/subagent-result.test.ts 29 pass, and test/cli/run/run-retry-wait.test.ts 10 pass including the previously failing "announces a long retry wait of a background child session". Co-authored-by: arena-agent <[email protected]>
…738) A nudge is a continuation of the generation in progress, so it keeps the transcript even before an assistant answers it. Without this, a stored order that places the nudge before the answer it follows would have sliced the turn's own answer and tool results out of the nudge request. The transcript is still put back in run order, with the injected continuation last, so the request the model sees is the answer followed by the nudge. The regression test now also pins that: each of the three nudge requests carries the answer text they continue, not just the nudge instruction. Co-authored-by: arena-agent <[email protected]>
The successor branch for #783 has to carry that PR's tree. #783's head already has 897e851 as an ancestor, so this merge brings the review-guard work and its tests over unchanged; the fix for the open review finding lands on top of it. Co-authored-by: arena-agent <[email protected]>
…738, Refs #783) A finish that completes on the first nudge did not end the turn on the #783 tree. The loop re-derived every iteration's turn from the persisted transcript, by stored creation time, so the work that had just happened could be read as older than the prompt it continued: - Chronology: with the nudge (and the answer that honoured it) stored before the prompt, turn selection picked the spent prompt again and nudged again. A model that called finish successfully on nudge #1 cost 4 requests, 3 nudges, and the terminal "did not complete the required finish tool after 3 nudges" error stamped over the turn. - Ownership: the assistant that completed finish has the nudge as its parent, so prompt() settled the caller on the pre-nudge answer - finish "stop", no completed finish part - while the finish it had completed sat on another message. The run now keeps the continuation it injected together with the answer it generated for it, appends both in the order it created them, derives turn state from that answer, and returns the generation it ended with. The nudge persists an optional finishContinuation.promptID marker - the same shape as the #738 repetition-recovery marker - naming the prompt whose turn it extends, so caller settlement resolves the answer through the continuation and the nudge no longer reads as input a caller submitted. Nudges persisted before the marker keep the previous behaviour. No budget, gate, assertion, timeout, matcher or retry policy is changed: the budget stays 3, the nudge text is unchanged, and the bounded failure still makes 4 requests and 3 nudges with the same error message. Co-authored-by: arena-agent <[email protected]>
`.filter` with a boolean callback returns Part[], so the new tests' `state` access did not typecheck (CI typecheck job, run 41300901260). Narrow the filter to SessionV1.ToolPart, the same way the existing finish assertions in this file do. Assertions and behaviour are unchanged. Verified: tsc over the touched test and sources reports no error from this change (only the pre-existing photon wasm module declaration gap, which the same scoped program reports on the parent commit too); the two new tests and the existing finish-nudge tests still pass. Co-authored-by: arena-agent <[email protected]>
Preserve the accepted #785 review/efficiency/native-fixture changes and all earlier accepted runtime guards while carrying PR #786's existing history. No replay, history rewrite, assertion relaxation, or workflow changes. Co-authored-by: arena-agent <[email protected]>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
The diff-viewer helper treated close-command registration as proof that the selected client request had recorded its input. Those observations are independent after KV/theme readiness; Windows job 124834254375 observed the command with undefined VCS input. Require both observations within the existing ten-frame/25ms budget. Add a deterministic request-order regression without changing any existing assertion, timeout, retry count, product UI, KV, or flock code. Same-condition detached controls on accepted base 50d6a23 and PR head b8b4424: old helper 4 pass/1 fail on each; request-aware helper 5 pass/0 fail on each. The control reproduces the missing dependency on Linux, not the original Windows scheduling trigger. Real KV ENOENT still takes its existing ready-in-finally fallback. Refs #738, Refs #786, Refs #789 Co-authored-by: arena-agent <[email protected]>
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
5 of 10 tasks
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.
Issue for this PR
Refs #738. Integration/checkpoint successor to #786 on this session's fixed Arena branch; it does not close or merge either existing PR. A concrete TUI issue will be linked only if the readiness investigation establishes one.
Type of change
What does this PR do?
Checkpoint before the longer verification runs, so the integration is published rather than held only in the workspace.
b8b44242d9cae270f98d6468bdd8609352168e82into the accepted tip50d6a232bacf1e280ca576fcbf10f25efa3d74fa(fix(opencode): carry #781's prompt and cassette change with truthful Anthropic provenance (Refs #772) #785).645c221c2d60166ab1debbae330940c18987b8a3, with those two commits as parents, in that order. No seed, rebase, force push, history rewrite, manual tree assembly, or two-dot revert.closing the diff viewer returns to the route it opened from: the VCS request input is still undefined. Its helper waits for command registration, not the request. The investigation will use an explicit readiness control and base/head comparisons before attributing causation. The nearby KV ENOENT messages are not, by themselves, a diagnosis.How did you verify your code works?
Completed so far:
b8b44242d9cae270f98d6468bdd8609352168e82, run41301761118, attempt 1. Read the original raw log through the unauthenticated signed redirect (no GitHub authorization forwarded to blob storage).Pending: controlled TUI failure and repair, inherited session controls, package checks, and fresh five-check CI plus independent review on the final head. Dependency installation initially hit the sandbox's blocked Node header host; that setup blocker is being handled without changing repository dependencies or workflow settings.
Screenshots / recordings
No visual UI change. Any test-fixture change will be described with its causal control rather than represented as a product UI change.
Checklist