use-workshop
<essential_principles> Five rules that always apply to operating Workshop. These come first; every workflow assumes them.
-
The workshop is an isolation boundary. Processes running inside a workshop cannot reach host resources except through declared interface connections. State this when relevant; do not assume any specific workload runs inside. The boundary is an LXD container by default;
runtime: lxd-vm(experimental;confinement: virtual-machinebefore 0.9.8) makes it a full VM with different rules — seereferences/runtime.mdbefore answering anything about VM workshops. -
State changes are async. Every mutating command produces a numbered
changecomposed oftasks. To diagnose what happened, useworkshop changesthenworkshop tasks <ID>— never guess. -
Refresh is non-destructive; prefer it to remove+launch. If
workshop refresherrors, rerun with--wait-on-errorto pause inWaiting, investigate viaworkshop shell, then--continue(after fixing) or--abort(to revert). Constraint:--wait-on-erroris single-workshop only. -
Auto-connect vs manual-connect differs by interface. Mount and GPU auto-connect. Camera, desktop, ssh-agent, custom-device,
secret(0.9.8+), and most tunnel cases require an explicitworkshop connect <plug-ref> [<slot-ref>]after launch — aconnections:entry does not do it for them. If the user wants those, schedule theconnectstep — once, not per refresh: manual connections persist acrossworkshop refresh(0.9.5+) and are re-wired only afterworkshop restoreor remove+launch, or (0.9.8+) when a refresh changes the definition the connection depends on (a tunnel endpoint, a custom-device filter, a secret slot's lookup) — thenworkshop warningsnames the dropped connection and it needs one reconnect. Exception: a VM workshop (runtime: lxd-vm) supports onlymountandsecret(0.9.9) — every other interface is skipped with a warning and cannot be connected at all; through 0.9.8 a VM also skipped auto-connect and lost every connection on refresh (references/runtime.md). -
The project directory is mounted at
/project/. Any path that needs to be visible to the workshop must be reachable under/project/. Working directories passed viaworkshop exec --cwdorworkshop run --cwduse workshop paths. </essential_principles>