feat(a2a-nats): agent + message-send + message-stream subject types - #321
Conversation
yordis
commented
Jun 18, 2026
- Three per-operation subject value objects (AgentCardSubject / MessageSendSubject / MessageStreamSubject) under {prefix}.agents.{agent_id}.*; each implements the typestate markers (Requestable + StreamAssignment) so call sites can't accidentally publish a unary request as fire-and-forget or look up a JetStream stream for a subject that has none.
- Lands these three together because they share the same subject leader and tests; the tasks/* and push/* operation subjects land in dedicated follow-ups so each per-operation PR's wire contract is reviewed on its own.
Three per-operation subject value objects (AgentCardSubject /
MessageSendSubject / MessageStreamSubject) under {prefix}.agents.{agent_id}.*.
Each implements Requestable + StreamAssignment so the call sites can't
accidentally publish a unary request as fire-and-forget or look up a
JetStream stream for a subject that has none. Tasks + push operation
subjects land in dedicated follow-up PRs.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview All three are marked Reviewed by Cursor Bugbot for commit ab84326. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThree new NATS subject structs ( ChangesAgent NATS Subject Types
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Coverage SummaryDetailsDiff against mainResults for commit: ab84326 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
…isplay Each per-operation subject now has unit tests asserting the Display output and ToSubject round-trip so the coverage gate isn't blocked by brand-new files starting at 0%. Also align the message_stream doc comment on the plural .tasks. event-subject leader the rest of the codebase uses. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…321) Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>