mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
test(evals): reject unsafe personal question placeholders
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
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();
|
||||
});
|
||||
Reference in new issue
Block a user