KYA report design

Design rules for the OSS report (the HTML rendered by kya receipt, kya start, and kya certify --open). The hosted console has its own direction doc (docs/product/frontend-design-direction.md); this file covers the local report.

The dashboard is the documentation

The report must be self-explanatory and self-service at all times. A user never has to read CLI help, repo docs, or a changelog to learn what the install can do. Two rules follow:

  1. Every capability is indexed, always. The Capabilities panel (capabilitiesPanel in src/receipt/render-receipt.ts) renders on every report, including a fresh install with zero events. Each row names the capability, says what it does, shows live (green) vs available (neutral) status, and gives the exact command or config key that turns it on. When a new capability ships, its row is added here in the same change.

  2. Feature panels render empty states, not nothing. A panel for a supported feature never returns an empty string because its data is absent. It renders an empty state that says what the feature does and the command to activate it (see the OpenShell, Alerts, OTel export, Import, and Discovery panels). Hiding a feature until it has data makes it undiscoverable: users do not search docs to find features, they scroll the dashboard. The one exception is purely derived detail (per-session filters, paginated feeds), which has nothing meaningful to say until the parent dataset exists.

Rules that follow for anyone changing this report:

Copy contract (ASD-STE100)

Layout contract

Live-update contract

Counts and labels follow the outcome

The report says what happened to each call, not only what policy thought. The trail field outcome (ran, blocked, held, error; see the README, “Outcome of each call”) drives the counts, the row labels and the sort:

Tests: test/honest-verdicts.test.ts, test/honest-verdicts-e2e.test.ts and test/report-labels-e2e.test.ts.