Skip to content

fix(speckit.specify): dirty-tree check before branch creation is prose only #358

Closed

Description

@jflowers

Problem

speckit.specify.md lines 42–50 describe a check for uncommitted changes before git checkout -b entirely in prose ("STOP and ask the user for confirmation"). No AskUserQuestion tool call is specified. Under context compression an agent can skip the check and create the branch despite uncommitted changes, risking applying in-progress work to the wrong branch.

Root Cause

Weakness Types T1 + T3: gate exists in prose but is not enforced by an AskUserQuestion tool call.

Fix

After detecting uncommitted changes, add an explicit AskUserQuestion:

Use AskUserQuestion with options:
  ["Stash changes and continue", "Abort — keep changes as-is"]

Only proceed to git checkout -b if the user confirms.

Related

Activity

  1. added
    enhancement
    security
    on Jul 28, 2026
  2. added a commit that references this issue on Jul 31, 2026
    8df3b53
  3. added a commit that references this issue on Jul 31, 2026
    93daf46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsecurity

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions