Conversation Event Schema v0.1: One Turn, Channel-Neutral

Status: v0.1 draft, proposed, not yet calibrated against human-labeled conversations. Chat fields are specified. Voice and web fields are PLANNED and are not detected or measured by anything in this repository. Written 2026-10-20.

This spec describes one conversation turn (one event) in a way that does not depend on the channel. A team that logs chatbot conversations can use it as a common shape, so the failure patterns in this repository can be checked against a log without renaming fields each time.

Every field here was chosen because a written pattern needs it: either its “Detection signals (proposed, not yet calibrated)” block or its metrics table. Nineteen of the 44 pattern pages have a signals block; the rest have metrics only, and a few of those metrics are used here too. The column “Pattern IDs that use it” lists the patterns. IDs link to pages through the failure taxonomy v1.

What this spec does not do

  • It does not say how to detect anything. Several fields are labels (for example user_label.request_for_person). Who or what produces the label (a rule, a classifier, a judge, a human) is the implementer’s choice, and its accuracy is unmeasured.
  • It does not set thresholds. Thresholds live on the pattern pages as starting points to tune.
  • It does not define a wire format. The tables below give field names and types only; a team can store them as JSON, columns, or anything else.

Shape of an event

One event is one turn or one system occurrence. Fields are grouped into objects. A field is required (always present), conditional (required when the stated condition holds), or optional. Types: string, int, bool, timestamp (ISO 8601), enum, list, object.

1. Core fields (every event)

FieldTypeRequired?DescriptionPattern IDs that use it
schema_versionstringrequiredVersion of this spec the record follows, for example 0.1.all (versioning)
event_idstringrequiredUnique ID of this event.all
conversation_idstringrequiredGroups events into one conversation. A returning user in a new session gets a new ID.answer-and-go-conversation, dead-end-i-don-t-understand-replies, talk-to-a-human-ignored-or-looped
user_refstringoptionalStable pseudonymous user key, so a return on the same topic can be matched. Never a raw name or email.answer-and-go-conversation, scam-victim-not-interrupted
turn_indexintrequiredPosition of the event in the conversation, starting at 1. Used for “within N turns” signals.dead-end-i-don-t-understand-replies, talk-to-a-human-ignored-or-looped, silent-failure-and-timeout, generic-error-messages
timestamptimestamprequiredWhen the event happened. Used for deadlines, wait times, and “soon after” windows.silent-failure-and-timeout, silent-long-running-work, answer-and-go-conversation
channelenumrequiredchat, voice, or web. In v0.1 only chat has specified fields; see the PLANNED section for the others.all (channel scope)
speakerenumrequireduser, bot, agent (a human staff member), or system.cold-transfer, undisclosed-bot-identity, escalates-too-early-or-too-late
event_typeenumrequiredOne of: message, open, session_end, request_start, request_end, stream_close, error, handoff, verification, action, payment, lookup. See section 7 for what each one carries.most patterns with a signals block
textstringconditionalMessage text, when event_type is message. Store a redacted copy; see the privacy note below.hollow-empathy, romantic-or-parasocial-dependence, scam-victim-not-interrupted, answer-buried, dead-end-i-don-t-understand-replies
text_redactionenumconditionalnone, partial, or full. Says whether text had sensitive values removed.sensitive-data-collected-in-chat, child-user-treated-as-adult

Privacy note. The pattern sensitive-data-collected-in-chat has a metric on sensitive values found in stored logs, and child-user-treated-as-adult has a metric on personal-data requests in minor mode. A log built on this schema should store redacted text by default. The schema does not say how to redact.

2. Chat bot-turn fields (speaker = bot, event_type = message)

FieldTypeRequired?DescriptionPattern IDs that use it
bot.turn_typeenumrequiredKind of reply: answer, opener, fallback, refusal, error, clarifying_question, handoff_offer, empathy, progress, closer, other.dead-end-i-don-t-understand-replies, refusal-with-no-reason-or-next-step, generic-first-response, no-reply-to-acknowledgments-and-closers, silent-long-running-work
bot.template_idstringoptionalName of the template or fallback string that produced the reply, if one did.dead-end-i-don-t-understand-replies, generic-error-messages, generic-first-response
bot.is_fallbackboolconditionalTrue when the reply is a “did not understand” or no-progress reply. Required when turn_type is fallback.dead-end-i-don-t-understand-replies, escalates-too-early-or-too-late
bot.similarity_to_prevfloat (0 to 1)optionalSimilarity to the previous bot reply, computed by the implementer. Used for “identical or near-identical twice in a row”.dead-end-i-don-t-understand-replies, escalates-too-early-or-too-late, talk-to-a-human-ignored-or-looped, refusal-with-no-reason-or-next-step
bot.question_countintoptionalNumber of questions in the reply.answer-and-go-conversation
bot.has_forward_movebooloptionalLabel: the reply offers a next step or question on a non-final turn.answer-and-go-conversation
bot.first_sentence_holds_answerbooloptionalLabel: the first sentence holds the answer, the decision, or the next step.answer-buried
bot.must_know_positionintoptionalSentence number where a deadline, fee, or safety step first appears, if the intent has one.answer-buried
bot.opener_phrase_matchbooloptionalLabel: reply opens with praise or a restatement of the question.answer-buried, hollow-empathy
bot.empathy_cites_detailbooloptionalLabel: an empathy line cites a concrete detail from the user’s message.hollow-empathy
bot.assumption_statedbooloptionalLabel: the reply states the reading it assumed for an ambiguous request.guessing-instead-of-asking
bot.ai_disclosure_shownbooloptionalThe reply (usually the first) says the user is talking to an AI.undisclosed-bot-identity
bot.identity_answer_matches_lockedboolconditionalFor a reply to an identity question: matches the team’s locked truthful answer.undisclosed-bot-identity
bot.limit_statedbooloptionalReply to an out-of-scope request states a limit or offers a person.undisclosed-bot-identity, doesn-t-say-what-it-can-do
bot.source_passage_idslist of stringoptionalIDs of retrieved passages shown or used. Empty list means none.confident-wrong-answer-with-no-way-to-check
bot.source_link_shownbooloptionalA source or link the user can check is shown with the claim.confident-wrong-answer-with-no-way-to-check
bot.uncertainty_cuebooloptionalLabel: the reply hedges, or says the answer is not in its sources.confident-wrong-answer-with-no-way-to-check
bot.claim_supportedenumoptionalSupport-check result for a cited passage: supported, not_supported, unchecked.confident-wrong-answer-with-no-way-to-check
bot.path_to_person_offeredbooloptionalReply includes a way to reach a person (confirm-with-a-person text, transfer, callback).confident-wrong-answer-with-no-way-to-check, talk-to-a-human-ignored-or-looped, refusal-with-no-reason-or-next-step
bot.upsell_presentbooloptionalLabel: reply contains a sales prompt.help-that-becomes-a-sales-pitch, hollow-empathy
bot.claims_donebooloptionalThe reply says a task is done. Compare with the system of record in an action event.undisclosed-bot-identity
bot.crisis_modebooloptionalThe session is in a crisis-handling state at this turn.missed-crisis-signals
bot.resource_template_idstringoptionalTemplate of crisis resources shown, if any.missed-crisis-signals
bot.resource_last_verifiedtimestampoptionalWhen the shown resource list was last reviewed.missed-crisis-signals
bot.stakes_classenumoptionallow, medium, high, as classified for this turn.stakes-blind-register, confident-wrong-answer-with-no-way-to-check
bot.refusal.reason_givenboolconditionalRequired when turn_type is refusal. A reason in plain words is present.refusal-with-no-reason-or-next-step, over-refusal-of-ordinary-requests
bot.refusal.alternative_offeredboolconditionalRequired when turn_type is refusal. An alternative is offered.refusal-with-no-reason-or-next-step, over-refusal-of-ordinary-requests
bot.refusal.route_offeredboolconditionalRequired when turn_type is refusal. A route to a person is offered.refusal-with-no-reason-or-next-step

3. Chat user-turn labels (speaker = user, event_type = message)

These are labels attached to a user message. Each is produced by something the implementer chooses.

