#10418 renamed public v2 names with no alias, and the v2 schemas reject
unknown keys and values, so clients written against the earlier names now
get 400s. Restore them as deprecated aliases at the contract layer:
- execute: run.source "manual" (now "draft") and run.entry.useMockPayload
(now sample) are accepted and folded into the current names
- PUT state, POST operations, and the workflow/workspace source applies:
?dryRun (now ?dry) is accepted, and dryRun is sent beside dry in the
response; the source-apply rate bucket honours it too, so a ?dryRun
request is charged as a dry run
A request that sends both names with different values is refused. The
OpenAPI spec marks the old names deprecated, and the CLI generates no flag
for them.
* fix(workflow-code): final pre-release audit of workflows as code
- runnable next for an untested publish; no {…} in any next.command
- check --output json stays one document outside Mothership
- side effects before the result; no repeated deployments-write findings
- workspace apply prints no human plan in machine output
- editLoop follows the surface's primer; quoted --dir and root
--profile/--endpoint in suggestions
- a refused --run input maps like a failed run; noop and period wording
- key-less --run, missing --folder, swallowed --allow/--mock, batch-delete
ids and operation_type refusals say what to type
- source find names the reading line
- W_CODE_FILE_REF_QUOTED for a quoted tag in a Python function file
- primer, help and docs: --allow/--draft, columns update, sandboxed code
runs for real in a dry run, GUIDE-advanced in workflow directories
- one isMachineFormat, readRunInput/testRunDraft, renameWarningOptions,
heldAction; drop assertNoReservedFlags and the never-shipped stubbed-call compat
* fix(workflow-code): review round 1 — plan in machine results, one error document, file-path refs, find matcher
- workspace apply: a machine result carries the planned changes it no longer prints
- a bulk total miss carries owed rename warnings as the refusal's note; an all-failed
invitation batch is one document too
- W_CODE_FILE_REF_QUOTED skips a file's .path, which the run splices raw; the predicate is
shared with the resolver (isFilePathReference)
- createCommand quotes its directory
- find: a property access is no reader; <key[0]> reads its line
- batch-delete counts the parsed --row list
* fix(workflow-code): review round 2 — invocation in reader hints, full create line, @@ literal ids
- every action runs as its command (runInvoked), so a starter's create hint from the
directory readers keeps the root --profile/--endpoint the caller typed
- a starter's create next keeps --name and --folder
- the batch-delete count reads @@id as a literal, by the rule readArgumentSource uses
* fix(cli): carry every notice on a successful result inside JSON and YAML
A server-side clip, a page envelope fact (billing logs scope), and renamed
command and flag warnings now travel inside a JSON or YAML result through
the one placement #10452 introduced, so `--output json 2>&1` stays one
document. Tables and text keep each line on stderr. The 429 retry notice
prints only on a progress terminal, like the other wait lines.
* fix(cli): keep rename warnings owed until a result prints, and the 429 notice for human output in CI
* fix(cli): count rename warnings delivered once written to stderr, so a failed render does not repeat them
* fix(cli): carry result notes inside JSON and YAML results
* fix(cli): record the blocks get help change in the docs baseline
* fix(cli): record the changed blocks get fence's byte length in the docs baseline
* improvement(sim-cli): clearer run, parse and JSON-shape refusals
* improvement(sim-cli): keep typed options in corrected commands, restore primer write warning
* fix(sim-cli): name root flags that took a value, echo negated booleans once
* improvement(sim-cli): move a positional @file input to its JSON flag
* improvement(workflow-code): sim workspaces source apply --run tests workflows, gating deployments/
- `apply --yes --run <key>='<input>'` (repeatable, JSON or @file): after the apply, dry-run
each named workflows/<key>/ draft as `sim workflows run --dry --input` does; one `runs` entry
each in the result; a run that does not complete exits 1, maps its failing block to file:line,
and leaves the applied drafts in place.
- With --run, deployments/ is applied in a second write only after every run completed, so a
`live: 'draft'` deployment publishes only a tested draft.
- Refused before anything is sent: beside --dry or --to, an --only without workflows, an
unknown key (naming the keys there), a repeated key, or input that is not JSON.
- Primer, AGENTS.md pointer, `source --help`, the advanced guide and docs teach the one-call loop
`check && apply --yes --run <key>='{…}'`.
* fix(workflow-code): review round 1 for workspace apply --run
- Gate a managed deployments/ on the runs even when no deployment file is left, so a failed run
never undeploys a workflow.
- Read the deployments write before the runs and refuse it when a workflow or deployment file
changed while they ran, so only tested drafts deploy.
- Drop the first write's W_DEPLOYED_DRAFT_CHANGED for deferred deployments before it prints.
- Help names runs[].sideEffects.unchecked and .omitted.
* fix(workflow-code): review round 2: judge a held deployments write against the whole apply
* fix(workflow-code): review round 3: refuse deploying a workflow edited between the first write and the runs
* fix(workflow-code): review round 4: repair a kept chat when an earlier apply's draft goes live
- A stored chat output reads by the block's name in the draft, else in the live version it serves,
so a chat whose output block an earlier apply re-created is rewritten when that draft deploys
(the apply --run deployments write), instead of keeping the deleted block id.
- Help says the test run executes code and sends GET fetches; the primer and pointer say one
--run per changed workflow.
* fix(workflow-code): review round 5: check a kept chat's outputs against every draft a deploy publishes
* improvement(workflow-code): one primer for coding agents and Mothership, pre-installed TypeScript
- source-primer: a cli/chat surface; the chat primer stops the shell loop at apply and tests and
deploys through sim_cli, with no workspace source or --run; print-source-primers emits chat.workflow
- the CLI serves the chat primer and source help where its host is Mothership: SIM_CLI_HOST=mothership
in the workbench env (sandbox-session) or host on runEmbeddedCli (sim_cli)
- command inventory: workspaces source check is mothershipUnavailable with the rest of its group
- source check reads the pinned TypeScript from SIM_TYPESCRIPT_DIR before installing it, and a
failed check ends stderr with its first error
* fix(workflow-code): deploy only the tested draft from chat, resolve SIM_TYPESCRIPT_DIR, drop ./host from the published manifest
* fix(workflow-code): keep the test-resource warning on --allow, concrete table commands in the chat help
* improvement(workflow-code): fewer agent turns on the source loop: apply --run, get by name, tail-safe output
- `source apply|create --yes --run '<input>' [--deploy]`: apply, dry-run the saved draft with
that input, deploy only if the run completed; one result, exit 1 at a failed run with the
failing block mapped to file:line. Reuses the `workflows run --dry` request and the deploy step.
- `source get <workflow>` takes an id or the exact name; none or several matches are refused
with each candidate's id.
- Help chains `get … && cat .sim/AGENTS.md`, so the primer arrives with the get.
- Primer: Retry, Child (`runWorkflow`) and api `.error` lines; edit loop is
`check && apply --yes --run '{…}' --deploy`.
- Output survives `| head` and `| tail`: apply opens with `summary` and ends with
errors, warnings, live, next; block lists are one string per block; deploy ends with `live`;
a lint report keeps only its findings in every format.
- Shorter `sim --help` and `source --help`.
* improvement(workflow-code): keep apply's next runnable: pinned deploy, tested deploy named in its reason
* fix(workflow-code): review round 1 for apply --run and get by name
- get <name> reads every page of matches before deciding exact or ambiguous.
- A create whose --run fails names the apply of the created workflow next.
- A failed test run carries the server's rerun from its enterable block.
- Starters are taught create, not apply (primer, AGENTS.md pointer, root help);
--allow keeps its test-resources warning; the standalone test run includes --input.
- A deploy answering lint: null prints no lint field.
- Record the intended `source get <workflow>` usage change in the docs baseline.
* fix(workflow-code): review round 2 for apply --run and get by name
- get <name> --dir looks the name up in the workspace the directory was read from.
- A starter's next keeps --run and --deploy.
- Guide: flags that imply the draft, and sideEffects.omitted before trusting a list.
- Drop the test that compared two help strings.
* fix(workflow-code): review round 3: a stubbed side effect's request is listed when present
* fix(cli): comma lists, stale table types hint, and block version note
- Every id list flag reads repeated, space-, comma-separated and JSON-array
values alike (`--row-ids a,b` deleted nothing); dependency specifiers and
folder paths keep their commas.
- An unknown option names the commands one group down that take it, by any
spelling (`tables batch-delete --row-ids` points to `tables rows batch-delete`).
- `blocks get table` notes on stderr that it reads as table_v2, the type to add.
- `workflows source check` hints `source status` to refresh table types when a
row write names a column the last get's types lack.
* fix(cli): explicit list value policy and an unambiguous stale-table hint
- List flags declare how a value reads (`listValues`): ids split on commas,
`text` (dependencies, output selectors, folder paths) keeps commas, and
`fileReferences` keeps a `files/` path whole; every list decodes a JSON array.
- `workflows runs get --select-output` reads its values with the same parser
before resolving block names.
- The stale-table hint names a table only when exactly one stored table is the
printed row, reads single-quoted keys, and shell-quotes the directory.
* fix(workflow-code): decode JSON-text input mappings, keep wiring beside its blocks, add source find
- A Workflow block's inputMapping (and any native object/list field) stored as JSON text by the
operations route printed as a t`` template that never type-checks; an untouched directory
passed only because check suppresses errors in files still as get wrote them. Canonicalize
now decodes the container and materialize keeps the stored text encoding. Deploy-change
detection treats the two encodings as one value.
- The printer emits each wiring statement under the last-declared block it names, so a block's
edges sit next to it instead of ~1000 lines away in a 192-block workflow.
- New `sim workflows source find <block>`: a block's code with line numbers, function file,
incoming/outgoing wiring and readers, offline.
- The operations batch cap error says how to split a larger edit.
* fix(workflow-code): exact JSON-text equivalence, per-edge find locations, layout-aware tests
- Decode JSON text, and treat it as unchanged in deploy-change detection, only for
input-mapping fields, whose runtime parses both forms (JSON_TEXT_CONTAINER_TYPES). Other
container fields such as a checkbox list compare as stored again.
- Compile records where each edge is written (edgeSpans), and `source find` reports every
edge at its own statement.
- `source find` reads function-file references the way compile does (codeFileRefs: parsed
chains plus stored tags) in the file's own language.
- Integration edits follow the interleaved wiring layout; docs baseline takes the new CLI
reference code examples.
- env-flags: the five server-only switches share resolveServerSwitch instead of five copies of the server/projection branch.
- deployment-shape: isSameDeploymentShape compares every top-level field, so a new shape field cannot be missed and its reseed silently dropped; covered by a test that flips each switch.
- Docs: drop the stale NEXT_PUBLIC pairs sentence in authentication, fix the Slack trigger variable count and wording, and point the upgrade note at the right reference.
- Contract comment and a test mock message describe current behavior.
* improvement(workflows): dry-run placeholders echo the writes they stand in for
A stubbed write was answered with a generic sample of the tool's outputs, so a
Function reading a dry-run table upsert's row.data.<field> got null and an
agent testing its workflow concluded its logic was wrong.
A tool may now declare a pure dryRunOutput(params) on its config: the outputs
the request alone determines. It receives the params with every secret masked
(as sideEffects.stubbed[].request is built), its result is redacted like that
request, and the sample of the declared outputs fills whatever it leaves out
(ids, nested fields, each array item from the sample's first). Tools without
it keep the sample.
Declared for table insert/upsert/update row (row.data echoes the written data;
update keeps the named row id) and batch insert (rows and insertedCount), file
write (requested name, text byte size), and knowledge create document (the
document name as stored). Filter updates and deletes are left out: their
outputs depend on stored state.
* improvement(workflows): placeholders follow the declared output schema and redact once
A dry-run echo was merged into the sample by the sample's value shape, so a
table row declared as bare json came back with the generic sample keys
(name: 'Sample Object', status: 'active') beside its data, and every batch row
shared the id 'item_1'. The echo is now laid over the sample by the declared
schema: field by field where an output declares properties, item by item where
it declares array items, and whole anywhere else (an undeclared field is
dropped). The table hooks return the row as the routes emit it (data, and
placeholder id, position and timestamps, distinct per batch row) with no
ignored columns; update's row holds only the fields it patches. Knowledge
create echoes only the document name, and file write sizes its text with
utf8ByteLength.
Value-based masking replaced every occurrence of any string under a
secret-named field, however short, so a one-letter reset_token column turned
'a@b.co' into '[REDACTED]@b.co' in the request and in what downstream blocks
read; worse, a value masked inside a run secret left the rest of that secret
unmatched by the registry. Values shorter than the repo's identifying-literal
floor (isNonIdentifyingSecretLiteral) are now masked only by their field,
password fields are masked by name like credential-named ones, and the
registry projection runs before key and value masking.
A stubbed write's request and echo are redacted in one pass, one PII call per
write; when that pass cannot vouch for the pair, both are null.
* docs(skills): describe the placeholder overlay for arrays and requested file names
* feat(workflows): side-effect-free dry runs
`sim workflows run --dry` (v2 execute `run.dry`, manual runs only) runs the
saved draft without sending its writes. Every tool call not declared `read`
(table writes, sends, HTTP calls, custom tools, and every MCP tool, which
declares no effect) is answered with a placeholder shaped like the tool's
outputs and listed in the run result's `sideEffects.stubbed` with the request
it would have sent: an in-process operation's input or an HTTP call's method,
URL and body, with the credentials the call resolved and the run's resolved
secrets redacted. Reads, model calls, conditions and credential resolution run
for real. Function blocks run their code and are listed in
`sideEffects.unchecked`. Mothership and Pi blocks, which act outside the tool
seam, and Human in the loop and Wait blocks, whose paused run would resume
without the dry run, are answered whole. Dry runs are logged under the `test`
trigger and are synchronous only (no stream, async or waitTimeoutSeconds).
The interception is one check in `executeToolImplementation`, after
credentials resolve and before dispatch, so block and Agent tool calls are
covered alike. The policy rides on the execution context as `sideEffects`,
which every child inherits: Workflow blocks, custom blocks, and workflows or
custom blocks an Agent calls as tools, so a child's writes stay stubbed.
`run.allowBlocks` (`--allow <block>`) sends one block's writes for real and
lists them in `sideEffects.allowed`; `run.mocks` (`--mock <block>=<json|@file>`)
answers a block with a fixed output through the existing mock seam, with or
without `--dry`. Both resolve blocks by id, name or key like `--stop-after`.
Workflow tests now answer the writes their mocks do not with the same
placeholders. A failed dry run's `next` rerun keeps `--dry`.
The source primers, `sim workflows source --help`, `run --help`, the CLI,
build-and-run and coding-agent docs, and the integration skills now test with
`--dry`.
* fix(workflows): close dry-run escapes and secret exposure found in review
A dry run now sends no externally visible write and keeps nothing beyond its
own `test`-trigger log:
- Test runs raise no workspace event (emitExecutionCompletedEvent) and are
left out of alert-rule statistics (excludeEventlessExecutionsCondition), so
a dry run never starts a Sim-trigger subscriber.
- Test runs do not bump workflow.runCount or lastRunAt.
- Agents read memory but write none under a side-effect policy (no turn
session, no appended messages).
- The policy decides a write before a hosted key is drawn, so a stubbed write
spends no rate-limit slot; credential resolution still runs.
- Files a dry run uploads to a provider Files API are deleted once the model
call settles.
- Custom blocks, on a canvas or called by an Agent (deployed_block_executor),
are answered whole and never run, so nothing lands in the publisher's
workspace and none of its internals reach the consumer.
- Code (function_execute) runs for real for a Function block or an Agent and
is listed unchecked with a reason naming the caller; Condition evaluation is
not listed.
- run.mocks requires run.dry. Allowed and mocked blocks are keyed by the run's
own workflow and block; --allow on a Workflow or custom block is refused.
- A tool's nested executeTool calls (postProcess) run in the caller's
_context, so an allowed block's follow-up writes are allowed too; Pi's Sim
tools carry the Pi block id.
- A test run is refused as the source of a non-dry from-block run.
- A failed dry run keeps its sideEffects, compacted inside the result's own
error mapping; the run result and `runs get` report the dry run's allowed and
mocked blocks (`dryRun`), so every `next` rerun keeps --dry, --allow and
--mock (a workflow test's run keeps --dry).
- sideEffects requests: MCP and custom tool calls are recorded by their
arguments only (never envVars or other run context), password-field values
are masked whatever the field is called, and the workspace's PII redaction
is applied; a request that cannot be vouched for is null.
Contract and CLI: mocks are typed as objects, `omitted` is counted per list,
`allowed` is deduped per block and tool, blockId/block are null instead of
empty, the policy is WriteStubPolicy with decideWrite/answerBlock and mocks
live on it (block-mocks.ts and the service's testHooks param are gone),
`--dry --async` says to drop --async, and the CLI's repeated-option collector
and plain-object check are shared. The workflow-dir guide names `apply
--dry-run` and `run --dry` apart, and the primer's run line is reworded; its
other rewordings from the previous commit stay because the 4096-byte primer
budget forces them.
* fix(workflows): enforce dry-run guarantees at the state layer and stop persisting mocks
- A test run (trigger test: dry runs and workflow tests) is never the source of a run that sends
its writes: getExecutionStateForWorkflow refuses one unless the caller passes allowTestRun (only
a dry run from a block does), and getLatestExecutionStateWithExecutionId skips them. This
covers the v2 use case, the editor execute route (named and latest) and Copilot
run_from_block/run_block, and replaces the per-surface check.
- A test run is never resumed: resume admission refuses an execution logged under test, the CLI
names no resume command for one, and workflow tests answer Human in the loop and Wait blocks
whole like dry runs, so the pausingBlocks option is gone.
- run.mocks are data: a field starting with _ (_pauseMetadata and other executor control fields)
is refused, and so is a mock of a locked block or one inside a locked container.
- Mock outputs are no longer persisted: the log records only allowed and mocked block ids.
readWorkflowRun reads them from the execution data the status read already materialized (so
they survive externalization), validated with the contract schema and gated like other
execution data. The CLI rerun keeps --dry and --allow; --mock values are passed again.
- Provider Files API uploads register their removal as soon as the provider names the file, the
caller owns the list, and the try/finally starts before the first upload, so a dry or test run
deletes every file that landed, including on a partial or Gemini processing failure.
- A dry run never rejects a large inline response, so its result always carries sideEffects.
- Nested tool calls inherit the caller's _context only under a side-effect policy.
- Cleanups: one response-too-large mapping, request passed directly to answerUnsentWrite, one
run-context param set, one log lookup for the source run, recordSettledRun reads the trigger
from the LoggingSession, a TEST_TRIGGER constant, tool special cases in one declarative map,
password fields indexed once from the registry, agent memory decided once, and toArray in the
CLI. Allowing an Agent covers only its own tool calls (documented; the CLI notes when an
allowed block sent nothing).
* fix(workflows): treat mocks as data only and list every code execution in a dry run
- One rule for mocks (run.mocks and workflow-test mockBlock): refuse any _ field and the
output fields the trace span and bill are built from (cost, tokens, model, providerTiming,
toolCalls, executionData, childTraceSpans, child workflow ids); block samples omit them too
- List Condition expressions and While/Do While loop conditions under sideEffects.unchecked,
once per block, via a new SideEffectPolicy.ranCode
- Upload provider Files API attachments only after the cached-final early return
- Keep a failed dry run's sideEffects when compacting its error output fails
- Read the paused run's trigger in the same locked query; memoize getBlockByToolName and
password params lazily; drop the test-only removals default; simplify answered-block and
tool decisions; narrow the editor route try
- Tests: durable-state check instead of sleep, specific refusals, positive controls, transport
guard on the hosted-key test, success-path upload cleanup
* test(mothership): record the run status's dryRun field in the content-delivery baseline
* fix(workflows): redact before describing dry-run writes and keep memory reads
- Build a stubbed write's request from params whose secrets are already masked
(credential fields and password fields by field and value, collected at any
depth, then the run's resolved secrets by its registry), so no builder
transformation such as base64 document content can carry a secret; the
payload pass and registry projection stay as defense in depth.
- Authorize and check an MCP write against the server's tools (checkOnly) before
answering it, so an unusable one fails in a dry run as it would live.
- Let a dry run's Agent read its stored conversation (rich history and the memory
retrieval tool) without opening a turn or writing memory.
- CLI: refuse --mock __proto__, and count omitted entries in the dry-run summary.
- Contract: run.mocks emits maxProperties 50; texts now say the rerun record keeps
only mocked block ids while the log shows a mocked output redacted like any
other block's.
- Primer and guide name sideEffects.unchecked and warn that live runs write real
data; integration skills mention the 50-entry cap and null requests.
* fix(cli): keep the primer retry example compilable
* fix(workflows): keep dry-run describe failures and MCP checks side-effect free
* fix(mcp): a read-only discovery preserves the OAuth grant
* fix(mcp): read-only discovery takes every shared-state guard best-effort discovery takes
* improvement(tools): declare a read/write effect on every tool
Every ToolConfig now declares `effect: 'read' | 'write'`. `read` means the
tool changes nothing outside Sim, so a dry run may execute it; anything that
creates, updates, deletes, sends, charges, triggers, persists, or depends on
its params is `write`. It replaces `assistant.effect`, which Assistant's
policy, binding, review, retry, and mothership payload now read from the tool.
The label was seeded once across all 6,286 registered tools (3,555 read,
2,731 write): GET/HEAD read, PUT/PATCH/DELETE write, and POST and in-process
operations from their documented semantics. Six GET tools that write after
reading carry a `// tool-effect:` justification.
check:tool-effects loads the registry and fails a tool without an effect, a
static verb that contradicts its label without a justification, and a stale
or unattributable justification.
The label is public: generated tool metadata, the v2 tool and block catalogs
(`sim blocks get`, `sim tools`), and the source block catalog (block `effect`
and per-operation `operationEffects`, shown by `sim workflows source params`).
* fix(tools): relabel side-effecting reads and tighten the effect definition
`read` now means the call changes nothing outside Sim: no create, update,
delete, send, post, trigger, enqueue, consume, or mark-read; no job, run,
conversation, history item, or other resource left in an account; no
credit-funded reveal; no external delivery. Usage billing for the call itself
does not count. `write` is anything else, including input-dependent effects.
The definition is stated the same way in ToolEffect, the v2 catalog schema
(and OpenAPI), the source catalog types, check:tool-effects, the skills, and
CLAUDE.md, and no longer promises dry-run behaviour that has not shipped.
54 tools move from read to write: provider jobs and runs (Firecrawl, Bright
Data, Exa, Parallel, You.com research, Harmonic, LogRocket, Coda and Slack
List exports, CloudFormation drift, CloudTrail Lake queries, NetSuite async
batch reads), media generation and transcription that persist in the provider
account (video, image, Higgsfield, ElevenLabs TTS/STS/SFX/isolation/STT,
AssemblyAI), parse runs kept by Extend, Reducto, and Pulse, Apollo people
reveals, Wiza reveals, Icypeas records, ChatCBI conversations, Fivetran setup
tests, Slack reader DMs, Reddit mark-read, RevenueCat get-or-create, and
Upstash EXPIRE/INCR/INCRBY. The five GET tools carry `// tool-effect:`.
check:tool-effects also flags a read tool whose function-valued method can
return PUT, PATCH, or DELETE. Unregistered access ids (model providers) count
as write in the source catalog too, matching the block detail.
* fix(tools): relabel contact reveals, RTR commands and mssql query as writes
Revealing a person's contact data (email, phone) for credits is `write`;
company/firmographic lookups and verifications that only spend lookup
credits are `read`. ToolEffect, the v2 catalog schema (and OpenAPI),
check:tool-effects, the add-tools, add-integration, and
validate-integration skills, and CLAUDE.md now state it that way.
37 contact reveals move to write: Prospeo, ZoomInfo, Findymail, LeadMagic,
Datagma, Dropcontact, Enrow, and Hunter email/phone finders and person
enrichment, Hunter domain search, Firecrawl enrich, and the Enrich, RB2B,
Sixtyfour, People Data Labs, and PitchBook person contact lookups. The 14
GET tools among them carry `// tool-effect:`.
crowdstrike_execute_rtr_command is write: the read-tier eventlog family
includes export and backup subcommands that write files on the host, and a
queue_offline session enqueues commands.
mssql_query is write: its only guard is the lexical read-only screen, with
no server-enforced read-only transaction. The screen now also rejects
NEXT VALUE FOR, which advances a sequence from inside a single SELECT.
oracledb_query is write too: its read-only transaction does not bind a
function with an autonomous transaction or a package such as UTL_HTTP
called from the SELECT.
* improvement(tools): simplify effect projection, policy input and rule text
* improvement(tools): read tool metadata once in the review provider and drop a history phrase
* fix(tools): starting a provider query or job is a write; operations of unregistered tools count as write
* docs(tools): scope the job rule to asynchronous executions, not synchronous read-only queries
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.
* 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
* 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
* 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
* 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
* feat(logs): record which deployment version of a child workflow ran
A deployed run calls each child workflow's active version, and the handler
already loads that version id to authorize the call, but the parent trace
only kept the child's snapshot id. Snapshot ids are not a stable graph
identity: orphaned-snapshot cleanup and block migrations can mint a new id
with no redeploy.
Spans now carry an optional childDeploymentVersionId:
- on a workflow block's span, on success and failure, for deployed children
- on a workflow_executor Agent tool span after a successful call
It is taken only from workflow blocks and that tool, so another block or tool
returning the same key records nothing. Draft children and custom blocks never
get one. The v2 log contract documents the field.
* chore(sim-cli): regenerate v2 API types for childDeploymentVersionId
* fix(logs): keep child versions honest across tools, workspaces and the CLI
- A custom tool titled workflow_executor loses its custom_ prefix before the
span factory sees it, so its result could claim a child version. The Agent
drops the key from custom tool results where the prefix is stripped.
- The version is recorded only after the child passes the same-workspace
check, so that refusal never names another workspace's version.
- `sim logs get --trace` text output shows the child version.
* fix(agent): only drop the child version from a custom tool named like the workflow tool
* fix(scim): scope the managed-membership lock to workspaces the member's directory groups map
* fix(scim): keep tracked directory grants locked until reconciliation withdraws them
* test(scim): cover the mapped-workspace lock boundary in the SCIM e2e
* chore(workflow-code): round 11 package fixes for workflow-code, workflow-sdk and workspace-code
- compile: keep refs to unknown outputs out of W_JSON_REF_UNTYPED past the warning cap
- babelMessage lives in babel.ts and strips (line:column) from code-file syntax errors
- SDK_MAJOR defined once in workflow-code/sdk; workspace-code and the CLI starter use it
- drop SPECIAL_BUILDER_KEYS, dead subflow edge branches, duplicate env/stored/key helpers
- isModelField, RESOURCE_KEY_HINT, isStoredCall shared; casts narrowed
- builder snippets fill McpServerRef, FolderRef and FileRef params
- doc fixes: MCP url identity, auth schemes, not-executable message, limits and TSDoc
* chore(workflow-code): server lane — dedupe source refusals, shared refusal codes, human subject for source scope, drop legacy-id catalog projection, doc fixes
* chore(workflow-code): cli lock, workspace binding and exit-code help from one table
- workflow check and status hold the command lock (read-only), so they never read a
directory an apply or get is rewriting; check help names exit 10
- recordedWorkspace binds check, create and params to the workspace a directory records
- workspace check: no login keeps its AUTH_REQUIRED refusal (exit 13); drop requireCachedCatalog
- typeCheckWorkspace shared by the workspace check and a workflow folder check
- status commands declare no apply operation
- every source command's exit-code help built from the one table, status included
- drop renamedVariables; reword apply's workflowId argument, name SOURCE_WORKFLOW_MISMATCH
- workspace get never exits 7; INTERRUPTED_EXIT_CODE defined once
* chore(workflow-code): the workflow guide's file-shape example names the SDK major from its constant
* chore(workflow-code): simplify round 11 — the reporter records where each code was reported, one env-name pattern, one createdBy, recordedWorkspace reads the flag
* test(workflow-code): the warning-cap test derives its count from FINDING_LIMITS and asserts the cap was hit
* fix(workflow-code): status help names exit 9, a 429 that outlasts the retries
* 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
* 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
* 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
* 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
* 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
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.
* 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
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.
* chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers
* chore(providers): share one unpriced-model builder across discovered providers
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.
GET /health is unauthenticated and publicly reachable, and returned this pod's
live connection count. It now returns {"status":"ok"}. The connection counter
had no other caller, so it is removed from the room manager.
POST /api/v2/tools/{toolId}/execute now authorizes the caller-supplied credentialId against the request workspace before dispatch, so a credential from another workspace cannot run under the request workspace's allowedIntegrations and deniedTools.