Skip to content

Model catalog validation rejects audio/video input modalities produced by OpenClaw's own catalog fetch (MiniMax-M3, phi-4-multimodal dropped) #97048

Closed

Description

@zackchiutw

Environment

  • OpenClaw 2026.6.10 (npm package; gateway self-reports v2026.6.1 in logs)
  • Node v22.22.2, Ubuntu, systemd --user service
  • Providers affected: minimax, nvidia (NVIDIA NIM)

Summary

On gateway start, model-registry logs model catalog load issue: Invalid models.json schema for the auto-fetched per-agent plugin catalogs (agents/<agent>/agent/plugins/{minimax,nvidia}/catalog.json). Validation fails because the fetched catalog entries declare input modalities (video, audio) that the models.json schema does not allow — its input enum is effectively limited to text / image. The offending model entries are dropped, so an agent whose primary model is one of them silently falls back.

Exact errors (gateway journal)

[agents/model-registry] model catalog load issue: Invalid models.json schema:
  - providers.minimax.models.1.input.2: must be equal to constant
  - providers.minimax.models.1.input.2: must match a schema in anyOf
File: .../agents/commander/agent/plugins/minimax/catalog.json
Invalid models.json schema:
  - providers.nvidia.models.3.input.2: must be equal to constant
  - providers.nvidia.models.3.input.2: must match a schema in anyOf
File: .../agents/commander/agent/plugins/nvidia/catalog.json

Offending data (from the fetched catalog.json)

Provider Model id input (fetched) Rejected value
minimax MiniMax-M3 ["text","image","video"] video
nvidia microsoft/phi-4-multimodal-instruct ["text","image","audio"] audio

OpenClaw's own static model defs use ["text","image"] / ["text"] (e.g. dist/models-*.js: input: supports?.vision === true ? ["text","image"] : ["text"]), i.e. the schema enum is effectively {text, image}, but the catalog-fetch path introduces audio/video.

Impact

  • Startup warning on every affected agent.
  • The invalid model entry is dropped from the validated catalog → an agent whose primary is that model falls back. Observed:
    [model-fallback/decision] requested=minimax/MiniMax-M3 candidate=minimax/MiniMax-M2.7 reason=unknown
    
    MiniMax-M3 is the primary for several agents in our setup.

Reproduction

  1. Configure minimax and/or nvidia providers and let OpenClaw fetch their catalogs.
  2. Restart the gateway; observe Invalid models.json schema for MiniMax-M3 / microsoft/phi-4-multimodal-instruct.

Root cause

Inconsistency between (a) the catalog-fetch normalization, which carries provider-reported audio/video modalities, and (b) the models.json input schema, which only permits text/image.

Suggested fix (any of)

  1. Extend the models.json input modality enum to include audio and video (and treat unknown modalities leniently), or
  2. Normalize/clamp fetched input to the supported set during catalog fetch (drop unsupported modalities instead of failing validation), or
  3. Make schema validation non-dropping for unknown input values (warn + keep text/image) so primaries are not silently downgraded.

Note for others hitting this

