Implement Patchwarden June vision slices #111

Merged
pdurlej merged 113 commits from codex/patchwarden-pr86-90-integration-smoke into main 2026-06-23 15:14:19 +02:00
Collaborator

Summary

  • Adds the June 2026 Patchwarden vision/status layer, including static status, QA workbook, and gap disposition docs for issues #103-#109.
  • Adds first read-only slices for Vistula shape, generated-artifact sensing, security-sensitive path sensing, reviewer quorum, PR-class evidence, Sense/trust, controller intake, feedback intake, and deterministic job plans.
  • Strengthens patchwarden.pr.vistula_shape so the opt-in Vistula gate now requires title, label, issue linkage, and explicit value, effort, and lead-time metadata, accepted from PR labels or body fields.
  • Adds forgejo-event, an offline Forgejo pull_request event fixture parser for #31 that emits normalized PR metadata for pipeline --metadata-file and contract-pr --metadata-file without adding a listener or network fetches.
  • Advances Slice E for #102: a real sanitized iskra-runtime-repair-gate.service bundle/verdict pair is replay-tested, and optional rich artifact/payload evidence envelopes now fail closed on missing sub-fields, stale artifact target_sha, and red rich statuses.
  • Adds vision_gap_ledger.py, a durable read-only PW-G001..PW-G018 ledger consumed by patchwarden status, so the June vision backlog is no longer prose-only in operator_status.py.
  • Maps every PW-G row to tracking issue refs in the ledger and text/JSON status output, making the Claude-created issue wave auditable from patchwarden status.
  • Adds patchwarden.pr.security_path_sensor, an opt-in deterministic Core module that blocks local secret config, credential, private-key, certificate, and secrets-directory paths before low-friction review lanes. Refs #67 and advances PW-G002/#104.
  • Wires external evidence/sense/review-quorum verdict artifacts into exact-head Contract Run and contract-pr as Core modules.
  • Integrates current main docs-maturity work, including cloud-review fail-closed enforcement, Fallow/doc drift guards, auto-heal live status, and schema example drift guards.
  • Pins ClawSweeper as a reference source without vendoring it as a runtime dependency.

Issue Closure

Closes #31.
Closes #103.
Closes #104.
Closes #105.
Closes #106.
Closes #107.
Closes #108.
Closes #109.

Refs #67: the first Patchwarden-native security module is now an opt-in path sensor. This does not vendor nullsec-s1 or claim the broader security-module backlog is done; it makes the next security layer concrete inside Patchwarden Core.

Refs #102: Codex-side fixture export and the first rich evidence sub-field validator are addressed by tests/fixtures/iskra-evidence/, runtime_repair.py, schema/docs updates, and the rich-evidence tests in tests/test_runtime_repair.py. This PR still does not close #102 because the remaining Slice E work is to capture/replace the contract-test rich fixture with additional live rich artifact shapes as Iskra exports them.

Close basis for #103-#109: docs/operations/vision-gap-issue-disposition.md. These close as Patchwarden-side read-only contract slices plus captured PW-G backlog, not as a claim that external controller execution, live dashboard, redrive, issue writers, or merge actuation are already complete. #103 now has first-class Vistula metadata presence checks; repo-specific value/effort/lead-time vocabularies remain backlog. #109/G015 now has a concrete read-only ledger module rather than only status prose, and every PW-G row carries explicit tracking issue refs.

Close basis for #31: offline event-fixture parsing is implemented and tested. HTTP listener and signature verification remain separate future service-mode work.

