mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
Restore initial communication guidance across legacy execution paths
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
38cfd21765
commit
0deee9ed4d
12 files changed
+98
-36
No files matched your search
@@ -1968,6 +1968,7 @@ describeEmbeddedPostgres("heartbeat comment wake batching", () => {
|
||||
externalLabel: "Slack direct message",
|
||||
sessionGeneration: 1,
|
||||
isDirectMessage: true,
|
||||
communicationGuidance: "## Communication in Slack\nFrozen connection preference.",
|
||||
state: "active",
|
||||
});
|
||||
await db.insert(chatExternalPrincipals).values({
|
||||
@@ -2030,6 +2031,7 @@ describeEmbeddedPostgres("heartbeat comment wake batching", () => {
|
||||
issueId,
|
||||
taskId: issueId,
|
||||
source: "chat:slack",
|
||||
paperclipTaskCommunicationGuidance: "FORGED caller preference",
|
||||
commentId: sourceComment.id,
|
||||
wakeCommentId: sourceComment.id,
|
||||
wakeCommentIds: [sourceComment.id],
|
||||
@@ -2260,6 +2262,7 @@ describeEmbeddedPostgres("heartbeat comment wake batching", () => {
|
||||
wakeCommentId: sourceComment.id,
|
||||
wakeCommentIds: [sourceComment.id],
|
||||
paperclipExternalChatExecutionBound: true,
|
||||
paperclipTaskCommunicationGuidance: "## Communication in Slack\nFrozen connection preference.",
|
||||
paperclipExternalChatQuestionResponse: expect.objectContaining({
|
||||
schema: "paperclip.external_chat_question_response.v1",
|
||||
interactionId: answered.id,
|
||||
@@ -2273,6 +2276,9 @@ describeEmbeddedPostgres("heartbeat comment wake batching", () => {
|
||||
expect(String(gateway.getAgentPayloads()[0]?.message ?? "")).toContain(
|
||||
"preserve this full source instruction",
|
||||
);
|
||||
const restoredPrompt = String(gateway.getAgentPayloads()[0]?.message ?? "");
|
||||
expect(restoredPrompt.match(/Frozen connection preference\./g)).toHaveLength(1);
|
||||
expect(restoredPrompt).not.toContain("FORGED caller preference");
|
||||
expect(String(gateway.getAgentPayloads()[0]?.message ?? "")).toContain(
|
||||
"Preserve the original request's exact-output constraints literally.",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user