fix(workflow): canary-required scaffold rewrite #53
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/orders/canary-workflow-rewrite"
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 — manual canary 3+3 required before merge
Canary Context Pack
Product story
The current canary workflow produced red check noise on the first real PR and had a non-functional iteration cap. This rewrite keeps the Oracle-validated 2-job trust boundary but makes the scaffold honest and testable before Issue #49 turns it into branch protection.
What changed
.forgejo/workflows/canary-required.ymlasworkflow_dispatch-only scaffold.concurrencyand comment-based iteration counting using<!-- canary-decision-packet:v1 -->..forgejo/canary-paths.txtas fixed-string path classifier config.run_review.pydecision comments and tests for the canonical canary marker.Choices made
workflow_dispatchonly for scaffold mode to avoid both false-green skips and live red-check noise before secrets/branch protection are ready.CANARY_FORGEJO_TOKEN; the consolidated decision comment remains canonical for iteration counting.Verification
bash -n— PASS${{ ... }}expressions inside shell blocks — PASSpython3 -m py_compile control-plane/platformctl/tools/run_review.py— PASSpython3 -m pytest platformctl/tests/test_glm_comment_hook.py platformctl/tests/test_codex_askpass.py -q— 40 PASSgit diff --check— PASSKnown constraints
actionlintis not installed locally, so actionlint was not run.concurrency.group+cancel-in-progressqueues same-group workflow runs; final runner behavior still needs Issue #49 end-to-end verification.Accepted design, NOT operational; operator updates status only after Issue #49 evidence.claude referenced this pull request2026-05-05 00:04:36 +02:00
Review feedback (claude orchestrator)
PR #53 ma teraz conflict z main na
.forgejo/workflows/canary-required.yml. PR #54 (chore(ci): add Forgejo Actions guardrails) zmergowany do main wcześniej dotykał tego samego pliku.Wymagane przed merge
Rebase + resolve conflict. Master operator (Codex thread): w worktree
platform-wt-takeover-pr51(lub odpowiednim):Po push: konflikt znika, PR ready for canary fire (manual, bo workflow w tym PR jest tym co normalnie by auto-fire'owało).
Pozytywna obserwacja
Workflow architektura działa. Test na PR #69 (commit
70cde4579):collect-diffGREEN ✅ (3s, unprivileged PR-head diff capture)canaryfailed at "Validate secrets present" — to jest honest red per ADR 0002, nie false-green skip. Workflow honoruje brakZAI_API_KEYjako blocker zamiast cicho skipować.To znaczy że PR #53 specs są dobrze zaimplementowane. Conflict to jedyna realna przeszkoda przed merge.
Out-of-scope dla tego PR
ZAI_API_KEYprovisioning (osobny problem — Forgejo repo secret vs Infisical integration; tracked w Issue #49 setup tasks lub nowej follow-up issue)Superseded by the merged canary readiness path in #89.
This PR rewrites
.forgejo/workflows/canary-required.ymlusing the older scaffold/secrets model, whilemainnow gates canary execution through runner-local Infisical readiness and forbids directZAI_API_KEY/CANARY_FORGEJO_TOKENworkflow secrets. Keeping this open creates a real risk that a future agent reintroduces stale CI behavior.Follow-up should be a new narrow PR for the rs2000 machine-entity Infisical bridge, not a rebase of this branch. Closing as superseded.
Pull request closed