feat: diff-scoped gating via testmap report --diff - #22
Merged
Conversation
Only enforce required kinds for generated features whose source changed since a git ref, so an agent isn't forced to backfill unrelated legacy gaps just to make the global gate pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WrFcCTi5tb8LPnsn1kTci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
testmap report --diff [REF](defaultHEAD): only gates generated features ([tool.testmap.generate]) whose source file changed sinceREF, instead of the whole repo.testmap/gitdiff.pycomputes changed files viagit diff --name-only+ untracked files.Confignow tracksgenerated_sources(feature -> source file);build_reporttags each feature"gated", used by both the exit-code gate and the rendered "Missing:" section.__features__entries) always stay gated since they can't be scoped.Test plan
make lintmake testmake testmapmake prekConfig.in_diff_scope,build_reportgating flag, and an end-to-end git-repo fixture proving an untouched legacy gap passes with--diffbut fails without it (and re-fails once its source is touched).🤖 Generated with Claude Code
https://claude.ai/code/session_016WrFcCTi5tb8LPnsn1kTci