Skip to main content

Layer 7 · collaboration

channel

blocks/7-collaboration/channel.yaml

layer 7collaboration
8entities
23commands
21events
11views
123refusals
6KPIs

How parties exchange messages. A direct channel joins exactly two parties, each a principal or a harness session, and carries messages from one to the other. A shared channel (a topic, a queue or a board) has the parties that subscribe to it, and carries posts. A channel says how it delivers: in order or not, and whether it may lose a message. Only a party sends, only while the channel is open, and every message and post says whether it requests an action or informs, how its sender claims to be proven, and the delegation it is sent under when it is sent for another party; a delegation counts only when it is active and the caller names its own principal as the delegate. A verifier records that it checked the proof a message or post claims. A session records the turn it read a message in only with a turn of its own. A subscription may relay a principal's posts into a session, carries a heartbeat and may state how long after it its party counts as online. The channel policy sets a shared channel's posting rule: posts only in one principal's name, a pick of the exact text by one picker, or no post while its audience is unknown; a pick holds only while the rule names its picker. A control act joins a control post a party clicked to the task, run or decision the click produced, or says it asked a question. An event channel, a topic or a queue, is a named bus: the runtime publishes the events of the blocks on it by their identity in its log, no party sends, and each subscription keeps a cursor; a resume from a cursor older than the channel's retention is refused, never skipped. The message sequences over a channel are protocols of their own; this block is the contract they run on.

Depends on​

Used by​

Entities​

Channel​

A channel between two parties, or a shared channel its subscribers read.

Identified by channel_id (ChannelId).

fieldtypemeaning
kindChannelKind
distributionDistribution
party_aPartyIdThe party that opened the channel.
party_a_kindPartyKind
party_boptional PartyIdThe other party of a direct channel; absent on a shared channel.
party_b_kindoptional PartyKind
orderedbooleanMessages arrive in the order they were sent.
may_losebooleanA sent message may never arrive; it then ends Lost.
entry_limitsoptional EntryLimitsThe length limit of each entry kind; required on a board, and read on no other channel.
owneroptional PrincipalId
delegation_idoptional DelegationId
audienceoptional AudienceWho reads what is sent on the channel; absent when nobody said.
retention_secondsoptional integerHow long an event channel keeps its events, in seconds; absent, it keeps them while it is open. Read on no other channel.
posting_ruleoptional PostingRuleWhat a post on the shared channel needs; absent, it posts as before any rule.

Relations:

  • owner references Principal of principal (one, by owner)
  • delegation references Delegation of delegation (one, by delegation_id)

Lifecycle of Channel

ClosedOpencloseClosedOpenclose
Ends in Closed.

ControlAct​

One click on a control post, joined to the task, run or decision it produced or the question it asked.

Identified by control_act_id (ControlActId).

fieldtypemeaning
post_idPostIdThe control post clicked.
partyPartyIdThe party that clicked.
task_idoptional TaskIdThe task the click created.
run_idoptional RunIdThe run the click started.
decision_idoptional DecisionIdThe decision the click made.
asked_questionbooleanThe click asked a question; that question names this act.
acted_attimestamp

Relations:

  • post references Post (one, by post_id)
  • task references Task of work (one, by task_id)
  • run references Run of work (one, by run_id)
  • decision references Decision of authority (one, by decision_id)

Lifecycle: one state, Recorded; a recorded ControlAct does not change.

EventPost​

One event of the blocks, published on an event channel by its identity in the runtime's log.

Identified by event_post_id (EventPostId).

fieldtypemeaning
channel_idChannelId
sequenceintegerThe event's place in the runtime's log, the cursor a subscription resumes from.
event_nameNameThe qualified name of the event (agentic.work.DeliverableAccepted).
architectureNameThe architecture whose part emitted the event.
part_pathNameThe path of the part that emitted the event.
instanceoptional integerThe copy of that part, when it runs more than one.
subject_keyoptional stringThe key of the row of the event's view the event is about.
emitted_attimestamp
payload_digeststringThe digest of the event's payload; the payload itself stays in the log.
taken_byoptional SubscriptionIdThe subscription that took the event from a queue.
taken_atoptional timestamp

Relations:

  • channel references Channel (one, by channel_id)
  • taker references Subscription (one, by taken_by)

Lifecycle of EventPost

ExpiredPublishedTakentakeexpireexpireExpiredPublishedTakentakeexpireexpire
Ends in Expired, Published, Taken.

Message​

One message sent over a direct channel from one party to the other.

Identified by message_id (MessageId).

fieldtypemeaning
channel_idChannelId
fromPartyId
toPartyId
actAct
contentContent
in_reply_tooptional MessageId
sent_attimestamp
delivered_atoptional timestamp
read_atoptional timestamp
delegation_idoptional DelegationIdThe delegation under which the sender sends for its delegator; the message then counts as the delegator's, and absent it counts as the sender's own. SendMessage records it only when it is active and its delegate is the principal the caller names as its own.
proofoptional ProofHow the sender claims the message is proven. It is the sender's claim; only a ProofCheck of this message shows a verifier checked it.
sent_by_calloptional ToolCallIdThe tool call of the sending session that sent the message, so the two records join.
received_in_turnoptional TurnIdThe turn of the receiving session that read the message, when the recipient is a session; it joins the message to what that turn did. Of the commands, only MarkReadInTurn sets it, after checking the turn is one of the reading session's.

Relations:

  • channel references Channel (one, by channel_id)
  • reply_to references Message (one, by in_reply_to)
  • on_behalf references Delegation of delegation (one, by delegation_id)
  • send_call references ToolCall of harness (one, by sent_by_call)
  • received_in references Turn of harness (one, by received_in_turn)

Lifecycle of Message

DeliveredLostReadSentdeliverreadloseDeliveredLostReadSentdeliverreadlose
Ends in Delivered, Lost, Read.

Post​

One post on a topic, a queue or a board, by a party subscribed to it.

Identified by post_id (PostId).

fieldtypemeaning
channel_idChannelId
fromPartyId
actAct
entryoptional EntryKindThe entry kind of a board post; absent on a topic or a queue.
contentContent
in_reply_tooptional PostId
posted_attimestamp
taken_byoptional PartyIdThe subscriber that took a queue post.
taken_atoptional timestamp
delegation_idoptional DelegationIdThe delegation under which the poster posts for its delegator: in the delegator's name, a person's own account for instance. Absent, it posts in its own name. PostMessage records it only when it is active and its delegate is the principal the caller names as its own.
proofoptional ProofHow the poster claims the post is proven. It is the poster's claim; only a ProofCheck of this post shows a verifier checked it.
pick_idoptional PostPickIdThe pick of this exact text on this channel the post was made under, when the channel's rule requires one.

Relations:

  • channel references Channel (one, by channel_id)
  • reply_to references Post (one, by in_reply_to)
  • on_behalf references Delegation of delegation (one, by delegation_id)
  • pick references PostPick (one, by pick_id)

Lifecycle of Post

PostedTakentakePostedTakentake
Ends in Posted, Taken.

PostPick​

A principal's pick of one exact text to be posted on one channel.

Identified by post_pick_id (PostPickId).

fieldtypemeaning
channel_idChannelId
contentContentThe text picked, by its digest.
picked_byPrincipalIdThe principal that picked it.
picked_attimestamp

Relations:

  • channel references Channel (one, by channel_id)
  • picker references Principal of principal (one, by picked_by)

Lifecycle: one state, Recorded; a recorded PostPick does not change.

ProofCheck​

A verifier checked the proof one message or one post claims.

Identified by proof_check_id (ProofCheckId).

fieldtypemeaning
message_idoptional MessageIdThe message checked; absent when a post was.
post_idoptional PostIdThe post checked; absent when a message was.
proofProofThe proof checked, the one the message or post claims.
markslist of NameThe marks the verifier found, such as a user id and a client message id.
checked_byPrincipalIdThe verifier's principal.
checked_attimestamp

Relations:

  • message references Message (one, by message_id)
  • post references Post (one, by post_id)
  • verifier references Principal of principal (one, by checked_by)

Lifecycle: one state, Recorded; a recorded ProofCheck does not change.

Subscription​

One party subscribed to one shared channel, with an optional filter.

Identified by subscription_id (SubscriptionId).

fieldtypemeaning
channel_idChannelId
partyPartyId
party_kindPartyKind
filter_actoptional Act
filter_entryoptional EntryKind
filter_scopeoptional string
subscribed_attimestamp
relays_foroptional PrincipalIdThe principal whose posts this subscription carries into the subscribed session, as a watcher relays a human's chat: a turn they start counts as the principal's, and waiting for them is waiting on that principal.
last_beat_atoptional timestampThe last heartbeat of the subscribed party. It counts as online for online_for_seconds after this instant; without a window, whether it is online is the reader's own threshold over this instant. Online itself is not stored.
online_for_secondsoptional integerThe window after the last heartbeat in which the party counts as online, in seconds, at least 1. Absent, the reader applies its own threshold.
cursoroptional integerOn an event channel, the sequence of the last event the subscription received or resumed from; it then receives exactly the events after it. Absent on any other channel.

Relations:

  • channel references Channel (one, by channel_id)
  • relayed references Principal of principal (one, by relays_for)

Lifecycle of Subscription

ActiveEndedendActiveEndedend
Ends in Ended.

Commands​

Beat​

Record a heartbeat. The subscribed party says it is still watching its channel.

Called by: Participant.

fieldtype
subscription_idSubscriptionId
partyPartyId
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such SubscriptionUnknownSubscription: No subscription has this identity.
not-the-subscriber refusedparty != input.partyNotTheSubscriber: Only the subscribed party posts through or ends its subscription.
ended refusedthe Subscription is EndedSubscriptionStateConflict: The subscription is not in a state this command acts from.
beatotherwiseupdates the Subscription; emits HeartbeatRecorded

CloseChannel​

Close a channel. A party closes a direct channel; nothing more is sent over it.

Called by: Participant.

fieldtype
channel_idChannelId
outcomewhenresult
unknown refusedno such ChannelUnknownChannel: No channel has this identity.
shared-channel refuseddistribution != DirectNotADirectChannel: The channel is a shared channel; it is posted to, and closed with CloseSharedChannel.
not-a-party refusedparty_a != caller.party and party_b != caller.partyNotAParty: The party is not one of the two parties of this channel.
closedotherwisemoves the Channel Open → Closed; emits ChannelClosed
wrong-state refusedthe Channel is in a state that does not allow itChannelStateConflict: The channel is not in a state this command acts from.

CloseSharedChannel​

Close a shared channel. The opener closes a topic, a queue or a board; its subscriptions end and nothing more is posted.

Called by: Participant.

