clawsweeper inspiracja #69

Closed
opened 2026-06-07 23:47:53 +02:00 by pdurlej · 3 comments
Owner

https://github.com/openclaw/clawsweeper zainspirujmy się tym, żeby w ten sposób może też robić PR-y.

Może coś tutaj ciekawego jest, co możemy wdrożyć u nas.

https://github.com/openclaw/clawsweeper zainspirujmy się tym, żeby w ten sposób może też robić PR-y. Może coś tutaj ciekawego jest, co możemy wdrożyć u nas.
Collaborator

Triage (claude, 2026-06-08) — research via subagent

What clawsweeper is: a "conservative maintenance bot" for the openclaw org's own repos (so this is your own OpenClaw ecosystem, not a 3rd party). TypeScript/Node 24. Scans every open issue/PR on a tiered schedule, posts AI-reasoned proposals, keeps durable markdown audit reports, and can open guarded clawsweeper:autogenerated PRs for a narrow class of bugs. AI review uses Codex/Claude.

The PR-making mechanism worth stealing:

  • Read-only AI / privileged executor split — the LLM runs with NO git write token; write/merge creds are minted only after the AI exits, and a deterministic non-AI executor performs every mutation, re-checking live repo state immediately before acting.
  • Narrow auto-fix eligibility: only "strict, reproducible bug + clear repair shape + no feature/config expansion + no existing linked PR."
  • Tiered schedule (hot hourly / <30d daily / stale weekly) + proposal-only "Review" lane that never mutates.
  • autogenerated labeling so auto-PRs are always visible.

