Repository navigation
feat: add doctor and structured reply routes - #71
Merged
abruption merged 1 commit intoSep 16, 2026
Merged
Conversation
This was referenced Sep 16, 2026
abruption
changed the base branch from
feat/29-json-response-contract
to
main
September 16, 2026 05:13
abruption
force-pushed
the
feat/45-diagnostics-reply-contract
branch
from
September 16, 2026 05:13
985cda3 to
8f1cfae
Compare
abruption
force-pushed
the
feat/45-diagnostics-reply-contract
branch
from
September 16, 2026 05:15
8f1cfae to
382d8ba
Compare
abruption
changed the base branch from
main
to
feat/29-json-response-contract
September 16, 2026 05:16
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.
Problem
A successful inbox write or Codex queue submission does not explain missing prerequisites, prove that an advertised SSH route works in reverse, or provide a safe machine-readable reply address. Waiting was also underspecified: transcript matching can report stale or echoed text as a reply.
Result
session-peer doctordiagnostics locally and over SSH for Claude session homes/inboxes, Codex executables and bounded home/state DB candidates, permission failures, unsupported schemas, and unknown states--check-return-routewith a fixed non-interactive SSH probe; forward SSH is never treated as reverse-route proof, and same-user self routes normalize to local deliverysession-peer://v1/replyaddresses for Claude/Codex and local/SSH targets, including an optional Codex home;send --to URIvalidates every field and never evaluates message content as shell syntaxReply:command for compatibility and exposesreplyRoute/addressResolutionin the common JSON envelope--wait: Claude's supported idle notice is local/main-session-only and Codex has no matching acknowledgement observer, so transcript polling would create false positivesThis PR is stacked on #70 because
doctoruses the common JSON envelope introduced there. After #70 merges, its base can move tomainwithout changing this commit.Closes #45
Closes #31
Validation
python3 -m compileall -q cc_peer.py session_peer.py testspython3 -m unittest discover -s tests -q— 239 tests passeduvx --from build pyproject-build— wheel and sdist builtdoctor --host macbook-pro-m4-pro --jsonreported three available Claude inboxes and all bounded Codex homes--check-return-routereportedauthentication_failed, proving it did not infer reverse access from the successful forward connectiondoctor --check-return-routereturnedverified,transport: local,reason: self_route_normalizedwithout SSH