Skip to content

arquitectura-guard.mjs

  • Event: PreToolUse Edit/Write
  • Type: wall: blocks the action and says why (exits with code 2)

Only if the project DECLARES its architecture (senzu/arquitectura/capas.json, from /adopt or /plan). BLOCKS what it introduces: a layer that uses one it may not (domain with framework or ORM, application with HTTP), a DDD context that reaches inside another, and the controller that talks to the database. WARNS about the request array passed instead of a DTO and new code outside the declared folders. Real imports: use + PSR-4, import + tsconfig aliases, Python modules. Cannot be turned off.

See the code of arquitectura-guard.mjs on GitHub