Files
git.stella-ops.org/docs/features/checked/cli/policy-review-workflow-cli.md
2026-02-14 09:11:48 +02:00

1.9 KiB

Policy Review Workflow CLI

Module

Cli

Status

VERIFIED

Description

Full policy review workflow from CLI: submit policies for review with reviewer assignment and urgency marking, check review status, add blocking/non-blocking comments with line/rule references, approve reviews, and reject reviews with reasons.

Implementation Details

  • Command Group: src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs -- policy review commands
  • Commands:
    • stella policy review submit <file> --reviewer <user> -- submit for review. Options: --urgent
    • stella policy review status <id> -- check review status
    • stella policy review comment <id> --message <text> -- add comment. Options: --blocking, --line <num>, --rule <name>
    • stella policy review approve <id> -- approve review
    • stella policy review reject <id> --reason <text> -- reject with reason

E2E Test Plan

  • Run stella policy review submit ./policy.stella --reviewer admin and verify submission
  • Run with --urgent and verify urgency flag
  • Run stella policy review status <id> and verify status displayed
  • Run stella policy review comment <id> --message "Missing gate" --blocking and verify blocking comment
  • Run stella policy review approve <id> and verify approval
  • Run stella policy review reject <id> --reason "Incomplete coverage" and verify rejection

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-review-workflow-cli/run-001/tier2-integration-check.json