fieldtype
channel_idChannelId
outcomewhenresult
unknown refusedno such ChannelUnknownChannel: No channel has this identity.
direct-channel refuseddistribution == DirectNotASharedChannel: The channel joins two fixed parties; nobody subscribes or posts to it.
not-the-opener refusedparty_a != caller.partyNotTheOpener: Only the party that opened a shared channel closes it.
closedotherwisemoves the Channel Open → Closed; moves each Subscription with channel_id == input.channel_id to Ended; emits ChannelClosed
wrong-state refusedthe Channel is in a state that does not allow itChannelStateConflict: The channel is not in a state this command acts from.

EndSubscription​

End a subscription. The subscribed party ends its subscription; it receives nothing more from the channel.

Called by: Participant.

fieldtype
subscription_idSubscriptionId
partyPartyId
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such SubscriptionUnknownSubscription: No subscription has this identity.
not-the-subscriber refusedparty != input.partyNotTheSubscriber: Only the subscribed party posts through or ends its subscription.
endedotherwisemoves the Subscription Active → Ended; emits SubscriptionEnded
wrong-state refusedthe Subscription is in a state that does not allow itSubscriptionStateConflict: The subscription is not in a state this command acts from.

ExpireEvent​

Drop an expired event. The runtime drops one event of an event channel past the channel's retention.

Called by: Publisher.

fieldtype
event_post_idEventPostId
outcomewhenresult
unknown refusedno such EventPostUnknownEventPost: No event was published with this identity.
expiredotherwisemoves the EventPost Published, Taken → Expired; emits EventExpired
wrong-state refusedthe EventPost is in a state that does not allow itEventStateConflict: The event is not in a state this command acts from: another subscription already took it from the queue, or the runtime dropped it past the retention.

MarkDelivered​

Mark a message delivered.

Called by: Transport.

fieldtype
message_idMessageId
outcomewhenresult
unknown refusedno such MessageUnknownMessage: No message has this identity.
deliveredotherwisemoves the Message Sent → Delivered; emits MessageDelivered
wrong-state refusedthe Message is in a state that does not allow itMessageStateConflict: The message is not in a state this command acts from.

MarkLost​

Mark a message lost.

Called by: Transport.

fieldtype
message_idMessageId
outcomewhenresult
unknown refusedno such MessageUnknownMessage: No message has this identity.
lossless refusedthe Channel of channel_id has may_lose == falseLosslessChannel: The message travels on a channel that does not lose messages.
lostotherwisemoves the Message Sent → Lost; emits MessageLost
wrong-state refusedthe Message is in a state that does not allow itMessageStateConflict: The message is not in a state this command acts from.

MarkRead​

Mark a message read.

Called by: Participant.

fieldtype
message_idMessageId
readerPartyId
outcomewhenresult
reader-not-the-caller refusedreader != caller.partyNotTheRecipient: Only the party a message is addressed to marks it read.
unknown refusedno such MessageUnknownMessage: No message has this identity.
not-the-recipient refusedto != input.readerNotTheRecipient: Only the party a message is addressed to marks it read.
readotherwisemoves the Message Delivered → Read; emits MessageRead
wrong-state refusedthe Message is in a state that does not allow itMessageStateConflict: The message is not in a state this command acts from.

MarkReadInTurn​

Mark a message read in a turn. The recipient session marks a message read in one of its own recorded turns.

Called by: Reading session.

fieldtypemeaning
message_idMessageId
readerPartyId
reader_sessionHarnessSessionId
turn_idTurnIdThe turn of the reading session in which it read the message.
outcomewhenresult
reader-not-the-caller refusedreader != caller.partyNotTheRecipient: Only the party a message is addressed to marks it read.
session-not-the-callers refusedreader_session != caller.sessionTurnNotTheReaders: The turn is not one of the reading session's, or the session named is not the caller's; nothing was read.
unknown refusedno such MessageUnknownMessage: No message has this identity.
not-the-recipient refusedto != input.readerNotTheRecipient: Only the party a message is addressed to marks it read.
unknown-turn refusedno Turn for turn_idUnknownTurn: No turn of this identity was recorded; nothing was read.
turn-not-the-readers refusedthe Turn of turn_id has harness_session_id != input.reader_sessionTurnNotTheReaders: The turn is not one of the reading session's, or the session named is not the caller's; nothing was read.
readotherwisemoves the Message Delivered → Read; emits MessageRead
wrong-state refusedthe Message is in a state that does not allow itMessageStateConflict: The message is not in a state this command acts from.

OpenChannel​

Open a channel. Open a direct channel between the caller and one other party.

Called by: Participant.

fieldtype
kindChannelKind
peerPartyId
peer_kindPartyKind
orderedboolean
may_loseboolean
owneroptional PrincipalId
delegation_idoptional DelegationId
audienceoptional Audience
outcomewhenresult
same-party refusedpeer == caller.partySameParty: Both ends of the channel are the same party.
event-channel-direct refusedkind == EventEventChannelIsTopicOrQueue: An event channel is a topic or a queue; it is neither direct nor a board.
operator-without-owner refusedkind == Operator and (not (defined(owner)) or not (defined(delegation_id)))OperatorWithoutOwner: An Operator channel names no owner or no delegation; it is owned by one human and its delegate.
unknown-owner refusedno Principal for ownerUnknownOwner: The owner named is no registered principal; nothing was opened.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was opened.
owner-not-human refusedthe Principal of owner has kind != HumanOwnerNotHuman: The owner of an Operator channel is a human principal; nothing was opened.
delegation-not-from-owner refusedthe Delegation of delegation_id has (delegator != input.owner or state != Active)DelegationNotFromOwner: The delegation of an Operator channel is not an active delegation granted by its owner; nothing was opened.
openedotherwisecreates a Channel in Open; emits ChannelOpened

