Accounts, agents and namespaces
Every version in the commons is signed by an agent, acting for an account, under a namespace that account owns. This page says what each of those is, how each is created, and what each proves.
The roles
Section titled “The roles”| Role | What it is |
|---|---|
| Account | The party the commons holds answerable for the agents acting under it. A person creates it by signing in once with Google or GitHub. It has an account name, an account key, and owns namespaces. |
| Account holder | The person who can sign in with the account’s sign-in identity. They create the account once, and sign in again only to replace a lost key. Nothing about them is public. |
| Agent | A process with no browser and no person, acting for one account under a grant. It attests, publishes and installs. It is named by its account and its agent name, written ada/agent-a. |
| Namespace | The scope packages are published under: acme.com in @acme.com/parser. It is either a plain name or a domain, and has one owner, an account. An account can own several. |
| Consumer | Whoever installs a package and runs commons verify: an agent or a person. A consumer needs no account. |
| Operator | Whoever runs an instance of the commons. The operator holds the instance’s issuer key and log key, sets its platform policy and its reserved names, and can suspend an account. |
An account is one person for now. The account name (ada) is a name the person chose: it is not a
namespace, and it says nothing about who the person is.
Creating an account
Section titled “Creating an account”The account holder runs one command, on a machine of their own:
commons account enroll <account> --provider <google|github>- The command makes the account key, an Ed25519 key pair, and keeps it on that machine. The key never leaves the account holder’s machines: not to an agent, and not to the commons.
- It asks the commons to create the account, and prints an address and a short code.
- The person opens the address in any browser, checks that the code matches the one in their terminal, and signs in with Google or GitHub.
- The commons checks the sign-in, creates the account, signs an account record that binds the account name to the key, and enters the record in the public log. The command saves the record and prints the next step.
The sign-in must be completed within 15 minutes. Nothing in these steps is done by the operator.
An account name is 1 to 39 characters of lower-case letters, digits and hyphens, and does not start
with a hyphen. Names are first come. A name on the instance’s reserved list cannot be had, and
account names and plain namespaces share one pool: ada can be both an account and a namespace
only if the same account holds both. Otherwise two different people could be ada the account and
@ada the namespace, and every line that shows both would mislead.
What an account record says, and what stays private
Section titled “What an account record says, and what stays private”An account record says that, on the date it gives, someone who could sign in with a Google or GitHub identity bound this key to this account name, and that the provider reported a verified email address for that identity. It does not say who the person is, or that they belong to any organization.
The record, the log and every response of the service carry the account name and the provider’s
name, and nothing else about the person: no email address, login or provider identifier. The
commons keeps the verified email address privately and does not publish it. Wherever an account is
shown, how it was checked is shown with it: ada (signed in with Google, 2026-12-01).
A sign-in identity can hold only one account that the operator has not revoked. An account cannot add a second sign-in or change the one it has.
An instance can also list accounts its operator vouches for, with no sign-in; they are shown as
ada (added by the operator, 2026-12-01). This is meant for local and self-hosted instances.
Namespaces
Section titled “Namespaces”Every package name is @<namespace>/<name>. A namespace is one of two kinds:
- A plain namespace is a name with no dot, such as
acme, following the account name’s rule. It goes to whoever claims it first, and proves nothing more. - A domain namespace is a registered domain, such as
acme.comoracme.co.uk. It is proven by a DNS record, and by nothing else. It must be exactly one label longer than a public suffix in the ICANN section of the Public Suffix List, so a subdomain such asapi.acme.comis refused, and so is a name under a suffix a company registered for its customers, such asfoo.github.io. It is written in lower case, and an internationalized domain in itsxn--form.
The account claims a namespace with its account key, from the account holder’s machine. No browser is needed:
commons namespace claim <namespace> --account <account>A plain namespace is claimed at once. For a domain, the command prints a TXT record to create, at
_commons-challenge.<domain> with a value that starts commons-namespace=, and waits. The commons
looks the record up at most every 30 seconds. A claim not proven within 24 hours expires; the
command can be stopped and run again to pick a pending claim up. The record can be removed once the
claim has passed.
When the claim passes, the commons signs a namespace record, naming the namespace, its kind, its owner and, for a domain, the DNS record that was found and when, and enters it in the log.
What a namespace record proves:
- For a plain namespace: that this account asked for the name first.
- For a domain namespace: that on the date given, a TXT record the commons issued to this account was published under the domain. Not that the account is the company the domain belongs to, and not that the domain’s owner knew: someone with access to the domain’s DNS did it.
The names commons and imported are reserved, and so are a set of scopes that packages on the
public npm registry use, so that no account can claim them. The operator can add to the list. A
reserved name is refused even to whoever can pass its DNS check.
Only agents of the namespace’s owner can publish under it. A namespace does not change hands: taking over a domain namespace by proving the domain, and transferring a namespace between accounts, are planned (see the roadmap).
The agent grant
Section titled “The agent grant”An agent gets its authority from a grant: a statement, signed with the account key, that names the agent, the agent’s own key, and how long the grant lasts. The account holder makes one for each agent, on a machine that holds the account key:
commons agent grant <agent> --account <account> --out <file>The command makes the agent’s key, signs the grant, registers it with the commons, and writes the agent’s file: the agent key and the grant, readable only by its owner. That file is all an agent holds. Its key signs requests to the commons and nothing else; it never signs an attestation.
A grant lasts 30 days unless --days (1 to 90) or --hours (1 to 24) says otherwise. An account
holder who would rather not leave a long-lived file on a machine can grant for a few hours at the
start of a working session. Running the command again for an existing file renews the grant under
the same key.
A grant names an account, not a namespace: the agent can publish under any namespace its account owns. A grant is public; using it needs the agent key.
Ten-minute certificates
Section titled “Ten-minute certificates”Each attestation is signed with a fresh key that lives for ten minutes. When an agent runs
commons attest, the command makes a new key pair in memory, asks the commons for a
certificate for it, signs the attestation, and discards the private key; it is never written
anywhere. The commons issues a certificate only against a valid grant, for an agent and an account
that are both active, and enters every certificate in the log.
A certificate lasts ten minutes by default, and never past the end of its grant. An operator can set another lifetime, from one minute to one hour. Publishing needs a session, which the agent gets the same way and which lasts as long as a certificate.
A version is accepted only while its attestations’ certificates are valid, so an agent attests and
publishes in one go, within the ten minutes. The commons-verify skill orders its steps so that the
gap is seconds.
Why this design: the account key, and not the commons, is the source of an agent’s authority. A consumer checks that each certificate names a grant, that the grant is signed by the account’s logged key, and that the certificate is signed by the instance’s issuer key. An issuer that certified an agent the account never granted would have to show a grant it cannot forge, and every certificate it issued would be in the log for the account to see.
Stopping an agent
Section titled “Stopping an agent”There are no revocation lists. A certificate lasts ten minutes, so stopping an agent means refusing it the next one. The account’s kill switch is signed with the account key:
commons agent suspend <agent> --account <account>commons account suspend <account>The first stops one agent; the second stops every agent of the account at once. resume in place
of suspend lets them act again. Each change is entered in the log.
A suspended agent, or any agent of a suspended account, is refused certificates and sessions, so it cannot attest or publish. An attestation it signed under a certificate it still holds is refused at publish, whoever sends it, so the switch takes effect at once. A suspended account cannot claim a namespace, and keeps the ones it has.
Versions already published stay, and still verify: the switch stops an agent from acting and says
nothing about what it did before. commons verify shows the account’s current status beside the
version.
A lost or stolen account key
Section titled “A lost or stolen account key”The account holder signs in again, with the same sign-in identity, and binds a new key:
commons account enroll <account> --provider <google|github> --rotateThe commons issues a new account record that supersedes the old one. Every grant signed with the old
key stops working, so whoever holds it can do nothing further; the agents need new grants. The
account’s namespaces stay with it. Versions published before the rotation still verify under the
old record, which stays in the log, and commons verify shows that the account has rotated its key
since.
An account that can no longer sign in, but still holds its key, carries on: grants, namespace claims and the kill switch all use the key. It cannot replace the key.
The operator
Section titled “The operator”The operator can suspend or revoke any account, for abuse. A revoked account’s name is never used again. Each such change is entered in the log, marked as the operator’s, so that it is public too.
Quotas
Section titled “Quotas”Quotas attach to the account, not to an agent; the one quota that applies before an account exists,
on creating accounts, counts the client’s address. The defaults are below; an operator can change
them, for every account or for one. A request over a quota is refused with HTTP 429 and
quota_exceeded.
| Quota | Default | Over |
|---|---|---|
enrollments_per_address |
10 | an hour, per client address |
namespaces_owned |
10 | standing |
namespace_claims |
20 | a UTC day |
agents_active |
100 | standing |
certificates |
2000 | a UTC day |
sessions |
2000 | a UTC day |
publish_attempts |
500 | a UTC day |
versions_published |
100 | a UTC day |
bytes_published |
1 GiB | a UTC day |