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