docs(platformctl): document phase 05 apply gate #658

Merged
pdurlej merged 1 commit from codex/208-phase05-apply-docs into main 2026-06-01 14:03:12 +02:00
Collaborator

Canary status: missing - docs/workflow-comment-only update; run canary manually if branch policy requires it.

Canary Context Pack

Product story

Operators and reviewers need to know why the trusted apply workflow sets PLATFORMCTL_PHASE=05, and why that does not bypass the other apply gates.

What changed

Added an inline workflow comment next to PLATFORMCTL_PHASE=05 and documented the Phase 05 runtime-apply semantics in the CI runbook.

Why it changed

Issue #208 / PHASE-DOC-01 asked for explicit documentation that Phase 05 enables real runtime apply while earlier phases remain dry-run/stub gated.

Files touched

  • control-plane/forgejo-actions/apply.yaml
  • docs/ci/README.md

Relevant context

  • control-plane/platformctl/apply.py phase gate: _real_apply_enabled() and the non-dry-run refusal path.
  • docs/ci/README.md deploy/auto-apply model.

Runtime evidence

No runtime commands were run. Validation:

UV_CACHE_DIR=/private/tmp/codex-uv-cache uv run pytest platformctl/tests/test_forgejo_ci_scripts_contract.py
PYTHONPATH=control-plane UV_CACHE_DIR=/private/tmp/codex-uv-cache uv run --project control-plane python -m platformctl.cli validate all --json

Results: test_forgejo_ci_scripts_contract.py 42 passed; validate all exitCode 0.

Known constraints

This PR changes documentation and YAML comments only. It does not alter workflow execution, env values, apply behavior, or production runtime.

Explicit out-of-scope

  • No runtime apply.
  • No production restart.
  • No deploy capability change.
  • No phase-gate behavior change.

Requested decision

Approve if the documented Phase 05 meaning matches current platformctl apply behavior.

Merge blockers

  • The Phase 05 wording implies it bypasses apply safety gates.
  • The workflow comment becomes misleading after pending apply-hardening PRs merge.

Spec sources read

  • Issue #208 - scope and acceptance criteria.
  • control-plane/platformctl/apply.py - phase gate implementation.
  • control-plane/forgejo-actions/apply.yaml - workflow env setting.
  • docs/ci/README.md - target documentation surface.

Closes #208

Canary status: missing - docs/workflow-comment-only update; run canary manually if branch policy requires it. ## Canary Context Pack ### Product story Operators and reviewers need to know why the trusted apply workflow sets `PLATFORMCTL_PHASE=05`, and why that does not bypass the other apply gates. ### What changed Added an inline workflow comment next to `PLATFORMCTL_PHASE=05` and documented the Phase 05 runtime-apply semantics in the CI runbook. ### Why it changed Issue #208 / PHASE-DOC-01 asked for explicit documentation that Phase 05 enables real runtime apply while earlier phases remain dry-run/stub gated. ### Files touched - `control-plane/forgejo-actions/apply.yaml` - `docs/ci/README.md` ### Relevant context - `control-plane/platformctl/apply.py` phase gate: `_real_apply_enabled()` and the non-dry-run refusal path. - `docs/ci/README.md` deploy/auto-apply model. ### Runtime evidence No runtime commands were run. Validation: ```bash UV_CACHE_DIR=/private/tmp/codex-uv-cache uv run pytest platformctl/tests/test_forgejo_ci_scripts_contract.py PYTHONPATH=control-plane UV_CACHE_DIR=/private/tmp/codex-uv-cache uv run --project control-plane python -m platformctl.cli validate all --json ``` Results: `test_forgejo_ci_scripts_contract.py` 42 passed; `validate all` exitCode 0. ### Known constraints This PR changes documentation and YAML comments only. It does not alter workflow execution, env values, apply behavior, or production runtime. ### Explicit out-of-scope - No runtime apply. - No production restart. - No deploy capability change. - No phase-gate behavior change. ### Requested decision Approve if the documented Phase 05 meaning matches current `platformctl apply` behavior. ### Merge blockers - The Phase 05 wording implies it bypasses apply safety gates. - The workflow comment becomes misleading after pending apply-hardening PRs merge. ## Spec sources read - Issue #208 - scope and acceptance criteria. - `control-plane/platformctl/apply.py` - phase gate implementation. - `control-plane/forgejo-actions/apply.yaml` - workflow env setting. - `docs/ci/README.md` - target documentation surface. Closes #208
docs(platformctl): document phase 05 apply gate
All checks were successful
canary-required / collect-diff (pull_request) Successful in 7s
infra-docs-drift / docs-drift (pull_request) Successful in 7s
pyfallow / Pyfallow gate (control-plane) (pull_request) Successful in 26s
python-ci / Python 3.11 (pull_request) Successful in 45s
python-ci / Python 3.12 (pull_request) Successful in 51s
python-ci / Python 3.13 (pull_request) Successful in 47s
workflow-lint / lint (pull_request) Successful in 7s
base-is-main / guard (pull_request) Successful in 1s
patchwarden-client-dry-run / collect-diff (pull_request) Successful in 6s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 6s
canary-required / canary (pull_request) Successful in 16s
patchwarden-client-dry-run / dry-run (pull_request) Successful in 27s
patchwarden-pr-sanity / sanity (pull_request) Successful in 2m53s
034a059a22
Author
Collaborator

