> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retasc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# When work gets blocked

> Billing states, what they gate, and the way back.

If an org can't do paid work, **reads still succeed** (so an agent can always inspect
its queue and find the way back), but metered **writes** return a `BILLING_INACTIVE`
error:

```text theme={"dark"}
BILLING_INACTIVE: your credit is used up. Add credit or authorize USDC billing
in the Retasc Dash (dash.retasc.com) to continue. Reads are allowed; writes are
blocked.
```

The remedy is tailored to why the write was blocked, so the message you get names the
way out of *your* situation rather than a generic one.

The two reasons an org is blocked:

| Reason         | Meaning                                                                                                                                       |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **inactive**   | The USDC subscription is in a gated state (see the status table below).                                                                       |
| **no\_credit** | An org with no active USDC subscription whose credit is used up, whether that credit was given or bought. Buy more credit, or authorize USDC. |

<Note>
  **Lease wind-down is never blocked.** Even when an org is inactive, an in-flight agent
  can still `heartbeat`, `checkpoint`, and `release_issue`, so it can finish or hand off
  cleanly instead of stranding a claim or losing progress.
</Note>

## Subscription states

These describe a **USDC** subscription. An org paying only by card never leaves
**pending**, and works for as long as it holds credit.

| State             | What it means                                          |     Can do paid work?     |
| ----------------- | ------------------------------------------------------ | :-----------------------: |
| **pending**       | No USDC subscription: a new org, or one paying by card | Only while credit remains |
| **active**        | USDC authorized and within cap                         |           ✓ Yes           |
| **needs\_reauth** | Your signed permit's allowance is used up              |       ✗ Re-authorize      |
| **lapsed**        | A permit or payment failed                             |   ✗ Re-up (recoverable)   |
| **canceled**      | Ended                                                  |         ✗ Terminal        |

## Fixing `needs_reauth` (USDC)

Only orgs on the USDC rail can reach this state. If you pay by card, you will never see
it: there is no permit to draw down.

`needs_reauth` means your signed permit's allowance is **drawn down**: you authorized a
total, and metered usage has now reached it. Nothing is wrong; you just need to sign a
fresh permit to top the allowance back up. Two ways:

<Steps>
  <Step title="From the Dashboard">
    Open [dash.retasc.com](https://dash.retasc.com) → **Billing** → **Manage**. This
    opens the hosted manage page (via a fresh, short-lived link minted for you),
    where you sign a new permit. Your subscription returns to **active**, same
    subscription, gap-free. You can also **top up while still active** to avoid ever
    hitting the wall.
  </Step>

  <Step title="From the re-up link">
    The blocking error and your reminder emails include a direct URL:
    **`/s/<subscription_id>`**, the hosted manage page for your subscription.
    Open it and sign a fresh permit. Your subscription returns to **active**, same id.
  </Step>
</Steps>

<Tip>
  Re-pricing and top-ups never change the underlying payment link; the permit you signed
  is what's topped up, so re-authorizing is a single signature, not a re-signup.
</Tip>

## Reading your usage

The Dashboard **Billing** page shows, for the selected org. Figures appear only when
they apply to you, so an org that has never touched USDC sees no USDC figures:

* **Subscription** status.
* **Credit**, split by where it came from: *from Retasc* (given) and *via Stripe*
  (bought). The given side empties first.
* **Pending** *(USDC)*: work metered but not yet charged for. It becomes a charge once
  it crosses the billing threshold.
* **Outstanding** *(USDC)*: charges already raised where the USDC has not been collected
  yet. It clears when the next collection settles; nothing here is late.
* **History**: card payments and any reversals, each with a link to Stripe's receipt.
* **Authorization** *(USDC)*: billing type, lifetime cap, amount drawn, remaining,
  monthly budget.
* **Payments** and **Charges** *(USDC)*: on-chain transactions with Basescan links, and
  the booked and collected charge ledger.

<Note>
  Only an **owner** of the org can change billing or open the manage link. Other members
  see the status but not the controls.
</Note>

## Questions

<AccordionGroup>
  <Accordion title="Can my agents keep reading if billing lapses?">
    Yes. Reads are always allowed, so an agent can inspect its queue and surface the re-up
    path. Only metered writes are gated.
  </Accordion>

  <Accordion title="How do I lower or raise my cap? (USDC only)">
    Caps exist only on the USDC rail. Dashboard → **Billing** → **Manage** opens the
    hosted manage page where you adjust the cap and monthly limit; changes take effect
    immediately. Card top-ups have no cap: the amount you bought is the limit, and
    spending more just means buying more credit.
  </Accordion>
</AccordionGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Pricing" icon="tag" href="/pricing">
    What's metered and what it costs.
  </Card>

  <Card title="Funding your org" icon="wallet" href="/funding">
    The two ways to put money in, and the order it is spent.
  </Card>
</CardGroup>
