R-PG-4
PowerGRYD — Trend & Trajectory
Trend & Trajectory at /reports/powergryd/trends charts the last 12 months of PowerGRYD maturity snapshots so you can see whether each layer and overall pyramid integrity are improving.
Snapshot capture
Snapshots are written to powergryd_maturity_snapshots by the cron-powergryd-snapshot edge function:
- Nightly — 08:00 UTC, idempotent per UTC day (no duplicate row if one already exists).
- Manual — toolbar button (OrgAdmin Pro+Ent) with role/org check and a 60-minute throttle to prevent flood.
Last-snapshot strip on the page tags the row as nightly + System (cron) ormanual + actor based on the capture path.
Chart & window
- Window — last 12 months, oldest → newest.
- Lines — one per PowerGRYD layer (L1–L5) plus pyramid integrity, rendered with Recharts
LineChart. - Legend — click any series to toggle its line on/off (per-line legend toggle).
- Empty state — when fewer than 2 snapshots exist (
hasInsufficientHistory), an explainer renders instead of an empty chart.
Timezone handling
Display dates honour the org timezone via
useOrgTimezone. CSV export uses MM/DD/YYYY HH:MM with the org-local clock, matching all other RAIC report exports.Export & audits
Export produces RhindonCyber_PowerGRYD-Trend-12mo_*.csv (CRLF, MM/DD/YYYY HH:MM, org-tz).
Audits: POWERGRYD_TREND_VIEWED (60-min throttled), POWERGRYD_TREND_EXPORTED, POWERGRYD_TREND_SNAPSHOT_CAPTURED (cron), POWERGRYD_TREND_SNAPSHOT_MANUAL. Tier/flag gating: Pro+Ent and feature_flags.powergryd.
