Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13103,6 +13103,80 @@ poster loaded before the video plays, then the video playing from its byte range
seeking, a 390 px wide screen, no page errors; and with `public` the visitors'
Environment still without Trezor (its route shows Obecné).

### F53 addendum of 2026-10-18: the agents' text follows `lazurio vault status`

**Asked for in issue #470 (opened 2026-10-16), for plan DEV-6631.** On an Organization's
work Environment whose Machine handover names no vault (its network has no Lazurio
Vaultwarden yet), `lazurio vault status` answers "Not available: this Environment has
no vault yet: its Machine handover names none." and `lazurio vault env` refuses, while
the Folder's `AGENTS.md` called the enabled tool `bitwarden` "signed in to this
Environment's own vault". The person's switch "Používají agenti" may be on where there
is no vault, and the line said the same on every Environment, whatever its vault's
state.

1. **The text claims no state.** The catalog entry's `purpose` (its line in `AGENTS.md`)
no longer says that the CLI is signed in. It says what the tool is for, that only
`lazurio vault status` says whether there is a vault here and in which state, and
what each answer means, by the codes the status reports: `connected`, the
Environment's vault, which its agents use on their own; no vault here only for
`unsupported` with the reason `no-vault` (not yet: the handover names none) or
`no-tailnet` (on purpose: a public Organization's Environment, the addendum of
2026-10-17); any other answer, `unsupported` for another reason too, proves no
absence: the vault may wait for a person or not work now, and the agent follows what
the status says, its reason included (review of #492: an unreadable handover says
nothing about a vault either way, and a personal Environment whose record of the
Bitwarden its person connected cannot be read has a vault). Until the vault is
connected, secrets go where the Operator says.
2. **The steps follow the answer.** The `usage` (`manual/this-machine.md`) starts work
with `eval "$(lazurio vault env)"` only with a connected vault; with any other answer
an agent uses neither `bw` nor `lazurio vault env` and, when it needs a secret, tells
the Operator what the status says and asks where the secret belongs. A locked vault
(`connected` with `locked`) is unlocked by running `lazurio vault env` again. The
rest of the text is unchanged: the paths a, b and c, and the Publication rule.
3. **Nothing new is recorded.** The generated Folder changes only by an explicit change
(F14), and every change renders it again from what it records, while the vault's
state is live. So the Folder records no vault state, and the handover's `vault`
member stays out of the Folder's binding ([machine
handover](machine-handover.md#the-environments-own-vault-decision-f53)). `lazurio
vault status` stays the one source of truth; the CLI, the Tools row and the vault
core are unchanged. The generated bytes change on every Remote Environment where
`bitwarden` is on: the template revision is `base-instructions-57`.

| Alternative | Trade-off / disposition |
| --- | --- |
| Record in the Folder's binding whether the handover names a vault, and render "there is none" there | A second, recorded copy of a live handover fact, which the handover contract keeps out of the binding. A refresh that renders the same bytes records nothing (`unchanged`), so on an Environment with the switch off the fact recorded before its network got a Vaultwarden would stay, and the setup that turns the switch on once the vault is ready would render "none" exactly then; and a 0197 pilot whose handover names no vault is connected. Rejected |
| Render the Folder again when the vault's state changes | A Folder write for every connection, lock and unlock, against F14's explicit changes; a locked session is connected again at the next `lazurio vault env`. Rejected |
| Leave the tool out of the Folder where there is no vault | The person's switch decides what agents are told (F18), and the Folder cannot know where there is none (above). Rejected |
| Turn the switch off where there is no vault | The product would write the person's choice. Rejected |

**Honest limits.** The line is the same on every Remote Environment: it says what each
answer means, and an agent learns which one holds only from `lazurio vault status`, as
the text tells it to. `connected`, `unsupported`, `no-vault`, `no-tailnet` and `locked`
are the codes `--json` prints; the plain answer says "Connected", "Not available" and
"(locked: …)". `unsupported` for another reason (an unreadable handover, Folder or
connection record, another operator) is not read as "no vault": the line sends the
agent to the status's reason, which for a missing handover or this computer says
itself that there is none. The setup prompt of `bitwarden` (`lazurio tools prompt
bitwarden`) is not part of the Folder and is unchanged.

Verified by `tests/folder-vault-line.test.ts`: on real files, the production
composition of `lazurio vault` answers `unsupported` / `no-vault` for a work Environment
on a tailnet whose handover names no vault (issue #470's), `no-tailnet` for a public
Organization's Environment and `needs-connection` for a personal Environment waiting for
its person, `lazurio vault env` refuses each, and the generated `AGENTS.md` and
`manual/this-machine.md` of the same handover say, in Czech and English, what that
answer means and no longer that the vault is signed in; the same composition answers
`handover-unreadable` once the handover no longer reads and `connection-unreadable` for
a personal Environment whose connection record does not read, neither says "no
vault", and the line names `unsupported` only in the absence tied to `no-vault` and
`no-tailnet` and in the rule that sends any other reason to the status; over the fake
vault, the line follows `not-set-up`, `not-allowed`, `connected` (`lazurio vault env`
hands out the session) and `connected` with `locked` (`lazurio vault env` unlocks it
again); and no fixture's Folder claims a signed-in vault or an absence for another
reason. Against the text before, all four tests fail.
`tests/folder-template-revision.test.ts` pins `base-instructions-57`; the snapshots
change only in their revision line.

## F54 — An agent's secret request: a person fills it in the Launchpad, the Environment saves it into its own vault

> **Amended on 2026-10-16 by root decision 0203 point 7 ([F53 amendment of
Expand Down
16 changes: 14 additions & 2 deletions docs/environment-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,20 @@ The agents' texts are the catalog entry's (`purpose` in `AGENTS.md`, `usage` in
`manual/this-machine.md`) and the manual's Secrets (`manual/working-here.md`),
template revision `base-instructions-50` (since `base-instructions-55` they name a
personal Environment's own Bitwarden and say that only its person connects it, and
that an agent never asks for that account's credentials): read `lazurio vault status` again before
saying anything about the vault, start with `eval "$(lazurio vault env)"`, never `bw
that an agent never asks for that account's credentials). Since `base-instructions-57`
they claim no state of the vault ([F53's addendum of
2026-10-18](decisions.md#f53-addendum-of-2026-10-18-the-agents-text-follows-lazurio-vault-status),
issue #470): only `lazurio vault status` says whether there is one and in which
state, `connected` is the vault its agents use on their own, only `unsupported` with
`no-vault` (the handover names none yet) or `no-tailnet` (a public Organization's
Environment, which has none on purpose) is none here, any other answer, `unsupported`
for another reason too, proves no absence and the agent follows what the status
says, its reason included, and until the vault is connected secrets go where the
Operator says.
Then: read `lazurio vault status` again before saying anything about the vault, with
any answer but `connected` use neither `bw` nor `lazurio vault env`, with a connected
vault start with `eval "$(lazurio vault env)"` and run it again when `bw` reports the
vault locked (`connected` with `locked`), never `bw
login`, `unlock`, `lock`, `logout` or `bw config`, `bw sync` before reading, values
straight into commands and never printed, nothing in the account's own vault, and an
externally visible write a Publication. A secret is never asked for in chat or taken
Expand Down
2 changes: 1 addition & 1 deletion src/folder/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { type AgentVoice, parseAgentVoice, voiceSection } from "./voice";
// future persisted preference schemas. Every change of the generated bytes
// moves it to the next number; tests/folder-template-revision.test.ts pins the
// rendered digest of the current one (decision F14, addendum 2026-10-03).
export const instructionTemplateRevision = "base-instructions-56";
export const instructionTemplateRevision = "base-instructions-57";

// Template revisions are ordered by their number. A Folder rendered by an
// older revision is re-rendered by the next change of the generated Folder
Expand Down
Loading
Loading