Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(module-boundaries): cover tracked tinyflows compatibility dependency

Steven Enamakelcc299dde7e27
diff --git a/scripts/__tests__/check-module-boundaries.test.mjs b/scripts/__tests__/check-module-boundaries.test.mjs
index ed3f2d1abc..2dab39748e 100644
--- a/scripts/__tests__/check-module-boundaries.test.mjs
+++ b/scripts/__tests__/check-module-boundaries.test.mjs
@@ -315,10 +315,10 @@ test('host boundary audit ignores writer features unified only by unrelated work
writeFileSync(join(harnessRoot, 'scripts', 'ci', 'module-boundaries.json'), JSON.stringify(policy));
// Workspace-wide metadata sees an opt-in test writer on tinyflows-import
- // as part of openhuman's unified normal feature graph, despite the core's
- // own scoped normal tree containing only the read-only importer.
+ // as part of openhuman's unified normal feature graph. The scoped core tree
+ // also carries its explicitly tracked TinyFlows compatibility dependency.
const unified = metadata({
- openhuman: [['tinyflows-import']],
+ openhuman: [['tinyflows-import'], ['tinyflows']],
'openhuman-cli': [['openhuman-rpc']],
'openhuman-tui': [['openhuman-rpc']],
'openhuman-rpc': [['openhuman-tinyhumans']],
@@ -332,7 +332,7 @@ test('host boundary audit ignores writer features unified only by unrelated work
],
});
const scoped = metadata({
- openhuman: [['tinyflows-import']],
+ openhuman: [['tinyflows-import'], ['tinyflows']],
'tinyflows-import': [['tinyflows-bus']],
});
const app = metadata({
@@ -340,7 +340,7 @@ test('host boundary audit ignores writer features unified only by unrelated work
'openhuman-rpc': [['openhuman-tinyhumans']],
'openhuman-tinyhumans': [['openhuman-embed']],
'openhuman-embed': [['openhuman']],
- openhuman: [['tinyflows-import']],
+ openhuman: [['tinyflows-import'], ['tinyflows']],
'tinyflows-import': [
['tinyflows'],
['tinyflows-catalog'],
@@ -353,8 +353,9 @@ test('host boundary audit ignores writer features unified only by unrelated work
'openhuman-tui': [['openhuman-rpc']],
openhuman: [],
});
- assert.equal(auditGraph(unified, ['openhuman'], strict).violations.length, 4);
- assert.deepEqual(auditGraph(scoped, ['openhuman'], strict).violations, []);
+ assert.equal(auditGraph(unified, ['openhuman'], strict).violations.length, 5);
+ assert.deepEqual(auditGraph(scoped, ['openhuman'], policy).violations, []);
+ assert.deepEqual(auditGraph(scoped, ['openhuman'], policy).exceptions.map(item => item.package), ['tinyflows']);
const manifestToContract = new Map(policy.contracts.map(item => [
resolve(harnessRoot, item.manifest), item.name,
]));
@@ -386,6 +387,7 @@ test('host boundary audit ignores writer features unified only by unrelated work
] : packageName === 'openhuman-cli' && defaultWriterEnabled && cargoArgs.includes('--features') ? [
'1tinyflows v0.8.28',
] : packageName === 'openhuman' ? [
+ '1tinyflows v0.8.28',
'1tinyflows-import v0.1.0',
`2tinyflows-bus v0.1.0 (${tinyflowsBus})`,
] : []),