Skip to content

refactor(liquid-ai): separate Decision preparation and execution - #188233

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/decision-09-liquid-execution
Oct 31, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/decision-09-liquid-execution

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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

  • Independent fresh source review and local committed-range ClawSweeper review completed with no unresolved actionable findings. Corrective changes were reviewed separately; mechanical restacks were checked with git range-diff.
  • Exact-head ordinary CI passed at 8bb09cf88bddf3c4d95a46510040f9ada5b18b0d, including the configured runtime, type, lint and guard lanes.
  • Aggregate production build passed at final production head 5b235dd694af030aeb75e1ec6e831b71ce4b745c. Shared SDK source-audit evidence, the advisory API-report timeout and broader manual-campaign limitations are recorded in part01.
  • Pinned local formatting, limited standalone lint, content hooks and diff checks passed. Local dependencies failed qualification, so no local project runtime pass is claimed.

Landing update

Current head: 17eafac1c0620da8bc4070d2d6a2d187d0cccfbd; current-head CI passed at 17eafac1c0620da8bc4070d2d6a2d187d0cccfbd. Native landing targets main after the preceding slice merged. The own-slice commit range is patch-identical after replay onto verified landed part08 dda109cacbbefd3a6dfcc442ac97e2107b6c62c8. This resolves the part09 squash-ancestry conflict and gives fresh CI a protected-main baseline. All16 replayed ranges were checked with git range-diff and 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 at 32fb2435b49474761bf48191210e3a22a95fcb33. Landing waits for the preceding slices. After part04 landed, the remaining stack was replayed onto its actual protected-main commit 63dbee6a514580948082dc20cb930c7e748c019e to resolve the named CI/base-context gap in part05. All 20 commit ranges remain patch-identical by git 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.

@vincentkoc vincentkoc self-assigned this Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review October 30, 2026 09:58
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR separates Liquid Decision execution from plugin configuration and transport preparation.

Example: Evaluate a 320×320 image using liquid-ai/d1-ultra.

  • Before: The provider adapter performs image inspection, HTTP dispatch, response validation, and cleanup inline.
  • After: A private executor performs those operations using explicit facts while preserving the same request and result behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch preserves existing behavior and passes current-head CI; inspectable execution evidence is limited to retained harness source and job results.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal extraction is outside the ordinary contributor proof gate and does not materially change authority boundaries; current-head CI passed, while supplied evidence contains no new shipped-entry-point execution trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Liquid Decision execution currently reads broad plugin context while performing image inspection, transport, and cleanup.
Reason: The maintainer-authored direction is established, and this focused extraction separates existing responsibilities without adding user-facing policy or configuration.

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
Reviewed head: 8bb09cf88bddf3c4d95a46510040f9ada5b18b0d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No current-head shipped-entry-point trace was supplied; successful CI supports the retained integration coverage, but individual test logs were inaccessible.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Native Decision transport, admission checks, response handling, and cleanup keeps the original intent (863839d: The original native provider reused host-prepared credentials and guarded transport while preserving cancellation, caller authority, native response validation, and physical cleanup.)
  • Plugin-local native codec boundary keeps the original intent (refactor(liquid-ai): isolate native Decision protocol #188232: The preceding stack slice isolated native wire translation and input restrictions; this PR retains that codec and separates execution from configuration.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 863839d adds extensions/liquid-ai/decision-provider.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 863839d03293; files: extensions/liquid-ai/decision-provider.ts)

PR surface

Source +43. Total +43 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 155 112 +43
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 155 112 +43

Review metrics

Metric Value Why it matters
Production versus test LOC Production +155/-112; tests unchanged The net growth defines the private execution contract and transport projection while removing the former inline execution path.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an internal refactor with no intended user-visible behavior or configuration change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 6:12 AM ET / 10:12 UTC.

@vincentkoc
vincentkoc force-pushed the refactor/decision-09-liquid-execution branch from 8bb09cf to 0e38dad Compare October 30, 2026 13:37
@vincentkoc
vincentkoc force-pushed the refactor/decision-08-liquid-protocol branch from 6e37575 to a79cf42 Compare October 30, 2026 13:37
@vincentkoc
vincentkoc force-pushed the refactor/decision-09-liquid-execution branch from 0e38dad to 15f8b35 Compare October 30, 2026 13:58
@vincentkoc
vincentkoc force-pushed the refactor/decision-08-liquid-protocol branch from a79cf42 to 09a6e1f Compare October 30, 2026 13:58
@vincentkoc
vincentkoc force-pushed the refactor/decision-09-liquid-execution branch from 15f8b35 to 32fb243 Compare October 30, 2026 14:22
Base automatically changed from refactor/decision-08-liquid-protocol to main October 31, 2026 02:57
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: openai size: XL and removed size: M labels Oct 31, 2026
@vincentkoc
vincentkoc force-pushed the refactor/decision-09-liquid-execution branch from 32fb243 to 17eafac Compare October 31, 2026 03:06
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed docs Improvements or additions to documentation extensions: openai size: XL labels Oct 31, 2026
@vincentkoc
vincentkoc merged commit 731030e into main Oct 31, 2026
119 checks passed
@vincentkoc
vincentkoc deleted the refactor/decision-09-liquid-execution branch October 31, 2026 03:18
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: liquid-ai Plugin: liquid-ai P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant