Skip to main content

Layer 7 · collaboration

question

blocks/7-collaboration/question.yaml

layer 7collaboration
2entities
7commands
7events
3views
38refusals
7KPIs

A message that needs an answer. A question offers lettered options and names either the option it takes by default and a deadline, past which the default is taken, or neither: a question without a default never takes one and waits until it is answered. Only the addressee, or a delegate acting for it, answers. A reply that could not be read is recorded as could not read, and the default is not taken in its place. An approval is a question whose two options are approve and reject. A decision taken is changed by revising the answer to another offered option. Which decisions never take a default is set by policy, not by the asker: the policy registers decision kinds, a question names its kind, and a kind that never defaults refuses a default when asked and when the clock comes; a kind may take an answer after the deadline while no default was taken.

Depends on​

  • channel · layer 7 · 16 references
  • work · layer 5 · 5 references
  • delegation · layer 1 · 11 references
  • shared · layer 0 · 9 references

Used by​

Entities​

DecisionKind​

A kind of decision whose rules the policy sets, not the asker: whether a question of it ever takes a default on silence, whether an answer after the deadline is still taken while no default was taken, and whether the option the asker recommends is shown apart from the options.

Identified by decision_kind_id (DecisionKindId).

fieldtypemeaning
nameNameWhat the decisions of this kind are about (money, secrets, architecture, routine).
no_defaultbooleanA question of this kind never takes a default; it is asked with none.
answer_until_defaultbooleanAn answer after the deadline is still taken while no default was taken.
recommended_separatebooleanThe option the asker recommends is shown apart from the options offered.
proofoptional ProofHow an answer to a question of this kind is shown to come from the addressee.

Lifecycle: one state, Registered; a recorded DecisionKind does not change.

Question​

One question from one party to another.

Identified by question_id (QuestionId).

fieldtypemeaning
kindQuestionKind
asked_byPartyId
addresseePartyId
textContent
optionslist of AnswerOption
default_optionoptional OptionLetterThe option taken once the deadline passes; absent, the question never defaults.
deadlineoptional timestampWhen the default is taken; present exactly when the default option is.
chosenoptional OptionLetterThe option answered, or the default once taken.
answered_byoptional PartyId
answered_viaoptional DelegationIdThe delegation the answering party acted under, when it is not the addressee.
topicoptional NameWhat the decision is about (money, architecture, text for outside readers), by which rules choose its addressee. The default option is the option the asker recommends.
decision_kindoptional DecisionKindIdThe decision kind whose rules the question follows: whether it may take a default, and whether an answer after its deadline is still taken.
no_defaultoptional booleanThe rule of its decision kind, copied when it is asked; true, it never takes a default.
answer_until_defaultoptional booleanThe rule of its decision kind, copied when it is asked; true, an answer after the deadline is still taken while no default was taken.
run_idoptional RunIdThe run that waits on the question, suspended AwaitingAnswer, when a step of a run asks it.
control_act_idoptional ControlActIdThe click on a control post that asked the question, recorded before it is asked.
read_failureoptional stringWhy the reply could not be read, when it could not (CouldNotRead). The question then has no chosen option: an unreadable reply is never read as empty or as the default.

Relations:

  • run references Run of work (one, by run_id)
  • produced_by references ControlAct of channel (one, by control_act_id)
  • answered_under references Delegation of delegation (one, by answered_via)
  • kind_rules references DecisionKind (one, by decision_kind)

Lifecycle of Question

AnsweredCouldNotReadDefaultTakenOpenWithdrawnanswertake_defaultwithdrawcould_not_readrevisereviseAnsweredCouldNotReadDefaultTakenOpenWithdrawnanswertake_defaultwithdrawcould_not_readreviserevise
Ends in Answered, CouldNotRead, DefaultTaken, Withdrawn.

Commands​

Answer​

Answer a question. The addressee, or a delegate acting for it, chooses one offered option.

Called by: Answerer.

