Repository navigation
Open
Labels
Description
Xum created this issue on behalf of @ibetitsmike.
Part of moving the pstack lead ("Pstack General", Xum workspace 8ac7791132) to a Coder Agents chat on this fork. This one is setup on Mike's Mac and not a chatd feature, and it needs Mike's decisions.
Gap
The lead and ops run on the Mac itself. A Coder Agents chat runs in a Docker workspace in the Colima VM and reaches none of this. Bash calls that touch host-only resources, from the Xum transcripts:
| Resource | Lead (of 3729) | Fork ops (of 6017) |
|---|---|---|
gh as Mike (181 lead calls contain gh pr merge) |
1752 | 513 |
~/Library/Logs/coder (autodeploy and server logs) |
341 | 427 |
psql on the daily database |
225 | 623 |
coder-local (status, build, use, rollback) |
147 | 774 |
| Colima and Docker on the host | 97 | 1285 |
launchctl |
32 | 101 |
Other agents' scratch files (evidence checked by shasum) |
157 | 636 |
Known limits of a workspace today:
- The workspace GitHub token (
coder external-auth access-token github) can push branches but cannot delete them. Whether it can merge pull requests, edit issues and post the@codex reviewcomment has not been tested. - The daily server answers at
host.docker.internal:3000from a container, but logs,launchctlandcoder-localdo not exist there. - Colima has 6 CPUs and 12 GB of memory. The Xum workspaces share 30 cores and 256 GB, and ops already limits Go runs in Colima to one at a time.
- The UAT server on
:3100and its swap procedure are host-side.
Decisions for Mike
- How the lead and ops reach the host: a narrow host bridge (read-only health, logs and
coder-local status, plus named actions such as "pause autodeploy"), SSH from the workspace to the Mac, or ops stays in Xum and only the lead and the workstreams move. - Which GitHub credential the lead uses to merge.
- How much CPU, memory and disk Colima gets.
Wanted
- A
pstack-leadtemplate or workspace withgh, the fork checkout and the chosen host reach. - A tested list of what the lead's GitHub credential can do: merge with
--match-head-commit, edit issue pstack parity: tracking #4, comment, delete a branch. - The post-deploy health check from the lead's runbook (buildinfo, migration version, anonymous 401 probe, server log errors) runs from the workspace.
Acceptance
- From a chat in that workspace, the health check prints the same values as on the host.
- A test pull request is merged from the chat with the head commit pinned.
Activity
ibetitsmike commentedon Nov 12, 2026
Tracked in #255.
ibetitsmike commentedon Nov 12, 2026
Decision 1 (host reach), from Mike on 2026-11-12: the lead that redeploys and monitors operates on the Mac itself through the Coder agent binary, as a workspace with an externally managed agent. The chat's tools then run on the host like in any Coder Agents workspace. No host bridge and no SSH.
What the code on
mainalready does:coder_external_agent. When that agent is not connected or is offline, the turn fails with a message that asks the user to start it on its host (coderd/x/chatd/chattool/external_agents.go:20-25,turn_environment.go:1782).create_workspacerefuses such templates (external_agents.go:15), so the workspace is created once by hand and the lead chat is started on it withworkspace_id.spawn_agentwithisolation: "workspace"fails from such a workspace (docs/fork/pstack-adapter.md, Workspace isolation).sharedandworktreechildren run on the host.Work that follows from the decision:
coder_external_agenton the daily server (it has onlydockeranddevcontainertoday) and one workspace from it, for examplemac-host.coder-local buildembeds a darwin slim binary or only the linux ones.PATHand environment forexecute, which runssh -cwithout the login profile:gh,psql,coder-local,fnmnode.sharedandworktreechildren of this lead run on the host, so the "Go builds only in Colima" rule and the ops slot protocol must be in the lead's runbook (pstack lead: port the lead, ops and workstream roles to Coder Agents and pilot one workstream #254). Workstreams that build should be spawned from a Docker workspace instead, which needs a second root or chatd: let a chat message its parent and siblings in the family #247 for the lead to reach them.Effect on the other decisions: an agent that runs as Mike uses Mike's
ghlogin from the keychain, so decision 2 (merge credential) is answered unless Mike wants a narrower credential. Decision 3 (Colima size) is still open and now applies only to the workstream workspaces.ibetitsmike commentedon Nov 12, 2026
Decision 3 (Colima size), from Mike on 2026-11-12: give Colima more resources when the migration happens. Not before.
Mike named no numbers. Proposal to confirm at cutover:
~/.colima/default/colima.yaml).Procedure, as for the disk growth on 2026-11-09: wait until no UAT or chat workspace is busy,
brew services stop colima, editcpuandmemoryincolima.yaml,brew services start colima, then check that the workspace containers and their agents come back.ibetitsmike commentedon Nov 12, 2026
Mike answered decision 2 on 2026-11-12: the lead merges with Mike's own
ghlogin, as it does today. All three decisions are now set: (1) the lead runs as an external-agent workspace on the Mac, (2) merges use Mike'sghlogin, (3) Colima is resized at cutover.ibetitsmike commentedon Nov 13, 2026
Mike changed decision 1 on 2026-11-13: ops and deployments stay in Xum, so no external-agent workspace on the Mac is needed for the maintainer. The maintainer chat runs in a Docker workspace on Colima (image
fork-dev:local, built today). The work items under decision 1 above no longer apply. Decision 3 (Colima size) and the experiment list wait for Mike to confirm them in the Fork ops workspace. State and open points: see the cutover comment on #255.ibetitsmike commentedon Nov 13, 2026
State on 2026-11-13 21:30Z, which replaces my earlier comment: