What problem does it solve?
Production incidents in the Companions Runtime v2 stack — failed Box launches, stalled chats, queued turns that never run, and unhealthy runtime services — are hard to diagnose safely without leaking credentials or accidentally mutating production state. This Skill gives an operator a strictly read-only, credential-redacted debugging toolkit for the Railway-hosted production environment.
Core Features & Use Cases
- Railway deployment inspection: Check that web, api, worker, and runtime services run the same commit, and fetch filtered, redacted deployment logs per service, companion, turn, or attempt.
- Named read-only database queries: Run fixed diagnostic queries (gate status, queue health, stuck turns, interrupted turns, operations, instances, decisions) wrapped in BEGIN TRANSACTION READ ONLY with no free-SQL mode.
- Provider Box inventory: List box.ascii.dev Boxes per Companion and surface duplicate-generation evidence of ambiguous Box creation.
- Use Case: A member reports their Companion chat died mid-conversation. Run the turn, decisions, and runtime log queries to distinguish decision expiry, pi_event_stream_interrupted, and turn_stalled, then follow the matching runbook section — all without a single mutation.
Quick Start
Ask the assistant to triage production by running railway_status, the gate and health database queries, and the last 30 minutes of runtime error logs for the Companions stack.