Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

GBRA-200: journey golden and backup-nag filter carry the degraded stamp

garrytan1f7a0255d4e8
diff --git a/test/fixtures/agent-contract/v1/journey/recall-degraded.json b/test/fixtures/agent-contract/v1/journey/recall-degraded.json
index 91e4c8ab76..18a5401577 100644
--- a/test/fixtures/agent-contract/v1/journey/recall-degraded.json
+++ b/test/fixtures/agent-contract/v1/journey/recall-degraded.json
@@ -39,7 +39,12 @@
},
"contract_version": 1
}
- ]
+ ],
+ "degraded": {
+ "reasons": [
+ "embed_unavailable"
+ ]
+ }
},
"content": [
{
@@ -53,6 +58,10 @@
{
"type": "text",
"text": "[gbrain notice recall_hint kind=info]\nwhy: The facts in this response are the newest saved facts: `query` searches pages and does not rank facts. `question` ranks saved facts by relevance to a question (it does not search pages).\nfix: recall {\"query\":\"quokka-journey-marker\",\"question\":\"quokka-journey-marker\"}\nnext: {{next}}"
+ },
+ {
+ "type": "text",
+ "text": "[gbrain degraded: embed_unavailable] This result is partial or degraded: never report \"no notes\" or \"not found\" from it."
}
]
}
diff --git a/test/mcp-backup-nag.serial.test.ts b/test/mcp-backup-nag.serial.test.ts
index c6a513bea8..b038df13f9 100644
--- a/test/mcp-backup-nag.serial.test.ts
+++ b/test/mcp-backup-nag.serial.test.ts
@@ -132,8 +132,9 @@ async function callSearch(opts: CallOpts = {}) {
});
// F3's degraded_recall notice (this keyless stub searches keyword-only) is
// orthogonal to the backup block under test; it is pinned in
- // test/mcp-notice-channels.test.ts. So is F2's keyword count line (test/search-keyword-paging.test.ts).
- return { ...out, content: out.content.filter(c => !c.text.startsWith('[gbrain notice degraded_recall ') && !c.text.startsWith('[gbrain search] ')) };
+ // test/mcp-notice-channels.test.ts. So is F2's keyword count line (test/search-keyword-paging.test.ts),
+ // and the GBRA-200 degraded stamp (test/degraded-stamp-paths.serial.test.ts).
+ return { ...out, content: out.content.filter(c => !c.text.startsWith('[gbrain notice degraded_recall ') && !c.text.startsWith('[gbrain search] ') && !c.text.startsWith('[gbrain degraded: ')) };
}
async function waitFor(pred: () => boolean, ms = 2000): Promise<boolean> {