goal(dogfood): implement unattended Patchwarden loops for Platform and Iskra/OpenClaw #237
Labels
No labels
agent/claude-code
agent/codex
agent/gemini
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
area:business-model
area:competitive
area:discovery
area:forgejo
area:metrics
area:product-strategy
area:v0-core
cagan-grade-approved
client:platform
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
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
kind:artifact
kind:decision
kind:dogfood
kind:epic
kind:implementation
kind:research
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
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
priority:p0
priority:p1
priority:p2
priority:p3
ready-for-agent
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
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:blocked-on-discovery
status:cagan-grade-review-pending
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:needs-operator-decision
status:operator-needed
status:parked
tier:0-anchor
tier:0-platform-substrate
tier:1-core
tier:1-iskra-value-layer
tier:2-supporting
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
wave:1-foundation
wave:2-positioning
wave:3-validation
wave:4-economics
wave:5-operating
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/patchwarden#237
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
Turn Patchwarden's June 2026 vision into visible operator value across both dogfood repos:
pdurlej/platform: Patchwarden evaluates PRs and enables controller-driven merge for eligible safe work.pdurlej/iskra-openclaw: OpenClaw/ClawSweeper consumes Patchwarden verdicts, redrives blocked PRs, and publishes approval/merge when safe.This is the practical North Star: Piotr sets a slash goal, agents work through issues/PRs, Patchwarden prevents unsafe merges, and the external controller handles approval/merge without Piotr manually interpreting every PR.
Cross-repo implementation targets
Patchwarden responsibility
Patchwarden should provide the policy/verdict/evidence layer for both repos:
ready_for_controller_mergeneeds_agent_repairneeds_humanblocked_stale_or_missing_evidenceAcceptance
platform#823reaches one real eligible PR approved/merged or clearly blocked by Patchwarden without Piotr interpreting the PR manually.iskra-openclaw#500reaches one real PR redriven or merged through the controller loop.needs_agent_repairorblocked_stale_or_missing_evidencepath.Non-goals
Patchwarden-side progress landed:
dogfood-loop-verdict-check, the read-only exact-head classifier forready_for_controller_merge,needs_agent_repair,needs_human, andblocked_stale_or_missing_evidence.jobhandoff inside the dogfood verdict, so external Platform/OpenClaw controllers can pass it throughjob-plan-checkand materialize the next action without Patchwarden writing jobs, reviews, or merges.Remaining acceptance is cross-repo/live: Platform #823 and Iskra/OpenClaw #500 still need to consume the handoff and produce real loop evidence. Keeping this issue open for that.
Update after #240:
dogfood-loop-queue-checkandpatchwarden.dogfood_loop_queue.v1.dogfood-loop-verdictartifacts, dedupes by job/target identity, orders materializable next actions, and exposesactionable,needs_human,blocked, oremptyfor external Platform/OpenClaw runners.external_wiring_backlognow points the dogfood loop runner at the queue handoff, not a single PR verdict.docs/status.html,docs/status.json,docs/STATUS.md, the architecture inventory, schema README, handoff registry, and self-usable milestone are updated.PYTHONPATH=src python3 -m unittest discover -s testsandgit diff --check; Forgejo exact-head CI for #240 was green before merge.Boundary remains unchanged: Patchwarden still does not write jobs, publish reviews, approve, merge, or run agents. The queue is a read model for the external runner, which must still recheck live state before acting.
Update after #241:
patchwarden status-servenow exposes/dogfood-loop-queue.json.expected_target_shaandexpected_target_id.PYTHONPATH=src python3 -m unittest discover -s testsandgit diff --check; Forgejo exact-head CI for #241 was green before merge.Cross-repo state noted from merged work:
Remaining #237 acceptance is therefore external live/dogfood exercise: one eligible Platform PR approved/merged or clearly blocked without operator interpretation, one Iskra PR redriven or merged through the controller loop, and at least one stale/repair path exercised.
Dogfood update:
pdurlej/platform#824is merged and landed the Platform readiness/actor verdict wiring.pdurlej/iskra-openclaw#501is merged and landed the Iskra/OpenClaw controller loop wiring.pdurlej/platform#825is merged at exact head66061da0b073b9ae86cce2e8c898e9971094a04f, merge commitd66681e69c7e241aa13fe33d8b65b2bda4ee4c56.7/7 success), Patchwarden PR sanityeligible_sanity_clean, no deterministic findings, GLM/DeepSeek/Kimi all OK.Important gap: a guarded merge API attempt before the final merge returned
405 not allowed to merge [reason: Does not have enough approvals].list_pr_reviewsfor #825 is still empty, so Patchwarden currently emits clean comment evidence but does not create an approval review. That means #237 has Platform-side evidence for a clean candidate, but the approval-review/automerge handoff is still incomplete and should remain a tracked gap unless a later PR proves bot/controller approval end-to-end.Milestone closed: PR #242 is merged.
What landed:
publish_positive_reviewbeforemerge_pull_requestwhen both actions are present for the same head;dogfood-loop-queue.approval-before-merge.jsonproves the approval-before-merge ordering and target consistency.Verification:
test_dogfood_loop_verdict,test_dogfood_loop_queue,test_artifact_schema_contract);patchwarden-contract-pr,status-drift,fallow-py);52fbf175a98ab2e2fc647fc09eac20db5d3adb95.Remaining #237 scope: live external controller/ClawSweeper consumption and non-happy-path repair/redrive evidence are still open.
Follow-up landed in platform PR #829: pdurlej/platform#829
Merged commit:
9434b28e69dfc889b8c6365747fe446032199ef7.What changed for unattended loops:
patchwarden.pr_sanity.v1metadata.3+3 canary: still alive; this does not replace itcopy.glm-5.2:cloud,deepseek-v4-pro:cloud, andkimi-k2.7:cloudred-team.modelHealthsoeligible_sanity_cleanno longer hides skipped/error reviewer lanes.Verification:
python3 -m pytest control-plane/platformctl/tests/test_pr_sanity.py control-plane/platformctl/tests/test_forgejo_ci_scripts_contract.pyclass/security-sensitive.Dogfood note: PR #829 itself still showed the old comment layout because
patchwarden-pr-sanity.ymlintentionally checks out trusted basemain, not untrusted PR head. The new layout will appear on the next platform PR after this merge.