Skip to content

feat(onnx): use prepared decision model execution - #174162

Merged
vincentkoc merged 56 commits into
mainfrom
openclaw/decision-onnx-v2-proof-20261016
Oct 17, 2026
Merged

vincentkoc merged 56 commits into
mainfrom
openclaw/decision-onnx-v2-proof-20261016

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Runs ONNX classifiers through the prepared Decision V2 runtime while retaining the existing classifier kernel and worker admission behavior.

User Impact

Plugins can use the registered ONNX provider through either Decision SDK version. Local auth and catalog capabilities retain each model's limits, token scope and canonical metadata. Unsupported content and reasoning are rejected before worker dispatch.

Development requires a matching V2 source checkout. Released OpenClaw v2026.10.4 exposes V1 only; packaged use requires a supporting paired host/plugin release. Normal release synchronization owns package/API/build alignment. A published host is not a prerequisite for this source merge.

Validation

  • Qualified runtime candidate: 19 focused tests, scoped types, typed lint, formatting and independent review pass.
  • Registered integration covers provider/catalog/local-auth registration, explicit agent ownership, both SDK versions and unsupported reasoning; only the classifier is stubbed.
  • Scoped ONNX package build passed: two runtime entries and 52,954 generated bytes.
  • Runtime bytes are unchanged through the landed Runtime parent and follow-up corrections. Documentation passes formatting and independent review. Reviewed current-main admission/preparation changes require no ONNX-specific runtime repair.
  • Initial current-head CI failed two test-boundary gates: the new plugin-local host integration imported private host/test helpers. The test now lives at the host boundary and imports the plugin through a narrow test-only barrel. All nine assertions and cleanup are preserved. The full plugin test-import guard passes across 4,696 files; the barrel is excluded from runtime build entries. Independent review confirms root test and typecheck selection.
  • Exact-head CI on bb62fdae9ccc25a9fb0dc83f734400769e39c7ca passed: run 38983288809, attempt 1, 31 successful jobs and 27 skipped. Both repaired boundary gates passed. The earlier auto-merge request was retired before replacing its head; native recovery landed this reviewed, qualified head.
  • No model weights were downloaded, no actual weight inference is claimed, and no package was published.

Production delta: +108 lines for V2 registration, capability metadata and the canonical V1/V2 bridge; tests and test support +249 net; documentation +8 net. The existing V1 kernel remains the single classifier implementation.

Runtime parent: #157225. Shared auth repair: #156799.

Merged as 317eb48.

roboclaw-bot and others added 30 commits September 23, 2026 13:54
Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Preserve V1 while moving typed decision execution, both bundled engines, catalog projection and physical credential ownership onto the shared runtime.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

Co-authored-by: steipete <[email protected]>
Merge the updated data-layer prerequisite without rewriting its history, then allocate only the four approved execution/context types. Total allowance is exactly +18 exports / +6 callables, approved by Peter Steinberger on 2026-09-26. All implementation and generated SDK bytes remain unchanged.

Co-authored-by: steipete <[email protected]>
Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.
Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch.

Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build.

