Skip to content

feat: extend Ultra harness mode across supported runtimes - #155393

Merged
vincentkoc merged 7 commits into
mainfrom
feat/universal-ultra-runtime-20260922
Sep 23, 2026
Merged

vincentkoc merged 7 commits into
mainfrom
feat/universal-ultra-runtime-20260922

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Closes #155391

What Problem This Solves

Ultra was coupled to a model's maximum provider reasoning effort, preventing consistent planning, verification, and delegation behavior across runtimes. Configured model routes could also inherit stale native-effort capabilities from a different catalog route.

Resulting Behavior

  • OpenClaw and Claude Code can use Ultra as a turn-scoped harness mode. Provider-facing effort is lowered through the effective configured model's capability profile; nonreasoning models remain nonreasoning and models without effort controls omit the field.
  • Native Codex retains its own Ultra behavior when supported by its native effort controls. Existing defaults, explicit effort settings, cached Responses configuration updates, and tool permissions remain intact.
  • CLI and cloud-worker preparation share the configured catalog capability owner, including omitted, merge, and replace configuration modes. A changed configured transport clears stale route-bound capabilities without changing the existing catalog naming rules.
  • The current Gateway worker lifecycle, cancellation checks, run/phase ownership, and post-prepare context fence are retained. Ultra guidance never grants unavailable delegation tools. The maximum alias resolves to max.

Verification

Candidate: db49d43ddca55a2cf4f4e2dd49912b09077fdb88, integrated tree 951475301c46367d72ac3da25dd211c28f4f6370, based on main 8f531df7080d113ac5f1c6a6926736d405fd6094.

  • Retained owner/profile, embedded runner, CLI execution, isolated completion, cloud launch, native Codex, session/directive, compaction, and serialized session-row proof remains applicable to unchanged feature inputs.
  • The missing-route capability regressions failed before the owner repair. Final catalog/configured-selection proof passed all 60 tests, with formatting, line-cap, core and agents test types, and scoped lint passing.
  • The actual integrated conflict delta passed the complete worker lifecycle/Ultra suite (21 tests) and focused chat startup/history regressions (17 tests; 122 outside that selector), formatting, line-cap, core and Gateway test type graphs, and scoped lint with zero warnings or errors. Exact command results are recorded against the frozen integrated tree.
  • Fresh isolated review of the configured-capability repair and independent review of the integrated source found no blocking issues. The independent binding checked all 73 feature files, the three conflict resolutions, and four critical production automatic merges.
  • Exact-head hosted CI passed for this signed candidate. Completed ClawSweeper review covers the same head with no findings. Native landing separately enforces the current aggregate CI/security gate and required reviews; pending checks are not claimed green.

These are deterministic boundary tests, not authenticated provider inference. No new provider API field, configuration option, or dependency is introduced by this feature. Delta against the integrated main: production +269/-94; tests and test support +1183/-580; documentation +6/-5. Production growth provides the shared harness guidance and profile-owned runtime effort lowering.

@vincentkoc vincentkoc self-assigned this Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 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 gateway Gateway runtime agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Sep 22, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 22, 2026 03:22
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. 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. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 3:47 AM ET / 07:47 UTC (Revision 7).

ClawSweeper review

What this changes

Extends Ultra planning and verification guidance across supported runtimes while translating provider reasoning effort through each configured model’s capabilities.

Merge readiness

✅ Ready for maintainer review

The PR remains useful, and the previous configured-capability finding is resolved. No blocking correctness or security defect was identified; current main still lacks the broader Ultra behavior.

Priority: P2
Reviewed head: db49d43ddca55a2cf4f4e2dd49912b09077fdb88

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with focused boundary coverage, verified hosted CI, and no remaining actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Supplied evidence covers configured catalogs, CLI preparation, embedded execution, worker launch, and session projections through deterministic tests; it does not claim authenticated inference. No material authority or stored-data contract changes require additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Supplied evidence covers configured catalogs, CLI preparation, embedded execution, worker launch, and session projections through deterministic tests; it does not claim authenticated inference. No material authority or stored-data contract changes require additional proof.
Evidence reviewed 11 items Pinned introduction boundary: Reviewed the introduced delta from 8f531df to db49d43. The supplied test merge is stale, so it was not used to claim removal of current-main behavior.
Current main still has the restriction: Fetched main synthesizes host Ultra only when native Max is supported; provider profiles can return before that synthesis. The requested general host mode remains distinct work.
Latest-release comparison: The v2026.9.5 source also contains the supportsMax restriction; the broader host behavior is not established as shipped.
Findings None None.
Security None None.

How this fits together

OpenClaw’s thinking controls turn chat and session preferences into agent runtime settings. This change separates Ultra’s execution guidance from provider effort settings before requests reach embedded agents, CLI backends, or cloud workers.

flowchart TD
  A[Chat or session thinking choice] --> B[Runtime and configured model profile]
  B --> C{Ultra selected}
  C -->|Host runtime| D[Turn guidance and supported provider effort]
  C -->|Native Codex| E[Native Ultra policy]
  D --> F[Embedded agent, CLI, or worker]
  E --> G[Provider request and agent response]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +175, Tests +603, Docs +1. Total +779 across 73 files.

View PR surface stats
Area Files Added Removed Net
Source 20 269 94 +175
Tests 52 1183 580 +603
Docs 1 6 5 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 73 1458 679 +779

Review metrics

Metric Value Why it matters
Production versus test growth Production +269/-94; tests and support +1183/-580 The stated production growth provides shared turn guidance and capability-owned effort lowering, with broader runtime and existing-session coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #155391
Summary: This PR is the implementation candidate for the explicitly linked feature request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep Ultra as an explicit runtime mode, with provider-owned effort lowering and unchanged tool authorization.

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

Not applicable as a feature request; current-main source confirms the existing Ultra restriction. Runtime behavior was not executed during this review.

Is this the best way to solve the issue?

Yes. Separating harness guidance from provider effort reuses the existing capability owner and native Codex policy without adding provider fields or configuration knobs.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded, explicitly selected runtime capability improvement without evidence of an urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Supplied evidence covers configured catalogs, CLI preparation, embedded execution, worker launch, and session projections through deterministic tests; it does not claim authenticated inference. No material authority or stored-data contract changes require additional proof.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Shared thinking controls change the Ultra choices and acknowledgments visible through Telegram’s /think flow.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the introduced delta from 8f531df to db49d43. The supplied test merge is stale, so it was not used to claim removal of current-main behavior. (db49d43ddca5)
  • Current main still has the restriction: Fetched main synthesizes host Ultra only when native Max is supported; provider profiles can return before that synthesis. The requested general host mode remains distinct work. (src/auto-reply/thinking.ts:255, 4875b96d5b8d)
  • Latest-release comparison: The v2026.9.5 source also contains the supportsMax restriction; the broader host behavior is not established as shipped. (src/auto-reply/thinking.ts:255, ec9c1a13db89)
  • Previous finding addressed: CLI preparation and cloud execution now use overlayConfiguredModelCatalog. Focused regressions cover omitted, merge, and replace modes, nonreasoning overrides, effort opt-outs, and previously missing transport fields. These directly address the earlier configured-override finding. (src/agents/model-catalog.ts:205, db49d43ddca5)
  • Effort and default preservation: Non-Ultra values pass through unchanged. Ultra selects the highest provider-profile rank after capability filtering; fallback selection excludes Ultra. Gateway tests cover existing stored levels and empty native profiles without introducing a storage format or migration. (src/auto-reply/thinking.ts:343, db49d43ddca5)
  • Codex dependency signal: The changed nativeUltra branch and PR claim expressly depend on native Codex accepting Ultra and selecting supported inference effort. The existing Codex adapter preserves Ultra rather than lowering it in OpenClaw. (src/auto-reply/thinking.ts:333, db49d43ddca5)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-22T03:32:03.057Z sha 99e49a6 :: blocked before merge. :: [P1] Apply configured overrides when lowering Ultra in merge mode
  • reviewed 2026-09-22T08:52:52.561Z sha 466d57135d2431e4c2ed75f9a94104069318cd7a :: blocked before merge. :: [P1] Apply configured overrides when lowering Ultra in merge mode
  • reviewed 2026-09-22T09:53:16.757Z sha 83aa82b :: blocked before merge. :: [P1] [P1] Apply configured overrides when lowering Ultra in merge mode
  • reviewed 2026-09-22T12:34:18.579Z sha f216216 :: blocked before merge. :: [P1] [P1] Apply configured overrides when lowering Ultra in merge mode
  • reviewed 2026-09-23T06:26:25.967Z sha db49d43 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T07:16:05.753Z sha db49d43 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: slack Channel integration: slack size: XL and removed size: L labels Sep 22, 2026
@vincentkoc
vincentkoc force-pushed the feat/universal-ultra-runtime-20260922 branch from 466d571 to a19b600 Compare September 22, 2026 09:32
Keep the full Gateway assertions while isolating observed native efforts from known model capability floors. Use an unsupported native effort in the compaction clamp fixture now that Ultra is a supported harness mode.
Compose configured model overrides with captured catalog rows for CLI and cloud execution in omitted, merge, and replace modes. Keep route-bound capabilities with their transport owner, including when applying a previously unspecified route.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Sep 23, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 23, 2026
@vincentkoc
vincentkoc merged commit 7f61c6c into main Sep 23, 2026
218 checks passed
@vincentkoc
vincentkoc deleted the feat/universal-ultra-runtime-20260922 branch September 23, 2026 07:56
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 23, 2026
…d-reasoning tests green (#156565)

Operator authority currency no longer folds the caller's own abort signal into
assertCurrent, so a caller-aborted direct completion settles through the
provider result again instead of rejecting after the stream ended (regressed
in #156346). The isolated reasoning validation fixture uses max, which stays
unsupported for the host-resolved model now that Ultra is a harness mode on
every runtime (#155393).

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…55393)

* feat: extend Ultra harness mode across supported runtimes

* fix: preserve Ultra across model capability boundaries

* test: align remaining session fixtures with Ultra harness mode

* test: bind Ultra session fixture to prepared provider policy

* test: align Ultra capability fixtures

Keep the full Gateway assertions while isolating observed native efforts from known model capability floors. Use an unsupported native effort in the compaction clamp fixture now that Ultra is a supported harness mode.

* fix: honor configured Ultra capabilities across runtimes

Compose configured model overrides with captured catalog rows for CLI and cloud execution in omitted, merge, and replace modes. Keep route-bound capabilities with their transport owner, including when applying a previously unspecified route.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…d-reasoning tests green (openclaw#156565)

Operator authority currency no longer folds the caller's own abort signal into
assertCurrent, so a caller-aborted direct completion settles through the
provider result again instead of rejecting after the stream ended (regressed
in openclaw#156346). The isolated reasoning validation fixture uses max, which stays
unsupported for the host-resolved model now that Ultra is a harness mode on
every runtime (openclaw#155393).

Co-authored-by: Peter Steinberger <[email protected]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Sep 30, 2026
… lists

- run.continuation-integration.test.ts: 54/54. It was 13/54 at L4 and 14/54
  here, and was never in the designation sweep; Mode-B run 36744770200
  found it.
  - Routed to the database-worker lane: the lifecycle-admission case now
    reaches shared state.
  - Overflow-recovery cases build attempt results through the harness
    fixture, which now uses a per-case session id; they had hard-coded
    "test-session".
  - Model routing follows upstream 7f61c6c (openclaw#155393): Ultra is a
    harness mode and lowers to the model's highest native effort.
    - "keeps Ultra logical" now runs on a model that supports max; both
      original assertions are kept.
    - "revalidates Ultra after a model hook" now expects the attempt to keep
      ultra. The old xhigh check moved to the runtime-plan call. Flagged for
      review.
  - Failover status assertion matches upstream's
    resolveFailoverStatus(reason, code) signature.
- Doctor: upstream's blocked-receipts and update-dry-run-state tests expect a
  43-entry step list.
  - Our TaskFlow custody-import step exists only when legacy rows exist, so it
    no longer sits in the unresolved blocked layout. When detection is
    blocked, the rows stay and the next Doctor or startup run imports them.
  - Our wiring moved to state-migrations.continuation-custody.ts; the step
    runs without file detection, so startup import is kept.
  - state-migrations.doctor.ts is 5 counted lines over its grandfathered size;
    the L6 line-cap lane handles that.

No assertion, timeout or test case was weakened or removed.

Refs #1408

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Fq5EX9ESA3CG9cuZxVoKAK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord channel: slack Channel integration: slack docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Make Ultra harness guidance independent of native reasoning effort

1 participant