fix: sequence AgentBus roster replies
This commit is contained in:
1 parent
693aed54aa
commit
ffa3340899
8 files changed
+557
-21
No files matched your search
@@ -56,6 +56,14 @@ test('a newly delivered message revalidates previously rejected attachment bytes
|
||||
assert.match(source, /i\.idempotency_key = \$2[\s\S]*?status: 'duplicate' as const/u);
|
||||
});
|
||||
|
||||
test('durable roster replies distinguish waiting and attachment phases and select one final owner', async () => {
|
||||
const source = await readFile(new URL('../src/task-service.ts', import.meta.url), 'utf8');
|
||||
assert.match(source, /text: intake\.message,[\s\S]*?finalReplyEligible: false/u);
|
||||
assert.match(source, /text: AGENTBUS_ROSTER_ATTACHMENT_RECEIVED_TEXT,[\s\S]*?finalReplyEligible: true/u);
|
||||
assert.match(source, /agentBusRoute: undefined[\s\S]*?agentBusRoute: input\.agentBusRoute/u);
|
||||
assert.match(source, /d\.payload ->> '_final_reply_eligible'[\s\S]*?newer_delivery\.created_at > d\.created_at/u);
|
||||
});
|
||||
|
||||
test('manual API accepts exactly one bounded inline roster attachment', async () => {
|
||||
const source = await readFile(new URL('../src/server.ts', import.meta.url), 'utf8');
|
||||
assert.match(source, /attachments: z\.array\(encodedInputAttachmentSchema\)\.max\(1\)/);
|
||||
|
||||
Reference in new issue
Block a user