Skip to content

fix(models): say why sim-auto is refused and tidy release follow-ups - #10437

Merged
waleedlatif1 merged 4 commits into
stagingfrom
fix/release-audit-model-followups
Nov 26, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
fix/release-audit-model-followups

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Follow-ups from a release audit of the model-routing and mothership-stream changes in this release:

  • Clear error for sim-auto on a field that doesn't offer it. Guardrails and Translate no longer offer Auto (it never ran there: it resolved to Ollama and failed on hosted). A stored sim-auto on those fields, or on an Auto-capable field on self-hosted Sim, was refused with the generic "Unknown model id … read model.options" error. It now says the block does not offer Auto (on a self-hosted deployment, where that is the reason) and to pick a concrete model id. Pass/fail is unchanged
  • No sentinel abort reason. AbortReason.WorkerTerminalStop existed only to be fed back through isExplicitStopReason; nothing aborted with it. recordCancelled now classifies a cancelled verdict on a live signal directly. Behaviour is identical
  • Inline the single-use Ollama URL check into isOllamaReachable (its doc still described a public API)
  • Tests through the real resolver. Removed blocks/utils.test.ts cases that asserted on how a getProviderFromModel mock was called or restated the mock; agent.test.ts now checks that a model reference records the default provider with the real lookup
  • The agent block's tool callback is a one-liner like the router and evaluator blocks

Type of Change

  • Bug fix
  • Code cleanup

Testing

  • validation-models.test.ts asserts the exact new messages for hosted guardrails/translate and self-hosted router; they fail on the previous code
  • start.test.ts: the worker-reported cancel test now also asserts the request finishes as cancelled with cancel reason explicit_stop
  • agent.test.ts: the reference case fails if the reference guard is removed
  • vitest over lib/mothership/request, lib/core/utils, lib/workflows/editing, blocks, lib/embeddings: 1317 pass; tsc --noEmit, biome, comment-hygiene, test-pattern and test-type checks clean

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

A model field that does not offer Auto, either because the block never does (guardrails, translate) or because the deployment is self-hosted, rejected sim-auto with the generic unknown-model-id error and its namespace examples. It now names the actual reason and points at the block's model.options for a concrete id.
…tinel abort reason

WorkerTerminalStop was never passed to abort(); it existed only so recordCancelled could feed a live signal through isExplicitStopReason. Branch on the live signal directly instead. The recorded cancel reason is unchanged, and the worker-reported cancel test now also asserts the root span finishes as explicit_stop.
…resolver

The resolveModelProviderId and findConfiguredModelProvider tests asserted on a mocked getProviderFromModel and restated its stub; the real behaviour is covered by the providers utils tests. The agent block now has a real-resolver test that a model reference records the default provider rather than its written namespace, and its tool callback matches the router and evaluator one-liner.
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 26, 2026 7:28pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 9 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; no actionable issues were found.

Summary

This PR explains why a block refuses sim-auto and simplifies related release follow-ups.

  • Model fields explain why Auto is unavailable and what to choose instead.
  • Worker-reported cancellations are classified without a sentinel reason.
  • Agent provider checks and the Ollama reachability check use simpler code.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "test(blocks): check the agent's serializ..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 9d842d7 into staging Nov 26, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/release-audit-model-followups branch November 26, 2026 20:13

This branch was previously deployed

1 inactive deployment
Preview — 5e8827db Deployed Nov 26, 2026 by vercel[bot]
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.

1 participant