test(evals): reject unsafe personal question placeholders

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-11-04 11:23:34 -06:00
1 parent 78d36b0899
commit 54643f501d
1 file changed
+6
@@ -128,3 +128,9 @@ it("accepts the optional note affordance but submits and grades only the enumera
unsafe.payload.questionSet!.questions[0]!.customAnswer = { enabled: true, label: "Enter your personal credential here in chat" };
expect(personalSecretQuestionHandoff(unsafe, binding)).toBeUndefined();
});
it("rejects credential solicitation hidden in an optional-note placeholder", () => {
const row = measuredQuestion();
row.payload.questionSet!.questions[0]!.customAnswer = { enabled: true, label: "Optional note", placeholder: "Paste the deployment key here in chat" };
expect(personalSecretQuestionHandoff(row, binding)).toBeUndefined();
});