feat(platformctl): emit apply no-op events #664
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!664
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/195-apply-noop-event"
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 - platformctl apply observability; run canary manually before merge if branch policy requires it.
Canary Context Pack
Product story
Operators need to see approved zero-change applies as real events, not invisible successful no-ops. This lets M06/M07 count how often apply confirms in-sync state without creating a parallel metrics system.
What changed
platformctl applynow emits a task_run-alignedapply_noopevent when an approved plan is in sync and no remote apply is needed. The event is included in the JSON result and module status artifact.Why it changed
Issue #195 asked for structured no-op apply counters. #460 landed the minimal ADR-0025 contract:
{ task_id, repo, agent, event_kind: "apply_noop", count, ts }.Files touched
control-plane/platformctl/apply.pycontrol-plane/platformctl/tests/test_apply_phase3.pyRelevant context
state/memory/task-run-schema.md- #460 mini-contract for apply no-op events.Runtime evidence
No runtime commands were run. Validation:
Results: targeted 2 passed; broader 134 passed;
validate allexitCode 0.Known constraints
The event is emitted only for approved in-sync plans that exit no-op. Dry-run no-op remains a dry-run result, not an apply_noop counter.
Explicit out-of-scope
Requested decision
Approve if the event shape is acceptable for ADR-0025 ingestion and does not leak env-derived secrets.
Merge blockers
Spec sources read
state/memory/task-run-schema.md- task_run/apply_noop mini-contract.control-plane/platformctl/apply.py- no-op branch and status artifact path.control-plane/platformctl/tests/test_apply_phase3.py- apply regression tests.Closes #195
Patchwarden PR sanity
blocked66466f5ac57a9689f10db6db823a0104157166e8da3missingDeterministic findings
blockersecurity-sensitive-label-missingSecurity-sensitive change missing class/security-sensitive label —control-plane/platformctl/apply.pycontrol-plane/platformctl/apply.pyclass/security-sensitiveand route through the full security-sensitive review lane before merge.infosensitive-path-touchedSensitive path touched —control-plane/platformctl/apply.pycontrol-plane/platformctl/apply.pyModel reviewers
global-glm/glm-5.1:cloudStatus:
okVerdict:
NOT_OKmediumEvent shape diverges from ADR-0025 mini-contractPR description states #460 mini-contract specifies { task_id, repo, agent, event_kind, count, ts }. Implementation in control-plane/platformctl/apply.py:469-483 adds module, approved_pr, plan_age_seconds, source_sha beyond the contract. PRlowInconsistent event shape when approved_pr is Nonecontrol-plane/platformctl/apply.py:483 filters None values:return {key: value for key, value in event.items() if value is not None}. When approved_pr is None, the key is omitted entirely rather than set to null, creating inconsistent eveNone->nullmapping explicitly or always including approved_pr with a sentinel value (e.g., 0 or -1) for schema consistency.global-deepseek/deepseek-v4-pro:cloudStatus:
okVerdict:
NOT_OKhighEvent schema diverges from ADR-0025 mini-contractcontrol-plane/platformctl/apply.py: _noop_apply_event returns fields 'module', 'approved_pr', 'plan_age_seconds', 'source_sha' not in the #460 contract { task_id, repo, agent, event_kind, count, ts }.mediumStatus artifact gains new 'events' field, may break strict downstream parserscontrol-plane/platformctl/apply.py: _write_status_artifact now includes 'events' key. Downstream consumers of module status JSON may reject unknown fields.redteam/kimi-k2.6:clouderror-Policy notes
PLATFORMCTL_PR_SANITY_REDTEAM_MODELis configured.