Skip to content

v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 15:35
e78b458

Added

  • Per-operation credentials in the API description. openapi/agentic-auth.json now
    declares, for every operation, which token it accepts (adminToken, auditToken,
    enrollToken, consentToken, humanIdToken, hopToken), and security: [] on the
    public ones. The declaration is generated from the checks each route runs, and a test
    holds the two together.
  • Admin actions name the person who took them. Ratify, revoke (and, below, reject)
    accept an optional Agentic-Auth-Acting-Admin: <issuer>|<subject>|<display name> header
    when made with the admin token. The record keeps the display name in ratified_by /
    revoked_by and the issuer|subject in the new *_by_subject fields; without the header it
    says admin, as before. The header attributes and never authorises; with any other token it
    is ignored, logged without its value, and counted in agentic_auth_acting_admin_ignored.
    CLI: --acting-admin (or AGENTIC_AUTH_ACTING_ADMIN) on sandbox ratify and
    identity revoke. SDK: AgenticAuthClient(..., acting_admin=...), and
    admin.ratify_proposal().
  • A gap-free audit feed. GET /v1/audit/decisions/feed?after=start|now|<position> reads
    the decision log forward, oldest first. A row is served only once every transaction older
    than it has finished, so a reader that resumes from the last position it saw never skips a
    row that committed late: insertion order (seq) and commit order can differ, and a seq
    cursor would miss those rows. Every audit row now carries seq and an opaque
    feed_position. CLI: agentic-auth audit tail [--after ...] [--follow], which prints the
    resume position to stderr on exit. SDK: audit.feed() and audit.tail(), an async iterator
    with a .position to persist. Needs PostgreSQL 13 or later; the control plane refuses to
    start on an older server. The newest rows appear once the oldest open transaction in the
    database finishes, so set idle_in_transaction_session_timeout to keep a forgotten session
    from holding the feed back.
  • Reject a cold-start proposal. POST /v1/agents/{id}/proposed-manifest/reject with
    {run_id, note} (the note is required) turns a proposal down. It never becomes a manifest:
    the agent keeps whatever it had, a new sandbox run can propose again, and the proposal stays
    on record with who, when and why. Allowed for a revoked agent. Counted in
    agentic_auth_proposals_rejected. CLI: agentic-auth sandbox reject. SDK:
    admin.reject_proposal().
  • Every proposal, across agents. GET /v1/proposed-manifests?status=proposed|ratified|rejected|any
    lists cold-start proposals newest first with who decided each and the note. The audit-reader
    token is enough. CLI: agentic-auth sandbox proposals. SDK: audit.proposals().
  • See which step-up challenges are waiting. GET /v1/consent/step-up?status=pending|approved|declined|expired|any
    lists challenges newest first with their session, requested data class, target, reason,
    lifetime, and who answered. The audit-reader token is enough. It never includes the
    challenge id, which is what completes a challenge, nor anything derived from it, and there
    is still no operator route that decides one. Backed by a new append-only table,
    step_up_challenges (migration 0012); challenges raised before 0.5.0 are not listed, though
    their answers are. CLI: agentic-auth consent step-ups. SDK: audit.step_ups().
  • More audit filters. target, data_class and policy_version (exact matches, combinable
    with every existing filter) on GET /v1/audit/decisions and the feed. CLI: --target,
    --data-class, --policy-version on audit tail. SDK: the same keywords.
  • Audit summary. GET /v1/audit/summary?since=&until= returns decisions, denials and
    denials by reason for a window of at most 90 days, counted by the database rather than by
    paging. CLI: agentic-auth audit summary. SDK: audit.summary().
  • Migration 0013 adds indexes for the filters and a covering index for the summary, built with
    CREATE INDEX CONCURRENTLY so a large audit log stays writable; it replaces the plain ts
    index.
  • Ratify now keeps the optional note it always accepted, returned as note and on the
    proposal read as decision_note.

Changed

  • The API description no longer carries a single global bearerAuth requirement; each
    operation states its own.
  • A second decision on a cold-start proposal is refused with 409 proposal_already_decided
    (was 409 already_ratified), and details names who decided it, when, and how. The decision
    is now a single conditional update, so two concurrent ratifies can no longer both succeed.
  • Ratifying the proposal of a revoked agent is refused with 409 agent_revoked.

Fixed

  • GET /v1/agents failed with a 500 when any agent's newest manifest row was a pending
    cold-start proposal: latest_status now allows proposed.
  • GET /v1/agents/{id}/proposed-manifest reports the proposal's real status (proposed,
    ratified or rejected; it always said proposed) and who decided it.
  • Embedded stores created by 0.4.x are refused, as with 0.4.0's upgrade: 0.5.0 adds columns
    that creating missing tables cannot add. Re-create the store (agentic-auth embedded stores
    are for development and testing); server deployments migrate with alembic upgrade head.