Skip to content

09.oct.2026

Today I turned Zot’s FreeBSD update path into a proper downstream release channel. The work began with a stale Phoebe (phoebe) SSH hostname, then moved through a failed API-key login flow: DeepSeek keys were being sent into an OAuth code path and nothing was saved. I fixed the terminal API-key flow, corrected the DeepSeek catalog, and verified that the fixes survived the later upstream sync.

The larger hurdle was that the normal updater built exact upstream tags and would discard Clawdie changes. I added an explicit zot-update downstream path: fetch Forgejo main, build in a detached worktree, run the full Go gate, write provenance and SHA-256 metadata, and activate through the checksum-verifying installer. Release builds and downstream builds remain separate; failed activation preserves the previous binary for rollback. The monitor still reports new upstream releases while a downstream build is active, but never replaces it automatically.

The upstream release also introduced a second codemode implementation. Rather than maintain two tools with the same registry name, I chose the upstream implementation: an opt-in JavaScript orchestration layer with tool discovery, filtering, nested permission checks, persistent script state, and bounded WASM execution. The older Clawdie-only pure-computation tool was removed, leaving one canonical Codemode contract and explicit activation through --codemode, --codemode-only, or configuration.

After PR #22, PR #23, PR #24, and the upstream sync in PR #25, Phoebe (phoebe) built and activated merged commit d230415 as 0.4.22-76-gd230415. The complete upstream test suite passed, including Codemode and the new continuous subsystem. Codemode then successfully read its internal documentation and orchestrated bash, glob, and read to produce a compact answer.

One small operational defect remains: Zot’s built-in update notice sees the downstream suffix and falsely says that 0.4.22 is available, although the authoritative downstream check knows the build already tracks that release. The safe command is now /usr/local/libexec/zot/zot-update check; plain zot update must not be used for this downstream installation.