Repository navigation
fix(ci): local model inventory test fails after native login recheck - #167165
Conversation
After #167008, the native-login check and the later prepared inventory read both use the published owner getter. These were already separate owner lookups before that change, across the request preparation boundary. Expect both reads and assert one native-login recheck while preserving the successful response and the guarantee that no catalog load starts.
|
🦞👀 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 October 8, 2026, 6:45 AM ET / 10:45 UTC. ClawSweeper reviewWhat this changesThe branch updates the local model-list test to expect two published-owner reads and check that native login is rechecked. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness✅ Ready for maintainer review This PR repairs a stale test expectation that remains on the pinned main revision. No blocking correctness or security finding was identified; the focused pass is reported separately from the interrupted broader run. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherLocal agent calls reuse Gateway request handlers without starting a server. Model-list requests consume the published model inventory while allowing the existing owner to recheck native login. flowchart TD
A[Local agent request] --> B[Local Gateway context]
B --> C[Model list handler]
C --> D[Native login recheck]
C --> E[Published inventory read]
E --> F[Model list response]
G[Local request test] --> B
G --> H[Response and discovery assertions]
Technical reviewBest possible solution: Keep the production lifecycle boundary and repair the stale test without making exact owner-read counts a permanent behavior contract. Do we have a high-confidence way to reproduce the issue? Yes: current source makes the stale one-read assertion clear, and the PR reports a matching focused failure and subsequent pass. This review did not execute tests. Is this the best way to solve the issue? Yes: updating the test preserves the intended production behavior and replacement boundary; exact getter counts remain unnecessarily implementation-coupled. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2049857a87b3. Provenance checked
TestingProof path: in-process harness. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment |
…claw#167165) After openclaw#167008, the native-login check and the later prepared inventory read both use the published owner getter. These were already separate owner lookups before that change, across the request preparation boundary. Expect both reads and assert one native-login recheck while preserving the successful response and the guarantee that no catalog load starts.
What Problem This Solves
Fixes the known main CI failure in the local model-inventory test after #167008. This is a maintainer-requested repair; a remote proof capacity limit prevented the direct-push path.
User Impact
No production behavior changes. The local Gateway test continues to require a successful prepared response without starting a catalog load, and now explicitly checks the native-login recheck.
Why This Change Was Made
The handler already resolved an owner for lifecycle work before resolving the current prepared inventory after request preparation. #167008 switches the first resolution to the published-owner getter for native login, so both phases now reach the same spy. The later acquisition preserves the pending-runtime-replacement boundary; carrying the earlier owner would bypass it.
Expect two published-owner reads and one native-login recheck while retaining the existing result and no-load assertions.
Related: #167008.
Evidence
5a060dd1e18e: the target file had 1 failed / 8 passed, matching hourly37751789220, job113226895303. Wrapper wall: 44.18 seconds.check-changedpassed, including thegateway-roottest type graph (72.4 seconds), formatting, guards, and all three Knip scans.tbx_01m4ddcmtdgxm86cbqdq5vk1pc, environment run, verified source/tree and candidate file hash.Proof gap: the whole
gateway-database-workersconfiguration was attempted but interrupted with exit 255 after about 61 minutes, before completion. It logged roughly 4,000 passing cases and an unrelatedsession-activity-summaries.test.tsfailure (expected two preparations, observed one; cleanup then timed out). The changed catalog test had not executed in that whole-config process when the unrelated failure occurred. AWS fallback was refused withcost_limit_exceeded: fleet active lease limit exceeded: 21/20. The completed focused/static/review proof is retained; no full-config pass is claimed. No CI dispatches or reruns were requested. Ready for the coordinator's landing decision; auto-merge is not armed.