v445 - Lifecycle Audit-Note Threshold Configuration Visibility
Reviewed v444 warning acknowledgement current-vs-changed matching hardening and proceeded with lifecycle audit-note threshold configuration visibility before any billing activation behavior.
What changed
- Added a structured lifecycle audit-note threshold configuration model to
SubscriptionLifecycleBillingSyncService.
- Exposed active stale-review threshold values, defaults, environment variable names, raw override values, allowed ranges, invalid override flags, and clamped override flags in the lifecycle review API.
- Added a new Super Admin threshold configuration panel inside
/admin/subscriptions.
- Added environment override counts, invalid override counts, due-soon window visibility, and a plain review-only effect statement.
- Added a threshold configuration CSV export.
- Updated
.env.example comments so the threshold flags are documented as Super Admin review visibility only.
Guardrails
This build is review-only. It does not collect payment, create customer portal sessions, mutate subscription status, convert trials to paid subscriptions, enforce hard billing gates, change broker distribution limits, change owned portal rules, or open internal load-board access.
Lifecycle audit-note threshold settings only affect Super Admin review freshness labels, due-soon/stale counts, and exports. They do not block Workspace Admins, mute warnings, or change subscription state.
Validation notes
- Prisma schema changed: No.
- Local import preflight passed.
- Targeted TypeScript/TSX parse checks were attempted; dependency-free sandbox checks showed only expected unresolved dependency/path-type errors and no syntax errors from the changed files.