Expand description
Terminal run with secrets, stdin_secret and secret_files: a command
that gets Vault values without the agent ever holding them
(docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §7,
SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.3).
The agent names {ENV_NAME: entry} for the environment, one entry for stdin, and
{ENV_NAME: entry} for files whose path goes in ENV_NAME. srv checks who is
asking, asks the person (every window shows the entry, the agent, the command and
where it runs; “Always” is a grant per entry and agent), and only then reads the
value, straight into that one process. The returned Scrubber takes the values
back out of the output before it is published.
Structs§
- Injected 🔒
- What the command is given and what to take out of its output.
- Preapproved 🔒
- A rotation’s command, approved by the person with the rotation (
Vaultrotate): exactly these secrets (NEW_SECRETnaming the entry’s pending value,OLD_SECRETits current one). Only srv’s rotation makes one, and hands it toinjectdirectly; nothing an agent sends can. - Wanted 🔒
- What a command asks to be given, as the request names it.
Enums§
- Delivery 🔒
- Where one value goes.
Constants§
- ANSWER_
WAIT 🔒 - Under the 150 s the Terminal tool waits for the job to be created.
- DID_
NOT_ 🔒RUN - MAX_
COMMAND 🔒 - The longest command line, and working directory, the prompt shows whole. A longer one is refused rather than shown cut: the person approves what runs.
- MAX_CWD 🔒
- MOST 🔒
- Most entries one command may be given.
Functions§
- agent_
of 🔒 - The agent asking, proved by its own signature: a prompt names them, and what they make or are allowed is theirs alone.
- ask 🔒
- Asks the person, in the agent’s pane
agent_block_id, and waits for how it ended: srv decides on silence afterANSWER_WAITat most. - ask_all 🔒
- Asks every question at once and keeps the “Always” grants. The labels of the entries that went ahead with nobody answering, or the first that didn’t go ahead, and how: the rest are withdrawn then.
- clip 🔒
- command_
request 🔒 - The question for the person about running
command(cmd, cwd) with the parts offirst’s entry thatwaiting_onnames, and what the agent says it is for. - deliveries 🔒
- Every value the request names, checked: names usable, none twice, at most
MOST. - env_
name_ 🔒ok - grant_
key 🔒 - The key a command grant is stored under, in the grants table that web forms
use for sites:
command:<agent>:<part>can’t be a site’s origin. It is for one part of an entry: a card’s expiry is not its number. - inject 🔒
- Resolves, asks for and reads the entries a command was given.
Nonewhen it was given none. - known_
value 🔒 - A value handed to a command, to be cleaned out of its output. It is never written into a transcript either.
- plan_
capture 🔒 - Checks a command’s
capturebefore it runs (spec §4.2 of the generate spec). Nobody is asked: a rule that makes a new entry holds nothing of the person’s yet, and one that replaces an entry’s value keeps the old one 7 days and leaves a history line (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md), within the agent’s pace.Nonewhen there is no capture. The labels returned are the entries nobody was asked about and that went ahead: always none now, kept for the shape every caller reads. - refuse 🔒
- refused 🔒
- sorted 🔒