@ikunin/sprintpilot 2.2.7 → 2.2.8
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.
|
@@ -157,7 +157,17 @@ function verifyCreateStory(state, _out, ctx) {
|
|
|
157
157
|
else {
|
|
158
158
|
const text = readFileSafe(ctx.fs, state.story_file_path);
|
|
159
159
|
const fm = frontMatter(text);
|
|
160
|
-
|
|
160
|
+
// Escape hatch: when the LLM sends verify_override with evidence
|
|
161
|
+
// {acknowledge_missing_front_matter: true, decision_log_ref: '...'},
|
|
162
|
+
// skip the front-matter check ONLY for this verification call. AC +
|
|
163
|
+
// Tasks checks still run. Auditable via the verify_override ledger
|
|
164
|
+
// entry which captures evidence verbatim. Used when bmad-create-story
|
|
165
|
+
// can't or won't regenerate front-matter (e.g., legacy story files
|
|
166
|
+
// in repos that pre-date the front-matter convention and have a
|
|
167
|
+
// body the skill wants to preserve).
|
|
168
|
+
const override = ctx.augmented || {};
|
|
169
|
+
const ackMissingFm = override && override.acknowledge_missing_front_matter === true;
|
|
170
|
+
if (!fm && !ackMissingFm) issues.push('story file missing YAML front-matter');
|
|
161
171
|
// AC presence — look for "## Acceptance Criteria" section with at least one bullet.
|
|
162
172
|
if (text && !/##\s+Acceptance Criteria[\s\S]*?\n-\s+/.test(text)) {
|
|
163
173
|
issues.push('Acceptance Criteria section missing or empty');
|
package/package.json
CHANGED