bots-garden/sidekickspublic Fork
⑂ v1.0.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. d580a32 · on v1.0.0 · k33g · 25d ago
test-milestone-m4-on-macos.md · 121 lines · 6.2 KBmarkdown
Blame HistoryOpen raw

How to test milestone M4 on macOS

This guide checks on a Mac what milestone M4 (Agents' workspace) produced: an agent's files with an editor, changes followed live, deletion to the trash, and a terminal in the agent's folder — locally, and in a Docker container if Docker Desktop is installed. It assumes the Mac was prepared for milestone M3 and the repository is on the M4 branch. Allow 30 minutes.

Keep a macOS Terminal window open at the root of the repository.

0. Prepare

make install            # new frontend dependencies (xterm.js, CodeMirror languages) and creack/pty
make check              # expected: 0 issues, Tests 62 passed, 15 passed, licence headers ok
make dev

make check runs the workspace contract tests in a container only if Docker and the alpine:3.22 image are present (docker pull alpine:3.22); otherwise they are skipped, which is fine.

  • make check passes.

1. The agent's view (#27)

  1. In Agents, hover Garfield: a 📂 button appears next to ▶. Click it.
  2. The centre shows 🐮 Garfield (translator), its state, local · …/agents/garfield, in #translations, and 💬 Conversation, ▶ Start; tabs Files, Terminal, Log. Garfield's row is highlighted.
  3. ▶ Start: the state turns ready; Log shows Garfield's mm v1.0.3 | … line. ■ Stop.
  4. 💬 Conversation opens the direct conversation; 📂 brings the workspace back.
  • Points 1 to 4 are as described.

2. Files and the editor (#29, #30)

  1. Files lists skills, agent.yaml, AGENTS.md, README.md (folders first). Click skills: it opens; idioms, styles… inside.
  2. Tick Show hidden files: hidden entries appear (for instance .mm if Garfield already answered). Untick.
  3. Click AGENTS.md: Markdown in the editor. Add a word: ● modified; Revert brings the text back. Add the word again, ⌘S: Saved. Remove the word and save again (leave the file as it was).
  4. Click agent.yaml: YAML colours.
  • Points 1 to 4 are as described.

3. Changes from outside, and conflicts

  1. In the macOS Terminal: echo hello > agents/garfield/notes.md — within a second notes.md appears in the tree.
  2. Open notes.md, type my draft in the editor (do not save). In the macOS Terminal: echo from the agent > agents/garfield/notes.md.
  3. A banner: "Garfield (translator) changed this file while you were editing it." — Take their version shows from the agent.
  • Points 1 to 3 are as described.

4. Create and delete

  1. Select skills, click + New file, type test.md, Enter: skills/test.md opens, empty.
  2. Hover test.md, click 🗑: "Delete test.md? It goes to the trash." — Delete. Then delete notes.md the same way.
  3. Open the Trash in the Finder: test.md and notes.md are there (you may empty it).
  • Points 1 to 3 are as described.

5. The terminal (#31)

  1. Terminal: a shell in …/agents/garfield. Type ls skills then tput cols.
  2. Make the window wider and run tput cols again: the number grows.
  3. Run vim AGENTS.md (or top): full screen; quit (:q / q).
  4. Run sleep 777 &, click Files then Terminal: the same shell, with your history.
  5. Click # general (leaving the agent's view). In the macOS Terminal: ps aux | grep '[s]leep 777' prints nothing.
  6. Back in Garfield's Terminal, type exit: "The shell has ended." — Open a new shell opens another.
  • Points 1 to 6 are as described.

6. An agent in a container (optional, Docker Desktop)

docker run -d --rm --init --name sidekicks-box -v "$PWD/agents/alice:/workspace" alpine:3.22 sleep 3600
  1. In Settings, add to agents: (and save):
      - name: boxed
        title: Boxed (container)
        icon: "📦"
        command: /usr/bin/false
        runtime:
          type: container
          container: sidekicks-box
          workspacePath: /workspace
    
  2. 📂 on Boxed: container sidekicks-box · /workspace; the tree shows Alice's files (the folder is mounted).
  3. Terminal: cat /etc/alpine-release; stty size — an Alpine shell, the right size. Run sleep 888 &, then click # general. docker exec sidekicks-box ps shows no sh and no sleep 888.
  4. A deletion in Boxed asks "Delete … for good? A container has no trash." — Cancel.
  5. Remove the boxed agent from Settings, then docker rm -f sidekicks-box.
  • Points 1 to 5 are as described (or Docker is not installed).

7. An agent in an sbx sandbox (#39, optional)

With the sandbox milo-sbx running (it mounts agents/milo):

  1. In Settings, add to agents: (and save):
      - name: milo
        title: Milo (sbx)
        icon: "🦊"
        command: sbx
        args: [exec, -i, milo-sbx, mm, -acp]
        workspace: /Users/k33g/kDrive/Rickub/bots-garden/sidekicks/agents/milo/workspace
        runtime:
          type: sbx
          sandbox: milo-sbx
    
  2. 📂 on Milo: sandbox milo-sbx · …/agents/milo/workspace; the tree shows that folder (each action takes a second or two).
  3. Create test.md, write a line, ⌘S; in the macOS Terminal, cat agents/milo/workspace/test.md shows it. Delete it: "Delete test.md for good? There is no trash in a container or a sandbox."
  4. Terminal: uname -n; pwd; stty size — milo-sbx, the workspace folder, the panel's size. Run sleep 999 &, click # general, then sbx exec milo-sbx sh -c 'ps ax | grep "[s]leep 999"' prints nothing.
  5. 💬 Conversation: write to Milo — mm answers from inside the sandbox.
  • Points 1 to 5 are as described.

If something differs

Symptom Likely cause What to do
"Cannot open a terminal" $SHELL points to a shell that does not exist check echo $SHELL
Boxed: "container sidekicks-box: …" the container is not running, or Docker Desktop is stopped docker ps
A deleted file is not in the Trash the repository is on another disk than your home folder expected: the deletion is then final

Close the milestone

If everything matches, M4 is confirmed: close issue #39 (the others are closed) and the milestone M4 · Workspace des agents (or ask the assistant). Otherwise, comment the issue concerned with what differs.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# How to test milestone M4 on macOS

This guide checks on a Mac what milestone M4 (Agents' workspace) produced: an agent's files with an editor, changes followed live, deletion to the trash, and a terminal in the agent's folder — locally, and in a Docker container if Docker Desktop is installed. It assumes the Mac was prepared for [milestone M3](test-milestone-m3-on-macos.md) and the repository is on the M4 branch. Allow 30 minutes.

Keep a macOS Terminal window open at the root of the repository.

## 0. Prepare

```bash
make install            # new frontend dependencies (xterm.js, CodeMirror languages) and creack/pty
make check              # expected: 0 issues, Tests 62 passed, 15 passed, licence headers ok
make dev
```

`make check` runs the workspace contract tests in a container only if Docker and the `alpine:3.22` image are present (`docker pull alpine:3.22`); otherwise they are skipped, which is fine.

- [ ] `make check` passes.

## 1. The agent's view (#27)

1. In **Agents**, hover **Garfield**: a **📂** button appears next to ▶. Click it.
2. The centre shows `🐮 Garfield (translator)`, its state, `local · …/agents/garfield`, `in #translations`, and **💬 Conversation**, **▶ Start**; tabs **Files**, **Terminal**, **Log**. Garfield's row is highlighted.
3. **▶ Start**: the state turns ready; **Log** shows Garfield's `mm v1.0.3 | …` line. **■ Stop**.
4. **💬 Conversation** opens the direct conversation; **📂** brings the workspace back.

- [ ] Points 1 to 4 are as described.

## 2. Files and the editor (#29, #30)

1. **Files** lists `skills`, `agent.yaml`, `AGENTS.md`, `README.md` (folders first). Click `skills`: it opens; `idioms`, `styles`… inside.
2. Tick **Show hidden files**: hidden entries appear (for instance `.mm` if Garfield already answered). Untick.
3. Click `AGENTS.md`: Markdown in the editor. Add a word: **● modified**; **Revert** brings the text back. Add the word again, ⌘S: **Saved.** Remove the word and save again (leave the file as it was).
4. Click `agent.yaml`: YAML colours.

- [ ] Points 1 to 4 are as described.

## 3. Changes from outside, and conflicts

1. In the macOS Terminal: `echo hello > agents/garfield/notes.md` — within a second `notes.md` appears in the tree.
2. Open `notes.md`, type `my draft` in the editor (do not save). In the macOS Terminal: `echo from the agent > agents/garfield/notes.md`.
3. A banner: "Garfield (translator) changed this file while you were editing it." — **Take their version** shows `from the agent`.

- [ ] Points 1 to 3 are as described.

## 4. Create and delete

1. Select `skills`, click **+ New file**, type `test.md`, Enter: `skills/test.md` opens, empty.
2. Hover `test.md`, click **🗑**: "Delete test.md? It goes to the trash." — **Delete**. Then delete `notes.md` the same way.
3. Open the Trash in the Finder: `test.md` and `notes.md` are there (you may empty it).

- [ ] Points 1 to 3 are as described.

## 5. The terminal (#31)

1. **Terminal**: a shell in `…/agents/garfield`. Type `ls skills` then `tput cols`.
2. Make the window wider and run `tput cols` again: the number grows.
3. Run `vim AGENTS.md` (or `top`): full screen; quit (`:q` / `q`).
4. Run `sleep 777 &`, click **Files** then **Terminal**: the same shell, with your history.
5. Click **# general** (leaving the agent's view). In the macOS Terminal: `ps aux | grep '[s]leep 777'` prints nothing.
6. Back in Garfield's **Terminal**, type `exit`: "The shell has ended." — **Open a new shell** opens another.

- [ ] Points 1 to 6 are as described.

## 6. An agent in a container (optional, Docker Desktop)

```bash
docker run -d --rm --init --name sidekicks-box -v "$PWD/agents/alice:/workspace" alpine:3.22 sleep 3600
```

1. In **Settings**, add to `agents:` (and save):
   ```yaml
     - name: boxed
       title: Boxed (container)
       icon: "📦"
       command: /usr/bin/false
       runtime:
         type: container
         container: sidekicks-box
         workspacePath: /workspace
   ```
2. **📂** on Boxed: `container sidekicks-box · /workspace`; the tree shows Alice's files (the folder is mounted).
3. **Terminal**: `cat /etc/alpine-release; stty size` — an Alpine shell, the right size. Run `sleep 888 &`, then click **# general**. `docker exec sidekicks-box ps` shows no `sh` and no `sleep 888`.
4. A deletion in Boxed asks "Delete … for good? A container has no trash." — **Cancel**.
5. Remove the `boxed` agent from Settings, then `docker rm -f sidekicks-box`.

- [ ] Points 1 to 5 are as described (or Docker is not installed).

## 7. An agent in an sbx sandbox (#39, optional)

With the sandbox `milo-sbx` running (it mounts `agents/milo`):

1. In **Settings**, add to `agents:` (and save):
   ```yaml
     - name: milo
       title: Milo (sbx)
       icon: "🦊"
       command: sbx
       args: [exec, -i, milo-sbx, mm, -acp]
       workspace: /Users/k33g/kDrive/Rickub/bots-garden/sidekicks/agents/milo/workspace
       runtime:
         type: sbx
         sandbox: milo-sbx
   ```
2. **📂** on Milo: `sandbox milo-sbx · …/agents/milo/workspace`; the tree shows that folder (each action takes a second or two).
3. Create `test.md`, write a line, ⌘S; in the macOS Terminal, `cat agents/milo/workspace/test.md` shows it. Delete it: "Delete test.md for good? There is no trash in a container or a sandbox."
4. **Terminal**: `uname -n; pwd; stty size` — `milo-sbx`, the workspace folder, the panel's size. Run `sleep 999 &`, click **# general**, then `sbx exec milo-sbx sh -c 'ps ax | grep "[s]leep 999"'` prints nothing.
5. **💬 Conversation**: write to Milo — mm answers from inside the sandbox.

- [ ] Points 1 to 5 are as described.

## If something differs

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| "Cannot open a terminal" | `$SHELL` points to a shell that does not exist | check `echo $SHELL` |
| Boxed: "container sidekicks-box: …" | the container is not running, or Docker Desktop is stopped | `docker ps` |
| A deleted file is not in the Trash | the repository is on another disk than your home folder | expected: the deletion is then final |

## Close the milestone

If everything matches, M4 is confirmed: close issue #39 (the others are closed) and the milestone **M4 · Workspace des agents** (or ask the assistant). Otherwise, comment the issue concerned with what differs.