fix(f3): prepare main redis and postgres smoke #314

Merged
pdurlej merged 1 commit from codex/f3/main-redis-postgres-prep into main 2026-05-17 02:52:56 +02:00
Collaborator

Canary status: missing — F3 final-boss prep; rely on required Forgejo checks before merge

Canary Context Pack

Product story

The next F3 tranche is the shared Redis and shared Postgres pair. These are high-blast-radius dependencies for n8n, Forgejo, Infisical, Umami, Matrix, and private operator apps, so backup-before evidence must be real before any stateful smoke.

What changed

  • Populated strict-v2 metadata for redis and postgres from live RS2000 runtime evidence.
  • Corrected their Docker volume names to the actual live volumes: home-platform_redis_data and home-platform_pg_data.
  • Documented restore/blast-radius risks for the shared Redis/Postgres state.
  • Hardened scripts/cutover/backup-before-apply.sh so Redis BGSAVE can authenticate when Redis has --requirepass in the container command but no REDIS_PASSWORD env var.
  • Updated scripts/cutover/README.md to document the Redis auth behavior.

Why it changed

Both manifests failed strict-v2, and main Redis would have failed backup-before with NOAUTH because it does not expose REDIS_PASSWORD in the container environment. Running F3 without fixing this would produce either a blocked workflow or false backup confidence.

Files touched

  • modules/redis/module.yaml
  • modules/postgres/module.yaml
  • scripts/cutover/backup-before-apply.sh
  • scripts/cutover/README.md

Runtime evidence

  • home-platform-redis-1: running healthy, image redis:7.4.7-alpine, digest redis@sha256:02f2cc4882f8bf87c79a220ac958f58c700bdec0dfb9b9ea61b62fb0e8f1bfcf, volume home-platform_redis_data.
  • home-platform-postgres-1: running healthy, image postgres:16.12-alpine, digest postgres@sha256:97ff59a4e30e08d1c11bdcd9455e7832368c0572b576c9092cde2df4ae5552a3, volume home-platform_pg_data.
  • Main Postgres databases observed: forgejo, infisical, integrations, matrix, n8n, np, np_memos, postgres, umami, zeroclaw.
  • Main Redis has no REDIS_PASSWORD env, but auth can be derived from existing container config and verified without printing the secret.

Known constraints

After merge, release-root-promote must land because the updated backup helper lives under scripts/cutover/**. Backup/smoke must wait until /opt/pdurlej-platform/current points at this merge SHA.

Explicit out-of-scope

  • No compose changes.
  • No Redis/Postgres restart.
  • No backup execution in this PR.
  • No secret value printed or committed.

Requested decision

Merge to unblock backup-before and F3 no-op smoke for redis and postgres.

Merge blockers

  • strict-v2 validation failure
  • shell syntax failure in backup helper
  • evidence that Redis auth is logged or exposed

BMADX

  • Gear: X3
  • Gate: execution_allowed=true, bmad_status=ok
  • Reason: final-boss shared data layer with production state and restore blast radius.

Spec sources read

  • modules/redis/module.yaml — target manifest
  • modules/postgres/module.yaml — target manifest
  • compose/core/compose.yaml — source of Redis/Postgres service definitions
  • compose/base/compose.yaml — live volume names
  • scripts/cutover/backup-before-apply.sh — backup helper being fixed
  • scripts/cutover/README.md — backup class documentation
  • modules/honcho-redis/module.yaml — Redis strict-v2 pattern

Verification

python3 "$HOME/.codex/skills/bmadx/scripts/sync_bmadx.py" check --gear X3 --compact
bash -n scripts/cutover/backup-before-apply.sh
control-plane/.venv/bin/python -m platformctl.cli validate --strict-v2 modules/redis/module.yaml
control-plane/.venv/bin/python -m platformctl.cli validate --strict-v2 modules/postgres/module.yaml
control-plane/.venv/bin/pytest control-plane/platformctl/tests/test_validate.py control-plane/platformctl/tests/test_forgejo_ci_scripts_contract.py -q
git diff --check

Live Redis auth parser smoke (no secret output): redis-auth-config-parse-ok.

Refs: #142

Canary status: missing — F3 final-boss prep; rely on required Forgejo checks before merge ## Canary Context Pack ### Product story The next F3 tranche is the shared Redis and shared Postgres pair. These are high-blast-radius dependencies for n8n, Forgejo, Infisical, Umami, Matrix, and private operator apps, so backup-before evidence must be real before any stateful smoke. ### What changed - Populated strict-v2 metadata for `redis` and `postgres` from live RS2000 runtime evidence. - Corrected their Docker volume names to the actual live volumes: `home-platform_redis_data` and `home-platform_pg_data`. - Documented restore/blast-radius risks for the shared Redis/Postgres state. - Hardened `scripts/cutover/backup-before-apply.sh` so Redis `BGSAVE` can authenticate when Redis has `--requirepass` in the container command but no `REDIS_PASSWORD` env var. - Updated `scripts/cutover/README.md` to document the Redis auth behavior. ### Why it changed Both manifests failed strict-v2, and main Redis would have failed backup-before with `NOAUTH` because it does not expose `REDIS_PASSWORD` in the container environment. Running F3 without fixing this would produce either a blocked workflow or false backup confidence. ### Files touched - `modules/redis/module.yaml` - `modules/postgres/module.yaml` - `scripts/cutover/backup-before-apply.sh` - `scripts/cutover/README.md` ### Runtime evidence - `home-platform-redis-1`: `running healthy`, image `redis:7.4.7-alpine`, digest `redis@sha256:02f2cc4882f8bf87c79a220ac958f58c700bdec0dfb9b9ea61b62fb0e8f1bfcf`, volume `home-platform_redis_data`. - `home-platform-postgres-1`: `running healthy`, image `postgres:16.12-alpine`, digest `postgres@sha256:97ff59a4e30e08d1c11bdcd9455e7832368c0572b576c9092cde2df4ae5552a3`, volume `home-platform_pg_data`. - Main Postgres databases observed: `forgejo`, `infisical`, `integrations`, `matrix`, `n8n`, `np`, `np_memos`, `postgres`, `umami`, `zeroclaw`. - Main Redis has no `REDIS_PASSWORD` env, but auth can be derived from existing container config and verified without printing the secret. ### Known constraints After merge, `release-root-promote` must land because the updated backup helper lives under `scripts/cutover/**`. Backup/smoke must wait until `/opt/pdurlej-platform/current` points at this merge SHA. ### Explicit out-of-scope - No compose changes. - No Redis/Postgres restart. - No backup execution in this PR. - No secret value printed or committed. ### Requested decision Merge to unblock backup-before and F3 no-op smoke for `redis` and `postgres`. ### Merge blockers - strict-v2 validation failure - shell syntax failure in backup helper - evidence that Redis auth is logged or exposed ## BMADX - Gear: X3 - Gate: `execution_allowed=true`, `bmad_status=ok` - Reason: final-boss shared data layer with production state and restore blast radius. ## Spec sources read - `modules/redis/module.yaml` — target manifest - `modules/postgres/module.yaml` — target manifest - `compose/core/compose.yaml` — source of Redis/Postgres service definitions - `compose/base/compose.yaml` — live volume names - `scripts/cutover/backup-before-apply.sh` — backup helper being fixed - `scripts/cutover/README.md` — backup class documentation - `modules/honcho-redis/module.yaml` — Redis strict-v2 pattern ## Verification ```bash python3 "$HOME/.codex/skills/bmadx/scripts/sync_bmadx.py" check --gear X3 --compact bash -n scripts/cutover/backup-before-apply.sh control-plane/.venv/bin/python -m platformctl.cli validate --strict-v2 modules/redis/module.yaml control-plane/.venv/bin/python -m platformctl.cli validate --strict-v2 modules/postgres/module.yaml control-plane/.venv/bin/pytest control-plane/platformctl/tests/test_validate.py control-plane/platformctl/tests/test_forgejo_ci_scripts_contract.py -q git diff --check ``` Live Redis auth parser smoke (no secret output): `redis-auth-config-parse-ok`. Refs: #142
fix(f3): prepare main redis and postgres smoke
All checks were successful
base-is-main / guard (pull_request) Successful in 1s
canary-required / collect-diff (pull_request) Successful in 4s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 3s
platformctl plan / auto-apply scope (pull_request) Successful in 19s
canary-required / canary (pull_request) Successful in 13s
patchwarden-pr-sanity / sanity (pull_request) Successful in 19s
4c98cb5740
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!314
No description provided.