Skip to main content

stave trend

Analyze compliance posture trends across assessment runs

Usage

stave trend [flags]

Description

Reads a sequence of stave apply output files and computes posture metrics including violation rate, MTTR, severity distribution, attack stage trends, velocity, and improvement projection.

Requires at least 2 assessment files to produce a trend report.

Exit Codes: 0 Trend report generated successfully 2 Invalid input or insufficient data 4 Internal error

Examples: stave trend --history ./assessments/ stave trend --files run1.json,run2.json,run3.json --format json stave trend --history ./assessments/ --window 10

Flags

FlagTypeDescription
--compliancestringcomma-separated framework profiles for trajectory (hipaa,soc2,...)
--filesstringcomma-separated assessment files in chronological order
-f, --formatstringoutput format: table | json | openmetrics (default: table)
--historystringdirectory of out.v0.1 assessment files
--min-runsintminimum assessment files required (default: 2)
--no-pagerboolnever page output, even on a terminal
--regression-onlyboolshow only regressing teams
--rollupstringaggregate to hierarchy group ID
--teamstringfilter to specific team ID
--team-manifeststringpath to team manifest YAML for per-team metrics
--windowintlimit to most recent N assessments (0 = all)

Subcommands

CommandDescription
stave trend forecastProject posture score trajectory with SLA breach warnings
stave trend oscillationClassify violation oscillation patterns across assessment history
stave trend predictProject compliance readiness achievement date

Examples

stave trend --history ./assessments/
stave trend --history ./assessments/ --format json