Repository navigation
refactor(liquid-ai): isolate native Decision protocol - #188232
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 moves Liquid AI Decision input checks, request encoding, image limits, and response validation into a plugin-local codec. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused, behavior-preserving extraction, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Liquid AI provider receives prepared Decision batches and credentials, translates batches to the native SystemOne protocol, sends guarded HTTP requests, and returns validated Decision outcomes. flowchart LR
A[Decision runtime] --> B[Liquid AI provider]
B --> C[Liquid AI codec]
C --> D[Shared SystemOne codec]
B --> E[Guarded HTTP transport]
E --> F[Liquid AI endpoint]
F --> C
Technical reviewBest possible solution: Keep native protocol policy in the plugin-local codec and retain configuration, authority checks, HTTP execution, and cleanup in the existing provider. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a bug report; comparison with the pinned base and current main shows the same native checks and translations. Is this the best way to solve the issue? The extraction gives native protocol policy one plugin-local owner, preserves the shared SystemOne codec, and introduces no parallel implementation or unnecessary test scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a1d62cfc56c1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +27. Total +27 across 2 files. Added test files: 0. View PR surface stats
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 Reviewed October 30, 2026, 6:29 AM ET / 10:29 UTC. |
74d7ee2 to
f9f2a4d
Compare
6e37575 to
a79cf42
Compare
f9f2a4d to
779d567
Compare
a79cf42 to
09a6e1f
Compare
779d567 to
48089ac
Compare
|
Merged via squash.
|
* refactor(decisions): centralize scoped consumer execution * refactor(decisions): keep consumer evaluation receipts opaque * refactor(decisions): avoid shadowing consumer runtime names * refactor(decisions): separate OpenAI protocol from guarded execution * refactor(openai): project prepared Decision execution explicitly * refactor(liquid-ai): isolate native Decision protocol Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Liquid Decision wire translation and native input policy are mixed with configuration and guarded HTTP execution.
User Impact
No user-visible behavior or configuration changes. Part 08 of the maintainer-directed Decision refactor stack, based on part 07.
Why This Change Was Made
Move native batch support, request encoding/body bounds, image requirements and response validation into a plugin-local codec. Retain native restrictions and zero-output-token semantics.
2 production files, +88/-61 lines. Existing provider and registered integration tests are retained; no duplicate extraction-only tests were added.
Evidence
git range-diff.6e37575515d7c151d1959b8e1419ed877f901ed5, 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:
9a6e141a0855e06bbe0a4ff81dff30542a71fa6d; current-head CI passed at9a6e141a0855e06bbe0a4ff81dff30542a71fa6d. 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.Landing evidence
Ordinary current-head CI41071228275 passed. OpenGrep PR Diff41071227137 passed its scan and SARIF preparation, then failed during SARIF upload; that upload remains failed and is not classified as repaired or superseded. Native completed-evidence preparation verifies existing authoritative CI and applicable hosted proof without dispatching another run; required checks, security and reviews remain enforced.