Skip to content

fix: preserve autosave and runtime recovery - #281

Draft
KaiEureka wants to merge 232 commits into
mainfrom
fix/runtime-review-20261125
Draft

KaiEureka wants to merge 232 commits into
mainfrom
fix/runtime-review-20261125

Conversation

@KaiEureka

@KaiEureka KaiEureka commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Roll a full autosave journal into a durable snapshot and keep the stored state when a checkpoint cannot fit. After the snapshot is durable, retry cleanup of covered records without rejecting an equivalent append. An export over an older autosave preserves the source cursor so it can resume the original session. Keep scheduled compaction diagnostic after a durable append. A terminal save still syncs the base and can leave journal records already covered by it.

Settle suspended Team turns and retain completed child results on shutdown. Preserve cancellation or the deadline when cleanup fails, with the cleanup error attached. Wait for candidate-owned cleanup before propagating cancellation.

Reclaim released workflow budget when a model request needs it, including inside candidate workflows. Keep explicit limits authoritative and preserve capacity for sibling roles. Reuse a released collection allowance for the capture-only correction after accounting for exploration already billed. Return a validated structured payload when only the terminal checkpoint exceeds the caller deadline. When an enforced scout continues exploring, preserve its submission reserve and use the protected submit path if budget or the exploration step limit stops further exploration. Preserve truncated output and restore the submit-only tools when continuing a protected submission.

Retry a truncated reply with visible text only when the repeated input and a larger output allowance fit the role's current grant. A reply with no usable output can reclaim released shared budget through the existing recovery policy. Keep the first partial when a recoverable retry fails or returns only reasoning. Retain its billed trace on a terminal error or cancellation. Record late completions in the orchestration trace with their original request identity. Preserve actual Responses usage during finite deadlines and stop retrying after an interrupted paid attempt. Honor Retry-After-Ms and prioritize explicit status codes and typed terminal responses over message wording.

Duo can deliver Candidate A after the shared budget prevents B from starting, using current passing test evidence and the existing source checks. The result records B as skipped. Direct Responses requests propagate caller cancellation after recorded usage settles, while owned sessions retain late-response accounting and traces.

A retry refused because of its required backoff leaves the remaining shared retry allowance available. The failed attempt still charges its actual elapsed time. Cancellation during an admitted backoff returns only the unused wait and preserves elapsed charges from other requests.

An export keeps its source autosave order when overwriting a destination with a newer journal. A terminal cross-file export reports a busy session while provider usage is still settling. Active exports and same-path terminal checkpoints retain their existing behavior.

Native autosaves hold writer ownership through a turn and its queued or late writes. A competing resume or save to the same destination reports a busy session during handoff. Snapshot inspection and continuation to a different autosave still read the source. Cleanup events follow writer release.

Native same-path writers also check the committed autosave sequence when acquiring ownership. Stale instances report a sequence conflict before accepting new input, queuing a save, or invoking a model. An explicit restore can refresh the sequence.

A manual checkpoint can leave its own snapshot visible before a directory sync or journal-reset error reaches the caller. Retain the original error, recognize the native rename and keep the durable cursor accurate. The same session can retry or continue, and the existing check still refuses a newer peer publication.

Exports advance the destination sequence when replacing a compacted autosave. The copy retains its source sequence for later continuation from the original path.

Team recovery retains an accepted submission through caller cancellation, timeout or a cooperative stop. When the reader exits during a stop, the scheduler records the accepted result and ordered tool rows before bounded cleanup takes over. Driver and cleanup cancellation preserve an already recorded user stop and its descendant stop reasons.

Restore a third-generation backup to its equivalent working autosave. Use the target's observed sequence for the locked checkpoint comparison and preserve the original source sequence. A changed destination retains its newer state.

Direct Responses calls preserve a user stop that coincides with transport settlement. Report usage once, propagate the caller's cancellation and retain a completed provider failure in the usage ledger and exception chain.

Give the hosted Python matrix 55 minutes per job. Two previous jobs reached their 45-minute deadline after pytest reported its complete passing summary.

Use the verified-A budget fallback when B's initial request is refused even though a positive balance remains. B can still use budget released after A has been refused, and candidate output from a paid B remains available for selection.

