Skip to content

feat(discovery): list agents across known Codex homes - #38

Merged
abruption merged 3 commits into
mainfrom
feat/16-unified-discovery
Sep 28, 2026
Merged

abruption merged 3 commits into
mainfrom
feat/16-unified-discovery

Conversation

@abruption

@abruption abruption commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #16. First implementation issue in 0.2.0 — Core usability.

  • Allow list --json to combine Claude and Codex; retain optional agent/home filters. A pinned home bypasses unrelated inventory errors; Claude-only listing skips Codex completely.
  • Enumerate bounded default, environment, immediate macOS Orca and configured homes. Canonical aliases, including dangling links to missing homes, merge source labels; identical UUIDs in distinct homes remain separate. Sort Codex rows globally by updatedAt/home/UUID and apply --all per home.
  • Distinguish optional absence/not_installed, empty readable DB, explicitly missing homes, invalid config, permissions and incompatible DBs. Preserve successful rows on source/agent failure with exit 1 and fixed error text.
  • Share only configured-path/Orca enumeration helpers with the writer; retain strict writer inventory, lock/owner checks and revalidation. Listing never selects a writer, connects to an inbox or queues a message.
  • Port Python unified/multi-home regression cases across OS jobs. Verify local/stdio/SSH destination inventory, partial response preservation and Windows PowerShell/.cmd behavior; package smoke exercises unified empty discovery.
  • Update four READMEs, parity/migration guide and validation record, separating development source from the published 0.1.0 package.

Verification

  • macOS arm64 / Node 22.14.0: 37 tests passed in the full suite, 3 Windows-only tests skipped; final focused discovery suite 13/13 passed; strict type checks, package repeat-pack/install/native-load/types/uninstall, repository policy and diff checks passed.
  • All passed: macOS/Linux/Windows × Node 22/24 and aggregate release gate, run 36360899752, exact head 3949cc125edb145a1117f79b144e8940cac54adf. Windows files run serially to avoid concurrent native PowerShell startup exhausting the unchanged inspection deadline; no retry or relaxed assertion.
  • Independent bounded source review: antigravity-cli / gemini-3.1-pro-high, rechecked by Codex. Accepted Windows destination-environment fixture gap fixed; remaining configuration policy is tracked in expanded feat(codex): expose safe implicit home selection and opt-in inactive queueing #17 acceptance criteria (0.2.0/P1). Required writer refusal and the unsupported PID-reuse hypothesis were not treated as confirmed defects. Full finding disposition.

Boundaries

JSON output remains required. Codex send still requires explicit home; implicit selection/inactive queueing belong to #17. No Antigravity adapter is added. Filesystem permission faults in the portable suite are injected, not real Windows ACL qualification. No live sessions or remote servers are contacted by fixtures.

Package metadata remains 0.1.0 until release preparation; unified listing is not present in published npm 0.1.0. Use the same development build on both ends for source SSH testing. This PR does not publish npm, modify Python/Relay operations or authorize deployment.

@abruption

Copy link
Copy Markdown
Owner Author

Independent review disposition — 2026-09-28

Review: antigravity-cli / gemini-3.1-pro-high; source findings were rechecked by Codex. Model severity labels are advisory, not confirmed defects.

Finding Verification and action
Windows fake SSH inherited caller home settings, so it did not establish destination-inventory separation Accepted as a test-coverage gap. Commit 3949cc1 gives the simulated PowerShell destination its own profile/home/config, deliberately sets invalid caller configuration, and asserts rows come from the destination without any extra queue call. POSIX SSH and stdio tests also use distinct destination environments. This changes the fixture, not real SSH authentication/environment policy. Covered here under #16; no separate duplicate issue.
Empty SESSION_PEER_CODEX_HOMES differs between list and send Confirmed existing policy difference. #16 listing returns a partial error; existing writer ignores an empty value. Neither is an uncaught crash, and #38 did not introduce the writer behavior. Documented and regression-tested here; strengthened #17 acceptance criteria for the configuration truth table, missing environment homes and migration/compatibility decision. #17 remains P1 / 0.2.0.
One unresolved/EACCES candidate aborts writer selection Required safety boundary, not a defect to bypass. Unknown competing ownership must refuse send. Kept that behavior and added a regression assertion; #17 now explicitly requires zero queue calls and structured refusal. Partial listing remains available.
Windows Claude accepts an OS process start earlier than the session record timestamp No new parity defect established. Both TS and pinned Python 1.0.2 reject starts newer than startedAt + 2000; an earlier process start alone does not demonstrate PID reuse. This reviewer hypothesis does not justify removing the check or claiming a confirmed vulnerability. No security issue filed without a violating counterexample. Python reference.

Additional Codex verification found dangling aliases produced duplicate missing-home diagnostics. Reproduced with a failing fixture and fixed in e00a190, preserving required source labels. Windows parallel test startup also reached the fixed native-inspection deadline; test files now run serially and clean fixture processes after each case, without relaxing production deadlines or assertions.

All relevant review findings are therefore either fixed in this PR, tracked in #17, or rejected with source-backed rationale. No new issue was created merely to duplicate an existing deliverable. Final qualification is the latest PR-head CI and release gate; fixture results do not establish live-agent ACK.

@abruption
abruption marked this pull request as ready for review September 28, 2026 00:09
@abruption
abruption merged commit 191b2ab into main Sep 28, 2026
9 checks passed
@abruption
abruption deleted the feat/16-unified-discovery branch September 28, 2026 01:50
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(discovery): list all supported agents across known Codex homes

1 participant