Skip to content

test(codex): remove duplicate terminal inventory fixture case - #149349

Merged
steipete merged 1 commit into
mainfrom
codex/dedupe-codex-attribution-fixture
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/dedupe-codex-attribution-fixture

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Concurrent merges of #149261 and #149301 left two identical thread/backgroundTerminals/list cases in the Codex model-attribution fixture. Remove the unreachable second case; the native response, completion/timeout assertions, and production behavior stay unchanged.

Validation: the original Gateway/SQLite yielded-task regression and both registered Codex attribution cases passed (3 tests). Scoped check-changed and independent P2 review passed. This is a three-line test-only deletion; no new test or documentation change is needed.

Hosted CI passed on the exact PR head. A prospective merge with current main retains exactly one terminal inventory response case.

@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.

@steipete
steipete marked this pull request as ready for review September 15, 2026 18:59
@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
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 3:08 PM ET / 19:08 UTC.

ClawSweeper review

What this changes

Removes an unreachable duplicate response case from the Codex model-attribution test fixture.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful on current main and introduces no actionable defect. The retained case preserves identical behavior and all existing assertions; this maintainer-associated PR should proceed through normal review.

Priority: P3
Reviewed head: 50a41e422782062c2ba75981e2b0bc8ffc97a854

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with retained coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a MEMBER-authored test-only cleanup, so the external-contributor runtime-proof gate does not apply; reported focused tests supplement the source-level equivalence check.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a MEMBER-authored test-only cleanup, so the external-contributor runtime-proof gate does not apply; reported focused tests supplement the source-level equivalence check.
Evidence reviewed 6 items Introduced change preserves the reachable response: The pinned delta removes only the second identical switch case. The first case at lines 173–175 returns the same empty inventory and breaks; both completed and timed-out scenarios retain their assertions.
Cleanup is still necessary on fetched main: Fetched main still contains both identical cases. The affected test path is absent from the supplied latest release, v2026.9.4; this is current development fixture cleanup, not a shipped runtime fix.
Dependency contract applies to the retained fixture: The fixture supplies thread/backgroundTerminals/list responses consumed by terminateCodexBackgroundTerminals, which reads data and iterates process handles. This protocol dependency establishes the reason for inspecting the exact sibling Codex source.
Findings None None.
Security None None.

How this fits together

OpenClaw’s Codex plugin runs agent turns through the Codex app server. This fixture simulates server responses while checking model attribution, completion, and timeout cleanup.

flowchart LR
  A[Registered harness test] --> B[Codex plugin]
  B --> C[Simulated server requests]
  C --> D[Single terminal inventory response]
  D --> E[Completion and timeout assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -3. Total -3 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep one native terminal-inventory response in the fixture while preserving both attribution scenarios and their assertions.

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

Not applicable to a runtime bug: source inspection directly confirms the duplicate unreachable case on fetched main.

Is this the best way to solve the issue?

Yes. Deleting only the unreachable branch is the smallest repair and preserves the existing protocol response and regression coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This removes unreachable test-fixture code without changing production behavior or coverage.
  • 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 supplied repository state identifies a MEMBER-authored test-only cleanup, so the external-contributor runtime-proof gate does not apply; reported focused tests supplement the source-level equivalence check.

Label justifications:

  • P3: This removes unreachable test-fixture code without changing production behavior or coverage.
  • 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 supplied repository state identifies a MEMBER-authored test-only cleanup, so the external-contributor runtime-proof gate does not apply; reported focused tests supplement the source-level equivalence check.

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)
  • Erick Kinnee: 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.

@steipete
steipete merged commit 60deb0d into main Sep 15, 2026
177 checks passed
@steipete
steipete deleted the codex/dedupe-codex-attribution-fixture branch September 15, 2026 20:08
@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
Bring in the mainline duplicate-case repair from #149349 without changing the reviewed model repair. Preserve the catalog fixture and the recorded focused, review, and live evidence.

Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Sep 15, 2026
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.
steipete added a commit that referenced this pull request Sep 15, 2026
Apply the reviewed readiness contract from #149311 while preserving the node relay owner, launch journal and start-gate ordering. Keep transport-level recovery observations and adopt the complete canonical attribution fixture from #149349.
steipete added a commit that referenced this pull request Sep 15, 2026
Merge verified main repair ancestry through 6c28739, including #149349 and #149423. Preserve all eight reviewed Doctor files unchanged.
steipete added a commit that referenced this pull request Sep 16, 2026
* improve(startup): reduce Gateway readiness work

* perf(startup): defer migration imports and reuse snapshot fingerprints

* fix(build): retain shared SQLite schema import

* fix(startup): defer maintenance until startup settles

* test(gateway): split post-ready startup coverage

* test(codex): remove duplicate terminal inventory fixture case (#149349)

(cherry picked from commit 60deb0d)

* fix(test): unblock managed update fixture lint (#149423)

(cherry picked from commit 6c28739)

* test(pr): sync alias fixture dependencies

Reuse the canonical fixture helper from Vincent Koc's #149193
(7450a11) and the alias setup from
#149477 (bb1451c60785853ab3d0380ef825ec143f11233c).

Keep supervisor delegation and refusal assertions intact when current
main materializes missing linked-worktree dependencies.

* test(pr): drop superseded alias fixture backport

Revert 0045dc7 so main owns the
canonical PR wrapper dependency setup. This avoids reintroducing a
second setup call after the upstream fixture repair.

Startup production and package inputs are unchanged.
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
* improve(startup): reduce Gateway readiness work

* perf(startup): defer migration imports and reuse snapshot fingerprints

* fix(build): retain shared SQLite schema import

* fix(startup): defer maintenance until startup settles

* test(gateway): split post-ready startup coverage

* test(codex): remove duplicate terminal inventory fixture case (openclaw#149349)

(cherry picked from commit df50b7d)

* fix(test): unblock managed update fixture lint (openclaw#149423)

(cherry picked from commit a41881e)

* test(pr): sync alias fixture dependencies

Reuse the canonical fixture helper from Vincent Koc's openclaw#149193
(9078929) and the alias setup from
openclaw#149477 (bb1451c60785853ab3d0380ef825ec143f11233c).

Keep supervisor delegation and refusal assertions intact when current
main materializes missing linked-worktree dependencies.

* test(pr): drop superseded alias fixture backport

Revert 0045dc7 so main owns the
canonical PR wrapper dependency setup. This avoids reintroducing a
second setup call after the upstream fixture repair.

Startup production and package inputs are unchanged.
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