Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Anchor eval trial-signup metadata

rcourtmanb929321a3d04
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 1503ab12d4..a6ea791594 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -605,7 +605,10 @@ second-attempt phrasing anywhere in that tracked reference set. The integration
README now carries the same `POST /api/license/trial/start`,
`trial_signup_required`, and `trial_rate_limited` anchors as the other
operator-facing docs so it stays inside the discovered set instead of relying
-on a special-case assertion path.
+on a special-case assertion path. The `trial-signup` entry in
+`tests/integration/evals/scenarios.json` must now carry those same anchors too,
+so eval-pack metadata cannot silently drift away from the canonical hosted
+handoff contract while the task file stays correct.
Hosted tenant organization seeding and hosted handoff role mapping now belong
to the same cloud-paid truth too. `internal/cloudcp/stripe/provisioner.go`
must seed tenant org members from the shared account-role-to-organization-role
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index a081f995c0..21ecab601c 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -463,7 +463,11 @@ rate limited. The reused-instance browser-proof entry in
`POST /api/license/trial/start`, `409 trial_signup_required`, `429
trial_rate_limited`, and `Retry-After`, so the shared trial-start docs guard
can auto-discover that README alongside the rest of the governed trial-start
-surface instead of relying on README-only fallback checks.
+surface instead of relying on README-only fallback checks. The eval-pack
+metadata in `tests/integration/evals/scenarios.json` must carry those same
+anchors for the `trial-signup` scenario description, so deterministic and
+agentic trial runs inherit the same canonical contract wording instead of
+teaching a drifted summary path.
Playwright-driven public/commercial specs that support scenario-specific
endpoint overrides such as `PULSE_CLOUD_BASE_URL` or
`PULSE_COMMERCIAL_BASE_URL` must layer those values through that same shared
diff --git a/scripts/tests/test-hot-dev-bg.sh b/scripts/tests/test-hot-dev-bg.sh
index 69c73c3ca6..d62f646a1f 100755
--- a/scripts/tests/test-hot-dev-bg.sh
+++ b/scripts/tests/test-hot-dev-bg.sh
@@ -19,6 +19,7 @@ GO_SUM="${ROOT_DIR}/go.sum"
DEV_LAUNCHD_WRAPPER="${ROOT_DIR}/scripts/dev-launchd-wrapper.sh"
DEV_LAUNCHD_SETUP="${ROOT_DIR}/scripts/dev-launchd-setup.sh"
INTEGRATION_README="${ROOT_DIR}/tests/integration/README.md"
+INTEGRATION_EVAL_SCENARIOS="${ROOT_DIR}/tests/integration/evals/scenarios.json"
DEPLOYMENT_INSTALLABILITY_CONTRACT="${ROOT_DIR}/docs/release-control/v6/internal/subsystems/deployment-installability.md"
SUBSYSTEM_REGISTRY="${ROOT_DIR}/docs/release-control/v6/internal/subsystems/registry.json"
@@ -729,6 +730,16 @@ test_integration_readme_documents_trial_retry_burst_contract() {
assert_contains "integration readme references hosted trial probe script" "${output}" "tests/integration/scripts/trial-signup-contract.sh"
}
+test_integration_eval_scenario_documents_trial_retry_burst_contract() {
+ local output
+ output="$(sed -n '24,34p' "${INTEGRATION_EVAL_SCENARIOS}")"
+
+ assert_contains "integration eval scenario names trial-start route" "${output}" "POST /api/license/trial/start"
+ assert_contains "integration eval scenario names hosted-signup redirect code" "${output}" "409 trial_signup_required"
+ assert_contains "integration eval scenario names rate-limited code" "${output}" "429 trial_rate_limited"
+ assert_contains "integration eval scenario names retry-after metadata" "${output}" "Retry-After"
+}
+
test_integration_quick_start_distinguishes_embedded_frontend_from_hot_dev() {
local output
output="$(sed -n '82,102p' "${ROOT_DIR}/tests/integration/QUICK_START.md")"
diff --git a/scripts/tests/test-trial-signup-docs.sh b/scripts/tests/test-trial-signup-docs.sh
index a1d8ce72d0..a259ca8d52 100755
--- a/scripts/tests/test-trial-signup-docs.sh
+++ b/scripts/tests/test-trial-signup-docs.sh
@@ -7,6 +7,7 @@ PRICING_DOC="${ROOT_DIR}/docs/architecture/v6-pricing-and-tiering.md"
UPGRADE_DOC="${ROOT_DIR}/docs/UPGRADE_v6.md"
INTEGRATION_README="${ROOT_DIR}/tests/integration/README.md"
EVAL_TASK_DOC="${ROOT_DIR}/tests/integration/evals/tasks/trial-signup.md"
+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"
@@ -18,6 +19,7 @@ OPERATOR_DOCS=(
"${UPGRADE_DOC}"
"${INTEGRATION_README}"
"${EVAL_TASK_DOC}"
+ "${EVAL_SCENARIOS_DOC}"
)
TRACKED_REFERENCE_DOCS=()
@@ -110,6 +112,7 @@ assert_forbidden_patterns_absent() {
main() {
local runbook_output pricing_output upgrade_output integration_output eval_task_output
+ local eval_scenarios_output
local source_of_truth_output migration_audit_output
local operator_doc
@@ -140,6 +143,9 @@ main() {
eval_task_output="$(
sed -n '1,24p' "${EVAL_TASK_DOC}"
)"
+ eval_scenarios_output="$(
+ sed -n '24,34p' "${EVAL_SCENARIOS_DOC}"
+ )"
source_of_truth_output="$(
sed -n '412,420p' "${SOURCE_OF_TRUTH_DOC}"
)"
@@ -175,6 +181,11 @@ main() {
assert_contains "eval task documents canonical trial-rate-limited response" "${eval_task_output}" "\`429 trial_rate_limited\`"
assert_contains "eval task documents retry-after metadata" "${eval_task_output}" "\`Retry-After\`"
+ assert_contains "eval scenario documents trial-start route" "${eval_scenarios_output}" "POST /api/license/trial/start"
+ assert_contains "eval scenario documents hosted-signup redirect code" "${eval_scenarios_output}" "409 trial_signup_required"
+ assert_contains "eval scenario documents canonical trial-rate-limited response" "${eval_scenarios_output}" "429 trial_rate_limited"
+ assert_contains "eval scenario documents retry-after metadata" "${eval_scenarios_output}" "Retry-After"
+
assert_contains "source of truth keeps hosted-signup-only contract" "${source_of_truth_output}" "must initiate hosted signup only"
assert_contains "source of truth forbids local trial minting" "${source_of_truth_output}" "must not mint local trial"
diff --git a/tests/integration/evals/scenarios.json b/tests/integration/evals/scenarios.json
index 66cbfe163b..8d66d4cd96 100644
--- a/tests/integration/evals/scenarios.json
+++ b/tests/integration/evals/scenarios.json
@@ -26,7 +26,7 @@
{
"id": "trial-signup",
"name": "Pro Trial Signup Return",
- "description": "Ensures self-hosted Pulse initiates hosted trial signup, preserves local entitlements until activation, and enforces the hosted-signup retry-burst contract for duplicate initiation attempts.",
+ "description": "Ensures self-hosted Pulse initiates hosted trial signup through POST /api/license/trial/start, preserves local entitlements until activation, returns 409 trial_signup_required while the hosted-signup retry burst remains open, and transitions to 429 trial_rate_limited with Retry-After backoff once the limiter engages.",
"deterministic": {
"command": [
"npx",