Repository navigation
Description
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
Collapse Sub-issuesSub-issues
Loading 5 sub-issues
Activity
[-]Document security posture and land the gated identity slice[/-][+]User, agent and subagent identity[/+]rdimitrov commentedon Aug 11, 2026
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:
If it turns out to be launch scope, the likely shape is a fourth outcome on #2961 with these broken out beneath it.
jhrozek commentedon Aug 11, 2026
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, andnot 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.