fix(#2269): add --files to three unscoped query commit call sites (#2549)

* test(#2269): regression test for query commit --files scoping

Verify secure-phase.md, validate-phase.md, and next.md all pass --files
to their query commit calls.

* fix(#2269): add --files to three unscoped query commit call sites

secure-phase.md, validate-phase.md, and next.md were the only 3 of 65
query commit call sites that omitted --files, causing blanket staging
of .planning/ and committing unrelated files. Add --files with the
specific artifact path to each.

Closes #2269

* docs(#2269): backfill changeset PR number (2549)
This commit is contained in:
Tom Boucher
2026-07-23 07:37:15 -04:00
committed by GitHub
parent 77bf21b3a6
commit 200daa456c
25 changed files with 105 additions and 63 deletions

View File

@@ -187,7 +187,8 @@ Choice [S]:
```
2. Commit the deferral record:
```bash
gsd_run query commit "docs: defer incomplete Phase {src} items to backlog"
gsd_run query commit "docs: defer incomplete Phase {src} items to backlog" \
--files .planning/ROADMAP.md
```
3. Continue routing to `determine_next_action` immediately — no second prompt.

View File

@@ -162,7 +162,8 @@ Do NOT emit next-phase routing. Stop here.
## 7. Commit
```bash
gsd_run query commit "docs(phase-${PHASE}): add/update security threat verification"
gsd_run query commit "docs(phase-${PHASE}): add/update security threat verification" \
--files "${PHASE_DIR}/${PADDED_PHASE}-SECURITY.md"
```
## 8. Results + Routing

View File

@@ -150,7 +150,8 @@ Handle return:
git add {test_files}
git commit -m "test(phase-${PHASE}): add Nyquist validation tests"
gsd_run query commit "docs(phase-${PHASE}): add/update validation strategy"
gsd_run query commit "docs(phase-${PHASE}): add/update validation strategy" \
--files "${PHASE_DIR}/${PADDED_PHASE}-VALIDATION.md"
```
## 8. Results + Routing