On this page
Sommatic Docs
Open portal

Built on Link Loom

Sommatic AI runs on the Link Loom SDK: its services are Link Loom services, every node is a Link Loom worker, and part of the expression helpers, the API envelope, the ids and the record fields come from the SDK. What Sommatic AI inherits and where you see it.

View as Markdown
Open in

Sommatic AI is built on Link Loom, the framework Blackwood uses for its services. The Sommatic AI API and the workflow orchestrator are Link Loom services: they start from the Link Loom service template and run on the Link Loom SDK (@link-loom/sdk). They inherit its runtime as is, so a good part of what you meet in Sommatic AI, from the way a node runs to the shape of an API response, is Link Loom behaviour.

What Sommatic AI inherits

From the Link Loom SDKWhere you see it in Sommatic AI
Workers and their state machineEvery node of a workflow runs as a Link Loom worker: created, activated in the background and stopped for each step. See How a node runs and Worker state machine.
Utilities (generator, encoder, validator…)Several expression helpers are SDK utilities (below), and so is the correlation id of a chain call (chain- followed by 20 hexadecimal characters).
HTTP layerThe API’s response envelope { status, success, message, result }, with the HTTP status repeated in status, and a request body limit of 100 KB unless a route raises it. See API conventions.
IdsEvery record id is a prefix plus lowercase hexadecimal characters, such as wf-flow-definition-…. An id sent on create is replaced.
ModelsEvery record carries id, created, modified, deleted, status, metadata and context. status is an object { id, name, title, color }, and the base statuses are deleted (-1), inactive (0), active (1) and pending (2); each entity adds its own. Timestamps are epoch milliseconds as text.
Soft deleteA delete sets the record’s status to deleted and keeps the document; reads include deleted records unless you pass exclude_status=deleted.
StreamsServer-sent events: a connected event when the stream opens, a keep-alive comment every 30 seconds and named events after that (for example the task and execution streams).
Boot and configurationEach service starts with the SDK’s boot sequence (dependencies, settings, data, adapters, HTTP) and reads its configuration through it.

Expressions and the SDK utilities

The expression engine builds its sandbox partly from SDK utilities. These helpers are the SDK’s own functions, with the SDK’s behaviour:

Expression helperSDK utilityBehaviour inherited from the SDK
$randomId(options)generator.id({ length, prefix })Needs the options object; hexadecimal characters; id- when the prefix is empty
$base64Encode(value)encoder.base64.encodeURL-safe alphabet without padding; objects serialized as JSON
$base64Decode(text)encoder.base64.decodeLenient: characters outside the alphabet are skipped
$toQueryString(object)encoder.object.toQueryStringfalse, 0 and '' are sent as null
$isEmpty(value)validator.object.isEmptyChecks own keys only, so numbers count as empty

Only these SDK utilities are bound into expressions. The rest of the SDK’s toolkit (crypto, search, events, performance, streams…) runs inside the services and is not reachable from {{ }}. The other names an expression can use come from the engine itself ($json, $execution, $('…')…) or from libraries: lodash (_, $slugify), Luxon ($now, $today), JMESPath ($jmespath) and uuid ($uuid). The expression API reference says where each one comes from.

Why it matters

  • Behaviour is shared. A change in the Link Loom SDK reaches every Sommatic AI service that upgrades to it, and the docs follow the SDK version that is deployed.
  • Some limits are the SDK’s. The state machine has no retries (a node’s retries are its own execution settings), a worker only sees the context it receives, and the request body limit is set per route.
  • The same conventions everywhere. Envelopes, ids, statuses and soft delete look the same across every Sommatic AI domain because they come from one framework.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs