Skip to content

feat(runtime): add bounded workspace file installer - #682

Merged
SaladDay merged 2 commits into
mainfrom
codex/files-native-write
Sep 17, 2026
Merged

SaladDay merged 2 commits into
mainfrom
codex/files-native-write

Conversation

@SaladDay

@SaladDay SaladDay commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Add an optional Linux workspace file installer for the pinned Codex executor. It streams up to 50 MiB through native process stdin, verifies a declared-length/SHA-256 frame, and replaces the destination entry without modifying other hard links. With concurrent workspace writers excluded by the caller, interrupted or invalid input preserves the old destination. Existing directory traversal is shared without changing listing behavior.

This adds the build artifact and documents its private contract. It does not enable Files.create, change default placement, or establish mutation recovery after transport/service loss. Preventing staging interference is an explicit prerequisite, not yet established for public uploads. Permission/I/O cleanup failures or forced termination may leave staging; missing commit receipts remain unknown.

Validation: executor tests, formatting, Clippy and release build; actual pinned Codex process RPC in the restricted Docker sandbox for binary/empty/overwrite/50 MiB files, hard-link and path isolation, and observed partial-write termination. This is a native mechanism check with synthetic bytes, not real-model/public SDK acceptance. Full make check passed on candidate8efa6d3e (523.64s), using the existing pinned sqlc1.29.0 binary after the package proxy failed. Final candidate07e3635c adds only contract documentation to the tested candidate. A fresh independent full-diff review found no concrete in-scope issues; its separate build attempt was blocked by OpenSSL include configuration, so reviewer test execution is not claimed. No API/query/schema change; OpenAPI/sqlc regeneration is not applicable to this diff.

@SaladDay
SaladDay merged commit c31f816 into main Sep 17, 2026
9 checks passed
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