Files
git.stella-ops.org/docs/features/unchecked/cli/evidence-card-and-remediation-pr-cli-commands.md

30 lines
1.5 KiB
Markdown

# Evidence Card and Remediation PR CLI Commands
## Module
Cli
## Status
IMPLEMENTED
## Description
CLI commands for viewing evidence cards per finding and opening remediation pull requests (`stella remediate open-pr`) directly from CLI output, enabling automated PR creation for AI-generated fix suggestions.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/EvidenceCommandGroup.cs` -- `EvidenceCommandGroup` with card subcommands
- **Card Commands**: `BuildCardCommand()`, `BuildCardExportCommand()`, `BuildCardVerifyCommand()` methods in EvidenceCommandGroup
- **Open PR**: `src/Cli/StellaOps.Cli/Commands/GitHubCommandGroup.cs` -- GitHub integration for PR creation
- **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/OpenPrCommandTests.cs`
- **Commands**:
- `stella evidence card <finding-id>` -- view evidence card for a finding
- `stella evidence card export <finding-id>` -- export evidence card
- `stella evidence card verify <finding-id>` -- verify evidence card integrity
- `stella remediate open-pr <finding-id>` -- open a remediation PR with AI-generated fix
## E2E Test Plan
- [ ] Run `stella evidence card <id>` and verify evidence card displayed with finding details
- [ ] Run `stella evidence card export <id> --output ./card.json` and verify export
- [ ] Run `stella evidence card verify <id>` and verify card integrity
- [ ] Run `stella remediate open-pr <id>` and verify PR created with fix suggestion
- [ ] Verify PR contains AI-generated remediation code
- [ ] Verify `--format json` output for automation