Skip to content

Implement Step1: minimal working version#1

Merged
hidetzu merged 2 commits into
mainfrom
feat/step1-minimal
Mar 31, 2026
Merged

Implement Step1: minimal working version#1
hidetzu merged 2 commits into
mainfrom
feat/step1-minimal

Conversation

@hidetzu
Copy link
Copy Markdown
Owner

@hidetzu hidetzu commented Mar 31, 2026

Summary

  • Implement the minimal working version of riskcheck (Step1 from roadmap)
  • Git diff analysis with basic risk scoring and explainable output

Related Spec

  • specs/usecases.md
  • specs/requirements.md
  • specs/spec.md
  • specs/roadmap.md

Roadmap Step

  • Step1: Minimal Working Version
  • Step2: Practical Level
  • Step3: Team Customization

Changes

  • Project scaffold: cobra CLI, Makefile, go.mod
  • internal/git: git diff --numstat execution and parsing
  • internal/signal: Signal interface + S-1 (large_change), S-2 (high_insertions), S-3 (high_deletions)
  • internal/analyzer: Signal orchestration
  • internal/scorer: Additive scoring with 0-100 clipping and level assignment
  • internal/formatter: JSON and text output formatters
  • cmd/root.go: CLI wiring with --base, --target, --format flags

Test Plan

  • Unit tests added (16 tests across git, signal, analyzer, scorer, formatter)
  • Exit criteria verified:
    • riskcheck --base origin/main outputs valid JSON with score, level, summary, and reasons
    • riskcheck --base origin/main --format text outputs readable summary

hidetzu and others added 2 commits April 1, 2026 03:31
- Project scaffold with cobra CLI and Makefile
- Git diff parsing (git diff --numstat)
- Signal detection: large_change, high_insertions, high_deletions
- Scorer with additive weights and 0-100 clipping
- JSON and text formatters
- Unit tests for all internal packages (16 tests)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hidetzu hidetzu merged commit e91fe26 into main Mar 31, 2026
2 checks passed
@hidetzu hidetzu deleted the feat/step1-minimal branch May 4, 2026 08:12
hidetzu added a commit that referenced this pull request May 4, 2026
Implement Step1: minimal working version
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