# Kimi Handoff — Communications docs + ChatGPT picker (needs deploy) **Date:** 2026-06-16 **Session author:** Claude (Sonnet 4.6) **Status:** Committed + pushed to `main`. **NOT deployed** — static sites need rebuild + redeploy. --- ## What was done 1. **Diagnosed and fixed `invalid_client` error on the "hermes-all-in" ChatGPT GPT.** - Root cause: the `oauth_clients` MySQL table was wiped during today's earlier deploy session (MySQL container restart). The dynamically-registered (DCR) client_id that GPT was using no longer existed server-side. - Verified `/oauth/register` (DCR) and `/oauth/authorize` still work correctly end-to-end (registered a throwaway test client, confirmed it returned `302` to `/login` rather than `invalid_client`, then deleted the test row). - **Fix applied by user:** disconnect/reconnect the "hermes-all-in" connector in ChatGPT so it re-runs DCR and gets a fresh client_id. **Not independently re-verified after reconnect — worth a quick check that it's working now.** 2. **Found and fixed a documentation gap for the newly-published Communications GPT** (`https://chatgpt.com/g/g-6a0f35429e8c81918e8caedbb8b2e4c5-communications-manager`): - `docs/` (squaremcp-docs site) had a full dedicated page for Living Brief but nothing for Communications. - `product/app/app.js` (squaremcp-app dashboard) — the "Connect AI Client → ChatGPT" picker only ever offered the old unscoped `/openapi.json`, never the scoped specs that now exist (`/openapi-communications.json`, `/openapi-living-brief.json`, etc.) and never linked the two already-published GPTs directly. - `product/site/privacy.html` / `terms.html` — still don't have language specific to Communications data handling (profile data, draft content, connected social accounts). **Not fixed in this session — still open**, was flagged on the original Communications OAuth handoff checklist too. 3. **Changes made (committed, not deployed):** - New file `docs/communications.html` — guide page mirroring `living-brief.html` (get-started steps, capabilities, example prompts, privacy/control notes), linking to the live Communications GPT URL above. - `docs/index.html`, `getting-started.html`, `platforms.html`, `agent-tutorial.html`, `living-brief.html` — added "Communications" nav link across all docs pages; added a card on the index page. - `product/app/app.js` — ChatGPT picker now leads with direct "Open" links for both published GPTs (Living Brief, Communications), and offers correctly-scoped spec URLs (Communications-only / Living Brief-only / Mail / Social / Everything) for anyone building their own custom GPT Action. Commits: - `984c77d` — `deploy(k8s): add Communications OAuth client and bump image to 61ce4c7` (hermes-k8s.yaml secret/image commit from earlier in the day, already deployed) - `453831a` — `docs(communications): add docs page and fix ChatGPT connect picker` (today's docs/app work — **this is the one that needs deploying**) --- ## What's still needed ### Deploy the docs + app sites (high priority — currently live sites don't reflect any of this) Both are separate Deployments from `hermes-mcp`, built from their own Dockerfiles, same registry-NodePort workaround applies: ```bash # docs site cd ~/hermes-mcp/docs docker build -t localhost:32000/squaremcp-docs:$(git rev-parse --short HEAD) . docker save localhost:32000/squaremcp-docs:$(git rev-parse --short HEAD) -o /tmp/squaremcp-docs.tar microk8s ctr image import /tmp/squaremcp-docs.tar # update docs-k8s.yaml image ref to the tag above (or digest if you push it through properly), imagePullPolicy: IfNotPresent microk8s kubectl apply -f docs-k8s.yaml microk8s kubectl rollout status deployment/squaremcp-docs -n fetcherpay # app site cd ~/hermes-mcp/product/app docker build -t localhost:32000/squaremcp-app:$(git rev-parse --short HEAD) . docker save localhost:32000/squaremcp-app:$(git rev-parse --short HEAD) -o /tmp/squaremcp-app.tar microk8s ctr image import /tmp/squaremcp-app.tar # update app-k8s.yaml image ref similarly microk8s kubectl apply -f app-k8s.yaml microk8s kubectl rollout status deployment/squaremcp-app -n fetcherpay ``` After deploy, verify: - `https://docs.squaremcp.com/communications.html` loads and nav shows "Communications" on every page - `https://app.squaremcp.com` → Connect AI Client → ChatGPT picker shows the two "Open" links + scoped spec buttons (not just the old single openapi.json link) ### Other open items (carried over, still not done) 1. Re-verify the "hermes-all-in" GPT actually connects cleanly now after the disconnect/reconnect (DCR re-registration) — wasn't independently re-tested this session. 2. Update `product/site/privacy.html` and `terms.html` to specifically cover Communications data handling. 3. Everything else from the prior handoff (`2026-06-16-kimi-handoff-current-state-and-next-tasks.md`) that wasn't already closed out: nginx-ingress chronic restarts, registry NodePort inaccessibility, `fetcherpay-leads-api`/`worker` ImagePullBackOff, `hermes.fetcherpay.com`/`ollama.fetcherpay.com` ingress. --- ## Related vault docs - Original handoff: `SquareMCP/AI-Context/2026-06-16-kimi-handoff-current-state-and-next-tasks.md` - Communications OAuth deploy result: `SquareMCP/deployments/2026-06-16-communications-chatgpt-oauth-deploy-result.md`