# Policy History CLI ## Module Cli ## Status VERIFIED ## Description View policy run history with filtering by tenant, time range (from/to ISO-8601), status (completed/failed/running), pagination, and table/JSON output. ## Implementation Details - **Command Group**: `src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs` -- policy history commands - **Commands**: - `stella policy history` -- view policy run history. Options: `--tenant `, `--from `, `--to `, `--status completed|failed|running`, `--limit`, `--offset`, `--format table|json` ## E2E Test Plan - [ ] Run `stella policy history` and verify policy run history displayed - [ ] Run with `--tenant ` and verify tenant filtering - [ ] Run with `--from 2024-01-01 --to 2024-12-31` and verify time range filtering - [ ] Run with `--status failed` and verify status filtering - [ ] Verify pagination with `--limit` and `--offset` - [ ] Verify `--format json` output ## 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-history-cli/run-001/tier2-integration-check.json`