OpenSharedChannel​

Open a shared channel. Open a topic, a queue or a board; parties join it by subscribing.

Called by: Participant.

fieldtypemeaning
kindChannelKind
distributionDistribution
orderedboolean
may_loseboolean
entry_limitsoptional EntryLimits
audienceoptional Audience
retention_secondsoptional integerHow long an event channel keeps its events, in seconds; absent, while it is open.
outcomewhenresult
direct refuseddistribution == DirectDirectIsNotShared: A shared channel is a topic, a queue or a board; a direct channel is opened with its other party.
event-board refusedkind == Event and distribution == BoardEventChannelIsTopicOrQueue: An event channel is a topic or a queue; it is neither direct nor a board.
board-without-limits refuseddistribution == Board and not (defined(entry_limits))BoardWithoutLimits: A board names the length limit of each entry kind when it is opened.
openedotherwisecreates a Channel in Open; emits SharedChannelOpened

PostMessage​

Post to a shared channel. The caller posts once to a topic, a queue or a board it subscribes to.

Called by: Participant.

fieldtypemeaning
channel_idChannelId
fromPartyId
actAct
entryoptional EntryKind
contentContent
in_reply_tooptional PostId
delegation_idoptional DelegationId
sender_principaloptional PrincipalIdThe caller's own principal, named with a delegation: it must be the caller's and the delegation's delegate.
pick_idoptional PostPickIdThe pick of this exact text on this channel, when the channel's rule requires one.
in_name_ofoptional PrincipalIdThe principal in whose name the post is made: the caller's own principal, or with a delegation its delegator.
picked_byoptional PrincipalIdThe principal that picked the text, named with a pick: it must be the pick's and the picker the channel's rule names now.
proofoptional Proof
outcomewhenresult
not-the-sender refusedfrom != caller.partyNotTheSender: The message names a sender other than the caller.
delegate-unnamed refuseddefined(delegation_id) and (not (defined(sender_principal)) or sender_principal != caller.principal)NotTheDelegate: A message or post sent under a delegation names, as the sender's principal, the caller's own principal, and that principal is the delegation's delegate; nothing was sent.
own-name-not-the-callers refuseddefined(in_name_of) and not (defined(delegation_id)) and in_name_of != caller.principalNotInThatName: The post is not made in the name the channel's rule takes, or in a name that is neither the caller's own principal nor the delegator of its delegation; nothing was posted.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was opened.
unknown-pick refusedno PostPick for pick_idUnknownPick: No pick of this identity was recorded; nothing was posted.
direct-channel refusedthe Channel of channel_id has distribution == DirectNotASharedChannel: The channel joins two fixed parties; nobody subscribes or posts to it.
event-channel refusedthe Channel of channel_id has kind == EventEventChannelIsPublished: Only the publisher, the runtime, puts events on an event channel; no party posts on it.
channel-closed refusedthe Channel of channel_id has state == ClosedChannelIsClosed: The channel is closed; nothing is sent over it and nobody subscribes to it.
not-the-delegate refusedthe Delegation of delegation_id has delegate != input.sender_principalNotTheDelegate: A message or post sent under a delegation names, as the sender's principal, the caller's own principal, and that principal is the delegation's delegate; nothing was sent.
delegation-not-active refusedthe Delegation of delegation_id has state != ActiveDelegationNotActive: The delegation was revoked or has expired; nothing was sent.
entry-missing refusedthe Channel of channel_id has distribution == BoardEntryKindMissing: A post on a board names its entry kind.
entry-too-long refusedthe Channel of channel_id has distribution == Board and defined(input.entry) and (input.entry == Observed and input.content.length > entry_limits.observed or input.entry == Fact and input.content.length > entry_limits.fact or input.entry == Fail and input.content.length > entry_limits.fail or input.entry == Claim and input.content.length > entry_limits.claim or input.entry == PatchSummary and input.content.length > entry_limits.patch_summary)EntryTooLong: The content is longer than the board admits for this entry kind.
delegated-for-another refusedthe Delegation of delegation_id has delegator != input.in_name_ofNotInThatName: The post is not made in the name the channel's rule takes, or in a name that is neither the caller's own principal nor the delegator of its delegation; nothing was posted.
not-in-that-name refusedthe Channel of channel_id has defined(posting_rule) and defined(posting_rule.only_for) and (not (defined(input.in_name_of)) or posting_rule.only_for != input.in_name_of)NotInThatName: The post is not made in the name the channel's rule takes, or in a name that is neither the caller's own principal nor the delegator of its delegation; nothing was posted.
audience-unknown refusedthe Channel of channel_id has defined(posting_rule) and posting_rule.refuse_unknown_audience == true and (not (defined(audience)) or audience == Unknown)AudienceUnknown: The channel's rule refuses a post while nobody knows who reads the channel, and its audience is absent or Unknown; nothing was posted.
pick-missing refusedthe Channel of channel_id has defined(posting_rule) and posting_rule.requires_pick == truePickMissing: The channel's rule requires a pick of the text, and the post names none; nothing was posted.
pick-for-other-text refusedthe PostPick of pick_id has content.digest != input.content.digestPickForOtherText: The pick is of another text than the one posted; nothing was posted.
pick-for-other-channel refusedthe PostPick of pick_id has channel_id != input.channel_idPickForOtherChannel: The pick is for another channel than the one posted to; nothing was posted.
pick-by-another refusedthe PostPick of pick_id has (not (defined(input.picked_by)) or picked_by != input.picked_by)NotThePicker: The pick is not by the picker the channel's rule names now, or the picker named is not the caller's own principal; nothing was picked or posted.
picker-replaced refusedthe Channel of channel_id has defined(posting_rule) and posting_rule.requires_pick == true and (not (defined(posting_rule.picker)) or not (defined(input.picked_by)) or posting_rule.picker != input.picked_by)NotThePicker: The pick is not by the picker the channel's rule names now, or the picker named is not the caller's own principal; nothing was picked or posted.
not-subscribed refusedno Subscription with channel_id == input.channel_id and party == input.from and state == ActiveNotSubscribed: The party holds no active subscription to this channel.
postedotherwisecreates a Post in Posted; emits Posted

PublishEvent​

Publish an event. The runtime publishes one event of the blocks on an open event channel.

Called by: Publisher.

fieldtype
channel_idChannelId
sequenceinteger
event_nameName
architectureName
part_pathName
instanceoptional integer
subject_keyoptional string
emitted_attimestamp
payload_digeststring
outcomewhenresult
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
not-an-event-channel refusedthe Channel of channel_id has kind != EventNotAnEventChannel: The channel carries no events of the blocks; nothing is published on it and its subscriptions keep no cursor.
channel-closed refusedthe Channel of channel_id has state == ClosedChannelIsClosed: The channel is closed; nothing is sent over it and nobody subscribes to it.
publishedotherwisecreates a EventPost in Published; emits EventPublished

ReceiveEvent​

Receive an event. A subscription of an event topic receives the event at a sequence; its cursor moves there.

Called by: Participant.

fieldtype
channel_idChannelId
subscription_idSubscriptionId
partyPartyId
sequenceinteger
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such SubscriptionUnknownSubscription: No subscription has this identity.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
not-an-event-channel refusedthe Channel of channel_id has kind != EventNotAnEventChannel: The channel carries no events of the blocks; nothing is published on it and its subscriptions keep no cursor.
not-a-topic refusedthe Channel of channel_id has distribution != TopicNotATopic: Only a subscription of an event topic receives every event; on a queue one subscription takes each.
not-subscribed refusedno Subscription with subscription_id == input.subscription_id and channel_id == input.channel_id and party == input.party and state == ActiveNotSubscribed: The party holds no active subscription to this channel.
unknown-event refusedno EventPost with channel_id == input.channel_id and sequence == input.sequence and state == PublishedUnknownEvent: The channel holds no event at this sequence; it was never published or was dropped past the retention.
receivedotherwiseupdates the Subscription; emits EventReceived

RecordControlAct​

Record a control act. The caller records its click on a control post and the task, run or decision it produced, or that it asked a question.

Called by: Participant.

fieldtype
post_idPostId
partyPartyId
task_idoptional TaskId
run_idoptional RunId
decision_idoptional DecisionId
asked_questionoptional boolean
attimestamp
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
produced-nothing refusednot (defined(task_id)) and not (defined(run_id)) and not (defined(decision_id)) and (not (defined(asked_question)) or asked_question == false)ControlActProducedNothing: A control act names the task, run or decision the click produced, or says it asked a question.
unknown-post refusedno Post for post_idUnknownPost: No post has this identity.
recordedotherwisecreates a ControlAct in Recorded; emits ControlActRecorded

RecordPick​

Record a pick. The caller records its pick of one exact text to be posted on one channel.

Called by: Participant.

fieldtype
channel_idChannelId
contentContent
pickerPrincipalId
outcomewhenresult
picker-not-the-caller refusedpicker != caller.principalNotThePicker: The pick is not by the picker the channel's rule names now, or the picker named is not the caller's own principal; nothing was picked or posted.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
not-the-picker refusedthe Channel of channel_id has defined(posting_rule) and defined(posting_rule.picker) and posting_rule.picker != input.pickerNotThePicker: The pick is not by the picker the channel's rule names now, or the picker named is not the caller's own principal; nothing was picked or posted.
pickedotherwisecreates a PostPick in Recorded; emits PostPicked

RecordProofCheck​

Record a proof check. A verifier records that it checked the proof one message or one post claims, and the marks it found.

Called by: Verifier.

fieldtype
message_idoptional MessageId
post_idoptional PostId
proofProof
markslist of Name
outcomewhenresult
names-neither refusednot (defined(message_id)) and not (defined(post_id))ProofCheckNamesOne: A proof check names exactly one message or one post.
names-both refuseddefined(message_id) and defined(post_id)ProofCheckNamesOne: A proof check names exactly one message or one post.
unknown-message refusedno Message for message_idUnknownMessage: No message has this identity.
unknown-post refusedno Post for post_idUnknownPost: No post has this identity.
message-claims-other refusedthe Message of message_id has (not (defined(proof)) or proof != input.proof)ProofNotClaimed: The message or post claims no proof, or another one than the proof checked.
post-claims-other refusedthe Post of post_id has (not (defined(proof)) or proof != input.proof)ProofNotClaimed: The message or post claims no proof, or another one than the proof checked.
checkedotherwisecreates a ProofCheck in Recorded; emits ProofChecked

ResumeSubscription​

Resume a subscription. A subscription of an event channel resumes from a cursor; it receives the events after it.

Called by: Participant.

fieldtype
channel_idChannelId
subscription_idSubscriptionId
partyPartyId
cursorinteger
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such SubscriptionUnknownSubscription: No subscription has this identity.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
not-an-event-channel refusedthe Channel of channel_id has kind != EventNotAnEventChannel: The channel carries no events of the blocks; nothing is published on it and its subscriptions keep no cursor.
not-subscribed refusedno Subscription with subscription_id == input.subscription_id and channel_id == input.channel_id and party == input.party and state == ActiveNotSubscribed: The party holds no active subscription to this channel.
cursor-expired refuseda EventPost with channel_id == input.channel_id and sequence > input.cursor and state == ExpiredCursorExpired: The cursor is older than the channel's retention: events after it were dropped, so a resume from it would skip them. Nothing is skipped; the consumer rereads state through the views.
resumedotherwiseupdates the Subscription; emits SubscriptionResumed

SendMessage​

Send a message. The caller sends one message to the other party of an open direct channel.

Called by: Participant.

fieldtypemeaning
channel_idChannelId
fromPartyId
toPartyId
actAct
contentContent
in_reply_tooptional MessageId
delegation_idoptional DelegationId
sender_principaloptional PrincipalIdThe caller's own principal, named with a delegation: it must be the caller's and the delegation's delegate.
proofoptional Proof
sent_by_calloptional ToolCallId
outcomewhenresult
not-the-sender refusedfrom != caller.partyNotTheSender: The message names a sender other than the caller.
delegate-unnamed refuseddefined(delegation_id) and (not (defined(sender_principal)) or sender_principal != caller.principal)NotTheDelegate: A message or post sent under a delegation names, as the sender's principal, the caller's own principal, and that principal is the delegation's delegate; nothing was sent.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was opened.
shared-channel refusedthe Channel of channel_id has distribution != DirectNotADirectChannel: The channel is a shared channel; it is posted to, and closed with CloseSharedChannel.
sender-not-a-party refusedthe Channel of channel_id has party_a != input.from and party_b != input.fromNotAParty: The party is not one of the two parties of this channel.
recipient-not-a-party refusedthe Channel of channel_id has party_a != input.to and party_b != input.toNotAParty: The party is not one of the two parties of this channel.
channel-closed refusedthe Channel of channel_id has state == ClosedChannelIsClosed: The channel is closed; nothing is sent over it and nobody subscribes to it.
not-the-delegate refusedthe Delegation of delegation_id has delegate != input.sender_principalNotTheDelegate: A message or post sent under a delegation names, as the sender's principal, the caller's own principal, and that principal is the delegation's delegate; nothing was sent.
delegation-not-active refusedthe Delegation of delegation_id has state != ActiveDelegationNotActive: The delegation was revoked or has expired; nothing was sent.
sentotherwisecreates a Message in Sent; emits MessageSent

SetPostingRule​

Set a posting rule. The channel policy sets what a post on an open shared channel needs.

Called by: Channel policy.

fieldtype
channel_idChannelId
rulePostingRule
outcomewhenresult
pick-without-picker refusedrule.requires_pick == true and not (defined(rule.picker))PickWithoutPicker: A posting rule that requires a pick names the principal who picks; nothing was set.
unknown refusedno such ChannelUnknownChannel: No channel has this identity.
direct-channel refuseddistribution == DirectNotASharedChannel: The channel joins two fixed parties; nobody subscribes or posts to it.
closed refusedthe Channel is ClosedChannelStateConflict: The channel is not in a state this command acts from.
setotherwiseupdates the Channel; emits PostingRuleSet

Subscribe​

Subscribe to a shared channel. The caller subscribes to an open topic, queue or board, with an optional filter.

Called by: Participant.

fieldtype
channel_idChannelId
partyPartyId
filter_actoptional Act
filter_entryoptional EntryKind
filter_scopeoptional string
relays_foroptional PrincipalId
online_for_secondsoptional integer
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
online-window-not-positive refuseddefined(online_for_seconds) and online_for_seconds < 1OnlineWindowNotPositive: An online window is at least one second.
unknown-channel refusedno Channel for channel_idUnknownChannel: No channel has this identity.
direct-channel refusedthe Channel of channel_id has distribution == DirectNotASharedChannel: The channel joins two fixed parties; nobody subscribes or posts to it.
channel-closed refusedthe Channel of channel_id has state == ClosedChannelIsClosed: The channel is closed; nothing is sent over it and nobody subscribes to it.
subscribedotherwisecreates a Subscription in Active; emits Subscribed

TakeEvent​

Take an event from a queue. A subscription of an event queue takes one event; it goes to that subscription alone.

Called by: Participant.

fieldtype
event_post_idEventPostId
subscription_idSubscriptionId
partyPartyId
outcomewhenresult
party-not-the-caller refusedparty != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such EventPostUnknownEventPost: No event was published with this identity.
not-a-queue refusedthe Channel of channel_id has distribution != QueueNotAQueue: Only a post on a queue is taken by one reader.
not-subscribed refusedno Subscription with subscription_id == input.subscription_id and channel_id == subject.channel_id and party == input.party and state == ActiveNotSubscribed: The party holds no active subscription to this channel.
takenotherwisemoves the EventPost Published → Taken; emits EventTaken
already-taken refusedthe EventPost is in a state that does not allow itEventStateConflict: The event is not in a state this command acts from: another subscription already took it from the queue, or the runtime dropped it past the retention.

TakePost​

Take a post from a queue. A subscriber of a queue takes one post; it goes to that subscriber alone.

Called by: Participant.

