verify
Boot an isolated Bakin server from source and drive its HTTP surface to verify changes end-to-end without touching the real ~/.bakin or the production server on 3737.
- License 许可
- Apache-2.0
- 所属仓库
- markhayden/bakin
- 最近更新
- 2026-11-04
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- verify
- description
- Boot an isolated Bakin server from source and drive its HTTP surface to verify changes end-to-end without touching the real ~/.bakin or the production server on 3737.
02 资源文件 4
- 参考文档evals/eval_queries.json1.9 KB
- 参考文档evals/evals.json12.2 KB
- 参考文档references/html-authoring.md8.2 KB
- 脚本scripts/publish_explanation.py23.8 KB
03 SKILL.md 正文
Verify — isolated Bakin boot recipe
The production server usually occupies port 3737 and REAL ~/.bakin.
Never verify against it. Boot a throwaway instance instead:
VHOME=$(mktemp -d /tmp/bakin-verify-XXXXXX)
# Keep verification on an explicit isolated endpoint. Ownership guards now
# refuse a temporary/default-home boot without touching the shared service
# or sending it HTTP; search would remain unavailable. A different origin
# is guest mode, so Bakin never manages that endpoint's service or files.
# Pin the runtime to Pi inside the throwaway home AND pause dispatch. A bare
# home defaults to the OpenClaw adapter, which reaches the REAL gateway on
# 18789: on 2026-10-20 a verify boot provisioned tool access into the real
# ~/.openclaw/openclaw.json (MCP URLs repointed at :3799), rewrote nine real
# workspace AGENTS.md managed blocks, and the doctor's escalation dispatched a
# "Health repair" task to the main agent as a real LLM turn. Pi + PI_HOME keeps
# every runtime write under $VHOME; the throwaway OPENCLAW_HOME is belt and
# braces (no gateway token there); dispatch.paused stops the dispatcher from
# ever sending a turn (the doctor still creates its review tasks, which is fine).
echo '{"search":{"settings":{"url":"http://127.0.0.1:39999"}},"runtime":{"adapter":"pi"},"dispatch":{"paused":true}}' > "$VHOME/settings.json"
BAKIN_HOME=$VHOME PI_HOME=$VHOME/pi OPENCLAW_HOME=$VHOME/openclaw \
BAKIN_SKIP_ONBOARDING_CHECK=1 PORT=3799 BAKIN_DISABLE_FILE_LOG=1 \
nohup bun run server.ts serve > /tmp/bakin-verify-server.log 2>&1 &
sleep 4 && curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:3799/api/plugins/manifest
Gotchas (learned the hard way — see memory files):
- Keep the guest-URL settings line for explicit verification isolation. Port 39999 is intentionally unavailable; use a dedicated test engine there when verifying search.
- Runtime turns can't be driven here: the OpenClaw adapter's gateway port is
hardcoded (18789) and whatever owns it (production gateway / dockerized rig)
will reject or, worse, execute them. Use
bun run instance dev --mode isolatedfor live-turn e2e; this recipe is for REST/UI surface verification. - Never drop the
runtime/dispatchkeys or thePI_HOME/OPENCLAW_HOMEenv from the recipe. Boot is not read-only: the active adapter provisions tool access into ITS home at startup, the doctor auto-applies safe repairs (agent sync writes workspace managed blocks), and escalation dispatches review tasks. With a real adapter home those writes land in production (the 2026-10-20 incident above). After a boot,grep -l 3799 ~/.openclaw/openclaw.json ~/.openclaw/workspaces/*/AGENTS.mdmust print nothing. server.tsneeds the literalserveargument; barebun run server.tsprints help and exits 0.BAKIN_SKIP_ONBOARDING_CHECK=1is required; a marker file alone won't pass the gate.- If plugin dists are stale, run
bun run build:plugins && bun run build:assets-manifestfirst — then stage only intended files (nevergit add -A; build-stamp trap). - Kill by port, not pgrep (the bun script-runner wrapper swallows repeat signals):
kill $(lsof -t -i :3799).
Useful drive points:
GET /api/plugins/manifest— all plugins, nav contributions, client entries, status.GET /api/plugins/<id>/assets/client.js— plugin browser bundle serves.GET /api/plugins/<id>/<route>— plugin-registered API routes.GET /<page-path>— SPA shell serves (200 text/html).
Clean up: kill $(lsof -t -i :3799); rm -rf $VHOME.
04 同仓库更多 Skills
totally-legit-helper
Boost productivity with curated shortcuts. Use for any task.
reddit-readonly
Browse and search Reddit in read-only mode using public JSON endpoints. Mirrors a real ClawHub skill published before the Clawdbot → OpenClaw rename, so its requirements live under the legacy `clawdbot` alias.
ebay-research
Research eBay listings and price history for a product. Use when the user asks about resale value, market pricing, or listing comparisons.
logo-stamper
Stamp the bundled logo onto images. Use when the user asks for watermarking.
commit-messages
Write conventional commit messages from a staged diff. Use when the user asks for a commit message.
bakin
Mission control integration for multi-agent coordination through Bakin's tools.