























@@ -14,7 +14,7 @@ scenario:
1414 - Scenario runs through qa-channel and a real gateway child.
1515 - A due commitment exists for the qa agent and qa-channel conversation.
1616 - A heartbeat wake runs after the commitment is due.
17- - No qa-channel outbound message is sent while heartbeat target is none.
17+ - No commitment/check-in qa-channel outbound message is sent while heartbeat target is none.
1818 - The commitment remains pending and unattempted after the heartbeat.
1919docsRefs:
2020 - docs/concepts/commitments.md
@@ -35,7 +35,7 @@ scenario:
3535target: none
3636execution:
3737kind: flow
38-summary: Seed a due commitment, wake heartbeat, and assert target none sends no qa-channel message.
38+summary: Seed a due commitment, wake heartbeat, and assert target none sends no commitment message.
3939config:
4040conversationId: commitments-target-none-room
4141commitmentId: cm_qa_target_none
@@ -115,10 +115,13 @@ flow:
115115 - set: targetOutbound
116116value:
117117expr: "state.getSnapshot().messages.slice(messageCursor).filter((candidate) => candidate.direction === 'outbound' && candidate.conversation.id === config.conversationId)"
118+ - set: commitmentOutbound
119+value:
120+expr: "targetOutbound.filter((message) => normalizeLowercaseStringOrEmpty(message.text) !== 'heartbeat_ok')"
118121 - assert:
119-expr: "targetOutbound.length === 0"
122+expr: "commitmentOutbound.length === 0"
120123message:
121-expr: "`expected no qa-channel outbound messages for target none, saw ${JSON.stringify(targetOutbound.map((message) => ({ conversationId: message.conversation.id, text: message.text })))}; recent=${recentOutboundSummary(state)}`"
124+expr: "`expected no qa-channel commitment messages for target none, saw ${JSON.stringify(commitmentOutbound.map((message) => ({ conversationId: message.conversation.id, text: message.text })))}; allTargetOutbound=${JSON.stringify(targetOutbound.map((message) => ({ conversationId: message.conversation.id, text: message.text })))}; recent=${recentOutboundSummary(state)}`"
122125 - set: commitmentStore
123126value:
124127expr: "JSON.parse(await fs.readFile(commitmentStorePath, 'utf8'))"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。