Editing the cached agents/*/agent/plugins/*/catalog.json to drop video/audio is only temporary — the active agent re-fetches and reverts on restart, so it is not a durable workaround.

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 11:12 AM ET / 15:12 UTC.

    Summary
    Keep open: current main and v2026.6.10 still let the session model registry reject generated plugin catalog rows containing audio or video inputs, even though adjacent config and catalog surfaces already preserve those modalities. The issue is not fixed on main and the older related reports/PRs are closed or only partially cover the remaining generated-catalog path.

    Reproducibility: yes. from source inspection: a generated catalog row with input: ["text", "image", "video"] or audio reaches validateModelsConfig, whose schema only allows text and image. I did not run a live provider fetch in this read-only review.

    Root-cause cluster
    Relationship: canonical
    Canonical: #97048
    Summary: This issue is the clearest current open item for the remaining audio/video input schema rejection in generated plugin catalog loading; older schema reports and PRs are closed or only partially overlap.

    Members:

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

    Next step
    This is a narrow source-reproducible bug with clear likely files and regression coverage; it is not eligible for strict automatic bug intake only because no live or failing-test reproduction was run in this review.

    Review details

    Best possible solution:

    Align the generated plugin catalog validator and model input types with the broader audio/video contract, then add a focused regression for a generated plugin catalog shard so OpenClaw-owned refreshes cannot produce rows the registry rejects.

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

    Yes from source inspection: a generated catalog row with input: ["text", "image", "video"] or audio reaches validateModelsConfig, whose schema only allows text and image. I did not run a live provider fetch in this read-only review.

    Is this the best way to solve the issue?

    Yes, the best fix is a generic schema/type alignment plus generated-catalog regression coverage. A provider-specific clamp for MiniMax or NVIDIA would leave the split validator behavior in place.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • I did not run the live MiniMax/NVIDIA catalog fetch path in this read-only review; the reproduction is source-level.
    • The checkout is shallow, so older line-level provenance for the registry schema is incomplete.

    Codex review notes: model internal, reasoning high; reviewed against 1cd6f81a46ae.

    Label changes

    Label changes:

    • add P2: The issue is a normal-priority provider catalog bug with a clear fallback/user-routing impact but no crash or security emergency.
    • add impact:auth-provider: The reported failure drops provider model catalog entries and causes model routing/fallback away from the configured primary provider model.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P2: The issue is a normal-priority provider catalog bug with a clear fallback/user-routing impact but no crash or security emergency.
    • impact:auth-provider: The reported failure drops provider model catalog entries and causes model routing/fallback away from the configured primary provider model.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs src/agents/sessions/model-registry.test.ts src/config/zod-schema.models.test.ts src/plugin-sdk/provider-catalog-shared.test.ts

    What I checked:

    • Root policy read: Root AGENTS.md was read fully; its review guidance required source, test, current/shipped behavior, related-item, and history checks before deciding. (AGENTS.md:1, 1cd6f81a46ae)
    • Scoped agents policy read: The relevant src/agents scoped guide was read; it applies to the model registry and catalog tests reviewed here. (src/agents/AGENTS.md:1, 1cd6f81a46ae)
    • Current registry validator rejects the reported values: ModelDefinitionSchema.input in the session model registry is still restricted to text and image; a generated plugin catalog row containing audio or video fails validateModelsConfig.Check before parsing models. (src/agents/sessions/model-registry.ts:165, 1cd6f81a46ae)
    • Current loader drops invalid plugin catalog shards: Plugin catalog shard errors are collected and the invalid shard contributes no models, which matches the reported dropped-primary/fallback behavior for an invalid generated catalog file. (src/agents/sessions/model-registry.ts:413, 1cd6f81a46ae)
    • Canonical config schema already accepts audio and video: The Zod config schema accepts text, image, video, and audio for model definitions, so the remaining failure is a registry/schema drift rather than a product-wide rejection. (src/config/zod-schema.core.ts:373, 1cd6f81a46ae)
    • Agent model catalog normalizer preserves the reported values: The agent model catalog normalizer accepts text, image, audio, video, and document, showing another current-main path already expects wider input modalities. (src/agents/model-catalog.ts:345, 1cd6f81a46ae)

    Likely related people:

    • Ayaan Zaidi: Current blame for the registry schema and adjacent modality-preserving surfaces resolves to commit 8bc069f in this shallow checkout; this is a routing signal, not complete root-cause provenance. (role: shallow-boundary area contributor; confidence: low; commits: 8bc069f76f62; files: src/agents/sessions/model-registry.ts, src/config/zod-schema.core.ts, src/plugin-sdk/provider-catalog-shared.test.ts)
    • Peter Steinberger: Available broader history shows repeated model catalog normalization and helper refactors, including the model catalog normalization simplification work. (role: model catalog refactor contributor; confidence: medium; commits: 3d4e5240149c, a69fce5079b7; files: packages/model-catalog-core/src/model-catalog-normalize.ts, src/agents/model-catalog.ts)
    • Clawborn: Authored a closed prior-art PR for the earlier audio/video model input schema rejection, useful context for the remaining registry-validator gap. (role: prior attempted fix author; confidence: medium; commits: bb9b6d09c32a; files: src/config/types.models.ts, src/config/zod-schema.core.ts)
    How this review workflow works
    • 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.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    no-staleExclude from stale automation
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 26, 2026
  3. Pick-cat commented on Jun 27, 2026

    @Pick-cat
    Contributor

    Working on this via a narrow schema/type-alignment fix + regression tests covering the issue's MiniMax-M3 and phi-4-multimodal catalog inputs. PR incoming from fork.

  4. steipete commented on Jul 9, 2026

    @steipete
    Contributor

    Fixed by #97858.

    The session registry now accepts the same known audio/video catalog metadata already supported by the public model configuration contract, while projecting runtime LLM inputs back to the existing text/image execution contract. Unsupported-only non-empty rows are not exposed to runtime selection, and explicit empty input lists retain their existing semantics. The regression covers the reported MiniMax MiniMax-M3 video row and NVIDIA microsoft/phi-4-multimodal-instruct audio row as separate generated plugin catalog shards.

    Verification:

    • Blacksmith Testbox tbx_01kx3hzy5pjxnbgpzk137ybt48 (Actions run 29022563114): focused registry suite 9/9, core and core-test typechecks, targeted lint, and changelog attribution all passed.
    • AWS Crabbox run_6a7283abde04: focused registry suite 9/9, core and core-test typechecks, targeted lint, and changelog attribution all passed.
    • Live loader probe run_9cd01e7b3f4c: both generated shards loaded with no registry error and both models remained available with runtime inputs ['text', 'image'].
    • Local exact-final wrapper suite: 9/9 tests; git diff --check passed.
    • Fresh autoreview reported no findings.

    The first Testbox lease remained capacity-queued for 4m35s, so the isolated public-network AWS fallback supplied early proof before the fresh replacement Testbox passed. The test and loader probes used synthetic in-memory API-key values, contacted no provider endpoint, and required no live credentials.

    Thanks @zackchiutw for the precise catalog rows, fallback symptom, and reproduction details, and @ly-wang19 for the original patch. Please reopen or file a new issue with a current generated shard if either provider is still rejected after this lands.

  5. locked as resolved and limited conversation to collaborators on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions