<!-- docs/decisiones/0004-boveda-proyecto.md at 034e81b52d1b693c65ff95181cd555c6734bc8e8 · https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/docs/decisiones/0004-boveda-proyecto.md · status: stale -->

# 0004 · Vault = profile, project = scope; each with its own key

- Status: accepted
- Date: 2026-11-02

## Context
We need to separate Work from Personal and, on top of that, give an agent access to "the keys for this repo" without giving it the whole vault.

## Decision
There are two levels with their own key: **vault** (profile: Personal, Work) and **project** (a group inside the vault). Agents receive grants per project or per vault. A `klav.toml` in the repo links a directory to a project, and there `run` and the agents are scoped to it by default.

## Consequences
- Per-project scope is also enforced by cryptography.
- Moving an item between projects means rewrapping its item key.