Keep caller cancellation authoritative during timed Chat stream opening, frame reads, timeout cleanup, and stream closing. Directly reported frame usage is recorded once, opened streams are closed through repeated cancellation, and the next request retains its retry allowance.

Confirm macOS group disappearance after a denied cleanup signal. The existing bounded wait settles the process and checks that the group is gone before returning success. A persistent error still reports the original permission failure.

Give the scheduler budget-cleanup fixture's Lead warmup the normal setup timeout. Apply the 50 ms deadline to the owner operation under test.

Load a single snapshot for runtime identity and history. Keep the existing writer ownership during a writable restore, including when a peer replaces a shared export.

Preserve visible partial output across budget replays that stop at a provider context limit or return a shorter clipped prefix. Compare answer boundaries without changing the selected reply's raw text. Keep completed and extended answers and account for every billed attempt.

Resume a finished Weave repair at its outstanding verification. Retain its session result, prior stagnation and usage. Keep the primary verifier error or cancellation when a state or heartbeat write also fails.

Keep Reconstruct candidate archives distinct when runs share a workspace. Score each saved program and retain the archived basename returned by the result.

Admit independent nested collections on a shared task slot while a sibling borrows their inherited slot. Return any excess reservation when slots become ready together or the caller cancels.

Preserve real caller cancellation when a finite-deadline Team turn completes at the same time. Settle the scheduler before returning and retain the bound, session state, and paid usage.

Keep workflow inputs, tool arguments, and CLI results JSON-compatible. Reject unrepresentable numbers at the existing input boundaries. Preserve decoded argument objects as text in snapshots and traces so valid structured results can be delivered and replayed. Snapshot the manifest inputs before scheduling the workflow owner.

Keep sanitized native HTTP failure statuses and codes in Team child results, using the same HTTP metadata extraction as Workflow.

Release the owned resources created by a failed session load after releasing the autosave writer. Keep the original restore error and retain supplied collaborators.

Deliver visible terminal truncations as partial evidence for stopped Team members. Preserve the failure status and avoid labeling earlier planning text or a reasoning fallback as a terminal reply.

Let a stopped Team member finish collecting its result before another driver sends a fallback notice. Retain the fallback for a finished or missing driver and deliver it before returning a quiescent Team run.

Keep the original autosave order when opening and re-exporting an unchanged writable backup. Preserve stale-write rejection after a passive answer readback, including when reopening a destination created by an older version.

Retry HTTP 522 and 521 with an explicit temporary-unavailability signal through the native provider adapters.

Evaluate and deliver the same archived Reconstruct candidate. Execute a temporary copy beside the editable candidate so local dependencies, file suffix and permissions are available during validation. Use a temporary filename that also works as a Python module name. Preserve evaluator failures and cancellation when removing an incomplete archive also fails.

Keep workflow failures and environment errors available when owned cleanup fails. Publish settled token spend after budget exhaustion. Preserve a workflow body that returned before the deadline when cleanup alone crosses it, with the final result still marked as stopped for timeout.

Resume a writable session after its new checkpoint is durable, even when compacting already-covered journal entries fails. Preserve the error when the new checkpoint itself fails to publish.

After an owned Agent's initial abort encounters an I/O error, confirm revocation and abort again once the driver and required finalization have both settled. Deliver the original deadline or caller cancellation after a successful recovery.

Publish a member-authored Workflow's terminal result and durable artifact path together after export. Release unused model budget as soon as final usage has been accounted for.

Preserve the provider-reported model identity when a typed Responses failure carries it, so the existing trace reports the actual model.

Return an Agent answer already accepted by the caller deadline when its final persistence and owned cleanup complete during the grace period. Keep the stopped timeout status and apply the same result handling to managed Workflow Agents.

Enforce the registered Team Workflow token cap for nested candidate calls while preserving the explicit one-time escape for independent workflows.

Retain a valid native Chat response when closing the HTTP response is the sole failure. Give native socket close its own bounded attempt outside the stream read deadline. Deliver the first caller cancellation promptly to an active close and let the owned cleanup settle through repeated signals. Preserve read errors and cancellation and continue to require a valid terminal response and billable usage.

Use explicit Workflow limit handling when the CLI receives a token budget, including in an unbounded environment.

Keep the Lead's accepted completed answer when a later follow-up fails or terminates without visible output. Report the later stop or failure separately.

