test(manifest): cover computed context declarations

This commit is contained in:
Mikael Hugo 2026-05-15 19:10:17 +02:00
parent 30f1cca984
commit ce169ddc22

View file

@ -25,3 +25,18 @@ test("unit_manifest_promptParts_when_legacy_boolean_shape_is_used_rejects_it", (
["promptParts must be an array of canonical part names"],
);
});
test("unit_manifest_computed_context_when_execution_or_project_planning_units_need_memory_declares_it", () => {
const expected = {
"execute-task": ["knowledge", "graph"],
"reactive-execute": ["knowledge", "graph"],
"discuss-project": ["knowledge", "graph"],
"discuss-requirements": ["knowledge", "graph"],
"research-project": ["knowledge", "graph"],
"workflow-preferences": ["knowledge"],
};
for (const [unitType, computed] of Object.entries(expected)) {
assert.deepEqual(resolveManifest(unitType).artifacts.computed, computed);
}
});