Skip to content

wip: kaizen gate lifecycle — per-PR reflection + auto-close (k#288, k#283)#285

Open
aviadr1 wants to merge 2 commits intomainfrom
fix/kaizen-gate-lifecycle-288-283
Open

wip: kaizen gate lifecycle — per-PR reflection + auto-close (k#288, k#283)#285
aviadr1 wants to merge 2 commits intomainfrom
fix/kaizen-gate-lifecycle-288-283

Conversation

@aviadr1
Copy link
Copy Markdown

@aviadr1 aviadr1 commented Mar 22, 2026

Summary

  • Per-PR reflection tracking to avoid repeated gate prompts
  • Auto-close kaizen issues on merge

⚠️ 35 behind main — saved for reference, may need rebase.

🤖 Generated with Claude Code

aviadr1 and others added 2 commits March 21, 2026 01:57
…issues (kaizen #288, #283)

Two kaizen gate lifecycle improvements that reduce ceremony and prevent issue rot:

**Per-PR reflection tracking (#288):**
- pr-kaizen-clear.sh writes a `kaizen-reflected-<PR-key>` marker after clearing
- kaizen-reflect.sh checks for this marker before setting the gate
- Prevents repeated reflection prompts (was firing 4+ times per PR during cleanup)
- Each PR gets its own marker — multiple PRs in one session still each get gated

**Auto-close kaizen issues on merge (#283):**
- kaizen-reflect.sh parses PR body for `Garsson-io/kaizen#NNN` references on merge
- Automatically closes referenced issues with a comment linking the merged PR
- Only closes issues that are still OPEN (safe for already-closed issues)
- Prevents issue rot from forgotten manual closes (3 of 8 PRs had stale refs)

**Also:** registers test-waiver-quality.sh in run-all-tests.sh (orphan from PR #235)

Tests: 889/889 pass (28 new tests across 2 test files)

Run tag: batch-260321-0055-39ca/run-4

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aviadr1
Copy link
Copy Markdown
Author

aviadr1 commented Mar 22, 2026

Archaeology Notes

Branch: fix/kaizen-gate-lifecycle-288-283
Last real commit: 2026-03-21 01:57 (1 day ago)
Staleness: 35 commits behind main
Files changed: 6 files, +288/-10

Related kaizen issues: #288 (per-PR reflection tracking), #283 (auto-close issues on merge)

Superseded?YES — main already has:

Both kaizen #288 and #283 were resolved through different PRs.

Verdict: Fully superseded. This was an alternative approach; the shipped version came from a different worktree. Safe to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant