You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit add8b48
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): make commands that passed without doing the work fail loudly
Python analyze and Python mutate write nothing, say they are not
implemented and exit 2. mutate exits 1 when no operator matched. The
pre-push hook no longer announces refactoring branches and checks budgets
only; the dead refactor-branch code is removed. New CLI and hook tests
cover each behaviour. README, the deconvolute skill, the adopter check and
R55 describe the change.
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .agents/skills/deconvolute/SKILL.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,11 +74,11 @@ Evaluate structural reduction using `lesscode-core`:
74
74
The native `lesscode-core` binary exposes first-class deconvolution commands across all supported runtimes:
75
75
76
76
### Known limits of the porcelain (R55, 2026-11-10)
77
-
Measured with the 1.0.1 binary; see `docs/research/2026-11-10/01-released-binary-adopter-dogfood.md`.
78
-
-`analyze --lang python` performs no analysisand still reports `"passed": true`. Do not use it as evidence.
79
-
-`mutate` uses operators bound to the experiment specimens. On other code it usually writes no mutants and still exits 0; read `mutants_generated`. There is no Python generator.
77
+
Measured with the 1.0.1 binary; see `docs/research/2026-11-10/01-released-binary-adopter-dogfood.md`. Where the release after 1.0.1 behaves differently, the item says so.
78
+
-`analyze --lang python` performs no analysis. From the release after 1.0.1 it writes no receipt, prints a note to stderr and exits 2. Version 1.0.1 still reports `"passed": true`. Do not use either as evidence.
79
+
-`mutate` uses operators bound to the experiment specimens. On other code it usually writes no mutants. From the release after 1.0.1 it then exits 1 (the receipt shows `"mutants_generated": 0`); version 1.0.1 exits 0, so read `mutants_generated`. There is no Python generator: from the release after 1.0.1 `mutate --lang python` writes nothing and exits 2.
80
80
-`density --lang python` reports the line count in both the line and statement fields.
81
-
- The pre-push hook enforces complexity budgets only. It does not analyze `refactor/*`or`deconvolute/*` branches.
81
+
- The pre-push hook enforces complexity budgets only. From the release after 1.0.1 it treats `refactor/*`and`deconvolute/*` branches like any other branch; version 1.0.1 announces them but checks nothing more.
82
82
83
83
### Binary Discovery
84
84
Prefer an installed release binary on `PATH` (`lesscode-core --version`; install with `scripts/install.sh` or `scripts/install.ps1`). Otherwise locate the compiled binary in standard build locations:
@@ -114,7 +114,7 @@ lesscode-core deconvolute density --lang <rust|java|typescript|python> --baselin
114
114
-**Decision:** Emits `pass` if thresholds ($\ge 20\%$ and $\ge 50$ lines, $\ge 10\%$ and $\ge 10$ statements) are met, or `marginal`/`fail` otherwise.
-**Automatic Bypasses:** Deletions of remote branches and `LESSCODE_SKIP_HOOK=1` exit 0 immediately.
126
126
-**Complexity Budgets:** Intercepts regressions in `complexity-budgets.json` before code reaches the remote.
127
-
-**Refactoring Branches (`refactor/*`, `deconvolute/*`):**Recognized and announced; the hook prints a note when tracked files are uncommitted. No state-boundary or mutation check runs in the hook, so run `analyze` and the test oracle yourself.
127
+
-**Refactoring Branches (`refactor/*`, `deconvolute/*`):**From the release after 1.0.1, treated like any other branch: budget check only (version 1.0.1 announces them and prints a note when tracked files are uncommitted). No state-boundary or mutation check runs in the hook, so run `analyze` and the test oracle yourself.
0 commit comments