Tickets were minted only in-process, by the backend that renders a page for an authenticated person. ontoref and provisioning want agents and scripts to obtain tickets themselves, for answers the backend gives directly (JSON once per ticket) and possibly for links. The only store is redb, which one process locks, so a separate mint command cannot run beside a live backend; and whoever asks for a ticket must be authenticated by the consumer, whose notion of identity openbyname must not acquire.
openbyname-ticket (feature axum) offers issue_router(tickets, issuer): POST /issue with the same body as /redeem mints a ticket for the claim it names and answers {ticket, expires, link}. The consumer implements the trait Issuer — authenticate(headers) returns an opaque subject or none (401), allows(subject, claim) decides the policy (403) — and the route authenticates before it reads the body. Issuing happens inside the backend process that owns the store. openbyname decides neither who a subject is nor which claims it may hold.
POST /issue MUST answer 401 to an unauthenticated request whatever its body, 403 to a claim the Issuer does not allow, and mint nothing in either case.
A CLI that mints from the backend's settings.
Rejected: redb's lock makes it fail while the backend runs; and it would authenticate by file access alone, which is no policy.
Each consumer writes its own issuing endpoint on Tickets::mint.
Rejected: The same order (authenticate before reading, 401/403/400, mint off the runtime) repeated per consumer, and the same mistakes with it — a cookie as credential first among them.
openbyname defines subjects and roles (agent, person, operator) and their allowed actions.
Rejected: Collapses generic-tool-vs-first-consumer: identity and policy are what each consumer means by them, and the ticket scope stays opaque strings.