Commit 72bd985
Phase 2 local-dev-parity: clawdbot opt-in + credentials runbook + 17 affordance findings
Closes the Phase 2 sprint that ran on the dev-agent huddle pod
(app-dev 6a123d49221cc3cce97d9bd1) following PR #434. Cody (cloud
codex) shipped both feature commits; Theo (openclaw moltbot)
reviewed and approved; Nova + Claude (sam-local) contributed design
and observations.
Code changes
============
dev.sh + docker-compose.dev.yml + cli/src/commands/dev.js + cli/__tests__/dev.test.mjs
Local-dev parity for clawdbot. Today a contributor wanting to run
the OpenClaw gateway locally hand-bootstraps six manual hacks
(mkdir bundled-skills, set CLAWDBOT_DOCKERFILE=Dockerfile, mint
moltbot token, patch moltbot.json controlUi, pass OPENAI/OPENROUTER
envs through compose, fight auth-profile schema). This sprint
collapses those into a single CLI command + an env opt-in.
Phase 2.A — COMMONLY_LOCAL_CLAWDBOT=1 env opt-in. dev.sh grows
read_env_value + is_truthy_env_value helpers; the clawdbot compose
profile is only included when the env is truthy. Default off.
Phase 2.B — Compose default Dockerfile (OSS) not Dockerfile.commonly
on the clawdbot-gateway + clawdbot-cli services. The fork ships
Dockerfile at HEAD; Dockerfile.commonly is a private variant that
was only available in an unmerged branch.
Phase 2.D — `commonly dev clawdbot` CLI subcommand. New
`cli/src/commands/dev.js` orchestration: ensure local instance
config, login bootstrap, wait for backend healthy, resolve-or-
create the local sandbox pod, install the openclaw runtime with
config.runtime.runtimeType='moltbot' via the existing
POST /api/registry/install endpoint, harvest the runtime token
via /api/registry/pods/:podId/agents/openclaw/runtime-tokens,
patch external/clawdbot-state/config/moltbot.json with the
controlUi fallback flag, and upsert OPENCLAW_USER_TOKEN +
OPENCLAW_RUNTIME_TOKEN into .env. No backend API changes;
reuses existing routes. New regression test file
cli/__tests__/dev.test.mjs covers the bootstrap flow.
Phase 2.E — docs/development/local-credentials.md runbook +
.env.example restructure. Required (GITHUB_PAT) /
conditionally-required (LITELLM_API_KEY gated by
COMMONLY_LOCAL_CLAWDBOT=1) / optional (Discord/Slack/Tavily/etc)
/ subsystem gates + troubleshooting + verified LiteLLM mint
recipe via kubectl port-forward + POST /key/generate.
docs/development/README.md indexes it.
Phase-4 affordance audit (docs/audits/ui-smoke-2026-05-23/)
==========================================================
The huddle session produced 17 Phase-4 findings about Commonly's
multi-agent collab affordance gaps, captured in
docs/audits/ui-smoke-2026-05-23/huddle-observations.md. The most
actionable, ranked by impact:
1. Inline cue on chat.mention.payload.content for collaborative
pods would replicate the in-pod corrections (execute-not-
handoff + claim-the-orphan) that I had to make manually. Same
pattern as the existing §9 DM cue and pod-context cue.
2. OpenClaw moltbot workspace should be a git worktree with
GH_PAT credentials (same shape cloud-codex has via boot
script). Would let Theo/Nova actually ship code instead of
just reviewing.
3. CLI-wrapper (claude/codex) chat-turn tool registry should
auto-load @commonlyai/mcp for full memory + post + DM tool
access during chat.mention turns, not just heartbeat cycles.
4. commonly_save_my_memory daily-section schema mismatch — the
tool input contract and backend YYYY-MM-DD validator disagree.
Backend rejects daily writes with sections.daily[].date must
be YYYY-MM-DD. Cody surfaced + drafted the GH issue body.
5. Event dedup gate — Theo posted 4 acknowledgements to a single
human message because chat.mention + heartbeat fired
concurrent LLM runs with no run-in-progress guard.
6. Heartbeat-cycle should optionally ingest pod-conversational-
gravity into long_term memory. Today moltbot heartbeats write
routing pointers + task state but miss today's huddle content.
Two prescriptive memory entries were committed to commonly-skills:
feedback-agents-collab-execute-not-handoff and
feedback-claim-the-orphan-stalled-peer-work.
Still open (next sprint scope)
==============================
Phase 2.C — commonly-bundled-skills/.gitkeep upstream in
Team-Commonly/openclaw + submodule bump. Cross-repo
work; needs operator (Sam) for the openclaw-fork PR.
Phase 3 — ADR-2.F implementation (heartbeat events for CLI
wrappers). Claude shipped a complete design with all
decisions resolved; needs a coder.
Co-Authored-By: Cody <cody@commonly.me>
Co-Authored-By: Theo <theo@commonly.me>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 45380a5 commit 72bd985
8 files changed
Lines changed: 1238 additions & 52 deletions
File tree
- cli
- __tests__
- src/commands
- docs
- audits/ui-smoke-2026-05-23
- development
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
83 | 92 | | |
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
88 | 100 | | |
89 | | - | |
90 | | - | |
| 101 | + | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
0 commit comments