Skip to content

[Feature] Add sidecar init/run CLI wrappers (Phase B) #54

@djm81

Description

@djm81

Feature Description

Add specfact sidecar init and specfact sidecar run CLI wrappers around the existing sidecar templates/scripts to make Phase B validation reproducible without manual shell steps.

Use Case

Primary Use Case: Brownfield Modernization

We validate OSS repos using the sidecar workflow (templates + harness + CrossHair). A CLI wrapper removes manual setup friction and makes dogfooding/validation repeatable.

Motivation

Current workflow requires manual sidecar-init.sh and run_sidecar.sh usage. A CLI wrapper improves DX, increases transparency for public beta users, and provides a stable surface for Phase B validation.

Proposed Solution

Add commands such as:

specfact sidecar init --repo /path/to/repo --bundle <name> --out /path/to/sidecar
specfact sidecar run --repo /path/to/repo --bundle <name> --out /path/to/sidecar --skip-specmatic
  • Reuse existing templates under resources/templates/sidecar/
  • Pass through environment variables and allow overrides
  • Write outputs to .specfact/projects/<bundle>/reports/sidecar/

Alternative Solutions

Continue to use shell scripts only and document the workflow (current state).

Additional Context

Phase B validation relies on sidecar templates. The CLI wrapper would formalize it for users.

Impact

  • User Impact: High
  • Complexity: Medium
  • Brownfield Relevance: High

Related Issues/PRs

  • N/A

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions