Skip to main content

Layer 7 · collaboration

trigger

blocks/7-collaboration/trigger.yaml

layer 7collaboration
4entities
15commands
16events
6views
46refusals
8KPIs

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​

Entities​

DryRun​

The firings a trigger would make for the current state, listed without making any.

Identified by dry_run_id (DryRunId).

fieldtypemeaning
trigger_idTriggerId
reactionReactionKindWhat each listed firing would do, the trigger's reaction.
agent_revision_idoptional AgentRevisionIdThe agent revision each listed firing of a Wake trigger would wake.
commandoptional stringThe command each listed firing of a Command trigger would issue.
subject_keyslist of stringOne 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_attimestamp

Relations:

  • agent_revision references AgentRevision of agent (one, by agent_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).

fieldtypemeaning
trigger_idTriggerId
fired_attimestamp
post_idoptional PostId
tickoptional timestamp
run_idoptional RunId
harness_session_idoptional HarnessSessionId
started_atoptional timestamp
ended_atoptional timestamp
failureoptional string
subject_keyoptional stringThe 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.
commandoptional stringIts trigger's command.
subject_policyoptional SubjectPolicyIts trigger's subject policy. FireTrigger reads it from the open firings of a subject key to refuse a second one under Refuse.
planoptional NameWhat 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_reasonoptional stringWhy the dispatcher skipped the firing. A firing skipped at its trigger's limit has none: the limit is the reason.

Relations:

  • post references Post of channel (one, by post_id)
  • run references Run of work (one, by run_id)
  • harness_session references HarnessSession of harness (one, by harness_session_id)

Lifecycle of Firing

EndedFailedFiredReplacedSkippedStartedstartendreplaceskipfailEndedFailedFiredReplacedSkippedStartedstartendreplaceskipfail
Ends in Ended, Failed, Replaced, Skipped.

Schedule​

When a scheduled trigger fires, as a cron-like expression in a timezone.

Identified by schedule_id (ScheduleId).

fieldtype
expressionstring
timezonestring
next_fire_attimestamp
checks_passed_atoptional timestamp

Lifecycle of Schedule

DisabledEnabledUncheckedpass_checksenabledisableDisabledEnabledUncheckedpass_checksenabledisable

Trigger​

What wakes one agent revision or issues a command, and how many of its runs may overlap.

Identified by trigger_id (TriggerId).

fieldtypemeaning
kindTriggerKind
subscription_idoptional SubscriptionIdWhat an OnMessage trigger listens on.
schedule_idoptional ScheduleIdWhat an OnSchedule trigger follows.
event_nameoptional stringThe fully qualified name of the event an OnEvent trigger waits for, such as agentic.work.RunEnded.
reactionReactionKindWhat a firing does.
agent_revision_idoptional AgentRevisionIdThe agent revision a Wake trigger wakes; a Wake trigger names one.
commandoptional stringThe fully qualified name of the command a Command trigger issues, such as agentic.store.PutRecord; a Command trigger names one.
task_templateoptional string
policyConcurrencyPolicy
max_parallelintegerHow many of its runs may overlap; 1 under Skip and Queue.
runningintegerIts firings started and not yet ended.
conditionoptional ConditionA 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_idoptional ProcessIdThe process the task it starts follows.
intakeoptional list of IntakeFieldThe 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_modeoptional StartModeAbsent means Auto.
subject_policyoptional SubjectPolicyWhat a firing for a subject that already has a firing does. Absent means Another; any other policy needs a subject key on every firing.

Relations:

  • subscription references Subscription of channel (one, by subscription_id)
  • schedule references Schedule (one, by schedule_id)
  • agent_revision references AgentRevision of agent (one, by agent_revision_id)
  • process references Process of process (one, by process_id)
  • firings owns Firing (many, by trigger_id)
  • dry_runs owns DryRun (many, by trigger_id)

Always holds: max_parallel >= 1, running >= 0.

Lifecycle of Trigger

DisabledEnabledenabledisableDisabledEnabledenabledisable

Commands​

AdvanceSchedule​

Move a schedule to its next fire time.

Called by: Scheduler.

fieldtype
schedule_idScheduleId
next_fire_attimestamp
outcomewhenresult
unknown refusedno such ScheduleUnknownSchedule: No schedule has this identity; nothing changed.
not-enabled refusedthe Schedule is Disabled or UncheckedScheduleNotEnabled: The schedule is not enabled, so it does not tick and its trigger is not enabled.
not-later refusedinput.next_fire_at <= next_fire_atFireTimeNotLater: The next fire time is not after the stored one; a schedule only moves forward, nothing changed.
advancedthe Schedule is Enabledupdates the Schedule; emits ScheduleAdvanced
not-ticking refusedotherwiseScheduleNotEnabled: The schedule is not enabled, so it does not tick and its trigger is not enabled.

CreateSchedule​

Create a schedule.

Called by: Trigger owner.

fieldtype
expressionstring
timezonestring
next_fire_attimestamp
outcomewhenresult
invalid refused(expression.count == 0 or timezone.count == 0)InvalidSchedule: A schedule has a non-empty expression and timezone; nothing was created.
createdotherwisecreates a Schedule in Unchecked; emits ScheduleCreated

CreateTrigger​

Create a trigger.

Called by: Trigger owner.

fieldtype
kindTriggerKind
subscription_idoptional SubscriptionId
schedule_idoptional ScheduleId
event_nameoptional string
reactionReactionKind
agent_revision_idoptional AgentRevisionId
commandoptional string
task_templateoptional string
policyConcurrencyPolicy
max_parallelinteger
conditionoptional Condition
process_idoptional ProcessId
intakeoptional list of IntakeField
start_modeoptional StartMode
subject_policyoptional SubjectPolicy
outcomewhenresult
invalid-concurrency refused(max_parallel < 1 or policy != Parallel and max_parallel != 1)InvalidConcurrency: A trigger lets at least one run start, and only a Parallel trigger more than one; nothing was created.
source-missing refused(kind == OnMessage and not (defined(subscription_id)) or kind == OnSchedule and not (defined(schedule_id)) or kind == OnEvent and not (defined(event_name)))TriggerSourceMissing: 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_revision_id)) or reaction == Command and not (defined(command)))ReactionTargetMissing: A Wake trigger names the agent revision it wakes and a Command trigger the command it issues; nothing was created.
condition-invalid refuseddefined(condition) and (condition.all.count == 0 and condition.any.count == 0 or some c in condition.all with (c.field.count == 0 or c.field starts with "." or c.field ends with "." or c.field contains ".." or c.field contains " " or (c.op == Defined or c.op == NotDefined) and defined(c.value) or c.op != Defined and c.op != NotDefined and not (defined(c.value))) or some c in condition.any with (c.field.count == 0 or c.field starts with "." or c.field ends with "." or c.field contains ".." or c.field contains " " or (c.op == Defined or c.op == NotDefined) and defined(c.value) or c.op != Defined and c.op != NotDefined and not (defined(c.value))))InvalidCondition: 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 refuseddefined(intake) and (some f in intake with (f.input.count == 0 or f.input contains "." or f.input contains " " or f.field.count == 0 or f.field starts with "." or f.field ends with "." or f.field contains ".." or f.field contains " ") or not (each f in intake has its own f.input))InvalidIntake: 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 refusedno Subscription for subscription_idUnknownSubscription: No subscription has this identity; nothing changed.
unknown-schedule refusedno Schedule for schedule_idUnknownSchedule: No schedule has this identity; nothing changed.
unknown-revision refusedno AgentRevision for agent_revision_idUnknownAgentRevision: No agent revision has this identity; nothing was created.
createdotherwisecreates a Trigger in Disabled; emits TriggerCreated

DisableSchedule​

Disable a schedule.

Called by: Trigger owner.

fieldtype
schedule_idScheduleId
outcomewhenresult
unknown refusedno such ScheduleUnknownSchedule: No schedule has this identity; nothing changed.
disabledotherwisemoves the Schedule Enabled → Disabled; moves each Trigger with schedule_id == input.schedule_id and state == Enabled to Disabled; emits ScheduleDisabled
wrong-state refusedthe Schedule is in a state that does not allow itScheduleStateConflict: The schedule is not in a state this command acts from.

DisableTrigger​

Disable a trigger.

Called by: Trigger owner.

fieldtype
trigger_idTriggerId
outcomewhenresult
unknown refusedno such TriggerUnknownTrigger: No trigger has this identity; nothing changed.
disabledotherwisemoves the Trigger Enabled → Disabled; emits TriggerDisabled
wrong-state refusedthe Trigger is in a state that does not allow itTriggerStateConflict: The trigger is not in a state this command acts from.

DryRunTrigger​

List the firings a trigger would make.

Called by: Scheduler.

fieldtypemeaning
trigger_idTriggerId
subject_keyslist of stringThe subjects the trigger's condition holds for now, one per firing it would make; empty when it holds for none.
outcomewhenresult
unknown-trigger refusedno Trigger for trigger_idUnknownTrigger: No trigger has this identity; nothing changed.
listedotherwisecreates a DryRun in Listed; emits TriggerDryRun

EnableSchedule​

Enable a schedule.

Called by: Trigger owner.

fieldtype
schedule_idScheduleId
outcomewhenresult
unknown refusedno such ScheduleUnknownSchedule: No schedule has this identity; nothing changed.
checks-not-passed refusedstate == UncheckedChecksNotPassed: The schedule's restriction checks have not passed, so it is not enabled.
enabledotherwisemoves the Schedule Disabled → Enabled; emits ScheduleEnabled
wrong-state refusedthe Schedule is in a state that does not allow itScheduleStateConflict: The schedule is not in a state this command acts from.

EnableTrigger​

Enable a trigger.

Called by: Trigger owner.

fieldtype
trigger_idTriggerId
outcomewhenresult
unknown refusedno such TriggerUnknownTrigger: No trigger has this identity; nothing changed.
schedule-not-enabled refusedthe Schedule of schedule_id has state != EnabledScheduleNotEnabled: The schedule is not enabled, so it does not tick and its trigger is not enabled.
enabledotherwisemoves the Trigger Disabled → Enabled; emits TriggerEnabled
wrong-state refusedthe Trigger is in a state that does not allow itTriggerStateConflict: The trigger is not in a state this command acts from.

FireTrigger​

Fire a trigger.

Called by: Scheduler.

fieldtypemeaning
firing_idFiringIdChosen by the caller once per firing it means; a repeat with the same identity records nothing.
trigger_idTriggerId
post_idoptional PostId
tickoptional timestamp
subject_keyoptional string
planoptional NameWhat the scheduler chose to do for the subject, in the process's own word; the trigger does not check it.
outcomewhenresult
repeated refusedthe Firing exists alreadyFiringExists: A firing with this identity exists; the request repeats one already recorded, and records and starts nothing.
unknown-trigger refusedno Trigger for trigger_idUnknownTrigger: No trigger has this identity; nothing changed.
disabled refusedthe Trigger of trigger_id has state == DisabledTriggerIsDisabled: The trigger is disabled, so it does not fire.
cause-missing refusedthe Trigger of trigger_id has (kind == OnMessage and not (defined(input.post_id)) or kind == OnSchedule and not (defined(input.tick)))FiringCauseMissing: An OnMessage trigger fires for a post and an OnSchedule trigger for a tick; nothing was recorded.
subject-key-missing refusedthe Trigger of trigger_id has defined(subject_policy) and subject_policy != Another and not (defined(input.subject_key))SubjectKeyMissing: 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 refuseda Firing with trigger_id == input.trigger_id and defined(subject_key) and subject_key == input.subject_key and (state == Fired or state == Started) and defined(subject_policy) and subject_policy == RefuseSubjectFiringOpen: 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 refusedthe Trigger of trigger_id has running >= max_parallel and policy == ParallelConcurrencyLimitReached: The trigger's runs already fill its limit, so the firing is not recorded or not started.
skippedthe Trigger of trigger_id has running >= max_parallel and policy == Skipcreates a Firing in Fired; emits TriggerFired, FiringSkipped
queuedthe Trigger of trigger_id has running >= max_parallel and policy == Queuecreates a Firing in Fired; emits TriggerFired, FiringQueued
firedotherwisecreates a Firing in Fired; emits TriggerFired

PassScheduleChecks​

Record that a schedule's checks passed.

Called by: Checker.

fieldtype
schedule_idScheduleId
outcomewhenresult
unknown refusedno such ScheduleUnknownSchedule: No schedule has this identity; nothing changed.
passedotherwisemoves the Schedule Unchecked → Disabled; emits ScheduleChecked
wrong-state refusedthe Schedule is in a state that does not allow itScheduleStateConflict: The schedule is not in a state this command acts from.

RecordEnd​

Record that a firing's run ended.

Called by: Dispatcher.

fieldtype
trigger_idTriggerId
firing_idFiringId
outcomewhenresult
unknown-trigger refusedno such TriggerUnknownTrigger: No trigger has this identity; nothing changed.
firing-not-running refusedno Firing with firing_id == input.firing_id and trigger_id == input.trigger_id and state == StartedFiringNotRunning: No firing of this trigger with this identity has a run going; nothing changed.
endedotherwiseupdates the Trigger; moves each Firing with firing_id == input.firing_id to Ended; emits FiringEnded

RecordFailure​

Record that a firing failed to start.

Called by: Dispatcher.

fieldtype
firing_idFiringId
failurestring
outcomewhenresult
unknown refusedno such FiringUnknownFiring: No firing has this identity; nothing changed.
failedotherwisemoves the Firing Fired → Failed; emits FiringFailed
wrong-state refusedthe Firing is in a state that does not allow itFiringStateConflict: The firing is not in a state this command acts from.

RecordReplaced​

Record that a firing's run was replaced.

Called by: Dispatcher.

fieldtype
trigger_idTriggerId
firing_idFiringId
outcomewhenresult
unknown-trigger refusedno such TriggerUnknownTrigger: No trigger has this identity; nothing changed.
firing-not-running refusedno Firing with firing_id == input.firing_id and trigger_id == input.trigger_id and state == StartedFiringNotRunning: No firing of this trigger with this identity has a run going; nothing changed.
replacedotherwiseupdates the Trigger; moves each Firing with firing_id == input.firing_id to Replaced; emits FiringReplaced

RecordStart​

Record that a firing started.

Called by: Dispatcher.

fieldtype
trigger_idTriggerId
firing_idFiringId
run_idoptional RunId
harness_session_idoptional HarnessSessionId
outcomewhenresult
without-run refusednot (defined(run_id)) and not (defined(harness_session_id))StartWithoutRun: A started firing names the run or the harness session it started.
unknown-trigger refusedno such TriggerUnknownTrigger: No trigger has this identity; nothing changed.
firing-not-waiting refusedno Firing with firing_id == input.firing_id and trigger_id == input.trigger_id and state == FiredFiringNotWaiting: No firing of this trigger with this identity waits to start; nothing changed.
subject-running refuseda Firing with trigger_id == input.trigger_id and state == Started and some waiting in each Firing with waiting.firing_id == input.firing_id and waiting.subject_key == subject_key and some t in each Trigger with t.trigger_id == trigger_id and defined(t.subject_policy) and t.subject_policy != AnotherSubjectRunning: 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.
startedotherwiseupdates the Trigger; moves each Firing with firing_id == input.firing_id to Started; emits FiringStarted

SkipFiring​

Skip a waiting firing.

Called by: Dispatcher.

fieldtypemeaning
firing_idFiringId
reasonoptional stringWhy the firing is skipped, such as a draft change request or a subject already running. Required.
outcomewhenresult
reason-missing refusednot (defined(reason))SkipReasonMissing: A firing the dispatcher skips names why; nothing changed.
unknown refusedno such FiringUnknownFiring: No firing has this identity; nothing changed.
skippedotherwisemoves the Firing Fired → Skipped; emits FiringSkipped
wrong-state refusedthe Firing is in a state that does not allow itFiringStateConflict: The firing is not in a state this command acts from.

Events​

eventfieldsemitted by
FiringEndedfiring_id FiringId, trigger_id TriggerIdRecordEnd
FiringFailedfiring_id FiringId, failure stringRecordFailure
FiringQueuedfiring_id FiringId, trigger_id TriggerIdFireTrigger
FiringReplacedfiring_id FiringId, trigger_id TriggerIdRecordReplaced
FiringSkippedfiring_id FiringId, trigger_id TriggerId, reason optional stringFireTrigger, SkipFiring
FiringStartedfiring_id FiringId, trigger_id TriggerId, run_id optional RunId, harness_session_id optional HarnessSessionIdRecordStart
ScheduleAdvancedschedule_id ScheduleId, next_fire_at timestampAdvanceSchedule
ScheduleCheckedschedule_id ScheduleIdPassScheduleChecks
ScheduleCreatedschedule_id ScheduleId, expression string, timezone string, next_fire_at timestampCreateSchedule
ScheduleDisabledschedule_id ScheduleIdDisableSchedule
ScheduleEnabledschedule_id ScheduleIdEnableSchedule
TriggerCreatedtrigger_id TriggerId, kind TriggerKind, reaction ReactionKind, agent_revision_id optional AgentRevisionId, command optional string, policy ConcurrencyPolicy, max_parallel integerCreateTrigger
TriggerDisabledtrigger_id TriggerIdDisableTrigger
TriggerDryRundry_run_id DryRunId, trigger_id TriggerId, reaction ReactionKind, agent_revision_id optional AgentRevisionId, command optional string, subject_keys list of stringDryRunTrigger
TriggerEnabledtrigger_id TriggerIdEnableTrigger
TriggerFiredfiring_id FiringId, trigger_id TriggerId, post_id optional PostId, tick optional timestamp, command optional string, plan optional NameFireTrigger

Views​

viewrowsfields
DryRuns
Dry runs
each DryRundry_run_id DryRunId, trigger_id TriggerId, reaction ReactionKind, agent_revision_id optional AgentRevisionId, command optional string, subject_keys list of string, listed_at timestamp, state State
Firingseach Firingfiring_id FiringId, 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, command optional string, subject_policy optional SubjectPolicy, plan optional Name, skip_reason optional string, state State
RecentFiringseach Firing with trigger_id == param.trigger_id
asked with trigger_id TriggerId
firing_id FiringId, fired_at timestamp, post_id optional PostId, tick optional timestamp, run_id optional RunId, harness_session_id optional HarnessSessionId, state State
Scheduleseach Scheduleschedule_id ScheduleId, expression string, timezone string, next_fire_at timestamp, checks_passed_at optional timestamp, state State
Triggerseach Triggertrigger_id TriggerId, 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, running integer, condition optional Condition, process_id optional ProcessId, intake optional list of IntakeField, start_mode optional StartMode, subject_policy optional SubjectPolicy, state State
TriggersOfRevisioneach Trigger with agent_revision_id == param.agent_revision_id
asked with agent_revision_id AgentRevisionId
trigger_id TriggerId, kind TriggerKind, policy ConcurrencyPolicy, max_parallel integer, running integer, state State

Types​

typeisvalues or fields
ConcurrencyPolicyone ofSkip, Queue, Parallel
IntakeField
One 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 recordinput string, field string
ReactionKind
Wake 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 ofWake, Command
StartMode
Auto 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 ofAuto, Offer
SubjectPolicy
What 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 ofAnother, Skip, Queue, Replace, Refuse
TriggerKind
OnMessage fires when its subscription receives a matching post; OnSchedule when its schedule ticks; OnEvent when another block emits the named event.
one ofOnEvent, OnMessage, OnSchedule

KPIs​

8 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.

Correctness​

KPIunitbettergatestatus
firing_failure_share
Share of started firings whose run failed.
How: FiringFailed events divided by FiringStarted events per trigger.
sharelower–simulated
source: design
duplicate_runs
Tasks 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.
countlower–simulated
source: design

Quality​

KPIunitbettergatestatus
firing_skip_share
Share 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.
sharelower–simulated
source: design
firing_start_wait_p90_seconds
Time 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.
secondslower–simulated
source: design
firings_skipped
Firings 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.
countlower–simulated
source: design
firings_queued
Firings 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.
countlower–simulated
source: design
firings_empty
Runs 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.
countlower–simulated
source: design
firings_replaced_share
Share 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.
sharelower–planned
source: design

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:

settingtypeunitdefaultcontractwhat
kindenum TriggerKind: on_event, on_message, on_scheduletrigger.firingWhat the trigger fires on.
scheduleparttrigger.firingThe schedule part an on_schedule trigger fires on.
channelparttrigger.firingThe channel part an on_message trigger listens on.
event_namestringtrigger.firingThe full name of the event an on_event trigger fires on.
sourceparttrigger.firingThe part whose events fire an on_event trigger, or an event bus: then the events of every part that emits onto it.
policyenum ConcurrencyPolicy: skip, queue, parallelskiptrigger.firingWhat a firing does while a run it started is still going.
max_parallelinteger1trigger.firingHow many runs may go at once under the parallel policy.
takesenum: allall: one run takes every waiting task, not one.
task_templatestringThe template of the task each firing starts.
conditionconditionWhat 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_share of the events.
condition_sharenumberThe 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.
countinteger of at least 11How many copies of the part run.
perpartOne copy of the part for each copy of the named part.
notesnotesFree 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.

A part schedule:

settingtypeunitdefaultcontractwhat
everydurationtrigger.firing, trigger.scheduleThe time between two firings.
next_fire_atduration of at least 0s0strigger.scheduleWhen the schedule first fires, from the start of the run.
countinteger of at least 11How many copies of the part run.
perpartOne copy of the part for each copy of the named part.
notesnotesFree 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.