docs: ADR-024 — Thin CLI with Local Daemon Mode#37
Merged
cidrblock merged 3 commits intoansible:mainfrom Mar 19, 2026
Merged
Conversation
Captures the architectural decision to refactor the CLI from a fat client (embeds engine, validators, formatter, remediation) back to a thin gRPC presentation layer per the original ADR-001/ADR-004 design. Introduces a local daemon mode that runs Primary + validators as localhost gRPC servers, giving standalone users the same architecture as the Podman pod without requiring containers. Includes phased rollout plan and new FixStream/FormatStream RPC definitions. Made-with: Cursor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new architecture decision record (ADR-024) proposing a shift back to a thin gRPC CLI by introducing a local “daemon mode” that runs Primary + validators locally, aligning standalone development with the pod architecture.
Changes:
- Add ADR-024 documenting the thin-CLI + local daemon approach and phased rollout plan.
- Update the ADR index/metadata in
.sdlc/adrs/README.mdto include ADR-024.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
.sdlc/adrs/ADR-024-thin-cli-daemon-mode.md |
New proposed ADR describing motivation, decision, consequences, and rollout for daemon-backed thin CLI. |
.sdlc/adrs/README.md |
Updates ADR index/categories/changelog to reference ADR-024 and bumps next-available ADR number. |
You can also share your feedback on Copilot code review. Take the survey.
- Align daemon state file path with existing ~/.apme-data/ convention (ADR-022) instead of introducing ~/.apme/ - Clarify session subcommand becomes gRPC pass-through rather than removed; add ADR-022 to Related Decisions - Replace .cursor/plans/ references (gitignored) with PR links - Add missing ADR-022 to index table, changelog, and categories Made-with: Cursor
932f133 to
a537cd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files changed
.sdlc/adrs/ADR-024-thin-cli-daemon-mode.md— new ADR (Proposed).sdlc/adrs/README.md— index updated with ADR-024Context
This ADR was developed through an architecture review of the engine and CLI scope analysis. The fat CLI problem was identified during PR #34 review, where
collection_specshandling diverged between local and gRPC scan paths — a direct symptom of dual code paths. The daemon approach aligns local development with the pod architecture and enables a web UI as a second gRPC client without reimplementing orchestration logic.Made with Cursor