Files
Pulse/internal/api
pulse-triage[bot] 5f6c98ce29 Keep missing hosted billing retryable without renewing paid leases (#4415)
**Keep missing hosted billing retryable without renewing paid leases**

Require current billing authority for implicit refresh unless the
configured Stripe-free MSP mode and current account/plan permit local
billing. Preserve the saved refresh identity and original lease expiry
on absent authority, so restored billing can recover without recreated
grants or a replacement token. Exercise the issuer, all configured
modes, real refresh HTTP client, encrypted-state preservation and
cancellation. This candidate is independent of the retained
tenant-mutation and Portal recovery work.

**Share a fixed-clock hosted authority fixture for consumer
comparisons**

Allow the real HTTP client fixture to receive the same clock for
comparable pre-change and final-source runtime payloads. The ordinary
recovery test still uses current time; production source and assertions
are unchanged.

Contract-Neutral: Test-helper clock injection only; no runtime, API,
entitlement or rendered-source contract changes.

**Supply valid customer identities in hosted authority fixtures**

The containing native run reached registry validation before the seven
billing recovery/denial cases because their synthetic billing rows
omitted a required customer ID. Complete those fixture inputs without
changing production code or weakening the authority and same-token
recovery assertions.

Contract-Neutral: Fixture data repair only; runtime, API and entitlement
contracts and assertions are unchanged.

**Seed an actually blank stored billing state in its denial fixture**

CreateStripeAccount correctly defaults an omitted state to trial; the
blank-state denial case was therefore testing a valid trial row, not its
intended legacy blank state. Seed that application field explicitly,
preserving the fail-closed assertion and all production behavior.

Contract-Neutral: Test-fixture setup repair only; no runtime, authority,
API, parser or assertion change.

**Preserve Stripe-backed legacy tenant renewal**

Recognize the supported accountless customer/subscription representation
maintained by individual subscription webhooks. Prefer any current
mapping, keep current-account missing billing retryable, and preserve
host, lifecycle, revocation and local-MSP boundaries. Cover continuous
renewal beyond the initial lease, same-token recovery, actual
client/evaluator consumption and webhook withdrawal behind runtime
exclusion.

**Use a suspended Stripe status in the withdrawal fixture**

Unpaid correctly maps to paid grace and takes positive-sync exclusion.
Use paused for the suspended negative case and assert that each fixture
status actually withdraws capabilities. Preserve cancellation,
revocation, held-file and saved-runtime assertions.

Contract-Neutral: Corrects the new test's Stripe-status input; no
runtime, billing policy, authority, contract or assertion weakening.

---
Fleet candidate `20261115T024718Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `1be480e18118078989069a30e507cf58526029f3` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-15 03:57:44 +00:00
..
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-08-31 19:47:01 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-04-26 17:26:16 +01:00
2026-01-22 00:30:15 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-09-01 01:02:17 +01:00

Internal API Package

This directory contains the API server implementation for Pulse.

Important Note About frontend-modern/

The frontend-modern/ subdirectory that appears here is:

  • AUTO-GENERATED during builds
  • NOT the source code - just a build artifact
  • IN .gitignore - never committed
  • REQUIRED BY GO - The embed directive needs it here

Frontend Development Location

👉 Edit frontend files at: ${PULSE_REPOS_DIR}/pulse/frontend-modern/src/

Why This Structure?

Go's //go:embed directive has limitations:

  1. Cannot use ../ paths to access parent directories
  2. Cannot follow symbolic links
  3. Must embed files within the Go module

This is a known Go limitation and our structure works around it.