FieldTypeRequired?DescriptionPattern IDs that use it
user_label.intentstringoptionalIntent label from the team’s own list. Used to match “same intent in the next turn” and to find policy or high-stakes intents.generic-error-messages, over-refusal-of-ordinary-requests, refusal-with-no-reason-or-next-step, answer-buried, missing-the-obvious-intent, confident-wrong-answer-with-no-way-to-check
user_label.ambiguous_intentbooloptionalThe request has more than one plausible reading.guessing-instead-of-asking
user_label.request_for_personbooloptionalThe user asks for a human.talk-to-a-human-ignored-or-looped, dead-end-i-don-t-understand-replies, escalates-too-early-or-too-late
user_label.next_turn_reactionenumoptionalReaction to the previous bot turn: none, correction, rephrase, why_question, repeat_question, dispute, ack_or_closer, done.guessing-instead-of-asking, refusal-with-no-reason-or-next-step, over-refusal-of-ordinary-requests, answer-buried, silent-failure-and-timeout, confident-wrong-answer-with-no-way-to-check, no-reply-to-acknowledgments-and-closers, corrections-not-applied
user_label.identity_questionbooloptionalThe user asks whether they are talking to a bot or a person.undisclosed-bot-identity
user_label.distressbooloptionalA reviewed distress classifier fired. Meant only for routing to human review.missed-crisis-signals
user_label.age_cuestringoptionalA stated age or school grade, if any.romantic-or-parasocial-dependence, child-user-treated-as-adult
user_label.third_party_directionbooloptionalThe user says someone else is directing a payment.scam-victim-not-interrupted
user_label.secrecy_coachingbooloptionalThe user says to keep an action from the bank or family.scam-victim-not-interrupted
user_label.dependence_cuebooloptionalThe user calls the bot their only friend, or reports skipping plans or sleep for it.romantic-or-parasocial-dependence
user_label.anger_or_complaintbooloptionalComplaint or anger label, used as an escalation trigger.escalates-too-early-or-too-late, no-de-escalation-strategy, hollow-empathy
user_label.restates_known_factbooloptionalFirst message restates something the product already knew.generic-first-response, re-asks-for-known-information, cold-transfer
user_label.scripted_complaintbooloptionalThe user calls the bot “scripted”, “robot”, or “canned”.hollow-empathy

4. Context fields (opener and lookup events)

FieldTypeRequired?DescriptionPattern IDs that use it
context.pagestringoptionalPage or screen the assistant was opened on.generic-first-response
context.entry_pointstringoptionalHow the user got to the assistant (button, link, proactive prompt).generic-first-response
context.account_statestringoptionalCoarse account state passed to the assistant (for example payment_failed). No raw personal data.generic-first-response, re-asks-for-known-information
context.signed_inbooloptionalThe user is signed in.re-asks-for-known-information, forces-a-fresh-login
lookup.resolver_calledboolconditionalFor event_type = lookup: a session or account lookup ran. Used for “asked before any lookup”.re-asks-for-known-information
question.field_askedstringconditionalFor a bot question that asks for a value (name, email, order number, plan).re-asks-for-known-information
question.field_heldboolconditionalThe product already held that value for this user.re-asks-for-known-information
question.is_step_up_checkboolconditionalThe question is a deliberate security check before a sensitive action.re-asks-for-known-information, forces-a-fresh-login

5. Request, stream, and error events

FieldTypeRequired?DescriptionPattern IDs that use it
request.idstringconditionalPairs a request_start with its request_end.silent-failure-and-timeout, silent-long-running-work
request.stateenumconditionalcomplete, incomplete, timed_out, failed.silent-failure-and-timeout
request.duration_msintoptionalTime from start to end, or to the deadline.silent-failure-and-timeout, silent-long-running-work
request.progress_message_sentbooloptionalA status or estimate was shown during a wait over the team’s threshold.silent-long-running-work
stream.finish_reasonstringoptionalThe API’s finish reason, where one is sent. Absent is not always a fault.silent-failure-and-timeout
stream.ended_without_terminalbooloptionalFinal text ends mid-sentence or without a closing structure.silent-failure-and-timeout
error.cause_codestringconditionalCause code for an error event. Missing or generic is the signal.generic-error-messages
error.templatestringconditionalName of the template used to render the error.generic-error-messages
error.work_saved_statedbooloptionalThe message says whether the user’s work was saved.generic-error-messages
error.next_step_offeredbooloptionalThe message gives one next step.generic-error-messages
session.message_count_dropbooloptionalEarlier messages disappeared after an error.generic-error-messages, no-warning-of-context-loss
context_loss.notice_shownboolconditionalFor a detected context-loss event: the user was told.no-warning-of-context-loss

