Fix MVP audit evidence pipeline
This commit is contained in:
@@ -182,16 +182,21 @@ test("action calls generateObject with required schemas", () => {
|
||||
}
|
||||
});
|
||||
|
||||
test("action loads v3 skill registry from v2 source for evidence input", () => {
|
||||
test("action loads v3 skill registry from bundled MVP source for evidence input", () => {
|
||||
assert.equal(
|
||||
hasPattern(actionSource, /import\s*{[\s\S]*loadSkillsRegistry[\s\S]*}\s*from\s*["']\.\.\/lib\/skills-registry["']/),
|
||||
hasPattern(actionSource, /import\s*{[\s\S]*loadLocalAuditSkillRegistry[\s\S]*}\s*from\s*["']\.\.\/lib\/ai\/local-audit-skill-registry["']/),
|
||||
true,
|
||||
"Action should import loadSkillsRegistry from the shared registry parser.",
|
||||
"Action should import the bundled MVP skill registry loader.",
|
||||
);
|
||||
assert.equal(
|
||||
hasPattern(actionSource, /loadSkillsRegistry\(\s*(?:join\()?[\s\S]*v2_elemente[\s\S]*skills\.md[\s\S]*\)/),
|
||||
hasPattern(actionSource, /loadLocalAuditSkillRegistry\(\s*\)/),
|
||||
true,
|
||||
"Action should load the v3 registry from v2_elemente/skills.md.",
|
||||
"Action should load the v3 registry from a bundled MVP module.",
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
actionSource,
|
||||
/v2_elemente|process\.cwd\(\)|loadSkillsRegistry\(|node:path/,
|
||||
"Action should not read v2 reference files or filesystem paths at runtime.",
|
||||
);
|
||||
assert.equal(
|
||||
hasPattern(actionSource, /skillRegistry:\s*\[\s*\]/),
|
||||
|
||||
Reference in New Issue
Block a user