Skip to content

feat(typesafe): support prepared Decision V2 batches - #158565

Merged
vincentkoc merged 83 commits into
mainfrom
openclaw/typesafe-hosted-facts-f8fa117b
Oct 20, 2026
Merged

vincentkoc merged 83 commits into
mainfrom
openclaw/typesafe-hosted-facts-f8fa117b

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Connects TypeSafe to the prepared Decision V2 runtime while preserving V1 SDK callers and route-specific model capabilities.

User Impact

Supported requests use the existing transport with prepared credentials. Hosted billing and token limits apply only to matching routes; custom endpoints do not inherit hosted assumptions. Automatic reasoning is supported; explicit on/off modes remain rejected.

The setup guide and package README distinguish matching V2 source development from packaged support. Released OpenClaw v2026.10.4 is V1-only. Packaged use requires a supporting paired host/plugin release; normal release synchronization aligns plugin API and build metadata.

Current Integration and Proof

Signed head 3e56cc26f889f02d28dc8f45285f8d2e5ac6a639 integrates the frozen main revision 4ba34fdbb69fc1dbeafd93a2c946e362141ff0be after GitHub reported actual conflicts in three TypeSafe transport tests. Main had extracted their registration and response/socket fixtures into transport.test-support.ts; this PR changes registration to V2. The resolution preserves that shared owner and invokes the existing intentional V1 wire-fixture bridge once from the registered V2 helper. Hostile accessor/serializer input still rejects with DecisionContractError before user code or transport runs. No assertions or production guards were weakened.

The native three-conflict successor and signed helper amendment produce the independently reviewed tree 5e4e9c6eb6d00e8cca8f5f11f04ec3ad67e9756e. The final amendment is test-only +4/-4, production unchanged. Provider, API client/transport, manifest, live fixture and the repaired benchmark worker retain their prior reviewed bytes.

Fresh proof used frozen merged dependencies on Darwin arm64, Node 26.7.0 and pnpm 12.12.1:

  • Four shared-helper consumer suites: 134 passed, 4 files, 0 skipped (local, registered, remote and direct transport).
  • Existing benchmark suite: 8 passed, 1 file, 0 skipped, preserving exact B/C/S results, token usage, six-request reuse and broken-pool-close rejection.
  • Actual compiled benchmark and two-request smoke passed; responseBytes=714, socketsAfterPoolClose=0.
  • Targeted formatting, lint, root-scripts types and focused transport-test types passed. Normal signed precommit and independent scoped reviews passed.

The remote attempt failed during provider readiness observation before any payload ran; its owned lease was stopped and joined. The documented trusted local fallback supplied the results above. The builder's clean-HEAD requirement and lint's retained build-owner lock were resolved through their normal contracts; only the blocked surfaces resumed, with the 142 passing tests preserved. No Linux result is claimed for this attempt; current-head GitHub CI supplies that broad proof.

Against frozen main, production/tooling is +267/-24 (net +243) across the TypeSafe registration/execution owner and benchmark consumer; tests are +992/-207, counted separately. The growth supplies prepared Decision V2 capability/execution and contract validation plus explicit benchmark lifetime ownership. The registered entrypoint and benchmark no longer use V1 readiness, untagged state or string-only context assumptions. Intentional V1 wire fixtures and codec coverage remain test-only. Sibling coverage includes the generic V1/V2 host integration, registered TypeSafe admission, four transport suites and benchmark fault/drain paths; the authenticated API proof retains its stated structural-response scope.

The earlier Linux benchmark proof remains at 9ed, integration proof at 2784, and authenticated mixed-batch API proof at unchanged 6ea provider bytes, as labeled below. Current-head CI, security and ClawSweeper remain landing gates.

Earlier Benchmark Correction at 9ed9679

Signed head 9ed9679453d200ed29f9ff65ff657b4528b43ad9 repairs the registered-transport benchmark consumer exposed by CI run 39238972922 and the exact-2784 ClawSweeper P2. The worker still expected V1 readiness, an untagged state and a string model after this PR registered a V2 provider. This was a PR regression; the failed CI is not waived.

The benchmark now obtains validated Kev model facts from the actual manifest through normalizeModelCatalog, calls the registered auth/transport hooks, passes tagged JSON and a typed V2 context, and owns a concrete active/server/signal/deadline admission predicate. It revokes that lifetime before draining the pool. This preserves the registered-transport component measurement and lazy-client boundary; no Gateway bootstrap or test-only V1 compatibility bridge was added.

