Skip to content

Recover selected capture reads when the runtime directory is unavailable - #9109

Open
loopx-agent wants to merge 1 commit into
mainfrom
codex/context-read-runtime-unavailable-20261120
Open

loopx-agent wants to merge 1 commit into
mainfrom
codex/context-read-runtime-unavailable-20261120

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Goal And Delivered Outcome

A saved capture can pass its digest check while the local Effect runtime has no usable temporary directory. In that case, a selected read used to report that the capture could not be read. The full reader could still return the exact original bytes.

The runtime request now returns its existing typed failure when temporary-directory resolution fails before dispatch. After a verified capture reaches selection planning, a startup failure also returns a recovery_command for the original selector, offset, digest and reader route. Restoring runtime access allows that read to finish.

Author Declaration

Written by model_agent (OpenAI Codex, GPT-6).

Implemented against

The captured context read and recovery contract at the tested base. Required work context

Criterion Disposition Evidence
Verify the capture before interpreting a selection. Implemented The same complete source is readable under a simulated temporary-directory failure. Tampered source checks pass.
Report when the selection runtime cannot start. Implemented The real CLI returns runtime_request_failed with a temporary-directory diagnosis. The public result excludes the failing private path.
Keep the original selection and cursor during recovery. Implemented Direct, continuation and reference-file fixtures retry the returned command after the fault is lifted. They finish with the expected selected value and the original source bytes.
Preserve read-only authority on the recovery route. Implemented The generated retry calls quota context-read with the original capture identity and selector.

Validation

Tested revision f11cb6e6c880c0358b6ff9d0a5ccd781cc233125 against base 8e9a28a866da06cc6fd63e78709910fe35dad564. The inputs were synthetic and the tests used isolated runtime directories.

Check kind Result Evidence
real_entrypoint passed Three quota context-read cases cover a direct selection, an existing page cursor and an immutable capture reference. The retry uses the actual TypeScript selector.
regression_parity passed The base reports a capture read failure after temporary-directory resolution fails. Both original fault tests fail their diagnostic assertion on base and pass on head.
integration passed 50 selected reader and runtime cases, including digest, pinned selection, cursor recovery and permission checks.
integration failed Two Markdown host-permission assertions expect a status bullet and receive the fenced Turn Envelope. The same two assertions fail on the base, this head and a local composition with #9084 at 35c9b103540bcd5a26e0be6bb1756a57e67ffa2b.
static passed Ruff for changed Python, public boundary and RFC checks. 24 standard premerge checks passed.
regression_parity passed The disk-bounded baseline exporter from #9103 ran the same CLI differential on the exact base and author head. All 98 rows matched the applicable regression checks.
integration blocked Stock premerge stopped its CLI differential during the baseline checkout because local disk space was exhausted. The disk-bounded run above completed that comparison. #9103
integration not_run Full suite, hosted qualification and installed Host verification. Independent review is pending.

The fault test simulates an unavailable temporary directory. The recovery check runs the normal reader after restoring access.

Frontend / Visual Evidence

UI impact is none.

Type of Change

  • Bug fix
  • Test update

LoopX Area

  • Control plane

The commit carries DCO sign-off. Validation disclosure guidance

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

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