Devbox identity design: identity means a personal device
Builder check (Astra) found Tailscale identifies device owners; both devboxes belong to one login. Requests from shared machines are anonymous.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/specs/2026-11-01-devbox-identity-design.md+25 −0
CI passed — run details
Intent
<task-notification> <task-id>bmy1qu943</task-id> <tool-use-id>toolu_013CYyAkhCV8BXijXdUtH4Xm</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/9b370a04-693c-4bda-b2eb-9a4b08f7626d/tasks/bmy1qu943.output</output-file> <status>completed</status> <summary>Background command "Commit design and run Astra builder check" completed (exit code 0)</summary> </task-notification>
Sure
Attributed to this commit: 9.37 g CO₂e (1,191,081 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-devbox-identity, 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/docs/superpowers/specs/2026-11-01-devbox-identity-design.md b/docs/superpowers/specs/2026-11-01-devbox-identity-design.md| index e129b37a1..82b8db559 100644 |
| --- a/docs/superpowers/specs/2026-11-01-devbox-identity-design.md |
| +++ b/docs/superpowers/specs/2026-11-01-devbox-identity-design.md |
| @@ -68,6 +68,7 @@ Anti-goals: |
| Tailscale is the one implementation. |
| - A socket target that lets one account point a link at another account's |
| socket. |
| +- One account on a shared machine borrowing the machine owner's identity. |
| ## 4. Decided |
| @@ -79,6 +80,10 @@ Paul, 2026-11-01: |
| tailnet, so sharing with a colleague keeps working. |
| - Automatic sign-in for apps is welcome later, not required ("either would |
| be fine"). |
| +- Identity means a personal device. Requests from a shared machine (the |
| + devbox itself, plus configured shared nodes) are anonymous, so a private |
| + link can't be opened from a browser on the devbox (Paul, after the builder |
| + check: "Sure"). |
| ## 5. Shape |
| @@ -103,6 +108,23 @@ module dependency (my call). |
| - A **tagged device** has no user login, so `Who` returns ok=false and the |
| request is anonymous. |
| +**Identity means a personal device.** Tailscale identifies the device's |
| +owner, not the person or Unix account using it. Both devboxes are listed |
| +under one person's login (`doc@`), so anything on a devbox would otherwise |
| +be identified as that person. So a request from a **shared machine** gets no |
| +identity: no headers, and allow-listed links refuse it. The shared machines |
| +are: |
| + |
| +- the devbox itself, meaning any request whose source is the address in |
| + `CARLOS_DEVBOX_LISTEN`, always; |
| +- every node named in `CARLOS_DEVBOX_SHARED_NODES`, a comma list of node |
| + names as the identity adapter reports them, such as the other devbox. |
| + The match is on the node, not the login. |
| + |
| +The adapter returns the node with the visitor so the edge can apply this |
| +rule. The rule lives in the edge, not the adapter, so another provider gets |
| +it for free (my call). |
| + |
| **Caching:** an answer is cached per remote address for 60 seconds, and a |
| failure for 5 seconds (my call). Tailnet addresses are stable per device, |
| and this keeps LocalAPI off the request path. |
| @@ -215,3 +237,6 @@ On the first devbox: |
| behaves the same. |
| 4. With tailscaled stopped, an allow-listed link refuses and an open link |
| still serves. |
| +5. A request made from the devbox itself (any account) carries no identity |
| + headers, and an allow-listed link refuses it, even one allowing the |
| + devbox's owner. |