fieldtype
question_idQuestionId
optionOptionLetter
delegation_idoptional DelegationId
outcomewhenresult
unknown refusedno such QuestionUnknownQuestion: No question has this identity.
not-the-addressee refusedaddressee != caller.party and not (defined(delegation_id))NotTheAddressee: The caller is not the addressee and names no delegation to act for it.
option-not-offered refusednot (some o in options with o.letter == input.option)OptionNotOffered: The option answered is not one the question offers.
deadline-passed refuseddefined(deadline) and deadline <= now and not (defined(answer_until_default) and answer_until_default == true)DeadlinePassed: The deadline has passed, so the question takes its default and no answer; nothing was recorded.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was recorded.
delegation-not-for-answers refusedthe Delegation of delegation_id has (action != AnswerQuestions or state != Active)DelegationNotForAnswers: The delegation is not an active delegation to answer questions (agentic.delegation, action AnswerQuestions); nothing was recorded.
answeredotherwisemoves the Question Open → Answered; emits QuestionAnswered
wrong-state refusedthe Question is in a state that does not allow itQuestionStateConflict: The question is no longer Open.

Ask​

Ask a question. The caller asks the addressee to choose one of the lettered options by the deadline.

Called by: Asker.

fieldtype
addresseePartyId
kindQuestionKind
textContent
optionslist of AnswerOption
default_optionoptional OptionLetter
deadlineoptional timestamp
topicoptional Name
run_idoptional RunId
control_act_idoptional ControlActId
decision_kindoptional DecisionKindId
outcomewhenresult
no-options refusedoptions.count == 0NoOptions: The question offers no option.
duplicate-option refusednot (each o in options has its own o.letter)DuplicateOption: Two options carry the same letter.
incomplete-default refused(defined(default_option) and not (defined(deadline)) or not (defined(default_option)) and defined(deadline))IncompleteDefault: A question names its default option and its deadline together, or neither; nothing was recorded.
default-not-offered refuseddefined(default_option) and not (some o in options with o.letter == default_option)DefaultNotOffered: The default option is not one of the options offered.
approval-not-two-options refusedkind == Approval and options.count != 2NotAnApproval: An approval offers exactly two options, one meaning Approve and one meaning Reject.
approval-without-approve refusedkind == Approval and every o in options has o.meaning != ApproveNotAnApproval: An approval offers exactly two options, one meaning Approve and one meaning Reject.
approval-without-reject refusedkind == Approval and every o in options has o.meaning != RejectNotAnApproval: An approval offers exactly two options, one meaning Approve and one meaning Reject.
unknown-decision-kind refusedno DecisionKind for decision_kindUnknownDecisionKind: No decision kind of this identity was registered; nothing was recorded.
default-forbidden-for-kind refusedthe DecisionKind of decision_kind has no_default == trueDefaultForbiddenForKind: The question's decision kind never takes a default, so the question names no default option and no deadline; nothing was recorded.
askedotherwisecreates a Question in Open; emits QuestionAsked

RecordUnreadableAnswer​

Record that an answer could not be read.

Called by: Answerer.

fieldtype
question_idQuestionId
read_failurestring
delegation_idoptional DelegationId
outcomewhenresult
unknown refusedno such QuestionUnknownQuestion: No question has this identity.
not-the-addressee refusedaddressee != caller.party and not (defined(delegation_id))NotTheAddressee: The caller is not the addressee and names no delegation to act for it.
deadline-passed refuseddefined(deadline) and deadline <= nowDeadlinePassed: The deadline has passed, so the question takes its default and no answer; nothing was recorded.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was recorded.
delegation-not-for-answers refusedthe Delegation of delegation_id has (action != AnswerQuestions or state != Active)DelegationNotForAnswers: The delegation is not an active delegation to answer questions (agentic.delegation, action AnswerQuestions); nothing was recorded.
recordedotherwisemoves the Question Open → CouldNotRead; emits AnswerNotRead
wrong-state refusedthe Question is in a state that does not allow itQuestionStateConflict: The question is no longer Open.

RegisterDecisionKind​

Register a decision kind. The policy sets the rules of a kind of decision, which the questions of that kind follow.

Called by: Policy.

fieldtype
decision_kind_idDecisionKindId
nameName
no_defaultboolean
answer_until_defaultboolean
recommended_separateboolean
proofoptional Proof
outcomewhenresult
registeredotherwisecreates a DecisionKind in Registered; emits DecisionKindRegistered

ReviseAnswer​

Revise an answer. The addressee, or a delegate acting for it, changes the decision to another offered option.

Called by: Answerer.

fieldtype
question_idQuestionId
optionOptionLetter
delegation_idoptional DelegationId
outcomewhenresult
unknown refusedno such QuestionUnknownQuestion: No question has this identity.
not-the-addressee refusedaddressee != caller.party and not (defined(delegation_id))NotTheAddressee: The caller is not the addressee and names no delegation to act for it.
option-not-offered refusednot (some o in options with o.letter == input.option)OptionNotOffered: The option answered is not one the question offers.
unchanged refuseddefined(chosen) and chosen == input.optionAnswerUnchanged: The option is the one the question already holds; nothing was recorded.
unknown-delegation refusedno Delegation for delegation_idUnknownDelegation: No delegation of this identity was granted; nothing was recorded.
delegation-not-for-answers refusedthe Delegation of delegation_id has (action != AnswerQuestions or state != Active)DelegationNotForAnswers: The delegation is not an active delegation to answer questions (agentic.delegation, action AnswerQuestions); nothing was recorded.
revisedotherwisemoves the Question Answered, DefaultTaken → Answered; emits AnswerRevised
wrong-state refusedthe Question is in a state that does not allow itQuestionStateConflict: The question is no longer Open.

TakeDefault​

Take the default. Past its deadline an Open question takes its default option; a question without one is refused.

Called by: Clock.

fieldtype
question_idQuestionId
outcomewhenresult
unknown refusedno such QuestionUnknownQuestion: No question has this identity.
no-default-for-kind refuseddefined(no_default) and no_default == trueNoDefaultForKind: The question's decision kind never takes a default; the question stays Open until it is answered, withdrawn or recorded as could not read.
no-default refusednot (defined(default_option))NoDefault: The question was asked without a default, so none is ever taken; it stays Open until it is answered, withdrawn or recorded as could not read.
not-yet refuseddefined(deadline) and deadline > nowDeadlineNotReached: The deadline has not passed; the default is not taken yet.
takenotherwisemoves the Question Open → DefaultTaken; emits DefaultTaken
wrong-state refusedthe Question is in a state that does not allow itQuestionStateConflict: The question is no longer Open.

Withdraw​

Withdraw a question.

Called by: Asker.

fieldtype
question_idQuestionId
outcomewhenresult
unknown refusedno such QuestionUnknownQuestion: No question has this identity.
not-the-asker refusedasked_by != caller.partyNotTheAsker: Only the party that asked withdraws a question.
deadline-passed refuseddefined(deadline) and deadline <= nowDeadlinePassed: The deadline has passed, so the question takes its default and no answer; nothing was recorded.
withdrawnotherwisemoves the Question Open → Withdrawn; emits QuestionWithdrawn
wrong-state refusedthe Question is in a state that does not allow itQuestionStateConflict: The question is no longer Open.

Events​

eventfieldsemitted by
AnswerNotReadquestion_id QuestionId, read_failure string, answered_by PartyId, answered_via optional DelegationIdRecordUnreadableAnswer
AnswerRevisedquestion_id QuestionId, option OptionLetter, previous optional OptionLetter, answered_by PartyId, answered_via optional DelegationIdReviseAnswer
DecisionKindRegistereddecision_kind_id DecisionKindId, name Name, no_default boolean, answer_until_default boolean, recommended_separate boolean, proof optional ProofRegisterDecisionKind
DefaultTakenquestion_id QuestionId, option OptionLetterTakeDefault
QuestionAnsweredquestion_id QuestionId, option OptionLetter, answered_by PartyId, answered_via optional DelegationIdAnswer
QuestionAskedquestion_id QuestionId, kind QuestionKind, asked_by PartyId, addressee PartyId, default_option optional OptionLetter, deadline optional timestamp, topic optional Name, run_id optional RunId, control_act_id optional ControlActId, decision_kind optional DecisionKindIdAsk
QuestionWithdrawnquestion_id QuestionIdWithdraw

Views​

viewrowsfields
DecisionKinds
Decision kinds
each DecisionKinddecision_kind_id DecisionKindId, name Name, no_default boolean, answer_until_default boolean, recommended_separate boolean, proof optional Proof, state State
OpenQuestions
Open questions of an addressee
each Question with state == Open and addressee == param.addressee
asked with addressee PartyId
question_id QuestionId, asked_by PartyId, kind QuestionKind, default_option optional OptionLetter, deadline optional timestamp
Questions
Questions
each Questionquestion_id QuestionId, kind QuestionKind, asked_by PartyId, addressee PartyId, text Content, options list of AnswerOption, default_option optional OptionLetter, deadline optional timestamp, chosen optional OptionLetter, answered_by optional PartyId, answered_via optional DelegationId, topic optional Name, run_id optional RunId, control_act_id optional ControlActId, read_failure optional string, decision_kind optional DecisionKindId, state State

Types​

typeisvalues or fields
AnswerOptiona recordletter OptionLetter, label string, meaning OptionMeaning, binds optional Content
OptionLetter
The letter an option is chosen by.
an identifier or valuestring
OptionMeaning
An approval's two options mean Approve and Reject; every other option is a Choice.
one ofApprove, Reject, Choice
QuestionKindone ofChoice, Approval

KPIs​

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

Correctness​

KPIunitbettergatestatus
default_taken_wrongly
Questions that took their default and the default was later overruled.
How: DefaultTaken events whose subject is later decided differently by the principal (a later QuestionAnswered with another option) or whose deliverable was rejected. Must be 0.
countlowergateplanned
source: design
question_open_past_deadline
Questions still open after their deadline.
How: QuestionAsked events with a deadline in the past and none of QuestionAnswered, DefaultTaken, QuestionWithdrawn. Must be 0.
countlowergateplanned
source: design

Quality​

KPIunitbettergatestatus
questions_asked
Questions agents asked.
How: QuestionAsked events in the window.
By work mode: autonomous: lower, pairing: ignore, review: ignore
countlower–simulated
source: design
questions_defaulted
Questions that took their default at the deadline.
How: DefaultTaken events in the window. Read with default_taken_wrongly. A default that proceeds is the rule, a wrong one is the fault.
countlower–simulated
source: design
question_round_trip_p90_seconds
90th percentile of the time from a question to its answer.
How: Seconds between QuestionAsked and QuestionAnswered of the same question, 90th percentile. Questions that took their default are left out.
secondslower–planned
source: research/2611.00689
answers_not_read_share
Share of questions whose answer could not be read.
How: AnswerNotRead events divided by QuestionAsked events, per addressee. A reply that could not be read ends the question; its default is never taken in its place.
sharelower–planned
source: design
wrong_assumptions
Defaults taken in place of an answer that turned out wrong.
How: DefaultTaken events whose assumption proved wrong and cost rework. The simulator draws a wrong default with the role's default_wrong chance.
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 question:

settingtypeunitdefaultcontractwhat
defaultstringThe letter of the option a question of this part takes when no answer comes by its deadline; the question offers it. Named with default_after or not at all: without both, a question of this part never takes a default and waits until it is answered.
default_afterduration of at least 0sHow long a question waits for an answer, from the time it is asked, before its default is taken: its deadline. Named with default or not at all: without both, it waits until answered.
decision_kindstringThe decision kind of the questions of this part, by its name under the architecture's decision_kinds, whose rules the policy sets: whether a question of it ever takes a default (no_default), and whether an answer after the deadline is still taken while no default was taken (answer_until_default). A kind with no_default takes no default setting.
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.