Repository navigation
fix: keep Codex model attribution fixture focused - #149301
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 2:11 PM ET / 18:11 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw'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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +8. Total +8 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
(cherry picked from commit 273b6c5)
(cherry picked from commit 273b6c5)
…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.
…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.
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
6b9826e3aa83b1a5947db50f4332cb9c65f1b340:data: []andnextCursor: nullare the empty response.openclaw/ci-gatepassed forca6ec6fe011e1514780f4a5bdb9dd26c0427e6bd. ClawSweeper also completed its review with no findings or before-merge items.