Raahat Scenario Harness

Curated conversation replay against the real runtime with stepwise diagnostics, readable deltas, and deterministic checks.

Boarding Information Only

boarding_information_only · boarding · 1/2 turns executed

Scenario Summary

IDboarding_information_only
TitleBoarding Information Only
Categoryboarding
Turns1/2
Run Statepartial
information multi_turn

Seed State

UserUnknown user
Phone919900000105
Seed Workflow
Seed State Machine

Current Runtime State

Routeboarding
Workflowboarding
State Machine
Stagequalifying

Checks And Lifecycle

Expectations Passed1
Expectations Failed0
Heuristic Warnings0
Stage advanced
Final assessmentOperationally incomplete: unresolved fields remain (dates, pet_count).

Final Outcome

Partial

Completed vs partial run state.

Final Route

boarding

Current route at the end of the replay.

Final Workflow / State

boarding

Workflow preferred; state machine shown if no workflow is active.

Final Stage

qualifying

Resolved from workflow progress or active snapshot.

Expectation Totals

Pass 1 Fail 0

Heuristic Totals

Warnings 0

Missing Fields

dates pet_count

Lifecycle Events Seen

Stage advanced
Turn 1
boarding boarding qualifying intent_match
Stage advanced New slots filled Memory updated
PASS
User
Do you have space in Baner for boarding and what are pickup options
Assistant
I can help plan that. Please share the dates, how many cats, and your pickup area.

What Changed This Turn

  • Workflow changed none -> boarding.
  • Stage advanced none -> qualifying.
  • New slot filled: last_question_key=grouped_core.
  • New slot filled: pickup_area=Baner.
  • New slot filled: pickup_required=True.
  • New slot filled: request_kind=availability.
  • New slot filled: service_area=Baner.
  • New slot filled: stage=qualifying.
  • Memory updated with area.
  • Memory updated with last_non_medical_domain.
  • Memory updated with pickup_required.
  • Memory updated with request_kind.
  • Snapshot version incremented to 1.

Expectation And Heuristic Results

Expectations
PASS: workflow_name matched expected value 'boarding'
Routing And Interpretation
{
  "confidence": 0.9,
  "reason_codes": [
    "intent_match"
  ],
  "route_type": "boarding",
  "workflow_name": "boarding"
}
{
  "confidence": 0.9,
  "entities": {
    "area": "baner",
    "city": "pune",
    "pickup_required": true,
    "user_goal": "availability",
    "zone": "west"
  },
  "is_vague": false,
  "primary_domain": "transport",
  "reason": "clear transport request",
  "secondary_domains": [
    "boarding"
  ],
  "should_continue_active_workflow": false,
  "should_preempt_active_workflow": false,
  "urgency_signal": "none"
}
Workflow Progress And Intents
{
  "missing_fields": [
    "dates",
    "pet_count"
  ],
  "next_question": "I can help plan that. Please share the dates, how many cats, and your pickup area.",
  "notes": [],
  "stage": "qualifying",
  "state_payload": {
    "check_in_date": null,
    "check_in_time_window": null,
    "check_out_date": null,
    "check_out_time_window": null,
    "duration_nights": null,
    "last_question_key": "grouped_core",
    "medical_flags": [],
    "pet_count": null,
    "pet_names": [],
    "pickup_area": "Baner",
    "pickup_required": true,
    "raw_date_text": null,
    "raw_duration_text": null,
    "request_kind": "availability",
    "service_area": "Baner",
    "special_needs": [],
    "stage": "qualifying"
  },
  "status": "collecting",
  "summary": "Baner",
  "superseded_by": null,
  "workflow_name": "boarding"
}
[]
Conversation Before And After
{
  "active_state_machine": null,
  "active_workflow": null,
  "current_state": null,
  "entities": {},
  "messages": [],
  "phone": "919900000105",
  "service_actions": [],
  "started_at": "2026-03-16T22:31:10.572048+00:00",
  "triage_state": null,
  "updated_at": "2026-03-16T22:31:10.572052+00:00"
}
{
  "active_state_machine": null,
  "active_workflow": {
    "last_question_key": "grouped_core",
    "missing_fields": [
      "dates",
      "pet_count"
    ],
    "next_question": "I can help plan that. Please share the dates, how many cats, and your pickup area.",
    "stage": "qualifying",
    "started_at": "2026-03-16T22:31:10.590357+00:00",
    "state_payload": {
      "check_in_date": null,
      "check_in_time_window": null,
      "check_out_date": null,
      "check_out_time_window": null,
      "duration_nights": null,
      "last_question_key": "grouped_core",
      "medical_flags": [],
      "pet_count": null,
      "pet_names": [],
      "pickup_area": "Baner",
      "pickup_required": true,
      "raw_date_text": null,
      "raw_duration_text": null,
      "request_kind": "availability",
      "service_area": "Baner",
      "special_needs": [],
      "stage": "qualifying"
    },
    "status": "collecting",
    "summary": "Baner",
    "superseded_by": null,
    "updated_at": "2026-03-16T22:31:10.590359+00:00",
    "version": 1,
    "workflow_name": "boarding"
  },
  "current_state": "QUALIFYING",
  "entities": {
    "area": "Baner",
    "last_non_medical_domain": "boarding",
    "pickup_required": true,
    "request_kind": "availability"
  },
  "messages": [
    {
      "role": "user",
      "source": null,
      "text": "Do you have space in Baner for boarding and what are pickup options",
      "timestamp": "2026-03-16T22:31:10.590389+00:00"
    },
    {
      "role": "assistant",
      "source": "B",
      "text": "I can help plan that. Please share the dates, how many cats, and your pickup area.",
      "timestamp": "2026-03-16T22:31:10.590391+00:00"
    }
  ],
  "phone": "919900000105",
  "service_actions": [],
  "started_at": "2026-03-16T22:31:10.590386+00:00",
  "triage_state": null,
  "updated_at": "2026-03-16T22:31:10.590407+00:00"
}
Memory And Trace
{
  "active_state_machine": null,
  "backend": "inmemory",
  "conversation_key_used": "919900000105",
  "conversation_keys": [
    "919900000105",
    "9900000105"
  ],
  "current_state": null,
  "loaded": true,
  "ping_ok": null,
  "redis_enabled": false,
  "thread_message_count": 0,
  "ttl_seconds_remaining": null
}
{
  "active_state_machine": null,
  "backend": "inmemory",
  "conversation_key_used": "919900000105",
  "conversation_keys": [
    "919900000105",
    "9900000105"
  ],
  "current_state": "QUALIFYING",
  "loaded": true,
  "ping_ok": null,
  "redis_enabled": false,
  "thread_message_count": 2,
  "ttl_seconds_remaining": null
}
[
  {
    "component": "brain",
    "payload": {
      "channel": "scenario_harness",
      "conversation_key": "919900000105",
      "message_text": "Do you have space in Baner for boarding and what are pickup options",
      "normalized_phone": "919900000105",
      "phone": "919900000105"
    },
    "stage": "input",
    "summary": "Received normalized message envelope",
    "timestamp": "2026-03-16T22:31:10.589846+00:00"
  },
  {
    "component": "memory_store",
    "payload": {
      "active_state_machine": null,
      "backend": "inmemory",
      "current_state": null,
      "loaded": true,
      "message_count": 0,
      "storage_key": "919900000105"
    },
    "stage": "memory",
    "summary": "Loaded conversation memory",
    "timestamp": "2026-03-16T22:31:10.589850+00:00"
  },
  {
    "component": "brain",
    "payload": {
      "has_prior_triage_state": false,
      "prior_state_error": null
    },
    "stage": "state",
    "summary": "Parsed prior working state",
    "timestamp": "2026-03-16T22:31:10.589852+00:00"
  },
  {
    "component": "brain",
    "payload": {
      "compact_payload_keys": [
        "incoming_message"
      ],
      "has_conversation": true,
      "has_customer": false,
      "has_icp": false,
      "has_profile": false,
      "recent_import_count": 0,
      "storage_key": "919900000105"
    },
    "stage": "context",
    "summary": "Assembled SessionContext for the turn",
    "timestamp": "2026-03-16T22:31:10.589855+00:00"
  },
  {
    "component": "contact_resolver",
    "payload": {
      "confidence": 0.0,
      "customer_id": null,
      "display_name": null,
      "matched_phone": null,
      "status": "UNKNOWN"
    },
    "stage": "decision",
    "summary": "Resolved sender contact status",
    "timestamp": "2026-03-16T22:31:10.589858+00:00"
  },
  {
    "component": "turn_interpretation",
    "payload": {
      "confidence": 0.9,
      "contact_status": "UNKNOWN",
      "entities": {
        "area": "baner",
        "city": "pune",
        "pickup_required": true,
        "user_goal": "availability",
        "zone": "west"
      },
      "is_vague": false,
      "primary_domain": "transport",
      "reason": "clear transport request",
      "secondary_domains": [
        "boarding"
      ],
      "should_continue_active_workflow": false,
      "should_preempt_active_workflow": false,
      "urgency_signal": "none"
    },
    "stage": "decision",
    "summary": "Resolved turn interpretation deterministically",
    "timestamp": "2026-03-16T22:31:10.590014+00:00"
  },
  {
    "component": "profile_context",
    "payload": {
      "phone": "919900000105"
    },
    "stage": "context",
    "summary": "No customer matched provided phone",
    "timestamp": "2026-03-16T22:31:10.590018+00:00"
  },
  {
    "component": "entry_policy",
    "payload": {
      "allow_identity_question": true,
      "bypass_onboarding": false,
      "defer_existing_workflow": false,
      "preempt_active_workflow": false,
      "reason": "unknown contact with a clear non-urgent request can allow one light identity question later",
      "run_welcome_orientation": false,
      "selected_posture": "light_onboarding"
    },
    "stage": "decision",
    "summary": "Determined entry posture for this turn",
    "timestamp": "2026-03-16T22:31:10.590020+00:00"
  },
  {
    "component": "intent_parser",
    "payload": {
      "continue_active_workflow": false,
      "primary_intent": "boarding_request",
      "reason": "matched_keyword_rules",
      "resolved_state_machine": "boarding",
      "workflow_source": "intent_match"
    },
    "stage": "decision",
    "summary": "Resolved primary intent and state machine",
    "timestamp": "2026-03-16T22:31:10.590055+00:00"
  },
  {
    "component": "context_builder",
    "payload": {
      "active_workflow": "boarding",
      "background_fact_count": 0,
      "current_step": null,
      "foreground_fact_count": 4,
      "prompt_family": "general",
      "purpose": "workflow_response"
    },
    "stage": "context",
    "summary": "Built workflow-response context slice for prompt assembly",
    "timestamp": "2026-03-16T22:31:10.590081+00:00"
  },
  {
    "component": "workflow",
    "payload": {
      "action_intents": [],
      "missing_fields": [
        "dates",
        "pet_count"
      ],
      "next_question": "I can help plan that. Please share the dates, how many cats, and your pickup area.",
      "stage": "qualifying",
      "status": "collecting",
      "summary": "Baner",
      "workflow_name": "boarding"
    },
    "stage": "decision",
    "summary": "Executed deterministic workflow handler",
    "timestamp": "2026-03-16T22:31:10.590375+00:00"
  },
  {
    "component": "memory_store",
    "payload": {
      "active_state_machine": null,
      "current_state": "QUALIFYING",
      "message_count_after": 2,
      "storage_key": "919900000105"
    },
    "stage": "mutation",
    "summary": "Persisted updated conversation memory",
    "timestamp": "2026-03-16T22:31:10.590693+00:00"
  }
]