Layer 7 · collaboration
trigger
What wakes an agent or issues a command. A trigger names what it waits for (a post its subscription receives, a schedule's tick, or a named event of another block), what it does (wake an agent revision or issue a command), and how many runs it lets overlap. Each time it fires it records a firing, which starts a run or a harness session, is skipped by the trigger's policy, or fails. A disabled trigger does not fire.
Depends on
- channel · layer 7 · 10 references
- process · layer 5 · 4 references
- work · layer 5 · 6 references
- agent · layer 4 · 11 references
- harness · layer 4 · 6 references
- shared · layer 0 · 7 references
Used by
- deployment · layer 9 · 4 references
Entities
DryRun
The firings a trigger would make for the current state, listed without making any.
Identified by dry_run_id (DryRunId).
| field | type | meaning |
|---|---|---|
trigger_id | TriggerId | |
reaction | ReactionKind | What each listed firing would do, the trigger's reaction. |
agent_revision_id | optional AgentRevisionId | The agent revision each listed firing of a Wake trigger would wake. |
command | optional string | The command each listed firing of a Command trigger would issue. |
subject_keys | list of string | One subject per listed firing, those the trigger's condition holds for; empty when it holds for none. How many firings the trigger would make is the length of the list. |
listed_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
agent_revisionreferences AgentRevision of agent (one, byagent_revision_id)
Lifecycle: one state, Listed; a recorded DryRun does not change.
Firing
One time a trigger fired, and what became of it.
Identified by firing_id (FiringId).
| field | type | meaning |
|---|---|---|
trigger_id | TriggerId | |
fired_at | timestamp | |
post_id | optional PostId | |
tick | optional timestamp | |
run_id | optional RunId | |
harness_session_id | optional HarnessSessionId | |
started_at | optional timestamp | |
ended_at | optional timestamp | |
failure | optional string | |
subject_key | optional string | The subject a firing is for. A firing with an earlier one's key is another firing of that subject, not a duplicate: unless the subject policy is Another, it does not start while that one runs. A repeated event is told by the firing's identity. |
command | optional string | Its trigger's command. |
subject_policy | optional SubjectPolicy | Its trigger's subject policy. FireTrigger reads it from the open firings of a subject key to refuse a second one under Refuse. |
plan | optional Name | What the scheduler chose to do for the subject, in the process's own word, such as merge or fix. A sweep is the firings of one tick, one per subject, each with its plan; the trigger does not check it. |
skip_reason | optional string | Why the dispatcher skipped the firing. A firing skipped at its trigger's limit has none: the limit is the reason. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
postreferences Post of channel (one, bypost_id)runreferences Run of work (one, byrun_id)harness_sessionreferences HarnessSession of harness (one, byharness_session_id)
Lifecycle of Firing
Ended, Failed, Replaced, Skipped.Schedule
When a scheduled trigger fires, as a cron-like expression in a timezone.
Identified by schedule_id (ScheduleId).
| field | type |
|---|---|
expression | string |
timezone | string |
next_fire_at | timestamp |
checks_passed_at | optional timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle of Schedule
Trigger
What wakes one agent revision or issues a command, and how many of its runs may overlap.
Identified by trigger_id (TriggerId).
| field | type | meaning |
|---|---|---|
kind | TriggerKind | |
subscription_id | optional SubscriptionId | What an OnMessage trigger listens on. |
schedule_id | optional ScheduleId | What an OnSchedule trigger follows. |
event_name | optional string | The fully qualified name of the event an OnEvent trigger waits for, such as agentic.work.RunEnded. |
reaction | ReactionKind | What a firing does. |
agent_revision_id | optional AgentRevisionId | The agent revision a Wake trigger wakes; a Wake trigger names one. |
command | optional string | The fully qualified name of the command a Command trigger issues, such as agentic.store.PutRecord; a Command trigger names one. |
task_template | optional string | |
policy | ConcurrencyPolicy | |
max_parallel | integer | How many of its runs may overlap; 1 under Skip and Queue. |
running | integer | Its firings started and not yet ended. |
condition | optional Condition | A predicate over the fields of the event an OnEvent trigger waits for; the trigger fires for an event only when it holds. The scheduler evaluates it on the event alone. It names at least one comparison; each comparison's field is a path (names joined by ., each name one or more characters, none of them . or a space), and it has a value exactly when its operator is neither Defined nor NotDefined. |
process_id | optional ProcessId | The process the task it starts follows. |
intake | optional list of IntakeField | The input of a Command trigger's command, each named input taken from one field of the event. Each input is a name and each field a path, as in the condition, and no input is named twice. |
start_mode | optional StartMode | Absent means Auto. |
subject_policy | optional SubjectPolicy | What a firing for a subject that already has a firing does. Absent means Another; any other policy needs a subject key on every firing. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
subscriptionreferences Subscription of channel (one, bysubscription_id)schedulereferences Schedule (one, byschedule_id)agent_revisionreferences AgentRevision of agent (one, byagent_revision_id)processreferences Process of process (one, byprocess_id)firingsowns Firing (many, bytrigger_id)dry_runsowns DryRun (many, bytrigger_id)
Always holds: max_parallel >= 1, running >= 0.
Lifecycle of Trigger
Commands
AdvanceSchedule
Move a schedule to its next fire time.
Called by: Scheduler.
| field | type |
|---|---|
schedule_id | ScheduleId |
next_fire_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Schedule | Unknown: No schedule has this identity; nothing changed. |
not-enabled refused | the Schedule is Disabled or Unchecked | Schedule: The schedule is not enabled, so it does not tick and its trigger is not enabled. |
not-later refused | input. | Fire: The next fire time is not after the stored one; a schedule only moves forward, nothing changed. |
advanced | the Schedule is Enabled | updates the Schedule; emits Schedule |
not-ticking refused | otherwise | Schedule: The schedule is not enabled, so it does not tick and its trigger is not enabled. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CreateSchedule
Create a schedule.
Called by: Trigger owner.
| field | type |
|---|---|
expression | string |
timezone | string |
next_fire_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid refused | (expression. | Invalid: A schedule has a non-empty expression and timezone; nothing was created. |
created | otherwise | creates a Schedule in Unchecked; emits Schedule |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CreateTrigger
Create a trigger.
Called by: Trigger owner.
| field | type |
|---|---|
kind | TriggerKind |
subscription_id | optional SubscriptionId |
schedule_id | optional ScheduleId |
event_name | optional string |
reaction | ReactionKind |
agent_revision_id | optional AgentRevisionId |
command | optional string |
task_template | optional string |
policy | ConcurrencyPolicy |
max_parallel | integer |
condition | optional Condition |
process_id | optional ProcessId |
intake | optional list of IntakeField |
start_mode | optional StartMode |
subject_policy | optional SubjectPolicy |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid-concurrency refused | (max_ | Invalid: A trigger lets at least one run start, and only a Parallel trigger more than one; nothing was created. |
source-missing refused | (kind == On | Trigger: An OnMessage trigger names a subscription, an OnSchedule trigger a schedule and an OnEvent trigger an event; nothing was created. |
reaction-target-missing refused | (reaction == Wake and not (defined(agent_ | Reaction: A Wake trigger names the agent revision it wakes and a Command trigger the command it issues; nothing was created. |
condition-invalid refused | defined(condition) and (condition. | Invalid: The condition names no comparison, a comparison's field is not a path of names joined by ., or a comparison has a value where its operator takes none or lacks one where it takes one; nothing was created. |
intake-invalid refused | defined(intake) and (some f in intake with (f. | Invalid: An intake input is not a name, an intake field is not a path of names joined by ., or one input is named twice; nothing was created. |
unknown-subscription refused | no Subscription for subscription_ | Unknown: No subscription has this identity; nothing changed. |
unknown-schedule refused | no Schedule for schedule_ | Unknown: No schedule has this identity; nothing changed. |
unknown-revision refused | no AgentRevision for agent_ | Unknown: No agent revision has this identity; nothing was created. |
created | otherwise | creates a Trigger in Disabled; emits Trigger |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DisableSchedule
Disable a schedule.
Called by: Trigger owner.
| field | type |
|---|---|
schedule_id | ScheduleId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Schedule | Unknown: No schedule has this identity; nothing changed. |
disabled | otherwise | moves the Schedule Enabled → Disabled; moves each Trigger with schedule_ to Disabled; emits Schedule |
wrong-state refused | the Schedule is in a state that does not allow it | Schedule: The schedule is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DisableTrigger
Disable a trigger.
Called by: Trigger owner.
| field | type |
|---|---|
trigger_id | TriggerId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Trigger | Unknown: No trigger has this identity; nothing changed. |
disabled | otherwise | moves the Trigger Enabled → Disabled; emits Trigger |
wrong-state refused | the Trigger is in a state that does not allow it | Trigger: The trigger is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DryRunTrigger
List the firings a trigger would make.
Called by: Scheduler.
| field | type | meaning |
|---|---|---|
trigger_id | TriggerId | |
subject_keys | list of string | The subjects the trigger's condition holds for now, one per firing it would make; empty when it holds for none. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown-trigger refused | no Trigger for trigger_ | Unknown: No trigger has this identity; nothing changed. |
listed | otherwise | creates a DryRun in Listed; emits Trigger |
More columns: swipe horizontally, or focus the table and use the arrow keys.
EnableSchedule
Enable a schedule.
Called by: Trigger owner.
| field | type |
|---|---|
schedule_id | ScheduleId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Schedule | Unknown: No schedule has this identity; nothing changed. |
checks-not-passed refused | state == Unchecked | Checks: The schedule's restriction checks have not passed, so it is not enabled. |
enabled | otherwise | moves the Schedule Disabled → Enabled; emits Schedule |
wrong-state refused | the Schedule is in a state that does not allow it | Schedule: The schedule is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
EnableTrigger
Enable a trigger.
Called by: Trigger owner.
| field | type |
|---|---|
trigger_id | TriggerId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Trigger | Unknown: No trigger has this identity; nothing changed. |
schedule-not-enabled refused | the Schedule of schedule_ has state != Enabled | Schedule: The schedule is not enabled, so it does not tick and its trigger is not enabled. |
enabled | otherwise | moves the Trigger Disabled → Enabled; emits Trigger |
wrong-state refused | the Trigger is in a state that does not allow it | Trigger: The trigger is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
FireTrigger
Fire a trigger.
Called by: Scheduler.
| field | type | meaning |
|---|---|---|
firing_id | FiringId | Chosen by the caller once per firing it means; a repeat with the same identity records nothing. |
trigger_id | TriggerId | |
post_id | optional PostId | |
tick | optional timestamp | |
subject_key | optional string | |
plan | optional Name | What the scheduler chose to do for the subject, in the process's own word; the trigger does not check it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
repeated refused | the Firing exists already | Firing: A firing with this identity exists; the request repeats one already recorded, and records and starts nothing. |
unknown-trigger refused | no Trigger for trigger_ | Unknown: No trigger has this identity; nothing changed. |
disabled refused | the Trigger of trigger_ has state == Disabled | Trigger: The trigger is disabled, so it does not fire. |
cause-missing refused | the Trigger of trigger_ has (kind == On | Firing: An OnMessage trigger fires for a post and an OnSchedule trigger for a tick; nothing was recorded. |
subject-key-missing refused | the Trigger of trigger_ has defined(subject_ | Subject: The trigger answers a firing by its subject (a subject policy other than Another), and the firing names no subject key; nothing was recorded. |
subject-firing-open refused | a Firing with trigger_ | Subject: The trigger refuses a subject's firing while an earlier firing of that subject has not ended (subject policy Refuse); nothing was recorded. |
limit-reached refused | the Trigger of trigger_ has running >= max_ | Concurrency: The trigger's runs already fill its limit, so the firing is not recorded or not started. |
skipped | the Trigger of trigger_ has running >= max_ | creates a Firing in Fired; emits Trigger, Firing |
queued | the Trigger of trigger_ has running >= max_ | creates a Firing in Fired; emits Trigger, Firing |
fired | otherwise | creates a Firing in Fired; emits Trigger |
More columns: swipe horizontally, or focus the table and use the arrow keys.
PassScheduleChecks
Record that a schedule's checks passed.
Called by: Checker.
| field | type |
|---|---|
schedule_id | ScheduleId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Schedule | Unknown: No schedule has this identity; nothing changed. |
passed | otherwise | moves the Schedule Unchecked → Disabled; emits Schedule |
wrong-state refused | the Schedule is in a state that does not allow it | Schedule: The schedule is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordEnd
Record that a firing's run ended.
Called by: Dispatcher.
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown-trigger refused | no such Trigger | Unknown: No trigger has this identity; nothing changed. |
firing-not-running refused | no Firing with firing_ | Firing: No firing of this trigger with this identity has a run going; nothing changed. |
ended | otherwise | updates the Trigger; moves each Firing with firing_ to Ended; emits Firing |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordFailure
Record that a firing failed to start.
Called by: Dispatcher.
| field | type |
|---|---|
firing_id | FiringId |
failure | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Firing | Unknown: No firing has this identity; nothing changed. |
failed | otherwise | moves the Firing Fired → Failed; emits Firing |
wrong-state refused | the Firing is in a state that does not allow it | Firing: The firing is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordReplaced
Record that a firing's run was replaced.
Called by: Dispatcher.
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown-trigger refused | no such Trigger | Unknown: No trigger has this identity; nothing changed. |
firing-not-running refused | no Firing with firing_ | Firing: No firing of this trigger with this identity has a run going; nothing changed. |
replaced | otherwise | updates the Trigger; moves each Firing with firing_ to Replaced; emits Firing |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordStart
Record that a firing started.
Called by: Dispatcher.
| field | type |
|---|---|
trigger_id | TriggerId |
firing_id | FiringId |
run_id | optional RunId |
harness_session_id | optional HarnessSessionId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
without-run refused | not (defined(run_ | Start: A started firing names the run or the harness session it started. |
unknown-trigger refused | no such Trigger | Unknown: No trigger has this identity; nothing changed. |
firing-not-waiting refused | no Firing with firing_ | Firing: No firing of this trigger with this identity waits to start; nothing changed. |
subject-running refused | a Firing with trigger_ | Subject: Another firing of the trigger for the same subject has started and not ended, and the trigger answers a subject with one run at a time (a subject policy other than Another); nothing started. |
started | otherwise | updates the Trigger; moves each Firing with firing_ to Started; emits Firing |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SkipFiring
Skip a waiting firing.
Called by: Dispatcher.
| field | type | meaning |
|---|---|---|
firing_id | FiringId | |
reason | optional string | Why the firing is skipped, such as a draft change request or a subject already running. Required. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
reason-missing refused | not (defined(reason)) | Skip: A firing the dispatcher skips names why; nothing changed. |
unknown refused | no such Firing | Unknown: No firing has this identity; nothing changed. |
skipped | otherwise | moves the Firing Fired → Skipped; emits Firing |
wrong-state refused | the Firing is in a state that does not allow it | Firing: The firing is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
FiringEnded | firing_ FiringId, trigger_ TriggerId | Record |
FiringFailed | firing_ FiringId, failure string | Record |
FiringQueued | firing_ FiringId, trigger_ TriggerId | Fire |
FiringReplaced | firing_ FiringId, trigger_ TriggerId | Record |
FiringSkipped | firing_ FiringId, trigger_ TriggerId, reason optional string | Fire, Skip |
FiringStarted | firing_ FiringId, trigger_ TriggerId, run_ optional RunId, harness_ optional HarnessSessionId | Record |
ScheduleAdvanced | schedule_ ScheduleId, next_ timestamp | Advance |
ScheduleChecked | schedule_ ScheduleId | Pass |
ScheduleCreated | schedule_ ScheduleId, expression string, timezone string, next_ timestamp | Create |
ScheduleDisabled | schedule_ ScheduleId | Disable |
ScheduleEnabled | schedule_ ScheduleId | Enable |
TriggerCreated | trigger_ TriggerId, kind TriggerKind, reaction ReactionKind, agent_ optional AgentRevisionId, command optional string, policy ConcurrencyPolicy, max_ integer | Create |
TriggerDisabled | trigger_ TriggerId | Disable |
TriggerDryRun | dry_ DryRunId, trigger_ TriggerId, reaction ReactionKind, agent_ optional AgentRevisionId, command optional string, subject_ list of string | Dry |
TriggerEnabled | trigger_ TriggerId | Enable |
TriggerFired | firing_ FiringId, trigger_ TriggerId, post_ optional PostId, tick optional timestamp, command optional string, plan optional Name | Fire |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
DryRunsDry runs | each DryRun | dry_ DryRunId, trigger_ TriggerId, reaction ReactionKind, agent_ optional AgentRevisionId, command optional string, subject_ list of string, listed_ timestamp, state State |
Firings | each Firing | firing_ FiringId, trigger_ TriggerId, fired_ timestamp, post_ optional PostId, tick optional timestamp, run_ optional RunId, harness_ optional HarnessSessionId, started_ optional timestamp, ended_ optional timestamp, failure optional string, subject_ optional string, command optional string, subject_ optional SubjectPolicy, plan optional Name, skip_ optional string, state State |
RecentFirings | each Firing with trigger_asked with trigger_ TriggerId | firing_ FiringId, fired_ timestamp, post_ optional PostId, tick optional timestamp, run_ optional RunId, harness_ optional HarnessSessionId, state State |
Schedules | each Schedule | schedule_ ScheduleId, expression string, timezone string, next_ timestamp, checks_ optional timestamp, state State |
Triggers | each Trigger | trigger_ TriggerId, kind TriggerKind, subscription_ optional SubscriptionId, schedule_ optional ScheduleId, event_ optional string, reaction ReactionKind, agent_ optional AgentRevisionId, command optional string, task_ optional string, policy ConcurrencyPolicy, max_ integer, running integer, condition optional Condition, process_ optional ProcessId, intake optional list of IntakeField, start_ optional StartMode, subject_ optional SubjectPolicy, state State |
TriggersOfRevision | each Trigger with agent_asked with agent_ AgentRevisionId | trigger_ TriggerId, kind TriggerKind, policy ConcurrencyPolicy, max_ integer, running integer, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
ConcurrencyPolicy | one of | Skip, Queue, Parallel |
IntakeFieldOne input of a Command trigger's command taken from one field of the event. input is a name: one or more characters, none of them . or a space. field is a path: names joined by ., a member of a struct field as field.member. A trigger names each input once. | a record | input string, field string |
ReactionKindWake starts a run of the trigger's agent revision; Command issues the trigger's command, a named command of the blocks, with its input taken from the event's fields by the intake. | one of | Wake, Command |
StartModeAuto starts the run when the trigger fires; Offer waits in Fired until a principal accepts the firing (a question), and the dispatcher then records the start. | one of | Auto, Offer |
SubjectPolicyWhat a firing for a subject that already has a firing does. Another runs beside it; Skip, Queue and Replace record it and start no second run of the subject at a time; Refuse refuses the firing while the subject's earlier firing has not ended. | one of | Another, Skip, Queue, Replace, Refuse |
TriggerKindOnMessage fires when its subscription receives a matching post; OnSchedule when its schedule ticks; OnEvent when another block emits the named event. | one of | On, On, On |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
8 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
firing_failure_shareShare of started firings whose run failed. How: FiringFailed events divided by FiringStarted events per trigger. | share | lower | – | simulated source: design |
duplicate_runsTasks finished a second time from the same origin, so a second run did work already done. How: Finished tasks whose origin had already shipped; the second is dropped. The simulator counts them when it ships. A gate candidate, not a default gate. | count | lower | – | simulated source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
firing_skip_shareShare of firings skipped because a run of the trigger or of its subject was still going. How: FiringSkipped events divided by TriggerFired events per trigger. High means the trigger fires faster than its agent finishes, or its concurrency policy is too tight. | share | lower | – | simulated source: design |
firing_start_wait_p90_secondsTime from a firing to the start of its run, 90th percentile. How: Per firing, FiringStarted minus TriggerFired, including the time a queued firing waits; p90 over the window. | seconds | lower | – | simulated source: design |
firings_skippedFirings skipped because the trigger's runs filled its limit or its subject's firing ran. How: FiringSkipped events in the window. The simulator counts a firing under policy Skip at its limit. | count | lower | – | simulated source: design |
firings_queuedFirings that waited in the trigger's queue for a run to end before they started. How: FiringQueued events in the window. The simulator counts a firing under policy Queue at its limit. | count | lower | – | simulated source: design |
firings_emptyRuns a firing started that found nothing to take, looked once and ended. How: FiringStarted events whose run took no post and no task before FiringEnded. The simulator counts a started firing with no item on its source; the run still costs one model call. | count | lower | – | simulated source: design |
firings_replaced_shareShare of started firings that a newer firing for the same subject replaced. How: FiringReplaced events divided by FiringStarted events, per trigger with the Replace subject policy. High means work is started and thrown away. | share | lower | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part trigger:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
kind | enum Trigger: on_, on_, on_ | trigger. | What the trigger fires on. | ||
schedule | part | trigger. | The schedule part an on_schedule trigger fires on. | ||
channel | part | trigger. | The channel part an on_message trigger listens on. | ||
event_name | string | trigger. | The full name of the event an on_event trigger fires on. | ||
source | part | trigger. | The part whose events fire an on_event trigger, or an event bus: then the events of every part that emits onto it. | ||
policy | enum Concurrency: skip, queue, parallel | skip | trigger. | What a firing does while a run it started is still going. | |
max_parallel | integer | 1 | trigger. | How many runs may go at once under the parallel policy. | |
takes | enum: all | all: one run takes every waiting task, not one. | |||
task_template | string | The template of the task each firing starts. | |||
condition | condition | What an event must meet to fire an on_event trigger, as agentic.trigger.Condition writes it: all and any, each a list of comparisons {field, op, value}. The simulated events carry the field part, the part the event is at, compared by equal, not_equal, defined and not_defined; a comparison on any other field holds in the share condition_ of the events. | |||
condition_share | number | The share of the events, from 0 to 1, on which the comparisons of the condition on fields the simulated events do not carry hold; a simulator parameter, beside such a comparison only. | |||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
A part schedule:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
every | duration | trigger., trigger. | The time between two firings. | ||
next_fire_at | duration of at least 0s | 0s | trigger. | When the schedule first fires, from the start of the run. | |
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.