gnomondevelopersv0.12.0
Index

Procedure 02 / Authentication

Bearer capability.

A token is a scoped capability bound to one instance. It is not an OAuth identity, a session cookie, or a password. The server verifies it without a session lookup.

The header

Every route except /health requires a bearer credential.

header
Authorization: Bearer gnm1.<claims>.<signature>

A missing, malformed, expired, revoked, or wrong-instance token is denied. The scheme name is case-insensitive; the token is not.

One protected call

request
curl -sS "$GNOMON_API_URL/status" -H "Authorization: Bearer $GNOMON_TOKEN"

Tiers

TierReachesNot implied
DEVELOPER/status, /instance, /account, engine routesRoster and security administration
OPERATOR/accounts, account lifecycle, security certificatesEngine routes

The tier rule is horizontal. An operator token is not a developer token and does not implicitly reach observation, query, emission, or derivation. Developer access is issued as a DEVELOPER account.

Failure status

StatusErrorMeaning
401malformedThe token envelope or claims did not parse.
401bad_signatureThe signature does not verify against the instance and epoch.
401wrong_instanceThe token was issued by another instance.
401unknown_accountThe account is not in this roster.
401account_inactiveThe account is suspended or revoked.
401stale_epochThe token predates the account's minimum epoch.
401expiredThe token is outside its issuance window.
403tier_mismatchThe token's tier is below the route's requirement.
403capability_deniedThe token's capability list excludes this route.

Capabilities

A token may carry an optional capability list. When the list is non-empty, the requested route must appear in it. An empty list does not add restrictions beyond the tier. Treat capabilities as a narrowing mechanism, not as a replacement for a separate account.

Lifecycle

Instance model

An instance is single-tenant. Accounts are access control over one shared substrate, not isolated memory partitions. Do not share one instance between unrelated projects.

Handling

Next: HTTP API for route contracts, or Errors & limits for retry behavior.