Repository navigation
fix(a2a-pb): normalize protojson timestamps to Z, not +00:00 - #299
Merged
Merged
Conversation
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
force-pushed
the
fix/dm-serial-001-timestamp-z-suffix
branch
from
September 23, 2026 20:17
f1ec2ce to
e8c666d
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
lgecse
approved these changes
Sep 24, 2026
Merged
Closed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:00instead of the spec-required...Z(gRPC unaffected — native binary, no text timestamp).Root cause:
pbjson-types0.9.0'sTimestamp::Serializeemits the+00:00form, verified in isolation; 0.9.0 is its latest release, so no upstream fix to bump to. Deserialization already handlesZcorrectly — outgoing-only bug.Fix:
normalize_timestamp_strings()inprotojson_conv::to_value()(the function both REST and JSON-RPC responses call), keyed by the two actualTimestampfield names ina2a.protorather than a blind string replace, so unrelated user content can't be touched.Test plan
Znot+00:00, recurses into nested tasks, unrelated fields untouchedCloses #298