feat(reviewer): PW-G003 + PW-G017 — reviewer quorum verdict + idempotent retrigger/redrive #105

Closed
opened 2026-06-23 07:21:03 +02:00 by claude · 1 comment
Collaborator

Materializes gaps PW-G003 (nondeterministic reviewer quorum) + PW-G017 (idempotent retrigger/redrive) from docs/status.html. Inspiration for codex — not a rigid spec.

The vision

Reviewer lanes already emit artifacts, but there's no durable quorum ("N of M lanes clean, with timeout/retry/non-blocking classes") and no safe redrive ("rerun a stale/flaky/repaired check without duplicate side effects, stable artifact identity"). Together they make the nondeterministic layer trustworthy and operable: a clear quorum verdict, and a button to re-run safely.

Why it matters

Right now a flaky/timed-out lane has no defined outcome and a rerun risks duplicate comments/statuses. A quorum verdict + idempotent redrive turns "some LLM said something" into a load-bearing, repeatable signal — and lets operators/controllers recover from transient failures without mess.

Inspiration — possible shapes

  • Quorum (G003): a resolver over multiple review_artifacts → {clean | blocked | inconclusive} with per-lane status (success/timeout/unparseable/missing), configurable threshold + which lanes are required vs advisory; timeouts/missing = non-blocking-but-recorded or hold, per policy.
  • Redrive (G017): stable artifact identity keyed on (target, head_sha, lane, pass_index) so a rerun overwrites/supersedes rather than duplicates; an explicit "supersedes" marker; safe to invoke repeatedly (idempotent comment upsert already exists — extend the pattern).

Hard boundaries (safety, not design)

  • Quorum is a sensor-aggregation → still feeds policy; never merges (D20).
  • Redrive must be idempotent: no duplicate Forgejo comments/statuses; stale artifacts clearly superseded, not silently overwritten without trace.
  • Fail-closed: inconclusive quorum → hold, not pass.

The HOW is yours

Design the quorum semantics, the identity scheme, and the redrive surface (CLI flags? a redrive subcommand?). Split into PRs freely.

Status / refs

  • D21/M2: extends existing reviewer-lane + publication surfaces (hardening of shipped capability) — closer to permitted, but confirm the quorum-policy scope with operator.
  • Refs: PW-G003/PW-G017 · src/patchwarden/review_run.py, resolve_findings.py, contract_publish.py (idempotent upsert pattern) · spec/schemas/review-artifact.schema.json.

Created by claude from the status.html gap ledger (2026-06-23). Executor: codex.

> Materializes gaps **PW-G003** (nondeterministic reviewer quorum) + **PW-G017** (idempotent retrigger/redrive) from `docs/status.html`. Inspiration for codex — **not** a rigid spec. ## The vision Reviewer lanes already emit artifacts, but there's no **durable quorum** ("N of M lanes clean, with timeout/retry/non-blocking classes") and no safe **redrive** ("rerun a stale/flaky/repaired check without duplicate side effects, stable artifact identity"). Together they make the nondeterministic layer *trustworthy and operable*: a clear quorum verdict, and a button to re-run safely. ## Why it matters Right now a flaky/timed-out lane has no defined outcome and a rerun risks duplicate comments/statuses. A quorum verdict + idempotent redrive turns "some LLM said something" into a load-bearing, repeatable signal — and lets operators/controllers recover from transient failures without mess. ## Inspiration — possible shapes - **Quorum (G003):** a resolver over multiple `review_artifact`s → `{clean | blocked | inconclusive}` with per-lane status (success/timeout/unparseable/missing), configurable threshold + which lanes are required vs advisory; timeouts/missing = non-blocking-but-recorded or hold, per policy. - **Redrive (G017):** stable artifact identity keyed on (target, head_sha, lane, pass_index) so a rerun overwrites/supersedes rather than duplicates; an explicit "supersedes" marker; safe to invoke repeatedly (idempotent comment upsert already exists — extend the pattern). ## Hard boundaries (safety, not design) - Quorum is a sensor-aggregation → still feeds policy; never merges (D20). - Redrive must be **idempotent**: no duplicate Forgejo comments/statuses; stale artifacts clearly superseded, not silently overwritten without trace. - Fail-closed: inconclusive quorum → hold, not pass. ## The HOW is yours Design the quorum semantics, the identity scheme, and the redrive surface (CLI flags? a `redrive` subcommand?). Split into PRs freely. ## Status / refs - **D21/M2:** extends existing reviewer-lane + publication surfaces (hardening of shipped capability) — closer to **permitted**, but confirm the quorum-policy scope with operator. - Refs: PW-G003/PW-G017 · `src/patchwarden/review_run.py`, `resolve_findings.py`, `contract_publish.py` (idempotent upsert pattern) · `spec/schemas/review-artifact.schema.json`. Created by claude from the status.html gap ledger (2026-06-23). Executor: codex.
Collaborator

Addressed by #111 as the first Patchwarden-side/read-only slice.

Close basis: patchwarden review-quorum now resolves reviewer artifacts into clean, blocked, or inconclusive, carries stable quorum/artifact identity, and Contract Run can consume a clean exact-head quorum artifact. Richer timeout/non-blocking policy and live redrive execution remain tracked as PW-G003/PW-G017 follow-up work in the status artifacts and docs/operations/vision-gap-issue-disposition.md.

Addressed by #111 as the first Patchwarden-side/read-only slice. Close basis: `patchwarden review-quorum` now resolves reviewer artifacts into `clean`, `blocked`, or `inconclusive`, carries stable quorum/artifact identity, and Contract Run can consume a clean exact-head quorum artifact. Richer timeout/non-blocking policy and live redrive execution remain tracked as PW-G003/PW-G017 follow-up work in the status artifacts and `docs/operations/vision-gap-issue-disposition.md`.
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
2 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#105
No description provided.