Track Workflow verification calls through teardown so result and evidence publication cannot outrun active verification. Share the existing re-entrant candidate call ownership.

Read the first env-file setting after a UTF-8 signature.

Recognize a single valid legacy JSONL message when opening a session. Keep validation of native snapshots and legacy messages.

Keep candidate adoption owned from the source revision check through verified publication, including when a sibling fails in a borrowed workflow environment.

Make the scheduler’s late-provider tests start their short timeout after actual provider admission.

Verification

Compared parallel and pipeline against main with the same inputs and execution order. Both now deliver the abstract, detailed review, and footer with the same 23,644-token spend. Scout probes verify protected submission after low remaining budget, late provider usage and the one-step and two-step limits, plus exploration when enough budget remains.

At the default 64 MiB autosave limit, reopened the committed snapshot after a journal reset error and after terminating the writer. A repeated delta clears the covered journal and the next update survives another restart. A public export over an old autosave resumes the original session and continues at a higher cursor.

The independent supervisor approved 28a06856 after 329 targeted cases. Native SDK reload with the original tool profile sends one protected submit. Disk fault controls distinguish a failed base publication from cleanup of a covered journal and verify subsequent saves. The next commit, b2306ac1, forwards the terminal checkpoint options in the Team handoff test fixture. The supervisor verified that it uses the same production source and reran all six handoff cases. The supervisor also approved f2d5041a after 366 cases. The structured correction and three-provider replay controls verify response delivery and exact billing, with explicit caps and a late native sibling charge. The supervisor also approved 22d42875 after native structured capture, late trace, and repeated cancellation controls. Early Python controls verify all three billed Responses attempts reconcile without starting an extra request after cancellation. Hosted CI is attached to 22d42875.

The independent supervisor approved d82b0f1a after testing direct and session-owned Responses requests, both Duo delivery modes, and controls for B admission and stale or failing candidate evidence. Local Python 3.10 through 3.14 each passed 395 focused tests. The two-level Team cancellation and restore comparison covered twelve serialized and concurrent scenarios. Hosted CI.

The independent supervisor approved f100340a after exact-allowance and elapsed-failure tests. Chat Completions, Responses and Anthropic Messages can retry a subsequent role after a refused wait. Ten shared-client overlap cases, five request-slot cases and a separate two-process slot check passed. Each local Python version from 3.10 through 3.14 passed 588 focused tests. Hosted CI.

The independent supervisor approved 1f75a28d after overlapping backoff and cancellation checks. All three provider paths preserve the correct remaining time, including exact-fit retries and actual overruns. The same head passes three mixed-route Team continuation cases and 594 focused cases on each local version from Python 3.10 through 3.14. Hosted CI.

The independent supervisor approved 060440ee after source-cursor, chained re-export, journal-reset fault, native tool history, and terminal provider usage controls. Each local Python version from 3.10 through 3.14 passed 319 focused cases. A 20-turn export, interrupted journal write, and restart also passed. Hosted CI.

The independent supervisor approved d0084895 after native cross-process handoff, competing queued saves, blocked late writes, and immediate resume from a cleanup event. A successor reaches 35 tokens after the previous live process settles and reaches 15 from the durable 10 after interruption. The preceding hosted run exposed 16 read-or-copy and peer-write compatibility cases. They all pass on the revised head, with 506 focused cases on each local Python version from 3.10 through 3.14. Hosted CI.

The independent supervisor approved effda31a after stale input, turn and save controls, file changes during peer publication, and same-instance restore. A process loads 10 tokens, is refused after a second process saves 30, then refreshes and reaches 35 with one new request. Each local Python version from 3.10 through 3.14 passed 537 focused tests. Hosted CI.

The independent supervisor approved a789ac3c after actual file publications, retry and peer controls, and the Team SDK-to-CLI restoration tests. A deterministic checkpoint hold reproduces the earlier stop-reason overwrite. The revised code retains the user and child stop reasons and delivers the accepted summary once, including for an immediate EOF or second interrupt. Local Python 3.10 through 3.14 each passed 599 related cases. Hosted CI for this revision.

The independent supervisor approved 06398e40 after terminal Responses cancellation, usage, and re-export restoration controls. Re-exporting a reused autosave and restoring its equivalent working copy continued from 11 to 18 tokens in all four reproduced cases. Diverged and concurrently updated destinations retain their newer checkpoints. Each local Python version from 3.10 through 3.14 passed 333 related tests. Hosted CI for this revision.

