Skip to content

feat(apple): add opt-in OpenClaw ID node foundation - #194201

Merged
jalehman merged 19 commits into
mainfrom
openclaw-517/node-apple
Nov 12, 2026
Merged

jalehman merged 19 commits into
mainfrom
openclaw-517/node-apple

Conversation

@jalehman

@jalehman jalehman commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #194174 (native iroh FFI, merged as 1c996b16cd71), #196445 (stacked re-bind follow-up), #196759 (Mac enrollment app wiring)

What Problem This Solves

Apple nodes (macOS and iOS) have no way to enroll with and connect to a Gateway through OpenClaw ID. They need a node-role-only enrollment, trust and tunnel foundation, plus a private macOS worker bridge, before any app can offer that connection.

User Impact

No user-visible change on its own. This is an opt-in library foundation: default builds stay artifact-free and unchanged, and the native transport only links with OPENCLAW_IROH_NATIVE=1 and a source-built XCFramework. Without native packaging, binding fails closed with a readable error. App wiring lands in #196759 on top of #196445.

The node identity key (W) never grants operator authority.

Migration note: the app-private node-enrollment.sqlite schema has never shipped and is defined in place at user_version = 1. Pre-release development stores are refused unchanged and must be recreated (re-enroll the node). No user database is reset automatically.

Why This Change Was Made

Shared Swift code in OpenClawKit owns:

  • local node identity (W in a dedicated, non-synced, AfterFirstUnlockThisDeviceOnly Keychain service, separate from the phone/Mac operator identity);
  • pinned and fresh trust validation: root-signed binding, Gateway-signed membership snapshot, binding/snapshot high-water marks, replay and rollback refusal;
  • signed enrollment redemption; uncertain delivery retries the exact signed bytes so Discovery deduplicates;
  • restart refresh without a new invite: a signed descriptor GET is re-verified against durable pins before yielding a dial target;
  • tunnel framing and node-role WebSocket transport over the native iroh adapter, with per-operation cancellation and one connection-lifetime close observer.

The app-private SQLite store (OpenClawIDNodeTrustStore, two STRICT tables, synchronous = FULL) is separate from Gateway shared state and client credentials because their owners, schemas and lifecycles differ. W and join secrets never enter SQLite.

The macOS bridge serves the node worker over an owner-only Unix socket (0700 directory, 0600 socket) and restricts it to worker routes.

scripts/lib/mac-swift-build.sh stages the native crate for scripts/package-mac-app.sh only when OPENCLAW_IROH_NATIVE=1. A path-filtered apple-node-native workflow checks the default artifact-free build, builds a same-revision universal macOS XCFramework, and runs the native Swift–Rust loopback and opted-in shared tests.

Schema (apple-node-enrollments-v1)
CREATE TABLE openclaw_id_node_targets (
  hostname TEXT NOT NULL PRIMARY KEY,
  claw_id TEXT NOT NULL,
  root_fingerprint TEXT NOT NULL,
  binding_sequence INTEGER NOT NULL,
  snapshot_sequence INTEGER NOT NULL,
  snapshot_issued_at INTEGER NOT NULL,
  snapshot_binding_sequence INTEGER NOT NULL,
  CHECK (binding_sequence >= 1 AND snapshot_sequence >= 0 AND snapshot_issued_at >= 0
    AND snapshot_binding_sequence >= 1)
) STRICT;
CREATE TABLE openclaw_id_node_enrollments (
  hostname TEXT NOT NULL,
  enrollment_id TEXT NOT NULL,
  discovery_origin TEXT NOT NULL,
  relay_url TEXT NOT NULL,
  server_key TEXT NOT NULL,
  peer_key TEXT NOT NULL,
  evidence_json TEXT NOT NULL,
  PRIMARY KEY (hostname, enrollment_id)
) STRICT;
PRAGMA user_version = 1;

Documented in docs/reference/database-schemas. #196445 amends this unshipped v1 in place (adds a nullable snapshot_gateway_key).

Evidence

