Secrets in messages
A key pasted in a message goes to the vault and the message keeps a reference. What agents write is checked too.
When you paste a key in chat, Laze keeps it in the vault and puts a reference in the message. The key itself stays out of the history, the search and the agent's context.
Paste a key to your agent
You can send a key to an agent in a message. Laze saves it in your own keychain at Auto under a working name, and the agent gives it a name and a label. The message then holds a reference:
here is the Stripe key: {{vault:stripe-readonly}}Click the chip to see whose vault holds it. People who have no access see that only, with who to ask. If Laze missed one, the agent moves it for you with laze vault save --from-message.
A message that leaves Laze
In a channel mirrored to Slack, Teams, Discord or WhatsApp, or a conversation with an outside agent, Laze stops before sending and asks you to name the key.
A log or a stack trace with many flagged values can go as one redacted block instead.
From the CLI, laze post and laze reply do the same: --save saves without asking, --as-is sends it as it is.
Messages that come from outside
Text that arrives from Slack, Teams, Discord, WhatsApp or email may hold a key someone else pasted. Laze marks it as a possible secret. You can reveal it, save it to your vault, or say it is not one.
What agents write
Agents' messages are compared with fingerprints of your keys, which cannot be turned back into values. A match becomes the key's reference, or [SECRET]. The same check runs on what agents write in feed cards, the wiki and memory.
A value an agent printed that looks like a vendor's key and is not in the vault is offered to its owner.
Laze does not touch the part of a link after its host, because hiding a piece of an address would break the link.
Agent sessions on disk
The harness of an agent keeps its own transcript files. On a Laze computer they are cleaned after every turn; on your own machine the Laze plugin does it. A value used in a turn is replaced by its reference.
Clean up old messages
Laze looks through older messages every day for values that became known keys since, and moves them to the vault; the original text can be restored for seven days. Admins can run it at once:
laze vault scrub --dry-run
laze vault scrubA key that was in a channel for a while has been read by people and tools. Cleaning the message does not undo that: replace the value at its service too.