The independent supervisor approved c2dc1df4 after native Chat cancellation and deadline controls, ordinary Responses tests, and real Git and SDK Duo budget scenarios. Each local Python version from 3.10 through 3.14 passed 16 exact-head targeted cases. Hosted CI for this revision.

The independent supervisor approved 6f94daa5 after native macOS exit observations and deterministic TERM, KILL, incomplete-reap and persistent-denial controls. The signal-zero probe observed actual transient EPERM after the leader had already been reaped. Each local Python version from 3.10 through 3.14 passed 94 relevant cases, with five Linux-only cases skipped on the macOS host. Hosted CI for this revision.

The first hosted Python 3.14 run exposed a short deadline on Lead warmup. A 120 ms controlled warmup reproduced it on main and 6f94daa5. All eight delayed cases pass with the adjusted fixture, including the six planned owner timeouts. The independent supervisor approved bf86e594 with the production repair unchanged. Each local Python version from 3.10 through 3.14 passed 105 relevant cases, with five Linux-only cases skipped on macOS. Hosted CI for this revision.

The independent supervisor approved e6793d7e after native Anthropic retries and cancellation, short and extended replies with whitespace, and same-file and replaced-export recovery. Python 3.10 and 3.12 each passed 33 focused replay cases, and 85 session recovery tests passed. The concurrent export case reads one snapshot and continues Alpha from 11 to 16 tokens with matching history and usage identity. Hosted CI for this revision.

On b7198999 the branch includes main 0d041fac. The updated Duo budget tests use the existing dedicated-environment fixture and keep their actual public test commands and prior assertions. The same 12 cases passed on Python 3.10 and 3.12. The Weave continuation checks count the original two stagnant repairs at 36 tokens with zero additional model calls. Reconstruct's parallel and sequential shared-workspace checks both retain programs that return 18 and 27 on input 9. Hosted CI for this revision.

On d98f55e1 the nested SDK cases deliver both rows with 12 tokens and both task slots restored, including when another task releases the second slot after the consumer begins waiting. The Team case covers caller cancellation at completed-turn handoff, genuine expiration, normal results, and an eight-token follow-up in the same caller-owned environment. Hosted CI for this revision.

On 959e436b the SDK numerical probes cover native Chat and Anthropic tool correction, strict snapshot and trace decoding, and artifact inputs rejected before the workflow executes. The CLI checks reject non-finite inputs and report unwritable output, while the finite case succeeds. Actual native SDK 429 receipts agree across Team and Workflow, and typed Responses terminal details remain intact. Superseded hosted run.

On 63193bc7 the manifest retains the original nested values if either the workflow body or its awaiting SDK caller changes the runtime arguments. The discovered CLI workflow still runs with those mutable arguments and writes a valid manifest. The two local interpreters each passed 31 focused checks for input recording, regular JSON delivery and runtime cleanup. Hosted CI for this revision.

On 7446b49b the restore control checks descriptor and model ownership under stale checkpoint rejection. Real local Chat, Anthropic and Responses SDK fixtures confirm that Team lead delivery retains the visible subtotal 42 with a stopped Reviewer, and empty terminal replies do not send planning text. Hosted CI for this revision.

On 6a666c26, a second Team member finishes while the stopped Reviewer is collecting its artifacts. The system delivers one stop notice with the verified subtotal under both output length and filtering. Healthy ordering and the fallback after the owner has finished also pass. Hosted CI for this revision.

On 8f28fbad, the public Team SDK keeps the Lead informed when a caller-owned environment cancels its capture worker. The Lead receives one fallback notice and consumes the follow-up. The healthy I/O error control still receives the subtotal and extraction warning. Hosted CI for this revision.

On e579cb49, the same scenarios preserve a newly saved user turn, retry the transient gateway request, evaluate the delivered archive, and retain workflow failure causes. The settled spend is seven across the public CLI, SDK, manifest and provider ledger. A body that returned before the deadline keeps its output after cleanup and a body interrupted by the deadline stays empty. Hosted CI for this revision.

On 019ae14a, Reconstruct keeps the local execution context while adopting the exact verified archive. The paired SDK fixture records one promotion, early stop, score 1.0 and 66 tokens for a candidate that reads adjacent data. The regular, concurrent-edit and direct-script controls also pass. Hosted CI for this revision.