6. Handoff, verification, action, and payment events

FieldTypeRequired?DescriptionPattern IDs that use it
handoff.destinationenumconditionalagent, callback, other_channel.cold-transfer, no-channel-switch-or-context-lost, talk-to-a-human-ignored-or-looped
handoff.packet_attachedboolconditionalA summary or transcript link was passed with the handoff.cold-transfer, no-channel-switch-or-context-lost
handoff.customer_could_correct_summarybooloptionalThe customer was shown the summary and could correct it.cold-transfer
handoff.wait_statedbooloptionalThe bot message gives a wait time or response window.talk-to-a-human-ignored-or-looped
handoff.boundary_message_sentbooloptionalThe user was told they are now talking to a person.undisclosed-bot-identity
handoff.topic_groupenumoptionalalways_person, never_person, judgment, as written in the team’s trigger list.escalates-too-early-or-too-late
handoff.agent_flag_bot_could_answerbooloptionalAgent-side flag after pickup.escalates-too-early-or-too-late
verification.sideenumconditionalFor event_type = verification: bot or agent. Both in one conversation is the signal.cold-transfer, forces-a-fresh-login
action.typestringconditionalFor event_type = action: for example cancel, delete, send, pay, close_account.guessing-instead-of-asking, missed-crisis-signals, obstructing-cancellation-downgrade-or-refund
action.irreversibleboolconditionalThe action cannot be undone cheaply.guessing-instead-of-asking, missed-crisis-signals, scam-victim-not-interrupted
action.executedboolconditionalThe action ran (as opposed to being offered or blocked).guessing-instead-of-asking, scam-victim-not-interrupted
action.record_state_matches_claimbooloptionalSystem of record agrees with a “done” claim in a bot turn.undisclosed-bot-identity
action.steps_to_completeintoptionalSteps through the assistant to finish the action (cancel versus subscribe parity).obstructing-cancellation-downgrade-or-refund
payment.methodenumconditionalFor event_type = payment: card, bank_transfer, wire, gift_card, crypto, other.scam-victim-not-interrupted
payment.payee_typestringoptionalFor example business, bank, agency, individual, own_account.scam-victim-not-interrupted
payment.new_payeebooloptionalThe payee is new to this user.scam-victim-not-interrupted
payment.amount_bandstringoptionalA coarse amount band, not an exact amount.scam-victim-not-interrupted
payment.reason_text_flagbooloptionalThe stated reason is a “safe account” or “protect your money” transfer.scam-victim-not-interrupted

7. Session-end and resolution events

FieldTypeRequired?DescriptionPattern IDs that use it
session.last_speakerenumconditionalFor session_end: who sent the last message (user or bot). A bot last with no reply is the signal.answer-and-go-conversation, dead-end-i-don-t-understand-replies
session.closedboolconditionalA resolution marker was set (the team’s own definition).answer-and-go-conversation
session.closing_template_sentboolconditionalA closing message (confirm and next step) was sent before the state was set to resolved.answer-and-go-conversation
session.reopened_same_topicbooloptionalThe same user returned on the same topic inside the re-contact window.answer-and-go-conversation
session.csat_scoreintoptionalPost-chat rating if collected.hollow-empathy
session.csat_commentstringoptionalFree-text rating comment, redacted.hollow-empathy

Event types in one view

event_typeCarries fields from
messagecore, bot-turn (if bot), user labels (if user)
opencore, context
lookupcore, context (lookup.resolver_called)
request_start, request_endcore, request
stream_closecore, stream
errorcore, error
handoffcore, handoff
verificationcore, verification.side
actioncore, action
paymentcore, payment
session_endcore, session

