feat(core,daemon,cli): add dryRun thread-level parameter to StartSignal #103
Reference in New Issue
Block a user
Delete Branch "feat/101-dry-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add
dryRun: booleantoStartSignal.meta, allowing workflows to skip side effects during test runs.Why
Workflows need a way to run end-to-end without actual side effects (file writes, git ops, API calls).
dryRunas a thread-level param lets each role decide what to skip.Changes
StartSignal.meta→{ maxRounds: number; dryRun: boolean }DaemonIpcTriggerWorkflowRequest+parseTriggerWorkflowFieldsincludedryRun(defaultfalse)dryRunfrom--payloadJSONdryRunthroughStartThread/ResumeThreadIPC,isStartMetaguard,initThreadMessagesWorkflowLaunchParamsincludesdryRun; sense-triggered workflows defaultfalseisDryRun(start: StartSignal): booleanhelpergetTriggerPayloadhandlesdryRunin launch recordsUsage
Tests
376 tests pass across all packages (core 26, workflow-utils 4, store 73, cli 122, daemon 151).
Ref
Fixes #101
LGTM — 全链路 dryRun 透传干净,防御性解析到位,测试覆盖充分。