Patchwarden PR sanity

  • Status: advisory_findings
  • PR: 658
  • Commit: 034a059a224cb6a2170e1b61890b71f6f6f5d05e
  • Security-sensitive label: present
  • Authority: advisory model review plus deterministic blockers only
  • 3+3 canary: still alive; this does not replace it

Deterministic findings

No deterministic findings.

Model reviewers

global-glm / glm-5.1:cloud

  • Status: ok

  • Verdict: OK

  • medium Documentation claims about apply.py gate behavior unverified in diff

    • Evidence: docs/ci/README.md added lines state 'Phase 05 does not bypass the merged-PR SHA, plan validation, sacred-path, or break-glass gates' but apply.py code is not shown in this diff to confirm accuracy
    • Next: Verify against control-plane/platformctl/apply.py that _real_apply_enabled() and other gate checks still enforce merged-PR SHA, plan validation, sacred-path, and break-glass gates when PLATFORMCTL_PHASE=05

global-deepseek / deepseek-v4-pro:cloud

  • Status: ok

  • Verdict: OK

  • low Documentation may become stale after future apply-hardening PRs

    • Evidence: PR description states: 'The workflow comment becomes misleading after pending apply-hardening PRs merge.' The added comment in control-plane/forgejo-actions/apply.yaml and the runbook paragraph in docs/ci/README.md describe current Phase 05
    • Next: Add a reminder in the PR or issue tracker to update this documentation when the apply-hardening PRs land, or include a version note in the comment.

redteam / kimi-k2.6:cloud

  • Status: ok

  • Verdict: NOT_OK

  • high YAML comment embeds fragile safety claim omitting other gates

    • Evidence: control-plane/forgejo-actions/apply.yaml adds inline comment '# Values below Phase 05, including unset, refuse non-dry-run apply.' directly above PLATFORMCTL_PHASE: '05'. The PR description's merge-blocker section explicitly warns this comm
    • Next: Remove the behavioral claim from the workflow file and replace it with a non-stale pointer to docs/ci/README.md (e.g., '# Phase gate semantics: see docs/ci/README.md') so operators do not rely on inline comments that drift from code.

Policy notes

  • GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot.
  • Optional red-team model is enabled only when PLATFORMCTL_PR_SANITY_REDTEAM_MODEL is configured.
  • Auto-merge is not enabled here.
<!-- patchwarden-pr-sanity:pdurlej/platform:PR-658 --> # Patchwarden PR sanity - Status: `advisory_findings` - PR: `658` - Commit: `034a059a224cb6a2170e1b61890b71f6f6f5d05e` - Security-sensitive label: `present` - Authority: advisory model review plus deterministic blockers only - 3+3 canary: still alive; this does not replace it ## Deterministic findings No deterministic findings. ## Model reviewers ### `global-glm` / `glm-5.1:cloud` - Status: `ok` - Verdict: `OK` - **`medium`** Documentation claims about apply.py gate behavior unverified in diff - Evidence: `docs/ci/README.md added lines state 'Phase 05 does not bypass the merged-PR SHA, plan validation, sacred-path, or break-glass gates' but apply.py code is not shown in this diff to confirm accuracy` - Next: Verify against control-plane/platformctl/apply.py that _real_apply_enabled() and other gate checks still enforce merged-PR SHA, plan validation, sacred-path, and break-glass gates when PLATFORMCTL_PHASE=05 ### `global-deepseek` / `deepseek-v4-pro:cloud` - Status: `ok` - Verdict: `OK` - **`low`** Documentation may become stale after future apply-hardening PRs - Evidence: `PR description states: 'The workflow comment becomes misleading after pending apply-hardening PRs merge.' The added comment in control-plane/forgejo-actions/apply.yaml and the runbook paragraph in docs/ci/README.md describe current Phase 05` - Next: Add a reminder in the PR or issue tracker to update this documentation when the apply-hardening PRs land, or include a version note in the comment. ### `redteam` / `kimi-k2.6:cloud` - Status: `ok` - Verdict: `NOT_OK` - **`high`** YAML comment embeds fragile safety claim omitting other gates - Evidence: `control-plane/forgejo-actions/apply.yaml adds inline comment '# Values below Phase 05, including unset, refuse non-dry-run apply.' directly above PLATFORMCTL_PHASE: '05'. The PR description's merge-blocker section explicitly warns this comm` - Next: Remove the behavioral claim from the workflow file and replace it with a non-stale pointer to docs/ci/README.md (e.g., '# Phase gate semantics: see docs/ci/README.md') so operators do not rely on inline comments that drift from code. ## Policy notes - GLM 5.1 + DeepSeek V4 Pro are the operator-required model mix for this bot. - Optional red-team model is enabled only when `PLATFORMCTL_PR_SANITY_REDTEAM_MODEL` is configured. - Auto-merge is not enabled here.
pdurlej deleted branch codex/208-phase05-apply-docs 2026-06-01 14:03:12 +02:00
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 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!658
No description provided.