Studio editor contracts¶
Studio's editor is extended and driven through a small set of frozen contracts: the step details registry every step kind registers in, the test data document that keeps inputs, pinned outputs and scripts, the Execute step requests that run a step offline or in an environment, and the storage and keyboard conventions Studio follows. This page is the reference for each.
Who it is for. Contributors who add a step kind, an AI step or an editor feature, and integrators who read or write Studio test data. Status. Version 1 of each contract is frozen. Studio and the platform add the editor views and endpoints described here in later releases, and Studio starts applying the storage rules then too; the types, the JSON Schema and the models already exist, so code can be written against them.
Field casing¶
| Where | Casing |
|---|---|
Platform API bodies, query parameters and error result payloads |
snake_case |
The definition language, Studio documents (test data, canvas), and the Studio host's /studio/local/* routes |
camelCase |
| A Studio document stored on the platform | camelCase inside a snake_case envelope |
A TypeScript interface follows the wire body it describes, so those for platform
bodies, such as StepTestRequest, are snake_case. One host route answers in the
platform's shape: POST /studio/local/decision/evaluate returns
matched_rule_ids and used_default.
Step details registry¶
The registry is studio/src/app/editor/ndv/registry.ts (ndv is the code name
of step details), version 1 (NDV_REGISTRY_VERSION). Step details, the canvas
and the Add a step panel read it; nothing else extends step details.
| Function | Registers |
|---|---|
registerKind(descriptor) |
A step kind: names, icon, role, Add a step category, ID prefix, defaults, language feature, expression fields, nested step lists, labeled outputs, summary, output schema, whether its output can be pinned, the test data script it needs and how it runs in an environment |
registerParameters(registration) |
The component that edits a kind's parameters, or one AI agent slot's (subNode), loaded on first use |
registerSubNodes(kind, slots) |
The slots under an AI agent (Model, Memory, Tools, Output): whether each is required and how many entries it takes, chip data, one chip per entry of a many-valued slot, and the entries the scoped Add a step panel offers, grouped, with a reason when one can't be used |
Registering the same kind, the same parameters or the same kind's slots twice
throws RegistryError, as does an invalid ID prefix, a slot listed twice or a
slot maximum that isn't a whole number of at least 1. Registration modules are
listed in studio/src/app/editor/ndv/kinds/index.ts and imported lazily; each
exports register(). Studio awaits loadKindRegistrations() before it reads
the registry. The modules load in parallel and register in list order, so the
registry lists kinds the same way however the chunks arrive. A module that fails
to load is tried again on the next call, after the modules that did load have
registered, and a module is never registered twice.
Built-in kinds¶
Role and category are the registry's NodeRole and PanelCategory values.
| Kind | Role | Add a step category | Output can be pinned | Test data script |
|---|---|---|---|---|
action |
app |
app |
Yes | — |
llm (AI task) |
ai-task |
ai |
Yes | ai-turns |
decisionTable |
rules |
data |
No | — |
transform |
transform |
data |
No | — |
switch (Decision) |
decision |
flow |
No | — |
parallel |
parallel |
flow |
No | — |
fail |
fail |
flow |
No | — |
wait |
wait |
wait |
No | — |
signal |
signal |
wait |
No | signal |
humanTask |
human |
human |
No | human |
callWorkflow (Call a workflow) |
sub-workflow |
flow |
When it waits | — |
forEach (Loop over items) |
loop |
flow |
No (the steps inside are pinned per item) | — |
A nested step list lives at the path of a branch plus steps:
["cases", 0, "steps"] and ["default", "steps"] for a decision,
["branches", "first", "steps"] for a parallel step. The language manifest lists
the fixed branches of a kind, such as default for a decision and body for a
loop (["body", "steps"]); decision cases and parallel branches are found by
position and by name. Output handles are case:<index> and default for a
decision and branch:<name> for a parallel step; fail has none.
A forEach step's descriptor is gated by flow.forEach. Its expression fields
are ["items"] (expected schema {type: "array"}) and ["body", "output"];
its one container is ["body", "steps"] with the frame layout. A new loop
starts as {concurrency: 1, maxItems: 1000, collect: "all", body: {steps: [],
output: {ref: "/item"}}} with no items. Its Parameters form shows Items
and offers concurrency, maxItems, collect and body.output under Add
option, each whenRemoved: "default"; body.output defaults to a mapping, so
its ParamSpec carries defaultExpression: {ref: "/item"} instead of
default, and isDefault and Remove read and write that mapping.
Inside a loop's body, NdvContext.instanceKey is the step's instance for the
items picked in the loops around it (send[2], or send[2][0] inside two
loops); it is null outside loops and in run mode. The picks live in the step
details controller's Iterations, one per open draft: an index per loop, 0
until another is picked, kept while the Items of the loop and of the loops
around it are unchanged and across renames. sample.context() adds item,
index and loops for the picked items, from each loop's Items evaluated
against the current data. A pin inside a body is written under the picked
instance key (pins["send[2]"]), wins over the step's pin for that item only,
and is judged against the step's fingerprints; the step's own pin
(pins["send"]) stands for every item without one.
A callWorkflow step's output is the called workflow's outputSchema when the
call waits (the result status around it when If it fails continues), and
null when it doesn't wait; its tile summary is the reference it calls, such as
notify-customer 1.0.0, and a new one starts as {mode: "wait", with:
{literal: {}}}. KindContext.workflowContract(uses) returns the called
version's {inputSchema, outputSchema, callable}, or null while Studio doesn't
know it.
Editing from a parameters component¶
A parameters component receives NdvContext through a context input declared
with input.required(). It reads the step, its scope, sample data and the
catalog, and changes the definition only through edit(changes, label), which
applyEdits() in studio/src/app/editor/ndv/edits.ts carries out on a copy:
- A path is relative to the step. With
scope: "workflow"it is relative to the workflow document and must name a field underspec(neverspec.steps) or undermetadata, for example["spec", "llmProfiles", "support"];["spec"]or["metadata"]alone is refused. value: undefineddeletes the key or list item. Its parent stays, so deleting the last field of{"object": {...}}leaves{"object": {}}.- A list position is a number or
"-". Writing at the position just after the last item, or at"-", appends; a write past that is refused. When the list isn't there yet,"-"or position 0 starts a one-item list and any other position is refused. A position under a field that holds something other than a list is refused. - A step's
idandkindcan't be edited, including those of steps inside a case, a branch or a loop: rename steps with Rename, which rewrites references, and move steps on the canvas. - A refused change throws
EditError, and none of the call's changes apply. - One call is one undo step, and edits within 600 ms merge into it.
openAddStep({slot?, after?}) opens the Add a step panel, scoped to an AI agent
slot when slot is set. openSubNode(slot, index?) opens a slot, or one entry
of a many-valued slot such as Tools. sample.context(at) returns what an
expression at that path can read: input, the output of each step under
steps, and, inside a loop, the roots of the iteration picked in the Input
pane: item, index and loops (every enclosing loop by step ID).
catalog.workflows({callableBy}) lists published workflows; those that don't
allow that caller stay listed and carry disabled with the reason. Studio reads
them from the project's catalog lock, GET {PROJECT}/catalog, with the
catalog.read capability: once per account and environment while the editor is
open, again on Refresh, and after a failed read only after a pause that starts
at 5 seconds and doubles up to 60. Without catalog.read, or not connected,
only the drafts on this computer are listed. Before Execute sends the workflows
a draft calls, it waits for that read at most 3 seconds, so a published version
wins over a draft on this computer with the same name and version.
Running a step in an environment¶
A kind that can run in an environment sets real on its descriptor. Its
request(ctx, kind) returns {body, confirm?} or {blocked} with the reason
the step can't run, such as Choose an action first. kind is the
KindContext, which reads the contracts the editor already holds (an action's
timeoutSeconds, for example). The body is a StepTestRequest (snake_case,
see In an environment) without draft_id and
draft_revision: the kind sets kind, step_id, input, the connection and
release bindings, tool mocks, real_tools and timeout_seconds, and the
editor adds the saved draft's draft_id and draft_revision, and the side
effect the person acknowledged, when it sends POST {ENV}/step-tests.
NdvContext doesn't expose the draft, so a kind can't set those two fields.
confirm is a sentence of the kind's own that the confirmation shows after
"step changes data in environment. Repeating it repeats the change." (a
cost notice, say); when a kind sets it, Studio asks even for a step that
doesn't change data.
The built-in action kind sends the step's resolved input, connections with
the revision bound to the step's slot in this environment, releases: {} and
timeout_seconds from the action's timeoutSeconds, at most 300. It reports
Choose the connection for slot crm first. without a binding and
send-invoice needs data from earlier steps. Execute previous steps first.
while the input can't be computed. NdvContext.connections.devBinding(slot)
returns {connectionId, revisionId, name, tested} from the binding kept on
this computer (tested is ok, failed or null), and bind(slot) opens the
slot's Connection field.
Coverage against the language manifest¶
studio/tests/schema-coverage.test.ts fails when a step kind the language
manifest marks studio: "ready" has no descriptor, or when a descriptor names a
kind the manifest doesn't list or a different language feature than the manifest
gives it. Kinds marked pending may lack one. A change that adds a step kind to
the language adds its descriptor or the pending mark.
Test data¶
One test data document per workflow keeps the test input, pinned outputs, signal
and human task scripts, recorded AI turns and mocks for steps inside called
workflows. Its JSON Schema, urn:firefly-weave:schema:studio-test-data:v1, is
studio-test-data-v1.json;
the Python models are in firefly_weave.contracts.studio_documents and the
TypeScript types in studio/src/app/editor/state/test-data.ts.
| Field | Holds |
|---|---|
schemaVersion, kind, updatedAt |
1, weave.studio/testData, and an RFC 3339 time |
input |
The test input: {value, source} |
pins |
Pinned outputs, with the time they were pinned (pinnedAt) and the fingerprints that mark them out of date (configHash, contractHash, upstreamHash) |
signals, humans |
Scripts: a payload or a decision, or {"outcome": "timeout"} and {"outcome": "expire"}; an optional frame |
aiTurns |
Recorded AI turns: {turns, memory?, autoApprove?} with their source and fingerprints. Each entry follows urn:firefly-weave:schema:studio-ai-turns:v1 (studio-ai-turns-v1.json): a turn is {toolCalls: [{name, arguments}], text?} or {final, text?}, with at most 33 turns and 16 calls a turn. An AI task replays one final turn |
workflows |
Mocks for steps inside called workflows, by callee reference: {"notify-customer@1.0.0": {"mocks": {...}}} |
waits |
autoAdvance, true when absent |
- Keys of
pins,signals,humans,aiTurnsand each called workflow'smocksare a step ID, which applies to every iteration, or an instance key (send[1],support#2.1), which overrides it for one iteration or activation. Lookups try the instance key first. An instance key is the step ID, then[i]per enclosing loop,#and dot-separated segments for repeated activations, and~nfor a loop's yields. The step ID part of a key is ASCII: an optional@, then a letter or digit, then letters, digits and_,.,:,@and-. Authored step IDs are narrower, with only letters, digits,_,.and-; the@and:forms are the platform's own IDs. A key that doesn't follow this grammar, such assend mailorsend[01], is refused;firefly_weave.contracts.instance_keysdefines it, and$defs.keyin the JSON Schema repeats it. - Frames. A script with
frame(enrich,notify[2]/enrich) applies only inside that sub-workflow. - Source.
sourceismanual,schema,simulated,test-callorrun(anaiTurnsentry is neverschema). Data from a run or a test call namesrunIdandrunEnvironmentId, andrunIdnever appears withoutsourceandrunEnvironmentId. - Size. A document is at most 1 MiB.
- Secrets. Test data never holds a value a schema marks
x-secretorwriteOnly; such entries are refused and not kept anywhere. - Strictness. The Python models accept exactly what the JSON Schema accepts.
An optional field is left out, never
null; JSON uses the camelCase names only; a UUID is written with hyphens, 8-4-4-4-12; and a timestamp is an RFC 3339 date-time such as2026-10-07T10:00:00Z.
Stored on the platform¶
When Studio is connected, the document is stored with its draft at
{PROJECT}/drafts/{identifier}/studio/{kind}, where kind is canvas or
test-data. The envelope is snake_case:
| Field | Meaning |
|---|---|
draft_id, kind, revision, draft_revision |
The draft, the document, and their revisions |
document |
The document, in its own camelCase |
contains_run_data, source_environment_ids |
Derived by the server and sticky: set when the document holds data from a run or a test call, cleared only by deleting the document |
updated_at, updated_by |
When and by whom |
A save sends only {draft_revision, document}; a body that sets
contains_run_data or source_environment_ids is refused. Reading or writing a
document with run data needs run.read in each source environment. A canvas
document is at most 256 KiB and a test data document at most 1 MiB
(413 WV-STUDIO-DOCUMENT-SIZE).
Execute step¶
Simulated, on the Studio host¶
These routes run in the Studio host, offline, through the simulator; their
bodies are camelCase. The Python models are in
firefly_weave.studio.local_contracts and the TypeScript types in
studio/src/app/editor/state/execution.ts.
| Route | Body | Result |
|---|---|---|
POST /studio/local/debug/execute |
ExecuteRequest |
ExecuteResponse |
POST /studio/local/debug/sessions |
SimulationRequest (the Execute body without target) |
A debug session, in the platform's debug.* shape |
POST /studio/local/testdata/check |
CheckTestDataRequest |
{entries: [{path, ok, code?}]} |
POST /studio/local/decision/evaluate |
{table, input} |
{output, matched_rule_ids, used_default} |
-
Trying a table.
decision/evaluatecompiles the table against an empty catalog and evaluates it withevaluate_decision_table, as the platform does, on the same two slots as validation. A table that gives no answer is refused with 422, itsWV-DECISION-*orWV-EXPR-*code, a sentence andresult.path(result.diagnosticsas{code, path}when it doesn't compile); a refusal never repeats a value from the input. -
Target.
modeisworkflow(Execute workflow, which names no step),step(Execute step: until the step has output) orbefore(Execute previous steps: paused before the step).stepandbeforenamestepId;instanceKey, when set, is an instance of that step and picks one iteration (iteration 0 otherwise). - Mocks are keyed
node:<instance key>,node:<step ID>,agent:<instance key>,tool:<instance key>/<tool>oraction:<reference>, where a step ID is itself an instance key; the most specific applies, in that order. Scripts come from test data:signals,humans,aiTurnsandautoAdvanceWaits. - Called workflows.
workflowscarries each callee's local source and format, or only its mocks when the callee is published. - Result.
statusiscompleted,blocked,failedorlimit. Every response carriestraceand acompilesummary, and the summary carriesdiagnosticsandstubs; any of the three lists can be empty.blockednames itsreason(missing_mock,signal,human,path,callee) exactly when the status isblocked, andframewhen the step it stopped at is inside a called workflow. A definition that doesn't compile reportsfailedwith its diagnostics incompile.diagnostics. The response's owndiagnosticslist holds debugger errors, such as a missing mock. Eachtraceentry namesnodeId(the step ID) andinstanceKey(""when it equals the step ID), andframeinside a called workflow;loops,framesandselectedScopedescribe loop progress, sub-workflow frames and the picked iteration's roots. - Test data checks report each entry by JSON pointer; refused entries name
WV-SCHEMA-SECRET_VALUE,WV-SCHEMA-CLASSIFICATION,WV-STUDIO-TESTDATA-SCHEMAorWV-STUDIO-TESTDATA-UNRESOLVED.
| Status | Code | When |
|---|---|---|
| 422 | WV-STUDIO-REQUEST |
The body doesn't fit its model |
| 422 | WV-DEBUG-* |
The simulator refuses a mock, a command or a limit |
| 422 | WV-SCHEMA-SECRET_VALUE |
The input or a mock holds a secret |
| 409 | WV-STUDIO-CATALOG-CONFLICT |
A local definition conflicts with the catalog |
| 409 | WV-DEBUG-REVISION |
A session changed since it was read |
| 404, 410 | WV-STUDIO-DEBUG-NOT-FOUND, WV-DEBUG-EXPIRED |
Unknown or expired session |
| 429 | WV-STUDIO-SESSIONS-FULL |
Four sessions are open |
| 502 | WV-STUDIO-CATALOG |
The platform catalog is unavailable |
| 503 | WV-STUDIO-BUSY |
The simulation slot is busy, or the work took over 30 seconds |
In an environment¶
Execute in environment runs a step, or a whole draft, through the normal
runtime. It needs the step.test capability on the environment, the
environment's test policy set to enabled, and connection.bind on every
connection revision the test uses. Bodies are snake_case; the Python models are
in firefly_weave.contracts.step_tests and the TypeScript types in
studio/src/app/editor/state/execution.ts.
| Operation | Body | Result |
|---|---|---|
POST {ENV}/step-tests |
StepTestRequest |
{id, run_id, status: "running", side_effect, expires_at} |
GET {ENV}/step-tests/{id} |
— | StepTestView |
POST {ENV}/step-tests/{id}/answers |
{instance_key, confirm} |
— |
POST {ENV}/step-tests/{id}/cancel |
— | — |
POST {ENV}/test-activations |
DraftTestActivationRequest |
{id, activation_id, artifact_digest, side_effect, expires_at} |
POST {ENV}/test-activations/{id}/runs |
{input} |
The run, with test: true |
POST {ENV}/test-activations/{id}/listen |
{secret_ref, max_body_bytes?, tolerance_seconds?} |
{test_url, expires_at} |
DELETE {ENV}/test-activations/{id} |
— | — |
GET and PUT {ENV}/test-policy |
{test_calls}, with If-Match on PUT |
{test_calls, revision} |
- Side effects. A step that changes data (
idempotency_keyornon_idempotent) runs only whenacknowledged_side_effectnames that effect; otherwise the answer is409 WV-STEPTEST-CONFIRM. An AI agent's non-idempotent tools use theirtool_mocksunless listed inreal_tools, and each real call of such a tool waits for aconfirmanswer:trueruns the call,falsereturns its mock. - Waiting. While
statusiswaiting,pendinglistsconfirm,reviewandpersonitems bynode_idandinstance_key. Aconfirmitem names itstool,side_effectandarguments; reviews and person answers are human tasks, named bytask_id, that also show in My tasks. - Status is
running,waiting,succeeded,failed,timed_outorcancelled(shown as "Canceled"). - Limits. A step test runs for at most 300 seconds, an AI agent's for 900.
A draft test activation lasts 900 seconds by default and at most 3,600. Only
the person who created a step test or a test activation can read, answer,
cancel or delete it; anyone else gets
404 WV-NOT-FOUND. The listen URL carries no secret: requests are signed with the secret handle. - Test policy. An environment without a stored policy is
disabledat revision 0. The demo environmentlocalthatweave platform upcreates isenabled. - Omitted output. A
StepTestViewwhose output the platform left out hasoutput: nullandomittedset toclassified_secret,classification_unavailable,uncertain_derived,confidential_textorresource_limit;omittedis absent otherwise. - Releases. Studio sends
releases: {}; the platform picks the only release that can run each dependency. When several can, it answers422 WV-STEPTEST-RELEASEwithresult.choices, a list of{id, label}per dependency, and Studio asks and sends the chosen IDs, remembered per environment for the session. - Answers.
POST {ENV}/step-tests/{id}/answersis published but not served yet (501 WV-UNAVAILABLE): action and AI task step tests never wait. - Refusal results.
WV-STEPTEST-CONFIRMcarries{side_effect, action, environment};WV-STEPTEST-INPUT{diagnostics: [{path, code}]};WV-SCHEMA-SECRET_VALUE{paths};WV-STEPTEST-CONNECTION{slots: {slot: reason}}.WV-STEPTEST-BUSYcomes withRetry-After: a person runs at most 4 step tests at once, and starts at most 30 a minute, per environment. - Who the change is for. Every change Studio sends to the platform carries
X-Weave-Principalwith the principal Studio shows as signed in. When the platform's sign-in now belongs to someone else, it refuses the change with409 WV-PRINCIPAL-CHANGEDbefore anything runs, and Studio doesn't send it again. - Execute workflow in an environment. Studio saves the draft, then keeps
one test activation per environment, draft revision and bindings, until a
minute before it expires. It binds the connections this computer bound to
the workflow's slots, asks before steps that change data with the steps
WV-STEPTEST-CONFIRMnames, and opens the run in the Runs tab. - Listening for a test event. Listening needs
step.testandtrigger.manage. Studio sends the webhook's test secret handle (testSecretRef), never its production one, then readsGET {ENV}/run-summaries?activation_id=…&include_test=true&started_after=…every 2 seconds, from two minutes before this computer's clock, until a run starts that Execute workflow didn't start and listening didn't take before, the URL expires, or three reads in a row fail. The run's input becomes the workflow's test input, withsource: "test-call",runIdandrunEnvironmentId. Stop listening deletes the test activation, which retires its test URL. - Retiring. Studio deletes its test activation when the editor's draft is another one or another saved revision, when the editor closes, and when the account, environment or platform changes; listening on it ends.
- Following. Studio reads a step test every second for 30 seconds, then
every 2 seconds, until it ends or its timeout plus a minute passes; a read
that fails waits twice as long (at most 30 seconds), and three in a row stop
following. A start whose answer was lost is sent again once with the same
Idempotency-Key, so one click starts at most one test run.
| Status | Codes |
|---|---|
| 403 | WV-FORBIDDEN, WV-STEPTEST-DISABLED |
| 404 | WV-NOT-FOUND |
| 409 | WV-STEPTEST-CONFIRM, WV-REVISION, WV-PRINCIPAL-CHANGED |
| 410 | WV-TESTACTIVATION-EXPIRED |
| 422 | WV-STEPTEST-INPUT, WV-SCHEMA-SECRET_VALUE, WV-STEPTEST-CONNECTION, WV-STEPTEST-RELEASE, WV-STEPTEST-KIND, WV-STEPTEST-TOOL-MOCK, WV-TESTACTIVATION-COMPILE, WV-TESTACTIVATION-LIFETIME, WV-ETAG |
| 429 | WV-STEPTEST-BUSY |
| 503 | WV-COMPATIBILITY |
Trigger choices¶
A workflow's trigger choices live in its canvas sidecar (triggers), one per
trigger tile, each with an id and a kind and the settings its step details
hold. Studio creates or moves the platform resource behind each one when the
workflow is activated.
An email trigger starts runs with the received message, so the workflow's input
must take one. Studio reads that message's schema, with its definitions inlined,
from its host at GET /studio/contracts/email-message, a read-only route that
answers only a paired session, like the other contract routes.
What Studio keeps about a trigger's resource¶
When an activation creates or moves a trigger choice's resource, Studio keeps two fields in the choice, both keyed by environment ID:
| Field | Value |
|---|---|
resources |
The ID of the webhook, schedule, Kafka trigger, email source or app event source in that environment. |
activated |
A key of the choice's settings when that activation took them: its fields other than id, resources and activated, as canonical JSON. |
The next activation in that environment moves the stored resource instead of
creating one, so a webhook keeps its ID and its URL. A tile reads "Set up at
activation" until activated holds the key of the settings the choice has now.
A webhook's production URL is {platform URL}/webhooks/{resources[environment]}.
The activation dialog¶
The dialog reads, before Activate:
| Step | Read | Rows |
|---|---|---|
| Checks | GET {PROJECT}/language and the version's export (artifact.executable.features) |
The first feature the platform doesn't run stops the dialog. |
| Connections | GET {ENV}/bindable-connections?connector=… per slot connector |
One row per slot. A required slot is chosen for the person from this computer's dev binding, else the connection named like the slot when exactly one candidate has that name, else the only candidate; an optional one only from a dev binding. The listing has no revision number, so several revisions with the slot's name are left for the person. |
| Called workflows | The version's export (document), GET {PROJECT}/workflows and GET {ENV}/activations |
Each callee's current activation, sent as workflow_activation_ids; a callee without one blocks Activate. |
| Triggers | GET {ENV}/triggers, schedules, broker-triggers, email/sources and provider-sources |
One row per trigger choice: create, move, a schedule to save, a choice the CLI sets up, or a resource this workflow ran that is left behind, with Stop it. |
A new Kafka, email or app event trigger chooses its connection on its own row:
Studio lists every bindable connection (GET {ENV}/bindable-connections,
without connector) and keeps those of weave-kafka or weave-email at any
version, or the app's exact package. After the activation succeeds, Studio sets
the triggers up row by row: it creates what's missing, moves a resource with
the revision it read (If-Match), saves a moved schedule with its calendar and
input, and disables what the person ticked. A failure stays on its row with
Retry, which reads the resource again first, and never undoes the
activation.
Storage on this computer¶
Every key the new editor keeps on this computer goes through
studio/src/app/editor/state/browser-store.ts. These rules apply once the new
editor ships; until then Studio keeps its drafts and preferences under the keys
it already uses.
| Prefix | Holds |
|---|---|
<profileId>:<subjectHash>:<tenantId>:<projectId>: |
Connected work for one account in one project |
local: |
Local drafts and their test data |
ui: |
Preferences that hold no workflow data, such as pane widths and the new editor preference |
profileIdispand the first 16 hex digits of the SHA-256 of the saved platform's name;subjectHashis the first 16 hex digits of the SHA-256 of the signed-in subject. Without a subject, connected work is kept in memory only.- Keys match
^[A-Za-z0-9:._-]{1,256}$. - Signing out of a platform, or removing it, deletes every key with that
platform's
profileId, in browser storage and in the desktop store.local:andui:keys stay. - Keys from earlier releases move once: local drafts under
local:, pane preferences underui:. Remembered run inputs (weave-studio-run-input:) can't be attributed to an account, so they are deleted. - The desktop app keeps the same keys in the Studio host store under its configuration directory instead of browser storage.
- Connections a slot uses.
<account prefix>weave.devBindings.v1holds, per environment ID, workflow name and slot, the chosen connection's ID, its revision ID, its name and, once tested, whether the test passed and when:{"v": 1, "bindings": {environmentId: {workflow: {slot: [connectionId, revisionId, name, ok?, at?]}}}}. Nothing else, and never a secret. At most 500 bindings and 64 KiB; a write past either is refused and the document stays as it was. A binding follows its connection: the newest revision in the environment's list replaces the kept one and clears the test result. Without an account prefix, bindings last for the session only. - Real results stay in memory. A step's last result from Execute in an
environment is never written to
weave.lastExecution.*; Pin output keeps it as test data withsource: "test-call",runIdandrunEnvironmentId.
Keyboard map¶
studio/src/app/editor/state/keymap.ts holds the editor's one shortcut table;
the key handler and the shortcuts sheet (?) both read it. Each key combination
appears once per platform, and a row says what it does on each surface: the
canvas, the outline, step details, a Fixed field, the formula editor, the Add a
step panel, the decision table grid and the run log. Mod is Ctrl on Windows
and Linux and Cmd on macOS. Shortcuts never act while you type in a field,
except Ctrl/Cmd+S, Ctrl/Cmd+Enter, undo and redo outside the formula editor, and
= in a Fixed field, which switches an empty one to Mapped. D is not
assigned, because Weave has no deactivated steps, and Ctrl/Cmd+K is reserved.
The last section of the sheet, Differences from n8n, lists each row that differs
as two sentences: what the keys do in Studio, then what they do in n8n.
The runs surface is the Runs tab's list: Up and Down choose the previous and
next run, Home and End the first and last, and Enter shows the chosen run on
the canvas. Choosing moves the selection and never moves focus out of the list.
Escape on the Runs canvas returns focus to the chosen row.
The Runs tab's address¶
/workflows/<draft>/designer?tab=runs opens a workflow on its Runs tab, and
&run=<run ID> (a UUID) chooses that run. Choosing another run replaces the
address without adding a history entry; leaving the tab drops the query. The
address never carries filters or an environment: a link opens where the session
is, and it never writes test data.
The new editor¶
The new editor is on by default. It is a per-viewer preference: the key
ui:weave.editorNext holds "false" when the person turned it off (and "true"
when they turned it on again); any other value, no value, or browser storage that
refuses reads means the new editor. ?editor=classic and ?editor=next in the URL
choose for that page without changing the stored choice, which is how tests open
either editor. Settings › Preferences offers the same choice with the Use the
new editor switch; the classic designer stays one switch away for now.