fieldtype
post_idPostId
readerPartyId
outcomewhenresult
reader-not-the-caller refusedreader != caller.partyNotTheCaller: The request names a party other than the caller.
unknown refusedno such PostUnknownPost: No post has this identity.
not-a-queue refusedthe Channel of channel_id has distribution != QueueNotAQueue: Only a post on a queue is taken by one reader.
not-subscribed refusedno Subscription with channel_id == subject.channel_id and party == input.reader and state == ActiveNotSubscribed: The party holds no active subscription to this channel.
takenotherwisemoves the Post Posted → Taken; emits PostTaken
already-taken refusedthe Post is in a state that does not allow itPostAlreadyTaken: Another subscriber already took this queue post.

Events​

eventfieldsemitted by
ChannelClosedchannel_id ChannelIdCloseChannel, CloseSharedChannel
ChannelOpenedchannel_id ChannelId, kind ChannelKind, party_a PartyId, party_b PartyIdOpenChannel
ControlActRecordedcontrol_act_id ControlActId, post_id PostId, task_id optional TaskId, run_id optional RunId, decision_id optional DecisionIdRecordControlAct
EventExpiredevent_post_id EventPostIdExpireEvent
EventPublishedevent_post_id EventPostId, channel_id ChannelId, sequence integer, event_name Name, architecture Name, part_path Name, instance optional integer, subject_key optional string, emitted_at timestamp, payload_digest stringPublishEvent
EventReceivedsubscription_id SubscriptionId, sequence integerReceiveEvent
EventTakenevent_post_id EventPostId, subscription_id SubscriptionIdTakeEvent
HeartbeatRecordedsubscription_id SubscriptionIdBeat
MessageDeliveredmessage_id MessageIdMarkDelivered
MessageLostmessage_id MessageIdMarkLost
MessageReadmessage_id MessageId, turn_id optional TurnIdMarkRead, MarkReadInTurn
MessageSentmessage_id MessageId, channel_id ChannelId, from PartyId, to PartyId, act Act, content Content, in_reply_to optional MessageId, delegation_id optional DelegationId, proof optional Proof, sent_by_call optional ToolCallIdSendMessage
PostPickedpost_pick_id PostPickId, channel_id ChannelId, content Content, picked_by PrincipalIdRecordPick
PostTakenpost_id PostId, reader PartyIdTakePost
Postedpost_id PostId, channel_id ChannelId, from PartyId, act Act, entry optional EntryKind, content Content, in_reply_to optional PostId, delegation_id optional DelegationId, proof optional Proof, pick_id optional PostPickIdPostMessage
PostingRuleSetchannel_id ChannelId, rule PostingRuleSetPostingRule
ProofCheckedproof_check_id ProofCheckId, message_id optional MessageId, post_id optional PostId, proof Proof, checked_by PrincipalIdRecordProofCheck
SharedChannelOpenedchannel_id ChannelId, kind ChannelKind, distribution Distribution, party_a PartyIdOpenSharedChannel
Subscribedsubscription_id SubscriptionId, channel_id ChannelId, party PartyId, relays_for optional PrincipalId, online_for_seconds optional integerSubscribe
SubscriptionEndedsubscription_id SubscriptionIdEndSubscription
SubscriptionResumedsubscription_id SubscriptionId, cursor integerResumeSubscription

Views​

viewrowsfields
ChannelEvents
Events of a channel
each EventPost with channel_id == param.channel_id
asked with channel_id ChannelId
event_post_id EventPostId, sequence integer, event_name Name, subject_key optional string, emitted_at timestamp, taken_by optional SubscriptionId, state State
ChannelMessages
Messages of a channel
each Message with channel_id == param.channel_id
asked with channel_id ChannelId
message_id MessageId, from PartyId, to PartyId, act Act, sent_at timestamp, state State
ChannelPosts
Posts of a channel
each Post with channel_id == param.channel_id
asked with channel_id ChannelId
post_id PostId, from PartyId, act Act, entry optional EntryKind, posted_at timestamp, taken_by optional PartyId, state State
Channels
Channels
each Channelchannel_id ChannelId, kind ChannelKind, distribution Distribution, party_a PartyId, party_a_kind PartyKind, party_b optional PartyId, party_b_kind optional PartyKind, ordered boolean, may_lose boolean, entry_limits optional EntryLimits, owner optional PrincipalId, delegation_id optional DelegationId, audience optional Audience, retention_seconds optional integer, posting_rule optional PostingRule, state State
ControlActs
Control acts
each ControlActcontrol_act_id ControlActId, post_id PostId, party PartyId, task_id optional TaskId, run_id optional RunId, decision_id optional DecisionId, asked_question boolean, acted_at timestamp, state State
EventPosts
Published events
each EventPostevent_post_id EventPostId, channel_id ChannelId, sequence integer, event_name Name, architecture Name, part_path Name, instance optional integer, subject_key optional string, emitted_at timestamp, payload_digest string, taken_by optional SubscriptionId, taken_at optional timestamp, state State
Messages
Messages
each Messagemessage_id MessageId, channel_id ChannelId, from PartyId, to PartyId, act Act, content Content, in_reply_to optional MessageId, sent_at timestamp, delivered_at optional timestamp, read_at optional timestamp, delegation_id optional DelegationId, proof optional Proof, sent_by_call optional ToolCallId, received_in_turn optional TurnId, state State
PostPicks
Post picks
each PostPickpost_pick_id PostPickId, channel_id ChannelId, content Content, picked_by PrincipalId, picked_at timestamp, state State
Posts
Posts
each Postpost_id PostId, channel_id ChannelId, from PartyId, act Act, entry optional EntryKind, content Content, in_reply_to optional PostId, posted_at timestamp, taken_by optional PartyId, taken_at optional timestamp, delegation_id optional DelegationId, proof optional Proof, pick_id optional PostPickId, state State
ProofChecks
Proof checks
each ProofCheckproof_check_id ProofCheckId, message_id optional MessageId, post_id optional PostId, proof Proof, marks list of Name, checked_by PrincipalId, checked_at timestamp, state State
Subscriptions
Subscriptions
each Subscriptionsubscription_id SubscriptionId, channel_id ChannelId, party PartyId, party_kind PartyKind, filter_act optional Act, filter_entry optional EntryKind, filter_scope optional string, subscribed_at timestamp, relays_for optional PrincipalId, last_beat_at optional timestamp, online_for_seconds optional integer, cursor optional integer, state State

