<!-- docs/decisiones/0004-boveda-proyecto.md at fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92 · https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/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.
