-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clarification to thread RFC about handling an empty thread decorator #789
Conversation
Signed-off-by: Stephen Curran <[email protected]>
That should help clear up the ambiguity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But curious; why go this route rather than a route of "~thread MUST have a thid
"?
My thought is that making the |
thanks, sounds good |
Not that ACA-Py's implementation should dictate the RFC, but whoever implemented it in ACA-Py understood it as expecting to encounter a thread without a thid. And unfortunately, in ACA-Py the thread logic is not 100% isolated. Ensuring that all threads had a thid with a value would be a fairly significant exercise, certainly at the regression testing level. |
I think it's valid to have a pthid, without a thid, so making this required would also be problematic in such cases |
AFJ has same behaviour, that is allows an empty object |
Discussed on the Aries Working Group call on 2023.06.28 and there was agreement to merge. |
Signed-off-by: Stephen Curran [email protected]
See issue #875 in Aries VCX. This PR clarifies that while it is not recommended, an Aries agent MAY put an empty
~thread: {}
item in the first message of a protocol instance, and a recipient Aries agent MUST be able to handle that.