ci: prepare PM-safe platformctl auto deploy #234
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!234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/auto-deploy/deploy-runner-boundary"
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 — fire canary 3+3 manually before merge
Canary Context Pack
Product story
Piotr should move toward “review PR → click Merge → trusted pipeline plans, applies, checks health, and leaves evidence”, while still being protected from accidental production deploys, repo-secret shortcuts, and PR-head execution.
What changed
This PR adds the deploy-runner boundary and a PM-safe
platformctlauto-deploy skeleton:deploy-hostas the dedicated trusted production runner lane;.forgejo/workflows/platformctl-plan.ymlfor secret-free PR scope evidence;.forgejo/workflows/platformctl-auto-apply.ymlfor post-merge trusted-main plan → apply → health evidence;auto_apply_scope.pyto allow only narrow v1 modules:rs2000,docker-compose, relative compose file, and no secret/provider-like diff lines;find_merged_pr.pyso auto-apply binds trusted main SHA back to a merged PR;platformctl apply --remote-rootandPLATFORMCTL_REMOTE_ROOTsupport.Why it changed
Manual SSH/apply is still too much burden for a non-technical PM. Before a real auto-deploy can be trusted, the repo needs a hard runner/secret boundary and a narrow active workflow that fails closed when the runner is not ready.
Files touched
.forgejo/ci-policy.yaml.forgejo/workflows/merged-in-main-audit.yml.forgejo/workflows/platformctl-plan.yml.forgejo/workflows/platformctl-auto-apply.ymlcontrol-plane/platformctl/apply.pycontrol-plane/platformctl/cli.pycontrol-plane/platformctl/ci/auto_apply_scope.pycontrol-plane/platformctl/ci/find_merged_pr.pycontrol-plane/platformctl/tests/test_apply_phase3.pycontrol-plane/platformctl/tests/test_forgejo_ci_scripts_contract.pycontrol-plane/pyproject.tomldocs/ci/README.mddocs/ci/runner-contract.mdrunbooks/forgejo-actions-runner.mdRelevant context
platformctl plan/apply/healthchain.Runtime evidence
No RS2000 runtime mutation. Local checks passed:
Known constraints
The deploy runner must be registered/configured separately before the post-merge workflow can perform real work. The auto-apply job fails closed unless runner-local
PLATFORMCTL_DEPLOY_READY=1and local deploy capability are present.Explicit out-of-scope
Requested decision
Approve the dedicated deploy-runner boundary and narrow active workflow skeleton, then perform the one-time deploy runner setup before relying on auto-apply as the normal RS2000 change path.
Merge blockers
deploy-hosttier.Operator Merge Checklist
main.rs2000-deploy-hostwith labeldeploy-hostbefore expecting auto-apply to work.PLATFORMCTL_DEPLOY_READY=1, local Forgejo apply token bridge, SSH/Tailscale capability, andPLATFORMCTL_REMOTE_ROOT=/opt/pdurlej-platform/current.not_configured, do not guess; ask Codex/Claude for the next exact command.Spec sources read
AGENTS.md— identity, Forgejo API, security-sensitive review class.docs/ci/README.md— CI trust-tier documentation target.docs/ci/runner-contract.md— runner contract target.runbooks/forgejo-actions-runner.md— runner setup documentation target..forgejo/ci-policy.yaml— workflow policy source.control-plane/platformctl/apply.py— apply remote-root and approval behavior.control-plane/platformctl/cli.py— CLI flag surface.control-plane/platformctl/tests/test_apply_phase3.py— apply tests.control-plane/platformctl/tests/test_forgejo_ci_scripts_contract.py— contract tests.Refs #142
Refs #220
ci: document deploy runner secret boundaryto ci: prepare PM-safe platformctl auto deploy