fix(cutover): support minio-init one-shot apply #379
No reviewers
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/domain/cutover-ops-minio-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canary status: missing — required Forgejo checks/canary before merge
Canary Context Pack
Product story
#310 blocks the remaining cutover-ops path because
minio-initis a sidecar-bound one-shot that currently exits non-zero. We need a safe way to rerun it after the MinIO backup without weakening the general F3 rule that stateful smokes are no-op by default.What changed
minio-initcompose command shape so/bin/sh -creceives the full idempotent bucket bootstrap script.minio-initstrict-v2 complete and declaredspec.runtime.expected_state: exited-success.backup_ref_modules.exited 0is healthy for declared one-shot services.container.state.exited_successdrift is allowed afterBACKUP_DONE_F3+ matching backup ref.0.Why it changed
The existing F3 workflow correctly blocks drift for stateful modules. That would also block the needed
minio-initrepair because the current live container isexited/1. This PR preserves the no-op rule for normal F3 stateful services while adding an explicit, test-covered exception for restart:no one-shot services.Files touched
.forgejo/workflows/platformctl-auto-apply.ymlcompose/core/compose.yamlcontrol-plane/platformctl/apply.pycontrol-plane/platformctl/ci/allow_one_shot_stateful_apply.pycontrol-plane/platformctl/ci/auto_apply_scope.pycontrol-plane/platformctl/{plan.py,health.py}tests/smoke.shmodules/minio-init/{module.yaml,runbook.md}schema/module.schema.{json,md}control-plane/platformctl/tests/Relevant context
/opt/pdurlej-platform/backups/minio-20260517T010847Z.tar.gz.Runtime evidence
miniohealthy/running;minio-initexited with code1; command shape rendered as baremcrather than the full script.--no-interpolatenow showsminio-initcommand as-cplus the full script, with literal runtime env references.Known constraints
minio-initon production.container.state.exited_successdrift.Explicit out-of-scope
Requested decision
Review as Full/security-sensitive cutover workflow work. Merge only if the guarded one-shot exception is acceptable for #310.
Merge blockers
minio-initcould mutate buckets beyond create-or-verify.Validation
control-plane/.venv/bin/python -m pytest control-plane/platformctl/tests/test_apply_phase3.py control-plane/platformctl/tests/test_apply_env_file.py control-plane/platformctl/tests/test_plan_phase3.py control-plane/platformctl/tests/test_health_phase3.py control-plane/platformctl/tests/test_forgejo_ci_scripts_contract.py -q→ 125 passedPYTHONPATH=control-plane control-plane/.venv/bin/python control-plane/platformctl/ci/lint_workflows.py→ passedcontrol-plane/.venv/bin/python -m platformctl.cli validate --strict-v2 modules/minio-init/module.yaml→ passedPLATFORMCTL_SMOKE_REMOTE_MODE=skip tests/smoke.sh --json minio-init→ passedgit diff --checkon touched files → passedauto_apply_scope.py --module minio-init --allow-stateful --backup-ref /opt/pdurlej-platform/backups/minio-20260517T010847Z.tar.gz --fail-on-blocked→ eligibleallow_one_shot_stateful_apply.pysynthetic guard check → allowed only forcontainer.state.exited_successPost-merge operator dispatch
Trigger
platformctl-auto-apply.ymlmanually with:Expected first run: plan drift limited to
container.state.exited_success; guarded one-shot apply runs; health passes whenhome-platform-minio-init-1exits0andminioremains healthy.Spec sources read
modules/minio-init/module.yamlmodules/minio-init/runbook.mdcompose/core/compose.yaml.forgejo/workflows/platformctl-auto-apply.ymlcontrol-plane/platformctl/{plan.py,health.py,apply.py}control-plane/platformctl/ci/auto_apply_scope.pyRefs #310