Only scripts/bench-decision-transport-worker.ts changes from 2784: production tooling +53/-21 (net +32), tests unchanged. The growth supplies V2 prepared facts and explicit lifecycle ownership. Provider, API client/transport, manifest and live-fixture bytes remain unchanged.

Remote proof run 39264381306 verified the exact source tree 1ba69a4413c5862da66b155f1965069d0c8eedf2, which is also the signed 9ed commit tree, with frozen Linux Node 24.19.0/pnpm 12.11.1 dependencies:

  • Existing benchmark suite: 8/8 passed, 1 file, 0 skipped, in original order.
  • Exact B/C/S answers, token usage, wire body/no-Authorization, six-request connection reuse, first/warm/CPU measurement and broken-pool-close rejection remain asserted.
  • Canonical build-decision-transport-bench.mts bundle and two-request native smoke passed; socketsAfterPoolClose=0.
  • Targeted oxfmt, oxlint (0 warnings/errors), root-scripts tsgo leaf and normal signed precommit passed.
  • Independent complete consumer/lifecycle review and scoped autoreview found no actionable issue. The sibling scan found no other stale registered V1 consumer; intentional V1 SDK compatibility tests remain intact.

The complete payload passed before the wrapper reported a cleanup timeout (overall exit 1). Native completion was settled, and the exact owned lease subsequently reported completed with no host. No proof was replayed. The prior 15+1 integration result remains attributed to 2784; authenticated API proof remains attributed to unchanged 6ea provider bytes below. The published 9ed head then encountered actual test-fixture conflicts; the current integration below supersedes that head for landing.

Earlier Integration at 2784c24

Signed head 2784c24 integrates frozen main 7d48769 through the native baseline-successor workflow. The sole conflict was adjacent imports in src/agents/decision-inference.integration.test.ts; both imports and both test groups are preserved. The actual full tree matches the independently reviewed resolution. TypeSafe adapter, client/transport, manifest, live fixture and admission fixture bytes remain identical to 6ea835e; main's package release floors are retained.

Fresh proof on the exact successor, using the native verified source capsule and reconciled Linux Node 24.19.0/pnpm 12.11.1 dependencies:

  • Full composed generic inference suite: 15/15 passed, in original case order.
  • TypeSafe admission integration: 1/1 passed.
  • Targeted oxfmt/Bun parity, agents-root tsgo leaf and git diff --check passed.
  • Independent integration review and scoped P0-P2 autoreview found no actionable issue.

Remote proof run 39237263780 completed the test/typecheck payload successfully. The overall wrapper returned exit 1 because its subsequent cleanup timed out. The installed wrapper's exact cleanup-success branch and captured streams distinguish that failure from the payload; a separate native status reconciliation confirmed the owned lease completed with no host. No test was replayed.

The authenticated API result below remains attributed to 6ea835e, whose adapter and live fixture are unchanged. The successor requires its own hosted CI and exact-head ClawSweeper review; earlier green CI is not substituted.

Earlier Fixture Correction at 6ea835e

Signed candidate 6ea835ee97442de9122bdad7c438a3fc9e1ead6c integrates captured main cc271f85709b3bea38fffecfc1c53ebc9a404109 while preserving the original contributor ancestry. The admission fixture follows the current provider HTTP interception seam and retains its hermetic discovery, prepared runtime, revocation checks and cleanup.

Focused proof exposed a second fixture lifetime issue: the source-plugin SDK test released its prepared runtime between calls and rebuilt cold catalog state inside each 5-second deadline. Two unchanged same-order runs failed before HTTP. A bounded phase trace confirmed repeated preparation consumed the budget. The test now retains the exact prepared runtime across its assertions and disposes it before teardown; deadlines, both SDK results, rejection checks and request counts remain unchanged. This correction changes tests only (+31/-1 lines), with no production change.

  • Focused admission: 1/1 passed, including admitted work after opt-out and final-I/O model/config/secret/caller revocation.
  • Full generic inference suite: 11/11 passed in original order with the corrected fixture, including preparation and physical-provider deadline cases. The tested fixture blob matches this signed commit exactly.
  • Local transport: 21/21 passed, including real loopback connection reuse for IPv4, localhost and IPv6.
  • Formatting, diff checks, independent source/lifecycle review and fresh full-candidate P0–P2 review completed. The review's sole INDEX-only finding was resolved by staging the already-reviewed, tested lease fix; no additional code finding remained.
  • A focused Testbox allocation queued before execution and was stopped/reconciled. Scoped proof used a task-owned normal checkout with its own frozen dependency install. Exact-head CI run 39044661240 completed successfully, including openclaw/ci-gate. The fresh ClawSweeper review covers this exact head, reports zero findings and no before-merge action. Its native-hosted rank-up scenario is now completed by the exact-head live qualification below.