Original PR: #156621
* commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301':
  fix(models): include inference metadata in extracted tooling
Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged.
Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion.
Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains.
Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification.
Carry prepared V2 execution over the canonical policy, authentication and data stack. Preserve explicit operation-owner agent selection, lifecycle admission and lossless V1 bridges. Keep external provider V2 conversions gated on the first exporting host release.
Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy.
Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner.
* commit 'ac03ca0b6d26a7dc55d0d262e40d2549631b1ea7': (25 commits)
  fix: apply shared plugin model policy to decisions (#156621)
  perf: shortlist transcript relevance scores before metadata reads (#174058)
  fix: strip standalone trailing NO_REPLY from replies (#171990)
  fix(ci): avoid repeated discovery during changed-test planning (#174069)
  fix(sqlite): preserve transaction outcomes when warnings throw (#157151)
  fix(ai): native video handoff to chat-completions providers + preflight video cost (#170920)
  fix(litellm): image generation fails when the backend returns image URLs (#173508)
  test(memory,gateway,infra,subagents): remove low-value tests (batch d152) (#174034)
  perf(memory): bound derived worker snapshot and pricing retention (#174067)
  fix(test): reduce eager imports during test startup (#174056)
  refactor(codex): share lifecycle preflight fixtures (#174062)
  test(gateway,matrix,agents,ui): remove low-value tests (batch d150) (#174025)
  perf(infra): batch usage refresh maintenance (#174050)
  fix(gateway): revert cold session list worker regression (#174052)
  refactor(config): consolidate browser meeting configuration (#173947)
  fix(cron): keep global-session deliveries on the selected agent (#173855)
  test(compaction): assert structured stale-writer failure (#174064)
  fix(cli): local terminal chat sends model requests without the configured proxy (#173530)
  test(ui): restore bootstrap preference locale after each case (#174065)
  fix: download session files through the development proxy (#173973)
  ...
…x-decision-v2-followup-20261016

* commit 'b319f81e96689070cf51db8376d2f344c78a021f': (26 commits)
  fix(decisions): resolve V2 credentials for the operation agent
  fix: apply shared plugin model policy to decisions (#156621)
  perf: shortlist transcript relevance scores before metadata reads (#174058)
  fix: strip standalone trailing NO_REPLY from replies (#171990)
  fix(ci): avoid repeated discovery during changed-test planning (#174069)
  fix(sqlite): preserve transaction outcomes when warnings throw (#157151)
  fix(ai): native video handoff to chat-completions providers + preflight video cost (#170920)
  fix(litellm): image generation fails when the backend returns image URLs (#173508)
  test(memory,gateway,infra,subagents): remove low-value tests (batch d152) (#174034)
  perf(memory): bound derived worker snapshot and pricing retention (#174067)
  fix(test): reduce eager imports during test startup (#174056)
  refactor(codex): share lifecycle preflight fixtures (#174062)
  test(gateway,matrix,agents,ui): remove low-value tests (batch d150) (#174025)
  perf(infra): batch usage refresh maintenance (#174050)
  fix(gateway): revert cold session list worker regression (#174052)
  refactor(config): consolidate browser meeting configuration (#173947)
  fix(cron): keep global-session deliveries on the selected agent (#173855)
  test(compaction): assert structured stale-writer failure (#174064)
  fix(cli): local terminal chat sends model requests without the configured proxy (#173530)
  test(ui): restore bootstrap preference locale after each case (#174065)
  ...
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts agents Agent runtime and tooling plugin: typesafe size: XL and removed size: M labels Oct 16, 2026
…/decision-onnx-v2-proof-20261016

* commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling plugin: typesafe size: XL labels Oct 16, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 16, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 16, 2026 23:37
@vincentkoc
vincentkoc enabled auto-merge (squash) October 16, 2026 23:42
@vincentkoc
vincentkoc disabled auto-merge October 16, 2026 23:45
@vincentkoc
vincentkoc merged commit 317eb48 into main Oct 17, 2026
107 checks passed
@vincentkoc
vincentkoc deleted the openclaw/decision-onnx-v2-proof-20261016 branch October 17, 2026 00:00
@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 17, 2026
* feat: describe decision capabilities in model catalogs

Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* fix: apply shared plugin model policy to decisions

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat: support plugin-owned model credentials

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat(decisions): preserve richer answers with versioned data codecs

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* feat(decisions): run typed tasks with prepared model credentials

Preserve V1 while moving typed decision execution, both bundled engines, catalog projection and physical credential ownership onto the shared runtime.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* chore(sdk): record approved Decision V2 data allowance

Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

Co-authored-by: steipete <[email protected]>

* fix(models): include inference metadata in extracted tooling

* fix(decisions): preserve explicit owner-agent selection

* fix(decisions): resolve V2 credentials for the operation agent

* feat(onnx): use prepared decision model execution

* test(onnx): cover registered prepared decision execution

* fix(decisions): preserve prepared route and auth facts

* test(decisions): handle optional normalized catalog providers

* chore(decisions): satisfy scoped runtime lint

* fix(onnx): satisfy prepared catalog contracts

* fix(decisions): authorize model identity independently of auth profile

* fix(auth): retain plugin credential authority through dispatch

* fix(decisions): retain credential authority through prepared dispatch

* refactor(decisions): assert resolved credential authority directly

* test(auth): preserve health probe exports in lifecycle fixture

* fix(decisions): distinguish plain record validation

* fix(decisions): repair v2 CI integration

* docs(onnx): clarify prepared V2 release compatibility

* test(onnx): keep prepared host coverage at the host boundary

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[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 P2 Normal backlog priority with limited blast radius. plugin: onnx size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants