Skip to content

feat: add delivery-verification — session-end quality gate#1423

Open
YuhaoLin2005 wants to merge 8 commits into
anthropics:mainfrom
YuhaoLin2005:feature/delivery-verification
Open

feat: add delivery-verification — session-end quality gate#1423
YuhaoLin2005 wants to merge 8 commits into
anthropics:mainfrom
YuhaoLin2005:feature/delivery-verification

Conversation

@YuhaoLin2005

Copy link
Copy Markdown

What

A Stop hook that mechanically verifies session completeness. Checks learning capture, disk space, and rationalization patterns. Hard blocks (exit 2) when complex tasks complete without learning capture.

Why

Claude Code sessions accumulate knowledge, but without mechanical enforcement, learning capture is aspirational — "I'll write it next session" becomes never. This hook enforces the habit: complex task → must touch learning libraries.

How It Works

Stop hook → check disk (<15GB → block) → count edits → check 5 learning lib mtimes → detect rationalization patterns → >=3 stale + complex task → exit 2

Integration

Module B of a composable quality pipeline. Works standalone. Complements:

Evidence

Merged in ECC (226K stars) as delivery-gate #2378 after full maintainer review. 50+ session production use. The boundary between warn and block: can this be fixed retroactively?

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