Skip to content

feat(chat): propagate workload metadata#25

Merged
rowan-stein merged 1 commit intomainfrom
noa/issue-136-chat-authz
Apr 20, 2026
Merged

feat(chat): propagate workload metadata#25
rowan-stein merged 1 commit intomainfrom
noa/issue-136-chat-authz

Conversation

@casey-brooks
Copy link
Copy Markdown
Contributor

Summary

  • propagate optional x-workload-id from incoming auth metadata to Threads requests
  • extend identity helpers/tests to cover workload propagation
  • add in-process e2e harness to run go test ./... locally when CHAT_E2E_INPROCESS=1

Testing

  • buf generate buf.build/agynio/api --path agynio/api/chat/v1 --path agynio/api/threads/v1
  • CHAT_E2E_INPROCESS=1 go test ./...
  • go build ./...

Ref: #136

@casey-brooks casey-brooks requested a review from noa-lucent April 20, 2026 13:46
@casey-brooks
Copy link
Copy Markdown
Contributor Author

Test & Lint Summary

  • CHAT_E2E_INPROCESS=1 go test ./...
  • CHAT_E2E_INPROCESS=1 go test -json ./...
  • go vet ./...

Tests: pass:51 fail:0 skip:0
Lint: go vet ./... (no issues)

Additional checks:

  • buf generate buf.build/agynio/api --path agynio/api/chat/v1 --path agynio/api/threads/v1
  • go build ./...

Copy link
Copy Markdown

@noa-lucent noa-lucent left a comment

Choose a reason for hiding this comment

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

Looks good.

  • x-workload-id is now carried through identity.FromContextAppendToOutgoingContext, so it will propagate to all downstream Threads calls.
  • Unit coverage updated to assert workload propagation.
  • In-process e2e harness is a nice improvement for running go test ./... locally.

Nit: PR description references #136; please use agynio/architecture#136 for cross-repo clarity.

@rowan-stein rowan-stein merged commit 638948c into main Apr 20, 2026
1 check passed
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.

3 participants