Skip to content

[Architecture][P4] Phase 4: Consolidate CLI product-line architecture #526

@AlexMikhalev

Description

@AlexMikhalev

Parent: #520
Related plan: docs/architecture-improvement-plan.md

Goal

Consolidate CLI architecture so terraphim_agent, terraphim_cli, and terraphim_repl share one runtime core and have clear product boundaries.

Deliverables

  • ADR defining CLI product-line strategy (single binary with modes vs multiple binaries with shared runtime)
  • Shared command runtime crate adopted by retained binaries
  • Removal of duplicated command/runtime wiring

Tasks

  • Evaluate existing overlap and decide target model via ADR
  • Extract common command execution/runtime logic into shared crate
  • Migrate binaries to shared core incrementally with compatibility checks
  • Document ownership and purpose of each retained binary

Acceptance Criteria

  • Clear ownership and purpose for each CLI binary in docs
  • Reduced duplicate runtime logic across CLI crates
  • Default and feature-enabled CLI builds pass quality gates

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture and design decisionsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions