Skip to content

User, agent and subagent identity #438

Closed
5 of 5 issues completed
Closed

Description

@rdimitrov

User story

As an adopter, I want the harness to hold its own workload identity and the people using it to hold theirs, so that one deployment can serve many users and every action still traces back to a person.

Acceptance criteria

  • Caller identity: an auth interceptor validates a user's token and passes an Identity structure inwards. Sessions, snapshots, event replays are all keyed to the user identity. Schedules record their owner at create time
  • Authority as a runtime value: give a run a value saying what it may do — which tools, which paths, how much further it may delegate. Every spawn intersects it. Resume re-reads it and can only narrow.
  • Tenant isolation (after caller identity, off the critical path): one function decides who may touch what, and it runs where the object is used rather than at the API edge. Three paths bypass the edge:
  • Cancel and ApproveRun act on an in-memory run and return before touching storage, so a check bolted to the store never fires - the model's own inspect tools load sessions from inside engine/agent, gated on whether an id looks like the right family rather than on who owns it - the driver protocol serves the raw session and memory ports over the network with no Service in between
  • Issuer, infrastructure only (after the spike): stand up the trust domain, the signing path and the JWKS endpoint behind --identity-domain.
  • cert-manager csi-driver-spiffe as the easy pod-attestation path (SPIRE only if you need federation); install complexity is the bar. The ladder: self-issued, then csi-driver-spiffe, then SPIRE
  • Demo: confused deputy (attack, block, audit)
  • Demo: least-privilege subagent
  • Demo: budget breaker
  • Demo proposal, to be verified and spiked:
  • Run a issue triage skill on incoming issues. Verifies the agent can only fetch and comment on a single issue and read the repo checkout
  • A weekly attention-report skill that reads statistics from a project board and writes a single summary document

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. changed the title [-]Document security posture and land the gated identity slice[/-] [+]User, agent and subagent identity[/+] on Aug 6, 2026
  2. self-assigned this
    on Aug 10, 2026
  3. transferred this issue fromon Aug 10, 2026
  4. rdimitrov commented on Aug 11, 2026

    @rdimitrov
    MemberAuthor

    Parented under Outcome #3208 Mecatl stands on its own as a public project provisionally, so it isn't orphaned on the epic.

    Scope call needed before this is settled. Two questions for @jhrozek:

    1. Is this launch-blocking? If the public release needs caller identity, runtime authority and tenant isolation, it belongs here. If it's post-launch hardening, it should leave the epic and become ordinary backlog.
    2. Is this one story? As written it covers caller identity, authority as a runtime value, tenant isolation across three bypass paths, the issuer and JWKS endpoint, pod attestation, three demos, and a fourth demo proposal still to be verified. That reads like several stories, and possibly its own outcome — something along the lines of "the harness enforces who may do what."

    If it turns out to be launch scope, the likely shape is a fourth outcome on #2961 with these broken out beneath it.

  5. jhrozek commented on Aug 11, 2026

    @jhrozek
    Contributor

    Scope note on "which paths": a schedule fire is a fourth derivation point, and it is not a spawn.

    The authority-value criterion here says a run carries "a value saying what it may
    do — which tools, which paths, how much further it may delegate", and #371's
    slice enumerates "the three spawn seams". A scheduled fire is neither: it is a
    fresh top-level session minted in composition
    (internal/app/scheduler_fire.go:86, CreateSessionWithProfile(ctx, sched.Spec.Workspace, …)),
    not one of the delegation seams.

    So an implementation that intersects authority at Subagent / Parallel / Team can
    satisfy every criterion listed in #371 and #438 while leaving the schedule path
    open — the fire's filesystem root would still come from a model-authored field
    (ScheduleArgs.Workspace, engine/agent/scheduletool.go:64), unvalidated, and
    not bounded by the deployment's --workspace.

    Detail and the full code path are in a hazard comment on #373. Flagging it here
    only so "which paths" is read as covering the schedule seam too, and so the seam
    list is four rather than three.

    Provenance: established by reading code, not demonstrated end to end.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions