Skip to main content

Module shell_secrets

Module shell_secrets 

Source
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 (Vault rotate): exactly these secrets (NEW_SECRET naming the entry’s pending value, OLD_SECRET its current one). Only srv’s rotation makes one, and hands it to inject directly; 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 after ANSWER_WAIT at 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 of first’s entry that waiting_on names, 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. None when 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 capture before 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. None when 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 🔒

Type Aliases§

Question 🔒
One entry’s question for a command: the entry, the parts of it asked for, the request and its headline.
Refusal 🔒