1.5 KiB
1.5 KiB
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--EvidenceCommandGroupwith 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 findingstella evidence card export <finding-id>-- export evidence cardstella evidence card verify <finding-id>-- verify evidence card integritystella 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.jsonand 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 jsonoutput for automation