Skip to content

Smoke test workspace_swap + chat-driven confirmation in prompt#35

Merged
michaeldeongreen merged 2 commits into
devfrom
swap-file-smoke-test
May 9, 2026
Merged

Smoke test workspace_swap + chat-driven confirmation in prompt#35
michaeldeongreen merged 2 commits into
devfrom
swap-file-smoke-test

Conversation

@michaeldeongreen

Copy link
Copy Markdown
Owner

Smoke test of the hardened workspace_swap.py end-to-end flow, plus an update to the swap-to-feature prompt that moves the YES confirmation from the terminal into the chat UI.

What's in this PR

  • .github/prompts/swap-to-feature.prompt.md — rewritten to instruct the agent to ask for confirmation in chat (vscode_askQuestions with explicit YES/NO options), then pipe echo "YES" | into the script so the terminal never blocks. The script's terminal Confirm: prompt remains intact for direct CLI users.

Story arc

  1. e0ba1c5 — End-to-end test: ran the new prompt, got the chat dialog, answered YES, script applied the swap to feature workspace 6aca848e…. Same commit ships the prompt edit.
  2. 30d38bbswap-to-dev to revert tracked Fabric files to dev IDs ahead of this PR (so check-pr-ready passes).

Operationally

  • check-pr-ready CI should pass — swap-to-dev was run and tracked files contain only dev IDs.
  • 185 unit tests still pass (no script changes since the previous PR; only the prompt file was edited).

Test of the updated swap-to-feature.prompt.md flow that moves the YES
confirmation into the chat UI instead of a live terminal prompt.

scripts/workspace_swap.py output for branch swap-file-smoke-test:
- New per-branch value set: Patterns_Variables.VariableLibrary/valueSets/
  swap-file-smoke-test.json
- settings.json valueSetsOrder updated
- Patterns_Semantic_Model.SemanticModel: Direct Lake URL repointed to
  feature workspace + lakehouse
- Import_Patterns_Data.Notebook: META block lakehouse dependency
  repointed to feature workspace + lakehouse

.github/prompts/swap-to-feature.prompt.md updated to instruct the agent
to ask for confirmation in the chat UI (vscode_askQuestions) and then
pipe YES into the script (echo "YES" | python ...) so the terminal
never blocks on the script's interactive Confirm: prompt.
Reverts the swap-file-smoke-test branch to dev IDs ahead of opening
the PR to dev. The check-pr-ready CI workflow enforces this — feature
IDs in tracked Fabric files would block the merge.

Reverted by scripts/workspace_swap.py --swap-to-dev:
- Patterns_Semantic_Model.SemanticModel/definition/expressions.tmdl
  (Direct Lake URL: feature → dev)
- Import_Patterns_Data.Notebook/notebook-content.py
  (META block: feature → dev)
- Patterns_Variables.VariableLibrary/valueSets/swap-file-smoke-test.json
  (deleted — per-branch value set no longer needed)
- Patterns_Variables.VariableLibrary/settings.json
  (swap-file-smoke-test removed from valueSetsOrder)
@michaeldeongreen michaeldeongreen merged commit fcd600c into dev May 9, 2026
2 checks passed
@michaeldeongreen michaeldeongreen deleted the swap-file-smoke-test branch May 9, 2026 19:11
michaeldeongreen added a commit that referenced this pull request May 9, 2026
… pass (#36)

PR #34 made .env mandatory for swap-to-feature, removed the interactive
prompt fallback, removed the value-set-priority shortcut, and added a
case-sensitive YES confirmation. PR #35 moved that confirmation into the
chat UI for slash-command invocations. fabric-development-process.md still
described the old behavior in three spots.

Updates:
- Step 4 (swap-to-feature): drop the 'or prompts if .env is missing'
  claim; add the YES confirmation step; add the recovery pass step.
- Local .env Setup section: replace 'falls back to interactive prompt'
  + 'value set is source of truth' with the new model (.env always
  authoritative for swap-to-feature; value set used by swap-to-dev
  and the recovery pass; YES confirmation gate).
- Copilot Chat section: note that /swap-to-feature moves the YES
  confirmation into the chat UI.

Tests: 185 pass (no script changes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant