# `layout.wrong_folder`

Declaration is in the wrong folder.

Area 1, [Project layout and modules](../topics/project-layout-and-modules.md); not declinable; the next step is usually the agent's.

```jadpo
action complete_todo() -> Unit {}
```

```text
error: Action `complete_todo` is in `types/`
 --> domains/planning/types/complete_todo.jadpo:1:8
  |
1 | action complete_todo() -> Unit {}
  |        ^^^^^^^^^^^^^ belongs in `actions/`
  reason: `types/` holds types shared by several files in the domain; every action has its own file in `actions/`.
  next: Move `complete_todo` to `domains/planning/actions/complete_todo.jadpo` (agent)
  rule: layout.wrong_folder
  help: https://jadpo.dev/docs/errors/layout.wrong_folder

check failed: 1 error, 2 files
```
