# Kimi Handoff — Current State and Next Tasks **Date:** 2026-06-16 **Session author:** Kimi Code **Environment:** `art0` (104.190.60.129) — MicroK8s single-node cluster **Sudo password:** `onelove` --- ## What was completed in this session ### 1. Observability stack finalized - OpenTelemetry Collector deployed in `observability` namespace (traces → Tempo, logs → Loki, metrics → FetcherPay Prometheus via remote write) - FetcherPay Prometheus remote-write receiver enabled - Redis exporter added and scraping - Grafana dashboards imported: Loki Operational, Tempo Operational, comprehensive Health Overview - Runbooks written in `SquareMCP/runbooks/observability/` **Dashboard URL:** https://dashboard.fetcherpay.com **Grafana login:** `admin` / `admin_secure_2024` ### 2. Communications Manager — Week 3 chat UI deployed - Commit `565b115` deployed - Image `localhost:32000/hermes-mcp@sha256:6fc290aea78e063b79814eab5325e3816ebb6120c5c268b677a889d52e0f1dc7` - Browser QA completed: profile creation, chat draft generation, Instagram image URL attach, edit, approve/publish, autonomous toggle hidden below 10 approvals **Result doc:** `SquareMCP/deployments/2026-06-16-phase1-week3-chat-ui-deploy-result.md` ### 3. Communications ChatGPT OAuth scoping deployed - Commit `61ce4c7` deployed - Image `localhost:32000/hermes-mcp:61ce4c7` (loaded via `microk8s ctr image import` due to registry NodePort issue) - New OAuth client registered for Communications GPT: - Client ID: `d5b4125c62c6f7ae61740116f8661dbb` - Client secret: set in `hermes-k8s.yaml` (not committed) - `/openapi-communications.json` live and scoped to Communications endpoints **Result doc:** `SquareMCP/deployments/2026-06-16-communications-chatgpt-oauth-deploy-result.md` --- ## Current state of key services | Service | Namespace | Status | Notes | |---------|-----------|--------|-------| | hermes-mcp | fetcherpay | Running | hostNetwork on :3456, latest image `61ce4c7` | | prometheus | fetcherpay | Running | remote-write receiver enabled | | grafana | observability | Running | 3/3 Ready | | otel-collector | observability | Running | traces/logs/metrics flowing | | loki | observability | Running | | | tempo | observability | Running | | | alertmanager | observability | Running | email + Slack routing | | mysql | Docker host | Running | `:3306`, volume `fetcherpay_mysql_data` | | redis | fetcherpay | Running | `:6379`, password in `redis-secret` | | nginx-ingress-microk8s | ingress | Running | **317 restarts** — chronic issue | | registry | container-registry | Running | NodePort `32000` not accessible from host | --- ## Known pre-existing issues 1. **`fetcherpay-leads-api` / `fetcherpay-leads-worker` — `ImagePullBackOff`** - Pointing to dead registry `23.120.207.35:32000` - Current registry is `localhost:32000`; `fetcherpay/leads-api:latest` exists but `v16-import-fix` does not - Fix: repoint image refs or delete if abandoned 2. **`nginx-ingress-microk8s-controller` — chronic restarts** - ~1 restart/day over 9 months - Likely OOM / sandbox churn on single-node MicroK8s - Fix: add memory limits, check `dmesg` OOM logs 3. **Registry NodePort `localhost:32000` not accessible from host** - Docker push fails - Workaround: `docker save` + `microk8s ctr image import` - Fix: investigate why NodePort isn't bound on host 4. **`hermes.squaremcp.com` root path returns 404** - API works; static dashboard is at `/app/index.html` - Expected behavior per active issues list 5. **`hermes.fetcherpay.com` and `ollama.fetcherpay.com` not in ingress** - Not configured yet 6. **Docker containers `mt5` and `obsidian` were stopped during deploy** - Need to be restarted if user wants them running --- ## Next tasks for the next agent ### High priority (user-facing / blocking) 1. **Complete the Communications ChatGPT GPT creation** - Original handoff: `SquareMCP/deployments/2026-06-16-communications-chatgpt-oauth-deploy-handoff.md` - Steps: 1. In ChatGPT Builder, import Actions from `https://hermes.squaremcp.com/openapi-communications.json` 2. Configure OAuth: - Client ID: `d5b4125c62c6f7ae61740116f8661dbb` - Client Secret: read from `hermes-k8s.yaml` env var `COMMUNICATIONS_OAUTH_CLIENT_SECRET` - Authorization URL: `https://hermes.squaremcp.com/oauth/authorize` - Token URL: `https://hermes.squaremcp.com/oauth/token` 3. Test end-to-end OAuth flow in the GPT (profile → chat → draft → approve/publish) 4. Add GPT name/description/icon 5. Verify privacy/terms pages cover Communications data handling 6. Set visibility to Public 2. **Fix `fetcherpay-leads-api` / `fetcherpay-leads-worker`** - Either repoint to `localhost:32000/fetcherpay/leads-api:latest` or delete if abandoned 3. **Restart user containers if requested** - `mt5`: `cd ~/mt5-docker && ./start-mt5.sh` - `obsidian`: rerun original docker run command ### Medium priority (infrastructure stability) 4. **Stabilize nginx-ingress controller** - Add memory request/limit to ingress DaemonSet - Monitor restart rate after change 5. **Fix registry NodePort accessibility** - Investigate why `localhost:32000` is not listening on host despite NodePort service - This blocks normal `docker push` workflow 6. **Add `hermes.fetcherpay.com` and `ollama.fetcherpay.com` ingress** - Requires deciding what backend services to route to ### Low priority / cleanup 7. **Commit or revert `hermes-k8s.yaml` changes** - Currently has uncommitted local changes (OAuth credentials + image tag) - Secret must not be committed - Consider moving secrets to a Kubernetes Secret resource 8. **Delete QA test accounts if no longer needed** - `qa-clickthrough-20260616@squaremcp.com` may have been lost during MySQL restart, but verify --- ## Access and credentials | System | URL / Command | Credentials | |--------|---------------|-------------| | Grafana | https://dashboard.fetcherpay.com | `admin` / `admin_secure_2024` | | Hermes API | https://hermes.squaremcp.com | Smoke-test API key: `672e1f42f94b48fb94f866a4dd9b793d` | | Dashboard UI | https://hermes.squaremcp.com/app/index.html | Smoke-test: `smoke-test@squaremcp.com` (password unknown — use API key or create new user) | | MySQL | `127.0.0.1:3306` | `root` / `fetcherpay` | | K8s | `microk8s kubectl` | sudo password `onelove` | --- ## Important gotchas - `hermes-k8s.yaml` is tracked in git but contains secrets. Do **not** commit new OAuth secret values. - Direct `kubectl exec`/`logs`/`port-forward` often fails due to kubelet TLS cert not including `104.190.60.129`. Use `--insecure-skip-tls-verify-backend=true` for logs, or `kubectl proxy` for HTTP checks. - The cluster is a single-node MicroK8s setup. Restarting nodes or heavy resource use can trigger sandbox churn. - Docker containers binding ports 80/443/3000/8080 must be stopped before `kubectl apply` to avoid port conflicts. --- ## Useful one-liners ```bash # Cluster health microk8s kubectl get pods -n fetcherpay microk8s kubectl get pods -n observability # Hermes logs microk8s kubectl logs -n fetcherpay -l app=hermes-mcp --tail=50 --insecure-skip-tls-verify-backend=true # MySQL query mysql -h127.0.0.1 -uroot -pfetcherpay hermes_oauth -e "SELECT ..." # Registry workaround build/push SHA=$(git rev-parse --short HEAD) docker build -t localhost:32000/hermes-mcp:$SHA . docker save localhost:32000/hermes-mcp:$SHA -o /tmp/hermes-mcp-$SHA.tar microk8s ctr image import /tmp/hermes-mcp-$SHA.tar # Then update hermes-k8s.yaml image to localhost:32000/hermes-mcp:$SHA with imagePullPolicy: IfNotPresent ``` --- ## Related vault docs - Week 3 deploy result: `SquareMCP/deployments/2026-06-16-phase1-week3-chat-ui-deploy-result.md` - OAuth deploy result: `SquareMCP/deployments/2026-06-16-communications-chatgpt-oauth-deploy-result.md` - Observability runbooks: `SquareMCP/runbooks/observability/` - Monitoring deploy session: `SquareMCP/deployments/2026-06-16-otel-collector-remote-write-loki-tempo-dashboards.md`