Head 4522cf9205b8: main c686c16f212f, then the previous 14 commits (zero-context range-diff against f7d7aec209da: 14/14 identical, no conflicts), then five new commits:

  • CI: apple-node-native.yml declares cache-mode: "off" on its Node setup, which main's CI cache guard (test/scripts/ci-workflow-guards.test.ts) requires. The guard failed the first ready-state run (checks-node-compact-small-1-1, run 43181002425) and passes locally after the change (207/207).
  • Fix (from this pass's review): a Gateway-signed snapshot whose binding_seq exceeds the verified root-signed binding is now refused before any of its facts are merged; only the verified binding pin is kept. Previously its binding retirement was persisted, so later honest snapshots for the same binding were refused until a newer binding arrived. Exploiting that needed a compromised Gateway signing key; this matches the canonical protocol rule in packages/openclaw-id-protocol/src/freshness/freshness.ts.
  • Regression, red then green: the updated enrollment test (an ahead snapshot, then an honest one for the same binding) was pushed alone first. On the unfixed source, CI run 43185262747 failed exactly there: the ahead snapshot's facts were retained and the honest snapshot was refused with .rollback. It passes with the fix in this head's CI.
  • Periphery (comments only): the macOS dead-code intersection (run 43186473270) flagged this PR's new shared node API as unused by both apps, because nothing calls it until the Mac app wiring in feat(macos): enroll Mac nodes through OpenClaw ID invitations, with native hosting onboarding #196759 lands. The new declarations now carry // periphery:ignore commands naming that consumer, following the existing convention in OpenClawKit, and performIfActive drops its now-superfluous ignore. The unpackaged endpoint's protocol witnesses carry their own commands so the class-level ignore is not reported as superfluous. No code changed.

Earlier proof:

  • Mac Studio, isolated (Swift 6.4.2, macOS 27.2), at e0c7c2e94680 (before the three commits above): swift build --build-tests, then tests run under sandbox-exec with network, the real home directory, Keychain/preferences IPC, launchctl and open denied. Shared OpenClawIDNode suites 31/31 passed; macOS bridge suites (MacNodeOpenClawID*) 20/20 passed. No installed app, Keychain or profile was touched.
  • TypeScript/tooling: test/scripts/package-mac-app.test.ts 88 passed, 12 Darwin-only skipped on Linux; bash -n scripts/lib/mac-swift-build.sh and git diff --check clean.
  • Native packaging (previous head f7d7aec209da, patch-identical): scripts/package-mac-app.sh with OPENCLAW_IROH_NATIVE=1, release arm64, ad-hoc signed, failed before the staging fix (missing staged crate) and passed after it; the app verified with codesign --verify --deep --strict and exports 54 iroh FFI symbols.
  • CI: exact-head apple-node-native workflow and broad CI pass, including openclaw/ci-gate.
  • Review: a fresh independent full-diff Astra review of e0c7c2e94680 found one P2 (the binding-ahead snapshot above) and no P0/P1; it is fixed here, and a delta re-review covers the fix.
  • Mac proof gap for the new commits: the Studio became unreachable before the fix commit, so its Swift proof is the macOS CI apple-node-native run on this head (artifact-free and native-enabled shared suites plus the Swift–Rust loopback), not a fresh isolated Studio run.

Live evidence

Signed Personal Team build 2611000399 ran on a Mac Studio on 2026-11-11 against a real Gateway over OpenClaw ID. That build contained this foundation as part of #196759 (which stacks on #196445), plus fixes from #197421 (now carried by #197585) and the macOS packaging fix #197383 (landed f817a8b). Observed:

  • enrollment via invite plus owner approval;
  • node keys stored in the Keychain;
  • relaunch keeping the same node identity (restart refresh without a new invite);
  • node connected over the iroh tunnel (relay, then direct);
  • dashboard proxy through the tunnel.

Limits: that build is not this exact head and includes changes outside this PR, so it supports the foundation's real-device behavior but does not qualify this PR in isolation. Not covered: re-bind on a real device, sleep/wake, network change, in-place app update, TCC prompts, Intel Macs, iOS.

Known gaps

  • iOS app integration and device/simulator runtime are unproven; this PR's runtime lane is macOS-only. Intel runs are cross-built only.
  • Full unfiltered Swift suites, including Keychain/preferences tests, were deliberately not run against an operator's desktop state.
  • Two disclosed SwiftLint size advisories remain (GitHub-mode lint passes): OpenClawIDNodeVerifiedTarget.init has 8 parameters; OpenClawIDNodeEnrollmentTests exceeds the type body length.
  • Third-party license notices for the native crates remain a separate before-distribution gate.
  • fix(apple): follow an OpenClaw ID re-bind; J5 binding_seq cap; re-verify on redial #196445 (re-bind following) should land directly after this PR; it builds on the same trust code.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR adds opt-in Swift node enrollment, trust verification, native tunnel transport, and a private macOS worker bridge.

Example: An Apple node needs to reach wss://studio.example/ through OpenClaw ID.

  • Before: Shared Swift code has no OpenClaw ID enrollment or native tunnel adapter.
  • After: Opt-in builds provide those primitives, while durable enrollment and app integration remain unfinished.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful staged architecture and meaningful boundary tests, but required authority evidence is absent and two source-verifiable defects remain.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Partial
User problem: Apple nodes lack a native OpenClaw ID enrollment and tunnel path with separate node and worker access.
Reason: The supplied maintainer-authored classification establishes direction for this opt-in foundation; durable enrollment and app integration remain explicitly deferred.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep this maintainer-directed draft open: it provides distinct Apple transport foundations, but two correctness defects need repair and the explicit draft hold remains.

Priority: P2
Reviewed head: d95076cbaad161af54891a4882bae71a23486213
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this remain a draft until durable native-state enrollment is approved, or may the interface-only macOS foundation land separately?
  • Recommendation: Resolve durable enrollment first: Josh approves the native-state storage contract and its implementation scope before lifting the draft hold.
  • Why: The body explicitly reserves the storage decision and prohibits readiness or merge; no durable implementation or migration is present to settle that choice.

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise an admitted node and valid worker credential through the native adapter and remote ingress, then show unadmitted or revoked node keys and revoked worker credentials rejected before worker I/O, including queued work. Reported Swift-to-Rust loopback and passing macOS CI establish transport behavior, not these authorization outcomes; the app was not launched. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Accept the protocol's optional reset descriptor field (P2) - After an owner reset, the protocol retains optional reset evidence in the descriptor until the next binding change. A fresh invitation can correctly pin the new root, but this exact-field check throws malformed before verifying that root or the admitting snapshot. Current-main parseClawDescriptor accepts this field and verifyBindingForPin verifies normally when the served root matches the pin. Support the optional field while retaining strict validation and root-pin checks, and add a fresh-invitation regression using a valid reset-bearing descriptor.
  • Interrupt blocked writes before awaiting the close queue (P2) - If write A is blocked by peer backpressure and write B is queued behind it, self.writer is B. Close cancels B, but B is awaiting A's unstructured task value, which cancellation does not interrupt. The one-second deadline then waits for its operation child to finish awaiting B before the task group can return, so the reset in the catch block is never reached. With a live peer that stops reading, close and pending sends can remain suspended indefinitely. Reset the stream from the deadline cancellation path before joining the writer queue, and cover a blocked first write with a queued successor.
  • Resolve security concern: Final-effect admission and revocation remain unproven - The supplied evidence covers signed fixtures, mock admission responses, private socket behavior, and native loopback transport, but does not establish rejection of unadmitted or revoked identities before remote worker effects, including retained connections and queued requests.
  • Resolve merge risk - The transport owner must establish that unadmitted or revoked node keys and revoked worker credentials cannot reach remote worker effects through retained or queued streams.
  • Await maintainer action - Josh must resolve the durable-enrollment storage or staging decision and lift the explicit draft-only hold.

Findings

  • [P2] Accept the protocol's optional reset descriptor field — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeTrust.swift:63-65
  • [P2] Interrupt blocked writes before awaiting the close queue — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeWebSocketSession.swift:225-231
  • [medium] Final-effect admission and revocation remain unproven — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeWebSocketSession.swift:139

Tests

  • Missing end-to-end proof: Supply final-effect native enrollment and worker-access evidence covering allowed, unadmitted, and revoked principals, plus a blocked-write close regression; redact credentials and non-public endpoints.
Agent review details

How this fits together

Apple clients supply a node identity and invitation; shared Swift verifies Discovery evidence and carries node or worker traffic through the native iroh binding, with a private Unix socket adapting macOS worker traffic.

flowchart LR
  A[Node invitation and identity] --> B[Swift enrollment and trust]
  B --> C[Node tunnel owner]
  D[Gateway channel] --> C
  E[Private macOS worker bridge] --> C
  C --> F[Native iroh binding]
  F --> G[Remote Gateway ingress]
Loading

Technical review

Best possible solution:

Keep the existing trust, tunnel, and socket owners, accept valid reset-bearing descriptors without changing pins, and interrupt blocked writes before waiting for close cleanup.

Do we have a high-confidence way to reproduce the issue?

Source establishes rejection of valid reset-bearing descriptors and the blocked-write close cycle; no target code or tests were executed.

Is this the best way to solve the issue?

The staged Swift adapters coherently reuse the native binding and local socket owner, but descriptor parsing must follow the current protocol and close cancellation must release the actual blocked writer.

Full review comments:

  • [P2] Accept the protocol's optional reset descriptor field — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeTrust.swift:63-65
    After an owner reset, the protocol retains optional reset evidence in the descriptor until the next binding change. A fresh invitation can correctly pin the new root, but this exact-field check throws malformed before verifying that root or the admitting snapshot. Current-main parseClawDescriptor accepts this field and verifyBindingForPin verifies normally when the served root matches the pin. Support the optional field while retaining strict validation and root-pin checks, and add a fresh-invitation regression using a valid reset-bearing descriptor.
    Confidence: 0.99
  • [P2] Interrupt blocked writes before awaiting the close queue — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeWebSocketSession.swift:225-231
    If write A is blocked by peer backpressure and write B is queued behind it, self.writer is B. Close cancels B, but B is awaiting A's unstructured task value, which cancellation does not interrupt. The one-second deadline then waits for its operation child to finish awaiting B before the task group can return, so the reset in the catch block is never reached. With a live peer that stops reading, close and pending sends can remain suspended indefinitely. Reset the stream from the deadline cancellation path before joining the writer queue, and cover a blocked first write with a queued successor.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 31a65d5def1a.

Merge-risk options

Maintainer options:

  1. Establish final-effect authority enforcement (recommended)
    The transport owner demonstrates allowed access and rejection of unadmitted, revoked, and stale queued access through the real native transport and remote ingress owners.
  2. Retain the draft hold
    Keep this foundation unmerged until the state and lifecycle owners can supply the authority evidence.

Provenance checked

  • Shared package dependencies and native state keeps the original intent (bdf71d7: The shared package consolidated Apple offline storage under existing native state ownership; this diff preserves those dependencies and adds no competing database.)
  • Gateway transport role admission keeps the original intent (067edbc: The shared transport boundary supports lifecycle-safe Gateway work; the new role restriction is additive and defaults to unrestricted for existing conformers.)
  • Gateway upgrade headers keeps the original intent (7853aa3: Per-gateway proxy credentials are read at connection time and preserved on the upgrade request; this diff retains that request-based transport path.)

Testing

Proof path: in-process harness.

Security

Needs attention: The new node and worker authority boundary needs final-effect revocation evidence before merge.

Evidence

Security concerns:

  • [medium] Final-effect admission and revocation remain unproven — apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDNodeWebSocketSession.swift:139
    The supplied evidence covers signed fixtures, mock admission responses, private socket behavior, and native loopback transport, but does not establish rejection of unadmitted or revoked identities before remote worker effects, including retained connections and queued requests.
    Confidence: 0.96

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9948a4b adds apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayChannel.swift:97 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9948a4b83404; files: apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayChannel.swift)
  • NianJiu: Raw commit 067edbc adds apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayWebSocketTransport.swift:66 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 067edbcb2d66; files: apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayWebSocketTransport.swift)

