Skip to content

feat(ops): trinity doctor — one command whose output an operator can paste when asking for help (follow-up to #3007) #3764

Open

Description

@trinity-ability

Follow-up split out of #3007 (ask 6).

Problem

When a self-hosted install misbehaves, diagnosing it needs a dozen commands the operator does not know: which compose file set the stack runs, whether the enterprise tree matches the pin, published ports vs proxy, migration state, backup freshness, base-image drift, disk.

Ask

./scripts/deploy/update.sh --check (#3007) already does the read-only half for updates: detected install shape (from the backend's compose label), compose files, current vs target ref, preflight results. trinity doctor (CLI front door, as trinity update is) should build on the same script functions — not a parallel implementation — and print one redacted, paste-safe report:

  • version / commit / shape / compose files / enterprise pin match
  • container status + health, restart counts
  • published ports vs FRONTEND_URL, and the published-URL verification (update.sh --verify)
  • schema position + pending migrations, backup status and newest artifact age
  • agents on an old base image, disk free
  • never secrets: no .env values, URLs with credentials stripped

Done when

One command, exit code reflects health, output is safe to paste into a public issue.

Activity

  1. added
    priority-p2
    type-feature
    theme-devex
    complexity-medium
    on Oct 15, 2026
  2. added
    status-incubating
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p2status-incubatingtheme-devextype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions