From a0e72fbbf05ea08013b3a55ea556004dd0501777 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Mon, 30 Nov 2026 18:33:44 +0800 Subject: [PATCH] docs(agents): define dependencies between capability crates --- crates/AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) 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,