PLANNED: voice and web fields (not specified, not detected, not measured)

Everything in this section is a plan. No pattern’s detection signals are written for these fields, no instrument in this repository produces them, and nothing here should be described as detected or measured. Voice and web get their own phase after chat has traction. The pages for voice patterns (repair-failure, order-mix-ups-at-the-speaker) keep their Pattern IDs; their text-chat signals, where written, say which are for text and which are planned for voice.

Field (PLANNED)ChannelTypeWhy it would be neededPattern IDs that would use it
voice.silence_msvoiceintSilence on the line, for example during a tool wait.silent-failure-and-timeout, silent-long-running-work
voice.interruptionvoiceboolThe caller spoke over the agent, or the agent over the caller.repair-failure, order-mix-ups-at-the-speaker
voice.asr_confidencevoicefloatSpeech-recognition confidence for the turn.repair-failure, order-mix-ups-at-the-speaker
voice.asr_error_suspectedvoiceboolA suspected recognition error, for example a repeated correction on the same slot.repair-failure, order-mix-ups-at-the-speaker
voice.readback_givenvoiceboolThe agent read the order or value back before commit.order-mix-ups-at-the-speaker
voice.caller_hangup_during_waitvoiceboolThe caller hung up during a wait.silent-failure-and-timeout
voice.disclosure_spokenvoiceboolThe AI disclosure was spoken.undisclosed-bot-identity
web.page_url_templatewebstringPage type, without personal data.generic-first-response
web.widget_openedwebboolThe assistant widget opened.generic-first-response, doesn-t-say-what-it-can-do
web.click_throughwebstringWhich suggested step the user tapped.generic-first-response, doesn-t-say-what-it-can-do
web.abandon_after_openwebboolThe user opened the assistant and left without sending or tapping anything.generic-first-response

The web rows are extensions of chat fields that already exist (open events with context). They are listed separately because web-analytics collection is a different system with its own consent and privacy rules, and none of it is specified yet.

Worked example (SYNTHETIC)

This is an invented conversation, written to show the shape of the records. It is not real data and not a measured result. The “could be flagged” column says what a reviewer might look at under the proposed signals on the named pattern page. Those signals are uncalibrated, and each one has a stated counter-signal that could explain the turn differently.

turn_indexspeakerevent_typeFields set (abridged)Could be flagged under (proposed)
1usermessagechannel=chat, text=“I want to dispute a charge”, user_label.intent=billing_disputenone
2botmessagebot.turn_type=fallback, bot.is_fallback=true, bot.template_id=fb_01none yet
3usermessagetext=“a charge on my card is wrong”, user_label.intent=billing_disputenone
4botmessagebot.turn_type=fallback, bot.template_id=fb_01, bot.similarity_to_prev=1.0dead-end-i-don-t-understand-replies (identical fallback twice in a row)
5usermessagetext=“can I talk to a person”, user_label.request_for_person=truenone
6botmessagebot.turn_type=fallback, bot.is_fallback=true, bot.path_to_person_offered=falsetalk-to-a-human-ignored-or-looped, dead-end-i-don-t-understand-replies (request for a person with no handoff after it)
7systemsession_endsession.last_speaker=bot, session.closed=falsedead-end-i-don-t-understand-replies (session ends within 2 turns of a fallback)

In a real log, turn 7 could also be a user who got an answer elsewhere; that is the counter-signal the pattern page names. A human-labeled sample is what would settle it, and that calibration has not been done.

Versioning

  • The version is in the title and in schema_version. This is v0.1: fields may be renamed or removed before v1.0.
  • Changes that add an optional field are minor (0.2, 0.3). Changes that rename, remove, or retype a field are breaking and wait for a major version.
  • Each field row lists the Pattern IDs that use it. A field with no pattern behind it should not be added.

How to propose a change

Open a pull request or an issue on the repository that hosts this page. Say which field you want to add, change, or remove, which Pattern ID needs it (or which signal on a pattern page), and what counter-signal could explain the same data. For a new field, point to the sentence in a pattern page that needs it.

License

License: owner to choose (placeholder; no license has been selected for this spec).

Related Guide

How to Detect AI Agent Failures in Production