ADR 0002 CI enforcement — setup TASKs (secrets, branch protection, runner verification, first test PR) #49
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Migrated from
state/L3/OPEN_LOOPS.mdADR 0002 deadline entry + ADR 0002 itself §Open loops.Source
decisions/0002-ci-enforcement-canary.md(PR #44, awaiting merge) §Open loops section names 4 setup TASKs.What
ADR 0002 adds Forgejo Actions workflow
.forgejo/workflows/canary-required.ymlthat mechanically blocks merge withoutapprove_mergefrom canary 3+3. Workflow does NOT activate until 4 preconditions:Setup checklist (operator UI tasks)
ZAI_API_KEYto Forgejo repo secrets (Forgejo settings → Secrets and variables). Value fromstack.envon RS2000 (grep '^ZAI_API_KEY=' /opt/vps-home-platform-infra/env/stack.env | cut -d= -f2-). Estimated effort: 5 min.CANARY_FORGEJO_TOKENto Forgejo repo secrets. Service-account PAT for the workflow to commit canary results back to PR branches (push state/reviews/PR-N/decision_packet.md). Could beclaudePAT or a dedicatedcanary-botuser. Estimated effort: 5 min.main(Forgejo settings → Branches → main → Protect this branch). Require status checkcanary-requiredto pass before merge. Allow admin override (operator gets emergency-override path). Estimated effort: 5 min.Sequencing
All 4 setup TASKs can happen in parallel after PR #44 merges. First test PR after all 4 complete.
Owner action
Merge PR #44 first → then operator does setup TASKs → orchestrator runs first test PR.
Acceptance criteria
pdurlej/platformapdurlej/iskra-openclaw— co gdzie mieszka #74Codex live audit: CI/canary rollout status — 2026-05-18 16:56 CEST
Current verified state from rs2000 + Forgejo API:
Pdurlej Forge).mainis protected and now requiresbase-is-main / guard.rs2000-docker(ubuntu-latest,ubuntu-22.04,docker) andrs2000-canary-host(canary-host).canary-required.ymlis still explicitlySCAFFOLD / READINESS ONLY.canaryjob still runs onubuntu-22.04, notcanary-host./data/platformctl/canary.envis missing.ready=false,status=not_configured.401 Invalid credentials.Implication: CI is active and branch protection is materially improved, but ADR-0002-style full 3+3 canary enforcement is not complete. Green
canary-requiredchecks currently mean "scaffold/readiness path succeeded", not "full canary review ran".Recommended next acceptance gate for this issue:
/data/platformctl/canary.envfrom Infisical machine auth without storing provider/API secrets in Forgejo repo secrets.canary_readiness.pyreportready=trueon rs2000.canaryjob toruns-on: canary-host.decision_packet.jsonfromplatformctl.tools.run_review.Note (claude) — owner-attention flag. This gates on an operator decision: which checks become blocking (required) on
main. Codex — not a default grind. Architecturally, the safe ADR-0002 rollout = required-but-advisory first, then flip to blocking after a calibration window (mirrors the W6d automerge calibration). Needs operator go on the scope before any check flips to blocking.M06 cleanup: this is not active Codex grind while
owner-attentionis present. Removed from the Codex execution queue; kept open in M06 because it still represents an owner/process CI-enforcement decision path, not an implementation task.M06 closeout cleanup by codex: moving this owner-gated CI enforcement setup from M06 to M10 Improvements. M06 core agent execution/governance work is closed; this remains a follow-up/operator process task, not an active M06 blocker.
{
"confidence": 5,
"effort_hint": "medium",
"escalation": {
"kind": "operator",
"reason": "Secrets, branch protection, runner verification, and first test PR are owner-controlled setup gates."
},
"evidence_refs": [
{
"note": "Issue tracks ADR 0002 CI enforcement setup tasks required before the canary-required workflow becomes active.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Body states the workflow does not activate until repository secrets, branch protection, runner checks, and test PR validation are completed.",
"type": "forgejo",
"value": "issue-body-setup-checklist"
},
{
"note": "Labels mark this as owner-attention, phase 02, and process risk.",
"type": "snapshot",
"value": "target-labels-snapshot"
}
],
"impact": 5,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-05T01:01:00Z",
"labels_to_apply": [
"judge/p1",
"judge/operator-needed"
],
"piotr_fit": "high",
"priority": "p1",
"rationale_summary": "This is P1 because ADR 0002 merge enforcement is not real until owner-gated setup proves the workflow can block unsafe merges.",
"reach": 4,
"recommended_next_action": "operator_needed",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 49,
"repo": "pdurlej/platform"
},
"target_snapshot": {
"body_hash": "sha256:30060dbf75d4802b12d49c9b4b7e835c47a03324628e5ee965de670dbe87d6c4",
"commit_count": null,
"evidence_hash": "sha256:4de92b5218f9efe0607f29cb35d95db37c531116b8d811ec7ef29433dfdf42dc",
"head_sha": null,
"labels": [
"owner-attention",
"phase/02",
"risk/process"
],
"labels_hash": "sha256:c9ebed45f96127df52893433178a608d796424949e673a5c99e2f2021b7b75ea",
"state": "open",
"title_hash": "sha256:c85bb3349bc5b8733b8119995c513715a1653f2b993ec7860f7405107734aa4f",
"updated_at": "2026-06-04T19:39:19+02:00"
},
"top_caveat": "Do not claim CI enforcement is active until the secrets, branch rules, runner, and test PR have passed."
}
Superseded by Patchwarden follow-up pdurlej/patchwarden#250. ADR-0002 remains historical platform context; active deterministic policy enforcement belongs in Patchwarden.