On 67f2c206, ordinary file execution, direct executable scripts and Python module invocation complete using the same-directory evaluation copies. The adjacent-data control preserves early stopping and exact candidate adoption. Hosted CI for this revision.

On 23c76745, paired controls cover durable restoration after a covered journal failure, transient and persistent owned Agent cleanup, public authored Workflow wait and result with a held export, and the actual OpenCollab-Eval identity reader. Provider-mismatch and missing-identity controls retain their existing classification. Hosted CI for this revision.

On 01a2483d, exact Agent and Workflow Agent probes deliver the accepted answer after a late checkpoint, and actual CLI continuation reloads the same terminal transcript. Registered Team workflows stop at 1,000 tokens even when a nested call requests an escape. Native Chat preserves the 31-token answer after a close-only error and retains retry behavior for an interrupted read. Hosted CI for this revision.

On b4cc5986, the native SDK finishes parsing before the separate close attempt, so close-only stalling retains the first result and 31 tokens. Read stalls, missing final usage, caller cancellation and cancellation-resistant close retain their original safety and accounting behavior. Hosted CI for this revision.

On bcfebb20, both tracked repeated-cancellation cases keep the original cancellation and finish the native close. The native idle, lost-read, close-error, incomplete-result, exact accounting and shared-client controls still pass. Hosted CI for this revision.

On 207925c6, matched native SDK controls cover an existing cancel before close, first cancel during close, repeated cancel during close settlement, and a close timer followed by caller cancellation. The settled result keeps the proper error or verified answer and accounts each native attempt exactly once. Hosted CI for this revision.

On c2ac2bf6, the actual CLI stops after one 500-token response when an explicit budget is used with the environment switch. Native Team controls cover empty and reasoning-only truncation, HTTP 503, visible partial output and completed follow-up. Real local subprocess controls cover the verifier and candidate ownership, failure, cancellation, and borrowed-environment reuse. Hosted CI for this revision.

On 246fdd9c, the native SDK uses the env file’s first model setting with or without a UTF-8 signature. The actual CLI resumes one-row legacy transcripts and retains the exact saved message. The paired Git and pytest cases cover candidate adoption during revision and publication. An unresolved adoption produces a technical error before evidence is marked complete. Hosted CI for this revision.

On 636ff461, the existing late-provider budget cases and both controlled delayed-admission scenarios pass on all five local interpreters. The independent Python 3.11 timing probe verifies that the test retains its 10 ms timer after admission. Hosted CI for this revision.

On 126b1436, current queued-session exports restore across autosave timing and cancellation, and older backups cannot displace newer accepted input or paid results. Reconstruct evaluators receive a candidate in the configured workspace’s path form. Bounded Team calls return accepted Lead replies even when delegated work, a follow-up model request or worktree capture reaches the deadline. Independent Python 3.10 and 3.12 comparisons cover each repair and the retained cancellation behavior. Hosted CI for this revision.

On e5894c69, an authored child reports a persistence failure when a file listed at exit disappears during host export. The final tool record keeps settled usage and leaves native evidence available for recovery. When both execution and export fail, the tool includes both causes. Independent local HTTP and subprocess controls verify ordinary completion, interrupted startup and parent/child usage. Hosted CI for this revision.

On 4f01f411, scoped VM release retries retain the owner through reset and lease return. Session-pool shutdown wakes pending VM acquisitions before releasing owned workspaces. An optional completion replay preserves its paid partial when the provider identifies an output upper bound, while authentication, unsupported parameters and invalid type errors retain their existing failure behavior. Independent local SQLite, Git, HTTP and CLI controls verify lease reuse, cancellation, transcript content and usage. Hosted CI for this revision.

On 51315e4d, concurrent returns of the same workspace share its ownership checks, and independent workspaces continue to release concurrently. Reconstruct handles denied sibling-copy creation with an immutable archive copy and staged neighbor links. File reads can continue after a character-truncated line and report empty pages without a reversed range. A role deadline during an optional replay retains the visible partial received before the deadline while keeping timeout status and settled usage. Hosted CI for this revision.

On c2038348, the Unicode pagination fixtures use escapes in source while retaining the same input, assertions and Python syntax trees. The public readiness and file controls pass independently. Hosted CI for this revision.

On 606331e6, SDK workflow cleanup reports its deadline while pending saves and session closes retain their original workspaces. It releases each workspace after its last owner settles, then closes the SDK-owned base. An ordinary Team change-capture failure keeps the latest completed Lead reply and settled usage. A divergent exported session leaves newer autosaves intact, including accepted messages awaiting delivery. The scoped independent review passed all 220 targeted cases. Hosted CI for this revision.

On bd5d167a, the session pool returns healthy VM workspaces even when another guest's reset fails, and keeps the failed child's sources available for recovery. Reconstruct evaluates fresh copies of its observations and resolves same-stem files next to temporary candidates. Workflow callers keep output settled before a role deadline when an optional budget replay times out. The independent review passed all 223 targeted product cases and confirmed that the cancellation tests verify original task evidence on Python 3.10 and 3.12. Hosted CI for this revision.

On b19040f2, Team cleanup returns worktrees after a late session close and shares the existing close or release on retry. Agent deadline results keep visible truncated text accepted before the terminal checkpoint. Team returns the latest accepted reply when a checkpoint fails and reports the actual error. CLI JSON formatting failures now agree with the saved workflow status. The independent review passed 164 targeted cases. Hosted CI for this revision.

On d0f99267, Team shutdown blocks new work before cancelling a turn, keeps started work owned through cleanup, and applies the same behavior when no wall deadline is configured. The SDK preserves the scheduler's original cancellation object across the Python 3.10 task boundary. Workflow waits for nested shared-slot and allocated collection workers before capturing patches or publishing results. Duo preserves the original budget stop if its fallback cannot be delivered. Weave records the current terminal diagnosis after resumed verification. Independent checks include 100 targeted product cases and cancellation identity controls on Python 3.10 and 3.12. Hosted CI for this revision.

On 108b82cc, Team and Workflow apply their deadlines during startup and retain owned workspaces until pending setup or cleanup settles. Agent journal admission runs off the event loop. The autosave worker submits accepted writes before a short-lived event loop can shut down and preserves the publication context. Shared workspace owners retain every source needed for cleanup retries, and final release prevents new borrowers. Independent review verified startup and release ownership, the three autosave scenarios reported by the first hosted run, and durable message delivery while the caller continues. Hosted CI for this revision.

On 4d570eb0, Workflow read presets remain available when schema capture or findings enforcement adds its tool, including candidate workflows. Responses retain commentary in the native transcript and use final answer text for SDK results and JSON Schema projection. Team preserves accepted visible replies when terminal checkpoint I/O fails or crosses the wall deadline. Ordinary provider failures retain their existing visible partials, failure reason, and usage. The same SDK and file scenarios ran on current main, the previous PR revision, and the repair. The new Responses loopback fixture shares a per-test bearer value between the client and the mock server. Hosted CI for this revision.

On 137ef0ab, a budget retry retains the first visible text if both replies are clipped and the retry is shorter. Completed or longer replays retain their existing behavior, and each request keeps its actual charge. Autosave preserves settled summary usage before the following model call so a new process resumes with the cumulative budget. Native paired replay cases, process restart, and checkpoint cancellation passed independent review. Hosted CI for this revision.

On a0c24b62, request-local RunControl prompts expire at handoff and newly saved native snapshots carry their provenance. SDK sampling overrides can select the provider default, and the CLI welcome uses the resolved Lead model. Workflow artifacts snapshot valid JSON inputs, and Reconstruct observers receive detached example values. The five interface paths passed independent review. Previously unmarked system content keeps its existing snapshot interpretation. Hosted CI for this revision.

The preceding hosted run found that request-local prompt metadata had reached the summary adapter. On f17660fc, the metadata stays in the native history projection, and the summary budget check again receives ordinary messages. This revision also keeps cancelled tool executions registered throughout cleanup. A controlled SDK run shows the cleanup event follows the tool's actual exit when the outer deadline expires first. The independent reviewer passed 83 targeted tests on each of Python 3.10 and 3.12. Hosted CI for this revision.

On 6d75dbf4, tool cleanup keeps ownership through the environment abort. Candidate workflows close their sessions while the worktree remains readable. The existing deadline bounds the wait for closure and follow-on persistence. A delayed owner retains its worktree until it settles, and the root workflow uses the actual outcome. The reviewer reran the original Git failures, concurrent candidates, cooperative close after adoption, and a blocked journal write on Python 3.10 and 3.12. Hosted CI for this revision.

