Implement Step2: practical level#2
Merged
Merged
Conversation
…r-file risk - Git log integration for hotspot detection (90 days, 5+ changes) - S-4: hotspot signal (file-scoped) - S-5: no_test_change signal (aggregate, multi-language test patterns) - S-6: core_module signal (config, payment, database, etc.) - S-7: security_module signal (auth, crypto, token, etc.) - Analyzer dedup: security_module takes priority over core_module - Per-file risk scoring (file-scoped signal weights / 40.0) - JSON/text output includes files[] with per-file risk and signals - Exit code: 0 (low), 1 (medium+), 2 (error) - Update spec.md to match actual git.Log signature - 50 unit tests across all packages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
hidetzu
added a commit
that referenced
this pull request
May 4, 2026
…r-file risk (#2) - Git log integration for hotspot detection (90 days, 5+ changes) - S-4: hotspot signal (file-scoped) - S-5: no_test_change signal (aggregate, multi-language test patterns) - S-6: core_module signal (config, payment, database, etc.) - S-7: security_module signal (auth, crypto, token, etc.) - Analyzer dedup: security_module takes priority over core_module - Per-file risk scoring (file-scoped signal weights / 40.0) - JSON/text output includes files[] with per-file risk and signals - Exit code: 0 (low), 1 (medium+), 2 (error) - Update spec.md to match actual git.Log signature - 50 unit tests across all packages
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
Related Spec
specs/usecases.mdspecs/requirements.mdspecs/spec.md(updated git.Log signature)specs/roadmap.mdRoadmap Step
Changes
internal/git: AddLog()method withFileChangeCountreturn typeinternal/signal: S-4 hotspot (90 days, 5+ changes), S-5 no_test_change (multi-language patterns), S-6 core_module, S-7 security_moduleinternal/analyzer: Signal dedup — security_module takes priority over core_moduleinternal/scorer: Per-file risk calculation (min(file_weight_sum / 40.0, 1.0))internal/formatter: JSON/text output includesfiles[]with per-file risk and signalscmd/root.go: Wire new signals, sentinel error for exit codemain.go: Exit code 0 (low), 1 (medium+), 2 (error)specs/spec.md: Updatedgit.Client.Logsignature to match implementationDesign Decisions
Test Plan
files[]with per-file risk and signals