34 lines
1.7 KiB
Markdown
34 lines
1.7 KiB
Markdown
# Policy Scaffolding CLI
|
|
|
|
## Module
|
|
Cli
|
|
|
|
## Status
|
|
VERIFIED
|
|
|
|
## Description
|
|
Create new policy files from templates (minimal, baseline, vex-precedence, reachability, secret-leak, full) with metadata tagging, shadow mode configuration, and optional Git repository/fixtures initialization.
|
|
|
|
## Implementation Details
|
|
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs` -- policy scaffolding commands
|
|
- **Commands**:
|
|
- `stella policy new <name>` -- create new policy from template. Options: `--template minimal|baseline|vex-precedence|reachability|secret-leak|full`, `--shadow`, `--tags <tags>`, `--init-git`, `--init-fixtures`
|
|
|
|
## E2E Test Plan
|
|
- [ ] Run `stella policy new my-policy --template minimal` and verify minimal policy created
|
|
- [ ] Run with `--template full` and verify comprehensive policy with all gates
|
|
- [ ] Run with `--template reachability` and verify reachability-focused policy
|
|
- [ ] Run with `--shadow` and verify shadow mode configured
|
|
- [ ] Run with `--tags "team:security,env:production"` and verify metadata tags
|
|
- [ ] Run with `--init-git` and verify Git repository initialized
|
|
- [ ] Run with `--init-fixtures` and verify test fixtures directory created
|
|
|
|
## 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/policy-scaffolding-cli/run-001/tier2-integration-check.json`
|