On f4db5cab, the existing local and nested candidate tests exercise the new close order. Each session reads its own worktree during close, closes once, and preserves the prior output, usage and isolation assertions. The update is limited to that test file. Both parameter combinations pass on Python 3.10 through 3.14. Hosted CI for this revision.

On c3a0d8ce, overlapping Session closes wait for the actual transport outcome, Reconstruct preserves directory sidecars during candidate evaluation, and Responses retries four documented transient gateway errors while retaining the reported usage of failed attempts. The independent reviewer repeated the original scenarios and checked the integrated revision on Python 3.10 and 3.12. Hosted CI for this revision.

On 1735d283, model closure stays owned after stage, observation and workflow waits expire. Authored workflow output validation runs before publishing its evidence manifest. A visible truncated reply can use its existing grant for an optional replay while shared recovery is available for an empty first reply. The independent reviewer exercised native SDK calls and the real authored worker on the integrated revision. Hosted CI for this revision.

On 3e23ff42, the protected close owner lives at the Workflow wait boundary. Standalone Agent cleanup can explicitly cancel its close and report the transport's actual outcome. The independent reviewer repeated the three standalone outcomes and all three Workflow deadline boundaries on Python 3.10 and 3.12. Hosted CI for this revision.

On 6b489530, Weave retains completed repairs until their verification runs. Anthropic preserves native thinking when renewing the same final prompt and compares the actual order of system and developer instructions. Summary sizing observes the existing role allowance before a request is selected. Independent controls covered multi-process restart, native SDK request bodies and a sibling's actual verification call. Hosted CI for this revision.

On 7b620e9f, Reconstruct stages candidates under importable module names and keeps standalone verification available where directory aliases are unavailable. The independent reviewer exercised both cases. Hosted CI for this revision.

On f503edda, explicitly capped roles can use returned tokens when admitted, accepted submissions are restored once in interrupted sessions, and candidate adoption checks the source revision before publication and after Git applies the patch. The original failures reproduced on both main and the earlier draft. Independent checks covered actual SDK delivery, resumed transcript and usage, and real Git worktrees with staged and unrelated changes. Hosted CI for this revision.

The work also reproduced an existing case-only rename defect on case-insensitive APFS. Candidate capture can drop the changed spelling, and a staged case-only rename in the source can prevent candidate setup. The next two commits address these cases.

On cef65374, candidates inherit and deliver exact file and directory spellings on case-insensitive filesystems. Git preparation uses private indexes. Workflows retain the caller's index and protect declared paths within renamed directories. A failed publication restores the original spelling when the rename completed before its command result arrived. APFS regressions cover strict and ordinary source snapshots, converted contents, nested directories, standalone Worktree replay, and plain directory adoption. The independent reviewer repeated the delivery and lost-result recovery scenarios with GNU utilities first in PATH. Hosted CI for this revision.

On 2ab04a15, worktree observations also handle Unicode case changes and case-insensitive storage when the repository's ignorecase setting is disabled. Git checks out the prepared source tree using its normal sparse rules before the program applies the requested spelling. Canonical Unicode equivalents are compared against the actual filesystem entry and inode. The tests cover decomposed Unicode names, cleanup, ignored destinations on both filesystem types, and recovery after a lost command result. Hosted CI for this revision.

On 51148088, a missing temporary-cleanup response cannot replace the result of a completed publication. A lost rename response still rolls the transaction back and returns the original error. The two tests use real filesystem operations, compare their final contents and spelling, and verify the caller's Git index. Hosted CI for this revision.

On 28949f59, candidate environment setup keeps its original order for the repository root and unaffected scopes. Scoped local directories are anchored after materialization when the source can replace that directory. The original source-command failure regression and the real file tool after a scoped rename both pass independent review. Hosted CI for this revision.

On 6cc0ee2f, workflow admission waits on temporary reservations until actual budget is available or exhausted. The CLI completes an interrupted turn before submitting a follow-up. Weave keeps a repair pending when verification starts and times out. Reconstruct uses the correct relative Gitfile in a staged submodule. Same-scenario reproductions and independent targeted review pass. Hosted CI for this revision.

