Repository navigation
test(codex): preserve recovered-artifact finalizer isolation - #185173
Merged
steipete merged 1 commit intoOct 26, 2026
Merged
Conversation
Account for Codex 0.164 advertising apply_patch without an execution environment. Keep the exact sanctioned tool catalog and prove native patch execution rejects before altering completed work. Repairs inherited main CI red from run 40413919622 without changing production behavior.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 26, 2026 23:29
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
deleted the
steipete/perf-micro-red-main-recovered-artifact-20260919
branch
October 26, 2026 23:41
This was referenced Oct 26, 2026
steipete
added a commit
that referenced
this pull request
Oct 27, 2026
Keep passive recovery for completed tool work that ends without a final reply. Replace the two inaccurate tool-availability sentences with an instruction to summarize recorded results without calling tools. Verify recovery through exactly-once effects, the recovered answer and artifact delivery instead of tool catalogs or prompt text. Preserve existing execution/result guards and the forced-patch rejection regression. Refs #141705, #185173.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 27, 2026
…w#185173) Account for Codex 0.164 advertising apply_patch without an execution environment. Keep the exact sanctioned tool catalog and prove native patch execution rejects before altering completed work. Repairs inherited main CI red from run 40413919622 without changing production behavior.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 27, 2026
Keep passive recovery for completed tool work that ends without a final reply. Replace the two inaccurate tool-availability sentences with an instruction to summarize recorded results without calling tools. Verify recovery through exactly-once effects, the recovered answer and artifact delivery instead of tool catalogs or prompt text. Preserve existing execution/result guards and the forced-patch rejection regression. Refs openclaw#141705, openclaw#185173.
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.
What Problem This Solves
Fixes inherited red on main in the recovered-artifact Telegram proof: CI run 40413919622 expects an empty finalizer tool catalog but receives native
apply_patch.User Impact
Test-only repair. Finalization still cannot write files or replay completed work; artifact delivery, transcript ownership, and exactly-once assertions are unchanged.
Why This Change Was Made
The trigger is #181823 (
70f8ce638c39), which upgraded managed Codex from 0.162.1 to 0.164.0. Codex 0c5720ea deliberately keeps environment tools advertised without a usable environment. #184901 and #185084 only change containment diagnostics and their expectations.The exact pinned native implementation advertises the patch tool, but resolves its execution environment before accessing the filesystem. OpenClaw's finalizer already starts with
environments: [], so patch execution fails closed. This preserves #171121's no-side-effect finalization contract; the empty advertised catalog was stale.Require exactly the sanctioned native custom
apply_patchentry, with no other advertised tools. Extend the existing native proof to return a real patch call that attempts to overwrite a sentinel, require the specific no-environment error in the next model request, and verify unchanged bytes. Existing summary cases retain their model-specific catalog expectations.Evidence
259813419cab: package preparation completed, but the existing 180-second startup hook timed out during isolated update/Doctor setup before the assertion; cleanup also reported an unreleased resource. This is a setup gap, not a product verdict. The original assertion failure is evidenced by run 40413919622 and the supplied unchanged-main reproduction at8e63f9ada40d. Repaired replay: 1/1 passed, including cleanup, with 35.0 seconds in the actual recovered-artifact test (595.9 seconds including packaged runtime and worker preparation). It verifies one write, one finalizer, one exact-byte document, one authored answer, preserved forwarded provenance, and no replayed tool call.