fix(pi-workflow): ignore config files in UI path detection

This commit is contained in:
jb
2026-08-26 22:25:43 -04:00
parent 51eace1fa8
commit 343703611c
2 changed files with 36 additions and 1 deletions
+17
View File
@@ -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",