Historical feature proof includes 128 transport tests, registered-host integration, scoped types/lint, and a scoped package build. Prior CI run38991854961 at 4631018a had only the attributed native-maintenance ratchet and aggregate failure; its separate repair was #174962. This historical proof does not replace current-head CI.

Native Live Qualification

Live qualification at 6ea835ee97442de9122bdad7c438a3fc9e1ead6c: extensions/typesafe/src/decisions.live.test.ts passed (1 test, 1 file, 0 skipped). One mixed Boolean/Choice/Score text batch used the plugin-registered V2 adapter with jev-latest against https://api.typesafe.ai/v1/systemone. Assertions validate the V2 response, answer kinds, and numeric input/output-token usage.

The source stayed unchanged. The source-reader and native test children joined, and isolated test state was removed. Credentials remained in private process pipes and memory.

This qualifies the registered adapter and external API using isolated prepared config/auth. It does not claim semantic answer correctness, installed-package loading, host SecretRef resolution, or deployed Gateway behavior. The unchanged-head ClawSweeper native-hosted rank-up move is complete; no rating-only re-review was requested.

Separate follow-up: compare the vendor's required-instructions documentation with requests omitting instructions before changing that input contract.

Accounting parent: #157492. Shared auth repair: #156799. Contributor ancestry is preserved.

Current CI disposition

Exact-head CI 39296200457/1 completed with 35 successful and 26 skipped jobs. The only failed root is the baseline-ratchet job, plus its aggregate. CI is not green.

The failure is inherited from main: #177499 removed the ACPX backend mock without pruning its exact entry from config/test-mock-exports-baseline.txt. The actual CI merge 3f460b2fcf125a6bb0ca12284ea2848d8c52362f has ordered parents 459ef416e1161408d878d0b3b284693063f4b292 and 3e56cc26f889f02d28dc8f45285f8d2e5ac6a639; the affected fixture, ledger, scanner/parser/resolver, package/lock/workspace, tsconfig and workflow are byte-identical to that main parent. Independent source review confirms the deleted factory cannot satisfy the stale ledger entry. No pristine-main execution is claimed; the scheduled-main classifier is only job-name evidence.

All other ratchets, selected TypeSafe checks, and required security checks passed. Current-head ClawSweeper review has no findings, before-merge items or Rank-up moves. Landing uses the native inherited-only exception with the exact failed attempt retained; source remains unchanged.

Named follow-up: canonically prune the obsolete ACPX mock-export tuple on main containing #177499 and run its mock-export ratchet. This unrelated ledger repair is outside the TypeSafe feature diff.

roboclaw-bot and others added 11 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]>
Keep existing request/auth owners, first-class V1/V2 SDK contracts and actual provider USD precedence. Capture only legitimate effective-route prices; preserve missing usage and the established diagnostic scope.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>
Preserve v1/v2 chat projections and standalone pricing while adding explicit v3 publication and consumption. Carry the reviewed upstream v2 publisher/wire/pricing prerequisites without rebasing the published stack or changing state-store lifecycle. Preserve source-qualified zeros and qualified tariffs.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[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]>
Carry the budget approval from the existing data and execution layers without new surface growth or rewritten public history. Catalog, header/accounting and all other source bytes are unchanged.

Co-authored-by: steipete <[email protected]>
Declare the documented versioned hosted route, native token tariff and request limits in the existing manifest. Keep moving aliases and local checkpoints monetarily unknown, reject foreign price fallbacks, and report the actual loopback route through existing normalization before shared accounting.

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

clawsweeper Bot commented Sep 26, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling plugin: typesafe size: M labels Sep 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR connects TypeSafe to prepared Decision V2 execution and adds route-specific capability, limit, and billing metadata while preserving V1 SDK callers.

Example: Hosted typesafe/jev-1.13.0 reports 100 input tokens.

  • Before: The catalog supplies no native token-cost estimate.
  • After: Accounting can estimate $0.0000042 from the pinned hosted tariff, without applying that tariff to custom endpoints.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent integration with real-provider and final-effect boundary evidence; the prior benchmark regression is repaired.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Supplied qualification exercises the registered V2 adapter against the authenticated hosted API at unchanged 6ea835e provider bytes. Real-socket admission coverage records allowed requests and rejection before I/O after model, configuration, secret, and caller-authority revocation. Current-head evidence additionally covers the shared transport consumers and compiled benchmark cleanup; installed-package and deployed-Gateway behavior are explicitly outside those claims.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: TypeSafe needs prepared Decision execution with accurate route-specific capabilities and accounting.
