diff --git a/.run_status.toml b/.run_status.toml index ae48065..fc9ffb9 100644 --- a/.run_status.toml +++ b/.run_status.toml @@ -1,11 +1,11 @@ [last_run_clean] run_status = "Success" -lines_parsed = 393 -coverage = 93.05 +lines_parsed = 408 +coverage = 93.09 [last_run_clean.run_duration] -secs = 50 -nanos = 858077900 +secs = 52 +nanos = 332052570 [last_run_incremental] run_status = "Success" diff --git a/CHANGELOG.md b/CHANGELOG.md index a88d54b..fb2b497 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,21 @@ All notable changes to John Slop are recorded here. The format follows ## [Unreleased] +## [0.1.23] - 2026-09-30 + +### Added + +- Added typed category-level diagnostic switches for `typography`, `style`, + `prompt-leakage`, and `source-code`, composed with the existing individual + rule switches through every configuration layer. +- Added `john-slop config init` and its `config generate` alias to write the + commented embedded base configuration into the current directory. + +### Changed + +- Configuration generation protects an existing `config.toml` unless + `--force` is explicitly supplied. + ## [0.1.22] - 2026-09-30 ### Added @@ -77,7 +92,8 @@ All notable changes to John Slop are recorded here. The format follows - Stdio LSP replacement diagnostics and versioned quick fixes. - Runnable examples, reviewed fixtures, fuzz targets, benchmarks, and CI gates. -[Unreleased]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.22...HEAD +[Unreleased]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.23...HEAD +[0.1.23]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.22...v0.1.23 [0.1.22]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.21...v0.1.22 [0.1.21]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.20...v0.1.21 [0.1.20]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.0...v0.1.20 diff --git a/Cargo.lock b/Cargo.lock index 7c3a566..e399d13 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -699,7 +699,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "john-slop-core" -version = "0.1.22" +version = "0.1.23" dependencies = [ "directories", "figment", @@ -717,7 +717,7 @@ dependencies = [ [[package]] name = "john-slop-lsp" -version = "0.1.22" +version = "0.1.23" dependencies = [ "john-slop-core", "serde_json", @@ -728,7 +728,7 @@ dependencies = [ [[package]] name = "john_slop" -version = "0.1.22" +version = "0.1.23" dependencies = [ "clap", "criterion", diff --git a/Cargo.toml b/Cargo.toml index 2dafbfd..9d68df3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = [".", "crates/john-slop-core", "crates/john-slop-lsp"] resolver = "3" [workspace.package] -version = "0.1.22" +version = "0.1.23" edition = "2024" rust-version = "1.98.1" license = "MIT" @@ -18,8 +18,8 @@ figment = { version = "0.10.19", default-features = false, features = ["toml"] } futures = { version = "0.3.34", default-features = false, features = ["std"] } globset = { version = "0.4.20", default-features = false } insta = { version = "1.48.0", default-features = false } -john-slop-core = { version = "0.1.22", path = "crates/john-slop-core" } -john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.22", path = "crates/john-slop-lsp" } +john-slop-core = { version = "0.1.23", path = "crates/john-slop-core" } +john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.23", path = "crates/john-slop-lsp" } miette = { version = "7.6.0", default-features = false, features = ["derive"] } regex = "1.13.1" serde = { version = "1.0.229", features = ["derive"] } diff --git a/badges/version.svg b/badges/version.svg index 2ec44a2..3cd0da6 100644 --- a/badges/version.svg +++ b/badges/version.svg @@ -1 +1 @@ -version: 0.1.22version0.1.22 \ No newline at end of file +version: 0.1.23version0.1.23 \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index 9be638a..350e174 100644 --- a/docs/development.md +++ b/docs/development.md @@ -67,8 +67,8 @@ Run line coverage with Cargo Tarpaulin: cargo tarpaulin --config tarpaulin.toml ``` -The configuration enforces a 90% floor. The current suite measured 93.05% -(1,487/1,598 lines) on 2026-09-30. The remaining lines are dominated by +The configuration enforces a 90% floor. The current suite measured 93.09% +(1,523/1,636 lines) on 2026-09-30. The remaining lines are dominated by platform/I/O failure injection, malformed archive internals, coordinate overflow, LSP logging/reload failures, and subprocess attribution. Do not add brittle tests or production seams solely to make Tarpaulin count those paths. diff --git a/docs/evaluation.md b/docs/evaluation.md index f958028..ae572c2 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -53,7 +53,9 @@ categories. The Milestone 22 review makes printable-ASCII UTS #39 mappings replaceable by default, retains a non-mutating `review` policy, and keeps the Gitea-compatible invisible/control profile diagnostic-only, with explicit multilingual limitations. The checked-in `signoff.toml` records those decisions -and contains the SHA-256 digest of both `heuristics.toml` and `unicode.toml`. +and contains the SHA-256 digest of `config.toml`, `heuristics.toml`, and +`unicode.toml`. This binds the reviewed scoring behavior to both rule catalogs +and the default category policy. Any default rule, matcher, pattern, weight, occurrence cap, scope, or threshold change invalidates the sign-off test. Renewal requires reviewing positive and diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index ed1c52e..c3a1a81 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -385,7 +385,7 @@ dependencies = [ [[package]] name = "john-slop-core" -version = "0.1.22" +version = "0.1.23" dependencies = [ "directories", "figment", @@ -411,7 +411,7 @@ dependencies = [ [[package]] name = "john-slop-lsp" -version = "0.1.22" +version = "0.1.23" dependencies = [ "john-slop-core", "serde_json", @@ -422,7 +422,7 @@ dependencies = [ [[package]] name = "john_slop" -version = "0.1.22" +version = "0.1.23" dependencies = [ "clap", "globset", diff --git a/tasks.md b/tasks.md index a96503f..2b3436c 100644 --- a/tasks.md +++ b/tasks.md @@ -589,7 +589,7 @@ is 93.05% (1,487/1,598 lines), and release metadata agrees on `0.1.22`. configuration to `./config.toml`. Refuse to replace an existing file by default, support an explicit `--force`, and test the generated file by loading it through the public configuration path. -- [ ] Update the quickstart, configuration examples, CLI help, changelog, +- [x] Update the quickstart, configuration examples, CLI help, changelog, release metadata, badges, and ignored recap; run both feature matrices, formatting, Clippy, rustdoc, package/audit checks, and Tarpaulin. @@ -599,6 +599,13 @@ CLI and LSP because they resolve in the shared core configuration; a fresh directory without silently destroying user data; all release artifacts agree on `0.1.23` before the immutable `v0.1.23` tag is created. +Accepted on 2026-09-30 after layered category and individual switches produced +matching CLI/LSP behavior, and config generation passed create, preserve, +force-overwrite, parse, and reload checks. Formatting, Clippy, rustdoc, both +feature matrices, evaluation, dependency policy/audit checks, and workspace +package assembly pass; coverage is 93.09% (1,523/1,636 lines), and all release +metadata and binary versions agree on `0.1.23`. + ## Deferred by design - Statistical or model-based authorship classification. diff --git a/tests/evaluation.rs b/tests/evaluation.rs index 7df2e52..44d7c7a 100644 --- a/tests/evaluation.rs +++ b/tests/evaluation.rs @@ -127,6 +127,10 @@ fn reviewed_corpus_reports_per_rule_metrics_and_false_positive_rate() { ) .expect("parse evaluation sign-off"); let mut catalog = Sha256::new(); + catalog.update(include_bytes!( + "../crates/john-slop-core/assets/config.toml" + )); + catalog.update([0]); catalog.update(include_bytes!( "../crates/john-slop-core/assets/heuristics.toml" )); @@ -141,7 +145,7 @@ fn reviewed_corpus_reports_per_rule_metrics_and_false_positive_rate() { .collect::(); assert_eq!(signoff.schema_version, 1); assert_eq!(signoff.release, env!("CARGO_PKG_VERSION")); - assert_eq!(signoff.status, "accepted-after-unicode-replacement-profile"); + assert_eq!(signoff.status, "accepted-after-diagnostic-policy"); assert_eq!(signoff.catalog_sha256, catalog_hash); assert!(signoff.limitations_acknowledged); assert_eq!(signoff.reviewed_on, "2026-09-30"); diff --git a/tests/fixtures/evaluation/signoff.toml b/tests/fixtures/evaluation/signoff.toml index 301e247..ecae8b2 100644 --- a/tests/fixtures/evaluation/signoff.toml +++ b/tests/fixtures/evaluation/signoff.toml @@ -1,7 +1,7 @@ schema_version = 1 -release = "0.1.22" +release = "0.1.23" reviewed_on = "2026-09-30" -status = "accepted-after-unicode-replacement-profile" -catalog_sha256 = "74be9257120a8830f546b3b6e87c1a73b4c55041cf1022c1fe568eb84ef30117" +status = "accepted-after-diagnostic-policy" +catalog_sha256 = "ae7f4c8309389c6703bc109cb053105da8421ada2e870e12903d5525109aa045" limitations_acknowledged = true -decision = "Retain category-specific correlation damping: prompt-leakage uses 0.90 per later distinct rule while other families retain 0.75. Use generated Unicode 16.0 UTS #39 printable-ASCII mappings in replace mode by default, retain review and off policies for multilingual usage, and keep pinned Gitea invisible/control findings non-mutating. Reviewed corpus scores are pinned with 0/5 observed false-positive documents; the small authored sample does not establish real-world or multilingual accuracy." +decision = "Retain category-specific correlation damping: prompt-leakage uses 0.90 per later distinct rule while other families retain 0.75. Keep every diagnostic category enabled by default while allowing layered category gates and individual rule switches. Use generated Unicode 16.0 UTS #39 printable-ASCII mappings in replace mode by default, retain review and off policies for multilingual usage, and keep pinned Gitea invisible/control findings non-mutating. Reviewed corpus scores are pinned with 0/5 observed false-positive documents; the small authored sample does not establish real-world or multilingual accuracy."