Sync vault notes: April-November 2026 sessions, projects, and architecture

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
garfieldandClaude Sonnet 5.5 committed 2026-11-13 11:00:53 -05:00
1 parent fe4fe656be
commit 994c7ae577
379 files changed
+55216 -107

No files matched your search

@@ -0,0 +1,192 @@
# FetcherPay Infrastructure Diagram — 2026-04-20
## Session Overview
Garfield asked Claude (claude.ai) to produce a PlantUML deployment diagram of the FetcherPay server (art0) including all Kubernetes workloads, Docker Compose stacks, and networking.
---
## Sources Used
- Obsidian vault note: `2026-03-31-devops-infrastructure.md`
- Obsidian vault note: `2026-04-14-hermes-mcp-obsidian-setup.md`
- Obsidian vault note: `2026-04-15-obsidian-syncthing-mcp-tools.md`
- Obsidian vault note: `2026-03-30-dns-whitelist.md`
- Claude memory context (Poste.io, ClaimVector, cert-manager, fetcherpay-api, Azure relay)
---
## Infrastructure Summary
| Layer | Component | URL / Endpoint |
|-------|-----------|---------------|
| Host | art0, Ubuntu, AT&T | 104.190.60.129 |
| Gateway | AT&T Router, NAT | 104.190.60.134 |
| Ingress | Traefik (Docker) | :80 / :443 |
| MCP | hermes-mcp (Node.js) | https://hermes.fetcherpay.com |
| Obsidian UI | obsidian-remote | https://obsidian.fetcherpay.com |
| Sync | Syncthing (systemd + K8s) | https://obsidian-sync.fetcherpay.com |
| Git | Gitea | https://git.fetcherpay.com |
| App | fetcherpay-api (Next.js) | https://fetcherpay-staging.claimvector.com |
| Auth | Keycloak (K8s) | https://auth-staging.claimvector.com |
| Mail | Poste.io (K8s) | SMTP relay → Azure Communication Services |
| TLS (Docker) | Let's Encrypt httpChallenge via Traefik | — |
| TLS (K8s) | cert-manager HTTP-01 | — |
| DNS (K8s) | CoreDNS → 8.8.8.8 / 1.1.1.1 | — |
---
## PlantUML Diagram
```plantuml
@startuml FetcherPay Infrastructure — art0
skinparam {
BackgroundColor #1e1e2e
ArrowColor #cdd6f4
ArrowFontColor #cdd6f4
NodeBorderColor #585b70
NodeFontColor #cdd6f4
DatabaseBorderColor #585b70
DatabaseFontColor #cdd6f4
ComponentBorderColor #585b70
ComponentFontColor #cdd6f4
NoteBorderColor #585b70
NoteFontColor #a6adc8
NoteBackgroundColor #313244
PackageBorderColor #585b70
PackageFontColor #89b4fa
PackageBackgroundColor #181825
RectangleBorderColor #585b70
RectangleFontColor #cdd6f4
RectangleBackgroundColor #1e1e2e
DefaultFontName "JetBrains Mono", "Fira Code", monospace
DefaultFontSize 12
TitleFontSize 18
TitleFontColor #cba6f7
}
title <b>FetcherPay — Server Infrastructure</b>\n<size:12>art0 · Ubuntu · 104.190.60.129 (AT&T Residential)</size>
package "Internet / DNS (Cloudflare)" #1e1e2e {
[Client Browser / API Consumer] as client #45475a
note right of client
All *.fetcherpay.com records
→ A 104.190.60.129
(updated 2026-03-31)
end note
}
package "AT&T Gateway — 104.190.60.134" #181825 {
[AT&T Router\nNAT / Port Forward\n:80 → art0 :443 → art0] as router #313244
}
package "art0 — Ubuntu Server (104.190.60.129)" #181825 {
package "Traefik v2 (Docker Container)" #1e1e2e {
[Traefik\nReverse Proxy + TLS\nLet's Encrypt (httpChallenge)\nexposedByDefault: false\n:80 → :443 redirect\n:443 TLS termination] as traefik #89b4fa
}
package "Docker Compose Stacks" #181825 {
package "hermes-mcp stack\n(hermes-mcp_hermes-net)" #1e1e2e {
[hermes-mcp\nNode.js / TypeScript\nMCP Server (SSE + HTTP)\nPort 3456\nExposes 10 tools:\n6 email + 4 obsidian] as hermes #a6e3a1
database "hermes-mcp/.env\nIMAP / SMTP creds\nOBSIDIAN_VAULT_PATH\nSYNCTHING_API_KEY" as hermesenv #313244
hermes --> hermesenv : reads
}
package "obsidian stack\n(obsidian_obsidian-net)" #1e1e2e {
[obsidian-remote\n(sytone/obsidian-remote)\nPort 8080\nBrowser-based Obsidian UI] as obsidian #f9e2af
database "/home/garfield/obsidian/vaults\n(bind mount :rw)" as vaultdir #313244
obsidian --> vaultdir : read/write
}
package "fetcherpay-api stack" #1e1e2e {
[fetcherpay-api\nNext.js Monorepo\n(Traefik label reference impl)\nfetcherpay-staging.claimvector.com] as fpapi #cba6f7
}
package "gitea stack" #1e1e2e {
[Gitea\nSelf-hosted Git\ngit.fetcherpay.com\nInternal ClusterIP: 10.152.183.192:3000] as gitea #fab387
database "Gitea Repos:\n• devops-convo-memories\n• mql-trading-bots\n• conversation-history\n• fetcherpay-web" as gitrepos #313244
gitea --> gitrepos
}
}
package "Syncthing (systemd user service)" #1e1e2e {
[syncthing\nP2P File Sync\nGUI :8384 (localhost)\nRestart=always\nSync folder: obsidian-vault] as syncthing #89dceb
syncthing --> vaultdir : syncs vault to/from\nmobile / desktop peers
}
package "Kubernetes Cluster (MicroK8s)" #181825 {
package "kube-system namespace" #1e1e2e {
[CoreDNS\nForwards: 8.8.8.8, 1.1.1.1\n(patched away from ISP DNS)] as coredns #89b4fa
}
package "cert-manager namespace" #1e1e2e {
[cert-manager\nLet's Encrypt HTTP-01\nCertificateRequest controller] as certmgr #a6e3a1
}
package "default / fetcherpay namespace" #1e1e2e {
[Syncthing K8s Service\n(syncthing-k8s.yaml)\nIngress: obsidian-sync.fetcherpay.com\nTLS via cert-manager] as syncthingk8s #89dceb
[ClaimVector Auth\nKeycloak\nauth-staging.claimvector.com] as keycloak #cba6f7
database "PostgreSQL\n(ClaimVector)" as pg #313244
keycloak --> pg
}
package "mail namespace" #1e1e2e {
[Poste.io\nSelf-hosted Mail Server\nSMTP / IMAP\n(relay migrated → Azure Comm Svcs)] as mail #f38ba8
}
certmgr --> syncthingk8s : issues TLS cert
certmgr --> keycloak : issues TLS cert
certmgr --> mail : issues TLS cert
coredns --> certmgr : DNS resolution\nfor HTTP-01 challenge
}
traefik --> hermes : hermes-mcp_hermes-net\n(docker network connect)
traefik --> obsidian : obsidian_obsidian-net\n(docker network connect)
traefik --> fpapi : fetcherpay-api net
traefik --> gitea : gitea net
traefik --> syncthingk8s : proxies Syncthing GUI\nobsidian-sync.fetcherpay.com
hermes --> syncthing : obsidian_sync_status tool\nhttp://host.docker.internal:8384
hermes --> vaultdir : obsidian_read/search/append\n(direct filesystem, /vaults mount)
}
package "External Cloud Services" #181825 {
[Azure Communication Services\nSMTP Relay] as azure #4fc3f7
[Let's Encrypt ACME\nCA] as letsencrypt #f9e2af
}
client --> router : HTTPS :443
router --> traefik : Port Forward :80/:443
traefik --> hermes : https://hermes.fetcherpay.com\n(SSE /sse, HTTP /mcp)
traefik --> obsidian : https://obsidian.fetcherpay.com
traefik --> fpapi : https://fetcherpay-staging.claimvector.com
traefik --> gitea : https://git.fetcherpay.com
traefik --> letsencrypt : HTTP-01 challenge\n(httpChallenge via :80)
mail --> azure : SMTP relay\n(TLS, port 587)
certmgr --> letsencrypt : ACME HTTP-01
legend right
| Color | Layer |
| <#89b4fa> | Ingress / Networking |
| <#a6e3a1> | MCP / API Services |
| <#f9e2af> | Dev Tools / UI |
| <#cba6f7> | Auth / App Services |
| <#fab387> | Source Control |
| <#89dceb> | File Sync |
| <#f38ba8> | Mail / Messaging |
endlegend
@enduml
```
---
## Tags
#architecture #fetcherpay #kubernetes #docker #infrastructure #traefik #plantuml
+158
View File
@@ -0,0 +1,158 @@
# Mantl + Q2 → CMG Azure SFTP Processing (Conversation Summary)
## Context
This note captures the full discussion and design decisions around integrating **Mantl (onboarding)** and **Q2 (ongoing payments)** into the **CMG Azure environment via SFTP**.
---
## Core Architecture Principle
Mantl and Q2 are **parallel upstream systems**, not sequential.
- **Mantl** → onboarding + initial funding + documents
- **Q2** → ongoing ACH, wires, reporting
Both feed into CMG Azure independently.
---
## High-Level Flow
```text
Mantl SFTP Q2 SFTP
Onboarding / Initial Funding Ongoing Payments / Reporting
│ │
▼ ▼
Mantl Source Adapter Q2 Source Adapter
│ │
└──────────────┬─────────────┘
▼
CMG Azure Ingestion Hub
Raw Landing / Quarantine / Archive
│
▼
Validation / Classification / DeDupe / Routing
│ │
▼ ▼
Payments Domain Docs / Reporting Domain
```
---
## Key Design Decisions
### 1. Separation of Concerns
- Mantl does **not** perform settlement
- Mantl generates **funding instructions (ACH files)**
- CMG performs **execution + settlement + reconciliation**
### 2. Azure as Ingestion Hub
Azure acts as:
- centralized ingestion
- audit layer
- validation + routing engine
### 3. File Handling Model
Files are:
1. Pulled from SFTP
2. Landed in **raw (immutable)** storage
3. Validated and classified
4. Routed to downstream systems
### 4. Domain Separation
- **Payments Domain** → ACH + wires
- **Docs / Reporting Domain** → DMS + reports
---
## SFTP Structure (Conceptual)
### Mantl
- /ACH
- /DMS
### Q2
- /ACH
- /WIRES
- /REPORTS
---
## Azure Storage Structure
```text
/raw/mantl/ach/
/raw/mantl/dms/
/raw/q2/ach/
/raw/q2/wires/
/raw/q2/reports/
/quarantine/
/archive/
```
---
## Processing Responsibilities
### Ingestion Layer
- SFTP polling
- download
- metadata tagging
- raw storage
### Processing Layer
- classification
- validation
- duplicate detection
- routing
### Downstream Systems
- ACH processing
- wire operations
- document archive
- reconciliation/reporting
---
## Mantl Funding Clarification
Mantl:
- captures funding intent
- generates ACH instruction
- places file on SFTP
CMG:
- picks up file
- sends to ACH processor
- handles settlement
---
## Additional Future Scope (Not on Main Artifact)
### CMGHL Servicing Integration
- Data flow: Servicing → Banking
- User flow: Banking (Q2 OLB) → Servicing (SSO)
Kept separate to avoid scope creep during bank discussions.
---
## Key Operational Considerations
- batch vs near-real-time timing
- polling frequency
- human intervention points
- idempotency + duplicate protection
- exception handling
---
## Summary
The architecture:
- decouples onboarding from payments
- centralizes ingestion in Azure
- enforces auditability and control
- simplifies downstream operations
Primary goal: **reduce manual effort and ambiguity in file handling**