Files
git.stella-ops.org/docs/features/unchecked/cli/policy-review-workflow-cli.md

1.4 KiB

Policy Review Workflow CLI

Module

Cli

Status

IMPLEMENTED

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