Why this matters for us: clawsweeper's architecture is literally Patchwarden's D20 sensor/executor boundary generalized — and it already runs a merge-gate the executor waits on. That makes it the perfect sibling for our emerging auto-heal gate (#65/#68): Patchwarden becomes the policy gate clawsweeper's executor consults, rather than us re-implementing a TS bot in stdlib Python.

Adoptable now (no new code in core):

  1. The read-only-AI + deterministic-executor pattern → template for the cousin agents (codex/claude/gemini) making PRs.
  2. Live-state recheck-before-mutation → fold into #65/#68 apply-path design.
  3. Narrow-eligibility predicate → a clean policy Patchwarden could own as "what auto-heal is allowed to touch."

Recommendation: (b/a) extract the patterns into the auto-heal gate design (#65/#68) rather than adopting the tool wholesale. Highest-leverage move = define how Patchwarden becomes the gate clawsweeper's executor consults. Suggest: link this issue to #65/#68, label kind/research + judge/p2, and capture the 3 patterns above in the auto-heal design slice.

## Triage (claude, 2026-06-08) — research via subagent **What clawsweeper is:** a "conservative maintenance bot" for the **openclaw org's own repos** (so this is your own OpenClaw ecosystem, not a 3rd party). TypeScript/Node 24. Scans every open issue/PR on a tiered schedule, posts AI-reasoned proposals, keeps durable markdown audit reports, and can open guarded `clawsweeper:autogenerated` PRs for a narrow class of bugs. AI review uses Codex/Claude. **The PR-making mechanism worth stealing:** - **Read-only AI / privileged executor split** — the LLM runs with **NO git write token**; write/merge creds are minted only *after* the AI exits, and a **deterministic non-AI executor** performs every mutation, re-checking live repo state immediately before acting. - **Narrow auto-fix eligibility**: only "strict, reproducible bug + clear repair shape + no feature/config expansion + no existing linked PR." - **Tiered schedule** (hot hourly / <30d daily / stale weekly) + proposal-only "Review" lane that never mutates. - **`autogenerated` labeling** so auto-PRs are always visible. **Why this matters for us:** clawsweeper's architecture **is literally Patchwarden's D20 sensor/executor boundary generalized** — and it already runs a merge-gate the executor waits on. That makes it the perfect sibling for our emerging **auto-heal gate (#65/#68)**: Patchwarden becomes the policy gate clawsweeper's executor consults, rather than us re-implementing a TS bot in stdlib Python. **Adoptable now (no new code in core):** 1. The read-only-AI + deterministic-executor pattern → template for the cousin agents (codex/claude/gemini) making PRs. 2. Live-state recheck-before-mutation → fold into #65/#68 apply-path design. 3. Narrow-eligibility predicate → a clean policy Patchwarden could *own* as "what auto-heal is allowed to touch." **Recommendation: (b/a) extract the patterns into the auto-heal gate design (#65/#68)** rather than adopting the tool wholesale. Highest-leverage move = define how Patchwarden becomes the gate clawsweeper's executor consults. Suggest: link this issue to #65/#68, label `kind/research` + `judge/p2`, and capture the 3 patterns above in the auto-heal design slice.
Collaborator

{
"confidence": 3,
"effort_hint": "unknown",
"escalation": {
"kind": "none",
"reason": ""
},
"evidence_refs": [
{
"note": "Issue proposes looking at OpenClaw Clawsweeper for inspiration around PR creation workflows.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Body is a short exploration prompt with an external repository link and no concrete Patchwarden scope yet.",
"type": "forgejo",
"value": "issue-body-excerpt"
},
{
"note": "Target snapshot has no labels, so judgment is based on sparse public issue text only.",
"type": "snapshot",
"value": "target-snapshot-labels"
}
],
"impact": 3,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-09T01:04:00Z",
"labels_to_apply": [
"judge/p3"
],
"piotr_fit": "medium",
"priority": "p3",
"rationale_summary": "This is P3 exploratory inspiration because Clawsweeper may inform PR workflow design, but the target lacks a defined Patchwarden use case or acceptance criteria.",
"reach": 3,
"recommended_next_action": "observe",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 69,
"repo": "pdurlej/patchwarden"
},
"target_snapshot": {
"body_hash": "sha256:9f034dcc392739b21b1859fafc3bdbbb009c57c063238bef09d02171a686320c",
"commit_count": null,
"evidence_hash": "sha256:b325bd16ded5ca78a10b5306c5496c6e590c85f39127f5fcd49ea6dec1df26e5",
"head_sha": null,
"labels": [],
"labels_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"state": "open",
"title_hash": "sha256:d3b85d3f34a19ebcf1bfa985106b699809b4cbc26aee6a9dc12235addf76a7eb",
"updated_at": "2026-06-08T18:38:37+02:00"
},
"top_caveat": "Do not import workflow patterns until a small scout identifies which Clawsweeper behavior actually maps to Patchwarden."
}

<!-- openclaw.judge.v0 --> { "confidence": 3, "effort_hint": "unknown", "escalation": { "kind": "none", "reason": "" }, "evidence_refs": [ { "note": "Issue proposes looking at OpenClaw Clawsweeper for inspiration around PR creation workflows.", "type": "forgejo", "value": "issue-title-body-labels-and-target-snapshot" }, { "note": "Body is a short exploration prompt with an external repository link and no concrete Patchwarden scope yet.", "type": "forgejo", "value": "issue-body-excerpt" }, { "note": "Target snapshot has no labels, so judgment is based on sparse public issue text only.", "type": "snapshot", "value": "target-snapshot-labels" } ], "impact": 3, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-09T01:04:00Z", "labels_to_apply": [ "judge/p3" ], "piotr_fit": "medium", "priority": "p3", "rationale_summary": "This is P3 exploratory inspiration because Clawsweeper may inform PR workflow design, but the target lacks a defined Patchwarden use case or acceptance criteria.", "reach": 3, "recommended_next_action": "observe", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 69, "repo": "pdurlej/patchwarden" }, "target_snapshot": { "body_hash": "sha256:9f034dcc392739b21b1859fafc3bdbbb009c57c063238bef09d02171a686320c", "commit_count": null, "evidence_hash": "sha256:b325bd16ded5ca78a10b5306c5496c6e590c85f39127f5fcd49ea6dec1df26e5", "head_sha": null, "labels": [], "labels_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "state": "open", "title_hash": "sha256:d3b85d3f34a19ebcf1bfa985106b699809b4cbc26aee6a9dc12235addf76a7eb", "updated_at": "2026-06-08T18:38:37+02:00" }, "top_caveat": "Do not import workflow patterns until a small scout identifies which Clawsweeper behavior actually maps to Patchwarden." } <!-- /openclaw.judge.v0 -->
Collaborator

Merged first implementation slice in #89.

What landed:

  • Clawsweeper-inspired auto-pr-proposal-check,
  • patchwarden.auto_pr_proposal_verdict.v1 schema and fixture,
  • deterministic eligibility gate for generated maintenance proposals.

Product boundary preserved: this does not create branches, commits, PRs, reviews, statuses, comments, or merges. It gives Patchwarden the quality contract that a separate executor can consume later.

Merged first implementation slice in #89. What landed: - Clawsweeper-inspired `auto-pr-proposal-check`, - `patchwarden.auto_pr_proposal_verdict.v1` schema and fixture, - deterministic eligibility gate for generated maintenance proposals. Product boundary preserved: this does not create branches, commits, PRs, reviews, statuses, comments, or merges. It gives Patchwarden the quality contract that a separate executor can consume later.
codex closed this issue 2026-06-17 21:29:48 +02:00
Sign in to join this conversation.
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
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/patchwarden#69
No description provided.