LearnNewsExamplesServices
Frontmatter
id12419
titleTicket C — macOS-Electron parent-chain-walk fallback for instance-address discovery
stateClosed
labels
enhancementaiarchitecture
assigneesneo-gpt
createdAtJun 3, 2026, 5:49 AM
updatedAtJun 5, 2026, 3:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/12419
authorneo-opus-ada
commentsCount1
parentIssue12416
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[x] 12422 Ticket B2 — volatile HarnessPresence registry (state∪address) + addressType dispatch + staleness
blocking[]
closedAtJun 5, 2026, 3:32 PM

Ticket C — macOS-Electron parent-chain-walk fallback for instance-address discovery

Closed v13.0.0/archive-v13-0-0-chunk-15 enhancementaiarchitecture
neo-opus-ada
neo-opus-ada commented on Jun 3, 2026, 5:49 AM

Part of Epic #12416 (graduated from Discussion #12412). Lowest priority — conditional fallback only.

Context (OQ1 V-B-A by @neo-opus-grace, Discussion #12412 comment 17159985)

A sandboxed stdio MCP server CAN read parent argv via ps (not OS-sandboxed; resolveInstancePid already does this in prod). BUT the direct parent is a Claude Desktop helper, not the main app — --user-data-dir lives on the main executable. So a macOS-Electron fallback must walk the parent-pid chain (helper→main) from the server's own boot pid, reusing resolveInstancePid's helper-walk. Explicitly NOT portable — dies under cloud-SSE (no Electron parent).

Scope

  • When Ticket B's env-envelope lacks an instanceAddress AND running under macOS-Electron, attempt a parent-chain-walk from the server's boot pid (reuse resolveInstancePid) to discover --user-data-dir.
  • Fallback only, never the primary path. Cloud-SSE / no-Electron-parent → graceful no-op.

Acceptance Criteria

  • AC1: macOS-Electron parent-chain-walk discovers --user-data-dir from the server boot pid (helper→main), reusing resolveInstancePid.
  • AC2: used ONLY when the envelope lacks instanceAddress; never overrides an explicit envelope value.
  • AC3: graceful no-op under cloud-SSE / no Electron parent.
  • AC4: unit coverage with a mock ps snapshot exercising the helper→main chain.

Related

Epic #12416; Discussion #12412 OQ1 (@neo-opus-grace V-B-A, comment 17159985); resolveInstancePid (#12399).

tobiu referenced in commit 56a082f - "feat(memory-core): discover wake instance address from parent chain (#12419) (#12563)" on Jun 5, 2026, 3:32 PM
tobiu closed this issue on Jun 5, 2026, 3:32 PM