Documentation / Quality and governance

The .ai folder

What Yuli stores inside your project, what is versioned with the team and what stays only on your machine.

On this page

In each project's .ai/ folder, Yuli stores the quality contract, missions, memory, rules and its working data. Part of it is shared with the team through Git; part of it is local and never pushed.

Yuli never edits your .gitignore. Whatever must stay out of Git is added to .git/info/exclude, which is local to your copy of the repository.

What stays out of Git

Yuli adds these lines to .git/info/exclude:

text
.yuli/
**/.ai/codebase/
**/.ai/state/

Structure

text
.ai/
├── contract.json          quality contract
├── quality.json           measurement settings and assumptions
├── memory/                project memory
├── rules/                 team rules and learned rules
├── missions/              agent missions
├── state/                 working data (local)
├── codebase/              code index (local)
├── requirements/          requirements traceability
├── design/                Web Studio design system
├── web/                   preview mocks and contracts
├── glossary.json          domain glossary
├── team.json              team configuration
├── devops.json            CI/CD connections
└── compound.yaml          Compound definition

Versioned files

PathContents
contract.jsonThe quality contract. It is a protected path: an agent can't edit it.
quality.jsonSettings for the Measurement phase and estimation assumptions. Optional.
memory/memory.json and MEMORY.md: what the agent must remember about the project.
rules/Team rules in *.md and learned.md with the learned rules.
glossary.jsonDomain glossary, editable from the Governance Center.
team.jsonShared team settings.
devops.jsonThe project's CI/CD connections.
compound.yamlServices that Compound starts in Web Studio.
requirements/traceability.jsonRule ↔ test traceability.
design/system.jsonWeb Studio design system (tokens).
web/mocks.json and web/contracts/API simulator rules and contracts.

Local folders

state/

Working data that only makes sense on your machine. It is never pushed.

PathContents
state/quality/versions.jsonFigures for the current version and for N−1.
state/quality/history.jsonlA short series of numbers (up to 30 versions).
state/quality/agent.jsonlStatistics about the agent itself.
state/contract-audit.jsonlAudit trail of every change to the contract.
state/deployments.jsonlDeployments recorded for DORA.
state/reviews.jsonlIndependent reviews.
state/agent-cost.jsonlAgent cost.

codebase/

The code intelligence index: code_intelligence.db, a SQLite database with the symbol graph. It regenerates itself; you can delete it without losing anything.

Missions

Each agent mission lives in missions/<conversación>/ with two files:

  • mission.json: original request, requirements, acceptance criteria, decisions, assumptions, plan, files touched and handoff point.
  • PLAN.md: the human-readable plan.

See Missions and phases.

Outside the project

Personal data doesn't live in .ai/. Your settings, your own prompts, skills and hooks, and the chat history are in your user's Yuli configuration folder. On Windows:

FolderWhat it stores
%APPDATA%\.yulicodeSettings, prompts, your own skills, hooks and chat history.
%LOCALAPPDATA%\.yulicodeRuntimes, indexes, caches and logs. Safe to delete.

Documents the agent writes

Outside .ai/, the agent only writes documents when appropriate:

PathWhen
docs/quality/reporte-calidad.mdWhen a quality version is recorded.
docs/sistema/Only if you ask it to document the system.
docs/architecture/ADRs, threat model and C4, from the Governance Center.