Skip to content

fix(qa): verify paired Ollama nodes over the gateway - #115644

Merged
steipete merged 1 commit into
mainfrom
codex/node-hardening-54571652-paired-e2e
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/node-hardening-54571652-paired-e2e

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where operators running paired-node Ollama QA would receive local handler-only evidence instead of proof that an authenticated Gateway can discover models and perform inference through a genuinely connected, approved node. Native QA scenarios also could not execute an E2E test because their default Vitest projects exclude E2E files.

Why This Change Was Made

Route only native scenario paths ending in .e2e.test.ts through the existing Gateway E2E Vitest configuration; preserve the exact existing command for all ordinary unit scenarios. Replace the existing paired-node scenario target with an isolated, deterministic source-Gateway E2E using public Gateway and test-state SDKs, genuine WebSocket device pairing, explicit canonical node command authorization, real node.invoke/node.invoke.result transport, and the provider-owned Ollama node handlers. The fake implements both documented Ollama show requests and the current owner request contract. No Ollama production behavior, node-loopback ownership, provider defaults, gateway protocol, or production configuration is changed.

User Impact

QA now demonstrates that a Gateway can actually route local Ollama model discovery and bounded inference to its approved node, without accidentally using the separate Gateway provider endpoint. The scenario also proves unauthorized HTTP requests are rejected, cloud and embedding models are filtered, loaded models sort first, and a usable chat model after 200 embedding-only models remains discoverable.

Evidence

  • Private Blacksmith Testbox tbx_01kyp1dxavcnk80gdk6be7gsqs.
  • Real paired-node E2E: 1 passed using node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts extensions/ollama/src/node-inference.paired-node.e2e.test.ts --reporter=verbose.
  • QA catalog, ordinary QA runner, new E2E-routing regression, Ollama owner tests, and plugin boundary: 91 passed across 3 Vitest shards.
  • Full-project typecheck: node scripts/run-tsgo.mjs -b tsconfig.projects.json passed.
  • Final exact changed TypeScript files: oxlint, zero warnings or errors.
  • Final exact four changed files: oxfmt check passed.
  • Fresh final autoreview: no accepted or actionable findings; trufflehog clean.
  • AI-assisted implementation and independently reviewed test evidence.

@steipete
steipete marked this pull request as ready for review July 29, 2026 06:03
@steipete
steipete merged commit 5da5551 into main Jul 29, 2026
183 of 188 checks passed
@steipete
steipete deleted the codex/node-hardening-54571652-paired-e2e branch July 29, 2026 06:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ifecycle-hooks

* origin/main: (60 commits)
  fix(qa): verify paired Ollama nodes over the gateway (#115644)
  fix(active-memory): share one recall per run across retries (#115627)
  refactor: reuse doctor migration durability helpers (#115625)
  docs: fix unsupported pnpm approve-builds -g in global install (#106180)
  feat(openai): support GA realtime over ChatGPT OAuth (#115623)
  feat(agents): add code mode model acceptance matrix (#115305)
  fix(signal): reject malformed base64 attachment data (#114883)
  fix(onboard): reject remote flags in local mode (#115636)
  refactor: table-drive retired model migrations (#115618)
  fix(ui): fall back when profile hero avatar fails (#115600)
  feat: make self-learning automatic by default (#115576)
  fix(agents): report embedded deadlines as timeouts (#115319)
  fix(cli): keep JSON stdout valid through finalization (#115315)
  fix(agents): clarify code mode contract for small models (#115275)
  fix(linux): package media codecs for deb and AppImage (#115616)
  fix(gateway): redact CLI-imported history before dedupe (#115597)
  fix(gateway): bound stalled plugin shutdown (#115619)
  refactor(gateway): deduplicate message operation routing (#115615)
  fix(nodes): cancel paired local inference when callers disconnect (#115624)
  fix(googlechat): surface failed replies without duplicate sends (#115638)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant