Add the doctor command
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
- 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
.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 parsestatus, 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flyingrobots/AI-TTS
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
flyingrobots/AI-TTS#225 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
flyingrobots/AI-TTS#8 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
flyingrobots/AI-TTS#7 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
flyingrobots/AI-TTS#166 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
flyingrobots/AI-TTS#165 ·
Maintainers usually reply within 1 day
All issues in flyingrobots/AI-TTS
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPossibly taken @prathameshfuke claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StingraySoftware/HENDRICS#213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day