semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,29 @@
# 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