7.9 KiB
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
observabilitynamespace (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
565b115deployed - 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
61ce4c7deployed - Image
localhost:32000/hermes-mcp:61ce4c7(loaded viamicrok8s ctr image importdue to registry NodePort issue) - New OAuth client registered for Communications GPT:
- Client ID:
d5b4125c62c6f7ae61740116f8661dbb - Client secret: set in
hermes-k8s.yaml(not committed)
- Client ID:
/openapi-communications.jsonlive 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
-
fetcherpay-leads-api/fetcherpay-leads-worker—ImagePullBackOff- Pointing to dead registry
23.120.207.35:32000 - Current registry is
localhost:32000;fetcherpay/leads-api:latestexists butv16-import-fixdoes not - Fix: repoint image refs or delete if abandoned
- Pointing to dead registry
-
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
dmesgOOM logs
-
Registry NodePort
localhost:32000not accessible from host- Docker push fails
- Workaround:
docker save+microk8s ctr image import - Fix: investigate why NodePort isn't bound on host
-
hermes.squaremcp.comroot path returns 404- API works; static dashboard is at
/app/index.html - Expected behavior per active issues list
- API works; static dashboard is at
-
hermes.fetcherpay.comandollama.fetcherpay.comnot in ingress- Not configured yet
-
Docker containers
mt5andobsidianwere stopped during deploy- Need to be restarted if user wants them running
Next tasks for the next agent
High priority (user-facing / blocking)
-
Complete the Communications ChatGPT GPT creation
- Original handoff:
SquareMCP/deployments/2026-06-16-communications-chatgpt-oauth-deploy-handoff.md - Steps:
- In ChatGPT Builder, import Actions from
https://hermes.squaremcp.com/openapi-communications.json - Configure OAuth:
- Client ID:
d5b4125c62c6f7ae61740116f8661dbb - Client Secret: read from
hermes-k8s.yamlenv varCOMMUNICATIONS_OAUTH_CLIENT_SECRET - Authorization URL:
https://hermes.squaremcp.com/oauth/authorize - Token URL:
https://hermes.squaremcp.com/oauth/token
- Client ID:
- Test end-to-end OAuth flow in the GPT (profile → chat → draft → approve/publish)
- Add GPT name/description/icon
- Verify privacy/terms pages cover Communications data handling
- Set visibility to Public
- In ChatGPT Builder, import Actions from
- Original handoff:
-
Fix
fetcherpay-leads-api/fetcherpay-leads-worker- Either repoint to
localhost:32000/fetcherpay/leads-api:latestor delete if abandoned
- Either repoint to
-
Restart user containers if requested
mt5:cd ~/mt5-docker && ./start-mt5.shobsidian: rerun original docker run command
Medium priority (infrastructure stability)
-
Stabilize nginx-ingress controller
- Add memory request/limit to ingress DaemonSet
- Monitor restart rate after change
-
Fix registry NodePort accessibility
- Investigate why
localhost:32000is not listening on host despite NodePort service - This blocks normal
docker pushworkflow
- Investigate why
-
Add
hermes.fetcherpay.comandollama.fetcherpay.comingress- Requires deciding what backend services to route to
Low priority / cleanup
-
Commit or revert
hermes-k8s.yamlchanges- Currently has uncommitted local changes (OAuth credentials + image tag)
- Secret must not be committed
- Consider moving secrets to a Kubernetes Secret resource
-
Delete QA test accounts if no longer needed
qa-clickthrough-20260616@squaremcp.commay 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.yamlis tracked in git but contains secrets. Do not commit new OAuth secret values.- Direct
kubectl exec/logs/port-forwardoften fails due to kubelet TLS cert not including104.190.60.129. Use--insecure-skip-tls-verify-backend=truefor logs, orkubectl proxyfor 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 applyto avoid port conflicts.
Useful one-liners
# 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