Repository navigation
chore(postgres): cover async harness prompts across database engines - #200051
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. What this changesThis PR extends watched-session harness tests across three database layouts and updates their PostgreSQL scheduling weight. Example: No user-visible behavior changes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR adds useful, maintainer-directed Gateway qualification coverage, with no actionable source findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway prompt preparation reads watched-session facts through database workers and renders them for agent harnesses; this PR extends the existing main-thread qualification probe. flowchart TD
A[Mixed database fixture] --> B[Gateway main thread probe]
B --> C[Async harness API]
C --> D[Watched session preparation]
D --> E[State and agent workers]
E --> F[Prompt and lifecycle assertions]
Technical reviewBest possible solution: Retain this focused extension of the existing Gateway probe and its measured scheduling entry. Do we have a high-confidence way to reproduce the issue? No production defect is alleged; source inspection confirms the missing mixed-engine and public async harness coverage, and this review executed no target code. Is this the best way to solve the issue? The existing forked Gateway probe is the smallest complete extension: each database layout exercises a distinct placement boundary, and the added lifecycle assertions reuse production owners without adding runtime machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5c9ef285b21b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +35, Other 0. Total +35 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed November 16, 2026, 5:15 AM ET / 10:15 UTC (Revision 2). |
|
@clawsweeper re-review Please review head |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…penclaw#200051) * chore(postgres): cover async harness prompts across database engines * test(postgres): refresh gateway admission timing
What Problem This Solves
Extends the Gateway prompt checks to the public asynchronous harness API and both mixed SQLite/PostgreSQL layouts. Updates the measured scheduling cost for the expanded test.
Related: #199880
User Impact
Tests and CI scheduling metadata only. No runtime, schema version, DDL, migration, persisted format, operator configuration, or public API changes.
Why This Change Was Made
Reuse the real Gateway main-thread probe for PostgreSQL/PostgreSQL, PostgreSQL/SQLite, and SQLite/PostgreSQL. Check exact rendered watched-session text, rejection of a new call after harness authority closes, and removal of the prompt after its last watch disappears. Calibrate the SQL observer against the PostgreSQL store, then require zero host PostgreSQL statements during these operations.
The observer measures PostgreSQL only. This does not claim SQLite host-SQL absence, plugin-specific wiring, or revocation of an already-running call.
Evidence
Head:
65f765d3518ee216571ca647d697d7b4606ad3ab. Final-head CI checked out merge6e32dcbab8b80df196f63ac7c209fa80dffe4330over main5c9ef285b21b0ba82ab8843618e6933b3d7002e3. All three full PostgreSQL shards passed.All three changed cases executed and passed without skips in the final-head PostgreSQL job log:
e3c400d; runtime and test source are unchanged at the final head.git diff --checkpassed.The borrowed-finalization broker failure was already fixed by #199851 and is excluded from this diff.
Final-head CI and review
65f765d: no findings, before-merge items, or remaining rank-up moves. The reviewer did not execute target code and could not independently retrieve the earlier detailed test log.security-fastpassing. Overall CI is failed due to the infrastructure failures below.