Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(mcp): count page_id among the read_page payload fields

AkitaOnRails241d227c72a6
diff --git a/crates/ai-memory-mcp/tests/suite/access_reinforcement.rs b/crates/ai-memory-mcp/tests/suite/access_reinforcement.rs
index 1f0546e5..645220dd 100644
--- a/crates/ai-memory-mcp/tests/suite/access_reinforcement.rs
+++ b/crates/ai-memory-mcp/tests/suite/access_reinforcement.rs
@@ -267,7 +267,7 @@ async fn read_page_throttle_no_double_bump() {
);
}
-/// The bump is additive: a plain read's response payload is exactly the four
+/// The bump is additive: a plain read's response payload is exactly the
/// documented fields, unchanged by reinforcement.
#[tokio::test]
async fn read_page_response_payload_unchanged() {
@@ -285,7 +285,7 @@ async fn read_page_response_payload_unchanged() {
keys.sort_unstable();
assert_eq!(
keys,
- vec!["body", "frontmatter", "path", "title"],
+ vec!["body", "frontmatter", "page_id", "path", "title"],
"reinforcement must not add fields to the read_page payload: {resp}"
);
}