LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-clio
createdAtOct 16, 2026, 5:12 PM
updatedAtOct 16, 2026, 8:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/19818
authorneo-fable-clio
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 16, 2026, 8:03 PM

ADR 0034 amendment: v1 target platform and the OS seam

Closed v13.3.0/archive-v13-3-0-chunk-1 documentationenhancementaiarchitecture
neo-fable-clio
neo-fable-clio commented on Oct 16, 2026, 5:12 PM

Context

The operator set the shell's v1 platform scope on 2026-10-16, in session with the design seat: v1 ships for macOS on Apple Silicon only; Windows and x64 macOS come after v1, on demand; the OS seam stays explicit in the seat launch/wake layer. His follow-up idea, Linux inside a Docker container, is the cheapest second platform and the seed of a hosted institution. ADR 0034 §2.5.1 names three platform-native installers (macOS dmg, Windows exe, Linux AppImage) as the artifact class without a v1 scope line, and no decision record names where OS-specific behaviour may live. Reviewers of packaging and launch PRs during the FM v1 walk week have no rule to cite.

Facts verified on 2026-10-16 (Institution dev 4fd5945, Brain dev c9d894c6, Electron release assets):

  • harness/electron-builder.yml:54 emits one target: zip, arch: arm64; npmRebuild: false; the organism's dependencies are rebuilt for the bundled Electron by pack.mjs for the host architecture (one staging directory, no target-arch parameter, @electron/rebuild without --arch — @neo-gpt-sophie's source read at Institution 3ec914d, pack.mjs:783–820), and runtimeGeneration.mjs:585–587 verifies the observed architecture at runtime publication, so a cross-architecture shell over host-built natives refuses itself. The single architecture is the pipeline's, not Electron's: Electron 43.5.0 publishes darwin-x64, darwin-arm64, linux-arm64 and linux-x64 release assets (HTTP 302 on each).
  • Platform-specific code census: the Harness shell carries three files with macOS references (harness/install.mjs, harness/main.mjs, harness/runtimeGeneration.mjs; seven hits) and one win32 mention (harness/prepareAssets.mjs). The Brain's seat launch and wake layer carries the rest (ai/daemons/wake/daemon.mjs 37, ai/scripts/diagnostics/dialogGateRig.mjs 21, ai/scripts/lifecycle/resumeHarness.mjs 19, ai/daemons/wake/localWakeAdapters.mjs 13, ai/daemons/wake/buildReceiverManifest.mjs 9, ai/services/fleet/deriveHarnessLaunchSpec.mjs 4, four more files under five), with a tmux adapter for non-darwin hosts (ai/scripts/lifecycle/resumeHarness.mjs:218) and win32 paths in several files, but no Linux-specific adapter (corrected 2026-10-16 after review 5550007805). deriveHarnessLaunchSpec.mjs already keys on harness kind (antigravity, claude-code, claude-desktop, codex, codex-desktop); the OS axis does not exist yet.

Sweeps — Live latest-open sweep: checked the latest 20 open neo issues at 2026-10-16T15:09:55Z; no equivalent (adjacent: #19382 ADR-0034 §2.3 item 10; #19729 / #19730 ADR custody; #15243 the web layer's headed three-OS tear-out matrix). A2A in-flight claims, last 60 min: none on platform scope. Memory Core rationale sweep (query_raw_memories on the problem's nouns): no prior platform-scope decision; the runtime-generation and harness-kind memories confirm the launch layer's shape. Own-assignment sweep: #15243 is the same OS axis on a different surface (headed browsers, not the packaged shell) and stays as is. Structure-map gate: N/A — the change amends an existing ADR file in place; no new file or directory.

The Problem

Three gaps, one record. (1) §2.5.1 reads as if three installers ship together; v1 ships one, and the order after v1 is undecided on paper. (2) The OS seam the operator asked for exists de facto in the Brain's launch/wake layer but is named nowhere, so the walk-week fixes can leak darwin assumptions into the shell or into fleet services outside that layer without a reviewer being able to cite a rule. (3) The first cheap second platform — Linux arm64 in a container: same architecture, the plane already runs as Linux containers, CI has arm64 Linux runners, CLI harnesses exist on Linux, no Claude Desktop — is an idea in a chat, not a recorded next step.

The Architectural Reality

ADR 0034 governs the shell (harness/, shipped from the Institution) and its bootstrap of the plane (Brain). §2.5 Distribution: item 1 artifacts, item 2 signing as a release-line concern, items 3–4 update cadence; §2.6's falsifier already bans process.versions.electron branches inside src/ and apps/, so platform awareness has named homes by precedent. The seat launch and wake layer is Brain substrate: ai/services/fleet/deriveHarnessLaunchSpec.mjs (harness-kind launch specs), ai/daemons/wake/* (receiver manifest, local wake adapters, the wake daemon), ai/scripts/lifecycle/resumeHarness.mjs. The previous two amendments to this ADR (ADR 0038 §3.3, 2026-08-08; the runtime-continuity amendment, 2026-10-13, #19725) set the convention: a header-table row plus an in-place ### §2.x Amendment — <title> (date, #N) section with provenance brackets.

The Fix

One PR in neomjs/neo, learn/agentos/decisions/0034-electron-shell-architecture.md:

  1. A header-table row **Platform amendment** (2026-10-16, this ticket) summarising the scope.
  2. A new section ### §2.7 Amendment — Target platforms for v1 and the OS seam (2026-10-16, #N) before ## 3. Consequences, stating: (a) v1 ships one artifact, macOS on Apple Silicon; the §2.5.1 artifact class stays the end state. (b) The post-v1 order and each step's trigger: Linux arm64 in a Docker container first (CI-reachable; the hosted-institution seed), x64 macOS when a concrete machine needs it, Windows on the first outside team that runs it — each its own packaging leaf with a native smoke on the target and an artifact receipt, never a config-flag toggle, because the pipeline rebuilds for the host architecture. (c) The OS seam: the shell carries no platform branches beyond the three files named above; OS-specific seat launch and wake behaviour lives in the Brain's launch/wake layer, keyed by harness kind and platform; the first non-macOS leaf makes the seam explicit (one adapter per harness kind × platform) and carries the platform-branch census as its first deliverable. (d) The falsifier: a new process.platform / darwin / win32 branch in the shell outside those files, or in a Brain fleet service outside that layer, violates this section on its face. (e) Identity portability: no walk or platform leaf moves a peer; a cold first run is a fresh institution; a seat move's minimum is the seat's harness-local memory, its credential and its seat definition, and the shared record stays with the plane (Brain #571's lane).
  3. A one-line pointer from §2.5.1 to §2.7.

No code, no build target, no Institution or Brain change in this PR.

Contract Ledger Matrix

N/A — no runtime, config or tool surface changes; the consumed surface is the decision record itself, read by PR reviewers.

Decision Record impact

amends ADR 0034 (§2.5.1's scope for v1; new §2.7). No Discussion: the scope call is the operator's (a product boundary, Tier 4) and the seam rule is design-seat substrate; the challenge path is this PR's cross-family review. Not supersedes: §2.5's artifact class, signing and update decisions stand.

Acceptance Criteria

  • ADR 0034 carries the **Platform amendment** header row and §2.7 with items (a)–(e), each fact cited with repo, path and SHA as verified on 2026-10-16.
  • §2.5.1 points to §2.7 in one line; no other section's text changes.
  • The amendment names the three shell files and the Brain layer paths that may carry platform branches today, and states the falsifier.
  • The PR is reviewed cross-family and merged to dev by the operator.

Out of Scope

Any build-target change (electron-builder.yml, pack.mjs); a Linux or x64 adapter; Windows signing; the Intel plane; the seat-move/export design (Brain #571); the web layer's three-OS matrix (#15243).

Avoided Traps

  • A new ADR: the shell already has its record; a fourth decision file for one scope line would split the shell's authority.
  • Reading @electron/universal in the lockfile or the installer's mac / mac-arm64 glob as a dual-architecture payload: transitive and permissive, not evidence.
  • Promising Windows for v1 because §2.5.1 lists an exe: the artifact class is the end state, not the v1 scope.

Related

Institution #12 (the candidate) · Institution #534 (Row 1's cold first run) · Institution #7 (the shell epic) · Brain #571 (seat move, copy-never-move) · #19725 (the runtime-continuity amendment) · #15243.

Origin Session ID: 3304f8fd-c081-4781-b8ef-448d5ab68ecb Retrieval Hint: "ADR 0034 platform amendment v1 Apple Silicon OS seam launch wake layer Linux container"

📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session 3304f8fd-c081-4781-b8ef-448d5ab68ecb

tobiu referenced in commit 9ea2c97 - "docs(adr): ADR 0034 amendment, v1 target platform and the OS seam (#19818) (#19819) on Oct 16, 2026, 8:03 PM
tobiu closed this issue on Oct 16, 2026, 8:03 PM