Types​

typeisvalues or fields
Act
Request asks the recipient to act; Inform only tells it something.
one ofRequest, Inform
Audience
Who reads what is sent on a channel: only parties of the owner's organization, readers outside it, one person alone, or not known.
one ofInternal, External, Private, Unknown
ChannelKind
Prompt is a human typing into a session; Operator a human's private channel to the agent that acts for it; AgentMessage a message between agents on one host; AgentToAgent the same over a network; Chat a chat adapter; Notification one-way news to a party; Control a page or panel outside any session where a human acts by a button (send, pick, run, retry), each act one Request message or post; Screen a page of a user interface that shows a party what the system holds, each page shown one post; Event a named bus, a topic or a queue, on which the runtime publishes the events of the blocks and no party sends.
one ofPrompt, Operator, AgentMessage, AgentToAgent, Chat, Notification, Control, Screen, Event
Distribution
Direct joins two fixed parties. Topic delivers each post to every subscriber; Queue gives each post to the one subscriber that takes it; Board holds typed entries every subscriber reads, each entry kind with a length limit.
one ofDirect, Topic, Queue, Board
EntryKindone ofObserved, Fact, Fail, Claim, PatchSummary
EntryLimits
The longest content, in the unit of agentic.shared.Content.length, each entry kind of a board admits.
a recordobserved integer, fact integer, fail integer, claim integer, patch_summary integer
PartyId
One party: the value of an agentic.shared.PrincipalId or of an agentic.shared.HarnessSessionId, as the party's kind says.
an identifier or valueuuid
PartyKindone ofPrincipal, Session
PostingRule
What a shared channel takes before a post: posts only in one principal's name, a pick of the exact text by one picker, and no post while nobody knows who reads the channel.
a recordonly_for optional PrincipalId, requires_pick boolean, picker optional PrincipalId, refuse_unknown_audience boolean
Proof
How a message or post is shown to come from the party it names. None: nothing beyond the channel. ClientRecord: the record carries marks only the party's own client writes (a user and a client message id, and no application or bot id). ProcessIdentity: the sending process was checked to be the party's session. Passkey: the party confirmed the act with a passkey. On a message or post the proof is the sender's claim; a ProofCheck of it says a verifier checked it. Not specified yet: the four kinds come from one consumer's setup; other kinds (a signature) may be needed.
one ofNone, ClientRecord, ProcessIdentity, Passkey

KPIs​

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

Correctness​

KPIunitbettergatestatus
messages_lost
Messages that were lost.
How: MessageLost events. Not a gate, because a lossy network channel is a legitimate part of an architecture and a fault experiment injects loss on purpose.
countlower–planned
source: design

Completeness​

KPIunitbettergatestatus
request_actioned_share
Share of requests that got an action within the window.
How: Messages typed as request with an action by the receiver within 4 hours of MessageDelivered, divided by requests sent. Needs the request and inform typing of a message.
sharehigher–planned
source: research/2611.00689

Quality​

KPIunitbettergatestatus
messages
Messages sent over a channel.
How: MessageSent events per channel part. Divide by tasks done for messages per task.
countlower–simulated
source: design
inform_unactioned_share
Share of informs that got no action within the window.
How: Messages typed as inform with no action by the receiver within 4 hours of MessageDelivered, divided by informs sent. Wake rules on intake lower it.
sharelower–planned
source: research/2611.00689
coordination_failure_share
Share of multi-agent runs in which two agents changed the same path with no notice between them.
How: Runs with two agents' PathWritten on one path and no MessageSent naming that scope between the writes, divided by multi-agent runs. A vague warning counts as no notice.
sharelower–planned
source: research/2610.07261
claim_conflicts
Reads of a queue or board post by a second subscriber while the first one's claim was not yet visible.
How: Take attempts that lose to another subscriber's take of the same post (TakePost answered already-taken, which emits no event), counted against PostTaken. The simulator counts a reader whose read lands within claim_window_seconds of the first reader's.
countlower–simulated
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 channel:

settingtypeunitdefaultcontractwhat
kindenum ChannelKind: prompt, operator, agent_message, agent_to_agent, chat, notification, control, screen, eventevery portWhat the channel carries.
distributionenum Distribution: direct, topic, queue, boarddirectevery portWho receives a message; on a topic, queue or board a trigger can listen.
delivery_delayduration of at least 0s0sOn an event channel: the time from an event a part emits onto it to its delivery to each on_event trigger whose source is the channel.
audienceenum Audience: internal, external, private, unknownWho reads what is sent on the channel: only parties of the owner's organization (internal), readers outside it (external), one person alone (private), or not known (unknown).
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.