Skip to content
Back to skills

Fennec Macos Development

BSecurity

Build, sign, publish, and debug the Fennec macOS companion, shared-channel session operations, UI state synchronization, Keychain access, cloud takeover, and CLI launch errors. Use for Fennec macOS development, version releases, or recurring signing, session latency, and takeover problems; not for unrelated Runta runtime work.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsrustgoswiftshellnodeexpressawstestinggitapi

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add runta-dev/fennec --skill fennec-macos-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fennec Macos Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fennec Macos Development
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/runta-dev-fennec-macos-development/badge)](https://www.skillsdirectory.com/skills/runta-dev-fennec-macos-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fennec-macos-development
description: Build, sign, publish, and debug the Fennec macOS companion, shared-channel session operations, UI state synchronization, Keychain access, cloud takeover, and CLI launch errors. Use for Fennec macOS development, version releases, or recurring signing, session latency, and takeover problems; not for unrelated Runta runtime work.
---

# Fennec macOS development

Preserve existing source changes, user credentials, cloud sessions, and unrelated processes. Do not rebuild credentials, reset model preferences, or blindly retry an uncertain launch.

For feature and bug-fix threads, write and review code, then push main without
running tests or compiling. Compilation belongs to the shared main batch
pipeline, and `fennec-macos-delivery` installs each successful package on the
user's MacBook in the background. After pushing, the coding agent waits with
`scripts/wait-delivered.sh <sha>`, verifies that the installed commit contains
its change, and reports resolved with the installed version and both commits.
Inspect and fix build failures yourself. Remain active during resource/offline
waits and report progress instead of failure. Do not add delivery statuses or
automatic installation-comment/follow-up scripts (FEN-907, user #4062). Do not
wait for scripted screenshots, an acceptance service or nightly. Complete tests run only in `Nightly tests`, whose
failures file their own fixes. This supersedes per-change build/test and
acceptance steps elsewhere in this skill (FEN-789, FEN-847).

## Release publication and user-controlled installation

For a requested version update or release, automatically finish publication to
GitHub Releases in `runta-dev/fennec` after verifying the artifacts. The user's
standing preference authorizes this publication; do not stop at CI artifacts or
a draft release, or ask again for permission to publish the requested version.

Build the intended merged main commit with `runta-dev/errand`'s
`fennec-release.yml`, passing its full `source_sha` and the intended `version`.
That workflow builds artifacts but does not publish them. Verify checksums,
provenance, signing and notarization, then publish the release with the full
installers, incremental-update components, component manifest, checksums and
provenance. Confirm the public latest-release feed exposes the intended version
and assets. Release notes must disclose known validation or performance limits.

Do not install release builds on the user's Mac, replace `/Applications/Fennec.app`,
invoke `update.install`, or restart the app/daemon to apply a release. The user
chooses when to click **Update**. Do not change their automatic-update preference
or trigger an update download or installation as a verification shortcut. Check
the public release feed and, only if needed, use `update.check` with
`{"download":false}` to verify discovery without downloading or installing.

The installation and restart procedures below apply to development builds when
local development testing is authorized. Release completion requires publication
and update-feed verification, not installation on the user's Mac.

To build and install a development build, use `scripts/dev-install-mac.sh <commit>`
(run it detached; see the comment at its top). It leases a persistent build slot
(`~/repos/runta-dev/fennec-build`, `fennec-build-2`, `fennec-build-3`) so Cargo
keeps its cache. Each slot has its own kernel lock, source snapshot and daemon
output. Slot 1 retains the old path and lock for compatibility. Capacity is
limited by measured capacity (one through five supported); disk and memory pressure defer
new work. `FENNEC_DEV_SLOTS` or `~/.cache/fennec-dev-install/slots` can lower
capacity. `FENNEC_DEV_PERSONAL_MAC=1` also requires 70% idle CPU. Installation
still serializes per machine and rechecks commit ancestry under its lock.
Build-only work never opens or restarts an app. Don't build in a fresh worktree
or with a separate `CARGO_TARGET_DIR`: the vendored path dependencies under
`desktop/vendor/` are fingerprinted by absolute path and rebuild from scratch.

## Reuse the local signing identity

Development builds must use the existing `Fennec Local Development` certificate in the user's login Keychain. Never switch back to ad-hoc signing or generate a new certificate for each build: changing the signing identity can make macOS request Keychain authorization again.

```sh
./scripts/create-development-identity.sh
go build -trimpath -o /tmp/fennec-local-build/fennec-daemon .
FENNEC_DAEMON_BINARY=/tmp/fennec-local-build/fennec-daemon ./scripts/build-macos.sh
codesign -dvv build/Fennec.app 2>&1 | grep Authority
```

The creation script is idempotent. It must return the existing identity rather than importing another certificate. The expected signature authority is `Fennec Local Development`. The packager defaults to this identity; `FENNEC_SIGN_IDENTITY=-` is only an explicit ad-hoc escape hatch, not the normal development workflow.

The first use of a newly imported private key may require the user to allow `/usr/bin/codesign` in the system authorization dialog. Do not bypass the dialog, weaken Keychain ACLs, or allow every application to read credentials. After that one-time authorization, rebuild once more and verify that signing finishes without another prompt.

The signing key and the Runta login token are separate Keychain items with separate ACLs. An existing `com.runta.fennec` token created by an old ad-hoc build can still prompt after the signing identity is fixed. Ask the user to choose **Always Allow** once for the current stable-signed app, then restart that app and verify silent credential restoration. Never claim this migration is complete based only on a successful codesign or a new build without a signing prompt.

Do not replace the certificate merely because `security find-identity -v -p codesigning` reports it as untrusted. A self-signed development certificate is not a Developer ID distribution certificate. Release builds still require a stable Developer ID Application identity and separate notarization/update verification.

## Restart without losing cloud work

When moving between Developer ID releases (including nightly) and local development builds, preserve only a credential helper signed by the **same leaf certificate** as the target daemon. A release helper copied into a locally signed bundle refuses the daemon with exit 77; the daemon stays signed out and never establishes its relay (FEN-531). Reuse the target identity's existing helper cache or a previously installed matching development helper. Do not re-sign a release helper, copy signing secrets between computers, or weaken its parent check. Validate every executable against the bundle's leaf certificate before installation; `codesign --verify --deep` alone accepts mixed identities. After restarting, read live `fen status` and verify authorization and `services.connector.stage`; `connector-status.json` can be stale from a previous daemon.

Self-signed certificates do not alone stabilize Keychain partition IDs: the login item can retain a cdhash partition even when its trusted-app requirement accepts the certificate. Credential operations now run through `fennec-credentials`, which validates its parent as Fennec signed by the same certificate. Preserve the cached helper binary across ordinary app rebuilds; compare its SHA-256 before/after. Recompiling the helper itself changes the Keychain access identity and can require authorization again. Do not reset credentials or loosen partition restrictions to hide this.

Build into a staging directory, verify the complete signature, stop the running Fennec app, then install the bundle at the existing canonical path. Never overwrite running signed binaries in place. Verify credential restoration after the new app starts; a successful build proves neither Keychain access nor broker readiness.

UI and Go control-plane artifacts must come from the same source snapshot. Never update only the native UI while reusing a Go artifact without its new methods. Packaging runs `cmd/check-control-contract` against UI method calls and writes the signed binary hash to `Contents/Resources/control-build-id`. `fen start` validates the running backend's build ID and replaces stale LaunchAgents serially. Restarting the UI alone does not update the backend; exercise the new interface after installing instead of treating an open app as acceptance.

Fennec.app does not bundle Fennec CUA or Chromium; they ship as separate `fennec-cua-v*` releases. Do not add them back to the bundle: Chromium made the DMG about 170 MB instead of about 40 MB.

Auto-updates use the component manifest next to the full ZIP. With no nested components (the current bundle), the updater downloads the full ZIP, which is about the size of the core. `scripts/package-release-macos.sh --dry-run` builds every release archive locally (local identity, no notarization, nothing published) and reassembles the bundle from them to prove it matches.

Stop only the task-owned Fennec application process, then open `build/Fennec.app`. Do not terminate remote Herdr sessions or assume application restart deletes cloud work. Reinstall shims only if their daemon path is stale.

After restart, inspect:

- `~/.config/fennec/preparation.json` for preparation stage and runtime ID.
- `~/.config/fennec/route-results.json` for each agent's actual route status.
- `~/.config/fennec/connector-status.json` for a live connector.
- `fen daemon status` and `fen takeover` for the independent Go service and active takeover. Broker and connector lifecycle now live in that process.

Do not call the app fully ready solely because it launched or the connector is connected.

## Diagnose takeover before launching

Reuse any existing cloud agent binary. Install the publisher's `latest` stable release only when the cloud binary is missing; do not query or upgrade an already installed agent during preparation. Never synchronize, compare or require the local CLI's exact version for a new cloud session. The local executable is only a discovery target. Existing sessions retain their original executable; staged installation and atomic alias replacement protect them from failed first-time installations.

`Waiting for cloud takeover` with an enabled switch can be a stale preference, not an active broker. An agent is eligible only when its route status is `configured`. If it is not configured, the UI must show that reason instead of claiming takeover is pending.

Normal preparation synchronizes credentials and model configuration and verifies configuration readback. Do not send inference probes or use provider quota, temporary rate limits, or model-catalog health to gate TUI startup. Inference probes belong only in explicitly requested diagnostics; model request errors are presented by the agent during actual use.

Use a fresh, valid `provider/model` route when the configured model has actually been removed. Do not silently fall back to local execution or invent a replacement. Verify the resulting route becomes `configured` and that `launch-broker` is running.

## Session operations must reuse the resident channel

One Go daemon manages the user's shared cloud machine. UI and CLI share the control plane. Inspect the actual transport for launch, resume, stop/kill, read, send, and list/refresh; optimizing startup alone is insufficient.

- Normal operations reuse the daemon-owned SSH connection **and resident protocol channel**, with identity, runtime ownership, and host keys already verified. Reusing ControlMaster but executing a fresh `ssh ... sh -s` each time still creates an exec channel and is insufficient.
- Do not repeat `OwnedRunningRuntime → Connect → NewSession` in UI handlers, CLI subcommands, or post-click refreshes. The daemon coalesces verification/reconnection only for first connection, account/runtime changes, or a failed connection. Never remove identity/host-key checks for speed.
- Resident-channel operations are typed, carry request IDs, and have independent replies. Slow sessions must not block peers. Stop verifies the remote `fennec.session` label against the target and confirms completion. Failure or a lost reply must not automatically retry a mutation through another path.
- Confirmed operations update daemon cache and UI directly. Remove a stopped row immediately without another remote list; retain it with an unconfirmed state after failure. Revisions/generations must prevent stale refreshes from resurrecting it.
- Trace Go handler, IPC, remote protocol, and UI callback when changing an operation. New protocol capabilities require compatibility handling and updated running daemon/remote artifacts. Source edits alone do not prove deployment.
- Model switching (`model.set` for both Magpie and native modes) is a warm interactive operation and must also stay ≤500 ms end-to-end: send a single synchronous resident-channel RPC (`reconcile_routes` or `native_model_set`), update already-wired agent config files atomically in Go under `magpie-config.lock` after verifying `/v1/models` rather than cold-spawning `magpie` + Bun (~460 ms per subprocess) or triggering a full `controller.Reconcile` runtime preparation cycle, and update `route_results` / UI state directly from the confirmed reply.
- When invoking the Magpie CLI to set an agent's model during first-time wiring, always specify the explicit `model` field (`magpie <agent> model <provider/model>`); two-argument `magpie codex <provider/model>` can hit `subagent` instead of updating the primary model.
- Synchronize all `@magpie-community/*` plugins dynamically along with `migrations.json` and `plugin-providers.json`, normalizing `@latest` specs to the remote pinned version before byte-comparison so full vendor model catalogs survive cloud egress `403`s without bouncing `magpie serve` on unchanged syncs.

Distinguish click/CLI-to-confirmation wall time, resident-channel round trip, remote execution, and confirmation-to-UI-update time. Use labeled test sessions created by the task; never stop user work. Exercise stable/reconnecting error semantics, concurrency, and late refreshes. A warm channel must not create new SSH processes or exec channels. `cmd/profile-stop` measures fresh SSH, resident channel, and actual local CLI paths. State each boundary; transport-only measurements are not UI end-to-end latency.

Recorded incident: the same remote stop took about 6–10 ms; fresh SSH took 4.01–4.36 s; the resident channel took 274–282 ms. The old UI then waited for another full remote list. These are measurements from that run, not fixed guarantees; retain the structural constraints above.

Run `make test-e2e-ops` against the installed paths. Each warm operation sample must be ≤500 ms. Measure cold SSH separately (about 4 seconds, gate 5 seconds). Errors, invalid responses, timeouts, and over-budget samples must exit nonzero. Do not substitute averages, cached lists, or receipts for remote refresh/input-ready TUI, or shorten timeouts to manufacture speed. Failed end-to-end gates leave the performance goal incomplete. Ordinary unit tests do not connect to the user's machine; the explicit live target fails when login/runtime prerequisites are missing instead of skipping and claiming success.

## Count round trips, then remove them

The cloud link costs about 170–200 ms per round trip, so latency work is round-trip accounting, not CPU tuning. Before optimizing, trace one operation and attribute every wait to a round trip, a transfer (the link moves roughly 130 KB/s), or remote work. `ssh -vvv` with a timestamp per line shows the SSH phases (`session request sent` → `master session id` is the channel open; → `Received exit status` is the command). Then remove round trips structurally; never claim a budget from averages that hide them.

**Cloud-to-Mac commands take one round trip.** Agents keep plain `ssh <device alias> command` (and scp, rsync, sftp, `-L`); do not invent another client or syntax. SSH itself needs two round trips per command even on a ControlMaster connection, because a command can only be sent on a channel the Mac has confirmed (the request carries the Mac's channel number). The device alias therefore uses `ProxyCommand fennec-terminal mac-relay <device> %p` (`internal/localssh/mac_relay.go`):

- The ssh client's handshake and channel opens end at the relay on the cloud computer, so they cost no link round trips; ControlMaster (`ControlPath ~/.ssh/fennec/relay-v2-%C`) keeps that local connection.
- The relay holds one SSH connection to the Mac and keeps two session channels already confirmed there (prewarmed transport channels, not agent processes). A command takes one and sends `exec` at once: one round trip plus Mac execution (measured 216–240 ms, from ~400 ms with ControlMaster alone and ~1.5 s without). A replacement channel opens in the background.
- Channel requests, data, stderr, EOF and exit status pass through unchanged; `direct-tcpip` channels are relayed as is. An unreachable Mac answers like ssh does: the reason on stderr and exit status 255.
- The Mac side is unchanged: it still checks pairing, approval, sandbox and audit for every command. The relay verifies the Mac's host key from `~/.ssh/fennec/<device>.known_hosts`; ssh verifies the relay's own key (`relay_host_key`, trusted as `fennec-relay` in `relay_known_hosts`, created at alias registration). The relay accepts only the device identity key.
- The relay serves a ControlMaster that outlives the client that started it: it ignores SIGHUP/SIGINT/SIGPIPE and stops on end of stdio or SIGTERM. Nothing may be written to its stdout except the SSH stream.
- Relay cancellation is terminal: close both stdio directions, the local SSH connection, the Mac connection and pooled channels, including during handshake or dialing. A canceled relay must never keep the ControlMaster alive to report every subsequent command as an offline Mac. Close channels opened concurrently with shutdown instead of publishing them to the pool.
- A temporary Mac disconnection is different: keep the relay context alive, forget the failed upstream connection and let a later command reconnect with the same host-key and identity checks. Never replay a command whose exec request may already have reached the Mac; its outcome is uncertain. Keep this distinction covered by cancellation, SIGTERM subprocess and recovery regressions.
- When the transport behind an alias changes, rename its ControlPath, or ssh keeps using old masters for up to `ControlPersist`.
- The alias config is written by the cloud binary when the connector registers. If registration runs before the cloud terminal service is upgraded, the old config stays until the next reconnect; check `~/.ssh/fennec/<device>.conf` on the cloud after an install instead of assuming.
- Test SSH relays with a buffered socket pair, not `net.Pipe`: both SSH ends send their banners first and deadlock on an unbuffered pipe. Inject link latency and assert the round-trip count (a command under 1.5 round trips), not just correctness.

The same accounting applies to other paths. The ChatGPT bridge sends the WebSocket upgrade together with the socket open and replays the app-server's last 101 response so ChatGPT's first request follows immediately; `codex app-server` drops a connection whose upgrade request arrives in the same read as frames, so the cloud filter forwards the request head alone and holds frames until the app-server answers (advertised as `codex_app_server_early_input`; the Mac only answers early for services that advertise it). Results that are expensive to produce and rarely change (`mcpServerStatus/list` starts every MCP server, including node_repl on the Mac) are served from a store validated by the config they depend on and refreshed at most every few minutes, never on every request. Bandwidth-bound responses (a large thread's command output) cannot be fixed by compression levels; report them rather than truncating what users see.

## Product UI and internal diagnostics

### UI copy and controls

- Production UI has no Uninstall Fennec or Delete cloud computer entry or dialog. Both `fen uninstall` and `fen cloud` remain internal clean-macOS test-preparation CLI tools only, never exposed on Settings, Account, or Sessions UI.

- On first initialization, enable Magpie only when it is actually installed; otherwise disable it. Saved choices always take precedence. Configuration/cache remnants are not installation evidence, and a user's explicit off choice must not be automatically reenabled.
- With Magpie off, expanded agent panels show native account and real subscription information regardless of local/cloud location. Missing migratable credentials are normal signed-out state on the agent card, not a global Sessions credential error or ineffective retry.
- With Magpie on, show Magpie model choices separately from native subscription state. Never infer or fabricate plan, usage, or remaining quota when those data are unavailable.

- User-facing UI copy has no sentence-ending periods, including labels, descriptions, tooltips, states, errors, dialogs, and every translation.
- Rewrite multiple sentences as phrases, commas, or separate lines. Normalize sentence periods across languages, including ASCII `.`, while preserving dots in versions, URLs, filenames, code, and verbatim terminal output.
- Example: `Choose any model for your cloud agents`; keep the same concise meaning in localized resources.
- Effort sliders follow Magpie's thin gray track, discrete ticks, and white circular thumb, adapted to Fennec typography, spacing, theme, and keyboard focus. Do not use the browser's thick orange default track.
- Use medium weight (`font-weight: 500`) rather than heavy bold (`600` or `700`) for UI titles, section headings, onboarding headlines, badges, and emphasized metric values, matching `nav button.selected`, `.agent-name`, `.settings-title`, and `h2`. Always override browser default `700` when using `<strong>`.
- Keep surfaces flat and single-layer (`var(--card)` on `var(--bg)` with `1px solid var(--line)` hairlines). Do not stack nested cards inside outer wrapper cards, apply heavy drop shadows/glows, or overuse accent yellow/orange badges on non-focal metadata.
- Let the UI explain itself: saving models or changing settings updates the original control's selection, disabled state, or local loading state. Do not add global notices narrating the operation, such as a saving-model message.
- Async feedback must not shift layout. Preserve control/container dimensions, spacing, and positions. Reuse reserved icon space for loading; do not insert status rows, add/remove placeholders, or resize buttons as text changes.
- Prevent duplicate saves. Show server-confirmed state after success; restore actionable controls and concise recovery after failure. An unconfirmed choice is not saved state.
- Compare before, in-progress, success, and failure states on the actual UI, checking the whole panel for movement. A static screenshot is insufficient.
- Never embed 1 Hz volatile telemetry (`runtime.metrics` `sampled_unix_ms`) inside `state.get`: invalidating `lastState` every second recreates session/agent DOM controls mid-click and drops button clicks. Poll live telemetry on its dedicated RPC and memoize session lists before replacing rows.
- In Swift/AppKit bridges, never write `done?(NSWorkspace.shared.open(url))`: Swift optional chaining skips evaluating argument expressions when `done` is `nil`. Always evaluate the side effect into a `let` binding first (`let opened = NSWorkspace.shared.open(url); done?(opened)`).
- After interactive browser OAuth (`account.login`), automatically bring the Fennec popup back to the foreground (`makeKeyAndOrderFront` + `NSApp.activate`) when `authorized` transitions to `true` so the user sees the onboarding flow immediately.

Do not turn engineering defects such as `CLI integration needs repair`, raw RPC/daemon codes, or missing interfaces into user tasks. Restored switches, asynchronous preparation results, and actual entry checks are different facts: a missing result is not proof of damage. The daemon deduplicates checks and repairs automatically, with details in private diagnostics. Preserve valid UI data and use loading during normal recovery. Offer actions when the user actually needs to sign in, authorize, or choose a model. Fix the cause and add regressions; deleting error copy alone is insufficient.

## Preserve actionable launch errors

Interactive cloud launches show only a transient single-line spinner with no text on stderr and erase it before attaching the agent. Do not print session IDs, reconnect commands, phase logs or other debug text during a successful launch. Pipes and noninteractive shells stay silent; failures retain a concise actionable error. Preserve terminal raw-mode handoff by clearing the animation before `exec`.
When detaching via `Ctrl+C` / `Ctrl+D` / `Ctrl+\`, print `Session detached.` and `fen attach <id>` only after `terminalstate.Restore` has sent `\x1b[?1049l` and restored cooked terminal mode, never before exiting the alternate screen buffer.

Do not replace broker or project-launch failures with only `launch not confirmed`. Preserve the safe underlying error through `internal/launcher/broker.go` and `internal/cli/launch_broker.go`. Never include API tokens, credentials, or unbounded server responses in these errors.

A pending launch journal entry has an uncertain outcome. Inspect the corresponding cloud session before retrying; do not delete the journal or repeatedly create replacement sessions. If a receipt exists, reconnect to that session.

## ChatGPT bridge resilience

ChatGPT fails every request waiting on a connection attempt that does not complete its WebSocket handshake (it gives up after about 15 s), and a failed `permissionProfile/list` leaves the composer blocked with "Permission mode is unavailable" until ChatGPT restarts; it never refetches. The bridge therefore answers the handshake at once from the remembered app-server 101 (persisted in `~/.config/fennec/chatgpt.json` with `early_input`) and holds ChatGPT's requests while the cloud is unreachable, replaces a cloud stream that fails before its receipt and replays the bytes already sent, and the resident channel is retired after 45 s without a pong. ChatGPT also gives every request 30 s from the moment it sends it (a timed-out `configRequirements/read` shows "Timed out waiting for MCP response to configRequirements/read"), and once the bridge has answered `initialize` locally ChatGPT sends its startup reads at once; so side-effect-free startup reads (`configRequirements/read`, `permissionProfile/list`, `config/read`, `account/read` without a token refresh, `model/list`, `collaborationMode/list`, `experimentalFeature/list`, `skills/list`, `hooks/list`) are answered from the app-server's last answer to the same request (kept per app-server mode in `~/.config/fennec/chatgpt-reads.json`) when the cloud has not answered within 3 s on a held connection or 20 s on an established one, and the app-server's late answer is dropped. Never answer requests with side effects, or reads without a remembered answer, this way. Never make a ChatGPT connection attempt fail fast (503, close before the handshake) while the cloud is only temporarily away. After any close ChatGPT reconnects by itself (1 s, then 2, 4, 8, 16, at most 20 s apart, without limit for its local host) and initializes again, but it neither fails nor resends requests that were in flight on the closed connection: each fails after its own 30 s, and a timed-out `configRequirements/read` shows a blocking error box (ChatGPT stops reconnecting while it is up) and then quits. A handshake answer that ChatGPT cannot parse (`Parse Error`) also stops its reconnects for good. So a stopping daemon drains the bridge before anything else stops (`internal/cli/chatgpt_drain.go`): it stops accepting, lets every request in flight get its answer over the still-open cloud link (at most 3 s; startup reads still waiting then get their remembered answers), and closes each connection between whole messages with WebSocket close 1012. Keep that order in `serveControl`, and keep the restart gap (old daemon closes, new daemon listens) at about a second.

## Verification

Run focused tests for changed packages and `make check-ui`. macOS lacks GNU `flock`, so Linux-specific setup tests can fail locally; report that boundary rather than treating it as a regression or weakening production locking.

Preparation timing: `touch ~/.config/fennec/launch-profile.enabled` records `prepare.*` stages (connect, native_gather, install.<step>, accounts.sync, route.<agent>) in `~/.config/fennec/launch-profile.jsonl`. The cloud SSH gateway can drop to ~80 KB/s, so never add large uploads to the preparation path. The terminal service upgrades as a zstd patch against the binary already on the cloud (`fennec-terminal apply-patch`, last upload cached in `~/.config/fennec/terminal-cache`, SHA-256 verified, full upload only as fallback); keep that path working when changing the installer.

For a manual cloud terminal deployment, check the guest's `uname -m` and build
with explicit `CGO_ENABLED=0 GOOS=linux GOARCH=amd64` for x86_64 (or `arm64` for
aarch64). A build invoked through the Mac relay defaults to macOS even when the
request originates on Linux. Verify the local artifact is an ELF for the guest
architecture, upload into a content-addressed staging directory, verify its
SHA-256, and execute the staged binary's `protocol-version` on the guest before
atomically switching the stable symlink. A checksum alone does not prove the
guest can execute it. Retain the previous target for recovery. If deployment
causes `Exec format error`, restore that target without killing agent sessions,
then verify resident-channel refresh and a live read of an existing session.

Native sync conflicts (a file changed on both computers) must resolve without blocking preparation where the semantics are clear: settings merge with local preferences winning, the Claude profile keeps cloud runtime state plus the Mac identity, and OAuth credential files keep the copy with the later expiry (per provider for Pi and OpenCode). Kimi Code (`KIMI_CODE_HOME`, cloud copy in `native/kimi`) syncs its OAuth file like Claude and Codex (same grant: later `expires_at`, in seconds), its one-word region file, and a filtered config.toml whose `providers`/`models` tables merge by entry so the cloud Magpie gateway's entries survive. Only truly undecidable cases may fail.

Between preparation syncs the daemon keeps the shared OAuth grants in step live (`internal/cli/credential_sync.go`, `internal/setup/native_credential_sync.go`). Mac changes are detected by kqueue on the auth files and on `login.keychain-db`, then by the Keychain item's `mdat` attribute (attributes only, never the secret), and pushed with one `native_credential_set` resident-channel operation that reuses the preparation baseline, lock and conflict rules. A long-lived `native_credential_watch` (inotify on the cloud) returns cloud refreshes; the Mac applies `ResolveMacCredential` (same rules), moves only the grant fields, writes Keychain items through `security -i` on stdin (never argv; lines over 4000 bytes are refused because `security -i` truncates them) and files atomically under the agent's lock, then pushes the result back. Queued names are pushed after a reconnect; a refused Keychain update is never retried. Diagnostics carry names only.

Before reporting success:

1. Confirm the app uses `Authority=Fennec Local Development`.
2. Rebuild and observe no repeated private-key authorization prompt.
3. Confirm the requested agent route is `configured`, connector is connected, and launch broker is active.
4. Exercise a noninteractive command such as `codex --version` through the normal login-shell PATH. Argument validation alone does not prove a cloud launch; an `ls` of the local directory is also not remote evidence.
5. Report any unverified interactive terminal behavior separately.

Standalone `codex --version` is explicitly dispatched locally by `LocalQuery` and does not verify cloud execution. For cloud acceptance use `fennec-daemon run-agent codex --version`, or obtain a real launch receipt through the broker and verify the corresponding remote Herdr session and output.

## Current interaction requirements

- Use `make preview-ui` for visual iteration instead of rebuilding/installing a DMG each time. It reads UI source and uses isolated display fixtures, not real account authorization or performance evidence.
- Governance has exactly three user-facing permission presets in a compact select: `Ask for approval`, `Approve for me`, and `Full access`. Preserve the Seatbelt boundary and writable folders. Do not recreate the historical read-only/workspace segmented control or expose `sandbox_network` as an independent switch. UI, CLI, and tests send or read `permission_mode`; keep legacy `sandbox_mode` only as a read-only compatibility projection.
- Permission modes follow Codex (`codex-source/codex-rs`), not Fennec heuristics. `Ask for approval` and `Approve for me` share one workspace sandbox (write project roots and temp, read everywhere except `sandbox.ProtectedPaths` credentials, no network, `.git`/`.agents`/`.codex`/`.aws` read-only) and differ only in reviewer. Ordinary commands run sandboxed without review. Agents request escalation with `fennec-escalate --reason "…" -- <command>` (advertised in stderr after a sandbox denial, like Codex's on-request instructions); forced `rm` is also reviewed. `Ask` asks the user; `Approve for me` runs Codex auto-review the way Codex's guardian sub-thread does: a direct Responses API call (`internal/guardian`: `POST chatgpt.com/backend-api/codex/responses` over SSE with the local `~/.codex/auth.json` sign-in, developer-message reviewer policy copied verbatim, `json_schema` output with `strict:false`, `codex-auto-review` model plus `x-codex-guardian: reviewer`, low effort, `prompt_cache_key`, 401/expiry token refresh written back under `auth.lock`, 90 s deadline, fail closed, 3/10 denial breaker). Never shell out to `codex exec` for reviews (seconds of cold start and no reviewer header); `FENNEC_LIVE_REVIEW=1 go test -run TestLiveResponsesRequest ./internal/guardian` checks the live request and asks the user only when the local Codex sign-in is missing or out of usage (remembered for 5 minutes) or the breaker tripped; a denial returns the rationale to the agent without asking, plus a hint that the user can still allow it. Activity shows the agent's `--reason` on each row; auto-review denials and timeouts offer an `Allow` switch (like a denied app in macOS Privacy) that stores a device+command hash in `~/.config/fennec/ssh/allowed_commands.json`, after which that exact command from that paired device runs without review (`user_allowed`). Clearing device trust clears these grants. Approved escalation runs with full write and network but keeps credential deny-reads, except that `~/.ssh` may be listed and its public material (`*.pub`, `config*`, `known_hosts*`, `authorized_keys*`) read; private keys stay unreadable and `~/.ssh` stays read-only. Agents run `fennec-escalate --reason "…" -- '<quoted command>'` on the cloud computer (`~/.local/bin`, forwarded to the paired Mac via `ssh machine`). The relay keeps 8 idle bridges and replaces a claimed one immediately (up to 64 concurrent), so long-lived desktop MCP connections never starve commands. `Full access` never asks and, by explicit user decision (diverging from Codex's forced-`rm` rule), refuses only catastrophic deletions (`sandbox.IsCatastrophicDeletion`: recursive or forced `rm` of `/`, home, top-level system directories, or unresolved `.`/`..`/`*`/bare-variable targets); forced deletion of temp and project files runs. Never reintroduce keyword lists to decide what is unsafe.
- When the user points at a reference UI (Codex, ChatGPT, etc.), copy its real assets and tokens instead of drawing approximations: extract the SVG paths and color tokens from the installed app bundle (for Codex desktop, `npx @electron/asar extract /Applications/ChatGPT.app/Contents/Resources/app.asar` and search the strings near the menu copy). The permission popover uses the Codex hand / shield-terminal / shield-alert icons filled with `currentColor`, a muted title row, neutral icons, and only `Full access` in the warning color (`#923b0f` light, `#ff9e6c` dark). Do not apply generic stroke icon CSS to filled icons.
- Governance reuses the Account tab's card pattern instead of inventing its own: `billing-card` + `billing-row` (16px muted stroke icon, 12px label, value/control right) for Permission mode, and a `runtime-metrics-card` header (icon, 500-weight title, gray `runtime-metrics-spec` chip on the right) for Activity, with dividers inset to the card padding. The Activity chip is the `All ⌄` filter (counts in its menu), invisible until there is activity. Empty activity is one quiet row inside the card; `Clear activity` is the last row of a non-empty list. No group titles outside cards, info tooltips, segmented tabs, duplicate count badges, or large empty-state cards. Compare new tabs side by side with Account before shipping. Menus highlight rows only on hover/keyboard focus.
- Custom select triggers keep separate slots for icon and `.field-value`; never write labels via `querySelector('span')` after prepending an icon. Labels use `[[i18n:key]]` tokens so the locale observer keeps triggers and menus in the active language. Code that assigns `select.value` without a `change` event must resync the trigger (`syncPermissionTrigger`). Verify with `make preview-ui` screenshots in light/dark and two languages, with the menu open, before installing.
- Account cards are informational once signed in: no Sign in again or account-switching controls. When signed out, Sign in delegates to the native agent through the existing browser-session channel, not an embedded account-management screen.
- Background reads and temporary connection states must not trigger generic failure/Please retry toasts. Fix the cause, retain valid content during recovery, and keep actionable feedback near the affected control.
- Governance and security audit UI must speak in user terms and let the UI explain itself: never expose raw `sandbox-exec` / `Seatbelt` kernel strings, stderr dumps, process exit codes, internal subsystem tags (`EXEC` / `SFTP` / `TCP` / `HOOK`), `[REDACTED]` log tokens, or millisecond debug timings to end users.
- Everyday interactions, including model-catalog loading and Magpie switching, have a 1-second end-to-end budget. Retain the stricter 500ms warm-session gate and measure cold SSH/initial setup separately. Data availability or applied configuration is the endpoint; early receipts, preview fixtures, stale caches, or shortened timeouts do not prove success.
- Cloud agent model selection (`model.set`, enforced in `make test-e2e-ops`) shares the strict ≤500 ms warm operation gate end-to-end to verified remote configuration readback.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.