PR surface

Source +2830, Tests +1530, Config +90, Other +110. Total +4560 across 28 files. Added test files: 6.

View PR surface stats
Area Files Added Removed Net
Source 19 2835 5 +2830
Tests 6 1530 0 +1530
Docs 0 0 0 0
Config 1 90 0 +90
Generated 0 0 0 0
Other 2 110 0 +110
Total 28 4565 5 +4560

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Build opt-in 1 new environment selector OPENCLAW_IROH_NATIVE=1 enables the native package and compile definition; ordinary builds retain the artifact-free path.

Labels

Label changes:

  • add P2: This is an experimental opt-in capability with bounded correctness defects and no existing application cutover.
  • add merge-risk: 🚨 security-boundary: Node identity and worker admission cross a remote authority boundary whose revocation behavior remains unproven at the final effect.
  • add merge-risk: 🚨 availability: Backpressure plus a queued WebSocket write can prevent close cleanup from completing.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: This is an experimental opt-in capability with bounded correctness defects and no existing application cutover.
  • merge-risk: 🚨 availability: Backpressure plus a queued WebSocket write can prevent close cleanup from completing.
  • merge-risk: 🚨 security-boundary: Node identity and worker admission cross a remote authority boundary whose revocation behavior remains unproven at the final effect.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof for unadmitted and revoked node keys and revoked worker credentials, including rejection of queued work before remote I/O.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 11:36 AM ET / 16:36 UTC.

@jalehman
jalehman force-pushed the openclaw-517/node-ffi branch from 031aad5 to 69e19a5 Compare November 7, 2026 19:52
@jalehman
jalehman force-pushed the openclaw-517/node-apple branch from ae4fc19 to 0304d77 Compare November 7, 2026 19:52
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts agents Agent runtime and tooling plugin: openclaw-id-access labels Nov 7, 2026
@jalehman
jalehman force-pushed the openclaw-517/node-apple branch from 0304d77 to b526fd9 Compare November 7, 2026 19:55
@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts agents Agent runtime and tooling plugin: openclaw-id-access labels Nov 7, 2026
@jalehman
jalehman force-pushed the openclaw-517/node-ffi branch from 69e19a5 to 7f9243b Compare November 7, 2026 20:24
Refs openclaw-517.7, openclaw-517.8
Retry uncertain enrollment delivery with identical signed redemption bytes. Keep default Swift consumers artifact-free and prove the native package in a dedicated Apple workflow.

Refs: openclaw-517.7, openclaw-517.8
Use the approved macOS-only packaging mode while iOS cross-compilation is blocked upstream. Preserve both macOS architecture builds and the default/native Swift checks.

Refs: openclaw-517.7, openclaw-517.8
Copy CryptoKit raw bytes into owned scratch before wiping the native handoff. Regression covers normal and throwing handoffs, stable public identities and signatures, and repeated seed delivery. Tracks openclaw-02e.
@jalehman
jalehman force-pushed the openclaw-517/node-apple branch from f7d7aec to e0c7c2e Compare November 12, 2026 07:53
@jalehman
jalehman marked this pull request as ready for review November 12, 2026 08:12
A Gateway-signed snapshot whose binding_seq exceeds the verified root-signed
binding was refused but still merged into durable trust, so later honest
snapshots for the same binding were refused until a newer binding arrived.
Refuse it before merging, keeping only the verified binding pin.
…ring for Periphery

The shared dead-code intersection flags the new node API because neither app
calls it until the Mac wiring lands. Ignore commands name that consumer; the
now-used performIfActive drops its superfluous ignore.
@jalehman
jalehman force-pushed the openclaw-517/node-apple branch from 2c5e770 to 87fe626 Compare November 12, 2026 09:33
@jalehman
jalehman merged commit 5fdbae5 into main Nov 12, 2026
114 of 116 checks passed
@jalehman
jalehman deleted the openclaw-517/node-apple branch November 12, 2026 10:37
@jalehman

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
* feat(apple): add node enrollment and tunnel foundation

Refs openclaw-517.7, openclaw-517.8

* feat(apple): add opt-in native node transport

Retry uncertain enrollment delivery with identical signed redemption bytes. Keep default Swift consumers artifact-free and prove the native package in a dedicated Apple workflow.

Refs: openclaw-517.7, openclaw-517.8

* ci(apple): validate native transport on macOS only

Use the approved macOS-only packaging mode while iOS cross-compilation is blocked upstream. Preserve both macOS architecture builds and the default/native Swift checks.

Refs: openclaw-517.7, openclaw-517.8

* fix(apple): retain independent node binding retirement

* feat(apple): persist node trust and refresh enrollment after restart

* fix(apple): accept reset descriptors and unblock queued close

* fix(apple): preserve node identity across native seed handoff

Copy CryptoKit raw bytes into owned scratch before wiping the native handoff. Regression covers normal and throwing handoffs, stable public identities and signatures, and repeated seed delivery. Tracks openclaw-02e.

* fix: preserve Apple node trust and worker download state

* fix: keep unshipped Apple enrollment schema at v1

* style(apple): normalize native node Swift formatting

* style(apple): use failable decoding for validated UTF-8

* fix(apple): validate raw hex bytes before UTF-8 conversion

* style(apple): document intentional lossy close-reason decoding

* fix(macos): stage native iroh package for app builds

* ci(apple): declare cache-free Node setup in the native workflow

* test(apple): a binding-ahead snapshot must not lock out honest snapshots

* fix(apple): refuse binding-ahead snapshots without retaining their facts

A Gateway-signed snapshot whose binding_seq exceeds the verified root-signed
binding was refused but still merged into durable trust, so later honest
snapshots for the same binding were refused until a newer binding arrived.
Refuse it before merging, keeping only the verified binding pin.

* chore(apple): mark the OpenClaw ID node API as consumed by Mac app wiring for Periphery

The shared dead-code intersection flags the new node API because neither app
calls it until the Mac wiring lands. Ignore commands name that consumer; the
now-used performIfActive drops its superfluous ignore.

* chore(apple): mark unpackaged endpoint witnesses for Periphery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant