feat(workflows): add dry-run previews - #3933
Open
VictorMaxWang wants to merge 1 commit into
Open
Conversation
Preview agent-facing workflow steps without dispatch, persist the mode across resume, and expose ordered partial previews in human and JSON output. Assisted-by: OpenAI Codex (model: GPT-5, autonomous)
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.
Description
Add
specify workflow run --dry-runso contributors can inspect resolved, agent-facing workflow configuration before allowing an integration CLI to run.The dry-run mode:
command,prompt, andgatesteps without agent dispatch or interactive gate inputworkflow resumeDry-run is deliberately not a side-effect-free sandbox. Built-in
shellandinitsteps, along with custom step types, retain their normal behavior; the CLI and documentation warn about this before execution.Closes #2661
Testing
uv run specify --helpuv sync && uv run pytestAdditional validation performed on Windows:
uv sync --extra testuv pip install -e ".[test]"uv pip install -e .239 passed, 3 skippedtests/test_workflows.py:910 passed, 7 skipped; 20 tests could not create their symlink fixtures because this Windows session lacks symlink privilege (WinError 1314)git diff --checkdry_run: true, and no spec artifact was createdThe monolithic
.venv\Scripts\python -m pytest tests -qcommand exceeded the local runner time limit. The final commit was therefore also exercised through disjoint test-directory partitions: 6,103 passed, 178 skipped, and 130 Windows symlink/locale/MSYS parity or scope-disjoint failures. These failures were not baseline-confirmed against the parent commit, so this PR does not claim a fully green local suite.The contributor confirmed completing line-by-line review and hands-on validation before this PR was opened.
AI Disclosure
OpenAI Codex was used to inspect repository guidance and Issue/PR history, implement the workflow dry-run behavior, documentation, and regression tests, run automated tests, execute the disposable Codex-integration sentinel E2E, rebase onto current upstream, and prepare this pull request. The contributor subsequently performed the required human review and validation.