Skip to content

refactor(liquid-ai): isolate native Decision protocol - #188232

Merged
vincentkoc merged 6 commits into
mainfrom
refactor/decision-08-liquid-protocol
Oct 31, 2026
Merged

vincentkoc merged 6 commits into
mainfrom
refactor/decision-08-liquid-protocol

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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

  • 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 6e37575515d7c151d1959b8e1419ed877f901ed5, 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: 9a6e141a0855e06bbe0a4ff81dff30542a71fa6d; current-head CI passed at 9a6e141a0855e06bbe0a4ff81dff30542a71fa6d. 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.

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.

@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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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 moves Liquid AI Decision input checks, request encoding, image limits, and response validation into a plugin-local codec.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-equivalent with successful exact-head CI; runtime evidence is limited to retained harness coverage and historical qualification.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored extraction is outside the ordinary contributor proof gate and does not materially change authority; retained integration coverage exercises the production provider, while current-head shipped-entry-point output is not supplied.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
Reason: The existing feature contributor has approved the direction through this maintainer-authored PR, and the small extraction separates native protocol policy from transport without expanding product scope.

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
Reviewed head: 6e37575515d7c151d1959b8e1419ed877f901ed5

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Liquid AI native input and response policy keeps the original intent (863839d: The native provider addition intentionally reused shared SystemOne translation while preserving native input restrictions, zero-output-token semantics, prepared auth, and guarded transport.)

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:65 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 +27. Total +27 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 88 61 +27
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 88 61 +27

Labels

Label changes:

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

Label justifications:

  • P3: This is internal maintenance 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:29 AM ET / 10:29 UTC.

@vincentkoc
vincentkoc force-pushed the refactor/decision-07-openai-provider branch from 74d7ee2 to f9f2a4d 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-07-openai-provider branch from f9f2a4d to 779d567 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-07-openai-provider branch from 779d567 to 48089ac Compare October 30, 2026 14:22
Base automatically changed from refactor/decision-07-openai-provider to main October 31, 2026 02:46
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: openai size: L and removed size: S labels Oct 31, 2026
@vincentkoc
vincentkoc merged commit dda109c into main Oct 31, 2026
135 of 136 checks passed
@vincentkoc
vincentkoc deleted the refactor/decision-08-liquid-protocol branch October 31, 2026 02:57
@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
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: liquid-ai Plugin: liquid-ai extensions: openai P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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