Repository navigation
fix(worker): generate grok titles through the grok cli - #101
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Stage 2 of bots on official harnesses (on top of #97). - **Grok bots** run through the Grok CLI over our ACP adapter as hidden, resumable sessions (`session/load`), isolated home per bot, every built-in tool/permission denied, Canopy bot tools via MCP through the bus — same guarantees as Claude/Codex (durability, offline queue, cancel/retry, transcript rebuild). - **Direct runtime removed:** `apps/gateway/src/bots/model.ts` and everything only it used (direct HTTP model calls, chat-completions mapping, completion caps, endpoint-key decryption for bots) are gone, with the old variant-B paths, the "bots need an endpoint/proxy instance" copy and their tests. Existing bots migrate to harness turns on a worker picked by the stage-1 rule; bots without an eligible worker show a clear state. - **Guard:** a test fails CI if a direct LLM endpoint call (`/v1/messages`, `/v1/responses`, `/chat/completions`, provider HTTP SDK clients) is reintroduced outside fixtures. Repo audit: none left. - The stack was rebased onto dev (incl. #101); stage 1's migration is now `0070_bot_harness`. Checks: install, gen:check, typecheck, lint, format:check, check:tmp (1086 pass, 154 skip, 0 fail), web build; 22 gateway↔worker integration tests for Grok bot turns, migration of an old-runtime bot and the guard. Browser checked Grok bot creation/conversation and the updated copy in light/dark at desktop and phone widths. Paid live tests opt-in, not run. Draft until the stack is done.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canopy must never call model APIs directly; every model call goes through the official harness. Claude and Codex text generation (thread titles, semantic worktree branch names) already ran isolated SDK sessions, but Grok called
/v1/chat/completionsof a CLIProxyAPI instance directly.apps/gateway/src/bots/model.ts), which the bots-harness stack (feat(bots): run bot turns through official harnesses on workers #97) removes.Checks: install, gen:check, typecheck, lint, format:check, check:tmp (1059 pass, 153 skip, 0 fail), web build; adapter tests with the fake ACP agent and gateway↔worker integration for a Grok title and branch name.
Refs: d14cc36