Skip to content

test(codex): preserve recovered-artifact finalizer isolation - #185173

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-red-main-recovered-artifact-20260919
Oct 26, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-red-main-recovered-artifact-20260919

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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_patch entry, 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

  • Native attempted-write contract: passed with the unchanged production owner; 10.6 seconds test time (306.7 seconds including cold worker preparation). This is dependency-contract coverage, not a claim that production write gating was broken.
  • Local baseline at 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 at 8e63f9ada40d. 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.
  • Existing native finalizer file: 9/9 passed, 160.7 seconds including worker preparation.
  • Changed-file formatting and lint passed. Independent subagent review (autoreview route unavailable): clean at P0–P2. Autoreview preflight refused the selected route because it did not match operator configuration; no configuration was changed.
  • Production LOC delta: 0. No performance claim or load campaign is applicable to this test-only repair. Synthetic provider and Telegram endpoints only; no live Team load or external model calls.

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.
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review October 26, 2026 23:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T23:31:35.535253Z aec8ec0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit d731fbb into main Oct 26, 2026
176 of 178 checks passed
@steipete
steipete deleted the steipete/perf-micro-red-main-recovered-artifact-20260919 branch October 26, 2026 23:41
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant