diff --git a/.run_status.toml b/.run_status.toml index 330648a..1a91c75 100644 --- a/.run_status.toml +++ b/.run_status.toml @@ -1,11 +1,11 @@ [last_run_clean] run_status = "Success" -lines_parsed = 421 -coverage = 92.84 +lines_parsed = 427 +coverage = 92.72 [last_run_clean.run_duration] -secs = 55 -nanos = 635116370 +secs = 60 +nanos = 633592735 [last_run_incremental] run_status = "Success" diff --git a/CHANGELOG.md b/CHANGELOG.md index b7583f4..5d33447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,25 @@ All notable changes to John Slop are recorded here. The format follows ## [Unreleased] +## [0.1.26] - 2026-09-30 + +### Added + +- Added conservative response-residue, editorial-placeholder, source-residue, + stock-closing, and clustered excess-vocabulary rules with positive and + realistic near-miss characterization fixtures. +- Added a research-backed review-signal methodology that separates directly + reviewable residue, low-weight population clues, verification targets, and + deliberately excluded language-proficiency proxies. +- Added LSP `--all-diagnostics` and `--minimum-diagnostic-weight WEIGHT` + switches for explicit full-catalog and weighted editor review. + +### Changed + +- The LSP now publishes only configured Unicode diagnostics by default. The + visibility policy does not alter shared detector results, evidence scores, + replacement planning, or formatting. + ## [0.1.25] - 2026-09-30 ### Fixed @@ -121,7 +140,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.25...HEAD +[Unreleased]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.26...HEAD +[0.1.26]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.25...v0.1.26 [0.1.25]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.24...v0.1.25 [0.1.24]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.23...v0.1.24 [0.1.23]: https://git.dandaedre.com/idle-org/john_slop/compare/v0.1.22...v0.1.23 diff --git a/Cargo.lock b/Cargo.lock index ee8ea68..9c0ea51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -699,7 +699,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "john-slop-core" -version = "0.1.25" +version = "0.1.26" dependencies = [ "directories", "figment", @@ -717,7 +717,7 @@ dependencies = [ [[package]] name = "john-slop-lsp" -version = "0.1.25" +version = "0.1.26" dependencies = [ "john-slop-core", "serde_json", @@ -728,7 +728,7 @@ dependencies = [ [[package]] name = "john_slop" -version = "0.1.25" +version = "0.1.26" dependencies = [ "clap", "criterion", diff --git a/Cargo.toml b/Cargo.toml index b43d451..f30302e 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.25" +version = "0.1.26" 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.25", path = "crates/john-slop-core" } -john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.25", path = "crates/john-slop-lsp" } +john-slop-core = { version = "0.1.26", path = "crates/john-slop-core" } +john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.26", 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 374e416..b618767 100644 --- a/badges/version.svg +++ b/badges/version.svg @@ -1 +1 @@ -version: 0.1.25version0.1.25 \ No newline at end of file +version: 0.1.26version0.1.26 \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index a226c4f..bd4583e 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 92.83% -(1,579/1,701 lines) on 2026-09-30. The remaining lines are dominated by +The configuration enforces a 90% floor. The current suite measured 92.72% +(1,604/1,730 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/fuzz/Cargo.lock b/fuzz/Cargo.lock index c9e988d..17a984c 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -385,7 +385,7 @@ dependencies = [ [[package]] name = "john-slop-core" -version = "0.1.25" +version = "0.1.26" dependencies = [ "directories", "figment", @@ -411,7 +411,7 @@ dependencies = [ [[package]] name = "john-slop-lsp" -version = "0.1.25" +version = "0.1.26" dependencies = [ "john-slop-core", "serde_json", @@ -422,7 +422,7 @@ dependencies = [ [[package]] name = "john_slop" -version = "0.1.25" +version = "0.1.26" dependencies = [ "clap", "globset", diff --git a/tasks.md b/tasks.md index 5402017..8d6e73a 100644 --- a/tasks.md +++ b/tasks.md @@ -676,7 +676,7 @@ and all release metadata and binary versions agree on `0.1.25`. `--all-diagnostics` testing switch and a minimum-weight opt-in that always retains Unicode findings while suppressing lighter non-Unicode signals. Cover the policy through unit, protocol, and CLI-help tests. -- [ ] Update editor/configuration guidance, changelog, evaluation sign-off, +- [x] Update editor/configuration guidance, changelog, evaluation sign-off, release metadata, coverage, badges, and recap; run all quality, audit, regeneration, and package gates. @@ -693,6 +693,14 @@ default LSP publishes only Unicode findings, both opt-in modes are deterministic and all release artifacts agree on `0.1.26` before the immutable `v0.1.26` tag is created. +Accepted on 2026-09-30 after 19 shipped rules each passed positive and realistic +near-miss characterization, the default protocol path published only Unicode, +and weighted/all-diagnostic opt-ins passed unit, CLI, and real LSP tests. +Formatting, Clippy, rustdoc, both feature matrices, evaluation, dependency +policy/audit checks, Unicode-catalog reproducibility, and workspace package +assembly pass; coverage is 92.72% (1,604/1,730 lines), and all release metadata +and binary versions agree on `0.1.26`. + ## Deferred by design - Statistical or model-based authorship classification. diff --git a/tests/cli.rs b/tests/cli.rs index 1f140f8..411cfb9 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -225,7 +225,7 @@ fn diagnostics_init_generates_a_loadable_runtime_catalog() { String::from_utf8_lossy(&loaded.stderr) ); let resolved = toml::from_slice::(&loaded.stdout).unwrap(); - assert_eq!(resolved["rules"].as_array().unwrap().len(), 13); + assert_eq!(resolved["rules"].as_array().unwrap().len(), 20); let refused = detector() .current_dir(directory.path()) diff --git a/tests/fixtures/evaluation/signoff.toml b/tests/fixtures/evaluation/signoff.toml index adc2a45..2752005 100644 --- a/tests/fixtures/evaluation/signoff.toml +++ b/tests/fixtures/evaluation/signoff.toml @@ -1,5 +1,5 @@ schema_version = 1 -release = "0.1.25" +release = "0.1.26" reviewed_on = "2026-09-30" status = "accepted-with-runtime-catalog-boundary" catalog_sha256 = "da34ce00dfd2d801e772fa440d932abb98c929f5ad08ff3ad5e47e0ed4d84d5a" diff --git a/tests/heuristics.rs b/tests/heuristics.rs index 185ee7d..1dceea4 100644 --- a/tests/heuristics.rs +++ b/tests/heuristics.rs @@ -62,6 +62,18 @@ fn every_shipped_rule_has_a_positive_and_realistic_near_miss() { near_miss: "The assistant: generated a response.", kind: FixtureKind::Prose, }, + RuleCase { + id: "assistant-follow-up-offer", + positive: "Let me know if you'd like me to expand this.", + near_miss: "Let me know whether the expansion is useful.", + kind: FixtureKind::Prose, + }, + RuleCase { + id: "assistant-revision-preface", + positive: "Here's the polished draft for publication.", + near_miss: "The polished draft was accepted for publication.", + kind: FixtureKind::Prose, + }, RuleCase { id: "templated-conclusion", positive: "In conclusion, we can retain this design.", @@ -80,6 +92,24 @@ fn every_shipped_rule_has_a_positive_and_realistic_near_miss() { near_miss: "Moreover, the only transition is relevant.", kind: FixtureKind::Prose, }, + RuleCase { + id: "editorial-insertion-placeholder", + positive: "The claim needs support. [Add reference here]", + near_miss: "The claim cites [Smith 2024].", + kind: FixtureKind::Prose, + }, + RuleCase { + id: "stock-helpful-closing", + positive: "The command exits successfully.\nI hope this helps.", + near_miss: "We hope this helps readers reproduce the result.", + kind: FixtureKind::Prose, + }, + RuleCase { + id: "excess-vocabulary-cluster", + positive: "The report delves into a multifaceted problem.", + near_miss: "The landscape photograph records the site.", + kind: FixtureKind::Prose, + }, RuleCase { id: "source-placeholder-todo", positive: "fn parse() { /* TODO: implement the parser */ }", @@ -92,6 +122,18 @@ fn every_shipped_rule_has_a_positive_and_realistic_near_miss() { near_miss: "// First input byte stores the version.\nlet value = parse();", kind: FixtureKind::Rust, }, + RuleCase { + id: "source-omitted-code-placeholder", + positive: "fn parse() {}\n// ... remaining code here", + near_miss: "// The remaining code validates the parsed value.", + kind: FixtureKind::Rust, + }, + RuleCase { + id: "source-markdown-fence", + positive: "```rust\nfn parse() {}", + near_miss: "const FENCE: &str = \"three backticks\";", + kind: FixtureKind::Rust, + }, RuleCase { id: "unicode-ascii-replacement", positive: "Review this—then continue.",