The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
ci(module-boundaries): support parent-scoped exceptions
Steven Enamakela1a1cf562512
diff --git a/scripts/ci/check-module-boundaries.mjs b/scripts/ci/check-module-boundaries.mjsindex 777d804c94..9a71215fa7 100644--- a/scripts/ci/check-module-boundaries.mjs+++ b/scripts/ci/check-module-boundaries.mjs@@ -101,7 +101,10 @@ export function auditGraph(metadata, roots, policy, contract = null) {isImplementation(name, policy) || sourceMismatch;if (forbidden) {const scope = contract ?? 'hosts';- const exemption = policy.exceptions.find(item => item.scope === scope && item.package === name);+ const parent = path.length > 1 ? packages.get(path.at(-2)).name : null;+ const exemption = policy.exceptions.find(item =>+ item.scope === scope && item.package === name &&+ (!item.parent || item.parent === parent));const finding = { scope, package: name, path: path.map(id => packages.get(id).name) };(exemption ? exceptions : violations).push(finding);// Contract exceptions pin the first unsafe dependency. Its implementation@@ -250,7 +253,8 @@ export function validatePolicy(policy) {const seen = new Set();for (const item of policy.exceptions) {const key = `${item.scope}:${item.package}`;- if (!item.reason?.trim() || !item.package || !item.scope || seen.has(key)) {+ if (!item.reason?.trim() || !item.package || !item.scope ||+ (item.parent !== undefined && !item.parent) || seen.has(key)) {throw new Error(`invalid or duplicate exception ${key}`);}if (item.scope === 'hosts' ? !isImplementation(item.package, policy) :diff --git a/scripts/ci/module-boundaries.json b/scripts/ci/module-boundaries.jsonindex 9c158feaf0..97fe5e7bb1 100644--- a/scripts/ci/module-boundaries.json+++ b/scripts/ci/module-boundaries.json@@ -160,6 +160,7 @@{"scope": "hosts","package": "tinyflows",+ "parent": "openhuman","reason": "OpenHuman still uses TinyFlows graph types and compatibility helpers in the flows and run projection adapters while its implementation remains behind tinyflows-bus. Moving the remaining adapter surface and legacy import path is part of the openhuman core shrink tracked in #7390 (including the cron importer decision in #8055)."}],