devbox on macOS (#488) Task 1: draft copy rows DBX-C58..C92 (pending)
serve's usage, help and --env-file help; the environment file refusals (unreadable, open mode, wrong owner, bad line, duplicate key); the launchd socket refusals (not started by launchd, no such socket, more than one, not macOS, every interface, wrong address); and the runbook's macOS section, one row per sentence or heading. The gate's pinned inventory is now DBX-C1 to DBX-C92. None is built yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
approved_devbox_copy_test.go+4 −4docs/superpowers/plans/2026-10-30-devbox-mode-copy.md+51 −0
Intent
<task-notification> <task-id>a6d938b6d0d791c80</task-id> <tool-use-id>toolu_01VPZvdwoEzwcRG3sSeBbjJG</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/9b370a04-693c-4bda-b2eb-9a4b08f7626d/tasks/a6d938b6d0d791c80.output</output-file> <status>completed</status> <summary>Agent "Publish devbox skill to carlosframework.com" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>I stopped before opening a PR, so nothing was merged, shipped or promoted. `devbox` is not published yet. The sync as written can't publish it, and the deploy recipe differs from what you described. 1. **The sync skips `devbox`.** `hack/sync-skills.mjs` in the website repo has a hardcoded list, `PUBLISHED = ["getting-started", "building-carlos-apps"]`. Its comment says generic operator tooling stays out, as with `delegate`. Syncing skills at 8416ae47 therefore writes the same two skills and no `devbox`. Publishing it means adding `"devbox"` to that list and updating the comment, plus a few site pages (`src/index.html`, `src/start/index.html`, others) that mention "the two skills". That is a publishing-policy change, not just a sync. - The skills README names only `delegate` as plugin-only, so I think `devbox` is meant to be published. I haven't confirmed it with you. 2. **The deploy recipe is `carlos deploy`, not ship/promote.** AGENTS.md (the "Deploying" section) says to build a clean export of the merged commit, run `npm ci`, `npm run check` and `hack/cache-bust.mjs`, then: `carlos deploy --console https://console.carloku.com --account ops --app carlosframework --kind static --channel canary/rehearsal --version <sha> --no-prompt _site` It says nothing about `carlos ship` or `carlos promote`. It does say to record the previous version first and to check all three hosts, including `/docs/`. 3. **`carlos skills` reads the live index.** In the platform repo, `skills.go` fetches `https://carlosframework.com/.well-known/agent-skills/index.json`. So it will list `devbox` only after the site is redeployed with the new list. Two things for you to confirm: that I may add `devbox` to `PUBLISHED`, and that the deploy should be `carlos deploy` to `canary/rehearsal`. The scratch clone is removed. I created `$TMPDIR/website-4Awyjw` under `/home/paulca/.cache/tmp/claude-1001`, because `mktemp` directly under `$HOME/.cache/tmp` failed with a read-only filesystem. I left alone the other directories in `$TMPDIR` that I didn't create.</result> <usage><subagent_tokens>51518</subagent_tokens><tool_uses>9</tool_uses><duration_ms>61183</duration_ms></usage> </task-notification>
Seems fine to wait until it's released?
Attributed to this commit: 30.9 g CO₂e (4,032,218 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on devbox-macos, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/approved_devbox_copy_test.go b/approved_devbox_copy_test.go| index f68c56056..e3aac5603 100644 |
| --- a/approved_devbox_copy_test.go |
| +++ b/approved_devbox_copy_test.go |
| @@ -13,7 +13,7 @@ import ( |
| // checked with its helpers, so "applied" means the same thing in every gate: |
| // |
| // - TestDevboxCopyRecordIsComplete: the deck names exactly DBX-C1 to |
| -// DBX-C52; |
| +// DBX-C92; |
| // - TestDevboxBuiltCopyIsApproved: an id in devboxCopyBuilt is an approved |
| // row (a string reaches code only after Paul has approved it); |
| // - TestDevboxBuiltCopyIsApplied: a built row's text is in the file it |
| @@ -23,10 +23,10 @@ const devboxCopyRecordPath = "docs/superpowers/plans/2026-10-30-devbox-mode-copy |
| var devboxCopyIDPattern = regexp.MustCompile(`^DBX-C[1-9][0-9]*$`) |
| -// devboxCopyIDs is the deck's inventory: DBX-C1 to DBX-C57, pinned. |
| +// devboxCopyIDs is the deck's inventory: DBX-C1 to DBX-C92, pinned. |
| var devboxCopyIDs = func() []string { |
| - ids := make([]string, 0, 57) |
| - for i := 1; i <= 57; i++ { |
| + ids := make([]string, 0, 92) |
| + for i := 1; i <= 92; i++ { |
| ids = append(ids, "DBX-C"+strconv.Itoa(i)) |
| } |
| return ids |
diff --git a/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md b/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md| index 5986d4884..a26827f90 100644 |
| --- a/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md |
| +++ b/docs/superpowers/plans/2026-10-30-devbox-mode-copy.md |
| @@ -123,3 +123,54 @@ sit in code blocks under these sentences and are not copy. |
| | DBX-C55 | docs/site/cli.md | Publish a dev server or a folder as an HTTPS link on a shared devbox, for people on eg a tailnet. A live link follows your dev server on 127.0.0.1, so edits show up as you save. A folder link serves a copy of the folder, and sharing it again replaces the copy. | approved | |
| | DBX-C56 | docs/site/cli.md | If you work through an AI agent, run both the dev server and carlos devbox share outside the agent's sandbox. A dev server started inside the sandbox listens where the devbox cannot reach it, and the sandbox also stops the command from reaching the devbox service. | approved | |
| | DBX-C57 | infra/devbox/README.md | If you work through an AI agent, run both the dev server and carlos devbox share outside the agent's sandbox. A dev server started inside the sandbox listens where the devbox cannot reach it, and the sandbox also stops the command from reaching the devbox service. | approved | |
| + |
| +## macOS (#488): serve's environment file, the launchd socket and the runbook's macOS section |
| + |
| +Drafted 2026-10-31 for docs/superpowers/plans/2026-10-31-devbox-macos.md. |
| +`carlos devbox serve` prints these when it stops. The runbook rows are one |
| +sentence or heading each; commands, paths and the plist sit in code blocks |
| +under them and are not copy. |
| + |
| +More placeholders: `<env file>` the environment file's path as given to |
| +`--env-file`; `<line>` a line number in that file; `<key>` a variable's |
| +name, such as `CARLOS_DATA_DIR`; `<socket name>` the name of a socket in the |
| +plist's `Sockets` entry, such as `Listeners`; `<count>` a number; |
| +`<address>` an IP address and port, such as `100.64.0.10:443`. |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| DBX-C58 | devbox_cli.go | usage: carlos devbox serve [--env-file <env file>] | pending | |
| +| DBX-C59 | devbox_cli.go | serve runs the devbox service. its systemd unit or launchd daemon starts it, and nobody else needs to | pending | |
| +| DBX-C60 | devbox_cli.go | a file of KEY=VALUE lines to read before serving. blank lines and lines starting with # are skipped, and values are taken as written, with no quotes. a setting in the file replaces one already in the environment. the file must belong to this account, and only this account may read or change it | pending | |
| +| DBX-C61 | devbox_cli.go | could not read the environment file <env file>. check that it exists and that this account can read it | pending | |
| +| DBX-C62 | devbox_cli.go | other accounts can read or change the environment file <env file>. make it private with: chmod 600 <env file> | pending | |
| +| DBX-C63 | devbox_cli.go | the environment file <env file> belongs to another account. it must belong to the account the service runs as | pending | |
| +| DBX-C64 | devbox_cli.go | line <line> of <env file> is not KEY=VALUE, where KEY is letters, digits and underscores and does not start with a digit. each line must be a setting, a comment starting with #, or blank | pending | |
| +| DBX-C65 | devbox_cli.go | <key> is set twice in <env file>, on lines <line> and <line>. keep one | pending | |
| +| DBX-C66 | devbox_cli.go | CARLOS_DEVBOX_LAUNCHD_SOCKET is set, but launchd did not start this process, so there is no socket to take. start the service with launchctl, or unset CARLOS_DEVBOX_LAUNCHD_SOCKET to run it by hand | pending | |
| +| DBX-C67 | devbox_cli.go | launchd has no socket called <socket name> for this service. the Sockets entry in the plist and CARLOS_DEVBOX_LAUNCHD_SOCKET must use the same name | pending | |
| +| DBX-C68 | devbox_cli.go | launchd handed over <count> sockets called <socket name>, and the service serves on exactly one. set SockFamily to IPv4 in the plist | pending | |
| +| DBX-C69 | devbox_cli.go | CARLOS_DEVBOX_LAUNCHD_SOCKET is set, but only macOS hands over sockets this way. unset it, and the service binds CARLOS_DEVBOX_LISTEN itself | pending | |
| +| DBX-C70 | devbox_cli.go | launchd's socket listens on every interface, <address>. set SockNodeName in the plist to the tailnet address in CARLOS_DEVBOX_LISTEN | pending | |
| +| DBX-C71 | devbox_cli.go | launchd's socket listens on <address>, but CARLOS_DEVBOX_LISTEN is <address>. make SockNodeName and SockServiceName in the plist match it | pending | |
| +| DBX-C72 | infra/devbox/README.md | ## Install on macOS, once, as root | pending | |
| +| DBX-C73 | infra/devbox/README.md | On a Mac, launchd binds port 443 on the tailnet address as root and hands the open socket to the service. | pending | |
| +| DBX-C74 | infra/devbox/README.md | The service runs as its own user, so no carlos process runs as root. | pending | |
| +| DBX-C75 | infra/devbox/README.md | Follow these steps instead of the Linux ones above. | pending | |
| +| DBX-C76 | infra/devbox/README.md | Create the service user and its group, both called _carlos-devbox. | pending | |
| +| DBX-C77 | infra/devbox/README.md | It is a hidden account with no login and no home folder. | pending | |
| +| DBX-C78 | infra/devbox/README.md | Give both the same ID, a number below 500 that no user or group has yet. | pending | |
| +| DBX-C79 | infra/devbox/README.md | The commands below use 451. | pending | |
| +| DBX-C80 | infra/devbox/README.md | Create the service's folders: one for its data, private to the service user, and one for the registrar socket, which every account can reach. | pending | |
| +| DBX-C81 | infra/devbox/README.md | Create the log file as well, owned by the service user. | pending | |
| +| DBX-C82 | infra/devbox/README.md | Write the environment file, private to the service user. | pending | |
| +| DBX-C83 | infra/devbox/README.md | It holds this Mac's tailnet address, the devbox domain, the data folder and the AWS key for the certificate challenge record. | pending | |
| +| DBX-C84 | infra/devbox/README.md | The service reads this file itself, because every account can read a plist. | pending | |
| +| DBX-C85 | infra/devbox/README.md | Install the carlos binary and the plist. | pending | |
| +| DBX-C86 | infra/devbox/README.md | In the plist, replace 100.64.0.10 with this Mac's tailnet address, the same one as in CARLOS_DEVBOX_LISTEN. | pending | |
| +| DBX-C87 | infra/devbox/README.md | The service refuses to start if launchd hands it a socket on any other address. | pending | |
| +| DBX-C88 | infra/devbox/README.md | Create the IAM user, key and policy as in the Linux steps above, then load the service. | pending | |
| +| DBX-C89 | infra/devbox/README.md | If the tailnet is not up when launchd loads the service, launchd cannot bind the address. | pending | |
| +| DBX-C90 | infra/devbox/README.md | Once the tailnet is up, start the service again. | pending | |
| +| DBX-C91 | infra/devbox/README.md | Then add the DNS record and run the checks below. | pending | |
| +| DBX-C92 | infra/devbox/README.md | On a Mac, use lsof instead of ss to see what is listening, and read the log file instead of journalctl. | pending | |