# Fresh-machine install test

> Install the release tarball on a clean macOS user or VM, set Dobby up on a throwaway repo, build one ticket to a pull request and open the dashboard.

This is a release check, not a normal install. It proves a new person on a clean Mac can go from the tarball to a pull request. The script never touches your own account: it refuses to run where Dobby data or `com.dobby.*` jobs already exist, installs no background jobs, and uses ports 4793 and 4794 instead of 4710 and 4711.

## Before you start

- A second macOS user (System Settings, Users & Groups) or a macOS VM. Not your own account.
- In that account: Node 24, git with `user.name` and `user.email`, `gh auth login`, and Claude Code signed in. See [Install](/docs/install.md).
- A throwaway GitHub repo you own. It can be empty: the script seeds a tiny passing project. If it already has code, its tests must pass on main.
- The tarball, `dobby-ai-0.1.0-beta.3.tgz`, from `npm pack`.

## Run it

```bash title="Terminal"
sh scripts/fresh-install-test.sh ~/dobby-ai-0.1.0-beta.3.tgz you/dobby-throwaway
```

It runs these steps and prints `ok` or `FAIL` for each:

1. Prerequisites: Node 24, git identity, `gh` and `claude` signed in.
2. `npm i -g` of the tarball, into `~/dobby-fresh-test/npm-global`, so no admin rights are needed.
3. `dobby --version` prints `0.1.0-beta.3`.
4. The throwaway repo is cloned into `~/projects`.
5. `dobby setup --yes --no-jobs`.
6. `dobby doctor`.
7. One tiny ticket, "Add a --version flag", built with `dobby run`. This takes 10 to 40 minutes.
8. A pull request exists on the repo. Merges stay paused, so it is left open.
9. The dashboard starts on port 4793 and `/auth` signs in with the saved token. The token is never printed.

## Findings

When a step fails at a terminal, the script waits. Fix the problem by hand, press Enter to retry, or type `s` to skip. Every failed step is written to `~/dobby-fresh-test/findings.md` with its last output, and a step you fixed by hand is marked as such. Each line is a bug in the install steps or the docs: file one ticket per finding. With no terminal the script stops at the first failure.

The full output is in `~/dobby-fresh-test/log`.

## Clean up

Delete the macOS user or the VM. The pull request and the throwaway repo are yours to close. To remove Dobby without deleting the account, see [Uninstall](/docs/uninstall.md).
