6.5 KiB
Phase 1 Communications — Week 3 (Chat UI) Deploy Result
Date: 2026-06-16
Branch: main
Author: Kimi Code
Status: DEPLOYED + BROWSER QA'D
Original handoff
See SquareMCP/deployments/2026-06-16-phase1-week3-chat-ui-deploy-handoff.md for the full feature description.
What was deployed
Week 3 of the Chat-First Communications Manager:
- Chat UI dashboard tab (
product/app/communications.js) - Business profile form with vertical-specific fields (mortgage broker NMLS, etc.)
- Onboarding chips and chat-driven draft generation
- Inline draft editing, regenerate, reject
PUT /api/communications/drafts/:draft_idGET/PUT /api/communications/status(server-side 10-approval gate)- Autonomous-mode toggle hidden until
approved_posts_count >= 10
Git
| Action | SHA / Ref |
|---|---|
| Feature commit | 565b115 |
| Image SHA bump commit | 82ddad4 |
| Branch | main pushed to https://git.fetcherpay.com/garfield/hermes-mcp.git |
Docker image
localhost:32000/hermes-mcp@sha256:6fc290aea78e063b79814eab5325e3816ebb6120c5c268b677a889d52e0f1dc7
Updated in hermes-k8s.yaml.
Deploy procedure followed
git add src/communications.ts src/index.ts product/app/index.html product/app/app.js product/app/styles.css product/app/communications.jsgit commit -m "feat(communications): Week 3 — chat UI, onboarding, draft editing, status endpoints"git push origin maindocker build -t localhost:32000/hermes-mcp:<sha> -t localhost:32000/hermes-mcp:latest .docker push localhost:32000/hermes-mcp:<sha> && docker push localhost:32000/hermes-mcp:latest- Stopped and removed all local Docker containers:
docker stop $(docker ps -q) 2>/dev/null || true docker rm $(docker ps -aq) 2>/dev/null || true ss -tlnp | grep -E ':(80|443|3000|8080)' - Restarted the MySQL container immediately (Hermes connects to
127.0.0.1:3306):docker run -d --name mysql --restart unless-stopped \ -e MYSQL_ROOT_PASSWORD=fetcherpay \ -e MYSQL_DATABASE=fetcherpay \ -p 3306:3306 \ -v fetcherpay_mysql_data:/var/lib/mysql \ mysql:8.0 --bind-address=0.0.0.0 - Updated
hermes-k8s.yamlimage SHA. microk8s kubectl apply -f hermes-k8s.yamlmicrok8s kubectl rollout status deployment/hermes-mcp -n fetcherpay
Verification
Server startup
microk8s kubectl logs -n fetcherpay -l app=hermes-mcp --tail=50 | grep '\[db\]'
Result:
[db] MySQL connected and schema initialized
Health endpoint
curl https://hermes.squaremcp.com/health
Result:
{"status":"ok","service":"hermes-mcp","toolCount":55,...}
Status API
curl https://hermes.squaremcp.com/api/communications/status \
-H "x-api-key: 17fedba5e7fe4a9aa7736c8b4ca4baed"
Result:
{"approved_posts_count": 0, "autonomous_mode_enabled": false}
Autonomous-mode gate
curl -X PUT https://hermes.squaremcp.com/api/communications/status \
-H "x-api-key: 17fedba5e7fe4a9aa7736c8b4ca4baed" \
-H 'Content-Type: application/json' \
-d '{"autonomous_mode_enabled": true}'
Result:
{"error": "Autonomous mode unlocks after 10 approved posts"}
Browser QA click-through
Performed with headless Playwright against https://hermes.squaremcp.com/app/index.html.
Test account created
- Email:
qa-clickthrough-20260616@squaremcp.com - Password:
QATestPass123! - API key:
17fedba5e7fe4a9aa7736c8b4ca4baed - Role:
user(not admin)
Steps executed
- ✅ Logged into dashboard
- ✅ Clicked Communications nav tab
- ✅ Created mortgage-broker profile:
- NMLS:
123456 - States:
CA, NY - Disclaimer:
NMLS #123456. Not an offer to lend. - Tone:
professional - Platforms: LinkedIn, Instagram
- NMLS:
- ✅ Generated drafts via chat prompt: "Write a post about current mortgage rates"
- ✅ Edited Instagram draft text
- ✅ Attached Instagram image URL:
https://example.com/mortgage-rates.jpg - ✅ Confirmed autonomous-mode banner is hidden while
approved_posts_count < 10 - ✅ Clicked Approve & post all
Publish result
- LinkedIn publish failed with:
LinkedIn not connected for this account— expected for a fresh QA account with no OAuth tokens. - Instagram draft was included after image URL was attached.
Screenshot trail
| File | What it shows |
|---|---|
/tmp/qa_01_dashboard.png |
Dashboard after login |
/tmp/qa_02_communications.png |
Communications tab opened |
/tmp/qa_03_profile_filled.png |
Profile form filled |
/tmp/qa_04_profile_saved.png |
Profile saved, summary visible |
/tmp/qa_05_drafts.png |
Generated drafts |
/tmp/qa_06_edited.png |
Instagram draft edited with image URL |
/tmp/qa_07_published.png |
Approve & post results |
Issues encountered during deploy
Registry pod stuck in ContainerCreating
The MicroK8s registry pod (registry-579865c76c-98vmg) was stuck with 249 restarts, so docker push localhost:32000/... failed with connection refused.
Fix: force-deleted the pod. The ReplicaSet recreated it and push succeeded.
microk8s kubectl delete pod -n container-registry registry-579865c76c-98vmg --grace-period=0 --force
Ingress controller restart during deploy
nginx-ingress-microk8s-controller restarted around the same time, causing brief 503s/connection failures for SquareMCP sites. It recovered automatically.
Cleanup / open items
-
QA test account — delete when no longer needed:
docker exec mysql mysql -uroot -pfetcherpay \ -e "DELETE FROM hermes_oauth.customers WHERE email = 'qa-clickthrough-20260616@squaremcp.com';" -
Docker containers stopped —
mt5andobsidianwere stopped per the deploy warning. Restart if needed:cd ~/mt5-docker && ./start-mt5.sh # obsidian — rerun the original docker run command -
React SPA divergence — the original design doc mentioned a React SPA. This implementation is vanilla JS consistent with the rest of
product/app/. Documented as a known divergence, not a bug.
Related vault docs
- Week 3 handoff:
SquareMCP/deployments/2026-06-16-phase1-week3-chat-ui-deploy-handoff.md - Week 1+2 handoff:
SquareMCP/deployments/2026-06-15-phase1-communications-deploy-handoff.md - Observability runbooks:
SquareMCP/runbooks/observability/
Changelog
| Date | Author | Note |
|---|---|---|
| 2026-06-16 | Kimi Code | Deployed Week 3 chat UI and completed browser QA |