Verification

  • PYTHONPATH=src:. python3 -m unittest discover -s tests -> Ran 516 tests ... OK
  • PYTHONPATH=src:. python3 -m unittest tests.test_contract_run tests.test_cli_evaluate tests.test_contract_pipeline tests.test_core_module_registry tests.test_status_html tests.test_cli_status tests.test_vision_gap_ledger -> Ran 92 tests ... OK
  • CLI security sensor smoke: .env.production -> fail with blocking module patchwarden.pr.security_path_sensor; docs/.env.example -> pass with empty security evidence.
  • PYTHONPATH=src:. python3 -m unittest tests.test_runtime_repair tests.test_artifact_schema_contract tests.test_cli_status tests.test_status_html -> Ran 83 tests ... OK
  • PYTHONPATH=src:. python3 -m patchwarden.cli forgejo-event --event-file tests/fixtures/forgejo-events/pull_request.opened.json --output /tmp/patchwarden-forgejo-event-metadata.json
  • PYTHONPATH=src:. python3 -m patchwarden.cli pipeline --repo-host git.example.test --repo-owner pdurlej --repo-name platform --repo-profile platform --pr-number 470 --skip-post --metadata-file /tmp/patchwarden-forgejo-event-metadata.json -> eligible_clean
  • PYTHONPATH=src:. python3 -m patchwarden.cli status --format json
  • QA workbook verifier: 48 tracked rows, 30 implemented surfaces, 18 vision gaps.
  • git diff --check / git diff --cached --check clean during the latest slices.

Boundaries

Patchwarden remains the policy engine. Controller execution, external evidence production, live dashboard, redrive, OpenClaw approval consumption, HTTP webhook listener/signature verification, additional live rich artifact capture, external issue/job writing, and merge actuation remain explicit future work rather than claimed completed behavior.

