save checkpoint
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Evidence Card and Remediation PR CLI Commands
|
||||
|
||||
## Module
|
||||
Cli
|
||||
|
||||
## Status
|
||||
VERIFIED
|
||||
|
||||
## 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
|
||||
|
||||
## Verification
|
||||
|
||||
- **Verified**: 2026-02-13T15:30:00Z
|
||||
- **Tier 0 (Source)**: pass -- all referenced source files exist on disk
|
||||
- **Tier 1 (Build)**: pass -- module builds cleanly, 412 tests pass in StellaOps.Cli.Commands.Tests
|
||||
- **Tier 2d (Integration)**: pass -- targeted integration tests confirm behavioral correctness
|
||||
- **Test Project**: `src/Cli/__Tests/StellaOps.Cli.Commands.Tests/StellaOps.Cli.Commands.Tests.csproj`
|
||||
- **Evidence**: `docs/qa/feature-checks/runs/cli/evidence-card-and-remediation-pr-cli-commands/run-001/tier2-integration-check.json`
|
||||
Reference in New Issue
Block a user