Skip to content

fix: keep Codex model attribution fixture focused - #149301

Merged
steipete merged 1 commit into
mainfrom
codex/fix-model-attribution-cleanup
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-model-attribution-cleanup

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149238, #148985

What Problem This Solves

Fixes the registered Codex model-attribution test timing out during unrelated host-tool construction, then failing cleanup because its fake transport omits the background-terminal list response. These failures block validation of the SQLite performance changes.

User Impact

No user-visible behavior changes. The existing test continues to verify the ready model, current-turn reroutes, ignored foreign-turn notifications, final answer, and lifecycle settlement with the original timeout and assertions.

Why This Change Was Made

The supervised runtime replaces the helper's model, so its tool-support setting does not keep this fixture's host catalog empty. Supply the empty catalog through the existing host capability, matching the fixture's stored native tool fingerprint, and return the protocol's empty terminal list during cleanup. Native tool policy and supervision remain exercised.

Evidence

  • Reproduced the failure through the registered harness. Timestamped diagnosis attributed the timeout to host-tool preparation consuming the unchanged execution budget.
  • The corrected registered test passes on Node 26.8.2; no production code, timeout, assertion, or schema changes.
  • Checked the terminal-list response against the exact installed Codex 0.154.0 source at commit 6b9826e3aa83b1a5947db50f4332cb9c65f1b340: data: [] and nextCursor: null are the empty response.
  • Independent P0–P2 review completed cleanly with source verification. All selected changed-file checks passed, including extension-test typechecking, scoped lint, formatting, and repository guards. Hosted exact-head CI run 35001700212 and the required openclaw/ci-gate passed for ca6ec6fe011e1514780f4a5bdb9dd26c0427e6bd. ClawSweeper also completed its review with no findings or before-merge items.

@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 2:11 PM ET / 18:11 UTC (Revision 2).

ClawSweeper review

What this changes

The PR gives the Codex model-attribution test an empty host-tool catalog and a valid empty background-terminal response, preventing unrelated preparation and cleanup failures.

Merge readiness

✅ Ready for maintainer review

The fixture repair remains necessary on fetched main, preserves the existing assertions, and has no actionable findings. This maintainer-owned PR is suitable for the normal landing workflow.

Priority: P3
Reviewed head: ca6ec6fe011e1514780f4a5bdb9dd26c0427e6bd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, protocol-correct fixture repair with preserved assertions and successful exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; recorded registered-harness validation and exact-head CI cover the changed test. Inspected screenshots belong to the earlier attribution feature and are not proof of this fixture repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; recorded registered-harness validation and exact-head CI cover the changed test. Inspected screenshots belong to the earlier attribution feature and are not proof of this fixture repair.
Evidence reviewed 9 items Introduced scope and preserved assertions: The pinned merge-base-to-head diff contains only the two fixture additions. Full test inspection confirms ready-model attribution, current-turn rerouting, foreign-turn rejection, final answer, request model omission, and lifecycle settlement assertions remain unchanged.
Existing tool-construction boundary: Supervision replaces the helper model, including its supportsTools setting, while retaining hostCapabilities. Dynamic tool construction consumes the existing createToolSurface capability; the fixture override therefore avoids unrelated catalog construction without disabling supervision or changing production policy.
Cleanup failure mechanism: Cleanup requests thread/backgroundTerminals/list and iterates result.data. The original fixture's default empty object supplies no iterable data; the added response supplies the expected empty inventory.
Findings None None.
Security None None.

How this fits together

OpenClaw's Codex plugin translates native execution events into model-attribution and lifecycle updates. This registered-harness test supplies synthetic transport responses and checks that attribution follows the active turn through settlement.

flowchart LR
  A[Test parameters] --> B[Registered Codex harness]
  C[Empty host-tool catalog] --> B
  D[Synthetic native responses] --> B
  B --> E[Model and lifecycle events]
  B --> F[Terminal cleanup]
  E --> G[Attribution assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +8. Total +8 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep attribution coverage at the registered harness boundary with minimal protocol-correct fixtures and unchanged assertions and deadlines.

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

Yes, source establishes the invalid cleanup response and the registered test provides a focused reproduction path; the preparation timeout is supported by the recorded diagnosis, not independently reproduced here.

Is this the best way to solve the issue?

Yes. The patch uses an existing host capability and the verified native response contract while retaining the test's original behavioral coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a focused test-fixture repair with no production behavior change.
  • 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: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; recorded registered-harness validation and exact-head CI cover the changed test. Inspected screenshots belong to the earlier attribution feature and are not proof of this fixture repair.

Label justifications:

  • P3: This is a focused test-fixture repair 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 maintainer-authored fixture repair is exempt from external-contributor runtime proof; recorded registered-harness validation and exact-head CI cover the changed test. Inspected screenshots belong to the earlier attribution feature and are not proof of this fixture repair.

Evidence

What I checked:

Likely related people:

  • Erick Kinnee: Raw commit 4d6b18b adds extensions/codex/src/app-server/run-attempt.model-attribution.test.ts:190 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4d6b18b6ca46; files: extensions/codex/src/app-server/run-attempt.model-attribution.test.ts)
  • 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 (1 earlier review cycle)
  • reviewed 2026-09-15T17:37:52.287Z sha ca6ec6f :: needs maintainer review before merge. :: none

@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 Sep 15, 2026
@steipete
steipete merged commit 273b6c5 into main Sep 15, 2026
175 of 176 checks passed
@steipete
steipete deleted the codex/fix-model-attribution-cleanup branch September 15, 2026 18:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 15, 2026
steipete added a commit that referenced this pull request Sep 15, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
…48988)

* fix: keep environment inventory responsive during pairing cleanup

* test: include pairing snapshot in isolated gateway expectations

* fix: let profiler help drain pending cleanup

* test: preserve process events in runtime identity fixtures

* test: avoid loading QA runtime in receipt producers

* fix: repair native PR repository identity fixtures (#149294)

(cherry picked from commit 7dc8a1e)

* fix: keep Codex model attribution fixture focused (#149301)

(cherry picked from commit 273b6c5)

* test: align canonical model attribution fixture

Adopt the complete fixture from #149349 and #149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget.

* test: provide dependencies for PR alias fixtures

Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage.

* test: retire superseded PR alias fixture setup

Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches #149477 exactly, without changing the inventory or lifecycle implementation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…enclaw#148988)

* fix: keep environment inventory responsive during pairing cleanup

* test: include pairing snapshot in isolated gateway expectations

* fix: let profiler help drain pending cleanup

* test: preserve process events in runtime identity fixtures

* test: avoid loading QA runtime in receipt producers

* fix: repair native PR repository identity fixtures (openclaw#149294)

(cherry picked from commit 3df0afa)

* fix: keep Codex model attribution fixture focused (openclaw#149301)

(cherry picked from commit f778132)

* test: align canonical model attribution fixture

Adopt the complete fixture from openclaw#149349 and openclaw#149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget.

* test: provide dependencies for PR alias fixtures

Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage.

* test: retire superseded PR alias fixture setup

Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches openclaw#149477 exactly, without changing the inventory or lifecycle implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex maintainer Maintainer-authored PR 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