Repository navigation
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 22, 2026, 11:14 AM ET / 15:14 UTC (Revision 5). ClawSweeper reviewWhat this changesStrengthens three embeddings HTTP tests by observing actual provider admission before checking serialization and registering the synthetic local provider’s descriptor. Merge readiness✅ Ready for maintainer review The revised patch remains useful and has no blocking findings. It preserves main’s fixture repairs and resolves the earlier composition concern; the overlapping cleanup PR does not justify automatically closing this maintainer-owned work. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway embeddings endpoint converts authenticated HTTP requests into vectors through configured embedding providers. These tests verify that a replacement provider waits until the previous provider’s cleanup finishes. flowchart TD
A[Authenticated HTTP requests] --> B[Embeddings endpoint]
B --> C[Provider admission queue]
C --> D{Previous cleanup finished?}
D -->|No| E[Wait for cleanup]
E --> D
D -->|Yes| F[Create provider and return vectors]
C --> G[Test observes admission and ordering]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +11. Total +11 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain one canonical serialization table that observes real admission, accurately models local providers, and preserves main’s fixture cleanup. Do we have a high-confidence way to reproduce the issue? Yes, for the test weakness: current main checks provider creation after only a microtask yield, which does not establish HTTP admission. The body also reports a failing serialization-bypass control; this review did not execute it. Is this the best way to solve the issue? Yes. Reusing the existing forwarding observer and provider-entry helper is a narrow repair that strengthens the original assertions without changing production code or adding a competing test harness. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dea53ea3fa4a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
6d09a75 to
f9271d4
Compare
f9271d4 to
d5e9bba
Compare
d5e9bba to
df119c0
Compare
|
Thanks @steipete. The explicit local-provider descriptor and forwarded second-admission observation from this PR are included in the canonical fixture repair, landed through #155703 as 6b89bf8. That repair reuses the server and cleanup owners already on main and also resets all three one-shot mock queues after provider drain. I compared the current head |
What Problem This Solves
The three embeddings serialization tests could pass before a second HTTP request reached provider admission.
User Impact
This strengthens internal regression coverage. Production behavior and existing response, ordering and cleanup assertions remain unchanged.
Why This Change Was Made
The table now uses the existing pass-through lease observer pattern and provider-entry helper before checking that another provider has not been created. The local-provider row registers its synthetic descriptor, and existing cleanup restores the observer. Main already owns the fixture-lifetime and disconnected-request repairs; this follow-up preserves those changes and touches only the three table rows.
Evidence
With serialization deliberately bypassed, the unchanged table incorrectly passed all three cases. The repaired table rejected all three under the same bypass, with normal teardown. The final source passed all 43 owner tests and all 429 tests in the original 12-file HTTP/models group, selected changed checks, direct type-aware lint and independent review through P2. A temporary floating-Promise canary confirmed type-aware lint rejects the violation; the exact reviewed bytes were restored.
pnpm test src/gateway/embeddings-http.test.ts --maxWorkers=1took 151.219 seconds wall. The 12-file group took 258.939 seconds. No cases, Gateway boots, timeout increases, production changes or extra support files were added.This proof covers frozen main
0a5b5381a26b8480021005dc0145524ba6181cdbplus the one-file change. Exact-head CI 35745087574 passed ondf119c037bdb65ce62e56784e96c5371fa5aae88. The changed-test job took 212 seconds and its boundary job 188 seconds (whole-job measurements); earlier-head CI remains historical. Historical Linux timing attribution and full latest-main qualification remain open.