goal(patchwarden): enable unattended merge-safety loop for eligible Platform PRs #823
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#823
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?
Goal
Make
pdurlej/platformthe practical dogfood target for Patchwarden's real value loop:PR from Codex/Claude/OpenClaw -> Patchwarden verdict -> agent repair if blocked -> controller approval/merge if eligible -> no Piotr hand-holding for routine safe work.
This is not about adding more governance artifacts. The value is: Piotr can set a slash goal, agents work through issues/PRs, and Patchwarden/ClawSweeper decide whether the PR is safely mergeable or needs repair/human handling.
Current context
Open PRs that should become dogfood inputs:
These may not all be autonomous-merge candidates. That is fine. Patchwarden must clearly say one of:
ready_for_controller_mergeneeds_agent_repairneeds_humanblocked_stale_or_missing_evidenceScope
Acceptance
needs_human/required-evidence answer.Non-goals
Related
Patchwarden coordination issue will track the cross-repo implementation.
Progress update from codex:
feat(patchwarden): emit controller merge verdicts.verdict: ready_for_controller_mergeand matching PR/readiness head SHA.needs_human; Patchwarden/check failures toneeds_agent_repair; missing/pending/stale evidence toblocked_stale_or_missing_evidence.Not closing this issue yet: PR #824 is itself control-plane merge-safety work, so it is
class/security-sensitive/tier/fulland not an unattended happy-path candidate. After #824 lands, the remaining #823 acceptance step is one boring docs/status PR withautomerge-candidateto prove the new verdict path end-to-end through the controller.Dogfood status update from codex:
state/cycle/file only, labels includeautomerge-candidateandW6d-automerge-calibration.66061da0b073b9ae86cce2e8c898e9971094a04fare green:base-is-main / guard (pull_request)→ successpatchwarden-pr-sanity / sanity (pull_request)→ successpatchwarden-client-dry-run / dry-run (pull_request)→ successpatchwarden:eligible_sanity_clean, GLM/DeepSeek/Kimi allOK, no findings.status: readyverdict: ready_for_controller_mergeready: trueCurrent blocker for fully closing #823: I cannot trigger
automerge-pilot.ymlfrom this Codex runtime without a usable codex workflow-dispatch credential. Anonymous dispatch returns HTTP 401; local git credential isollamaand was refused for identity-isolation; local Bitwarden bridge is down (connection refused). I intentionally did not merge #825 ascodex, because that would bypass the external-controller acceptance this issue is trying to prove.Next required action is specifically controller dispatch for PR #825, not code repair.
Dogfood update after #824/#825:
66061da0b073b9ae86cce2e8c898e9971094a04fwith merge commitd66681e69c7e241aa13fe33d8b65b2bda4ee4c56.successwith 7 checks, includingpatchwarden-client-dry-runandpatchwarden-pr-sanity.eligible_sanity_clean; deterministic findings: none; GLM/DeepSeek/Kimi verdicts: OK.Gap found during merge attempt: the first guarded merge API call returned
405 not allowed to merge [reason: Does not have enough approvals].list_pr_reviewsremained empty on #825, so Patchwarden produced comment evidence but did not supply a review approval. The PR was later merged by operator/admin capability. This should be treated as a remaining controller/approval integration gap, not proof that unattended merge is fully solved.Status update from codex, 2026-06-25:
automerge-pilotrun #5911 failed before readiness atCollect Forgejo factswith Forgejo HTTP 401 from the runner-local read token.class/security-sensitive/risk/process, all Forgejo status contexts are green, and Patchwarden sanity reportedeligible_sanity_clean.User not allowed to merge PRfor the codex PAT. The namedmerge-fest-forgejo-patwas not available in local Keychain/BW bridge during this session.Next exact step: merge #827 with a merge-capable identity, then rerun
automerge-pilotfor #826 withexecute_merge=trueandconfirm=AUTOMERGE_READY_W6D.Status update from codex, 2026-06-25:
#826 was refreshed on top of #827 and rechecked at head
3b1d252a97f18934d7385fffb16aea4ab8272aa0.Evidence from
automerge-pilotrun #5944:Collect Forgejo facts: passed viatoken_env=GITHUB_TOKEN, proving #827 fixed the stale read-token blocker.automerge_readiness.py:ready_for_controller_merge,ready=true.approved=truefor PR #826 and exact head SHA./api/v1/userwith HTTP 401 while loadingPLATFORM_AUTOMERGE_BOT_TOKEN.Interpretation: the remaining blocker is runner-local merge-bot credential validity, not PR readiness and not Patchwarden. I did not bypass this with codex/operator/GITHUB_TOKEN, because the W6d contract requires a separate non-cousin merge actor.
Next exact step: refresh/restore the runner-local
PLATFORM_AUTOMERGE_BOT_TOKENfor the W6d merge-bot identity, then rerunautomerge-pilotfor #826 withexecute_merge=trueandconfirm=AUTOMERGE_READY_W6D.Current blocker is no longer PR readiness: #826 reached exact-head readiness and Iskra approval, but the automerge run failed validating the runner-local
PLATFORM_AUTOMERGE_BOT_TOKENwith HTTP 401. Next action is owner/runner credential repair, then rerun #826 throughautomerge-pilot.Closed after W6d self-merge proof.
main.origin/main, CI went green again, and automerge-pilot run #6374 merged it asIskra.a1fa6c210197148e881bccdf7a0a042ec44eb6ed.No secret values were printed or committed. The remaining queue can now use the W6d lane only for PRs that satisfy the deterministic automerge policy; security-sensitive/full-tier PRs remain operator/manual unless the policy explicitly accepts them.