On 3fd87733, direct workflow-body admission retains immediate refusal when the entire pool is reserved. Independent workers still wait for reservations to release. The original public SDK case, nested candidate controls, and both sixteen-item collections pass. Hosted CI for this revision.

On 9102e0eb, the six compatibility checks found by the full matrix pass locally without changing the original tests. Session restoration uses saved model or tool output to identify an interrupted turn that needs continuation. Weave records that a timed-out command started while keeping the repair pending. The original SDK scenarios also pass on this revision. Hosted CI for this revision.

On 854074e7, restoring a saved session keeps its visible final reply in history. A model request saved before its first response and a pending tool turn each finish before a follow-up. Recovery keeps existing teammate inbox ordering and preserved tool results. Nine public session-event snapshots were replayed through the CLI. A separate test reopens a snapshot after SDK restoration and re-export. Hosted CI for this revision.

On 71c14618, first-step recovery uses the scheduler's existing inbox eligibility rule. Archived rejections stay in the receipt history. Live and held messages keep their delivery order. An independent reviewer exercised live, held, rejected and mixed inboxes along with the original CLI cases. Hosted CI for this revision.

On a92dd3f7, the delayed-summary test coordinates provider cancellation and response release through events. The original test had a 100 ms cleanup wait and failed on both main and the draft under the same injected event-loop pause. The revised test verifies both cancellation paths, retained task ownership and exactly-once usage accounting. This commit changes the test alone. Hosted CI for this revision.

On 9e9a1756, Responses retains an arrived terminal reply when HTTP close reaches its timeout. The ordinary retry for an unfinished read and explicit caller cancellation are covered. The CLI gives the top-level workflow time to settle its owned cleanup after Ctrl+C. Member-authored workflows load with the same package root as registered workflows, including relative imports, package resources and existing absolute sibling imports. Real SDK, subprocess and installed-wheel checks cover the three cases. Hosted CI for this revision.

On 25525f5b, the authored child compiles the selected workspace source for its entry file and local imports. A rapid equal-length edit can otherwise make Python accept an older timestamp-based bytecode cache and publish stale output. Repeated actual Team launches exercise entry changes, relative and absolute imports, and workspace-root imports. Installed dependencies retain their standard loaders. Hosted CI for this revision.

On 9f6cfe86, the source refresh also covers workspace src/ imports selected through PYTHONPATH and paths added during the run. Python resolves the module first. The authored child compiles selected workspace source and delegates installed dependencies, namespace packages, extensions and bytecode-only modules to their standard loaders. Hosted CI for this revision.

On 213a8612, Reconstruct uses precise mixed numeric comparison and reads the declared encoding of Python candidate sources. Weave preserves a repair for rechecking when a successful command has incomplete captured output and continues to act on confirmed failures. Team preserves actual spelling for case-only renames, including staged additions. Candidate capture enumerates tracked paths separately and delivers a real 6,200-file checkout. Hosted CI for this revision.

On cc657b20, explicit session exports use compact JSON when indentation exceeds the snapshot byte limit and report durable publication even if covered journal cleanup must be deferred. Registered Workflows validate finite UTF-8 JSON before Team handoff and record output format errors in the workflow manifest. Hosted CI for this revision.

Defer cleanup of covered journal records after a synced rollover and accept equivalent same-sequence retries. Keep the source cursor when an export replaces an older autosave.
Record the billed response for an abandoned generation alongside its cancellation lifecycle event. Keep the original request identity and leave session delivery and usage settlement unchanged.
(cherry picked from commit d111f6ead288642b6ddf8c310f97048df41158ba)
(cherry picked from commit 70dacd43cc3e1266c0ed095d199c4261fa015e11)
(cherry picked from commit 3c87eef734a08d6e44b252194edb6887543748d2)
(cherry picked from commit 61056b45f3f06871f3eb6d96aca2b421e790d40a)
(cherry picked from commit 31898459daecc4b2dd2f28bc4d0b2e8e2014ef43)
(cherry picked from commit c38d73f7dff42b8d672b08da624d28303a4abef9)
Report incomplete captures from successful commands and leave the repair pending for a complete recheck. Preserve actionable nonzero exits when command output is truncated.
Keep known failures actionable when a separate successful command produces truncated evidence. Preserve non-pytest exit status handling and require complete output to verify delivery.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant