gunk-dev/the-valley

bd-353c59d-agent-runs-push-as-the-operator.md

source89496f97a023main's published tip history
2.5 KiB · Rendered
1---
2type: bug
3id: bd-353c59d
4status: open
5title: "Agent pushes using a human key inherit that human's permissions"
6created: 2026-08-07
7source: rejection test on the pilot host, 2026-08-07
8---
9
10# Agent pushes using a human key inherit that human's permissions
11
12An agent run that uses the operator's SSH key authenticates as the operator. The receive hook sees
13the principal attached to that key and cannot distinguish the agent's push from another use of the
14same credential.
15
16This matters wherever a permission is intended to distinguish human action from automated work. The
17fact that a human started the run does not mean the human reviewed every action the run later takes.
18
19## Protected refs and remaining scope
20
21The current classic-laddie declaration permits only the integrator to write the protected `main`
22refs for the-valley and Qinling. Using the operator's key therefore no longer supplies the direct
23protected-ref writer grant in that configuration.
24
25The remaining issue is inherited credential authority. A run with access to a human's key can
26exercise whatever other permissions that key has. The intended delegated scope of the run is not
27established by SSH authentication alone.
28
29A rejection test must control the authenticated identity and its configured grants. Otherwise it may
30test whether the operator is allowed to act while appearing to test whether an agent is constrained.
31
32## Required behavior
33
34Before relying on unattended or delegated agent work, the system needs to enforce the run's
35permitted actions independently of the human credential it can reach.
36
37The current identity direction gives runs no key of their own.
38[[ida-a8243d2]](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md) instead describes
39recorded delegation that can narrow at each hop, while
40[[dcr-b87f6e8]](../decisions/dcr-b87f6e8-identity-is-a-governed-registry.md) defines registered
41machine and service principals.
42
43Possible implementations include a machine principal with restricted grants, an actuator enforcing
44the run's delegation, or a contribution path that needs no push credential.
45[[ida-f1b39e8]](../ideas/ida-f1b39e8-outbound-effects-pass-through-an-actuator.md) and
46[[ida-0f580e2]](../ideas/ida-0f580e2-contributors-without-write-access.md) explore the latter
47approaches.
48
49[[ida-b7025b5]](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md) describes the separate
50physical-presence requirement for human approval. This bug remains open pending a complete execution
51and credential boundary.