ADR-025: Access Tokens for Machine Access

Date: 2026-07-20 Status: Accepted Target: v0.30.0

Context

Auth is passkey-only. Handler.Middleware in server/auth/auth.go gates the API on the qntx_session cookie, which is HttpOnly and lives in an in-memory sync.Map. Scripts, plugins, and CI cannot authenticate.

Decision

Add a second auth path: access tokens, presented as Authorization: Bearer <token>.

Consequences