SYSNOMINAL|BUILDv2026.01.01|REGIONSELF_HOST

PlanSignal — Examples

Billing truth is emitted at read time. Your system interprets state and enforces outcomes.

EXAMPLE
// permit()/denyAction() are application-owned outcomes (illustrative).

// Read-time plan lookup (state emission)
const billing = await planSignal.state({
  subject: userId,
  scope: "account",
});

// billing example shape (illustrative):
// { plan: "free" | "standard" | "commercial", status: "active" | "past_due" | "canceled" }

if (billing.plan !== "commercial") {
  return denyAction("Upgrade required"); // application-owned outcome
}

permit();

PlanSignal does not block requests. It emits plan/account state. Enforcement remains application-owned.

RELATED LINKS

← Examples·Products