Repository navigation
feat: unify JSON response envelopes - #70
Merged
Merged
Conversation
This was referenced Sep 16, 2026
This was referenced Sep 16, 2026
5 of 9 tasks
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.
Summary
Machine-readable
list,send, andupdateresults now share a versioned{schemaVersion, ok, host, command, ...payload}envelope. Local and single-hostcommands return one object, repeated
--hostreturns an ordered array of thesame independently attributable objects, and command-wide validation failures
are reported once per requested destination.
Existing command payloads and cached
clientUpdatefacts remain available.README and the session-peer skill document the envelope, host identity, mixed
success/failure handling, and object-versus-array cardinality.
Closes #29
Type
Checklist
python3 session_peer.py listworks locallypython3 session_peer.py list --host <a real host>works over SSH--dry-runresolves a target without posting anything (covered by regression tests)Verified against
compileallandgit diff --checklist --json --no-update-noticesmoke testNotes
This intentionally completes the pre-1.0 breaking change described in #29:
single-host remote
listandupdateresponses are now flat objects, matchingsend; repeated hosts still return an array. Consumers can normalize only onobject versus array and then use the same four envelope fields for every command.
No live message was submitted.