Files
git.stella-ops.org/docs/features/checked/cli/cli-notification-simulation-and-acknowledgment.md
2026-02-14 09:11:48 +02:00

41 lines
2.2 KiB
Markdown

# CLI Notification Simulation and Acknowledgment
## Module
Cli
## Status
VERIFIED
## Description
CLI commands for simulating notification rules against events (`stella notify simulate`) and acknowledging incidents (`stella notify ack`) with tenant-scoped operation support.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/NotifyCommandGroup.cs` -- `NotifyCommandGroup` for notification commands
- **Notify Client**: `src/Cli/StellaOps.Cli/Services/NotifyClient.cs` / `INotifyClient.cs` -- notification API client
- **Route consolidation**: Notify commands consolidated under `stella config notify` via cli-routes.json
- **Commands**:
- `stella config notify simulate <event-type>` -- simulate notification rules against an event
- `stella config notify ack <incident-id>` -- acknowledge an incident notification
- `stella config notify channels list` -- list notification channels
- `stella config notify channels test <channel>` -- test a notification channel
- `stella config notify templates list` -- list notification templates
- **Tenant scoping**: Operations support `--tenant` flag for multi-tenant environments
## E2E Test Plan
- [ ] Run `stella config notify simulate gate-failure` and verify notification rules evaluated
- [ ] Run `stella config notify ack <incident-id>` and verify acknowledgment recorded
- [ ] Run `stella config notify channels list` and verify channels displayed
- [ ] Run `stella config notify channels test slack` and verify connectivity test
- [ ] Run `stella config notify templates list` and verify templates listed
- [ ] Verify tenant scoping with `--tenant <id>` flag
- [ ] Verify deprecated `stella notify simulate` still works with warning
## 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, 238 tests pass in StellaOps.Cli.Formatting.Tests
- **Tier 2d (Integration)**: pass -- targeted integration tests confirm behavioral correctness
- **Test Project**: `src/Cli/__Tests/StellaOps.Cli.Formatting.Tests/StellaOps.Cli.Formatting.Tests.csproj`
- **Evidence**: `docs/qa/feature-checks/runs/cli/cli-notification-simulation-and-acknowledgment/run-001/tier2-integration-check.json`