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.
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 SDK | Where you see it in Sommatic AI |
|---|---|
| Workers and their state machine | Every 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 layer | The 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. |
| Ids | Every record id is a prefix plus lowercase hexadecimal characters, such as wf-flow-definition-…. An id sent on create is replaced. |
| Models | Every 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 delete | A delete sets the record’s status to deleted and keeps the document; reads include deleted records unless you pass exclude_status=deleted. |
| Streams | Server-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 configuration | Each 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 helper | SDK utility | Behaviour 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.encode | URL-safe alphabet without padding; objects serialized as JSON |
$base64Decode(text) | encoder.base64.decode | Lenient: characters outside the alphabet are skipped |
$toQueryString(object) | encoder.object.toQueryString | false, 0 and '' are sent as null |
$isEmpty(value) | validator.object.isEmpty | Checks 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
executionsettings), 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.