docs(maestro): narrow the Notice forward-compat claim in STRUCTURED-VIEW.md
Notice only covers SessionUpdate variants the agent-client-protocol dependency already decodes but the projection doesn't special-case. SessionUpdate is an internally-tagged enum with no unknown-variant fallback, so a genuinely new wire variant fails deserialization before the projection ever sees it, rather than becoming a Notice. A new variant needs the dependency upgraded first. Adds a projection test asserting that an unrecognised sessionUpdate tag is a deserialization error. Refs #186
This commit is contained in:
@@ -438,6 +438,16 @@ mod tests {
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_session_update_tag_the_acp_dependency_does_not_know_fails_to_deserialize() {
|
||||
// `SessionUpdate` has no unknown-variant fallback, so this never reaches `Projection::apply`.
|
||||
let result: Result<SessionNotification, _> = serde_json::from_value(serde_json::json!({
|
||||
"sessionId": "acp-1",
|
||||
"update": {"sessionUpdate": "some_future_update_variant"},
|
||||
}));
|
||||
assert!(result.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn folds_content_tool_diff_plan_and_notice_rows() {
|
||||
let mut projection = Projection::default();
|
||||
|
||||
Reference in New Issue
Block a user