Reason: The maintainer-authored direction extends an existing optional provider through established runtime contracts and preserves current consumer behavior.

Merge readiness

✅ Ready for maintainer review

The previous benchmark finding is resolved, and the shared transport fixture retains V2 execution and hostile-input rejection. No actionable introduced defect remains; this maintainer-authored PR still provides work absent from main.

Priority: P2
Reviewed head: 3e56cc26f889f02d28dc8f45285f8d2e5ac6a639

Before merge

None.

Findings

None.

Agent review details

How this fits together

The TypeSafe plugin translates provider-neutral Decision batches and prepared model credentials into guarded System One HTTP requests, then returns validated answers and token usage.

flowchart LR
  A[Decision SDK caller] --> B[Prepared model runtime]
  B --> C[TypeSafe V2 adapter]
  C --> D[Existing TypeSafe client]
  D --> E[Guarded HTTP transport]
  E --> F[Hosted Jev or configured server]
  F --> G[Validated answers and usage]
Loading

Technical review

Best possible solution:

Use the existing prepared runtime and TypeSafe transport as this PR does, retaining V1 SDK compatibility and route-bound accounting.

Do we have a high-confidence way to reproduce the issue?

This is a feature integration; source inspection confirms main still registers V1, and supplied qualification exercises the proposed V2 adapter without executing target code during review.

Is this the best way to solve the issue?

The implementation reuses existing prepared credentials, compatibility codecs, transport, and fixture owners; the simplification review found no unnecessary competing production path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c2fa320046af.

Provenance checked

  • TypeSafe registration and vendor translation keeps the original intent (fbb6624: Keep vendor translation, validation, credentials, and transport plugin-owned.)
  • Loopback route and hosted-credential separation keeps the original intent (5acfb83: Support local System One servers without forwarding hosted credentials.)
  • Lazy evaluation and per-call configuration changes intended behavior with a stated reason (4f1a901: Defer evaluator initialization while preserving cancellation and deadlines; the V2 adapter deliberately binds prepared facts and rejects a changed configuration instead of switching routes mid-call.)
  • Shared provider request policy and final-I/O authority keeps the original intent (3f98224: Reuse shared HTTP policy and recheck route and credential authority immediately before dispatch.)
  • Registered transport benchmark keeps the original intent (54f9d03: Measure matched registered-provider workloads while verifying answers, connection reuse, and client-owned cleanup.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 4f1a901 adds extensions/typesafe/src/decisions.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4f1a9013299a; files: extensions/typesafe/src/decisions.ts)
  • Josh Lehman: Raw commit fbb6624 adds extensions/typesafe/src/decisions.ts:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fbb6624c0d6a; files: extensions/typesafe/src/decisions.ts)
  • Peter Steinberger: Raw commit 5acfb83 adds extensions/typesafe/src/decisions.ts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5acfb83d9fe8; files: extensions/typesafe/src/decisions.ts)

PR surface

Source +339, Tests +785, Docs +58, Other +32. Total +1214 across 16 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 3 387 48 +339
Tests 9 992 207 +785
Docs 3 65 7 +58
Config 0 0 0 0
Generated 0 0 0 0
Other 1 53 21 +32
Total 16 1497 283 +1214

Review metrics

Metric Value Why it matters
Production versus tests Production/tooling +440/-69; tests/helpers +992/-207 Production includes declarative manifest metadata; test growth covers route facts, SDK composition, final-I/O revocation, and catalog publication.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: Registration moves from V1 to V2 and requires a supporting paired host/plugin release; the maintainer direction explicitly accepts that boundary while preserving V1 SDK consumers.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦪 silver shellfish.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is an optional provider integration improvement with no demonstrated urgent user regression.
  • merge-risk: 🚨 compatibility: Registration moves from V1 to V2 and requires a supporting paired host/plugin release; the maintainer direction explicitly accepts that boundary while preserving V1 SDK consumers.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦪 silver shellfish.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-26T02:10:52.205Z sha 2acf176 :: needs changes before merge. :: none
  • reviewed 2026-10-09T20:38:16.951Z sha 2acf176 :: needs changes before merge. :: [P2] Clear hosted token limits when preparing a loopback route
  • reviewed 2026-10-17T15:28:10.180Z sha 6ea835e :: needs maintainer review before merge. :: none
  • reviewed 2026-10-19T10:45:57.193Z sha 2784c24 :: needs changes before merge. :: [P2] [P2] Migrate the transport benchmark when registering V2

Reviewed October 19, 2026, 1:48 PM ET / 17:48 UTC (Revision 5).

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 9, 2026
@vincentkoc vincentkoc self-assigned this Oct 16, 2026
vincentkoc and others added 5 commits October 16, 2026 16:40
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]>
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 19, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Please review exact head 3e56cc2. The registered V2 benchmark correction is preserved; the actual main conflict is resolved through the shared transport fixture owner. Fresh proof:134 shared-helper transport cases +8 benchmark cases, compiled two-request smoke with zero sockets after drain, format/lint/scoped types. Prior authenticated native mixed-batch proof remains at unchanged6ea provider bytes, with provenance and limits in the updated PR body.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 19, 2026
@vincentkoc
vincentkoc merged commit 8f27856 into main Oct 20, 2026
139 of 142 checks passed
@vincentkoc
vincentkoc deleted the openclaw/typesafe-hosted-facts-f8fa117b branch October 20, 2026 04:58
@vincentkoc

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 20, 2026
Keep provider option tags and PCM byte accounting local after #178002 and #178011 removed their external consumers. Keep the V1 TypeSafe evaluator local after #158565 moved registration to V2; exercise its retained cancellation and sanitized-error contract through the existing V2 fixture adapter.
steipete added a commit that referenced this pull request Oct 20, 2026
TypeSafe's prepared Decision V2 catalog (#158565) deliberately declares
inference.chat=false and route-specific metadata. Preserve normalization
and exact row counts for every bundled model, then validate conversational
provider configs only for chat-capable rows, including mixed catalogs.

The bundled catalog test now passes; malformed decision metadata and an
incomplete chat row in a mixed catalog still fail their respective guards.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 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]>

* fix(decisions): preserve native headers and route-aware accounting

Keep existing request/auth owners, first-class V1/V2 SDK contracts and actual provider USD precedence. Capture only legitimate effective-route prices; preserve missing usage and the established diagnostic scope.

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

* feat(catalog): publish typed decisions on a versioned feed

Preserve v1/v2 chat projections and standalone pricing while adding explicit v3 publication and consumption. Carry the reviewed upstream v2 publisher/wire/pricing prerequisites without rebasing the published stack or changing state-store lifecycle. Preserve source-qualified zeros and qualified tariffs.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[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(typesafe): estimate pinned hosted Jev token costs

Declare the documented versioned hosted route, native token tariff and request limits in the existing manifest. Keep moving aliases and local checkpoints monetarily unknown, reject foreign price fallbacks, and report the actual loopback route through existing normalization before shared accounting.

Co-authored-by: vincentkoc <[email protected]>
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

* test(decisions): align accounting fixtures with captured rates

Declare free output in estimable native fixtures, keep decimal precision assertions numeric, and mark the injected catalog fetch for the existing hermetic transport guard. Keep the publisher validator bound to its validated bundle type.

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

* test(model-catalog): verify retained caches with released readers

* test(decisions): handle optional normalized catalog providers

* chore(decisions): satisfy scoped runtime lint

* fix(model-catalog): keep manifest auth ownership out of published feeds

* fix(typesafe): keep decision facts within native contracts

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

* fix(typesafe): declare automatic reasoning capability

* 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

* fix(decisions): align accounting ratchet evidence

* docs(typesafe): clarify prepared V2 release compatibility

* test(typesafe): add opt-in native decision validation

* test(typesafe): retain prepared runtime in admission fixture

* test(typesafe): retain prepared runtime across SDK assertions

* fix(typesafe): migrate transport benchmark to Decision V2

* test(typesafe): preserve V2 fixtures through shared transport helpers

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Keep provider option tags and PCM byte accounting local after openclaw#178002 and openclaw#178011 removed their external consumers. Keep the V1 TypeSafe evaluator local after openclaw#158565 moved registration to V2; exercise its retained cancellation and sanitized-error contract through the existing V2 fixture adapter.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
TypeSafe's prepared Decision V2 catalog (openclaw#158565) deliberately declares
inference.chat=false and route-specific metadata. Preserve normalization
and exact row counts for every bundled model, then validate conversational
provider configs only for chat-capable rows, including mixed catalogs.

The bundled catalog test now passes; malformed decision metadata and an
incomplete chat row in a mixed catalog still fail their respective guards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. plugin: typesafe proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants