Skip to content

Mark variable-read-write supported in the Go SDK capability manifest - #73421

Merged
henry3260 merged 1 commit into
apache:mainfrom
cool9850311:go-sdk-variable-read-write-capability
Sep 21, 2026
Merged

henry3260 merged 1 commit into
apache:mainfrom
cool9850311:go-sdk-variable-read-write-capability

Conversation

@cool9850311

Copy link
Copy Markdown
Contributor

Why

#73084 added SetVariable and DeleteVariable to the Go SDK task client, which completes the variable-read-write capability, but it did not flip the entry in go-sdk/capabilities.yaml. The compatibility matrix in go-sdk/README.md is generated from that manifest, so it still tells readers the Go SDK offers GetVariable only and that writes are unavailable over the comm socket.

The Java (#72676) and TypeScript manifests already report the capability as supported, so the Go entry is the only one left disagreeing with its own SDK.

Nothing catches this automatically: scripts/ci/prek/lang_sdk_compat_matrix.py validates the manifest's shape — key coverage, types, and that an unsupported entry carries no since — but it cannot check a declaration against the code it describes.

What

  • go-sdk/capabilities.yaml: mark variable-read-write supported since 3.4 and drop the note, which no longer holds.
  • go-sdk/README.md: regenerated by the update-go-sdk-readme-matrix prek hook.

taskflow-binding is deliberately left alone. It reads false for the Go, Java and TypeScript manifests alike, so unlike this entry it is not a single SDK lagging behind its own code, and flipping it is a question for whoever added the dimension in #73314.

Verification

  • prek run update-go-sdk-readme-matrix --all-files — regenerates, then passes on a second run
  • prek run --from-ref upstream/main --stage pre-commit

The capability itself is already covered end to end by test_go_sdk_variable_write.py, added in #73084.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

The Go SDK gained SetVariable and DeleteVariable in apache#73084, which completes
the capability, but that PR did not flip the manifest entry. The compatibility
matrix in go-sdk/README.md is generated from the manifest, so it still tells
readers the Go SDK can only read Variables and that writes are unavailable.

The Java and TypeScript manifests already report the capability as supported,
so the Go entry is the only one left disagreeing with its own SDK.

@henry3260 henry3260 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good catch

@henry3260
henry3260 merged commit cd8ca1a into apache:main Sep 21, 2026
88 checks passed
@boring-cyborg

boring-cyborg Bot commented Sep 21, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants