fix(pi-workflow): ignore config files in UI path detection
This commit is contained in:
@@ -76,6 +76,23 @@ test("backend workflow terminology does not imply a UI prototype", () => {
|
||||
assert.equal(result.impact, "none");
|
||||
});
|
||||
|
||||
test("configuration files named settings do not imply a UI prototype", () => {
|
||||
const result = enforceUiImpact({
|
||||
plannerImpact: "none",
|
||||
plannerEvidence: ["Configuration inventory only"],
|
||||
affectedSurfaces: [],
|
||||
facts: facts({
|
||||
candidatePaths: [
|
||||
"/home/user/.pi/agent/settings.json",
|
||||
"config/settings.yaml",
|
||||
],
|
||||
tags: ["configuration", "security"],
|
||||
}),
|
||||
});
|
||||
assert.equal(result.impact, "none");
|
||||
assert.equal(result.objectiveImpact, "none");
|
||||
});
|
||||
|
||||
test("generic frontend evidence does not inflate a minor change", () => {
|
||||
const result = enforceUiImpact({
|
||||
plannerImpact: "minor",
|
||||
|
||||
Reference in New Issue
Block a user