diff --git a/crates/AGENTS.md b/crates/AGENTS.md index fa92c9b93..f6fc71da3 100644 --- a/crates/AGENTS.md +++ b/crates/AGENTS.md @@ -16,6 +16,12 @@ dependency, portability, testing, or ownership boundary. Keep a module when the proposed boundary only relocates implementation or introduces a pass-through API. +- Keep capability crates independent by default. Compose peer capabilities in + the application and pass inputs or callbacks through the consumer's API. + Depend on another workspace crate for foundational mechanisms such as logging + and task primitives, or for a shared domain contract required to enforce the + same invariant. Keep tightly coupled rules together when separating them + would duplicate that contract or split its ownership. - Keep dependencies pointing toward domain and application contracts. Resolve app paths and read current settings at the application boundary. Pass in the required values, resources, or callbacks. For example,