This commit is contained in:
lpf
2026-02-17 00:42:46 +08:00
parent 2dede03813
commit 9ca138ac29
2 changed files with 141 additions and 49 deletions

View File

@@ -187,3 +187,29 @@ func TestShouldHandleControlIntents_AutoLearnSyntheticMetadata(t *testing.T) {
t.Fatalf("expected autolearn synthetic metadata message to be ignored for control intents")
}
}
func TestShouldPublishSyntheticResponse_AutonomyReportDue(t *testing.T) {
msg := bus.InboundMessage{
SenderID: "autonomy",
Metadata: map[string]string{
"source": "autonomy",
"report_due": "true",
},
}
if !shouldPublishSyntheticResponse(msg) {
t.Fatalf("expected autonomy report_due message to be published")
}
}
func TestShouldPublishSyntheticResponse_AutonomySilentRound(t *testing.T) {
msg := bus.InboundMessage{
SenderID: "autonomy",
Metadata: map[string]string{
"source": "autonomy",
"report_due": "false",
},
}
if shouldPublishSyntheticResponse(msg) {
t.Fatalf("expected autonomy non-report round to be silent")
}
}