Files
vinihcrosaandClaude Sonnet 4.6 d495d7b58d docs: consolidate all documentation under docs/ and enforce single-source rule
Migrate all docs scattered across hidden folders into docs/:
- .compozy/tasks/ → docs/planning/ (PRDs, tech specs, tasks, memory) and docs/adr/ (ADRs by phase)
- .specs/ → docs/specs/ (codebase, features, project specs)
- .docs/ → docs/legacy/ (legacy reference implementation docs)
- .discussions/ → docs/discussions/ (design discussions and open questions)

Delete .compozy/, .specs/, .docs/, and .discussions/.

Update AGENTS.md: add explicit docs/ location table, hard rule against hidden doc folders,
and new AI-assisted development section (context lazy loading, scope control, verification).

Update CLAUDE.md: fix .docs/ references to docs/legacy/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 01:09:54 -03:00

82 lines
3.3 KiB
Markdown

# Ymir — Estrutura Atual
## Diretório Raiz (atual)
```
/Users/viniciusrosa/Documents/GitHub/Ymir/
├── libs/ # 6 bounded contexts
│ ├── common/ # ymir_common (INTERFACE, headers only)
│ ├── physics/ # ymir_physics (STATIC, 14 .cpp + 23 headers)
│ ├── simulation/ # ymir_simulation (STATIC, 3 .cpp + 4 headers)
│ ├── world/ # ymir_world (STATIC, 6 .cpp + 9 headers)
│ ├── vessel/ # ymir_vessel (STATIC, 7 .cpp + 10 headers)
│ └── persistence/ # ymir_persistence (STATIC, 1 .cpp + 3 headers)
├── apps/ # Stubs (sem implementação)
│ ├── server/ # ymir_server_app (INTERFACE)
│ └── fast-time/ # ymir_fast_time_app (INTERFACE)
├── tests/ # 35 arquivos de teste, espelha libs/
├── docs/ # Architecture wiki + ADRs
├── cmake/ # Dependencies.cmake, CompilerWarnings.cmake
├── .docs/ # Legacy reference docs (não copiar)
├── .prds/ # Roadmap original (referência)
├── docker/ # Dockerfiles linux-x86_64
├── CMakeLists.txt # Root CMake
├── Makefile # Recipes Docker
└── docker-compose.yml
```
## Estrutura Planejada (pós-migração)
```
/Users/viniciusrosa/Documents/GitHub/Ymir/
├── core/ # C++ (movido de raiz)
│ ├── libs/ # 6 bounded contexts (inalterados)
│ ├── tests/ # Testes C++ (inalterados)
│ ├── cmake/ # CMake modules
│ ├── docs/
│ ├── CMakeLists.txt # Root CMake do core
│ └── Makefile # Build recipes (nativo + WASM)
├── apps/
│ ├── api/ # Node.js + Fastify
│ │ ├── src/
│ │ │ ├── routes/
│ │ │ ├── services/
│ │ │ ├── db/ # Drizzle schema + migrations
│ │ │ └── plugins/
│ │ ├── package.json
│ │ └── tsconfig.json
│ └── web/ # React + Vite
│ ├── src/
│ │ ├── components/
│ │ ├── stores/
│ │ ├── workers/ # simulation.worker.ts
│ │ └── lib/
│ ├── public/
│ │ └── wasm/ # ← artefatos WASM copiados aqui
│ ├── package.json
│ └── vite.config.ts
├── packages/
│ └── types/ # TypeBox schemas compartilhados
│ ├── src/
│ │ ├── vessel.ts
│ │ ├── scenario.ts
│ │ ├── simulation.ts
│ │ └── index.ts
│ └── package.json
├── .specs/ # Este diretório
├── .prds/ # Roadmap original (referência)
├── turbo.json
├── pnpm-workspace.yaml
└── package.json # Root workspace
```
## Contagem de Arquivos Atual
| Categoria | Quantidade |
|-----------|-----------|
| Headers C++ | 39 |
| Implementações C++ | 25 |
| Arquivos de teste | 35 |
| CMakeLists.txt | 9 |
| Total fontes | ~108 |