fix(tasks): require executable commands for governed operations in task bodies#2264
Open
ayeshakhalid192007-dev wants to merge 4 commits intogithub:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2219
Description
Tasks generated by
/speckit.tasksdescribe governed operations in prose.When the constitution is compacted out of context, the agent guesses the
command, gets flags wrong, and the operation fails (e.g. 403 on NuGet push).
Root Cause
Task Generation Rules had no requirement to embed the exact command for
operations the constitution defines with specific syntax, flags, or env vars.
Tasks are always in agent context — prose descriptions throw that away.
Solution
Require that any task covering a governed operation includes the exact
executable command, parameterized with env var names, directly in the task body.
Changes
templates/commands/tasks.md— new### Governed Operations (REQUIRED)rule + examplestemplates/tasks-template.md— governed-command bullet added to Format legendtemplates/commands/taskstoissues.md,tests/hooks/TESTING.md,workflows/ARCHITECTURE.md,workflows/README.md— pre-existing MD031/MD032/MD040 lint fixesWhy This Is Safe
Pure documentation change — no Python code, no CLI arguments, no new files.
Adds an instruction to an existing rule section; all existing task formats remain valid.
Testing
/speckit.taskson a project with a governed push/deploy in the constitution — verify generated task body contains the exact commandruff check src/passesmarkdownlinton changed files: 0 errors