Skip to content

test(release): preserve Codex follow-through finality - #125619

Merged
RomneyDa merged 5 commits into
mainfrom
fix/codex-followthrough-finality
Aug 18, 2026
Merged

RomneyDa merged 5 commits into
mainfrom
fix/codex-followthrough-finality

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • request final=false for progress on current Codex candidates
  • retain omitted-final progress for frozen candidates whose owner path continues that legacy form
  • accept both transcript contracts while rejecting terminal progress and non-final completion

Root cause

The current probe instructed Codex to omit final for the progress send. Current OpenClaw treats an omitted source-reply final value as terminal and continues only when it is explicitly false, so the turn ended before the file reads, artifact write, and completion send.

The trusted harness also validates frozen extended-stable candidates. It now selects the prompt from the candidate-owned behavior marker: current continuesSourceReplyProgress candidates receive final=false; older candidates retain the omitted-final instruction that their source-reply-finality.ts path supports.

Pinned Codex 0.147.0 does not reinterpret this argument. ../codex/codex-rs/app-server/src/bespoke_event_handling.rs:785 clones the dynamic tool request arguments directly into DynamicToolCallParams; OpenClaw's projected message schema and dynamic-tool bridge own the final contract. The same pass-through was inspected at tag rust-v0.147.0.

Evidence

No local tests or validation were run, per release-validation instruction. Production delta is +0/-0; all changes are release harness and tests.

Agent transcript omitted.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: XS maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 11:35 AM ET / 15:35 UTC.

ClawSweeper review

What this changes

The PR changes the Codex npm release probe to request final=false for progress on current candidates while retaining omitted finality for frozen candidates, and updates transcript assertions for both forms.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No OpenClaw code defect is evident in the patch, but this review cannot clear the PR’s asserted Codex protocol dependency: the required sibling Codex checkout is absent and network access prevented inspecting the pinned source. The protected maintainer item should remain open for that direct contract check.

Priority: P2
Reviewed head: b9a9cb91a63d5a347a288442032a75c4175045a7
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and covers both transcript forms, with one remaining maintainer-side contract verification before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-harness PR provides exact-head release-lane links in its body; the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-harness PR provides exact-head release-lane links in its body; the external-contributor proof gate does not apply.
Evidence reviewed 6 items Current owner behavior: Current main treats a confirmed source reply as non-terminal only when the executed message arguments contain final: false; omission is terminal.
Changed release entry point: The branch selects an explicit or legacy prompt before the Docker harness runs and passes that mode into the follow-through prompt.
Transcript coverage: The updated assertion accepts omitted or explicit-false progress, requires an explicit-or-omitted terminal completion, and the fixture adds the explicit [false, true] contract.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/codex-install-assertions.test.ts -t "accepts explicit progress and completion final controls"

Result: FAIL (partial) — step 2 expect_output accepts explicit progress and completion final controls: expected terminal output was not visible within 30 seconds: "accepts explicit progress and completion final controls"

node scripts/run-vitest.mjs test/scripts/codex-install-assertions.test.ts -t "accepts explicit progress and completion final controls"
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125619-6xwdYP/target$ node scripts/run-vitest.mjs test/scripts/codex-install-assertions.test.ts -t "accepts exp
licit progress and completion final controls"
node scripts/run-vitest.mjs test/scripts/codex-install-assertions.test.ts -t "accepts explicit progress and completion final controls"
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125619-6xwdYP/target

 ✓  tooling  test/scripts/codex-install-assertions.test.ts (31 tests | 30 skipped) 78ms

 Test Files  1 passed (1)
      Tests  1 passed | 30 skipped (31)
   Start at  15:35:53
   Duration  549ms (transform 254ms, setup 62ms, import 49ms, tests 78ms, environment 0ms)

[test] passed 1 Vitest shard in 5.78s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125619-6xwdYP/target$ node scripts/run-vitest.mjs test/scripts/codex-install-assertions.test.ts -t "accepts exp
licit progress and completion final controls"
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125619-6xwdYP/target

 ✓  tooling  test/scripts/codex-install-assertions.test.ts (31 tests | 30 skipped) 69ms

 Test Files  1 passed (1)
      Tests  1 passed | 30 skipped (31)
   Start at  15:35:59
   Duration  350ms (transform 71ms, setup 28ms, import 23ms, tests 69ms, environment 0ms)

[test] passed 1 Vitest shard in 5.61s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125619-6xwdYP/target$




















Assertions:

  • FAIL expect_output: accepts explicit progress and completion final controls

How this fits together

The Codex npm release harness packages a candidate plugin, drives a message-tool follow-through turn, and verifies its stored transcript and artifact. The selected progress-finality form determines whether the model can continue from the visible progress message to the final completion.

flowchart LR
  Candidate[Candidate checkout] --> Selector[Select finality mode]
  Selector --> Prompt[Follow-through prompt]
  Prompt --> Codex[Codex dynamic tool call]
  Codex --> Bridge[OpenClaw message bridge]
  Bridge --> Transcript[Transcript and artifact]
  Transcript --> Assertions[Release assertions]
Loading

Decision needed

Question Recommendation
Can a maintainer with the required Codex checkout verify the pinned 0.147.0 dynamic-tool argument pass-through and the frozen candidate’s omitted-final continuation before this release-harness change merges? Verify both contracts, then merge: Inspect the pinned Codex source and frozen candidate owner path, and merge if they match the two prompt forms exercised by the release lane.

Why: Repository policy requires direct inspection of the asserted Codex contract, and this read-only environment lacks that source and cannot fetch it.

Before merge

  • Resolve merge risk (P1) - The release-mode selector relies on a local implementation identifier; without direct inspection of the frozen candidate and pinned Codex source, a candidate mismatch or semantics-preserving rename could make release validation choose the wrong prompt form.
  • Complete next step (P2) - A maintainer must complete the required direct Codex and frozen-candidate contract inspection; no mechanical repair is identified.
Agent review details

Security

None.

PR surface

Tests +21, Other +22. Total +43 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 23 2 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 27 5 +22
Total 4 50 7 +43

Review metrics

Metric Value Why it matters
Production versus test LOC release tooling +27/-5; tests +23/-2 The added release-harness logic is bounded and its changed finality contracts receive fixture and source-level coverage.

Merge-risk options

Maintainer options:

  1. Complete the contract check before merge (recommended)
    Use an environment with the pinned Codex source and frozen candidate checkout to verify both finality paths behind the release selector.
  2. Pause for a durable marker
    Pause this branch if the source-name heuristic cannot be tied to a stable candidate-owned behavior contract.

Technical review

Best possible solution:

Verify the cited Codex 0.147.0 pass-through and the exact frozen candidate’s omitted-final behavior, then retain one candidate-owned finality selection with the existing dual transcript coverage.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main makes omitted source-reply finality terminal while the prior release prompt requires omission, and the harness explicitly exercises that sequence. This review did not execute the credentialed release lane.

Is this the best way to solve the issue?

Unclear pending the Codex dependency check: selecting explicit false for current behavior and retaining the frozen path is the right boundary, but the asserted external pass-through and frozen implementation were not inspectable here.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8cfacedabe1a.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review merge-risk labels are merge-risk: 🚨 automation.

Label justifications:

  • P2: This is a bounded release-validation reliability repair with no demonstrated end-user runtime outage.
  • merge-risk: 🚨 automation: The patch changes how the release harness selects and verifies a cross-version Codex follow-through flow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-harness PR provides exact-head release-lane links in its body; the external-contributor proof gate does not apply.

Evidence

What I checked:

  • Current owner behavior: Current main treats a confirmed source reply as non-terminal only when the executed message arguments contain final: false; omission is terminal. (extensions/codex/src/app-server/dynamic-tools.ts:870, 8cfacedabe1a)
  • Changed release entry point: The branch selects an explicit or legacy prompt before the Docker harness runs and passes that mode into the follow-through prompt. (scripts/e2e/codex-npm-plugin-live-docker.sh:62, b9a9cb91a63d)
  • Transcript coverage: The updated assertion accepts omitted or explicit-false progress, requires an explicit-or-omitted terminal completion, and the fixture adds the explicit [false, true] contract. (test/scripts/codex-install-assertions.test.ts:896, b9a9cb91a63d)
  • Behavior history: History identifies the earlier Codex progress-continuation work and the later current finality behavior, while blame attributes the new harness selector to this PR head. (extensions/codex/src/app-server/dynamic-tools.ts:884, cd7b7f639da0)
  • Release-boundary check: The latest supplied release commit predates both the current progress-continuation and current-marker commits, supporting the need to preserve a frozen-candidate path rather than unconditionally requesting explicit finality. (scripts/e2e/codex-npm-plugin-live-docker.sh:67, 0790d9f593ad)
  • Codex contract inspection unavailable: The PR explicitly relies on Codex argument pass-through, but ../codex was absent and the checkout could not fetch the required source because DNS/network access was unavailable; this review therefore does not independently confirm the cited pinned Codex behavior.

Likely related people:

  • Glucksberg: Authored the current source-reply progress/finality change that the harness detects. (role: recent finality-behavior contributor; confidence: high; commits: cd7b7f639da0; files: extensions/codex/src/app-server/dynamic-tools.ts)
  • steipete: Introduced the Codex progress follow-through release gate in the history of the changed harness. (role: release-harness originator; confidence: high; commits: 46c3dba53726; files: scripts/e2e/codex-npm-plugin-live-docker.sh)
  • RomneyDa: Previously maintained frozen Codex release-harness support and authored this branch. (role: frozen-candidate compatibility contributor; confidence: high; commits: 08ba5f90c8f4, b9a9cb91a63d; files: scripts/e2e/codex-npm-plugin-live-docker.sh, test/scripts/codex-install-assertions.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Verify the pinned Codex pass-through and frozen-candidate behavior in an environment that contains their source.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-18T05:39:29.766Z sha 67ec1d5 :: needs changes before merge. :: [P1] Accept explicit non-final progress in the follow-through verifier
  • reviewed 2026-08-18T14:30:19.849Z sha 5d9ae28 :: found issues before merge. :: [P1] Preserve legacy candidates that lack the final control
  • reviewed 2026-08-18T14:42:41.863Z sha b9a9cb9 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-18T14:52:35.891Z sha b9a9cb9 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 18, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 18, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@RomneyDa RomneyDa changed the title fix(ci): mark Codex follow-through progress non-final test(release): preserve Codex follow-through finality Aug 18, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Aug 18, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 18, 2026
@RomneyDa
RomneyDa merged commit 8de2679 into main Aug 18, 2026
172 of 174 checks passed
@RomneyDa
RomneyDa deleted the fix/codex-followthrough-finality branch August 18, 2026 15:53
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(ci): mark Codex follow-through progress non-final

* test(ci): assert Codex progress finality

* test(ci): align Codex follow-through assertion

* test(codex): accept explicit progress finality

* test(release): preserve frozen Codex finality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant