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 46 commits into
mainfrom
staging
Open

waleedlatif1 wants to merge 46 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 24, 2026 8:00pm 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
waleedlatif1 and others added 2 commits November 24, 2026 10:13
* fix(workflow-code): release review follow-ups for type-check suppression, failure attribution and error ports

- source check: a type error in a file still as the last get or apply wrote it is left out only when that file had it then, checked by a second tsc run against workspace.d.ts as that get or apply left it (only when such an error exists and the declarations changed)
- summary marker encodes each code point, so names past the BMP never share a marker
- exit 6 in the workspace guide names tables and where each kind is unlocked
- the workflow loop help chains the test run with --input, as the primer does
- v2 log detail and the status read share one run-failure reader: a workflow-returned finalOutput.error is no longer taken as the run's error
- a block without an error port has no error output, so <start.error> is an undeclared input
- v2 log failure descriptions
- resource-keys race tests start the competing claim only after the held insert

* fix(workflow-code): a table declaration edited since the last write types from the kept manifest in the type check's base
…01 and the NIST AI RMF? (#10365)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
Bumps the actions group with 3 updates in the / directory: [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login), [actions/setup-go](https://github.com/actions/setup-go) and [oras-project/setup-oras](https://github.com/oras-project/setup-oras).
Bumps the actions group with 1 update in the /.github/actions/image directory: [useblacksmith/setup-docker-builder](https://github.com/useblacksmith/setup-docker-builder).


Updates `aws-actions/amazon-ecr-login` from 2.1.7 to 2.2.0
- [Release notes](https://github.com/aws-actions/amazon-ecr-login/releases)
- [Changelog](https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md)
- [Commits](aws-actions/amazon-ecr-login@03f1aad...7290e21)

Updates `actions/setup-go` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@b7ad1da...d8cbb80)

Updates `oras-project/setup-oras` from 2.0.3 to 2.0.4
- [Release notes](https://github.com/oras-project/setup-oras/releases)
- [Commits](oras-project/setup-oras@5e2f248...ac73509)

Updates `useblacksmith/setup-docker-builder` from 2.3.0 to 2.4.0
- [Release notes](https://github.com/useblacksmith/setup-docker-builder/releases)
- [Commits](useblacksmith/setup-docker-builder@06dd9c8...9657a6e)

---
updated-dependencies:
- dependency-name: aws-actions/amazon-ecr-login
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/setup-go
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: oras-project/setup-oras
  dependency-version: 2.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: useblacksmith/setup-docker-builder
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…Explained (#10364)

* feat(library): n8n Pricing: Cloud, Self-Hosted, and Enterprise Costs Explained

* Pi Babysit: address PR #10364 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…Owners Pay (#10367)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…s Glean Cost? (#10368)

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…ts Cost Less (#10366)

* feat(library): Workato Pricing: Costs, Cost Drivers, and When AI Agents Cost Less

* Pi Babysit: address PR #10366 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…etry and child result rules, ops help, column types, queryRows paging) (#10361)

* improvement(workflow-code): v9 benchmark findings (table row shape, retry and child result rules, ops help, column types, queryRows paging)

- Table blocks declare row/rows as {id, data, position, createdAt, updatedAt}: check flags row.<column> (W_UNKNOWN_OUTPUT_PATH, hint names the members) and `sim blocks get` publishes nested output shapes (OutputFieldDefinition gains properties/items)
- Primer: block retry vs an api block's retries, a child workflow's c.result.data.<field>, run inputs in the workspace loop
- operations apply help: same-batch renames, connections {} and parentId moves, inputs replace whole fields, nested retries, the table row path
- Column types named in tables create/columns create help, from the contract
- table.queryRows note: no limit maximum, page by nextCursor
- workflows source help points tables at workspaces source
- Generated special params types name the params core.d.ts adds (HumanParams: inputFormat)

* fix(workflow-code): declare orderKey and executions on table query and insert rows

query_rows, batch_insert_rows and insert_row present rows with presentNamedTableQueryRow, which adds orderKey and executions; the declared row shape omitted them, so a check reading either warned W_UNKNOWN_OUTPUT_PATH.

* fix(tables): state the public column types as one sentence in the column inputs' help
SOC 2 Type II covers the Security criterion only (first Type II, Jul 6 - Oct 6, 2026). ISO 27001 certification is in progress, not issued.
…ebKit's cancelled RSC fetches (#10373)

* fix(e2e): isolate markdown-viewer checks from a deleted fixture and WebKit's cancelled RSC fetches

* fix(e2e): match cancelled RSC fetches by parsed origin and keep a failed paste proof's page
…10370)

* feat(slack): stream an Agent's tool-call timeline without its text

Slack triggers gain streamTimelineSources (Agent blocks, including child
workflows) and streamToolLabels. A timeline source streams through the
executor as usual, but only its tool steps and optional thinking reach
Slack; its text is drained and never posted. The first message of an
execution is shared by timeline steps and the first answer, and is
owned and stopped by the controller. Deployed configs without the new
fields read as empty, so no redeploy is needed.

* fix(slack): keep per-invocation outcomes, offer structured Agents, unique task IDs

- The shared message settles from the invocations that wrote to it, and
  each invocation succeeds only if the ones before it did, matching how
  replies settled before the shared message existed.
- The progress picker offers every Agent, including one whose response
  format replaces its content output.
- Task IDs include the execution order inside a child workflow instance,
  so two Agents there never update the same step.
- Tool labels and display titles ignore inherited object properties.
- Fix the CI audits (toRecordOrNull, unused export) and test types.

* fix(slack): serialize appends to a message shared by several invocations

* test(slack): drive the append-ordering test with microtasks, not timers
@waleedlatif1 waleedlatif1 changed the title v0.9.66: pro free trial, workflows as code clean slate, whitelabel cleanup v0.9.66: pro free trial, workflows as code clean slate, slack progress timelines, whitelabel cleanup Nov 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 82b66b1a Deployed Nov 24, 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