Skip to content

Commit 63a876c

Browse files
authored
Merge pull request #256 from paperclipai/dotta
Dotta
2 parents 9a0e3a8 + df0f101 commit 63a876c

10 files changed

Lines changed: 3481 additions & 108 deletions

File tree

doc/OPENCLAW_ONBOARDING.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,53 @@ Open the printed `Dashboard URL` (includes `#token=...`) in your browser.
2525

2626
5. Approve the join request in Paperclip UI, then confirm the OpenClaw agent appears in CLA agents.
2727

28-
6. Case A (manual issue test).
28+
6. Gateway preflight (required before task tests).
29+
- Confirm the created agent uses `openclaw_gateway` (not `openclaw`).
30+
- Confirm gateway URL is `ws://...` or `wss://...`.
31+
- Confirm gateway token is non-trivial (not empty / not 1-char placeholder).
32+
- Confirm pairing mode is explicit:
33+
- recommended default: `adapterConfig.disableDeviceAuth` is false/absent and `adapterConfig.devicePrivateKeyPem` is present
34+
- fallback only: `adapterConfig.disableDeviceAuth=true` when pairing cannot be supported in that environment
35+
- If you can run API checks with board auth:
36+
```bash
37+
AGENT_ID="<newly-created-agent-id>"
38+
curl -sS -H "Cookie: $PAPERCLIP_COOKIE" "http://127.0.0.1:3100/api/agents/$AGENT_ID" | jq '{adapterType,adapterConfig:{url:.adapterConfig.url,tokenLen:(.adapterConfig.headers["x-openclaw-token"] // .adapterConfig.headers["x-openclaw-auth"] // "" | length),disableDeviceAuth:(.adapterConfig.disableDeviceAuth // false),hasDeviceKey:(.adapterConfig.devicePrivateKeyPem // "" | length > 0)}}'
39+
```
40+
- Expected: `adapterType=openclaw_gateway`, `tokenLen >= 16`, `hasDeviceKey=true`, and `disableDeviceAuth=false`.
41+
42+
Pairing handshake note:
43+
- The first gateway run may return `pairing required` once for a new device key.
44+
- Approve it in OpenClaw, then retry the task.
45+
- For local docker smoke, you can approve from host:
46+
```bash
47+
docker exec openclaw-docker-openclaw-gateway-1 sh -lc 'openclaw devices approve --latest --json --url "ws://127.0.0.1:18789" --token "$(node -p \"require(process.env.HOME+\\\"/.openclaw/openclaw.json\\\").gateway.auth.token\")"'
48+
```
49+
50+
7. Case A (manual issue test).
2951
- Create an issue assigned to the OpenClaw agent.
3052
- Put instructions: “post comment `OPENCLAW_CASE_A_OK_<timestamp>` and mark done.”
3153
- Verify in UI: issue status becomes `done` and comment exists.
3254

33-
7. Case B (message tool test).
55+
8. Case B (message tool test).
3456
- Create another issue assigned to OpenClaw.
3557
- Instructions: “send `OPENCLAW_CASE_B_OK_<timestamp>` to main webchat via message tool, then comment same marker on issue, then mark done.”
3658
- Verify both:
3759
- marker comment on issue
3860
- marker text appears in OpenClaw main chat
3961

40-
8. Case C (new session memory/skills test).
62+
9. Case C (new session memory/skills test).
4163
- In OpenClaw, start `/new` session.
4264
- Ask it to create a new CLA issue in Paperclip with unique title `OPENCLAW_CASE_C_CREATED_<timestamp>`.
4365
- Verify in Paperclip UI that new issue exists.
4466

45-
9. Watch logs during test (optional but helpful):
67+
10. Watch logs during test (optional but helpful):
4668
```bash
4769
docker compose -f /tmp/openclaw-docker/docker-compose.yml -f /tmp/openclaw-docker/.paperclip-openclaw.override.yml logs -f openclaw-gateway
4870
```
4971

50-
10. Expected pass criteria.
72+
11. Expected pass criteria.
73+
- Preflight: `openclaw_gateway` + non-placeholder token (`tokenLen >= 16`).
74+
- Pairing mode: stable `devicePrivateKeyPem` configured with device auth enabled (default path).
5175
- Case A: `done` + marker comment.
5276
- Case B: `done` + marker comment + main-chat message visible.
5377
- Case C: original task done and new issue created from `/new` session.

0 commit comments

Comments
 (0)