Skip to content

Integration feb 2026 - #5

Closed
zeroaltitude wants to merge 518 commits into
mainfrom
integration-feb-2026
Closed

zeroaltitude wants to merge 518 commits into
mainfrom
integration-feb-2026

Conversation

@zeroaltitude

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

2 similar comments
@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

steipete and others added 26 commits February 26, 2026 15:42
…aw#27622)

* Update onboard-auth.config-minimax.ts

fix issue openclaw#27600

* fix(minimax): default authHeader for implicit + onboarding providers (openclaw#27600)

Landed from contributor PR openclaw#27622 by @riccoyuanft and PR openclaw#27631 by @kevinWangSheng.
Includes a small TS nullability guard in lane delivery to keep build green on rebased head.

Co-authored-by: riccoyuanft <[email protected]>
Co-authored-by: Kevin Shenghui <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Kevin Shenghui <[email protected]>
Co-authored-by: jaden-clovervnd <[email protected]>
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marcus Widing <[email protected]>
obviyus and others added 17 commits February 28, 2026 09:27
…ession (openclaw#10407)

* fix(feishu): remove incorrect oc_ prefix assumption in resolveFeishuSession

- Feishu oc_ is a generic chat_id that can represent both groups and DMs
- Must use chat_mode field from API to distinguish, not ID prefix
- Only ou_/on_ prefixes reliably indicate user IDs (always DM)
- Fixes session misrouting for DMs with oc_ chat IDs

This bug caused DM messages with oc_ chat_ids to be incorrectly
created as group sessions, breaking session isolation and routing.

* docs: update Feishu ID format comment to reflect oc_ ambiguity

The previous comment incorrectly stated oc_ is always a group chat.
This update clarifies that oc_ chat_ids can be either groups or DMs,
and explicit prefixes (dm:/group:) should be used to distinguish.

* feishu: add regression coverage for oc session routing

---------

Co-authored-by: Tak Hoffman <[email protected]>
Enrich every browser action response with the resolved page URL so
downstream consumers (security plugins, audit loggers) know which page
was targeted without a separate tabs query.

- Add shared withRouteTabContext URL enrichment wrapper (agent.shared.ts)
- Resolve live URL via Playwright, fall back to tab list URL
- Include url field in browser-tool console message results
- Push URL changes from Chrome extension background script

Co-authored-by: Eddie Abrams <[email protected]>
… start thread

When requireMention is enabled, thread replies were only routed to the
bot if it authored the parent message. This missed the common case where
a user @mentions the bot in a channel, the bot replies in-thread, and
subsequent thread replies should route without repeated @mentions.

Now checks for bot participation via:
1. Existing thread session (cheap file read)
2. Slack conversations.replies API (lightweight fallback)

Both checks are gated behind wouldRequireMention to avoid unnecessary
API calls in channels that don't require mentions.

Includes 3 test cases covering session-based, API-based, and negative
(no participation) scenarios.

Co-authored-by: Eddie Abrams <[email protected]>
When a channel config has top-level tokens (botToken/appToken/token)
AND named accounts in the accounts section, listAccountIds() omitted
the default account. This meant only named accounts started, leaving
the base-config bot disconnected.

Now detects base-level tokens and includes 'default' alongside named
accounts so both providers start.

Includes 3 test cases: base tokens present, default already in accounts
(no duplicate), and no base tokens (unchanged behavior).

Co-authored-by: Eddie Abrams <[email protected]>
Add 6 new plugin hooks giving plugins fine-grained visibility and
control over the agent loop:

Observability hooks (before/after LLM call + context assembly):
- before_llm_call: inspect/modify context, filter tools, or block
- after_llm_call: inspect response, filter tool calls, or block
- context_assembled: observe full assembled context (fire-and-forget)

Lifecycle + output gating hooks:
- loop_iteration_start/end: track agent loop iterations
- before_response_emit: modify or block final response delivery

Also includes:
- Sender identity context (senderId, senderName, senderIsOwner,
  groupId, spawnedBy, sourceProvider) on PluginHookAgentContext
- sessionKey on message_sending hook context
- Registration-order (FIFO) hook execution replacing priority numbers
- clearInternalHooks moved before plugin registration to ensure
  plugin hooks run before bundled hooks for the same event
- Session-memory handler extensions (blockSessionSave,
  sessionSaveRedirectPath, sessionSaveContent)

Co-authored-by: Eddie Abrams <[email protected]>
Validate and normalize Discord delivery targets at resolution time
instead of failing silently at send. Adds:
- parseDiscordTarget validation for ambiguous bare numeric IDs
- Session-based fallback for implicit/heartbeat delivery modes
- Clear error messages for ambiguous recipients

Co-authored-by: Eddie Abrams <[email protected]>
zeroaltitude pushed a commit that referenced this pull request Apr 2, 2026
* feat: add QQ Bot channel extension

* fix(qqbot): add setupWizard to runtime plugin for onboard re-entry

* fix: fix review

* fix: fix review

* chore: sync lockfile and config-docs baseline for qqbot extension

* refactor: 移除图床服务器相关代码

* fix

* docs: 新增 QQ Bot 插件文档并修正链接路径

* refactor: remove credential backup functionality and update setup logic

- Deleted the credential backup module to streamline the codebase.
- Updated the setup surface to handle client secrets more robustly, allowing for configured secret inputs.
- Simplified slash commands by removing unused hot upgrade compatibility checks and related functions.
- Adjusted types to use SecretInput for client secrets in QQBot configuration.
- Modified bundled plugin metadata to allow additional properties in the config schema.

* feat: 添加本地媒体路径解析功能,修正 QQBot 媒体路径处理

* feat: 添加本地媒体路径解析功能,修正 QQBot 媒体路径处理

* feat: remove qqbot-media and qqbot-remind skills, add tests for config and setup

- Deleted the qqbot-media and qqbot-remind skills documentation files.
- Added unit tests for qqbot configuration and setup processes, ensuring proper handling of SecretRef-backed credentials and account configurations.
- Implemented tests for local media path remapping, verifying correct resolution of media file paths.
- Removed obsolete channel and remind tools, streamlining the codebase.

* feat: 更新 QQBot 配置模式,添加音频格式和账户定义

* feat: 添加 QQBot 频道管理和定时提醒技能,更新媒体路径解析功能

* fix

* feat: 添加 /bot-upgrade 指令以查看 QQBot 插件升级指引

* feat: update reminder and qq channel skills

* feat: 更新remind工具投递目标地址格式

* feat: Refactor QQBot payload handling and improve code documentation

- Simplified and clarified the structure of payload interfaces for Cron reminders and media messages.
- Enhanced the parsing function to provide clearer error messages and improved validation.
- Updated platform utility functions for better cross-platform compatibility and clearer documentation.
- Improved text parsing utilities for better readability and consistency in emoji representation.
- Optimized upload cache management with clearer comments and reduced redundancy.
- Integrated QQBot plugin into the bundled channel plugins and updated metadata for installation.

* OK apps/macos/Sources/OpenClaw/HostEnvSecurityPolicy.generated.swift

> [email protected] check:bundled-channel-config-metadata /Users/yuehuali/code/PR/openclaw
> node --import tsx scripts/generate-bundled-channel-config-metadata.ts --check

[bundled-channel-config-metadata] stale generated output at src/config/bundled-channel-config-metadata.generated.ts
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

* feat: 添加 QQBot 渠道配置及相关账户设置

* fix(qqbot): resolve 14 high-priority bugs from PR openclaw#52986 review

DM routing (7 fixes):
- #1: DM slash-command replies use sendDmMessage(guildId) instead of sendC2CMessage(senderId)
- #2: DM qualifiedTarget uses qqbot:dm:${guildId} instead of qqbot:c2c:${senderId}
- #3: sendTextChunks adds DM branch
- #4: sendMarkdownReply adds DM branch for text and Base64 images
- #5: parseAndSendMediaTags maps DM to targetType:dm + guildId
- #6: sendTextToTarget DM branch uses sendDmMessage; MessageTarget adds guildId field
- #7: handleImage/Audio/Video/FilePayload add DM branches

Other high-priority fixes:
- #8: Fix sendC2CVoiceMessage/sendGroupVoiceMessage parameter misalignment
- #9: broadcastMessage uses groupOpenid instead of member_openid for group users
- #10: Unify KnownUser storage - proactive.ts delegates to known-users.ts
- #11: Remove invalid recordKnownUser calls for guild/DM users
- #12: sendGroupMessage uses sendAndNotify to trigger onMessageSent hook
- #13: sendPhoto channel unsupported returns error field
- #14: sendTextAfterMedia adds channel and dm branches

Type fixes:
- DeliverEventContext adds guildId field
- MediaTargetContext.targetType adds dm variant
- sendPlainTextReply imgMediaTarget adds DM branch

* fix(qqbot): resolve 2 blockers + 7 medium-priority bugs from PR openclaw#52986 review

Blocker-1: Remove unused dmPolicy config knob
- dmPolicy was declared in schema/types/plugin.json but never consumed at runtime
- Removed from config-schema.ts, types.ts, and openclaw.plugin.json
- allowFrom remains active (already wired into framework command-auth)

Blocker-2: Gate sensitive slash commands with allowFrom authorization
- SlashCommand interface adds requireAuth?: boolean
- SlashCommandContext adds commandAuthorized: boolean
- /bot-logs set to requireAuth: true (reads local log files)
- matchSlashCommand rejects unauthorized senders for requireAuth commands
- trySlashCommandOrEnqueue computes commandAuthorized from allowFrom config

Medium-priority fixes:
- #15: Strip non-HTTP/non-local markdown image tags to prevent path leakage
- #16: applyQQBotAccountConfig clears clientSecret when setting clientSecretFile and vice versa
- #17: getAdminMarkerFile sanitizes accountId to prevent path traversal
- #18: URGENT_COMMANDS uses exact match instead of startsWith prefix match
- #19: isCronExpression validates each token starts with a cron-valid character
- #20: --token format validation rejects malformed input without colon separator
- #21: resolveDefaultQQBotAccountId checks QQBOT_APP_ID environment variable

* test(qqbot): add focused tests for slash command authorization path

- Unauthorized sender rejected for /bot-logs (requireAuth: true)
- Authorized sender allowed for /bot-logs
- Non-requireAuth commands (/bot-ping, /bot-help, /bot-version) work for all senders
- Unknown slash commands return null (passthrough)
- Non-slash messages return null
- Usage query (/bot-logs ?) also gated by auth check

* fix(qqbot): align global TTS fallback with framework config resolution

- Extract isGlobalTTSAvailable to utils/audio-convert.ts, mirroring core
  resolveTtsConfig logic: check auto !== 'off', fall back to legacy
  enabled boolean, default to off when neither is set.
- Add pre-check in reply-dispatcher before calling globalTextToSpeech to
  avoid unnecessary TTS calls and noisy error logs when TTS is not
  configured.
- Remove inline as any casts; use OpenClawConfig type throughout.
- Refactor handleAudioPayload into flat early-return structure with
  unified send path (plugin TTS → global fallback → send).

* fix(qqbot): break ESM circular dependency causing multi-account startup crash

The bundled gateway chunk had a circular static import on the channel
chunk (gateway -> outbound-deliver -> channel, while channel dynamically
imports gateway). When two accounts start concurrently via Promise.all,
the first dynamic import triggers module graph evaluation; the circular
reference causes api exports (including runDiagnostics) to resolve as
undefined before the module finishes evaluating.

Fix: extract chunkText and TEXT_CHUNK_LIMIT from channel.ts into a new
text-utils.ts leaf module. outbound-deliver.ts now imports from
text-utils.ts, breaking the cycle. channel.ts re-exports for backward
compatibility.

* fix(qqbot): serialize gateway module import to prevent multi-account startup race

When multiple accounts start concurrently via Promise.all, each calls
await import('./gateway.js') independently. Due to ESM circular
dependencies in the bundled output, the first import can resolve
transitive exports as undefined before module evaluation completes.

Fix: cache the dynamic import promise in a module-level variable so all
concurrent startAccount calls share the same import, ensuring the
gateway module is fully evaluated before any account uses it.

* refactor(qqbot): remove startup greeting logic

Remove getStartupGreetingPlan and related startup greeting delivery:
- Delete startup-greeting.ts (greeting plan, marker persistence)
- Delete admin-resolver.ts (admin resolution, greeting dispatch)
- Remove startup greeting calls from gateway READY/RESUMED handlers
- Remove isFirstReadyGlobal flag and adminCtx

* fix(qqbot): skip octal escape decoding for Windows local paths

Windows paths like C:\Users\1\file.txt contain backslash-digit sequences
that were incorrectly matched as octal escape sequences and decoded,
corrupting the file path. Detect Windows local paths (drive letter or UNC
prefix) and skip the octal decoding step for them.

* fix bot issue

* feat: 支持 TTS 自动开关并清理配置中的 clientSecretFile

* docs: 添加 QQBot 配置和消息处理的设计说明

* rebase

* fix(qqbot): align slash-command auth with shared command-auth model

Route requireAuth:true slash commands (e.g. /bot-logs) through the
framework's api.registerCommand() so resolveCommandAuthorization()
applies commands.allowFrom.qqbot precedence and qqbot: prefix
normalization before any handler runs.

- slash-commands.ts: registerCommand() now auto-routes by requireAuth
  into two maps (commands / frameworkCommands); getFrameworkCommands()
  exports the auth-required set for framework registration; bot-help
  lists both maps
- index.ts: registerFull() iterates getFrameworkCommands() and calls
  api.registerCommand() for each; handler derives msgType from ctx.from,
  sends file attachments via sendDocument, supports multi-account via
  ctx.accountId
- gateway.ts (inbound): replace raw allowFrom string comparison with
  qqbotPlugin.config.formatAllowFrom() to strip qqbot: prefix and
  uppercase before matching event.senderId
- gateway.ts (pre-dispatch): remove stale auth computation; commandAuthorized
  is true (requireAuth:true commands never reach matchSlashCommand)
- command-auth.test.ts: add regression tests for qqbot: prefix
  normalization in the inbound commandAuthorized computation
- slash-commands.test.ts: update /bot-logs tests to expect null
  (command routed to framework, not in local registry)

* rebase and solve conflict

* fix(qqbot): preserve mixed env setup credentials

---------

Co-authored-by: yuehuali <[email protected]>
Co-authored-by: walli <[email protected]>
Co-authored-by: WideLee <[email protected]>
Co-authored-by: Frank Yang <[email protected]>
zeroaltitude added a commit that referenced this pull request Apr 28, 2026
Five issues raised by Aisle / Codex / Greptile review on PR openclaw#72869,
addressed inline rather than deferred:

1. CWE-59 symlink-following chmod (Aisle high #1)
   ensureModelsFileModeForModelsJson called fs.chmod on a path that
   may be replaced by a symlink. If an attacker can write to the agent
   dir (or OPENCLAW_AGENT_DIR points there), the chmod followed the
   link and changed perms on an arbitrary owned file. Now lstat first
   and refuse to chmod symlinks or non-regular files.

2. Prototype pollution via JSON keys (Aisle medium #3 / CWE-1321)
   stripAuthProfilesVolatileFields() copied untrusted keys into a
   plain {} object. Special keys '__proto__', 'constructor',
   'prototype' could mutate the result's prototype chain. Now uses
   Object.create(null) for the result and explicitly filters those
   three keys (belt-and-suspenders).

3. DoS via unbounded auth-profiles fingerprinting (Aisle medium #4)
   readAuthProfilesStableHash had no size or depth limits.
   - Added MAX_AUTH_PROFILES_BYTES = 8 MiB. Above the cap we hash raw
     bytes instead of running JSON.parse + recursive transform +
     stable-stringify.
   - Added MAX_AUTH_PROFILES_DEPTH = 64 with a depth-cap marker so
     the recursive walk can't stack-overflow on pathologically nested
     input.

4. 'token' incorrectly stripped from fingerprint (Codex P2 / Greptile P2)
   AUTH_PROFILE_VOLATILE_FIELDS included 'token' to keep OAuth session
   token rotation from invalidating the cache. But profiles with
   type: 'token' use the literal 'token' key as a long-lived static
   credential — stripping it would mask real auth-state changes when
   a user rotates a static API token. Removed 'token' from the
   volatile set and documented the boundary inline. OAuth session
   fields ('access', 'refresh') and timing fields stay stripped.

Skipped from this commit (will reply on threads):
- Cache short-circuit on stale on-disk credentials (Codex/Greptile P1):
  separate concern from the security fixes; needs design discussion
  on whether to validate disk-vs-config or remove the short-circuit.
- models.json drift in cache key (Codex P1): same — touches the
  fingerprint shape and overlaps with the targetProvider short-circuit.
- targetProvider short-circuit untested (Greptile P2): test follow-up
  once the short-circuit semantics are settled.
- Aisle medium #5 (raw secrets in fingerprint cache): structurally
  larger refactor; needs to land separately to keep this commit\'s
  blast radius clear.

Lint: 0 errors. TS: clean.
zeroaltitude added a commit that referenced this pull request Apr 28, 2026
…ests

Three review-driven fixes per @zeroaltitude direction (b)+(c) + secret
hygiene + tests:

(b) Validate disk-vs-config before short-circuiting
    [Aisle High #2 / Codex P1 / Greptile P1 on PR openclaw#72869]

    The previous targetProvider short-circuit fired whenever the
    on-disk provider entry contained ANY non-empty credential. That
    silently bypassed:
      - rotated apiKey: cold start with new key, old key on disk,
        short-circuit fires, all calls fail until something else
        invalidates
      - attacker-tampered baseUrl: redirect to exfil endpoint kept
      - attacker-injected headers: arbitrary auth material kept

    New readExistingProviderMatchesConfig() does a strict structural
    comparison:
      apiKey  - resolved through resolveSecretInputRef (env-ref
                expansion via createConfigRuntimeEnv) before string
                equality vs. disk
      baseUrl - exact string equality
      headers - stable structural equality (key-order independent)
      auth    - stable structural equality

    Any mismatch (or any state we cannot conclusively verify, like
    a non-env secret ref) returns false and falls through to full
    planning. The short-circuit is now safe to use on cold start and
    after gateway restart.

(c) Hash models.json content into the cache key
    [Codex P1 on PR openclaw#72869]

    Previous fingerprint had no models.json input \u2014 once the cache
    was populated, unchanged config/auth returned cached success even
    after the file was edited externally / partially corrupted /
    manually tampered. Now readyCache stores both the input
    fingerprint AND the post-write models.json SHA-256. Cache hit
    requires both to match; any external edit invalidates.

    Captures the hash at three points (skip path, noop path, write
    path) so the second factor is always recorded.

Aisle medium #5: hash fingerprint before storage
    Raw stable-stringified config (including apiKey strings) used to
    sit verbatim in MODELS_JSON_STATE.readyCache. SHA-256 over the
    canonical payload is now the cache key \u2014 deterministic but not
    reversible, so heap snapshots / debug telemetry / core dumps
    can't leak secrets via the readyCache state.

Greptile P2: targetProvider short-circuit tests
    New file models-config.target-provider-short-circuit.test.ts
    with 6 cases:
      - hit-on-match (full structural match short-circuits)
      - miss-on-rotated-key (config apiKey change forces plan)
      - miss-on-baseUrl-change (tampered disk baseUrl rejects)
      - miss-on-tampered-headers (any header drift rejects)
      - miss-on-cold-cache (no disk file forces plan)
      - hit-after-warm-fingerprint + invalidation on external
        models.json edit (modelsJsonHash second-factor verified)

Existing fingerprint-cache test updated:
    The 'volatile fields rotate' test mixed type:oauth (correctly
    volatile) with type:token (now correctly NOT volatile after
    d505fa0). Split into two tests:
      - OAuth session-field rotation does NOT invalidate (existing
        intent, narrowed to oauth-only profiles)
      - Static type:token credential rotation DOES invalidate
        (Codex/Greptile P2 - new correct behavior)

State shape change:
    MODELS_JSON_STATE.readyCache value extended with modelsJsonHash:
      { fingerprint, modelsJsonHash, result }
    All three return paths in the plan closure capture this.

Tests: 13/13 (6 new + 7 existing fingerprint-cache + file-mode).
Lint: 0 errors. TS: clean.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…ale-cwd resume, hookChannelId, param-rewrite refusal

Tank's 2026-05-21 fifth-round review. All four findings real, all close
with focused patches in run-attempt.ts.

1. P1 — toolsAllow:[] leaked native tools. computeNativeDisallowedTools
   previously gated on `toolsAllow.length > 0`, so an empty allowlist
   (the documented "block all tools" form) fell through to "no native
   restriction" and Bash/Read/Edit stayed exposed. Now: ANY toolsAllow
   present, including [], is restrictive of the WHOLE surface; the only
   escape is an explicit wildcard.

2. P1/P2 — resumed threads kept stale unsandboxed cwd. ensureThread's
   rotation checks didn't compare cwd, so pre-effectiveWorkspace
   bindings (and any sandbox shift) would resume into the SDK with the
   old workspace pinned at sdkOptions.cwd. The server reads cwd off
   meta.cwd at resume time and ignores turn/start.cwd updates, so the
   only way to give native tools the right workspace is to rotate.
   Added existing.cwd !== effectiveWorkspace as a rotation reason,
   between approvalPolicy and developerInstructionsFingerprint.

3. P2 — dynamic openclaw tools' before-hooks used the unsandboxed
   channel. createOpenClawCodingTools accepts a `hookChannelId` field;
   the wrapper falls back to `currentChannelId` when it's missing.
   buildTools now takes hookChannelId via context, sourced from
   buildAgentHookContextChannelFields().channelId. Reordered runAttempt
   so hookChannelFields is computed in step 2 (before buildTools)
   instead of step 3, matching codex's order at codex/run-attempt.ts:
   3303.

4. P2/P3 — native approval used to silently approve when the policy
   hook rewrote params. The SDK's approval response is approve/decline
   only, so a sanitizing policy rewrite couldn't carry through; we'd
   approve the ORIGINAL request, failing open. Now: if outcome.params
   differs from the original toolInput (compared via stableJsonText
   with sorted keys), decline with a reason that explains the policy
   expected a rewrite. Codex does the same at codex/approval-bridge.ts:353.

Type-check + contract test green.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…ale-cwd resume, hookChannelId, param-rewrite refusal

Tank's 2026-05-21 fifth-round review. All four findings real, all close
with focused patches in run-attempt.ts.

1. P1 — toolsAllow:[] leaked native tools. computeNativeDisallowedTools
   previously gated on `toolsAllow.length > 0`, so an empty allowlist
   (the documented "block all tools" form) fell through to "no native
   restriction" and Bash/Read/Edit stayed exposed. Now: ANY toolsAllow
   present, including [], is restrictive of the WHOLE surface; the only
   escape is an explicit wildcard.

2. P1/P2 — resumed threads kept stale unsandboxed cwd. ensureThread's
   rotation checks didn't compare cwd, so pre-effectiveWorkspace
   bindings (and any sandbox shift) would resume into the SDK with the
   old workspace pinned at sdkOptions.cwd. The server reads cwd off
   meta.cwd at resume time and ignores turn/start.cwd updates, so the
   only way to give native tools the right workspace is to rotate.
   Added existing.cwd !== effectiveWorkspace as a rotation reason,
   between approvalPolicy and developerInstructionsFingerprint.

3. P2 — dynamic openclaw tools' before-hooks used the unsandboxed
   channel. createOpenClawCodingTools accepts a `hookChannelId` field;
   the wrapper falls back to `currentChannelId` when it's missing.
   buildTools now takes hookChannelId via context, sourced from
   buildAgentHookContextChannelFields().channelId. Reordered runAttempt
   so hookChannelFields is computed in step 2 (before buildTools)
   instead of step 3, matching codex's order at codex/run-attempt.ts:
   3303.

4. P2/P3 — native approval used to silently approve when the policy
   hook rewrote params. The SDK's approval response is approve/decline
   only, so a sanitizing policy rewrite couldn't carry through; we'd
   approve the ORIGINAL request, failing open. Now: if outcome.params
   differs from the original toolInput (compared via stableJsonText
   with sorted keys), decline with a reason that explains the policy
   expected a rewrite. Codex does the same at codex/approval-bridge.ts:353.

Type-check + contract test green.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…otation, cwd in approval ctx, comment refresh

Tank's 2026-05-21 sixth-round review caught two real issues + one stale
comment.

P2 — cwd rotation was a regression. My prior commit (41881cd) added
existing.cwd !== effectiveWorkspace as a rotation reason. But rotation
calls thread/start which creates a fresh thread_id + sessionId, and the
server's session store keys messages.jsonl by that id. So a cwd-rotation
ate the entire SDK conversation transcript — exactly the failure mode
my own caveat dismissed. Fix:

 - Drop cwd from rotationReason checks. Existing thread still resumes.
 - Send `cwd: effectiveWorkspace` on thread/resume when divergent. Paired
   with server commit that adds cwd to ThreadResumeParams +
   applyResumeOverrides; server patches meta.cwd in-place; SDK's next
   sdkOptions.cwd reflects the new path without losing history.
 - Persist effectiveWorkspace in the binding sidecar so subsequent
   resumes don't re-send the same cwd update every turn.
 - Update extension's ThreadResumeParams type to mirror the server.

P3 — native approval hook ctx now carries cwd. Codex includes cwd in
the BeforeToolCall ctx for app-server approval policies
(codex/approval-bridge.ts:343); we pass effectiveWorkspace into
registerApprovalHandler and the inner runBeforeToolCallHook call. The
ApprovalRegistrationContext type gained a cwd?: string field.

P4 — stale comment about param rewrites being "ignored." The Tank-#5
fix actually declines on rewrite (lands in commit 41881cd); comment
now says so.

Type-check + native-tools-coverage contract test green.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…otation, cwd in approval ctx, comment refresh

Tank's 2026-05-21 sixth-round review caught two real issues + one stale
comment.

P2 — cwd rotation was a regression. My prior commit (41881cd) added
existing.cwd !== effectiveWorkspace as a rotation reason. But rotation
calls thread/start which creates a fresh thread_id + sessionId, and the
server's session store keys messages.jsonl by that id. So a cwd-rotation
ate the entire SDK conversation transcript — exactly the failure mode
my own caveat dismissed. Fix:

 - Drop cwd from rotationReason checks. Existing thread still resumes.
 - Send `cwd: effectiveWorkspace` on thread/resume when divergent. Paired
   with server commit that adds cwd to ThreadResumeParams +
   applyResumeOverrides; server patches meta.cwd in-place; SDK's next
   sdkOptions.cwd reflects the new path without losing history.
 - Persist effectiveWorkspace in the binding sidecar so subsequent
   resumes don't re-send the same cwd update every turn.
 - Update extension's ThreadResumeParams type to mirror the server.

P3 — native approval hook ctx now carries cwd. Codex includes cwd in
the BeforeToolCall ctx for app-server approval policies
(codex/approval-bridge.ts:343); we pass effectiveWorkspace into
registerApprovalHandler and the inner runBeforeToolCallHook call. The
ApprovalRegistrationContext type gained a cwd?: string field.

P4 — stale comment about param rewrites being "ignored." The Tank-#5
fix actually declines on rewrite (lands in commit 41881cd); comment
now says so.

Type-check + native-tools-coverage contract test green.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…d fix + numbering drift

Three stale-comment issues in run-attempt.ts's leading block-comment,
all rolled into one cleanup:

1. Step order — docstring listed buildTools before sharedHookContext;
   actual code does sharedHookContext (step 2) then buildTools (step 3)
   because createOpenClawCodingTools needs hookChannelId.

2. Step 7 didn't mention the terminal stream:"assistant" {text} marker
   the dispatcher keys on (added during Tank-#5 round), or the native
   AfterToolCall firing at item/completed (Tank-#6 round).

3. Step 9 didn't exist — but the agent_end fix just added it. Without
   the runAgentHarnessLlmOutputHook + runAgentHarnessAgentEndHook calls,
   the provenance plugin's finalTaintBySession never populated for
   claude turns and the footer didn't attach.

Docstring also now points readers at codex's analogs in
codex/run-attempt.ts:2686 + :2704 so the parity story is one click
away.

Pure docs change; tsgo:extensions clean.
zeroaltitude added a commit that referenced this pull request May 21, 2026
…d fix + numbering drift

Three stale-comment issues in run-attempt.ts's leading block-comment,
all rolled into one cleanup:

1. Step order — docstring listed buildTools before sharedHookContext;
   actual code does sharedHookContext (step 2) then buildTools (step 3)
   because createOpenClawCodingTools needs hookChannelId.

2. Step 7 didn't mention the terminal stream:"assistant" {text} marker
   the dispatcher keys on (added during Tank-#5 round), or the native
   AfterToolCall firing at item/completed (Tank-#6 round).

3. Step 9 didn't exist — but the agent_end fix just added it. Without
   the runAgentHarnessLlmOutputHook + runAgentHarnessAgentEndHook calls,
   the provenance plugin's finalTaintBySession never populated for
   claude turns and the footer didn't attach.

Docstring also now points readers at codex's analogs in
codex/run-attempt.ts:2686 + :2704 so the parity story is one click
away.

Pure docs change; tsgo:extensions clean.
zeroaltitude added a commit that referenced this pull request May 23, 2026
Tank's 2026-05-22 task-list items #5 + #8.

#5: namespace + deferred-loading plumbing. Mirror codex's
createCodexDynamicToolSpec({ loading, directToolNames }) signature
on the claude bridge:
  - DynamicToolSpec gains optional namespace + deferLoading
  - createClaudeDynamicToolBridge accepts loading ('searchable' |
    'direct', default 'direct') and directToolNames
  - In searchable mode, non-direct specs ship with
    namespace='openclaw' + deferLoading=true; ALWAYS_DIRECT
    (sessions_yield) stays eagerly registered
  - Default 'direct' preserves current eager-loading behavior so
    callers don't see a behavior change

The Anthropic claude-agent-sdk doesn't yet honor namespace /
deferLoading at runtime (every MCP-registered tool loads
eagerly). The flags are forwarded as protocol metadata so that
either future SDK support OR a server-side search-meta-tool can
honor them without a protocol bump. See 'True SDK surface
differences' in the README.

#8: parity-status doc. Replace the old 'Known limitations'
section in extensions/claude/README.md with a three-bucket
structure that separates implemented parity (everything from
Tank's 1-7), planned bridge work (scope migration, server-side
deferred-loading runtime), and true SDK surface differences
(MCP-at-thread-start, no native deferred loading, no
sourceReplyDeliveryMode plumbing). Lets future readers tell
temporary gaps apart from permanent SDK constraints.

4 new tests covering loading-mode plumbing (19/19 truncation
tests total). 146/146 claude tests; tsgo clean on touched files.
zeroaltitude pushed a commit that referenced this pull request Oct 8, 2026
openclaw#166738)

Builds on openclaw#166737 (merged: curated `scripts/lib/recommended-models.json` + shared `canonicalModelKey`/`canonicalModelFamily`/`compareModelRecency`); this PR only adds the helper script and its test.

## What Problem This Solves

The recommended-models list is now curated by hand, so a maintainer needs a daily, reviewable signal for what to change: new releases, Arena reorderings, and entries that are retired or no longer served.

## User Impact

No user-visible change. Maintainers (and later a daily draft-PR agent) can run

```
OPENROUTER_API_KEY=... node --import ./scripts/tsx.mjs scripts/suggest-recommended-models.mts [--list <path>]
```

and get a markdown report ending in a unified diff against `scripts/lib/recommended-models.json`. The list file is never written; a human edits it.

## Why This Change Was Made

TypeScript port of the recv2 prototype's ranking: LMArena Agent Arena score first; equal scores, and models without one, order by OpenRouter 30-day usage. The newest served family member without its own Arena row takes the slot of its newest ranked older sibling, counting at least that sibling's usage, so it sorts directly ahead of it (release date decides recency, so grok-4.20 does not outrank grok-4.7). DeepSWE is dropped; `-fast` and other serving variants fold into the base model.

- Inputs: every run fetches each source fresh, with no cache; a failed request or a response that fails schema validation fails that run. Sources: LMArena Agent Arena `agent/latest` through the HF datasets-server JSON rows endpoint (no parquet dependency), OpenRouter `/api/v1/models`, OpenRouter `rankings-daily` (only when `OPENROUTER_API_KEY` is set; otherwise curated entries without an Arena score keep their order), Vercel `/v1/models`, and the hosted catalog v2.
- Identity: each source id resolves once through the shared `canonicalModelKey`, with its display name, so dated aliases join their versioned model. Examples: `mistral-small-2603` is Mistral Small 4, OpenRouter `mistral-large-4-0` matches Vercel `mistral-large-4`, and usage arrives through OpenRouter `canonical_slug`. Non-chat models are excluded by gateway modality or type labels; `-latest` aliases are excluded.
- Report sections:
  - **New models:** first seen within 7 days and not listed. Each shows its likely same-family predecessor and both prices, and is flagged `possible new class` when either price differs by more than 2x or the family has no predecessor.
  - **Arena moves:** rank changes among entries both lists keep, largest first.
  - **Gone or deprecated:** first-party retired with its replacement, no longer served, or no signal.
  - **Suggested list:** the full ordered list plus the diff.

No overlap with Pash/Sarah changes (the PR adds one new file).

## Evidence

- Port fidelity: on the live inputs, the helper reproduced the prototype's 86-id suggested list exactly before the review-driven identity fixes. Two differences remain, and openclaw#166737's seed list already includes both: `mistral-medium-2604` is folded into `mistral-medium-3.5` because they are the same model, and `ling-3.0-flash-*` is now spelled `ling-3-flash-*` because zero minor versions fold.
- Typecheck: `node scripts/run-tsgo.mjs -p tsconfig.scripts.json` and `tsgo:test:root` report no errors; scoped oxlint and oxfmt are clean. `canonical-model-key.test.ts` passed 32/32.
- Ordering: `test/scripts/suggest-recommended-models.test.ts` feeds stubbed sources through the real entry point. Two models tied on Arena score order by usage (the higher-usage one first, against alphabetical order), and a successor that inherits its sibling's Arena slot still sorts ahead of that higher-usage sibling. With the previous alphabetical tiebreak the test fails.
- Cost: `pnpm test test/scripts/suggest-recommended-models.test.ts --maxWorkers=1` takes 2.2 s wall end to end (Vitest 0.78 s; the test itself 9 ms). CI on this head: run 37692398322, green in 595 s wall and 5,717 job-seconds across 58 jobs for the whole PR; the new test adds about 9 ms of that.
- Error and fallback paths: a list containing `claude-opus-4.8` reported "retired by its first-party provider; replaced by claude-opus-5", and `nonexistent-model-9` reported "no host serves it". A missing `--list` file exits 1 with a clear message. Without a key, the report states that usage was skipped and keeps unscored curated entries. With an invalid `OPENROUTER_API_KEY`, the run exits 1 with `https://openrouter.ai/api/v1/datasets/rankings-daily returned HTTP 401` and prints no report.
- Live run: all inputs were fetched fresh (5 requests, 3.9 s wall). Both outputs below are copied verbatim. In the live data the only exact Arena ties are successor/sibling pairs (`gpt-5.6`/`gpt-5.4`, `mimo-v2.6-pro`/`mimo-v2.5-pro`), and each successor sorts first.

Run against the curated list in openclaw#166737, using the default path:

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:06:52.590Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

None.

## Gone or deprecated

None.

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (#6) |
| 7 | claude-opus-5 | Arena 0.087 (#7) |
| 8 | claude-fable-5 | Arena 0.082 (#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (#13) |
| 11 | kimi-k3 | Arena 0.042 (#14) |
| 12 | grok-4.7 | Arena 0.040 (#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (#18) |
| 15 | hy4-preview | Arena 0.040 (#19) |
| 16 | glm-5.2 | Arena 0.035 (#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (#21) |
| 18 | qwen3.8-max | Arena 0.025 (openclaw#22) |
| 19 | glm-5.3 | Arena 0.024 (openclaw#23) |
| 20 | gpt-6-luna | Arena 0.014 (openclaw#24) |
| 21 | grok-4.6 | Arena 0.013 (openclaw#25) |
| 22 | grok-4.5 | Arena 0.012 (openclaw#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) |
| 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (openclaw#28) |
| 26 | step-5-preview | Arena 0.005 (openclaw#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) |
| 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) |
| 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) |
| 35 | qwen3.7-max | Arena -0.051 (openclaw#40) |
| 36 | hy3 | Arena -0.054 (openclaw#41) |
| 37 | minimax-m3 | Arena -0.069 (openclaw#42) |
| 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) |
| 43 | inkling-small | Arena -0.103 (openclaw#47) |
| 44 | inkling | Arena -0.109 (openclaw#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) |
| 46 | solar-pro4 | Arena -0.159 (openclaw#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

No changes to the curated list.

<details><summary>Same inputs against the 2026-09-27 list (shows Arena moves, a drop, a 10x price flag and the diff)</summary>

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:07:02.742Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| claude-haiku-5.5 | 2026-10-07 | openclaw#81 | $0.1 / $0.5 | claude-haiku-4.5 | $1 / $5 | possible new class: price 10.0x |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

| model | listed | suggested | signal |
| --- | --- | --- | --- |
| mimo-v2.6-flash | openclaw#47 | openclaw#29 | Arena -0.006 (openclaw#33) |
| gpt-6-luna | openclaw#24 | #20 | Arena 0.014 (openclaw#24) |
| grok-4.7 | #15 | #12 | Arena 0.040 (#16) |
| deepseek-v4-pro | #16 | openclaw#23 | Arena 0.012 (openclaw#27) |
| gemini-3.8-flash | #11 | #17 | Arena 0.030 (#21) |
| hy4-preview | #10 | #15 | Arena 0.040 (#19) |
| mimo-v2.6-pro | openclaw#32 | openclaw#39 | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| mimo-v2.5-pro | openclaw#33 | openclaw#40 | Arena -0.075 (openclaw#44) |
| gemini-3.1-pro-preview | openclaw#35 | openclaw#42 | Arena -0.077 (openclaw#46) |
| solar-pro4 | openclaw#45 | openclaw#46 | Arena -0.159 (openclaw#50) |
| gpt-6-sol | #6 | #6 | Arena 0.097 (#6) |
| muse-spark-1.3 | #14 | #14 | Arena 0.040 (#18) |
| qwen3.8-max | #18 | #18 | Arena 0.025 (openclaw#22) |
| gpt-5.6-terra | #21 | openclaw#27 | Arena 0.004 (openclaw#31) |
| qwen3.7-plus | openclaw#36 | openclaw#38 | Arena -0.072 (openclaw#43) |
| claude-opus-5.5 | #3 | #2 | Arena 0.138 (#2) |
| gpt-6-astra | #2 | #4 | Arena 0.123 (#4) |
| claude-opus-5 | #4 | #7 | Arena 0.087 (#7) |
| claude-fable-5 | #5 | #8 | Arena 0.082 (#8) |
| deepseek-v4.1-flash | #12 | #13 | Arena 0.040 (#17) |
| glm-5.2 | #13 | #16 | Arena 0.035 (#20) |
| grok-4.6 | #20 | #21 | Arena 0.013 (openclaw#25) |
| grok-4.5 | #19 | openclaw#22 | Arena 0.012 (openclaw#26) |
| glm-5.3-flash | openclaw#23 | openclaw#28 | Arena -0.004 (openclaw#32) |
| gpt-5.6-luna | openclaw#25 | openclaw#30 | Arena -0.012 (openclaw#35) |
| gemini-3.7-flash | openclaw#26 | openclaw#31 | Arena -0.015 (openclaw#36) |
| qwen3.8-27b | openclaw#27 | openclaw#32 | Arena -0.017 (openclaw#37) |
| muse-spark-1.2 | openclaw#28 | openclaw#33 | Arena -0.033 (openclaw#38) |
| muse-spark-1.1 | openclaw#29 | openclaw#34 | Arena -0.049 (openclaw#39) |
| qwen3.7-max | openclaw#30 | openclaw#35 | Arena -0.051 (openclaw#40) |
| hy3 | openclaw#31 | openclaw#36 | Arena -0.054 (openclaw#41) |
| minimax-m3 | openclaw#34 | openclaw#37 | Arena -0.069 (openclaw#42) |
| inkling-small | openclaw#38 | openclaw#43 | Arena -0.103 (openclaw#47) |
| inkling | openclaw#39 | openclaw#44 | Arena -0.109 (openclaw#48) |
| mistral-medium-3.5 | openclaw#40 | openclaw#45 | Arena -0.124 (openclaw#49) |

29 usage-ranked entries also move; see the diff.

## Gone or deprecated

- ling-3.0-flash-fin: no host serves it
- ling-3.0-flash-vl: no host serves it
- ling-3.0-flash-sante: no host serves it
- kimi-k2.6: no Arena score and no OpenRouter usage in the window

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (#6) |
| 7 | claude-opus-5 | Arena 0.087 (#7) |
| 8 | claude-fable-5 | Arena 0.082 (#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (#13) |
| 11 | kimi-k3 | Arena 0.042 (#14) |
| 12 | grok-4.7 | Arena 0.040 (#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (#18) |
| 15 | hy4-preview | Arena 0.040 (#19) |
| 16 | glm-5.2 | Arena 0.035 (#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (#21) |
| 18 | qwen3.8-max | Arena 0.025 (openclaw#22) |
| 19 | glm-5.3 | Arena 0.024 (openclaw#23) |
| 20 | gpt-6-luna | Arena 0.014 (openclaw#24) |
| 21 | grok-4.6 | Arena 0.013 (openclaw#25) |
| 22 | grok-4.5 | Arena 0.012 (openclaw#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) |
| 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (openclaw#28) |
| 26 | step-5-preview | Arena 0.005 (openclaw#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) |
| 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) |
| 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) |
| 35 | qwen3.7-max | Arena -0.051 (openclaw#40) |
| 36 | hy3 | Arena -0.054 (openclaw#41) |
| 37 | minimax-m3 | Arena -0.069 (openclaw#42) |
| 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) |
| 43 | inkling-small | Arena -0.103 (openclaw#47) |
| 44 | inkling | Arena -0.109 (openclaw#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) |
| 46 | solar-pro4 | Arena -0.159 (openclaw#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

```diff
--- a/../../../../../../tmp/recprobe/list-20260927.json
+++ b/../../../../../../tmp/recprobe/list-20260927.json
@@ -1,80 +1,87 @@
 [
   "claude-fable-5.1",
-  "gpt-6-astra",
   "claude-opus-5.5",
+  "claude-sonnet-5.5",
+  "gpt-6-astra",
+  "gpt-6.1-sol",
+  "gpt-6-sol",
   "claude-opus-5",
   "claude-fable-5",
-  "gpt-6-sol",
   "gpt-5.6-sol",
   "claude-sonnet-5",
   "kimi-k3",
-  "hy4-preview",
-  "gemini-3.8-flash",
+  "grok-4.7",
   "deepseek-v4.1-flash",
-  "glm-5.2",
   "muse-spark-1.3",
-  "grok-4.7",
-  "deepseek-v4-pro",
-  "glm-5.3",
+  "hy4-preview",
+  "glm-5.2",
+  "gemini-3.8-flash",
   "qwen3.8-max",
-  "grok-4.5",
+  "glm-5.3",
+  "gpt-6-luna",
   "grok-4.6",
-  "gpt-5.6-terra",
+  "grok-4.5",
+  "deepseek-v4-pro",
+  "gpt-5.6",
   "gpt-5.4",
+  "step-5-preview",
+  "gpt-5.6-terra",
   "glm-5.3-flash",
-  "gpt-6-luna",
+  "mimo-v2.6-flash",
   "gpt-5.6-luna",
   "gemini-3.7-flash",
   "qwen3.8-27b",
   "muse-spark-1.2",
   "muse-spark-1.1",
   "qwen3.7-max",
   "hy3",
-  "mimo-v2.6-pro",
-  "mimo-v2.5-pro",
   "minimax-m3",
-  "gemini-3.1-pro-preview",
   "qwen3.7-plus",
+  "mimo-v2.6-pro",
+  "mimo-v2.5-pro",
   "gemini-3.6-flash",
+  "gemini-3.1-pro-preview",
   "inkling-small",
   "inkling",
   "mistral-medium-3.5",
+  "solar-pro4",
+  "space-bunny-alpha",
   "deepseek-v4-flash",
-  "mimo-v2.5",
   "nemotron-3-ultra-550b-a55b",
-  "space-bunny-alpha",
-  "solar-pro4",
+  "mimo-v2.5",
   "laguna-s-2.1",
-  "mimo-v2.6-flash",
-  "ling-3.0-flash-fin",
   "gemini-3-flash-preview",
-  "nemotron-3.5-lightning",
+  "ling-3-flash-fin",
   "gemini-2.5-flash-lite",
-  "claude-sonnet-4.6",
+  "nemotron-3.5-lightning",
   "gpt-oss-120b",
-  "gemini-2.5-flash",
-  "gemini-3.1-flash-lite",
   "dots-3-note-preview",
-  "deepseek-v3.2",
-  "gemma-4-31b",
+  "gemini-3.1-flash-lite",
+  "gemini-2.5-flash",
   "qwen3.8-flash",
+  "gemma-4-31b",
+  "claude-sonnet-4.6",
+  "deepseek-v3.2",
+  "qwen3.7-flash",
+  "ling-3-flash-sante",
   "nemotron-3-super-120b-a12b",
+  "nex-n2.5-pro",
+  "ling-3-flash-vl",
+  "gpt-6-luna-pro",
   "gemma-4-26b-a4b",
   "gpt-5.6-luna-pro",
-  "qwen3.7-flash",
-  "ling-3.0-flash-vl",
-  "minimax-m2.7",
+  "solar-mini4",
   "deepseek-v4-flash-vision-exp",
-  "gpt-oss-20b",
-  "ling-3.0-flash-sante",
-  "step-3.7-flash",
-  "claude-haiku-4.5",
   "mistral-nemo",
-  "gpt-4o-mini",
+  "ling-3.1-flash",
   "glm-5.3-flashx",
+  "gpt-oss-20b",
   "gemini-3.5-flash-lite",
-  "gpt-6-luna-pro",
+  "minimax-m2.7",
+  "gpt-4o-mini",
+  "claude-haiku-5.5",
+  "claude-haiku-4.5",
   "claude-opus-4.7",
-  "claude-sonnet-4.5",
-  "kimi-k2.6"
+  "step-3.7-flash",
+  "claude-sonnet-4.5"
 ]
```

</details>

## Merge danger

This is a two-way door: it adds one new dev script and its test, writes no files, and is never wired into CI or publishing. A revert removes it completely. If it is wrong, the impact is limited to a misleading suggestion report that a human reviews before editing the list.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.