1.7 KiB
1.7 KiB
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 minimaland verify minimal policy created - Run with
--template fulland verify comprehensive policy with all gates - Run with
--template reachabilityand verify reachability-focused policy - Run with
--shadowand verify shadow mode configured - Run with
--tags "team:security,env:production"and verify metadata tags - Run with
--init-gitand verify Git repository initialized - Run with
--init-fixturesand 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