Repository navigation
feat(liquid-ai): add native Decision model provider - #177369
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. |
Add credential-only setup, Decision catalog, native d1 and d1-ultra adapters, bounded image and response handling, and provider docs. Share the existing SystemOne codec without changing OpenRouter behavior. Validation: independent scoped P0-P2 review, qualified formatting, generated catalogs, public-diff scrub and diff checks. Focused Testbox allocation queued and was stopped; dependency-backed tests, build and authenticated live proof remain required before landing. The unchanged API-key helper was excluded from review context by its filename guard.
1eec63e to
bfbbaca
Compare
|
Construct readonly Decision contexts with typed fixture overrides, cover the new docs navigation labels, and account for the two shared SystemOne codec exports. Targeted formatting, exact Swedish navigation assertion, Chinese glossary coverage, diff checks, and independent P0-P2 review passed. Dependency-backed checks remain on PR CI; config baseline regeneration is pending qualified tooling.
|
Codex review: needs maintainer review before merge. What this changesAdds a native Liquid AI Decision provider and shares its System One codec with OpenRouter. Example: An operator selects liquid-ai/d1-ultra with LIQUIDAI_API_KEY.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this useful maintainer-authored PR open; no actionable patch defects were found, but current-head CI has failed and unfinished checks. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe plugin receives typed Decision batches and host-prepared credentials, sends guarded HTTP requests, and returns validated answers and usage to the existing Decision runtime. flowchart LR
A[Decision caller] --> B[Host authorization and credentials]
B --> C[Liquid AI plugin]
C --> D[Shared System One codec]
C --> E[Guarded HTTP transport]
E --> F[Liquid AI API]
F --> D
D --> B
Technical reviewBest possible solution: Land the plugin and shared codec with a compatible host after current-head CI is qualified. Do we have a high-confidence way to reproduce the issue? This is a capability addition: current main lacks the native liquid-ai plugin, while the patch exercises its registered runtime through real guarded HTTP. Is this the best way to solve the issue? The implementation fits the existing provider boundary, reuses host-owned credentials and transport, and extracts the existing codec without introducing a competing runtime owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6705c8b73782. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +354, Tests +861, Docs +193, Config +29, Generated 0, Other +67. Total +1504 across 32 files. Added test files: 5. 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 HistoryReview history (6 earlier review cycles)
Reviewed October 27, 2026, 3:42 AM ET / 07:42 UTC (Revision 7). |
|
@clawsweeper re-review Updated head: |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
Baseline-Refresh: 6d23826bdad1bc37bc1b2acb84f62a5b6480e980
|
@clawsweeper re-review Please review exact head Native baseline refresh is complete. The unpublished native provider is now Seven focused test files and the full build passed on this exact tree. Canonical metadata generation/checks passed; complete independent and formal committed-source reviews found no P0-P2 defects. Two fresh direct authenticated API calls verify d1 and d1-ultra compatibility; historical registered-runtime live proof is labeled separately. The PR body preserves the inherited SDK-budget failure and its source attribution rather than claiming green CI. Current hosted CI is attached separately to this head. |
|
🦞👀 Re-review progress:
|
Baseline-Refresh: d5d4bc1579009771f946cc6041b5d82ac5abbb7c
|
@clawsweeper re-review Please review exact head The previous landing stopped before dispatch on a generated config hash conflict. A native signed successor incorporates frozen baseline Canonical generation/check and four catalog/registered HTTP cases passed on the post-generation remote source; the final committed bytes match the captured output. The intact local commit hook also passed config docs validation. The PR body distinguishes these results from historical full-build/vendor/CI proof. Fresh CI run |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* feat(liquid): add native Decision model provider Add credential-only setup, Decision catalog, native d1 and d1-ultra adapters, bounded image and response handling, and provider docs. Share the existing SystemOne codec without changing OpenRouter behavior. Validation: independent scoped P0-P2 review, qualified formatting, generated catalogs, public-diff scrub and diff checks. Focused Testbox allocation queued and was stopped; dependency-backed tests, build and authenticated live proof remain required before landing. The unchanged API-key helper was excluded from review context by its filename guard. * fix(liquid): repair provider CI contracts Construct readonly Decision contexts with typed fixture overrides, cover the new docs navigation labels, and account for the two shared SystemOne codec exports. Targeted formatting, exact Swedish navigation assertion, Chinese glossary coverage, diff checks, and independent P0-P2 review passed. Dependency-backed checks remain on PR CI; config baseline regeneration is pending qualified tooling. * fix(liquid): align provider validation baselines * test(liquid): prove registered Decision transport authority * test(liquid): satisfy guarded transport lint rules * fix(liquid): regenerate current config baselines * docs(liquid): refresh generated plugin reference count * fix(liquid-ai): isolate native provider credentials from Liquid Inference * chore(config): regenerate Liquid AI baseline after integration
Related: #177044
What Problem This Solves
Operators cannot select Liquid AI's native d1 or d1 Ultra Decision models with their Liquid credentials.
User Impact
Adds a full
liquid-aiprovider plugin with credential-only setup, model discovery, native text/JSON and single-image decisions, and documentation. Connecting it does not select or replace a chat model.Liquid AI uses
LIQUIDAI_API_KEYand its own auth profiles. It is separate from the unrelated Liquid Inference exchange'sliquidprovider andLIQUID_API_KEY; existing exchange config and credentials are unchanged.This is an unpublished development candidate. The plugin must ship with a host release containing Decision V2 and the shared codec exports. Source merge does not authorize independent package publication.
Why This Change Was Made
The provider owns Liquid authentication, metadata and endpoint policy, reusing the Decision V2 host, API-key setup and shared HTTP transport. A shared SystemOne codec replaces OpenRouter's duplicate mapping without changing its wire contract. No third-party dependency or provider-specific core routing is added.
Prepared credentials, declared route prefixes, proxy/TLS policy, cancellation and caller authority remain intact. Unsupported inherited parameters are rejected; undeclared routes cannot acquire native capabilities. Native distributions and scores are preserved, and absent cost stays absent.
The selected integration baseline is
fc001301981aa464acda78a71b96cb263d5aab9f. The earlierd23228cintegration exposed a credential-name collision with the Liquid Inference guide; renaming this unpublished native provider avoids aliases, credential fallbacks and migrations of existing custom providers.Contract sources: Liquid API, d1 Ultra announcement, TypeSafe wire types.
Current Candidate Evidence
146a7ff684b93b5246d9f9d1c12d533aaf5e7aa0, treefdfddf87f481fdc7a8f9bbc8284dc0655b52f1b4. Native baseline successord67060863fcd2cb9f6e3a6676951f7b7f69ff31epreserves the prior signed candidate and selectedfc001301baseline. The final fixup changes only two generated hash lines; provider behavior is unchanged.config:docs:gen,config:docs:check, diff check, Liquid catalog (1 case), and registered HTTP integration (3 cases) passed on Linux x64, Node 24.22.1 and Vitest 5.0.5. The wrapper reported exit 0 and settled cleanup; its lease is stopped. This is the command verdict, not a claim that its delegated Actions lifecycle or PR CI is green.7c6fe04b6cdd9252878adb42a03d4f12753f56f0, generated only the config hash delta, and captured both generated files. Final commit bytes match those outputs exactly. Final tree identity is reconstructed from that initial tree and observed sole delta; a post-generation remote tree OID was not emitted. The intact local signed-commit hook also passedconfig:docs:checkon the final bytes.fc001301completed with no actionable P0-P2 findings. Native publication of this exact head completed, and GitHub reports it mergeable. The exact-head ClawSweeper review is complete with no findings or before-merge moves. Current hosted CI is red as detailed below; old reviews and CI remain historical, not new-head admission stamps.Current Hosted CI
Run 40467939373, attempt 1 completed on head
146a7ff684b93b5246d9f9d1c12d533aaf5e7aa0: 168 terminal jobs, 139 successful, 23 skipped, five failed roots and aggregate gate122072221679. Security job122068294563passed. The actual tested merge is7ac443cf5f39e131d57ca9a2aa9b527bc186e6fb, with ordered parents maineec9cd2790e455126418a2cf5b50755eabdd8790and this PR head.122068297945): four fixture failures. Main changed the scenario's receipt model/key contract without migrating this mock history.122068301795): 17 expectations conflict with main's explicit optional-reply policy for subagent completion processing.122068297988): both tools are present, but main's direct-before-catalog ordering reverses the fixture's expected array.122068301545): two HTTP arrivals instead of one. Source inspection identifies an authority handoff gap in destination-history route discovery; the second request's method/path was not captured in CI, so that explanation remains source-inferred.122068301669): prepared plugin generation was rejected as superseded before provider arrival, followed by the outer timeout. Both the precursor and final failure reproduce on the exact main baseline; the particular generation invalidation producer remains unobserved.The automatic classifier still reports all five UNKNOWN because its selected main run has no matching job names. Independent baseline replay 40473530855 now reproduces all 24 failing cases and their assertion signatures on exact main
eec9cd2790e455126418a2cf5b50755eabdd8790, tree2a4071fdaeb71b8beb62ecbf4edc70800b160c02, without the PR. Five original selected groups ran serially: terminal acknowledgment 4 failed/639 passed; CLI 17/123; catalog 1/15; Copilot 1/513; Google Chat 1/122. Every group emitted its joined native completion, and all five ordinary failure exits were retained. This is reproduced inherited-failure evidence, not green CI or a repair.The replay used Linux x64 Node 24.22.1, Vitest 5.0.5, the original pinned OpenClaw Bun revision, independently frozen baseline dependencies, and original group configuration/file plans with native two-worker limits/fallbacks. Fresh caches and a four-CPU host differ from whole-job scheduling and the original two-CPU hosts; unrelated packed groups/concurrent load were not replayed. The source/runtime guards, original assertions and budgets were unchanged. Native cleanup joined children, removed only the owned baseline checkout, and retained the synced PR source. The wrapper exited 1 with settled cleanup; exact native readback confirms the lease completed with no host. The delegated Actions cancellation reflects lease cleanup, not an unrun payload.
The current evidence requests the supported inherited-only landing exception. Required security, enforced reviews, writer authority, current head and mergeability remain native admission gates; no auto-merge request is enabled.
Named follow-ups outside Liquid: migrate the terminal-ack mock receipt, align CLI completion-policy fixtures, align Copilot membership/order expectations, repair Google Chat route-discovery authority handoff, and diagnose the reproduced catalog generation rejection at its lifecycle owner. None is claimed repaired by this provider PR.
Earlier attempt 40469587623 was stopped at the queued-allocation boundary before baseline execution; exact settlement completed. It does not establish global capacity shortage.
The explicitly authorized bounded attempt 40470430795 acquired its Testbox in 106 seconds and verified the exact candidate source, but stopped before baseline setup or tests because the disposable replay harness incorrectly imposed a global 28-GiB memory assertion. The native shard runner uses that threshold only to select a worker count and supports the selected two-worker fallback below it. This was our proof-harness setup error, not a product failure or a native capacity refusal. The extra assertion has been removed and actual resource logging added; the original five plans and native resource admission remain unchanged. Native stop completed successfully, and the exact Actions run is terminal/cancelled; a subsequent provider inspect timed out.
Earlier corrected attempt 40472565892 did not become ready within its five-minute acquisition window. The wrapper exited 130 before baseline execution; native stop reconciled completed/cancelled settlement. The later explicitly authorized 15-minute attempt above became ready in 165 seconds and completed all five groups. No further replay is active or needed for this packet.
Historical Evidence
4884bdc7a847e07ced91191633634b74a86fcb43, exact tested treef02db8b910c30159e4915d3fc8d8d5d40297e894. Full independent review and committed-source formal review completed with no actionable P0-P2 findings.pnpm buildpassed. Wrapper exit 0 with settled cleanup; the lease was stopped afterwards, so the Actions lifecycle is not the command verdict.d1andd1-ultraboth HTTP 200 with valid Boolean probabilities, 42 input tokens each and zero output tokens. Two synthetic-text requests, no retries; combined provider-reported cost $0.000002604. Account debit was not independently checked. These calls prove API compatibility, not a new registered-runtime hosted replay.10567484passed six requests: both models with text, JSON and a synthetic image, 644 input tokens and zero output tokens. It remains supporting historical proof, not current-head CI.4884bdc7: no findings, no before-merge requirements and no remaining rank-up moves.security-fastpassed. Both remaining assertions independently reproduce on the actual main baseline. An independently audited native inherited-failure packet covers those two failures only; CI is not green.4884bdc7stopped before dispatch on a generated config hash conflict; no merge request was sent. The native successor and canonical fixup above resolve that selected integration. Fresh exact-head qualification remains required.Historical Hosted CI Attribution
Attempt 1 checked out merge
fb4211261081ec957f41a6cd80c6561b8e335efa, whose ordered parents are actual main baselineb4bce788b95ae7c2eb568b9712d91c0219083707and candidate4884bdc7a847e07ced91191633634b74a86fcb43.Focused baseline replay used that exact main tree on a 2-CPU Linux Testbox with Node 24.22.1 and pinned Bun. The three original Codex test groups retained their file order; private QA was built before running the Telegram and workspace files. This was not a replay of every preceding group in the original jobs. The wrapper completed with exit 1 and settled cleanup; the lease was subsequently stopped.
Attempt 2 leaves only the Telegram recovered-artifact finalizer (
121693767619) and compaction ownership (121693772036) failures, plus aggregate121699759925. Both reproduce the baseline assertions above. The automatic failure classifier timed out; this attribution uses the independent baseline replay, not a claimed classifier verdict.Named follow-ups outside this provider change: align the compaction fixture's simulated loaded state with its held writer; derive hook-pressure expectations from the canonical version pin; investigate native tool exposure in the text-only Telegram finalizer. The original title, CPU and workspace failure mechanisms remain unclassified and are not claimed repaired; they are not failed roots in the completed historical attempt. No repair or new-head waiver is inferred from that historical attempt.
Historical SDK Baseline Failure
The prior
4884bdc7measurement ofplugin-sdk:surface:checkfailed: public entrypoints 160 > 158, exports 3829 > 3818, callables 2221 > 2214. Liquid adds zero subpaths and exactly two exports/callables, already budgeted +2/+2.Frozen baseline has 160 public subpaths, independently counted. Baseline export/callable totals 3827/2219 are derived from the candidate measurement minus that exact two-function delta, not a separate baseline execution. Baseline budgets are 158/3816/2212. PR 182928 introduced the unbudgeted
runtime-profileandjson-schema-validatorsubpaths; other baseline symbol additions account for export/callable growth. Shipped-surface removal and registration checks pass. This PR retains the scoped Liquid allowance rather than inflating unrelated SDK budgets.Follow-ups: reconcile baseline SDK accounting through its owner; add the newly documented
d1.1catalog entry separately. Both models advertised here remain live-compatible. No latency, throughput or general model-quality claim is made.Release note: add native Liquid AI d1 and d1 Ultra Decision models with separate credentials and no chat-default changes.