Current state and gap
Shared CLI utilities are used across many command-test modules, but adoption is incomplete and duplicate setup or assertion patterns remain. This issue owns maintainability of the test harness; exact exit-code behavior remains in #55.
Acceptance criteria
- Inventory CLI test modules and identify duplicated runner, environment, service-manager, repository, and result-diagnostic setup.
- Migrate only patterns that improve clarity and isolation; do not hide command-specific intent behind generic helpers.
- Remove obsolete duplicate helpers after their consumers migrate.
- Preserve test independence and improve failure diagnostics.
- Run the complete CLI suite and normal CI profile.
Current state and gap
Shared CLI utilities are used across many command-test modules, but adoption is incomplete and duplicate setup or assertion patterns remain. This issue owns maintainability of the test harness; exact exit-code behavior remains in #55.
Acceptance criteria