## Summary - Adds the June 2026 Patchwarden vision/status layer, including static status, QA workbook, and gap disposition docs for issues #103-#109. - Adds first read-only slices for Vistula shape, generated-artifact sensing, security-sensitive path sensing, reviewer quorum, PR-class evidence, Sense/trust, controller intake, feedback intake, and deterministic job plans. - Strengthens `patchwarden.pr.vistula_shape` so the opt-in Vistula gate now requires title, label, issue linkage, and explicit value, effort, and lead-time metadata, accepted from PR labels or body fields. - Adds `forgejo-event`, an offline Forgejo `pull_request` event fixture parser for #31 that emits normalized PR metadata for `pipeline --metadata-file` and `contract-pr --metadata-file` without adding a listener or network fetches. - Advances Slice E for #102: a real sanitized `iskra-runtime-repair-gate.service` bundle/verdict pair is replay-tested, and optional rich `artifact`/`payload` evidence envelopes now fail closed on missing sub-fields, stale artifact `target_sha`, and red rich statuses. - Adds `vision_gap_ledger.py`, a durable read-only PW-G001..PW-G018 ledger consumed by `patchwarden status`, so the June vision backlog is no longer prose-only in `operator_status.py`. - Maps every PW-G row to tracking issue refs in the ledger and text/JSON status output, making the Claude-created issue wave auditable from `patchwarden status`. - Adds `patchwarden.pr.security_path_sensor`, an opt-in deterministic Core module that blocks local secret config, credential, private-key, certificate, and secrets-directory paths before low-friction review lanes. Refs #67 and advances PW-G002/#104. - Wires external evidence/sense/review-quorum verdict artifacts into exact-head Contract Run and `contract-pr` as Core modules. - Integrates current `main` docs-maturity work, including cloud-review fail-closed enforcement, Fallow/doc drift guards, auto-heal live status, and schema example drift guards. - Pins ClawSweeper as a reference source without vendoring it as a runtime dependency. ## Issue Closure Closes #31. Closes #103. Closes #104. Closes #105. Closes #106. Closes #107. Closes #108. Closes #109. Refs #67: the first Patchwarden-native security module is now an opt-in path sensor. This does not vendor `nullsec-s1` or claim the broader security-module backlog is done; it makes the next security layer concrete inside Patchwarden Core. Refs #102: Codex-side fixture export and the first rich evidence sub-field validator are addressed by `tests/fixtures/iskra-evidence/`, `runtime_repair.py`, schema/docs updates, and the rich-evidence tests in `tests/test_runtime_repair.py`. This PR still does not close #102 because the remaining Slice E work is to capture/replace the contract-test rich fixture with additional live rich artifact shapes as Iskra exports them. Close basis for #103-#109: `docs/operations/vision-gap-issue-disposition.md`. These close as Patchwarden-side read-only contract slices plus captured PW-G backlog, not as a claim that external controller execution, live dashboard, redrive, issue writers, or merge actuation are already complete. #103 now has first-class Vistula metadata presence checks; repo-specific value/effort/lead-time vocabularies remain backlog. #109/G015 now has a concrete read-only ledger module rather than only status prose, and every PW-G row carries explicit tracking issue refs. Close basis for #31: offline event-fixture parsing is implemented and tested. HTTP listener and signature verification remain separate future service-mode work. ## Verification - `PYTHONPATH=src:. python3 -m unittest discover -s tests` -> `Ran 516 tests ... OK` - `PYTHONPATH=src:. python3 -m unittest tests.test_contract_run tests.test_cli_evaluate tests.test_contract_pipeline tests.test_core_module_registry tests.test_status_html tests.test_cli_status tests.test_vision_gap_ledger` -> `Ran 92 tests ... OK` - CLI security sensor smoke: `.env.production` -> `fail` with blocking module `patchwarden.pr.security_path_sensor`; `docs/.env.example` -> `pass` with empty security evidence. - `PYTHONPATH=src:. python3 -m unittest tests.test_runtime_repair tests.test_artifact_schema_contract tests.test_cli_status tests.test_status_html` -> `Ran 83 tests ... OK` - `PYTHONPATH=src:. python3 -m patchwarden.cli forgejo-event --event-file tests/fixtures/forgejo-events/pull_request.opened.json --output /tmp/patchwarden-forgejo-event-metadata.json` - `PYTHONPATH=src:. python3 -m patchwarden.cli pipeline --repo-host git.example.test --repo-owner pdurlej --repo-name platform --repo-profile platform --pr-number 470 --skip-post --metadata-file /tmp/patchwarden-forgejo-event-metadata.json` -> `eligible_clean` - `PYTHONPATH=src:. python3 -m patchwarden.cli status --format json` - QA workbook verifier: 48 tracked rows, 30 implemented surfaces, 18 vision gaps. - `git diff --check` / `git diff --cached --check` clean during the latest slices. ## Boundaries Patchwarden remains the policy engine. Controller execution, external evidence production, live dashboard, redrive, OpenClaw approval consumption, HTTP webhook listener/signature verification, additional live rich artifact capture, external issue/job writing, and merge actuation remain explicit future work rather than claimed completed behavior.
codex added 109 commits 2026-06-23 09:16:45 +02:00
Allow contract-pr artifact mode to receive explicit required check inputs so the required_checks expert stays active when client workflows pre-collect PR metadata.
# Conflicts:
#	README.md
#	src/patchwarden/cli.py
#	src/patchwarden/contract_pipeline.py
#	tests/test_cli_contract_pr.py
#	tests/test_contract_pipeline.py
# Conflicts:
#	docs/architecture.md
#	src/patchwarden/contract_pipeline.py
#	tests/test_contract_pipeline.py
Refs #102.
Merge remote-tracking branch 'origin/main' into codex/patchwarden-pr86-90-integration-smoke
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 15s
e5992d20bc
# Conflicts:
#	README.md
#	docs/operations/clawsweeper-pin.md
#	docs/operations/pr-passage-contracts.md
#	docs/product/june-2026-vision.md
#	docs/status.html
#	spec/schemas/examples/contract-pr-result.execute-publication-error.json
#	spec/schemas/examples/core-module-stack.default.json
#	src/patchwarden/cli.py
#	src/patchwarden/contract_pipeline.py
#	src/patchwarden/operator_status.py
#	tests/test_cli_contract_pr.py
#	tests/test_cli_status.py
#	tests/test_contract_pipeline.py
#	tests/test_status_html.py
feat(forgejo): parse pull request event fixtures
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
652d3ab50e
test(autoheal): guard real iskra evidence fixture
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
746764f3f5
feat(autoheal): validate rich runtime evidence
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
02a2f80d62
feat(status): add vision gap ledger
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 13s
0de2449dac
feat(status): map vision gaps to tracking issues
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
fc68e1fe07
feat(core): add security path sensor
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
1810b81b2d
feat(core): require Vistula value metadata
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
10be2eecc9
feat(review): add redrive plan artifact
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 14s
da2a8bc66d
feat(core): add dependency risk sensor
All checks were successful
fallow-py / fallow-py-advisory (pull_request) Successful in 15s
c430ed2d63
pdurlej deleted branch codex/patchwarden-pr86-90-integration-smoke 2026-06-23 15:14:19 +02:00
Sign in to join this conversation.
No reviewers
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!111
No description provided.