Cut over to the Rust daemon

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python, rust, swift

Research direction

Read AGENTS.md, docs/standards/testing.md, ROADMAP.md, and docs/design/tech-stack.md first, then check that prerequisite issues #149, #150, #139, #140, and #132 are closed. Inspect the launch agent and the install test to identify how daemon selection is verified; the issue does not name their paths. Done means the Rust daemon owns the socket, the Python daemon is stopped, acceptance criteria and rollback steps are tested, and testing evidence is recorded in docs/testing-evidence/.

Written by the indexing model from the issue text.

Description

enhancement
.dag: issue-dag/2
.id: flyingrobots/AI-TTS#151
.kind: task
task: cutover
title: "Cut over to the Rust daemon"
.type: feature
workstream: Delivery
wave: 8
.blocked_by: [flyingrobots/AI-TTS#149, flyingrobots/AI-TTS#150, flyingrobots/AI-TTS#139, flyingrobots/AI-TTS#140, flyingrobots/AI-TTS#132]
roadmap: ROADMAP.md
language: ASD-STE100

Feature

Do this task in the flyingrobots/AI-TTS repository: Make the Rust daemon the installed daemon, with a tested way back.
Read these first: AGENTS.md, docs/standards/testing.md, ROADMAP.md, and docs/design/tech-stack.md.
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

The launch agent decides which daemon starts.

2. Problem Description

The listener still uses the Python daemon.

2b. Proposed Solution

Change the launch agent to start ai-ttsd. Do not migrate the schema. Write and test the steps that put the Python daemon back.

2c. Alternatives considered and rejected

  • Run the two daemons for a long time: two owners of one device is the defect that the project started with.

2d. Acceptance Criteria

  • After the install, the Rust daemon owns the socket and the Python daemon does not run.
  • The menu-bar application, the CLI, the MCP server, and the dashboard work.
  • The rollback steps put the Python daemon back, with no loss of queue or history.
  • One week of daily use gives no defect that blocks.

2e. Test Plan

Golden: The install test, then the full conformance suite against the installed daemon.
Edges: A cutover with a clip in the queue. A rollback after new history exists.
Known failure modes: The rollback fails because the Rust daemon changed the data.
Fuzz and stress: Not applicable, because the cutover is one event.

3. Prerequisites

  • #149 Run the Rust daemon beside the Python daemon
  • #150 Install the Rust binaries and launch agents
  • #139 Port the MCP adapter to Rust
  • #140 Port the terminal dashboard to Rust
  • #132 Test the Swift wire types against the exported schema

4. Scope

In: The launch agent change, the rollback, and the record.
Out: Removal of Python code.

5. Why now

It is the point of the port.

6. Risks

A defect found after the cutover affects each agent that speaks.

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

None.

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.