Skip to content

Commit 02fd60c

Browse files
committed
fix: render deferred command per integration
Assisted-by: GitHub Copilot (model: GPT-5.6 Sol, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: be3f0d7d-2774-4ba2-b741-efbb4870148a
1 parent adfc9f1 commit 02fd60c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

presets/lean/commands/speckit.constitution.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ propagating constitution-driven changes to dependent Spec Kit artifacts.
2020
- If an instruction could be either constitution content or a non-governance intent, ask for
2121
clarification before making changes.
2222
- After updating the constitution, list each deferred intent in a `Next Actions` section with an
23-
appropriate follow-up Spec Kit command, such as `/speckit.specify`, but do not invoke it.
23+
appropriate follow-up Spec Kit command, such as `__SPECKIT_COMMAND_SPECIFY__`, but do not
24+
invoke it.
2425
- Omit `Next Actions` when there are no non-governance intents.
2526

2627
## Outline

templates/commands/constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constitution-driven changes to the dependent artifacts identified in this comman
3030
making changes.
3131
- After completing the constitution update, include a `Next Actions` section for each deferred
3232
intent. List the original intent and suggest the appropriate follow-up Spec Kit command, such
33-
as `/speckit.specify`, without invoking it.
33+
as `__SPECKIT_COMMAND_SPECIFY__`, without invoking it.
3434
- If there are no non-governance intents, omit the `Next Actions` section.
3535

3636
## Pre-Execution Checks

tests/test_presets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5406,15 +5406,16 @@ def test_constitution_commands_guard_against_non_governance_work(command_path):
54065406
"""Constitution commands defer non-governance work instead of executing it."""
54075407
content = command_path.read_text()
54085408
lower_content = content.lower()
5409+
normalized_content = " ".join(lower_content.split())
54095410

54105411
assert "## Scope Guard" in content
54115412
assert "**MUST NOT**" in content
54125413
assert "application source files" in content
54135414
assert "non-governance intent" in content
54145415
assert "`Next Actions`" in content
5415-
assert "/speckit.specify" in content
5416+
assert "__SPECKIT_COMMAND_SPECIFY__" in content
54165417
assert "omit" in lower_content
5417-
assert "do not invoke it" in lower_content or "without invoking it" in lower_content
5418+
assert "do not invoke it" in normalized_content or "without invoking it" in normalized_content
54185419

54195420

54205421
class TestLeanPreset:

0 commit comments

Comments
 (0)