Skip to content

v0.9.66: pro free trial, workflows as code clean slate, slack progress timelines, whitelabel cleanup - #10356

Open
waleedlatif1 wants to merge 70 commits into
mainfrom
staging
Open

waleedlatif1 wants to merge 70 commits into
mainfrom
staging

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

waleedlatif1 and others added 27 commits November 22, 2026 18:01
…able writes report ignored columns (#10328)

Function blocks that fail now also output errorMessage, the thrown message without the line/code prefix, alongside the unchanged .error; it is declared as a typed error-only output that compile, lint, codegen and the executor read wherever .error is. Table writes return ignoredColumns, the keys they dropped because no column matched, with runtime write behaviour unchanged.
… abort rewrite (#10303)

* chore(db): drop organization.whitelabel_settings and rate_limit_bucket

* chore(next): remove the /api/copilot/chat/abort compatibility rewrite

* chore: describe the Redis-only provider admission store and trim the 0470 header
…stop (#10329)

A turn is cancelled when this node's abort signal fired or when the worker's
terminal said cancelled. The worker sends a cancelled terminal only for a
Stop, but when that Stop reached it another way (another Sim node, or the
worker's own stop handling), live or replayed during recovery, this node's
signal never fired. recordCancelled read only the signal, so a user Stop was
logged at ERROR as "Stream cancelled with unknown abort reason" with an
undefined reason, although finalize correctly reported an explicit stop.

recordCancelled now takes AbortReason.WorkerTerminalStop when the signal is
still live: that is the only other source of a cancelled verdict. Nothing
aborts with it, so the controller, its listeners and the SSE close telemetry
are unchanged. The start test's session mock now delegates to the real
classifier.
… leftovers (#10331)

* chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers

* chore(providers): share one unpriced-model builder across discovered providers
…er (#10332)

* fix(models): stop resolving sim-auto to ollama outside the model router

sim-auto is a pseudo-model that only the agent, router and evaluator
handlers resolve, through the model router, at execution time. Every
other provider lookup fell through to getProviderFromModel's unknown-model
default and treated it as an Ollama model:

- translate and guardrails offered Auto but never resolve it, so a run sent
  model sim-auto to provider ollama (or a provider allowlist refused it as
  ollama); editing validation accepted it there and the catalog advertised it
- assertModelAllowed refused sim-auto as provider ollama under
  allowedModelProviders, while the client gate allowed it
- the usage breakdown gave sim-auto rows the Ollama mark and merged BYOK
  sim-auto usage into the Ollama row
- the editor's API-key reset, tool-usage control and attachment cap looked
  up ollama for it (hiding the tool-usage control for Auto), and the first
  two threw uncaught on a blacklisted model
- getPiModelOptions and the router/evaluator serialization looked it up on
  every call, logging a provider warning each time

Now:

- getProviderFromModel throws an explicit error for sim-auto instead of
  answering ollama; the guardrails Vertex-credential check skips sim-auto
  so it cannot reach that throw
- DEFAULT_BLOCK_MODEL (providers/default-model.ts, dependency-free) is the
  one source for the agent/router/evaluator default and the executor's
  DEFAULT_MODELs, which are what sim-auto falls back to
- getSerializedModelProviderId becomes resolveModelProviderId: an unset,
  reference or sim-auto model answers as DEFAULT_BLOCK_MODEL, and it still
  never throws. The agent block (dropping its own special case) and the
  three editor call sites use it, so they no longer throw
- getModelOptions no longer includes Auto; getModelOptionsWithAuto (router,
  evaluator) and getAgentModelOptions do. Editing validation reads one
  declarative MODEL_OPTION_SOURCES map instead of comparing option
  functions: only getModelOptions and getModelOptionsWithAuto fields are
  checked against the catalog, sim-auto is accepted only where the source
  offers Auto on hosted Sim, and a reference or {{ENV_VAR}} value is passed
  through (router and evaluator used to reject them). The agent's model
  field stays unvalidated, as before
- assertModelAllowed skips the provider allowlist for sim-auto (the router
  gates each pool candidate) but still applies deniedModels
- the usage breakdown attributes sim-auto to its own key, labelled Auto, in
  the model and BYOK dimensions; every other model is attributed as before

* fix(models): keep the configured provider for editor decisions on a model

The API-key reset and the attachment cap now read the provider a model value
names as written. The serialization helper substitutes the default model for
a reference or sim-auto, which dropped a reference's explicit namespace (so
switching between models of that provider cleared the key) and gave sim-auto
the default model's larger attachment cap, although Auto can route images to
an inline-only provider. sim-auto and blacklisted models name no provider, so
the key comparison treats them as their own value and the cap stays at the
field's own size.
…h generated exit-code, diagnostic and limit references (#10334)

Workflows and workspace as code docs move under /workflows/code as a tutorial, how-to pages and generated references; exit codes, diagnostics and limits are generated from the engine (check:workflow-code-docs fails on drift); /workflows/workspace-code redirects to /workflows/code/workspace; CI recipes for a PR plan comment and a scheduled drift job; quick fixes from the docs audit.
…10330)

* feat(billing): card-required Pro free trial with a capped allowance

New personal Pro subscribers get a 14-day trial at checkout with a card
collected up front. The trial counts as Pro (features and Sim-hosted
keys) under a fixed 2,000-credit allowance: no weekly refresh, no
on-demand usage, no overage billing, and no team conversion until it
converts. Each card and each account starts one trial; a reused card
ends the trial at once so the card is charged.

* fix(billing): settle trial card checks from claims, retry them, and cap trial credit grants

* fix(billing): serialize trial claims per account and judge only Pro checkout trials

* chore(db): format trial migration snapshot
…ntions, and an env-number audit (#10333)

Primer and operations help cover skipped-block references, rejoining branches, loop/parallel item refs and run logs; v2 log detail leads with a failure summary; export notes nulled bindings; a root AGENTS.md pointer; NO_COLOR/TERM=dumb honoured; Node 22 floor; --summary-file plan/status Markdown for any CI, carried into suggested next commands; check:env-numbers fails raw numeric env reads that skip envNumber.
…d help, and typed Function results in JSON fields (#10335)
…uto (#10341)

* fix(models): accept models ollama can serve and refuse a denied sim-auto

The editing validator rejected any model id outside the static catalog on the
router, evaluator, translate and guardrails blocks. At runtime an id that no
provider claims runs on Ollama, so a locally installed model (llama3.1:8b,
user/model library names) could not be written by an edit, the workflow-state
API or workflow-as-code, and replacing a workflow that already used one
failed outright. Where Ollama can serve a model (reachable and not
blacklisted), the validator now accepts an Ollama-shaped name that no
provider claims, mirroring the runtime. Ids a provider claims, free text,
and sim-auto are still rejected.

Whether this deployment can reach Ollama is now one helper,
isOllamaReachable, used by the chat and embedding model lists, the embedding
client and the access-request catalog, which each restated it.

resolveAutoModel now checks the configured sim-auto against the workspace's
permission group before routing. A group that denied sim-auto still ran it as
whichever pool or default model it allowed; the editor already hid Auto for
such a group, and execution now refuses it the same way it refuses any other
denied model.

* fix(models): keep the ollama url check private and import mocks directly
* chore(config): retire the remaining NEXT_PUBLIC_* flag twins

The browser now reads BILLING_ENABLED, E2B_ENABLED, SLACK_EXTENDED_SCOPES,
DISABLE_INVITATIONS and DISABLE_PUBLIC_API through the deployment-shape
projection, like the enterprise flags, instead of NEXT_PUBLIC_* twins that had
to be kept in sync by hand.

- env-flags: browser branches read the projected value (absent reads as off);
  add isE2bEnabled
- deployment shape: project e2bEnabled, slackExtendedScopes,
  invitationsDisabled and publicApiDisabled (optional for rolling compatibility)
- Pi block and usePermissionConfig read the deployment shape
- env schema, Helm values, docs and e2e scripts drop the twins
- sim-setup: remove the twin pairing and the E2B mismatch check; doctor now
  warns that a leftover twin does nothing and names its server variable

* chore(helm): bump chart to 1.15.4
…llama (#10351)

* fix(models): route tagged ollama names that share a cloud prefix to ollama

findProviderFromModel matched provider patterns (/^gpt/, /^mistral/, /^claude/,
...) against any id that no namespace or catalog entry claimed. The browser
registers the installed Ollama list, so the editor resolved a local model such
as gpt-oss:20b or mistral:latest to Ollama, but the server never holds that
list: execution fell through to the cloud pattern and sent the request to
OpenAI or Mistral with the user's key, or failed on a missing one.

Ollama lists every installed model as name:tag, and no cloud model id carries
an Ollama tag, so a bare tagged name is now left unclaimed before patterns
run and getProviderFromModel defaults it to Ollama, the same as every other
local name. Namespaces and exact catalog ids still win first, so
bedrock/...:0 and openrouter/...:free are unaffected. Saved workflows heal
without a migration, and the editor, execution, permission checks and the
editing validator now agree on the provider.

getModelCapabilities re-implemented the pattern scan and kept reporting a
cloud provider's capabilities for these names; it now falls back to
findProviderFromModel so the two cannot disagree.

* improvement(models): share the ollama model-name rule between the resolver and the validator
…0352)

Sync the worker contracts: model-router candidate ids now start and end
with a letter or digit and are not trimmed, and the replay-end frame's
payload, kind, reasons and envelope live in mothership-stream-v1 as
MothershipStreamV1ReplayEnd* instead of protocol's StreamReplayEnd.

The run replay reader validates the frame against the synced kind and
reason constants instead of a hand-kept copy, and logs a malformed frame
with its zod issue paths. The frame stays outside the live run kinds; a
contract test pins that the live parser rejects it. A model-router test
runs the request body Sim builds through the synced ModelRouterRequest,
so a tier id the worker would reject fails here first.
* docs(library): update n8n-alternatives

* Pi Babysit: address PR #10349 feedback

* Pi: # Task

Fix repeated questions in ONE existing post: `apps/sim/conte...

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…onfluence (#10348)

* feat(library): Atlassian Service Accounts for AI Agents in Jira and Confluence

* Pi Babysit: address PR #10348 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…cruiting Operations? (#10347)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
* improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8

- commander ^11.1.0 -> ^15.1.0 (sim-cli and the root docs generator that walks its command tree)
- chalk 5.6.2 -> 6.0.1 (sim-cli)
- @babel/parser and @babel/types 7.29.x -> 8.1.2 in workflow-code and workspace-code, and the root
  parser the audit scripts use, so the CLI bundle carries one parser copy; apps/sim keeps 7 for the
  executor's own parse of user function code
- workflow-code: Babel 8 types a member's object as Expression | Super; add an isMemberAccess guard
  and type chain roots as MemberExpression['object']; drop the 'Import' callee hint case Babel 8 no
  longer produces
- audits: read TSImportType.source (Babel 8 rename) and drop the Babel 7 Import-callee shapes

* improvement(sim-cli): require node ^22.18.0 || >=24.11.0 to match bundled babel 8 and commander 15

- engines.node in sim-cli, workflow-code, workflow-sdk and workspace-code
- README and CLI install docs state the new floor
- the publish workflow smoke-tests the packed bundle on node 22.18.0, the floor
… Service Requests? (#10353)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
Co-authored-by: Sim Pi Agent <pi@sim.ai>
…e contract schemas (#10354)

* improvement(mothership): shadow-check worker stream frames against the contract schemas

Takes the regenerated mothership-stream-v1 contract, whose types are now
inferred from zod schemas. Frames the worker sends this server (the live
leg and the run replay) go through parseIngestedStreamEventEnvelope: the
existing validator still decides every frame, and the contract schema
runs beside it. A disagreement in either direction increments
copilot.stream_contract.disagreements (direction, event type, capped
kind/phase) and logs the zod issue paths, once per distinct disagreement
per ten minutes; a failure of the check itself is logged under the same
limit. Synthetic file-preview frames are skipped by their previewPhase.
The browser and the outbox reader are unchanged.

Tests pin a representative set of frames the validator accepts and the
schema rejects, one per kind of gap. The run replay reader validates
replay-end payloads with the synced MothershipStreamV1ReplayEndPayloadSchema
instead of a local copy of the same shape, and the shadow reuses the
contract parser's event-type set.

* improvement(mothership): tighten the stream contract shadow's skip and dedupe

The shadow skipped any accepted frame carrying a payload previewPhase, so
a worker frame with a stray previewPhase hid its schema rejection. It now
skips only a frame the contract check rejects, which is exactly one the
validator accepted as a synthetic file-preview frame; the previewPhase
test stays as the cheap prefilter. A test pins the stray-field case.

The log dedupe is an lru-cache (max 256, ttl the ten-minute window,
read against Date.now) instead of a hand-rolled TTL map, still reporting
the repeats skipped since the last line. Takes the regenerated protocol
contract, whose tool deadlines are positive integers, and documents the
new metric recorder and direction type with TSDoc.
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 24, 2026 10:29
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 25, 2026 6:05am UTC

Request Review

@github-actions github-actions Bot added the requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep label Nov 24, 2026
…shown to the cent (#10387)

* fix(pricing): comparison table matches enforced limits, annual price shown to the cent

* fix(pricing): Teams plans keep unlimited organization workspaces in the table
…ebase the usage limit (#10386)

* fix(billing): annual plans include a year of credits, plan switches rebase the usage limit, billing page matches the server

* fix(billing): plan pricing input accepts a subscription without a plan

* fix(billing): prorate annual Team seat allowance, rescale raised limits on plan switch, hold annual downgrades to renewal

* fix(billing): close a switched period at its own allowance, keep a year's seat-months until it closes, dispute-aware copy

* fix(billing): seat-months follow seat changes immediately, one race-safe limit rebase, test schemas carry the allowance columns

* fix(billing): fractional seat-months, chosen headroom kept on upgrades, allowance and limit writes in one transaction

* fix(billing): price fractional seat-months to the cent
waleedlatif1 and others added 2 commits November 24, 2026 16:22
…ke fixes, and a trimmed suite (#10390)

* improvement(desktop-e2e): shared launch fixture with a bounded, diagnosed quit

* improvement(desktop-e2e): shared fixture bundling and tool authorization

* improvement(desktop-e2e): split local-files onto the shared harness and fix live-sim consent handling

local-files: four tests (consent, Full file access, fs races, restart/sign-out) on the desktop
fixture with bounded restarts; a minimal fixture page replaces apps/sim's Settings component;
the shared-prompt step waits for a real join; fs patches restore in finally and assert they ran.

desktop-tools-live-sim: launches through the harness, approves only folder consent dialogs,
and merges the two awaiting-approval tests into one launch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* improvement(desktop-e2e): move source-connect, page dialogs, and sign-in prompts onto the shared harness

- Launch, servers, fixture bundling, tool authorization, focus, and panel bounds come from the
  harness; Chromium for source-connect is Playwright's own context fixture. Report files and
  check() wrappers give way to test.step.
- browser-page.ts shares the shell fixture server, browser-chrome actions, and exact-URL page
  reads and trusted input between the dialogs and sign-in specs.
- Typed input is awaited until it lands before the next action; page lookups match the exact URL.
- Sign-in links record clicks so "nothing happened" checks only run after a click landed; the
  sign-in retry loop and the two-outcome passkey Enter check are gone; the suite is split into
  two tests so it no longer needs a longer timeout.
- source-connect waits for observable effects before asserting a stale callback, a repeated
  Connect, and the retried inventory left state alone; page errors are asserted at the end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* improvement(desktop-e2e): background executor and terminal cancel on the shared harness

Launch through the desktop fixture (launchAgainst), so every app quits under a
deadline and every profile, ZDOTDIR and temp dir is removed. Replace fixed
sleeps with condition waits (journal state, inbox reads, a tmux attachment
probe, a control run for relaunch recovery), deliver user input before the
agent acts, make tmux required in CI, and drop or merge tests other suites
already cover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* improvement(desktop-e2e): move shell, quick chat, autofill, session, updater and packaged specs onto the shared harness

Every spec launches through the desktop fixture with a bounded quit, binds
fixtures to loopback, and records checks as test.step. Merges duplicate
launches in smoke and continue-sign-in, folds the packaged launch-telemetry
check into the offline-page launch, replaces fixed sleeps and one-shot reads
with condition waits, and deletes the check-report file report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* improvement(desktop-e2e): drop dead env and report plumbing; share launch, quit and fixture styles

* improvement(desktop-e2e): move browser tools, chrome, focus, and page-parity specs onto the shared harness

Browser tools share one app across read-only tests with a disposed provisional scope per test;
window-state and sign-out tests launch their own. Fixes focus, fire-and-forget IPC, and
load races; drops unasserted screenshots, the duplicate confirm-dialog check, and the
fixture-decided terminal test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* improvement(desktop-e2e): browser tools and chrome use the shared launch, quit and bundling

* chore(knip): drop the deleted worker-restart fixture entry

* fix(desktop-e2e): renew panel bounds, keep the child process, one app per browser-tools test, quit before cleanup

* fix(desktop-e2e): correct three migrated waits and keep the real toast timer

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…sted-key gate, trial and plan-end emails (#10389)

* fix(billing): Free plan shows the trial up front, search joins the hosted-key gate, trial and plan-end emails, paid-plan schedules stop at once

* fix(billing): trial reminder quotes the discounted charge and retries a failed send, eligibility-accurate trial copy

* fix(billing): eligible-only trial copy, log a failed plan-ended email, stronger search-gate assertion

* fix(billing): skip the plan-ended notice when the coverage lookup fails
…ommands use the source directory's workspace, primer and cookbook fixes (#10388)

* improvement(workflow-code): type a child call's result.data fields by the child's Response body

A parent reading <call.result.data.<field>> of a child workflow that responds on
every run had no declared type, so a JSON field stored it bare with
W_JSON_REF_UNTYPED and every such edit paid an extra check cycle.

compileWorkflow and printWorkflow now take childResults (child workflow key ->
typed top-level fields of its Response data, from childResultFields), so compile
and print type the reference the same way: a text field is stored quoted and
prints bare, a typed one is stored and printed bare.

- CLI: a check in a workspace directory reads the fields from the workflows it
  already compiles. Block digests for .sim/stored-edges.json stay untyped, so a
  printed block a child types does not count as edited.
- Server: every source apply, dry run and get reads the fields of the children
  the workflow calls. A workspace apply reads a child it submits from its
  folder, and any other child from its stored draft in the workspace
  (loadChildResults, once per request). A single-workflow apply or get reads
  the stored children, so a workspace folder applied on its own stores what a
  workspace apply stores.

* improvement(cli): commands use the source directory's workspace; primer rename and rejoin wording

- A command run inside a source directory (nearest .sim/base.json at or above the cwd) acts on
  that directory's workspace when neither --workspace nor SIM_WORKSPACE names one. Precedence:
  flag > env > directory > profile, documented in sim --help. sim login opts out so a directory
  never becomes the profile's stored workspace. Source commands now refuse a SIM_WORKSPACE naming
  another workspace (SOURCE_OTHER_WORKSPACE), as they refuse the flag.
- Primers: a display-name rename also rewrites $ref.<key> in function files; any number of
  display-name or const renames per apply, both of one block only one per apply.
- Cookbook: one Response after condition branches rejoin, a function picking the value with ??.

* chore(workflow-code): print the source primers for the mothership skill; promote-record and lock-layout docs match the code

* chore(workflow-code): simplify round 12 — one lock parse per apply, batched child reads, childSources on the per-apply loads

* chore(cli): simplify round 12 — workspace from the directory at the request layer, stored-edges under the printed typing

- resolveProfile is back to flag, env and config. The terminal reads the workspace the
  working directory names once before each action (enclosingWorkspace, the same rule
  recordedWorkspace uses: base, workspace folder, starter), and actingProfileFrom/clientFrom
  apply it below --workspace and SIM_WORKSPACE. 'directory' leaves SettingSource; whoami and
  the 404 wording read workspaceDirectory. sim login needs no opt-out. A starter directory
  now chooses the workspace for every command, as it does for source create.
- explicitWorkspaceSetting lives in config and is the one "flag then env" check.
- .sim/stored-edges.json digests blocks under the child results the get printed with: a
  workspace get/apply types each folder by the folders it answered with, a workflow get,
  create or apply into a workspace folder by that workspace directory's folders. The check
  compares its typed compile directly, so the untyped recompile is gone.
- A workspace check compiles each workflow once, with its env names, and reuses that compile
  for a workflow whose calls no child result types.

* test(cli): the typed child-result check fixture keeps only the response it asserts on

* fix(cli): name the compile input type so the CLI's declaration build emits

* fix(workflow-code): type child results through chains and stored() children, the same on CLI and server

- An offline compile (storedUnread) leaves stored() on a block the lock binds unread instead of
  refusing it, so a child holding a secret still compiles and types its callers; the server
  compiles a submitted child folder with its lock through the same folderCompileInput.
- resolveChildResults types each workflow's Response fields by its callees' fields, callees
  first (strongly connected components; a call within a cycle stays untyped), shared by the
  workspace check, the stored-edges records, the apply and the read paths.
- The stored read lifts a child's own calls to keys, so a forwarded field is typed as the
  compile types it.
- The primers say source commands refuse a -w naming another workspace.

* fix(workflow-code): a submitted child types with its stored block catalog; child results never fail a written apply

* fix(cli): the workflow primer says where a starter's workspace comes from until create

* chore(cli): import ChildResults from workflow-code, not through stored-edges

* fix(cli): the workflow primer gives a starter its create step instead of apply

* fix(cli): the primers keep the one-workflow-variable-per-apply rename rule
…es focus (#10393)

* test(desktop): instrument the Escape-on-Leave-dialog step (temporary)

* fix(emcn): a modal over a native surface accepts keys as soon as focus lands

* test(desktop): drop the Escape-step instrumentation
… both-renamed rule (#10395)

* improvement(cli): the source primers name the child-workflow call and scope the both-renamed rule to one block

* fix(cli): the primer retry example keeps waitBetweenTriesMs, which compileRetry requires
…#10396)

* fix(desktop): a fatal main-process error can no longer hang a quit

* fix(desktop): a window's late show after it closed no longer throws during quit

* fix(desktop): only a committed quit skips the recovery prompt
…subflow moves and rerun-from-block (#10399)

* fix(workflow-code): print an inferred-text JSON ref as a template so upstream code edits cannot flip its storage

A stored quoted token in a JSON field printed as the bare reference whenever refValueKind typed it
a string, including when that type was only inferred from a Function's code or a child workflow's
Response data. The printed source then left the field's storage to code in another block: an edit
there that made the type unreadable compiled every unedited reader bare, so a string value broke
the JSON at run time. The printer now prints a quoted token bare only when a declaration types it a
string (refDeclaresString), and as t`${ref}` otherwise, which stores quoted whatever the code returns.

The local check scoped W_JSON_REF_UNTYPED to blocks the lock does not bind, while the server reports
it for any field that compiles differently than stored; it now reports it on any block the edit
changed, including one an edit elsewhere makes compile differently.

* fix(executor): a bare string reference in a JSON field splices as a JSON string

A reference outside any string literal in JSON text (a Response body, table row data, an api
body) spliced a string value raw, so `{"error": <check.message>}` produced invalid JSON for any
message that was not itself JSON. Such a string now lands JSON-encoded; a string that already
reads as one JSON value (an agent's JSON answer, a numeric env var) still splices as written,
and a reference inside a string literal keeps its existing escaping.

The api block's request retry params now say what they retry (timeouts, connection resets, 429
and 5xx, for GET/HEAD/PUT/DELETE unless non-idempotent retries are on), what fails at once (an
unresolvable or refusing host, other 4xx), and that the block retry setting is separate and
reruns the whole block after any failure. Their titles read "Request retries", "Request retry
delay (ms)" and "Max request retry delay (ms)".

* improvement(cli): self-sufficient workflow export, atomic subflow moves, documented table columns

- `sim workflows export` keeps workspace bindings (table, knowledge base, child workflow ids) by default, so a table block prints its tableId; `--no-include-workspace-bindings` clears them for a copy to share. The stderr note pointing at `workflows outline` is gone.
- Moving a block into or out of a loop or parallel removes the stored edges the move leaves crossing the boundary and names them in `warnings`, instead of recording them as skipped items that made `atomic` refuse the batch. Edges the batch itself asks for across a boundary are still refused. Operations help states this.
- `tables create --schema` and `tables columns create --column` list every column field (required, unique, options, multiple, currencyCode, id, position) generated from the shape the server validates.

* improvement(cli): make rerun-from-block a first-class run loop

- A failed run (workflows run, runs get, runs wait) whose failure names a block now carries
  `next`: `sim workflows run <workflowId> --from-block <blockId> --source-run <runId>`, so an
  agent fixes the block, applies, and reruns only the failing part on that run's upstream outputs.
  Parallel-branch ids and ids outside the issued format get no command.
- The raw hidden `--run` JSON flag is gone; the run selection is built only from --manual,
  --trigger, --mock-payload, --from-block, --source-run and --stop-after.
- `workflows run --help` and the --from-block/--source-run descriptions say what the rerun reuses;
  both source primers name the rerun flags in Run and debug, within the 4096-byte budget.
- paused-run.ts becomes run-next.ts now that it names the next command for failed runs too.

* docs(workflow-code): describe the bare-reference splice rule the executor now applies

* improvement(workflows): reuse the shared block label, drop the dead flag-hidden option, and align the splice docs

* fix(workflows): address review on rerun hints, removed-edge warnings, retry delays and docs

- A failed run's error carries rerunFromBlockId: the failed block, or the outermost loop or
  parallel holding it, since a run cannot start inside one. Execute reads it from the graph the
  run executed, Get workflow run from the saved draft. The CLI prints next from it instead of
  the failed block id, so a failure inside a loop no longer prints a rerun the server refuses.
- Edge validation names why it dropped an edge (missing block, annotation-only, trigger target,
  scope); the removed-edge warning adds loop and parallel wiring advice only for a scope crossing.
- backoffWithJitter never waits longer than maxMs: jitter at the cap only shortens the wait, so
  an api block's max request retry delay is a real maximum.
- source check help: W_JSON_REF_UNTYPED scope sentence rewritten.
- cross-kind integration expects a child-result text ref printed as t`${...}`.
- Docs baseline hashes for the operations apply edge help fence.

* test(utils): drop the retry test's redundant mock-restore hook

* fix(api): keep rerunFromBlockId out of the resume response's error schema
…at store a reference anew (#10400)

The offline check reported W_JSON_REF_UNTYPED on every untyped bare reference of a block whose
digest changed since the get. Renaming a block's display name changes its key, so the block and
every block reading it compiled to a new digest, and each untouched untyped reference in them was
reported although its field stores exactly what it stored. The server compares per field, through
the apply's renames, and stays quiet there.

A get or apply now records in .sim/stored-edges.json the JSON fields of the printed source that
hold untyped references (the text each stores and those references; CompileResult.untypedJsonFields),
and the compile reads them back as CompileInput.storedUnreadUntypedFields beside the lock. Such a
reference stays quiet while its field compiles to the same text through the lock's renames, as
one the stored workflow holds does against `stored`. A field whose text changed, or a reference
that was typed when printed (a Start input or a Function's code an edit changed), is reported.
Without the record or the catalog the source was printed with, the check keeps the block-level
rule; --strict still reports every one.

This branch was successfully deployed

1 active deployment
Preview — 48f78875 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant