Skip to content

Keep Companion reachable and preserve Store host recovery - #166

Merged
BunsDev merged 2 commits into
mainfrom
companion-readiness
Oct 11, 2026
Merged

BunsDev merged 2 commits into
mainfrom
companion-readiness

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Companion previously listened on only the first supported private network. Give each supported private IPv4 address its own listener, Bonjour advertisement and matching QR/link, while retaining shared trust and unaffected connections. The iPhone rotates discovered endpoints and its saved address without cancelling an active request.

The Store client preserves its workspace, overlays and unsent draft through host recovery. Identity and protocol failures require an explicit retry or reconnection; ordinary outages reconnect automatically. Host lookup refreshes before connection, and compatible signed regular hosts activate through a validated URL handoff. Native Workspace menus respect modal suspension, including browser tools during recovery. Modex account sign-in remains explicitly unavailable in the Store client.

This integrates the Companion work and Store recovery from #172 with actual main edf52fc, preserving the published #166 history. It also fixes an early-result race in the native test fixture and records Apple readiness, signed acceptance evidence and three local demo screenshots. Conflict review retained Canvas, platform support, Knowledge and worktree maintenance.

Verification on the integrated source:

  • Build and all workspace typechecks passed. Unit tests: 834 passed, zero failed; 12 native Windows cases skipped on macOS.
  • All 241 desktop and seven site UI tests passed with OpenKnowledge enabled, without skips.
  • All 41 native unit and 28 paired/demo iPhone UI tests passed on an isolated iPhone 16 Pro / iOS 26.5 simulator, without skips.
  • Independent source reviews found no remaining findings. The full prospective source tree and all 525 tracked hashes matched the actual-main integration. Only two verification documents changed after the gates.
  • Native fixture and Store modal regressions failed before their fixes and passed afterward. Three distinct earlier upstream iPhone CI action failures remain undiagnosed; this passing local run does not establish fixes for them.

Prior isolated signed acceptance covered physical iPhone pairing/recovery and approval policies, plus current-account Store discovery, real Codex/Claude turns, Stop, draft retention, native approval/denial and revocation. The signed helper launched and reused a regular host through URL activation without granting access. These receipts remain separate from scripted tests and do not establish fresh-user acceptance.

Remaining acceptance gates: a second physical LAN, first-use Local Network consent, a fresh macOS account, the full signed welcome Open/Cancel sequence, sleep/wake, installed credential migration and untested parity scenarios. Store attachments remain unavailable. No Apple metadata, build, submission or release was changed.

Related to #109; keep it open until real secondary-network acceptance is evidenced. Details and historical receipts are in docs/reviews/2026-10-11-companion-apple-readiness.md.

@vercel

vercel Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 11, 2026 10:09pm UTC

Request Review

Bind and advertise each supported private network independently, preserving
shared trust and unaffected connections while the iPhone rotates endpoints.

Keep Store workspaces and drafts mounted during host recovery, refresh signed
host discovery, and activate compatible installed hosts through URL handoff.
Preserve modal keyboard isolation across recovery and native menu commands.

Consolidate the reviewed Companion and Store changes onto current main and
record acceptance evidence, remaining hardware gates and local listing assets.

Coven-Harness: codex-tui / gpt-6-astra
@BunsDev
BunsDev force-pushed the companion-readiness branch from f049c5d to 86d42ad Compare October 11, 2026 17:13
@BunsDev BunsDev changed the title Keep Companion reachable on each supported private network Keep Companion reachable and preserve Store host recovery Oct 11, 2026
Preserve the published Companion and Store recovery history while integrating
main edf52fc. Retain both Store account ownership and Canvas refusal, the
stricter owned-PID test guard, and both documentation streams.

Verified build, typechecks, 834 unit passes with 12 Windows-only skips,
241 desktop and seven site E2E passes, and 41 native unit plus 28 iPhone UI
passes. Record actual-main source equivalence and remaining acceptance gaps.

Coven-Harness: codex-tui / gpt-6-astra
@BunsDev
BunsDev merged commit 44eb1a0 into main Oct 11, 2026
7 checks passed
BunsDev added a commit that referenced this pull request Oct 11, 2026
Apple approved Companion 0.1.0 (5) and Mac Store 0.0.8 for TestFlight
beta testing on 2026-10-07 (Mac 04:38 UTC, Companion 04:46 UTC),
clearing the Guideline 2.1 demo-access rejection. The review-access
ledger records the decision and links the 2026-10-11 Apple status
receipt; its remaining steps now name production App Review instead
of the beta decision.

#166 already updated the Mac App Store and Companion TestFlight
entries in status.md. This fixes the two lines it left stale: the #128
note no longer says build 5 was only submitted, and the Store preview
no longer lists macOS TestFlight as pending.

Approval times come from Apple's App Store Connect notification
emails; the API reports only submission times.

Co-Authored-By: Cody <[email protected]>
Coven-Familiar: cody
Coven-Harness: Claude Code / claude-opus-5-5
@BunsDev
BunsDev deleted the companion-readiness branch October 13, 2026 12:48
BunsDev added a commit that referenced this pull request Oct 18, 2026
Val decided on #290. Gate 2 asked for the production host transport and the
sandboxed mas shell to be built. Both landed in #119. The Store also has defined
behavior for an absent, stopped, restarted, disconnected, revoked or outdated
host, with typed recovery for a changed host from #166. The readiness matrix
records that signed acceptance of those cases is partial, so the gate now says
so and links it.

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
…emented (#296)

* Fold the Local Mac Store section into the Store In flight entry

Val decided on #290. status.md's closing "Local Mac Store development preview
(unreleased)" section repeated the Store entry. Its Store facts now sit in that
entry:
- the development preview (#119);
- recovery pausing on certificate and protocol failures (#166);
- graceful host shutdown and the full parity matrix, added as open items.

The section moves unchanged to a "Status summary" at the end of the October 11
Store recovery review, with links re-based to docs/reviews/. Its third
paragraph, CLI sign-in detection in the shared connection settings, shipped
with #119 in v0.0.8 and stays only in that copy.

The Accepted bullet no longer cites edf52fc for the recovery changes, since #166
introduced them.

Coven-Harness: Claude Code / claude-opus-5-5

* Mark mac-app-store gate 2 as implemented, acceptance open

Val decided on #290. Gate 2 asked for the production host transport and the
sandboxed mas shell to be built. Both landed in #119. The Store also has defined
behavior for an absent, stopped, restarted, disconnected, revoked or outdated
host, with typed recovery for a changed host from #166. The readiness matrix
records that signed acceptance of those cases is partial, so the gate now says
so and links it.

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 19, 2026
…an read (CF-6) (#330)

* Test that an older paired desktop gets a question or a plan as a notice (CF-6, finding 6)

Store builds cut before CF-3, such as TestFlight Store 0.0.8 (October 6), have
no question or plan in their renderer and show nothing for one. The test
drives a real DesktopClient and a client that names no item kinds through
thread:items, live item and item_update events, journal replay and journaled
events. On c345779 the older client gets [question, plan] unchanged.

Coven-Harness: Claude Code / claude-opus-5-5

* Send a question or a plan to an older paired desktop as a notice it can read (CF-6, finding 6)

Val chose a capability field over a protocol bump: a bump would leave
TestFlight Store 0.0.8, which predates #166's recovery screen, retrying
"Waiting for your Mac host" indefinitely.

- A paired desktop names the item kinds it draws in an x-modex-item-kinds
  header on every request. Hosts that predate it ignore it.
- The host treats a client that names none as a Store build from before CF-3.
  It sends that client any kind outside the seven it draws (today question and
  plan) as an info notice with the same id, in thread:items, live and
  journaled events, and journal replay. An update to one arrives as the whole
  current notice, which every client replaces by id. A question's answers are
  never included.
- Current clients draw every kind and get every event unchanged; each
  broadcast is framed once per distinct set of kinds.

DESKTOP_PROTOCOL and the installed-host markers are unchanged.

Coven-Harness: Claude Code / claude-opus-5-5

* Pin the host certificate in the legacy paired-desktop test client

The raw client in desktop-item-kinds.test.ts turned certificate
validation off, which CodeQL flags as high severity. It now pins the
host's certificate through pinnedDesktopCertificate, the same way the
real DesktopClient and Store builds connect.

Coven-Harness: Claude Code / claude-opus-5-5

This branch was successfully deployed

1 active deployment
Preview — 9c4a6df3 Deployed Oct 11, 2026 by vercel[bot]
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.

1 participant