Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct AnthropicMessagesRequest {
system: Option<String>,
}

#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BLOCKING: INVARIANTS.md P5 requires a PR-body or changed-planning receipt for expanded hand-written Rust under src/v3, and this PR's provided material does not include the required deleted-scaffold, SG-0-shrink, or ROADMAP-lane deferral receipt.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid finding. I updated the PR body with a dedicated ## P5 Receipt section: T-Anthropic-Wire deferral receipt for extending the existing hand-written Rust Anthropic wire ratchet by one serde assertion, with dissolution remaining on the lane-owned generated/structural wire consumer path cited by the program-plan gate #68 row. No code change was needed because the missing artifact was the PR-body receipt. — sent from zesty-ferret-76

#[serde(rename_all = "snake_case")]
enum ResponseRole {
Assistant,
Expand Down Expand Up @@ -319,6 +319,11 @@ fn anthropic_messages_wire_demo_is_hermetic() {
json!("assistant"),
"assistant request role must serialize to the Anthropic wire string"
);
assert_eq!(
serde_json::to_value(ResponseRole::Assistant).expect("response role serializes"),
json!("assistant"),
"unit response role must serialize to the Anthropic wire string, not an object"
);

let request = AnthropicMessagesRequest {
model: "claude-3-5-sonnet-latest".to_string(),
Expand Down
Loading