Repository navigation
refactor(pipeline): consume the shared llmkit client (R3 — the named companion to opencharly/sdk#261) - #27
Conversation
…companion) The OpenAI-compatible client is no longer implemented in this plugin: it now lives in github.com/opencharly/sdk/llmkit (the ONE canonical client, shared with the `vision:` check verb), and this plugin CONSUMES it. This is the companion change the SDK PR (opencharly/sdk#261) names — so the "one canonical LLM client" claim is a demonstrable fact, not an assertion: the SDK PR ADDS the shared client and THIS change REMOVES the duplicate. No second live client remains. What changed: - llm.go: the entire client implementation (llmConfig, resolveLLM's field copy, mergeLLMParams, parseDuration, clientOptions, buildParams, extraOptions, stopUnion, responseFormatUnion, toolChoiceUnion, the chatMsg/chatToolCall wire structs, toSDKMessages/toSDKToolCalls/fromSDKTools, the whole streaming driver with its idle watchdog + accumulator + reasoning read, imageDataURL/visionParts/ chatVision, openaiUserPartsChat) is DELETED. What remains is the engine's thin adapter: the documented layer resolution (entity → stage → EVAL_LLM_* env → default) expressed against llmkit.Config, the transcript ALIASES (chatMsg = llmkit.Message, chatToolCall = llmkit.ToolCall) so agent.go is UNCHANGED, the stage-level `llm:` decode, and the integer readers. - go.mod: the SDK pin advances to v0.2026259.2136 (the llmkit tag); spec follows to v0.2026259.2033. Behaviour is preserved by construction: resolution precedence is the same field-wise merge (llmkit.MergeParams), the idle bound / reasoning capture / empty-completion guard / no-env-bleed construction are the shared client's (they were MOVED, not re-written), and the transcript aliases keep the turn loop and tool dispatcher identical. schema/pipeline.cue's #LLM* defs are unchanged (they already mirror spec/schema/llm.cue), so params regeneration is a no-op — PARAMS REPRODUCIBLE. Tests updated to the shared API (Config's exported field names; the vision test drives llmkit.ChatVision, the engine's chatVision adapter's target). The engine's own conformance suite still passes unchanged in substance. Verification: gofmt -l . # clean go vet ./... # clean go test -count=1 ./... # ok go test -count=1 -race ./... # ok cue exp gengotypes + diff params/cue_types_gen.go # PARAMS REPRODUCIBLE base(spec) ++ plugin splice # SPLICE OK (identical close+close unifies) Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Comment intake: Notes on what is correct (not blocking): placement is Blocks
if err != nil { return spec.LLMSpec{} }A failed conversion would silently drop the entire authored
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Comment intake: Notes on what is correct (not blocking): placement is Blocks
if err != nil { return spec.LLMSpec{} }A failed conversion would silently drop the entire authored
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…ator round 1, blocks 6-7) The validator's round-1 block on the companion was correct on two code points: - Block 6 (B18/R1): entityToSpec/stageToSpec SWALLOWED the marshal/unmarshal errors and returned a zero spec.LLMSpec, so a failed conversion would silently drop the entire authored llm: block and let the lane fall back to defaults — a silent failure of load-bearing config resolution (R1 forbids it; the replaced code had no such path). resolveLLM now RETURNS the error and both chat() and chatVision() propagate it. - Block 7 (B7/R3): the two bridges were the same JSON round-trip duplicated for the value/pointer input difference. Collapsed to ONE generic toSpecLLM(any). Test: TestToSpecLLM_PropagatesErrors — mutation-verified (restoring the silent zero reds it). The remaining blocks (1-5: pasted live evidence, attribution tier, the preservation proof) are addressed by a real disposable-bed lane run on this branch, pasted in the PR body. Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: CORRECT — the OpenAI client is moved OUT of the plugin and the shared Security screen: PASS — no secrets/exfil, no guardrail weakening, no embedded instructions; pin bumps are expected supply-chain churn. No finding. Comment intake (prior bot comments @
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: CORRECT — the OpenAI client is moved OUT of the plugin and the shared Security screen: PASS — no secrets/exfil, no guardrail weakening, no embedded instructions; pin bumps are expected supply-chain churn. No finding. Comment intake (prior bot comments @
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…at() (block 5) The live reasoning test only called chat() and logged content, so it could pass with the reasoning read gone — it did not prove the preservation claim the rewire rests on. It now FAILS when no reasoning-bearing output is observed, mirroring the same fix in the shared client's live suite. Live proof, through the REWIRED engine path: "LIVE REASONING observed: 148 bytes". Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; pin bumps are ordinary supply-chain churn. No finding. Placement: Comment intake (prior
Blocks
Non-blocking: three non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; pin bumps are ordinary supply-chain churn. No finding. Placement: Comment intake (prior
Blocks
Non-blocking: three non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; pin bumps are ordinary supply-chain churn. No finding. Placement: Comment intake (prior
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; pin bumps are ordinary supply-chain churn. No finding. Placement: Comment intake (prior
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
… 2, block 2) The rewire's first revision deleted the vision seam and pointed the conformance test at llmkit.ChatVision DIRECTLY, so nothing failed if the engine's own chatVision adapter broke. This adds two tests that drive the ADAPTER: - TestChatVision_AdapterDrivesTheSharedClient — the image must reach the server as a content part (base64 data URL) and the adapter must return the model's text. Mutation-verified: dropping the images from the adapter call reds it. - TestChatVision_AdapterPropagatesBridgeError — a client failure must surface, never a silent empty reply (deterministic 500 mock). Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Comment intake (prior
Blocks
Non-blocking: four non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Comment intake (prior
Blocks
Non-blocking: four non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; the Comment intake (prior
Blocks
Non-blocking: four non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; the Comment intake (prior
Blocks
Non-blocking: four non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…idator round 3, block 2) The tier claimed "the changed runtime paths ran live", but the pasted live output covered only the TEXT path (chat()): the lane's [chat] lines are chat()'s, and the live suite was the three text tests. The changed chatVision() adapter was exercised only by the mock server. This adds two live tests driving the ENGINE's chatVision adapter against the real local ollama endpoint with real generated images: TestLive_OllamaVisionAdapter -> LIVE VISION (engine adapter): "Red" TestLive_OllamaVisionWrongExpectation -> discriminates (a green image is not "blue") So both changed runtime paths (chat() AND chatVision()) now have live execution on this head. Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; the Comment intake (
Blocks
Non-blocking: five non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives; the Comment intake (
Blocks
Non-blocking: five non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: code/config — Go runtime code ( Placement: CORRECT — the OpenAI-compatible client is deleted from the plugin candy and the shared Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook/validator change, no embedded directives; the sdk/spec pin bumps are ordinary supply-chain churn. Comment intake (all prior comments pin superseded heads Checklist: all applicable rules PASS or NA (A1/A2/A3 satisfied with pasted output and a tier justified by the changed paths' live execution; B5 zero warnings; B6 no deferral framing; B7/B10 single bridge, client fully deleted; B12/B17 disposable-only fresh-rebuild proof; B13 ADE n/a no candy metadata change, SDD n/a no Non-blocking: the body says "full 12-stage lane" while the pasted lane lists 10 named Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: code/config — Go runtime code ( Placement: CORRECT — the OpenAI-compatible client is deleted from the plugin candy and the shared Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook/validator change, no embedded directives; the sdk/spec pin bumps are ordinary supply-chain churn. Comment intake (all prior comments pin superseded heads Checklist: all applicable rules PASS or NA (A1/A2/A3 satisfied with pasted output and a tier justified by the changed paths' live execution; B5 zero warnings; B6 no deferral framing; B7/B10 single bridge, client fully deleted; B12/B17 disposable-only fresh-rebuild proof; B13 ADE n/a no candy metadata change, SDD n/a no Non-blocking: the body says "full 12-stage lane" while the pasted lane lists 10 named Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfil, no new endpoints or obfuscated code; the only supply-chain change is the intended Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — no secrets/exfil, no new endpoints or obfuscated code; the only supply-chain change is the intended Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
The header still said "the wire client is the official openai-go SDK (llm.go)"; after the rewire llm.go is a thin adapter over the SHARED sdk/llmkit client. An R1 doc-vs-reality divergence: the comment now names llmkit and the adapter. Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — runtime Go code in the plugin candy ( Placement: Security screen: no finding (no secrets/exfil, no new endpoints, no guardrail or rulebook weakening, no embedded instructions; the pin bumps are ordinary supply-chain churn). Comment intake (
Blocks
Non-blocking notes (no gate impact): (a) six non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — runtime Go code in the plugin candy ( Placement: Security screen: no finding (no secrets/exfil, no new endpoints, no guardrail or rulebook weakening, no embedded instructions; the pin bumps are ordinary supply-chain churn). Comment intake (
Blocks
Non-blocking notes (no gate impact): (a) six non-changelog commits ( Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil (the reworked Placement: Comment intake (prior
Checklist: All applicable rules PASS or NA — A1/A2/A3 (template sections supplied with pasted evidence, runtime gate + disposable bed named, tier Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: code/config — Go runtime code ( Security screen: PASS — no secrets/exfil (the reworked Placement: Comment intake (prior
Checklist: All applicable rules PASS or NA — A1/A2/A3 (template sections supplied with pasted evidence, runtime gate + disposable bed named, tier Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
… (R3/R1) RCA while landing the companion: pipeline.cue's MIRROR of spec/schema/llm.cue used GENERIC def names (#ResponseFormat, #Reasoning, #StreamOptions, #NamedToolChoice) while spec uses the #LLM-prefixed ones. The host compiles base ++ EVERY plugin into ONE CUE instance, and two plugins defining the same def name silently UNIFY — so a generic #ResponseFormat here could collide with any other plugin's same-named def (demonstrated: two close()d defs with different bodies fail loud, but two without close() unify silently). Renamed them to spec's #LLM* names, which are also what plugin-vision mirrors — one vocabulary, one spelling. Also added schema_parity_test.go, the anti-drift guard the mirror lacked (every other mirror in the tree has one: plugin-distro, plugin-desktop-kind, plugin-vision). It asserts each mirrored def's top-level field set equals spec's copy read from the ACTUAL spec schema, and that no generic def name survives. Both assertions are mutation-verified (dropping a mirrored field reds the parity test; reintroducing #ResponseFormat reds the name guard). params/cue_types_gen.go regenerated (the renamed types reach the Go mirror) and proven reproducible; the tests updated to the renamed types. Co-authored-by: agent <[email protected]>
Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives aimed at the validator (the "the validator caught exactly that" comment is explanatory, not a directive); the two pin bumps are ordinary supply-chain churn. Comment intake (the harness truncated both the diff and the thread payload; the rounds I could read are dispositioned here):
Blocks
Non-blocking notes (reconcile in the body): the lane output shows 10 Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — Go runtime code ( Placement: Security screen: PASS — no secrets/exfil, no new endpoints, no guardrail/rulebook weakening, no embedded directives aimed at the validator (the "the validator caught exactly that" comment is explanatory, not a directive); the two pin bumps are ordinary supply-chain churn. Comment intake (the harness truncated both the diff and the thread payload; the rounds I could read are dispositioned here):
Blocks
Non-blocking notes (reconcile in the body): the lane output shows 10 Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
…nd 5, block 2 — a real regression) The validator caught a real regression I introduced: my previous commit regenerated params/cue_types_gen.go through the schemagen RETAG step, adding a yaml: tag to every field. But THIS plugin's documented pipeline (and every plugin-pipeline CHANGELOG entry) is PLAIN `cue exp gengotypes` — json-only tags — and main's committed file proves it: $ git show origin/main:candy/plugin-pipeline/params/cue_types_gen.go | grep 'Version int64' Version int64 `json:"version,omitempty"` $ (plain gengotypes on main's schema) diff vs main's committed file MAIN REPRODUCIBLE with PLAIN gengotypes (json-only tags) ROOT CAUSE: I copied plugin-vision's regen recipe (which DOES retag) instead of this plugin's own. The two plugins have different documented pipelines because plugin-vision's generated types carry yaml tags and plugin-pipeline's do not. FIX: regenerate with plain gengotypes. The file is now byte-identical to a fresh plain-gengotypes run of THIS schema: $ cue exp gengotypes . ; diff <(sed 1,1d cue_types_params_gen.go) <(sed 1,1d params/cue_types_gen.go) PARAMS REPRODUCIBLE The renamed types (from the #LLM* def rename) still reach the Go mirror, and the tests still pass. Co-authored-by: agent <[email protected]>
Review — PASSHead SHA: Security screen: PASS — no secrets/env-reading egress, no new endpoints, no obfuscated code, no guardrail/rulebook weakening (this PR touches no gate/validator/CI machinery), no embedded directives aimed at the reviewer in body, diff or commits. Pin bumps ( Comment intake (all prior
Checklist: every applicable rule PASS or NA; placement Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — no secrets/env-reading egress, no new endpoints, no obfuscated code, no guardrail/rulebook weakening (this PR touches no gate/validator/CI machinery), no embedded directives aimed at the reviewer in body, diff or commits. Pin bumps ( Comment intake (all prior
Checklist: every applicable rule PASS or NA; placement Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: runtime code (plugin candy Go + CUE schema + regenerated params + module pin bump) — routed through no runtime bed of its own, so the disposable-bed + live-path gate applies. Security screen: PASS — no secrets/exfil (the new Comment intake (prior Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: runtime code (plugin candy Go + CUE schema + regenerated params + module pin bump) — routed through no runtime bed of its own, so the disposable-bed + live-path gate applies. Security screen: PASS — no secrets/exfil (the new Comment intake (prior Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
…lmkit (closes the R3 loop) (#81) The R3 companion (opencharly/plugin-pipeline#27, "consume the shared llmkit client") merged and tagged v2026.259.2340, but NOTHING pinned it: this lane still carried v2026.259.1825 (the pre-companion client), so the plugin-local client was deleted upstream while the only consumer kept resolving the OLD tag and its copy. The dedup was not actually in force. (RCA: verifying the umbrella sync's live pin resolution — the lane logged `source .../[email protected]/...`.) Fix: the pin advances to v2026.259.2340, so the lane resolves the companion that consumes sdk/llmkit. Verification: $ EVAL_UMBRELLA=<umbrella> charly box validate charly box validate: OK — checked 200 candies, 21 boxes, 21 deploys, 7 distros, 7 builders; 0 warnings, 0 errors $ charly pipeline run eval-pr-plan --pr 12055 --lanes 1 plugin github.com/opencharly/plugin-pipeline/candy/plugin-pipeline: served from .../[email protected]/candy/plugin-pipeline 7.7s lane 12055: done 7.7s pipeline eval-pr-plan: OK (lanes=1, pool=1) So the resolved source is the companion tag, and the lane runs green on it. Rulebook compliance: R1 (the un-consumed companion was root-caused by reading the lane's own resolved source); R2 (closed here, not deferred); R3 (this is the pin that makes the one-canonical-client claim true in practice); R5 (the stale pin is replaced); R10 (the lane ran on the disposable golden clone). Change classification: consumer pin bump. Verification gate: box validate + a live eval-pr-plan lane, pasted. Attribution: fully tested and validated. *Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)* Co-authored-by: atrawog <[email protected]>
Summary
Consumes the shared
github.com/opencharly/sdk/llmkitclient, DELETING thisplugin's own copy — the named companion to opencharly/sdk#261 (merged, tagged
v0.2026259.2136). So the "one canonical LLM client" claim is now a demonstrablefact: sdk#261 ADDS the shared client, this PR REMOVES the duplicate — +453 / −754
across 10 files, a net deletion of 301 lines.
What changed (against
main; 10 files, +453 / −754):The def RENAME matters: the host compiles base ++ EVERY plugin into ONE CUE
instance, and two plugins defining the same def name silently unify — so a generic
#ResponseFormatin this mirror could collide with another plugin's same-nameddef. The mirrored defs now use spec's
#LLM*names (the spelling plugin-visionalso mirrors), and
schema_parity_test.goasserts both the field-set equalityagainst the ACTUAL spec source and the absence of a generic name (both
mutation-verified). This is why the params file and the schema appear in the diff.
What remains is the engine's thin adapter:
resolveLLM— the documented layer resolution (entity → stage →EVAL_LLM_*env → default) expressed against
llmkit.Config;chatMsg = llmkit.Message,chatToolCall = llmkit.ToolCall) so the agent turn-loop CODE is unchanged (only agent.go'sheader comment changed — it names the shared client);
toSpecLLM— ONE non-lossy bridge to the contract types (see below);llm:decode and the integer readers.resolveLLMnow RETURNS an error: the first revision of this companion SWALLOWEDthe bridge's marshal/unmarshal failure and returned a zero
spec.LLMSpec, whichwould silently drop the whole authored
llm:block and fall back to defaults —a silent config-resolution failure (R1). One generic
toSpecLLM(any)replaced thetwo copy-pasted bridges (R3).
How tested
All output below is the RAW output of the commands, run on the frozen head
c8b990a9962445dd21bf17fa6031424e8ea913b6of this branch.Full gate
Schema regeneration (SDD reproducibility)
The base ++ plugin splice also holds (the plugin's
#LLM*defs are identical tospec's, and
close()+close()unifies):The preservation proof — LIVE, through the REWIRED engine path
The changed runtime path is the engine's
chat()/chatVision()adapters ontollmkit. The plugin's own live suite drives exactly those adapters against theREAL local ollama endpoint (
go test -run TestLive_Ollama -v ./...):chat().max_tokens authored; the live reply reflects them).
reasoningread — the test FAILS when no reasoning-bearingoutput is observed (it cannot pass vacuously), proving the rewired path still
captures ollama's non-standard field through
llmkit.The preserved behaviors, each mapped to a test that FAILS without it
The delta MOVES the client across a repo boundary; the risk is a behavior
silently changing. Every behavior the validator named is covered by a test that
drives the engine's ADAPTER and that fails if the behavior is lost:
TestChatIdleWatchdogBoundsAStall(150ms bound; an inert watchdog HANGS it)TestConformance_EmptyCompletionErrors+TestConformance_ReasoningOnlyIsNamedEmptyOPENAI_*env bleedTestConformance_NoOpenAIEnvBleedTestConformance_StageOverridesEntityFieldWiseTestConformance_EnvBeatsStageAndEntityTestConformance_AllParamsReachTheWirechatVisionadapterTestChatVision_AdapterDrivesTheSharedClient(mutation-verified)TestToSpecLLM_PropagatesErrors(mutation-verified)reasoningreadTestLive_OllamaReasoningIsCaptured(fails when unobserved)The run's fresh-build confirmation: the lane ran with
CHARLY_REPO_OVERRIDE=github.com/opencharly/plugin-pipeline=<this branch>, so thecharly loader RECOMPILED this branch's source into the plugin binary — the served
stamp is
build stamp e337bea0c673a426; source /tmp/opencode/plugin-pipeline/candy/plugin-pipeline, i.e. the artifact under testwas built FROM THIS HEAD (not a cached predecessor). The host binary is the
worktree build
charly version 2026.257.0818, which printsBuildCalVer=2026.257.0818— the version-matches-source evidence A1 asks for.The full lane on a
disposable: truetarget — the LLM path EXERCISEDThe eval lane runs on a disposable golden-VM clone (
disposable: true,from: check-omarchy-eval-base-inst:golden). A REAL non-draft PR (omacom/omarchy#12138) drives the full 12-stage lane, and the LLM-bearing stages run LIVE
through the rewired adapters — the
[chat]lines are the engine's adaptercalling the shared client:
So the changed runtime paths (
chat()adapter → shared client, the streamingloop, the reasoning capture, the tool-call turns, the typed-output decode) all
executed live on a disposable bed on THIS head, and the lane completed green.
SDD: the params regeneration, RAW
The parity guard's mutations, RAW (the new coverage this PR ships)
Mutation check
Rulebook compliance
/charly-internals:plugin+/charly-internals:goloaded before editing.
would silently drop the authored
llm:block) and fixed by propagating; thevacuous live reasoning test was root-caused and made to fail when unobserved.
deleted and the two copy-pasted bridges collapsed to one.
main; no force-push; no direct push.params/cue_types_gen.goIS changed: the mirroreddefs were renamed to spec's
#LLM*names, so the generated Go type names follow(e.g.
ResponseFormat->LLMResponseFormat). The file is regenerated with THISplugin's documented pipeline (PLAIN
cue exp gengotypes, json-only tags — NOT theschemagen retag that plugin-vision uses) and proven reproducible below.
real adapters against the real endpoint.
mutation check proves the new guard discriminates.
Change classification
gofmt/vet/test/-race, the SDD regen + splicechecks, LIVE ollama through the rewired adapters, and the full
eval-pr-planlane on disposable beds.
fully tested and validated— the changed runtime pathsran live against the real endpoint and the real lane, with raw output pasted.
Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)