Skip to content

fix(live): keep Codex assertions broker-safe - #150475

Merged
RomneyDa merged 2 commits into
mainfrom
fix/frv-codex-broker-safe-assertions
Sep 17, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/frv-codex-broker-safe-assertions

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary: assert Codex ownership and deletion behavior through gateway-visible session and thread state instead of direct plugin-state database reads from a Vitest worker. Validation: pnpm check:changed. Refs FRV 35164828118.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@RomneyDa
RomneyDa enabled auto-merge (squash) September 17, 2026 01:41
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 2:22 AM ET / 06:22 UTC (Revision 5).

ClawSweeper review

What this changes

The PR checks Codex session ownership and deletion through Gateway responses and freshly observed thread identities instead of reading plugin storage from the test worker.

Merge readiness

✅ Ready for maintainer review

The repair remains useful on current main, and both earlier findings are addressed. No blocking defect was found in the revised assertions; this member-authored, protected PR should remain open for the normal merge process.

Priority: P2
Reviewed head: 28da23195f009ac26b5caf705a0b433873d68aa2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful behavioral assertions and both earlier findings resolved; live execution was not independently verified.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored test repair is exempt from contributor runtime-proof requirements; the body reports check:changed, but no after-fix live ownership/deletion run is established.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored test repair is exempt from contributor runtime-proof requirements; the body reports check:changed, but no after-fix live ownership/deletion run is established.
Evidence reviewed 9 items Introduced change and continued necessity: The pinned main-to-head diff contains only the live-test repair. Main still reads plugin state directly from these probes, while the branch removes those reads and retains behavioral ownership checks.
Broker restriction explains the repair: Plugin-state range reads dispatch through the shared-state worker owner; its store opener rejects application-worker calls without the host broker. Gateway requests avoid opening that store from the Vitest worker.
Earlier findings resolved: The native-subagent probe now records parent-filtered lifecycle events before reading its identity. After competing resume rejection, both sessions complete new requests before their thread identities are compared. requestAgentText requires fresh thread_ready events and updates the observed map.
Findings None None.
Security None None.

How this fits together

The Codex live suite sends requests through an isolated OpenClaw Gateway to the Codex runtime. It observes replies and lifecycle events to verify that sessions retain their own native threads and release ownership correctly.

flowchart LR
  A[Live test worker] --> B[Gateway requests]
  B --> C[Codex plugin]
  C --> D[Native Codex threads]
  C --> E[Gateway lifecycle events]
  D --> E
  E --> F[Fresh identity assertions]
  B --> G[Session deletion and resume checks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -35. Total -35 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 21 56 -35
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 21 56 -35

Review metrics

None.

Technical review

Best possible solution:

Keep storage access with the Gateway owner and verify ownership through fresh native-thread observations, sibling continuity, and successful reattachment after deletion.

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

Yes, from source: the original probes call shared-state storage from a test worker, while the store explicitly requires host-broker admission. No failing live run was executed during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing Gateway requests and request-scoped lifecycle observations respects the storage owner while retaining observable rejection, continuity, deletion, and reattachment checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded repair to Codex live-validation assertions, with no production behavior change.
  • 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: The member-authored test repair is exempt from contributor runtime-proof requirements; the body reports check:changed, but no after-fix live ownership/deletion run is established.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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-09-17T01:45:11.204Z sha bbbb53b3d83b4fa7e74f7a69a1ecbd879617ad2a :: blocked before merge. :: [P2] Record the parent thread before reading its cached identity | [P2] Observe both bindings again after the rejected resume
  • reviewed 2026-09-17T02:15:17.359Z sha 676671ab36072b957d9f6f4e4f40a8b4dfa55ef6 :: blocked before merge. :: [P2] Record the parent thread before reading its cached identity | [P2] Observe both bindings again after the rejected resume
  • reviewed 2026-09-17T02:42:28.890Z sha f746857 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T05:27:01.057Z sha 19faed3ca30cfc431bd6b28cd6f1ef7a8fcad456 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/frv-codex-broker-safe-assertions branch 2 times, most recently from c2ca5fb to f746857 Compare September 17, 2026 02:31
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@RomneyDa
RomneyDa force-pushed the fix/frv-codex-broker-safe-assertions branch from f746857 to 19faed3 Compare September 17, 2026 05:17
@RomneyDa
RomneyDa force-pushed the fix/frv-codex-broker-safe-assertions branch from 19faed3 to 28da231 Compare September 17, 2026 06:16
@RomneyDa
RomneyDa merged commit 73a262b into main Sep 17, 2026
164 checks passed
@RomneyDa
RomneyDa deleted the fix/frv-codex-broker-safe-assertions branch September 17, 2026 06:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
* fix(live): keep Codex assertions broker-safe

* test(codex): observe broker bindings after rejection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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