Skip to content

test(codex): include model catalog reads in context checks - #163387

Merged
vincentkoc merged 1 commit into
mainfrom
test/codex-context-model-catalog-20261002
Oct 2, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/codex-context-model-catalog-20261002

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Required CI for #163381 is blocked by five stale context-engine request-order assertions. The existing Ultrafast lookup calls model/list before each turn, but these tests omit that request.

Why This Change Was Made

Include the catalog read in the expected sequences. Context projection, bootstrap ownership, epoch changes, history, and resume assertions remain intact. This separate test-only repair is required to validate the message fix; it changes no runtime behavior.

The producer predates the message change: 9c2335a. The affected app-server subtree is identical at the message PR base and head.

Evidence

@vincentkoc vincentkoc self-assigned this Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review October 2, 2026 08:29
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:34 AM ET / 08:34 UTC.

ClawSweeper review

What this changes

Updates Codex context-engine tests to expect model catalog reads before turns while preserving context, history, and resume checks.

Merge readiness

✅ Ready for maintainer review

Keep open: the expectations match the existing turn path, and fetched main still lacks this repair. No introduced correctness defect was found; the MEMBER-authored PR remains under maintainer handling.

Priority: P3
Reviewed head: 29b166cd58883fd85d6839091c64c6297c058ef6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test repair with no actionable introduced defect; execution results remain outside this review.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test-only repair changes no production behavior, so contributor runtime proof is not required; related UI screenshots do not validate these expectations. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored test-only repair changes no production behavior, so contributor runtime proof is not required; related UI screenshots do not validate these expectations. No stored-data contract changes.
Evidence reviewed 7 items Introduced patch and merge result: The introduced delta only adds model/list to five existing expectation blocks. The verified test merge has the pinned base and head parents and preserves exactly that delta; context and lifecycle assertions are unchanged.
Existing production request: Turn startup awaits optional Ultrafast catalog selection before turn/start. The catalog owner issues model/list, and runtime configuration enables this lookup by default. The fixture supplies an OpenAI native model. These production owners are unchanged between the reviewed checkout and fetched main.
Current main and latest release still need the repair: Both fetched main and the supplied latest-release commit retain the expectation that omits model/list. The repair is therefore not already present in either inspected revision.
Findings None None.
Security None None.

How this fits together

OpenClaw’s Codex plugin prepares conversation context and starts native Codex turns. These tests check the requests and context sent during fresh, resumed, and repeated turns.

flowchart TD
 A[Conversation and session history] --> B[Context preparation]
 B --> C[Start or resume native thread]
 C --> D[Read model catalog]
 D --> E[Start native turn]
 E --> F[Check request order and context]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +6. Total +6 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep the context lifecycle checks aligned with the existing catalog lookup while retaining their independent history and bootstrap assertions.

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

Yes, from source: the fixture records the production model/list request before turn/start, while the original expectations omit it. No tests were executed in this read-only review.

Is this the best way to solve the issue?

Yes: adding the existing request to the expectations is a narrow repair that preserves the meaningful context and lifecycle checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This repairs existing test expectations without changing user-facing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored test-only repair changes no production behavior, so contributor runtime proof is not required; related UI screenshots do not validate these expectations. No stored-data contract changes.

Label justifications:

  • P3: This repairs existing test expectations without changing user-facing runtime behavior.
  • 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 MEMBER-authored test-only repair changes no production behavior, so contributor runtime proof is not required; related UI screenshots do not validate these expectations. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Sarah Fortune: Raw commit 9c2335a adds extensions/codex/src/app-server/service-tier.ts:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9c2335a2d07e; files: extensions/codex/src/app-server/service-tier.ts)
  • Peter Steinberger: 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.

@vincentkoc
vincentkoc merged commit 18ad182 into main Oct 2, 2026
177 checks passed
@vincentkoc
vincentkoc deleted the test/codex-context-model-catalog-20261002 branch October 2, 2026 08:38
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

roboclaw-bot pushed a commit to VACInc/openclaw that referenced this pull request Oct 2, 2026
…163387)

Cherry-picked from canonical main commit 18ad182. Preserve the observed model/list request in the existing context-engine request sequence; all 22 original cases pass on the receiving candidate.

Co-authored-by: VACInc <[email protected]>
steipete added a commit that referenced this pull request Oct 2, 2026
…cription sequences

b56164e (#163320) made each run attempt read the app-server model
catalog (model/list) right before turn/start so it can request Ultrafast
when the catalog advertises it. #163387 and #163388 updated the
context-engine and thread-cleanup sequences; the context-engine overflow
and subscription recovery assertions still expected the old order and kept
main red (7 failures).

Add model/list before each turn/start in those assertions, matching the
existing updates. The Codex app-server serves model/list from its cached
catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs
list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra
read is intended behavior, not a regression.

Proof: run-attempt.context-engine-overflow.test.ts and
run-attempt.subscription.test.ts 16/16 on main d7fd9a7.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…cription sequences

1f9ce7e (openclaw#163320) made each run attempt read the app-server model
catalog (model/list) right before turn/start so it can request Ultrafast
when the catalog advertises it. openclaw#163387 and openclaw#163388 updated the
context-engine and thread-cleanup sequences; the context-engine overflow
and subscription recovery assertions still expected the old order and kept
main red (7 failures).

Add model/list before each turn/start in those assertions, matching the
existing updates. The Codex app-server serves model/list from its cached
catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs
list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra
read is intended behavior, not a regression.

Proof: run-attempt.context-engine-overflow.test.ts and
run-attempt.subscription.test.ts 16/16 on main 420daf0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant