The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(free-tier): the trial is once per OS user, not once per machine
alt-glitch30cd380ac8dc
diff --git a/hermes_cli/auth_nous.py b/hermes_cli/auth_nous.pyindex 65831f92ce1..c38d55bfc57 100644--- a/hermes_cli/auth_nous.py+++ b/hermes_cli/auth_nous.py@@ -1072,7 +1072,7 @@ def resolve_nous_runtime_credentials("""Resolve Nous inference credentials for runtime use (refreshing under the auth-store lock).A guest whose ``anon_`` credential NAS no longer knows (reaped or claimed) is retired and never- replaced here: the welcome trial is claimed once per machine, so that user goes on to sign-in or+ replaced here: the welcome trial is claimed once per OS user, so that user goes on to sign-in orprovider setup."""from hermes_cli.anon_auth import AnonCredentialDead, clear_dead_guestdiff --git a/hermes_cli/install_state.py b/hermes_cli/install_state.pyindex a53a29714d8..430946524b5 100644--- a/hermes_cli/install_state.py+++ b/hermes_cli/install_state.py@@ -1,7 +1,7 @@-"""Has someone already used Hermes on this machine?+"""Has this OS user already used Hermes on this computer?-The desktop's welcome trial goes only to a first install, so ``onboarding.start`` asks this before it-claims one. The answer is about the machine and the OS user, not the active profile: it looks at+The desktop's welcome trial goes only to a first install, once per OS user, so ``onboarding.start``+asks this before it claims one. The answer is about the OS user, not the active profile: it looks atevery Hermes root the machine names (default roots, channel and package roots, the roots gatewayservices and the ``hermes`` launcher point at) and at a marker file no Hermes setting can move.diff --git a/hermes_cli/welcome_trial.py b/hermes_cli/welcome_trial.pyindex 571713db15b..47e5b5ff2ea 100644--- a/hermes_cli/welcome_trial.py+++ b/hermes_cli/welcome_trial.py@@ -1,9 +1,10 @@-"""The desktop's welcome trial: free inference on ``nous/welcome`` for a first install.+"""The desktop's welcome trial: free inference on ``nous/welcome`` for a first install, once per OS user.-Only the backend the desktop spawned on this machine can claim it, only when this machine has never-used Hermes (``install_state``), and only with no provider and no Nous identity yet. The claim mints a-guest stamped with ``WELCOME_CLAIM_FLAG`` in the mint's own write and marks the machine, so the trial-is never claimed twice here. A claim that is lost later (the guest is reaped, ``auth.json`` is+Only the backend the desktop spawned on this machine can claim it, only when this OS user has never+used Hermes here (``install_state``), and only with no provider and no Nous identity yet. The claim+mints a guest stamped with ``WELCOME_CLAIM_FLAG`` in the mint's own write and writes the OS user's+marker, so the trial is never claimed twice for that user. Another OS account on the same computer is+a separate first install. A claim that is lost later (the guest is reaped, ``auth.json`` isdeleted, the user signs in) is never made again: that user lands on provider setup and sign-in likeanyone else.diff --git a/tests/hermes_cli/test_anon_auth_core.py b/tests/hermes_cli/test_anon_auth_core.pyindex 94a260223c2..d667f5010cf 100644--- a/tests/hermes_cli/test_anon_auth_core.py+++ b/tests/hermes_cli/test_anon_auth_core.py@@ -213,7 +213,7 @@ class TestTokenAcquisitionSeam:assert "quarantine" not in json.dumps(_load_auth_store())def test_dead_credential_is_retired_and_never_replaced(self, portal, monkeypatch):- """The trial is claimed once per machine: a guest NAS no longer knows is cleared and the+ """The trial is claimed once per OS user: a guest NAS no longer knows is cleared and theerror surfaces; inference never mints a replacement."""first = claimed_trial(monkeypatch)portal.dead_tokens.add(first["anon_token"])