v0.17.0
## Upgrade notes
- **`Minion_Events` has three new columns.** `ip_address`, `hostname` and `version` record where a minion was when each event happened. There are no migrations, so either start from a fresh database or run this on the existing one before deploying:
```sql
ALTER TABLE Minion_Events ADD COLUMN ip_address INET, ADD COLUMN hostname TEXT, ADD COLUMN version TEXT;
UPDATE Minion_Events e SET ip_address = m.ip_address, hostname = m.hostname, version = m.version
FROM Registered_Minions m WHERE m.id = e.minion_id;
ALTER TABLE Minion_Events ALTER COLUMN ip_address SET NOT NULL, ALTER COLUMN hostname SET NOT NULL, ALTER COLUMN version SET NOT NULL;
```
- **Deployed replicas are named by Swarm task slot only.** `<service>-<node>-<slot>` became `<service>-<slot>` (`minion-3`, `backend-1`), so log file names change and a replica keeps its name when Swarm moves it to another node. Minion rows registered under the old names expire on their own after the upgrade.
- **`/blue-team/checks` is now the Checks hub**, and `/scoreboard/team` is gone. Staff open a team's hub at `/admin-panel/teams/<user_id>`.
- **Themes need two new exports in `active.ts`:** `TopBar` and `ChecksPageView`. `PageShell` takes a `topBar` prop. Copy both from `theming/template/` to start a theme.
## Added
- **Checks hub** for blue teams at `/blue-team/checks`. It shows the team's own uptime and check status over the last 20, 60 or 240 rounds (240 is hidden on phones).
- A weighted overall uptime, one row per check with its uptime over the range, and a strip of per-round verdicts.
- History loads once, then each new round from the scoreboard stream is appended instead of refetching.
- Staff see any team's hub from its name on the scoreboard (white team and up). A blue team's name links only to its own hub.
- Themeable through the new `ChecksPageView` slot, with default and template versions.
- API: `GET /api/checks/history/mine?rounds=1..240`, with `user_id` for white team and up.
- **Public notification stream** at `GET /api/notifications/events` (SSE, no login). It sends an `inject_schedule` snapshot of the injects open to every team and a `round_data` snapshot of the latest completed round's verdicts by team number, both on connect and again when they change. The inject snapshot refreshes every minute.
- **`RoundInfo` carries the round before.** `previous_responses` holds the previous shown round's check results and each score has `last_round_points`, so a scoreboard can show what changed without having watched the earlier round.
- **Themeable top bar** (`TopBar` slot) on blue team pages and the mobile nav. Admin pages keep the shared one.
- **IRSEC 2026 theme**: landing, login and scoreboard pages, top bar and Checks hub.
## Changed
- **Minions page.**
- The Registered table lists live minions only: Minion, Host, Address, Version, Max parallel, Last seen, Registered.
- The Events table shows the host, address and version each event happened on, not the minion's current ones.
- The summary cards show Online and Capacity only.
- **Score adjustments.** Once a team and a criterion are picked, the add form shows the team's current points on that criterion out of what's possible, adjustments included.
- Every page reads the signed-in user from one `useSession()` hook, so login and logout update the top bar and nav without a reload.
## Removed
- `/scoreboard/team`, replaced by the Checks hub.
## Fixed
- Hydration mismatches on pages that read the session cookie during render (checks, users, settings, injects, graders, scores).
- A replica moved to another node by Swarm registered as a new minion and left a ghost row behind.
## Internal
- Tests: `GetOwnCheckHistoryDB`, live-only `GetRegisteredMinionsDB` and the hosts recorded on minion events; the history hook's schema parse and the round append; `useSession` logout and expiry.
- Bruno: added "Get own check history"; updated the minion requests' docs.