Skip to content

Per-session posture configuration #1784

Open

Description

@kantord

Problem

Security posture (strict < trusted < auto < yolo, plus the related knobs it derives —
allow-all-tools, substitution loosening, project-trust) is currently operator-tier only,
resolved once in composition (internal/app/posture.go) and never selectable per
session or per caller.

ADR 0350 — Session-scoped agent identity
adds a session-level agent_id that binds a session to a named AgentDef (tool
allowlist, model, run limits, PermissionMode), but it explicitly and deliberately does
not touch posture — it only resolves the existing session-level PermissionMode
enum (plan/default/acceptEdits), tighten-only against the def's configured value.
The ADR names this as a scoped-out non-goal in three places (Context, Decision,
Consequences), consistent with PR #1730 / draft ADR 0351's position that
composition-bearing tiers stay operator-only and non-session-selectable.

No open issue currently tracks the question of whether/how posture itself should become
session-configurable. The closest existing issue, #359 ("posture: scheduler-driven runs
need project-trust decoupled from the posture ladder"), is closed and addresses a
different axis (project-trust for scheduled runs, not per-session posture selection by a
caller).

Why this might matter

A deployment with multiple agent_id-bound sessions (e.g. the Slack bot scenario from
#1053/#1395) may eventually want different identities to run under different postures —
e.g. a low-trust public-facing identity pinned to strict, while an internal-tooling
identity runs at auto. Today that's only achievable by running separate deployments
per posture, since posture is a single value resolved once at app.Build time for the
whole server.

Scope (open questions, not yet decided)

  • Should posture become selectable at all below the operator tier, or does the "operator
    vouches for the whole deployment" security model make per-session posture a
    contradiction in terms (an untrusted caller choosing its own trust level)?
  • If it should be configurable, at what granularity — per AgentDef (frontmatter), per
    CreateSessionRequest, per deployment binding — and who is authorized to set it?
  • How would this interact with the tighten-only PermissionMode precedent ADR 0350
    establishes, and with PR plan(permissions): one named permission-mode vocabulary and two admission gates #1730 / draft ADR 0351's posture-is-operator-only position?

This issue is a placeholder to capture the question raised while reviewing ADR 0350 — it
intentionally makes no design decision.


Fully or partially written by an AI agent.

Activity

  1. changed the title [-]Should security posture ever be configurable below the operator tier (e.g. per session/agent_id)?[/-] [+]Per-session posture configuration[/+] on Sep 22, 2026
  2. added a commit that references this issue on Sep 22, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions