Add per-command metadata propagation to interfaces - #3777
Open
jwalters2 wants to merge 2 commits into
Open
Conversation
jwalters2
force-pushed
the
command-extra-metadata
branch
from
August 27, 2026 05:09
06f7730 to
c30dd3f
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Replaces #3666, whose original head fork was deleted.
Problem
Command callers sometimes need to attach correlation and workflow metadata to a single command and make that metadata available to the interface that writes the packet. Previously, the
cmdAPI did not provide a supported way to carry caller metadata through command topics, queues, and command retries.Changes
extraHash/dict to the Ruby and PythoncmdAPI families and scripting wrappers.extraon the command topic and merge it intocommand.extrabefore the interface writes the packet.cmd_string,username,interface_name,queue_username, orapprover.extrausage for Ruby and Python scripts.Commands.build_cmdcontinues to clear template packet metadata. Caller metadata is applied only to the newly built command insideInterfaceMicroservice, preventing stale metadata from leaking between commands.Compatibility
extrais optional.Testing
flow_uuidandhv_idmetadata;queue_usernameandapprovervalues were removed.git diff --check, Ruby syntax checks, Python compilation, and the repository security/code-analysis checks passed.