Usability + multi-language accuracy over v0.1.0.
Highlights
- Coverage-based confidence for all supported languages —
confidence=fullnow
requires the changed lines to be exercised by the suite: Python (sys.settrace),
JavaScript (V8 coverage), Go (go test -coverprofile), Rust (cargo-llvm-cov).
Untested changes degrade → reject. Fail-open when coverage can't be measured. - Precision parity via tree-sitter — comments, blank/brace lines, declaration
signatures and imports don't require coverage (no false degrade on comment-only edits). - Unified
greenlockCLI —gate,check(gate git changes, no manual diff:
--staged/--against),doctor,harden,init,mcp,--version,--apply. greenlock doctor— reports what Greenlock can verify in your repo.- Actionable REJECT hints — tells you how to fix (run
harden,--trust, …). - GitHub Action posts the verdict — job summary + PR comment on reject.
pre-commitframework support (.pre-commit-hooks.yaml).- PyPI publishing workflow (Trusted Publishing) — once configured,
pip install greenlock.
Notes / limits
- Go/Rust coverage parsers are unit-tested; end-to-end not yet validated against a live
toolchain (fail-open keeps it safe). - JS/Python coverage validated end-to-end. Not a sandbox unless
--isolated.
Full details: CHANGELOG.md.