Add the doctor command

Open
#147 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
34/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, rust
Domain
cli, observability

Research direction

Read AGENTS.md, docs/standards/testing.md, ROADMAP.md, and the Makefile doctor target first; wait until issues #138 and #146 are closed before starting. Then inspect the status, recent clip evidence, and system audio log entry points to determine how the command can report daemon health, late cycles for the last 20 clips, and CLI and daemon builds. Add the fixture and edge tests from the test plan, record falsification evidence, and confirm the acceptance criteria and definition of done.

Written by the indexing model from the issue text.

Description

enhancement
.dag: issue-dag/2
.id: flyingrobots/AI-TTS#147
.kind: task
task: doctor
title: "Add the doctor command"
.type: feature
workstream: Contract and clients
wave: 6
.blocked_by: [flyingrobots/AI-TTS#138, flyingrobots/AI-TTS#146]
roadmap: ROADMAP.md
language: ASD-STE100

Feature

Do this task in the flyingrobots/AI-TTS repository: Add `ai-tts doctor`: one command that reports daemon health, audio health, and the build that runs.
Read these first: AGENTS.md, docs/standards/testing.md, ROADMAP.md, and Makefile (doctor target).
Do not start until each issue in the Prerequisites section is closed.
Stay in the Scope section. Do not change what the Scope section excludes.
Write each failing test before the code that makes it pass. Record falsification evidence as the testing standard requires.
Stop when each item in Acceptance Criteria and in Definition of Done is true.
Report what you did, what you verified, and what you did not verify.

1. Background Context

A listener who hears a pop has no command that shows what the daemon recorded.

2. Problem Description

Health data is in several places: status, the clip evidence, and the system audio log.

2b. Proposed Solution

Add a subcommand that reads three things. The first is the daemon status. The second is the count of late device cycles for recent clips. The third is the build identity of the daemon and of the CLI.

2c. Alternatives considered and rejected

  • Extend status: agents parse status, and its shape must not grow.

2d. Acceptance Criteria

  • The command reports if the daemon runs, and which build.
  • The command reports late device cycles for the last 20 clips.
  • The command gives exit status 0 only when no check fails.

2e. Test Plan

Golden: A fixture daemon state gives the expected report.
Edges: No daemon. A daemon of a different build than the CLI.
Known failure modes: A check that always passes.
Fuzz and stress: Not applicable, because the command only reads state.

3. Prerequisites

  • #138 Port the command-line client to Rust
  • #146 Add the player with in-process audio

4. Scope

In: One subcommand.
Out: Automatic repair.

5. Why now

It makes the result of the port visible to the listener.

6. Risks

None that is specific to this task.

7. Definition of Done

Each acceptance criterion is true. The tests are in the repository and pass in CI. A record is in docs/testing-evidence/. The change is merged. This issue is closed.

8. Stakeholders

  • James Ross, the repository owner: decides the scope and accepts the result.
  • Operators of agents that call ai-tts. Their commands must continue to work without a change.

9. Related Issues

  • #75
  • #82
Dominant language
Python
Stars
0
Forks
1
Avg merge
2h 13m
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/AI-TTS

All issues in flyingrobots/AI-TTS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.