Repository navigation
Armed command runs: approve now, run once when conditions hold (plus device-approved sudo) #27549
Lasse-numerous
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Builds on #19586 (sending "Run in terminal" results back to the thread). This covers what comes after it: approving a command now so that it runs later, once conditions hold, and approving a command that needs
sudo.Problem
Agents often hand me commands that should run later, not now: "run the migration in the 02:00–04:00 window", "deploy once CI on this commit is green", "re-run the import after the previous run succeeds". Today I have to come back at the right time and click Run myself, or set up cron outside T3 Code, where the thread can't see it.
Agents also hand me commands that need
sudo. I copy those into a separate root shell, which is the least auditable path. The agent can't tell what happened, and nothing ties the run to what I approved.Proposal
Armed runs
expired. Its states addarmedanddisarmed, and the user can disarm it.afterandbeforewatch_command(Wake a thread when a command prints something (`watch_command`) #19879 / feat(server): agents can watch a command and wake on new output #22182) lands, it could later become an optional condition too, but only behind an explicit opt-in, because it runs code to decide.Device-approved elevation (design question)
I'd like an agent to be able to request a
sudoor root command, and for me to approve that exact command with a key on my device (passkey). I'm raising it as a question, not proposing a design, because it needs a new trust boundary:NOTAFTER, checked withvisudo, and removed after the run or when it expires.t3 service protect.Is this something you'd want in T3 Code at all, and if so, in roughly what shape?
Out of scope
Questions for maintainers
All reactions