mandrel 2.116.0 → 2.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,14 +141,22 @@ export function readBaseline(cwd, fsImpl = fs) {
141
141
  return normaliseParsedBaseline(JSON.parse(fsImpl.readFileSync(abs, 'utf8')));
142
142
  }
143
143
 
144
+ /**
145
+ * An axis with no denominator (`null` from `scoreEntry`: a file with no
146
+ * branches, functions or statements) persists as 100, the istanbul/c8
147
+ * convention for 0/0. Persisting 0 would score a branch-free file as fully
148
+ * uncovered and drag the unweighted `*` rollup below its floor.
149
+ */
150
+ const NO_DENOMINATOR_PCT = 100;
151
+
144
152
  function projectFlatToRows(baseline) {
145
153
  return Object.entries(baseline ?? {}).map(([file, scores]) => {
146
154
  const { denominators: _ignored, ...rest } = scores ?? {};
147
155
  return {
148
156
  path: file,
149
- lines: rest.lines ?? 0,
150
- branches: rest.branches ?? 0,
151
- functions: rest.functions ?? 0,
157
+ lines: rest.lines ?? NO_DENOMINATOR_PCT,
158
+ branches: rest.branches ?? NO_DENOMINATOR_PCT,
159
+ functions: rest.functions ?? NO_DENOMINATOR_PCT,
152
160
  };
153
161
  });
154
162
  }
package/docs/CHANGELOG.md CHANGED
@@ -15,6 +15,13 @@ All notable changes to this project will be documented in this file.
15
15
  -->
16
16
  <!-- markdownlint-disable-file MD004 MD012 MD037 -->
17
17
 
18
+ ## [2.117.0](https://github.com/dsj1984/mandrel/compare/mandrel-v2.116.0...mandrel-v2.117.0) (2026-11-11)
19
+
20
+
21
+ ### Fixed
22
+
23
+ * **baselines:** persist a 0/0 coverage axis as 100, not 0 (refs [#6044](https://github.com/dsj1984/mandrel/issues/6044)) ([#6045](https://github.com/dsj1984/mandrel/issues/6045)) ([e577cd4](https://github.com/dsj1984/mandrel/commit/e577cd41fac39b68228111a4a79565d090218d62))
24
+
18
25
  ## [2.116.0](https://github.com/dsj1984/mandrel/compare/mandrel-v2.115.0...mandrel-v2.116.0) (2026-11-10)
19
26
 
20
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mandrel",
3
- "version": "2.116.0",
3
+ "version": "2.117.0",
4
4
  "description": "Claude Code-first opinionated workflow framework: instructions, skills, rules, and SDLC workflows that govern AI coding assistants.",
5
5
  "files": [
6
6
  ".agents/",