Skip to content

Console API: the security and act scopes, with actions over the API and auditing #1756

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Parent

#1753 (Spec: the Console API). Governing decision: ADR 0026.

What to build

The security and act scopes gate what they're meant to gate, and the Console's actions work over the API with an audit trail.

  • With read, a Security run shows its row and stages, but its details and findings (the Security page, its Session traces, finding records) need security.
  • With act, a client can Stop a live Command, make a Dismissal and Undo one, enter Scores, settle a Bug origin, approve a proposed Eval task, and set the Theme and hidden sections. Each is a POST under /api/v1 that behaves exactly like its CLI twin and returns its --json.
  • An Other-account Command stays refused for Stop and Dismissal, with the owning account named, as the CLI refuses it.
  • Every API call that changes anything appends to the Console log: the token holder (or session address), the endpoint and the outcome. Reads aren't logged.
  • The Activity log line for a Stop or Dismissal made with a token reads "by token <holder>", alongside today's CLI and Console wording.

Acceptance criteria

  • An HTTP test: a read token gets a Security run's row but a 403 naming security for its details, and a security token gets them.
  • An HTTP test: an act token stops a live fixture Command and makes and undoes a Dismissal. A read token gets a 403 naming act for each.
  • Stop or Dismissal of an Other-account Command through the API is refused, naming the account, and nothing in that account's logs changes.
  • The Console log records each change with the holder and the outcome, and records no reads.
  • The Activity log names "by token <holder>" for API Stops and Dismissals.
  • The eval judgments and look settings work through the API with act, with JSON equal to their CLI twins.
  • docs/guide.md lists which scope each kind of call needs.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 5, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1789, merged into issue-1753 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions