Outside signals
Some of what matters to an operation starts outside it: a supplier recalls an ingredient, a winter storm warning covers a province with open shops, a supplier's plant burns. A signal is one such item. Sources bring signals in on a timer, watches find the company's own objects named in them, such as an ingredient and its supplier, a supplier lot code or a province, and follow links from what matched to show what the signal reaches: the batches made with that lot, the lots still in shops and the customers who received them. Each new match can start an automation that runs an agent, proposes an action or sends a notification
In the platform today
- Outside signals run in the platform service, defined under
signals:inontology.yamlwithgroups,pushers,keepDays,sourcesandwatches - A source is of kind
feed,json,folderorpush - A watch has an
ownerit matches as, optionalcategories,sourcesandwords,matchentries that test properties withtext,anyText,areasandwhere,reachsteps that follow links from what matched, and aseverityraised byseverityWhen - Every 60 seconds by default, a service setting, the service polls each source that is due and matches what is new
- Signals, matches and polls are in
ops.signals,ops.signal_matchesandops.signal_polls, the routes are under/api/v2/signals, and the app shows them in a Signals view of the Operations home page, with a full Signals screen opened from there - Automations take a
signaltrigger - The illustrative ice cream maker watches food recalls, weather warnings and supplier news: a walnut recall naming one of its supplier lots reaches 2 batches, 5 lots in shops or on trucks and 1 customer, and its recall response agent proposes 2 holds, 5 pulls and 1 customer notice that apply only when a person approves them
- An administrator to write
signals:inontology.yaml, poll sources by hand and match stored signals again - For each watch, an owner who can read the object types it matches and the links its reaches follow
- Administrators and the groups in
signals.groupsto see signals and matches; administrators andsignals.pushersto push items - For
feedandjsonsources, outbound HTTPS from the platform service to the source
What a signal is
A signal is one item from outside the company: a food recall notice, a weather warning, a news story. It has a title, a summary and a body, a link, a published time, a category such as recall, weather or news, and areas, such as the province codes a warning covers. On its own it is text. A watch turns it into something the operation can act on by finding the objects it names and following links from them to what they touch, so a recall of walnut pieces becomes the two batches made with the recalled lot and the five lots of them still in shops or on trucks
| Watch | Finds | Reaches |
|---|---|---|
| Recall of an ingredient we use | An ingredient whose supplier and name both appear in a recall, and a received lot whose supplier lot code appears | Products made with the ingredient, batches made with the lot, lots in shops or on trucks, customers who received them |
| News about a supplier we buy from | An ingredient whose supplier appears in a news story | Products that use what the supplier sells |
| Weather warning where we trade or deliver | An open shop in a province the warning covers | Delivery runs to those shops still to land |
These are the three watches of the illustrative ice cream maker. A signal that matches no watch is kept with the status no match, so a recall of fruit pectin from a supplier the company buys other things from is recorded and shown, but reaches nothing
Sources
A source is where signals come from. Each has an id, made of letters, digits, dots, dashes and underscores, and a kind
| Kind | Reads | Keys |
|---|---|---|
feed | An RSS 2.0 or Atom feed over HTTP or HTTPS | url, headers |
json | A JSON document over HTTP or HTTPS: a list of items, or the list at items, a path such as data.results | url, headers, items, fields |
folder | Files in a folder: .json files read as json, and .xml, .rss and .atom files read as feed. Every file is read on each poll | folder, items, fields |
push | Nothing on a timer: items arrive by POST /api/v2/signals naming the source | The common keys only |
Every source also takes name, category, which labels each item that has no category of its own, every, how often it is polled (15m by default), and enabled: false to stop polling it. A relative folder is inside the platform's own lake folder, so each customer and each environment has its own
signals:
# who sees signals and matches, besides administrators
groups: [quality, purchasing, dispatch]
# who may push items by POST, besides administrators
pushers: [quality, purchasing]
keepDays: 90
sources:
food-recalls:
name: Food recall notices
kind: json
url: https://recalls.example.com/api/notices
# read from the environment, never written here
headers: { Authorization: { env: RECALLS_TOKEN } }
items: data.results
fields: { id: recallId, title: headline, summary: details,
published: when, areas: where }
category: recall
every: 15m
supplier-news:
name: Supplier and industry news
kind: feed
url: https://news.example.com/food-industry.rss
category: news
every: 1h
weather:
name: Weather warnings
kind: folder
folder: _signals/weather
items: features
fields: { id: properties.identifier, title: properties.headline,
areas: properties.provinces, event: properties.event }
category: weather
every: 5m
What is read from each item
- JSON items:
fieldsmaps each signal field,id,title,summary,body,link,published,categoryandareas, to a path in the item. A field left out is read from the key of the same name. Any other name infields, such aseventabove, is kept with the signal - Feed items:
guidorid,title,descriptionorsummary, the content,link,pubDate,publishedorupdated, and the firstcategory. HTML in descriptions is reduced to text - Published time: ISO 8601, the RSS date format, or epoch seconds or milliseconds. An item with no time takes the time it arrived
- Areas: a list, or text separated by commas, such as
NS, NB. This is what area matching reads - Headers: each value is text or
{ env: NAME }, read from the service's environment, so tokens are never written in the ontology - Once per source: an item is stored once, by its id, else its link, else its title and published time. An item seen again on a later poll is not stored or matched again. An item without a title is skipped
Watches
A watch decides which signals matter. It reads the signals of its categories and sources, all of them when these are left out, and with words only those that contain one of the words. Its match entries name object types and the properties to look for, and its reach follows links from what matched. A watch runs as its owner: only objects the owner can read are found and followed
signals:
watches:
- id: ingredient-recall
name: Recall of an ingredient we use
description: The ingredient and its supplier named in a recall,
and the supplier lot when the notice gives its code
owner: ops.gallant # matching and reach run as this person
categories: [recall]
# optional: the signal contains one of these words
words: [recall, recalled, recalling]
# an object matches an entry when every test it gives holds
match:
- { objectType: ingredient, text: [supplier, name] }
- { objectType: ingredient-lot, text: [supplierLot] }
# from a matched type or an earlier reach, by query steps
reach:
- { id: batches, name: Batches made with the lot, from: ingredient-lot,
steps: [ { follow: lot-use-receipt }, { follow: lot-use-batch } ] }
- { id: inMarket, name: Lots in shops or on trucks, from: batches,
steps: [ { follow: lot-batch },
{ where: { status: { $in: [In market, On truck] } } } ] }
- { id: customers, name: Customers who received them, from: inMarket,
steps: [ { follow: lot-customer } ] }
severity: medium # low | medium | high
severityWhen: { high: { reach: inMarket, atLeast: 1 } }
| Key | Means |
|---|---|
text: [a, b] | The value of every property listed appears in the signal's title, summary or body |
anyText: [a, b] | The value of at least one property listed appears |
areas: province | The property's value is one of the signal's areas |
where: {…} | Only objects that pass this filter, in the object set format, such as { status: { $ne: Closed } } |
minLength: 4 | Values shorter than this many characters are never looked for |
reach | An id, a name, a from that is a matched object type or an earlier reach's id, and query steps: follow a link type and where to filter |
severity | The match's severity, low, medium (the default) or high |
severityWhen | Raises the severity to a level when a reach has at least atLeast objects (1 by default), { reach: id, atLeast: n }, or when a type matched, { matched: ingredient-lot } |
An entry needs at least one of text, anyText or areas, and every property it names must exist on its type. A reach can only follow a link type that joins the type it is on. A watch that breaks these rules is left out and listed with the reason under GET /api/v2/signals/sources and on the Sources and watches tab. A watch matches a signal when at least one object matched. The signal's own severity is the highest of its matches, and its status is matched, no match or dismissed
How text and areas match
- Text is compared as lower-case words. Punctuation and accents are ignored, so
QuébecfindsQuebecandEN-2610-14findsEN 2610 14 - A value must appear whole, as words: the supplier
Eastport Nut Co.is found in "EASTPORT NUT CO. brand walnut pieces", and the lotEN-2610-1is not found in "lot EN-2610-14" - Values shorter than
minLength, 4 characters by default, are skipped, so a short code never matches by accident text: [supplier, name]needs both values in the same signal. That is what stops a recall of fruit pectin from matching every ingredient bought from the same supplier- Areas compare the property's value with each of the signal's areas, as words in any case: a shop with
province: PEmatches a warning forPE categoriesare compared in any case, andwordsas whole words in any case
What each reader sees
A match is made as the watch's owner, and shown to each reader with only the objects that reader can read. Matched objects and reached objects the reader cannot read are left out, and the counts with them. A reach that passes through an object type the reader cannot see, or that the owner could not follow, is marked hidden, with no count and no objects, and so is every reach that starts from it. For anyone but administrators and the watch's owner, the summary is written again from what remains
- A buyer without the
QUALITYaccess label sees the walnut recall, the ingredient, the received lot and the products made with it; the batches, the lots in market and the customers who received them are hidden - A quality manager sees the batches and the lots, and the customers reach is hidden when they cannot read customers
- Someone outside the signal groups gets 403
SIGNALS_VIEWER_ONLYand sees no signals at all
POST /api/v2/signals:check and Check an item on the Signals screen run every watch as the person asking, so the result shows what that person would see. Nothing is stored
On the Signals screen
On the Operations home page, one line names the most serious signal while something matched, and opens the Signals view: a full-screen map with the signals listed beside it, most serious first. The selected signal is drawn as it spreads, from the supplier it names to the plant and on to every shop, truck and customer holding what it reaches, or for a warning, the places under it and the runs it reaches. It opens in the list with each step it reaches (a click shows that step's places on the map) and the proposals waiting, with Review. The full Signals screen, opened from the panel, lists matched signals by severity with the other signals below. A signal's page shows its matches as the reader may see them, the automation runs it started and the proposals waiting, with approve and reject. A signal can be dismissed with a reason and reopened. Check an item takes a pasted story or notice and shows what it would match; people in signals.pushers can then add it as a signal. The Sources and watches tab shows each source with its last poll, each watch and any problems in the configuration, and administrators can read the sources now
Automations on signals
An automation with a signal trigger fires once for each new match of the watches it names, optionally only at chosen severities. The effect gets the signal and the match through templates, and an agent effect gets both in its context
automations:
- id: r-recall
name: Supplier recall reaches our batches
owner: ops.gallant
trigger: { kind: signal, watch: ingredient-recall }
effect:
kind: agent
agent: agt-recall
input: "{{signal.title}}"
context: { signalId: "{{signal.signalId}}" }
onFailure: { kind: notify, group: quality,
message: "Recall response could not run for {{signal.title}}: {{error}}" }
- id: r-weather
name: Weather warning where we trade or deliver
owner: dispatch.macdonald
trigger: { kind: signal, watch: weather-shops, severity: [medium, high] }
effect: { kind: notify, group: dispatch,
message: "{{signal.title}}. {{match.summary}}" }
| Template | Value |
|---|---|
{{signal.title}}, .summary, .link, .category, .source, .areas | The signal's fields |
{{signal.signalId}} | The signal's id, for an agent or a function to read it again |
{{signal.publishedAt}}, {{signal.receivedAt}} | When it was published and when it arrived |
{{match.severity}} | low, medium or high |
{{match.summary}} | The watch's name, what matched and what it reaches with counts, such as "Recall of an ingredient we use: Walnut pieces, EN-2610-14. Reaches …" |
{{match.matched.<type>}} | The keys of the matched objects of that type, such as {{match.matched.ingredient}} |
{{match.reach.<id>.count}}, .keys, .titles | What a reach found: its full count, and up to 50 keys and titles |
{{match.watch}}, {{match.matchId}} | The watch and the match |
- Once per match: each match fires once. Matches made before the automation was first evaluated never fire. Matching a stored signal again keeps its matches, so it does not fire again; a watch that newly matches an old signal does
- As the owner: the effect runs as the automation's owner, with the owner's access, like any other automation
- Batches: with
mode: batch, one run covers every new match of a pass;{{keys}}lists the signal ids and an agent getssignals, each with its signal and match - By hand:
POST /api/v2/automations/{id}:runwith{"objects": ["sig_…"]}runs the effect on that signal's match for the automation's watch. A signal with no such match is refused with 404SIGNAL_NOT_MATCHED - Nothing applies itself: an agent effect proposes actions, and each proposal waits for a person with the action's permissions to approve it
API
| Endpoint | Does |
|---|---|
GET /api/v2/signals?status=&category=&source=&watch=&limit= | Signals, most recently published first, each with its matches, their severity, summary and the count of each reach. limit is 100 by default and 500 at most |
GET /api/v2/signals/{id} | One signal with its matches, the objects they matched and reach, and the automation runs it started |
GET /api/v2/signals/sources | Sources with their latest poll, watches, problems in the configuration and whether the caller may push |
POST /api/v2/signals | Administrators and pushers: push one item with title, summary, body, link, published, category, areas and source, matched at once. An item already stored is returned with "created": false |
POST /api/v2/signals:check | {title, summary, …}: what the watches would match, as the caller, with nothing stored |
POST /api/v2/signals:poll | Administrators: poll {"source": "food-recalls"}, or every source, now |
POST /api/v2/signals:rematch | Administrators: match {"signal": "sig_…"}, or every signal of the last keepDays, again after a watch or the data changed |
POST /api/v2/signals/{id}:dismiss | {"reason": "…"}, which is required |
POST /api/v2/signals/{id}:reopen | Reopens a dismissed signal as matched or no match |
The routes are for administrators and the signal groups unless the table says otherwise. A quality manager reading the walnut recall:
GET /api/v2/signals/sig_ed03183da24e377bccfa
Authorization: Bearer eyJhbGciOi…
{
"signalId": "sig_ed03183da24e377bccfa",
"source": "food-recalls",
"externalId": "RA-2026-10-1187",
"category": "recall",
"title": "Eastport Nut Co. brand walnut pieces recalled due to possible Salmonella",
"summary": "Eastport Nut Co. is recalling walnut pieces … Affected lot codes: EN-2610-14 and EN-2610-19 …",
"link": "https://recalls.example.com/2026/RA-2026-10-1187",
"areas": ["NS", "NB", "PE", "NL"],
"publishedAt": "2026-10-29T18:40:00Z",
"receivedAt": "2026-10-29T19:00:08.043108Z",
"status": "matched",
"severity": "high",
"matches": [ {
"matchId": "sm_50e8dd9933696fc2d081",
"watch": "ingredient-recall",
"watchName": "Recall of an ingredient we use",
"severity": "high",
"summary": "Recall of an ingredient we use: Walnut pieces, EN-2610-14. Reaches products made with the ingredient (2), batches made with the lot (2), lots in shops or on trucks (5)",
"matched": [
{ "type": "ingredient", "key": "ING-WAL", "title": "Walnut pieces",
"on": ["supplier", "name"] },
{ "type": "ingredient-lot", "key": "RCV-5133", "title": "EN-2610-14",
"on": ["supplierLot"] }
],
"reach": [
{ "id": "batches", "name": "Batches made with the lot",
"objectType": "batch", "hidden": false, "count": 2,
"objects": [ { "type": "batch", "key": "B-0837", "title": "B-0837" },
{ "type": "batch", "key": "B-0839", "title": "B-0839" } ] },
{ "id": "inMarket", "name": "Lots in shops or on trucks",
"objectType": "lot", "hidden": false, "count": 5,
"objects": [ … ] },
{ "id": "customers", "name": "Customers who received them",
"objectType": "customer", "hidden": true, "count": null, "objects": [] }
],
"createdAt": "2026-10-29T19:00:08.178750Z"
} ],
"runs": [ {
"automation": "r-recall", "effect": "agent", "status": "succeeded",
"output": { "agentRun": "run_01M62GGHTW…", "status": "completed",
"proposals": ["prop_01M62GGHY7…", …] }
} ]
}
The products reach, the dismissal fields and some run fields are left out above. Errors use the stable error codes: 403 SIGNALS_VIEWER_ONLY, SIGNALS_PUSH_DENIED or ADMIN_ONLY, 404 SIGNAL_NOT_FOUND or SIGNAL_SOURCE_NOT_FOUND, 400 SIGNAL_TITLE_REQUIRED or SIGNAL_REASON_REQUIRED, and 409 SIGNAL_ALREADY_DISMISSED or SIGNAL_NOT_DISMISSED. Pushes, dismissals, reopenings, polls by hand and matching again are audited as signal.pushed, signal.dismissed, signal.reopened, signal.polled and signal.rematched
Limits
| Limit | Value |
|---|---|
| Items read per poll of a source | 500; a folder's files are read newest first |
| Size of a document or file read | 5 MB; a larger document fails the poll and a larger file in a folder is skipped |
| Timeout for a feed or JSON source | 20 seconds |
| Addresses | http and https only |
| Feeds with a document type or entities | Refused, as FEED_DOCTYPE |
| Text kept per signal | Title 500 characters, summary 4,000, body 20,000 |
| Objects compared per match entry | About 20,000 of its type; narrow a large type with where |
| Matched objects kept per match | 200 of each type |
| Kept per reach | The full count, and up to 50 keys and titles |
| Links followed per reach | 3, as in any query; a watch with a longer reach is refused, so start a second reach from the first |
| Signals, matches and polls kept | keepDays after they arrive, 90 by default |
| Timer | Every 60 seconds by default, a service setting |
Every copy of the service runs the timer, but only the copy holding the signals lease polls, so with several workers the sources are read in one place at a time and another copy takes over when the holder stops. Each pass polls the sources that are due by their every. One source that fails, such as a feed answering 503, is recorded as a failed poll with its error and never stops the others. Signals, matches and polls are on the platform clock
On request, reading the full article behind a link, translation, matching by meaning rather than by words, and subscriptions to watches for each person. An agent started by a signal trigger can already read the signal's text with a model
Worked example: a walnut recall
The illustrative ice cream maker buys walnut pieces from Eastport Nut Co. and received lot EN-2610-14 of them
- A recall notice arrives from the
food-recallssource: "Eastport Nut Co. brand walnut pieces recalled due to possible Salmonella", naming lot codesEN-2610-14andEN-2610-19 - The
ingredient-recallwatch, as its owner, finds the ingredient Walnut pieces, whose supplier and name both appear, and the received lot whose supplier lot isEN-2610-14.EN-2610-19names nothing the company received - The reaches follow links from the lot to 2 batches made with it,
B-0837andB-0839, 5 lots of them in shops or on trucks, and 1 customer who received one. Because a lot is in market,severityWhenraises the match from medium to high - The
r-recallautomation fires once and runs the recall response agent with the signal and the match in its context - The agent proposes 2 QA holds, 5 pulls of lots from sale and 1 recall notice to the customer, and applies nothing
- A quality manager opens the signal on the Signals screen, sees what it reaches and the 8 proposals, and approves the holds and pulls. Each applies through its action, with the action's conditions, log and writeback
- Matching the stored signals again later keeps the same match, so the agent does not run a second time