Skip to content

fix(release): Codex npm live follow-through fails after progress finality moved to dynamic-tool-source-reply - #174422

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/codex-npm-followthrough-progress-detection
Oct 19, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/codex-npm-followthrough-progress-detection

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes the Codex npm-plugin release check stopping after its progress reply when the candidate stores progress-finality logic in the newer source-reply module.

User Impact

Release validation can reach the required workspace work and completion reply instead of ending the turn early. This is a harness-only repair; product behavior and strict release assertions do not change. Frozen candidates retain their existing prompt behavior.

Why This Change Was Made

The harness inspected only dynamic-tools.ts, but #164558 moved the progress-finality contract into dynamic-tool-source-reply.ts. It consequently selected the legacy prompt, requesting progress without final; current candidates treat that send as final. Checking both historical contract locations restores the existing explicit final=false instruction where required.

Evidence

  • The original release/2026.10.5 failure is run 38849867499, job 116810210394: only the progress reply arrives, and the app-server reports a terminal dynamic-tool result.
  • Independent inspection of later release checks 39196961475, job 117883162631 confirms the same root: the progress send was delivered with sourceReplyFinal: true; the unpatched script remains identical on inspected current main.
  • Executed the complete host harness through a fixture Docker boundary, then its actual container prompt assembly. The baseline fails the relocated-marker case. This head passes relocated, historical, both-marker, and absent-marker frozen layouts; final completion and work-after-progress instructions remain intact. This provider-free probe plus syntax/whitespace checks took 0.331 s wall time. No test file or production code was added.
  • bash -n and git diff --check pass. Fresh complete-context independent P0–P2 review is scoped-clean. Existing exact-head required CI is successful; native admission will revalidate enforced checks.

Full after-fix Docker/provider execution has not been run. The boundary probe verifies capability detection and prompt transport, not actual model continuation. Existing strict assertions still require both exact replies, ordered successful work, and byte-exact artifact contents.

Contributor credit

Original repair by @RomneyDa. Additional boundary verification was performed under @vincentkoc’s release-audit request.

@RomneyDa RomneyDa added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: XS labels Oct 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The release harness checks both historical locations of the Codex progress-finality marker when selecting its prompt.

Example: A candidate defines continuesSourceReplyProgress in dynamic-tool-source-reply.ts.

  • Before: The harness requests progress without final, which ends the turn before workspace work.
  • After: The harness requests final=false, allowing workspace work and the final completion reply.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A small, source-supported repair with no identified defect and limited end-to-end evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored repair is outside the ordinary contributor-proof gate; the body reports host-harness and container-prompt fixture coverage but explicitly supplies no after-fix provider run, so the previous live-trace recommendation remains optional.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release validation stops after the Codex progress reply before completing the required workspace work.
Reason: The maintainer-authored repair restores the established release contract without adding product behavior or configuration.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs a source-confirmed release-harness mismatch still present on main, with no actionable introduced defect found.

Priority: P2
Reviewed head: 2358967c9568321df334b21940f3d0813ead59fc

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported baseline-failing boundary probe covers detector layouts and prompt assembly, but no after-fix Docker/provider trace demonstrates both replies and the exact artifact.
Agent review details

How this fits together

The Docker release harness installs candidate packages, selects their progress-finality contract, runs a Codex-backed turn, and checks replies, tool ordering, and artifact contents.

flowchart LR
  Candidate[Candidate source] --> Detector[Finality detector]
  Detector --> Prompt[Follow-through prompt]
  Prompt --> Plugin[Installed Codex plugin]
  Plugin --> Reply[Source reply owner]
  Reply --> Results[Replies and artifact]
  Results --> Assertions[Release assertions]
Loading

Technical review

Best possible solution:

Merge the focused detector repair while preserving frozen-candidate selection and the existing strict release assertions.

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

Source establishes deterministic selection of the legacy prompt despite the relocated explicit-progress contract; no target code was executed during this review.

Is this the best way to solve the issue?

The smallest complete fix extends the existing detector to both known owner locations without changing runtime finality or weakening validation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e87464759b58.

Provenance checked

  • Candidate-sensitive progress-finality detection keeps the original intent (8de2679: Current candidates require explicit false for progress, while frozen extended-stable candidates retain omitted-final continuation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 5805af9 adds scripts/e2e/codex-npm-plugin-live-docker.sh:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5805af9dc478; files: scripts/e2e/codex-npm-plugin-live-docker.sh)

PR surface

Other +3. Total +3 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 8 +3
Total 1 11 8 +3

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The defect affects release-validation reliability without establishing an end-user runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Optionally attach a redacted after-fix live-lane trace showing progress, completed workspace work, the exact artifact, and the final reply.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-16T16:44:11.481Z sha 2358967 :: needs maintainer review before merge. :: none

Reviewed October 19, 2026, 5:45 AM ET / 09:45 UTC (Revision 2).

@roboclaw-bot

roboclaw-bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper re-review. the published head is unchanged. actual-host harness boundary proof n is retired; ClawSweeper now only reviews.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@roboclaw-bot
roboclaw-bot merged commit 1ebcfbf into main Oct 19, 2026
134 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/codex-npm-followthrough-progress-detection branch October 19, 2026 09:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…ove (openclaw#174422)

Detect Codex progress-finality in both historical source locations so the release follow-through prompt uses explicit final=false for current candidates. Preserve frozen-candidate behavior and strict reply, work-order, and artifact assertions.

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 1, 2026
…ove (#174422)

Detect Codex progress-finality in both historical source locations so the release follow-through prompt uses explicit final=false for current candidates. Preserve frozen-candidate behavior and strict reply, work-order, and artifact assertions.

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 1ebcfbf)
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) scripts Repository scripts size: XS 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.

2 participants