feat(issue-filing): harden final report proofs for handoff and mutations (closes #191) #241
Labels
Clear labels
allocator
anti-stomp
architecture
bug
chore
codex
concurrency
contamination
control-plane
dashboard
database
design
documentation
enhancement
gitea
glitchtip
important
incident
incident-bridge
integration
jenkins
labels
leases
mcp
mcp-health
mcp-menu
multi-project
mutating
nice-to-have
observability
portability
preflight
protected-branch
queue
read-only
reconnect
recovery
refactor
release
reliability
resumable-review
reviewer
roadmap
safety
security
self-hosted
sentry
stale-runtime
status:blocked
status:in-progress
status:pr-open
status:ready
terminal-lock
testing
tracker
type:bug
type:feature
type:feature
type:guardrail
visibility
workflow
workflow-hardening
workflow-hardening
Controller-owned work allocator
Prevent concurrent LLM session stomping
Architecture / structural design
OpenAI Codex client / workflow session surface
Concurrent session safety
Workflow or session contamination incident
MCP control-plane coordination and allocation authority
MCP operational dashboard/queue view
Internal coordination storage (SQLite/Postgres)
Design / investigation, no implementation
Docs / runbooks
New feature or improvement
Gitea MCP workflow
GlitchTip integration
Operational or process incident requiring durable audit trail
Sentry-to-Gitea incident bridging
Integration testing
Jenkins integration
Label taxonomy management
Lease adopt/release/expire lifecycle
MCP server / tooling
MCP namespace and runtime health
MCP menu surface
Work spanning multiple monitoring projects or Gitea repos
Mutating action; requires gating
Observability, metrics, traces, error reporting
Cross-platform / portability
Shared preflight gates before mutation
Protected branch / stable-branch policy concern
Work queue visibility and allocation
Read-only, no mutation
MCP client reconnect/reload recovery path
Recovery paths for stale/foreign leases
Code refactor / restructure
Release / versioning
Reliability / failure handling
Persist and resume prepared review verdicts across sessions
Reviewer workflow tooling
Roadmap / umbrella issue
Safety rails and fail-closed mutation guards
Security / trust boundary
Self-hosted infrastructure integration
Sentry error monitoring integration
Stale backend daemon / runtime-vs-master parity failures
Issue is blocked
Issue is being worked on
Issue has an open pull request
Issue is ready for work
Terminal review lock (#332) path
Tests / test coverage
Issue tracker hygiene / meta
Bug or defect
Feature or enhancement
Feature or enhancement
Safety gate or guardrail
Workflow state visibility for LLMs/operators
Cross-tool workflow
LLM workflow coordination hardening
LLM workflow coordination hardening
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#241
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Adds A-bar proof helpers for issue-filing final reports.
Closes #191
Reviewer queue note (sysadmin / prgs-reviewer): PR #241 cannot be merged in the current queue pass.
mergeable=false— Gitea reports conflicts withmasterreview_proofs.py,skills/llm-project-workflow/SKILL.md, andtests/test_review_proofs.py(same files recently updated by merged PRs #246/#253)masterintofeat/issue-191-issue-filing-reports, resolve conflicts, push, then request re-reviewNo merge attempted. Queue otherwise empty of mergeable PRs (#239/#240 also conflicted; #253 already merged).
Review findings:
Please rebase the branch on the latest master to pull in those functions and resolve the conflicts.
Review findings (verdict pending — formal REQUEST_CHANGES to follow)
Reviewed at head
a86e64ff0101f3e679adc1994d7c7f44ecd48135underprgs-reviewer. The formal verdict could not be submitted in this MCP run (one-live-review-mutation-per-run wall, correctly fail-closed after an earlier review of PR #239; nothing to "correct", so the correction path does not apply). Findings below; verdict will be submitted from a fresh reviewer run.Verification done: branch tests (
tests/test_review_proofs.py: 124 pass), full-suite run on branch head in a detached scratch worktree, direct probes of the new helpers.Finding 1 —
assess_issue_filing_mutation_scope: the general forbidden-mutation loop is dead code; #191 req 5 is essentially unenforced (blocking).The
for absent in forbidden:loop contains noreasons.appendon any path — its only actions arecontinue— so it can never downgrade anything. Enforcement exists only inside theperformed == ["create_issue"]special case, and even that triggers only when the forbidden word already appears in the report:#191 req 5: a single-mutation run must "confirm no labels, comments, PRs, reviews, merges, or closes were performed." Fixes needed: make the general loop actually append reasons when confirmation is absent (regardless of whether the word appears — omission is the failure mode, not mention), and add
close/closesto the create-only tuple (currently missing).Finding 2 —
assess_issue_filing_sha_evidenceis evaded by the canonical format from #191 itself (blocking)._SHA_EVIDENCE_LABELrequires the hex to follow the label with only whitespace/:/=between. #191's own example format isold head: `<sha>`— backtick-wrapped:Reports following the issue's canonical style bypass the check entirely. Allow optional backticks/quotes around the captured hex (e.g.
[\s:=]*['"]?([0-9a-f]+)`).Finding 3 — rebase required. The branch conflicts with current master (
mergeable: false), and forked before4bc02a8restoredassess_empty_queue_report, so branch-alone full-suite runs show 5 ImportErrors intest_capability_stop_terminal(same stale-base artifact PR #240 had). Master's proof surface has also moved (#246/#253/#250/#251 merged since) — please rebase and re-run the suite.Positives: composite
assess_issue_filing_final_reportcorrectly foldsassess_controller_handoffverdicts (bothmissingandincompletedowngrade via thedowngradedflag); issue-reference, duplicate-summary, and capability checks are reasonable;issue_filinghandoff role fields wired intoHANDOFF_ROLE_FIELDS; 124 branch tests green.a86e64ff01to27922c67f8Review summary
APPROVE after rebase onto master and one fix commit.
Scope: 3 files — issue-filing A-bar helpers in
review_proofs.py, 5 tests, SKILL.md cross-link.Integration: Master continuation/issue-selection proofs (#188) preserved; #191 is additive.
Validation:
pytest tests/test_review_proofs.py→ 145 passed.Fix (
24d8891):assess_issue_filing_mutation_scopeforbidden-mutation loop now records reasons; final-report aggregator treatsincompletehandoff like issue-selection.Closes #191.