Skip to content

fix(a2a-pb): normalize protojson timestamps to Z, not +00:00 - #299

Merged
muscariello merged 1 commit into
mainfrom
fix/dm-serial-001-timestamp-z-suffix
Sep 24, 2026
Merged

muscariello merged 1 commit into
mainfrom
fix/dm-serial-001-timestamp-z-suffix

Conversation

@muscariello

@muscariello muscariello commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes ACTS DM-SERIAL-001, the only MUST-level conformance failure on the Rust SDK dashboard: task status timestamps serialize on JSON-RPC/REST as ...+00:00 instead of the spec-required ...Z (gRPC unaffected — native binary, no text timestamp).

Root cause: pbjson-types 0.9.0's Timestamp::Serialize emits the +00:00 form, verified in isolation; 0.9.0 is its latest release, so no upstream fix to bump to. Deserialization already handles Z correctly — outgoing-only bug.

Fix: normalize_timestamp_strings() in protojson_conv::to_value() (the function both REST and JSON-RPC responses call), keyed by the two actual Timestamp field names in a2a.proto rather than a blind string replace, so unrelated user content can't be touched.

Test plan

  • New tests: Z not +00:00, recurses into nested tasks, unrelated fields untouched
  • Full workspace check-compile/test/lint pass

Closes #298

@muscariello
muscariello requested a review from a team as a code owner September 23, 2026 20:16
pbjson-types 0.9.0's Timestamp serializer emits a +00:00 offset
instead of the spec-required Z suffix, breaking ACTS DM-SERIAL-001 on
JSON-RPC/REST (gRPC is unaffected). Normalizes it in to_value(),
keyed by the known Timestamp field names so unrelated string content
is never touched.

Closes #298

Signed-off-by: Luca Muscariello <[email protected]>
@muscariello
muscariello force-pushed the fix/dm-serial-001-timestamp-z-suffix branch from f1ec2ce to e8c666d Compare September 23, 2026 20:17
@muscariello
muscariello requested a review from lgecse September 23, 2026 20:19
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.43750% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
a2a-pb/src/protojson_conv.rs 98.43% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@muscariello
muscariello added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit a5f9de3 Sep 24, 2026
22 checks passed
@muscariello
muscariello deleted the fix/dm-serial-001-timestamp-z-suffix branch September 24, 2026 08:13
@github-actions github-actions Bot mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: DM-SERIAL-001 fails on JSON-RPC/REST — task status timestamp serializes with +00:00 instead of Z

2 participants