docs(agents): define dependencies between capability crates

This commit is contained in:
Tunglies
2026-11-30 18:44:12 +08:00
parent 2c8b532f68
commit a0e72fbbf0
+6
View File
@@ -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,