Skip to content

The agent that grows with you

docs(free-tier): drop the rehearsal page and its references

Robin Fernandes1034215ae843
diff --git a/apps/desktop/AGENTS.md b/apps/desktop/AGENTS.md
index 451de21d401..73ce47a2d4b 100644
--- a/apps/desktop/AGENTS.md
+++ b/apps/desktop/AGENTS.md
@@ -204,12 +204,6 @@ From `apps/desktop`, use a fresh temporary directory for each rehearsal and run
`HERMES_PORTAL_BASE_URL=http://127.0.0.1:8765 HERMES_ANON_API_SECRET=test-secret HERMES_SHARED_AUTH_DIR=<tmp>/.hermes/shared`
before `npm run dev`. Stop Electron and its dev server after the run.
-To rehearse the free tier's failure handling (the account service refusing or
-unreachable at boot, the welcome host rate-limiting or refusing mid-chat), point
-the desktop at a local stand-in for both services with `HERMES_PORTAL_BASE_URL`,
-`NOUS_INFERENCE_BASE_URL` and `HERMES_EXTRA_WELCOME_HOSTS`. See
-`website/docs/developer-guide/free-tier-fault-rehearsal.md`.
-
## The taste test before you hand off
- Does every piece of state live with its authority, at the narrowest scope?
diff --git a/hermes_cli/anon_auth.py b/hermes_cli/anon_auth.py
index 1cba7f2d079..055497a1681 100644
--- a/hermes_cli/anon_auth.py
+++ b/hermes_cli/anon_auth.py
@@ -188,10 +188,9 @@ def guest_carries_inference() -> bool:
WELCOME_HOSTS = frozenset({"welcome-api.nousresearch.com"})
# Dev-only: extra hostnames that count as the welcome host, comma-separated (for example
-# ``127.0.0.1`` while ``NOUS_INFERENCE_BASE_URL`` points at a local stand-in; see
-# website/docs/developer-guide/free-tier-fault-rehearsal.md). Read from the environment, which the
-# user controls, so it sits at the same trust level as the URL override itself; it never widens
-# the NETWORK-side allowlist in ``auth_nous``.
+# ``127.0.0.1`` while ``NOUS_INFERENCE_BASE_URL`` points at a local stand-in). Read from the
+# environment, which the user controls, so it sits at the same trust level as the URL override
+# itself; it never widens the NETWORK-side allowlist in ``auth_nous``.
EXTRA_WELCOME_HOSTS_ENV = "HERMES_EXTRA_WELCOME_HOSTS"
diff --git a/website/docs/developer-guide/free-tier-fault-rehearsal.md b/website/docs/developer-guide/free-tier-fault-rehearsal.md
deleted file mode 100644
index 94079254ab9..00000000000
--- a/website/docs/developer-guide/free-tier-fault-rehearsal.md
+++ /dev/null
@@ -1,67 +0,0 @@
----
-sidebar_position: 6
-title: "Rehearsing Free-Tier Failures"
-description: "Point Hermes Desktop at a local stand-in for the account service and the welcome host to watch its free-tier failure handling"
----
-
-# Rehearsing Free-Tier Failures
-
-The Nous free tier depends on two services: the account service (NAS), which creates the
-free-tier identity and exchanges it for short-lived tokens, and the welcome inference host, which
-serves the free model under its own rate limits and capacity caps. Hermes has a ruled behaviour for
-every way either can refuse or fail: the `ANON_*` codes and the welcome refusal parser in
-`hermes_cli/anon_auth.py`, and the onboarding notice and sign-in screens keyed on them in the
-desktop. Those behaviours are pinned by tests (`tests/hermes_cli/test_anon_failure_modes.py`,
-`tests/agent/test_welcome_tier_recovery.py`). This page is how to watch them on a real desktop
-without touching production.
-
-## Point Hermes at a stand-in
-
-Run any local HTTP server that answers as the two services do, then start the desktop with:
-
-```bash
-D=$(mktemp -d)
-env -u NODE_ENV \
- HERMES_GUEST_ONBOARDING=1 \
- HERMES_HOME=$D/.hermes HERMES_DESKTOP_USER_DATA_DIR=$D/electron-user-data \
- HERMES_SHARED_AUTH_DIR=$D/.hermes/shared \
- HERMES_PORTAL_BASE_URL=http://127.0.0.1:8765 \
- NOUS_INFERENCE_BASE_URL=http://127.0.0.1:8765/v1 \
- HERMES_EXTRA_WELCOME_HOSTS=127.0.0.1 \
- npm run dev
-```
-
-| Variable | Why |
-|---|---|
-| `HERMES_GUEST_ONBOARDING=1` | The free tier's launch gate; nothing is created without it. |
-| `HERMES_PORTAL_BASE_URL` | Sends every account-service call (sign-up, token exchange, sign-in) to the stand-in. |
-| `NOUS_INFERENCE_BASE_URL` | Sends chat completions to the stand-in. Trusted as the user's own setting; bypasses the network-side host allowlist. |
-| `HERMES_EXTRA_WELCOME_HOSTS` | Dev-only. Makes Hermes treat the stand-in's hostname as the welcome host, so the free-tier route rules (model pinning, the route-keyed dark-tier 403, the "sign in for a bigger allowance" copy) apply as in production. Comma-separated hostnames, ports ignored. Never widens the allowlist for URLs the network hands back, and never belongs outside a rehearsal environment. |
-
-## What the stand-in has to speak
-
-On the account-service side: `POST /api/anonymous/create` (201 with an `anon_` token),
-`POST /api/anonymous/token` (200 with `access_token`, `expires_in`, `inference_base_url`), and,
-for sign-in rehearsals, `POST /api/oauth/device/code`, `/api/anonymous/promotion-intent` and
-`/api/anonymous/promotion-status`. The refusals Hermes classifies are the ones NAS actually sends:
-404 `not_found`, 503 `temporarily_disabled`, 429 with `Retry-After`, 428 `pow_*`, 404
-`unknown_token`, 403 `account_locked`; see the code table at the top of `anon_auth.py`.
-
-On the inference side: `POST /v1/chat/completions` (streaming or not), with the gateway's
-structured 429 body `{status, message, reason, retry_after, alternates, upgrade_url}` for
-`rate_limited` / `at_capacity` / `model_not_free`, a generic-bodied 403 for a dark tier, the
-"Anonymous accounts must use…" 400 for a wrong host, and plain 5xx for outages.
-
-A small stdlib `http.server` with a `POST /__scenario` switch is enough; keep it CORS-open and you
-can flip scenarios from the desktop's JavaScript console with one `fetch`. One such server was
-written alongside this work and can be regenerated from the description above; it is not kept in
-the repo because it only serves one-off manual rehearsal and would drift silently from the real
-services.
-
-## Reading the result
-
-The failure-to-message mapping the desktop should follow is in the pull request that introduced
-it and in the tests named above: the boot-time notice above the provider picker (with *Try again*
-when a retry can work, and the sign-in pointer only when the account service answered at all), the
-chat copy for each welcome refusal, and the sign-in dialog's busy / unreachable / unavailable
-screens.
diff --git a/website/sidebars.ts b/website/sidebars.ts
index 65fd4013117..f837b14ada0 100644
--- a/website/sidebars.ts
+++ b/website/sidebars.ts
@@ -777,7 +777,6 @@ const sidebars: SidebarsConfig = {
items: [
'developer-guide/contributing',
'developer-guide/worktree-ui-dev',
- 'developer-guide/free-tier-fault-rehearsal',
{
type: 'category',
label: 'Architecture',