Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Tighten hosted trial contract anchors
rcourtmanc54b245bed18
diff --git a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.mdindex 1e4819183c..97ddc60819 100644--- a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md+++ b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md@@ -413,9 +413,11 @@ Assertion design rules:`L11`, and `L12`. `L4` remains post-GA track work and is not a GA floorgate.3. Trial authority for v6 is SaaS-controlled.- `POST /api/license/trial/start` must initiate hosted signup only; the local- runtime may redeem signed trial activations but must not mint local trial- state directly.+ `POST /api/license/trial/start` must initiate hosted signup only by+ returning `409 trial_signup_required` while the hosted-signup retry burst+ remains open, then `429 trial_rate_limited` plus `Retry-After` backoff once+ that limiter engages; the local runtime may redeem signed trial activations+ but must not mint local trial state directly.4. v5 to v6 commercial migration must preserve unresolved paid-license stateand downgrade safety.5. Cloud and MSP Stripe `price_*` IDs are operational fill-in items, notdiff --git a/docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.md b/docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.mdindex 1520b16d2b..2c0056e5f5 100644--- a/docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.md+++ b/docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.md@@ -11,8 +11,8 @@ Scope: Self-hosted v5 -> v6 commercial and licensing bridge in `pulse`Locked v6 contract from those sources:-1. Trial authority in v6 is SaaS-controlled. `POST /api/license/trial/start` must initiate hosted signup only.-2. The local runtime may only redeem signed hosted trial activation tokens via `/auth/trial-activate`.+1. Trial authority in v6 is SaaS-controlled. `POST /api/license/trial/start` must initiate hosted signup only by returning `409 trial_signup_required` while the hosted-signup retry burst remains open, then `429 trial_rate_limited` plus `Retry-After` backoff once the limiter engages.+2. The local runtime may only redeem signed hosted trial activation tokens via `/auth/trial-activate`; it may not mint local trial state directly.3. v6 may auto-exchange persisted v5 Pro/Lifetime licenses on upgrade startup.4. v6 may accept valid v5 Pro/Lifetime keys in the activation flow.5. Paid Pulse Pro v5 recurring customers keep their existing recurring price after migration until they cancel; any return after cancellation uses current v6 pricing.@@ -55,7 +55,7 @@ These are not incoming paid-license migration states, but they are part of the s1. Startup auto-exchange exists for persisted legacy JWT-style licenses and preserves the old key for downgrade fallback.2. Manual activation accepts v6 activation keys and also exchanges v5 JWT-style keys outside dev mode.3. Migrated `plan_version` survives into `status` and `entitlements`, and the Pro panel renders migrated plan terms without repricing recurring v5 customers.-4. `POST /api/license/trial/start` does not mint local trial state; it returns `trial_signup_required` with a hosted action URL.+4. `POST /api/license/trial/start` does not mint local trial state; it returns `409 trial_signup_required` with a hosted action URL while the retry burst remains open, then `429 trial_rate_limited` plus `Retry-After` once the limiter engages.5. `/auth/trial-activate` redeems a signed hosted token, stores lease-backed billing state, and redirects with an explicit result code.### Highest-risk gapsdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex aba6aed5d4..62d7c92b16 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -441,8 +441,9 @@ when the disabled candidate no longer counts toward monitored-system capacity.a local runtime version string.23. Keep local trial-start transport explicit on the shared commercial APIboundary: `/api/license/trial/start` must preserve the hosted-signup- redirect contract during the allowed retry burst, then return the actual- remaining backoff in both `Retry-After` and+ redirect contract as `409 trial_signup_required` during the allowed retry+ burst, then return `429 trial_rate_limited` with the actual remaining+ backoff in both `Retry-After` and`details.retry_after_seconds` once the burst is exceeded. Hostedself-serve verification failures may render owned HTML, but they mustpreserve originating Pulse context instead of collapsing into generic@@ -2473,7 +2474,8 @@ security-side surface proof.That same shared commercial API boundary now also owns the local trial-starttransport contract. `/api/license/trial/start` may allow a short human-scaleburst of retries while the hosted redirect handoff remains canonical, but once-that burst is exceeded it must return the actual remaining backoff in both the+that burst is exceeded it must transition from `409 trial_signup_required` to+`429 trial_rate_limited` and return the actual remaining backoff in both the`Retry-After` header and the JSON `details.retry_after_seconds` payload insteadof a fixed window guess or a text-only error. `internal/api/contract_test.go`must pin both the hosted-signup redirect response and the rate-limited responsediff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex f41f10f483..7b866e4709 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -611,7 +611,13 @@ so eval-pack metadata cannot silently drift away from the canonical hostedhandoff contract while the task file stays correct. The release-controlhigh-risk verification matrix must carry those same anchors for the`tests/07-trial-signup-return.spec.ts` browser proof, so the RC packet cannot-describe trial-start verification through an unanchored summary path.+describe trial-start verification through an unanchored summary path. The+canonical release-control summaries in `docs/release-control/v6/internal/+SOURCE_OF_TRUTH.md` and+`docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.md`+must carry that same explicit `409 trial_signup_required` to `429+trial_rate_limited` plus `Retry-After` transition, so the governing release+packet cannot collapse the hosted handoff into a vague "hosted-only" statement.Hosted tenant organization seeding and hosted handoff role mapping now belongto the same cloud-paid truth too. `internal/cloudcp/stripe/provisioner.go`must seed tenant org members from the shared account-role-to-organization-rolediff --git a/scripts/tests/test-trial-signup-docs.sh b/scripts/tests/test-trial-signup-docs.shindex 438d299e38..da2eec84e6 100755--- a/scripts/tests/test-trial-signup-docs.sh+++ b/scripts/tests/test-trial-signup-docs.sh@@ -11,6 +11,7 @@ EVAL_SCENARIOS_DOC="${ROOT_DIR}/tests/integration/evals/scenarios.json"SOURCE_OF_TRUTH_DOC="${ROOT_DIR}/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md"MIGRATION_AUDIT_DOC="${ROOT_DIR}/docs/release-control/v6/internal/V5_TO_V6_COMMERCIAL_MIGRATION_AUDIT_2026-03-07.md"HIGH_RISK_MATRIX_DOC="${ROOT_DIR}/docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md"+API_CONTRACTS_DOC="${ROOT_DIR}/docs/release-control/v6/internal/subsystems/api-contracts.md"TRIAL_SIGNUP_REFERENCE_PATTERN='(/api/license/trial/start|trial_signup_required|trial_rate_limited)'@@ -22,6 +23,7 @@ REQUIRED_CONTRACT_DOCS=("${EVAL_TASK_DOC}""${EVAL_SCENARIOS_DOC}""${HIGH_RISK_MATRIX_DOC}"+ "${API_CONTRACTS_DOC}")TRACKED_REFERENCE_DOCS=()@@ -119,7 +121,7 @@ assert_forbidden_patterns_absent() {main() {local runbook_output pricing_output upgrade_output integration_output eval_task_output- local eval_scenarios_output high_risk_matrix_output+ local eval_scenarios_output high_risk_matrix_output api_contracts_outputlocal source_of_truth_output migration_audit_outputlocal contract_doc@@ -156,6 +158,9 @@ main() {high_risk_matrix_output="$(sed -n '44,54p' "${HIGH_RISK_MATRIX_DOC}")"+ api_contracts_output="$(+ sed -n '440,448p' "${API_CONTRACTS_DOC}"+ )"source_of_truth_output="$(sed -n '412,420p' "${SOURCE_OF_TRUTH_DOC}")"@@ -204,10 +209,23 @@ main() {assert_contains "high-risk matrix documents canonical trial-rate-limited response" "${high_risk_matrix_output}" "trial_rate_limited"assert_contains "high-risk matrix documents retry-after metadata" "${high_risk_matrix_output}" "Retry-After"+ assert_contains "api contracts document trial-start route" "${api_contracts_output}" "/api/license/trial/start"+ assert_contains "api contracts document hosted-signup redirect code" "${api_contracts_output}" "trial_signup_required"+ assert_contains "api contracts document canonical trial-rate-limited response" "${api_contracts_output}" "trial_rate_limited"+ assert_contains "api contracts document retry-after metadata" "${api_contracts_output}" "Retry-After"++ assert_contains "source of truth documents trial-start route" "${source_of_truth_output}" "POST /api/license/trial/start"assert_contains "source of truth keeps hosted-signup-only contract" "${source_of_truth_output}" "must initiate hosted signup only"+ assert_contains "source of truth documents hosted-signup redirect code" "${source_of_truth_output}" "trial_signup_required"+ assert_contains "source of truth documents canonical trial-rate-limited response" "${source_of_truth_output}" "trial_rate_limited"+ assert_contains "source of truth documents retry-after metadata" "${source_of_truth_output}" "Retry-After"assert_contains "source of truth forbids local trial minting" "${source_of_truth_output}" "must not mint local trial"+ assert_contains "migration audit documents trial-start route" "${migration_audit_output}" "POST /api/license/trial/start"assert_contains "migration audit keeps hosted-signup-only contract" "${migration_audit_output}" "must initiate hosted signup only"+ assert_contains "migration audit documents hosted-signup redirect code" "${migration_audit_output}" "trial_signup_required"+ assert_contains "migration audit documents canonical trial-rate-limited response" "${migration_audit_output}" "trial_rate_limited"+ assert_contains "migration audit documents retry-after metadata" "${migration_audit_output}" "Retry-After"assert_contains "migration audit forbids local trial minting" "${migration_audit_output}" "may only redeem signed hosted trial activation tokens"assert_forbidden_patterns_absent