@infinitedusky/indusk-mcp 1.25.0 → 1.25.1
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.
|
@@ -312,7 +312,13 @@ const trajectoryRequiredFrontmatter = /trajectory:\s*required/.test(frontmatter)
|
|
|
312
312
|
const hasTrajectoryHeading = /^##\s+Test Trajectory\b/m.test(body);
|
|
313
313
|
const trajectoryValidationEnabled = trajectoryRequiredFrontmatter || hasTrajectoryHeading;
|
|
314
314
|
const rationaleRequiredFrontmatter = /rationale:\s*required/.test(frontmatter);
|
|
315
|
-
|
|
315
|
+
// Anchor to start-of-line within frontmatter (m flag) so the key is only matched
|
|
316
|
+
// when it appears as a top-level YAML key — NOT when its name appears as a
|
|
317
|
+
// substring inside a quoted value (e.g., a `title:` mentioning the key).
|
|
318
|
+
// Surfaced by /falsify hypothesis 1: a documentation plan whose title contained
|
|
319
|
+
// the literal `rationale_baseline: 1` silently inherited that baseline from the
|
|
320
|
+
// title's substring. See .indusk/planning/rationale-baseline-frontmatter/falsification.md.
|
|
321
|
+
const rationaleBaselineMatch = frontmatter.match(/^rationale_baseline:\s*(\d+)/m);
|
|
316
322
|
const rationaleBaseline = rationaleBaselineMatch
|
|
317
323
|
? Number.parseInt(rationaleBaselineMatch[1], 10)
|
|
318
324
|
: 0;
|