Repository navigation
refactor(liquid-ai): separate Decision preparation and execution - #188233
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 separates Liquid Decision execution from plugin configuration and transport preparation. Example: Evaluate a 320×320 image using liquid-ai/d1-ultra.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful maintainer-authored refactor with no actionable regression found, successful current-head CI, and clean mergeability. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Liquid AI plugin receives validated Decision batches and host-prepared credentials, translates them into native HTTP requests, and returns validated outcomes after transport cleanup. flowchart LR
Host[Decision host] --> Adapter[Liquid provider adapter]
Adapter --> Codec[Native request codec]
Codec --> Executor[Private executor]
Adapter --> Executor
Executor --> Guard[Guarded HTTP transport]
Guard --> Liquid[Liquid Decision endpoint]
Liquid --> Guard
Guard --> Executor
Technical reviewBest possible solution: Retain one private executor for execution and cleanup while the existing adapter owns configuration, credential eligibility, and synchronous transport projection. Do we have a high-confidence way to reproduce the issue? This PR addresses internal responsibility separation rather than a reported user-visible failure; source comparison found no concrete introduced failing input. Is this the best way to solve the issue? The extraction is appropriately scoped: configuration stays in the adapter, execution receives explicit facts, and the former inline implementation is removed without new SDK surface or duplicated tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5310270e46cf. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +43. Total +43 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 Reviewed October 30, 2026, 6:12 AM ET / 10:12 UTC. |
8bb09cf to
0e38dad
Compare
6e37575 to
a79cf42
Compare
0e38dad to
15f8b35
Compare
a79cf42 to
09a6e1f
Compare
15f8b35 to
32fb243
Compare
32fb243 to
17eafac
Compare
|
Merged via squash.
|
What Problem This Solves
Liquid Decision execution reads broad plugin context while performing image inspection, transport and cleanup.
User Impact
No user-visible behavior or configuration changes. Part 09 of the maintainer-directed Decision refactor stack, based on part 08.
Why This Change Was Made
Keep authored settings, credential eligibility and resolved network projection in the plugin adapter. Execution receives explicit facts and invokes synchronous transport preparation after image inspection inside the existing caught phase. Preserve live dispatch guards and awaited physical release.
2 production files, +155/-112 lines; growth is the explicit private execution contract and transport projection. Existing provider and registered integration tests are retained; no duplicate extraction-only tests were added.
Evidence
git range-diff.8bb09cf88bddf3c4d95a46510040f9ada5b18b0d, including the configured runtime, type, lint and guard lanes.5b235dd694af030aeb75e1ec6e831b71ce4b745c. Shared SDK source-audit evidence, the advisory API-report timeout and broader manual-campaign limitations are recorded in part01.Landing update
Current head:
17eafac1c0620da8bc4070d2d6a2d187d0cccfbd; current-head CI passed at17eafac1c0620da8bc4070d2d6a2d187d0cccfbd. Native landing targets main after the preceding slice merged. The own-slice commit range is patch-identical after replay onto verified landed part08dda109cacbbefd3a6dfcc442ac97e2107b6c62c8. This resolves the part09 squash-ancestry conflict and gives fresh CI a protected-main baseline. All16 replayed ranges were checked withgit range-diffand valid commit signatures. Prior CI is historical evidence at its recorded head; native review, preparation and merge checks remain required.Earlier landing evidence
Earlier head:
32fb2435b49474761bf48191210e3a22a95fcb33; that head's CI passed at32fb2435b49474761bf48191210e3a22a95fcb33. Landing waits for the preceding slices. After part04 landed, the remaining stack was replayed onto its actual protected-main commit63dbee6a514580948082dc20cb930c7e748c019eto resolve the named CI/base-context gap in part05. All 20 commit ranges remain patch-identical bygit range-diff; the allocation guard passes. Earlier CI/build evidence above remains historical. Each slice lands through the native main-targeted review, preparation, and merge workflow after its predecessor.