Skip to content

feat: validate active Codex homes and localize replies - #63

Merged
abruption merged 1 commit into
mainfrom
feat/61-active-codex-home-reply
Sep 15, 2026
Merged

abruption merged 1 commit into
mainfrom
feat/61-active-codex-home-reply

Conversation

@abruption

Copy link
Copy Markdown
Owner

The same Codex thread UUID can exist in the default and Orca/custom homes, so a successful enqueue could target a queue that no running session consumes. This change inspects the exact UUID writer lock in every bounded saved-home candidate, combines a kernel advisory-lock probe with two stable same-user lsof owner observations, selects only one verified live writer, and revalidates every competing candidate immediately before queue submission. JSON results now include schema-versioned codexHomeResolution evidence, while queue completion remains explicitly separate from consumption confirmation.

Locally generated automatic Reply commands now omit --host, which avoids sending a reply back to the same machine through SSH and failing on host-key or authentication setup. Explicit/configured reply hosts and real remote routes keep their SSH form.

Validation:

  • python3 -m compileall -q cc_peer.py session_peer.py tests
  • python3 -m unittest discover -s tests -v (191 tests)
  • uv build
  • wheel content verification (session_peer.py present, legacy cc_peer.py absent)
  • git diff --check

Closes #61

@abruption
abruption merged commit 30843af into main Sep 15, 2026
9 checks passed
@abruption
abruption deleted the feat/61-active-codex-home-reply branch September 18, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: validate active Codex home and normalize same-host reply routes

1 participant