docs(openclaw-mail): codify gateway runtime route #393

Merged
pdurlej merged 1 commit from codex/openclaw-mail-gateway-runtime-docs into main 2026-05-19 11:29:33 +02:00
Collaborator

Canary status: missing — runtime route codification; rely on required Forgejo checks before merge

Canary Context Pack

Product story

OpenClaw mail gateway is now live on VPS1000 and publicly reachable through RS2000 Traefik. The platform repo should reflect that runtime so future agents do not read stale rs2000/docker-compose metadata or lose the route on a later release-root sync.

What changed

  • Updated modules/openclaw-mail-gateway/module.yaml from stale rs2000/docker-compose/inbound metadata to the live VPS1000 systemd-user runtime.
  • Updated modules/openclaw-mail-gateway/runbook.md with the actual unit, Tailnet bind, public URL, health checks, restart procedure, and known scope boundary.
  • Added config/traefik/dynamic/openclaw-mail-gateway.yml, matching the live RS2000 Traefik file-provider route to http://100.79.239.52:8086.

Why it changed

The service was deployed and smoked successfully, but runtime truth still lived only as manual server state. This PR closes that drift.

Files touched

  • config/traefik/dynamic/openclaw-mail-gateway.yml
  • modules/openclaw-mail-gateway/module.yaml
  • modules/openclaw-mail-gateway/runbook.md

Relevant context

  • Live VPS1000 unit: openclaw-mail-gateway.service
  • Live RS2000 file-provider route: /opt/vps-home-platform-infra/config/traefik/dynamic/openclaw-mail-gateway.yml
  • Public URL: https://mail-gateway.pdurlej.com
  • Iskra/OpenClaw coordination issue: pdurlej/iskra-openclaw#332

Runtime evidence

  • VPS1000 tests before deploy: uv sync --extra dev && uv run pytest -> 36 passed in 1.57s.
  • RS2000 Tailnet backend health: curl http://100.79.239.52:8086/health -> status=ok, provider=resend, allowlist_size=3.
  • Public health: curl https://mail-gateway.pdurlej.com/health -> HTTP 200, valid Let's Encrypt cert CN=mail-gateway.pdurlej.com.
  • Public Missive smoke: POST https://mail-gateway.pdurlej.com/v1/missive/posts -> HTTP 200, audit post_id_matches=true.

Known constraints

  • This PR codifies existing live runtime. It does not install the VPS1000 unit or deploy the service; that is already done.
  • exposure.auth remains none because the current schema models edge auth only; the live API endpoint is application bearer-protected.
  • The Missive webhook receiver is explicitly out of scope.

Explicit out-of-scope

  • Generating VPS1000 systemd units from platformctl.
  • Moving the SQLite audit DB.
  • Missive inbound webhook receiver sprint.
  • OpenClaw MCP Z2/Z3 wiring.

Requested decision

Merge to record the live gateway route and runtime metadata in platform desired state.

Merge blockers

  • Any mismatch between the dynamic route and live RS2000 file-provider route.
  • Any claim that this PR deploys runtime code or changes secrets.

Spec sources read

  • modules/openclaw-mail-gateway/module.yaml — stale manifest being corrected.
  • modules/openclaw-mail-gateway/runbook.md — stale recovery docs being corrected.
  • modules/traefik/module.yaml — confirms config/traefik/dynamic/ is owned platform metadata.
  • compose/edge/compose.yaml — confirms Traefik file-provider mount path.
  • schema/module.schema.json — confirms valid systemd-user runtime fields.

Verification

  • python3 YAML parse for module and Traefik dynamic file: OK.
  • PYTHONPATH=control-plane python3 -m platformctl.cli validate modules/openclaw-mail-gateway/module.yaml: OK.
  • PYTHONPATH=control-plane pytest -q control-plane/platformctl/tests/test_validate.py: 6 passed.
  • curl -fsS https://mail-gateway.pdurlej.com/health: OK.

Closes no issue.

Canary status: missing — runtime route codification; rely on required Forgejo checks before merge ## Canary Context Pack ### Product story OpenClaw mail gateway is now live on VPS1000 and publicly reachable through RS2000 Traefik. The platform repo should reflect that runtime so future agents do not read stale rs2000/docker-compose metadata or lose the route on a later release-root sync. ### What changed - Updated `modules/openclaw-mail-gateway/module.yaml` from stale rs2000/docker-compose/inbound metadata to the live VPS1000 systemd-user runtime. - Updated `modules/openclaw-mail-gateway/runbook.md` with the actual unit, Tailnet bind, public URL, health checks, restart procedure, and known scope boundary. - Added `config/traefik/dynamic/openclaw-mail-gateway.yml`, matching the live RS2000 Traefik file-provider route to `http://100.79.239.52:8086`. ### Why it changed The service was deployed and smoked successfully, but runtime truth still lived only as manual server state. This PR closes that drift. ### Files touched - `config/traefik/dynamic/openclaw-mail-gateway.yml` - `modules/openclaw-mail-gateway/module.yaml` - `modules/openclaw-mail-gateway/runbook.md` ### Relevant context - Live VPS1000 unit: `openclaw-mail-gateway.service` - Live RS2000 file-provider route: `/opt/vps-home-platform-infra/config/traefik/dynamic/openclaw-mail-gateway.yml` - Public URL: `https://mail-gateway.pdurlej.com` - Iskra/OpenClaw coordination issue: `pdurlej/iskra-openclaw#332` ### Runtime evidence - VPS1000 tests before deploy: `uv sync --extra dev && uv run pytest` -> `36 passed in 1.57s`. - RS2000 Tailnet backend health: `curl http://100.79.239.52:8086/health` -> `status=ok`, `provider=resend`, `allowlist_size=3`. - Public health: `curl https://mail-gateway.pdurlej.com/health` -> HTTP 200, valid Let's Encrypt cert `CN=mail-gateway.pdurlej.com`. - Public Missive smoke: `POST https://mail-gateway.pdurlej.com/v1/missive/posts` -> HTTP 200, audit `post_id_matches=true`. ### Known constraints - This PR codifies existing live runtime. It does not install the VPS1000 unit or deploy the service; that is already done. - `exposure.auth` remains `none` because the current schema models edge auth only; the live API endpoint is application bearer-protected. - The Missive webhook receiver is explicitly out of scope. ### Explicit out-of-scope - Generating VPS1000 systemd units from `platformctl`. - Moving the SQLite audit DB. - Missive inbound webhook receiver sprint. - OpenClaw MCP Z2/Z3 wiring. ### Requested decision Merge to record the live gateway route and runtime metadata in platform desired state. ### Merge blockers - Any mismatch between the dynamic route and live RS2000 file-provider route. - Any claim that this PR deploys runtime code or changes secrets. ## Spec sources read - `modules/openclaw-mail-gateway/module.yaml` — stale manifest being corrected. - `modules/openclaw-mail-gateway/runbook.md` — stale recovery docs being corrected. - `modules/traefik/module.yaml` — confirms `config/traefik/dynamic/` is owned platform metadata. - `compose/edge/compose.yaml` — confirms Traefik file-provider mount path. - `schema/module.schema.json` — confirms valid `systemd-user` runtime fields. ## Verification - `python3` YAML parse for module and Traefik dynamic file: OK. - `PYTHONPATH=control-plane python3 -m platformctl.cli validate modules/openclaw-mail-gateway/module.yaml`: OK. - `PYTHONPATH=control-plane pytest -q control-plane/platformctl/tests/test_validate.py`: 6 passed. - `curl -fsS https://mail-gateway.pdurlej.com/health`: OK. Closes no issue.
docs(openclaw-mail): codify gateway runtime route
All checks were successful
canary-required / collect-diff (pull_request) Successful in 5s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 3s
platformctl plan / auto-apply scope (pull_request) Successful in 18s
canary-required / canary (pull_request) Successful in 12s
patchwarden-pr-sanity / sanity (pull_request) Successful in 20s
base-is-main / guard (pull_request) Successful in 1s
59de520b9a
Sign in to join this conversation.
No reviewers
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform!393
No description provided.