Skip to content

fix(sdk): decode daemon HTTP timestamp and duration objects - #1686

Merged
samuv merged 4 commits into
mainfrom
impl/sdk-http-wkt-json-compatibility
Sep 18, 2026
Merged

samuv merged 4 commits into
mainfrom
impl/sdk-http-wkt-json-compatibility

Conversation

@samuv

@samuv samuv commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Stage

Implementation

Plan / Interface PR: #1684
Approved baseline: 110017facdc7cb9fbbebf730af6587386f8de8a4

What changed

  • Normalize daemon encoding/json Timestamp and Duration objects at the TypeScript HTTP/SSE decode boundary.
  • Follow protobuf descriptors recursively through nested messages, lists, and maps while preserving ProtoJSON strings, null, unknown fields, and registered raw JSON.
  • Fail malformed, imprecise, mixed-sign, or out-of-range values as typed HTTP ProtocolError results.
  • Add unit coverage and a same-checkout durable-schedule HTTP e2e proof, then document the compatibility behavior.

Acceptance and verification

  • All 10 acceptance criteria resolve under plan-scoped strict AC trace with 0 failures.
  • Passed: task lint, task sdk:lint, task sdk:typecheck, task sdk:test (303 tests after rebasing onto current main), task sdk:build, task sdk:api:check, task sdk:e2e (32 Node/Bun tests), task docs, task site:build, task api:check, and go run ./cmd/mecademo.
  • Full task test passed in an isolated Go 1.27 container. The host-only rerun remains unavailable because an unrelated Vite process owns the fixed OAuth callback port 127.0.0.1:18473; this PR changes no Go source.
  • Panel: PANEL: ship_blockers=0 important=3 advisory=1 reviewer_failures=0. The factual baseline-metadata finding was repaired; remaining notes are non-blocking direct malformed-SSE/extrema coverage and a structuredClone simplification suggestion.

Interfaces match approved contract: Yes

No material implementation deviations.

Closes #1631

@samuv samuv changed the title impl/sdk http wkt json compatibility fix(sdk): decode daemon HTTP timestamp and duration objects Sep 17, 2026
@samuv samuv self-assigned this Sep 17, 2026
@samuv
samuv added this pull request to stack #1693 September 18, 2026 00:13
@samuv
samuv force-pushed the impl/sdk-http-wkt-json-compatibility branch from e80a41a to 31c697e Compare September 18, 2026 08:24
@samuv
samuv merged commit d1b659c into main Sep 18, 2026
36 checks passed
@samuv
samuv deleted the impl/sdk-http-wkt-json-compatibility branch September 18, 2026 08:54
This was referenced Sep 21, 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.

SDK: decode daemon stdlib-JSON timestamps and durations over HTTP

2 participants