ww-agentic-workflows 1.0.0.dev8__tar.gz → 1.0.0.dev9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/CHANGELOG.md +12 -0
  2. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/PKG-INFO +1 -1
  3. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/architecture.md +48 -11
  4. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/features.md +79 -28
  5. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/specification.md +5 -4
  6. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/ext/ww/git/extension.py +27 -11
  7. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/pyproject.toml +1 -1
  8. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/action_execution.py +24 -0
  9. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/contracts.py +16 -0
  10. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/extension.py +11 -0
  11. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-rule_skill.md +13 -8
  12. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/main.py +3 -6
  13. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/parser.py +10 -1
  14. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/completion_inputs.py +7 -2
  15. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config_writes.py +123 -31
  16. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/plan_codec.py +1 -0
  17. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/records.py +1 -0
  18. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/extensions/api.py +9 -0
  19. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/builder.py +47 -9
  20. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/handoff.py +22 -1
  21. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/models.py +12 -3
  22. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/markdown.py +40 -10
  23. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/rule_pages.py +24 -1
  24. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/plan/actions.py +6 -1
  25. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/plan/compiler.py +3 -12
  26. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_views.py +100 -4
  27. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_writes.py +132 -57
  28. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/service.py +27 -5
  29. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/transitions.py +9 -2
  30. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/workflow_config.py +31 -2
  31. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/workflow_validation.py +5 -22
  32. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/manager-dispatch.md +2 -0
  33. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/step-auto-worker.md +2 -0
  34. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/worker-bootstrap.md +2 -0
  35. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_assessment_outcomes.py +72 -2
  36. ww_agentic_workflows-1.0.0.dev9/tests/integration/test_conditional_inputs.py +136 -0
  37. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_discover.py +2 -1
  38. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_git_extension.py +34 -0
  39. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_handoff_block.py +2 -0
  40. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_interactive.py +43 -0
  41. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_plan_execution.py +2 -2
  42. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_rule_commands.py +57 -0
  43. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_rule_write_commands.py +161 -5
  44. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_worker_handoff.py +113 -10
  45. ww_agentic_workflows-1.0.0.dev9/tests/unit/test_completion_inputs.py +43 -0
  46. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_extensions.py +9 -0
  47. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_markdown_output.py +54 -24
  48. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_records.py +17 -1
  49. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_rule_writes.py +86 -3
  50. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_rules.py +37 -0
  51. ww_agentic_workflows-1.0.0.dev8/tests/unit/test_completion_inputs.py +0 -22
  52. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.claude/settings.json +0 -0
  53. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.claude/skills/noww/SKILL.md +0 -0
  54. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.claude/skills/update-architecture-documentation/SKILL.md +0 -0
  55. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.claude/skills/ww/SKILL.md +0 -0
  56. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.codex/hooks.json +0 -0
  57. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.codex/skills/noww/SKILL.md +0 -0
  58. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.codex/skills/update-architecture-documentation/SKILL.md +0 -0
  59. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.codex/skills/ww/SKILL.md +0 -0
  60. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.git-blame-ignore-revs +0 -0
  61. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.githooks/pre-commit +0 -0
  62. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  63. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  64. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  65. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  66. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/workflows/dev-publish.yml +0 -0
  67. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.github/workflows/release-gates.yml +0 -0
  68. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/.gitignore +0 -0
  69. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/AGENTS.md +0 -0
  70. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/CLAUDE.md +0 -0
  71. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/CODE_OF_CONDUCT.md +0 -0
  72. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/CONTRIBUTING.md +0 -0
  73. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/LICENSE +0 -0
  74. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/README.md +0 -0
  75. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/SECURITY.md +0 -0
  76. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/WW_AGENT_INSTRUCTIONS.md +0 -0
  77. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/agent-hooks.md +0 -0
  78. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/development-releases.md +0 -0
  79. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/examples.md +0 -0
  80. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/limitations.md +0 -0
  81. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/python-agent-rules.md +0 -0
  82. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/documentation/todo.md +0 -0
  83. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/check_distribution.py +0 -0
  84. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/check_release_gates.py +0 -0
  85. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/demo.sh +0 -0
  86. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/ensure_spdx_license.py +0 -0
  87. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/measure_pages.py +0 -0
  88. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/run_workflow_dummy.py +0 -0
  89. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/set_dev_version.py +0 -0
  90. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/scripts/test +0 -0
  91. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/__init__.py +0 -0
  92. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/__init__.py +0 -0
  93. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/command.py +0 -0
  94. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/mcp.py +0 -0
  95. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/prompt.py +0 -0
  96. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/skill.py +0 -0
  97. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/actions/slash_command.py +0 -0
  98. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/agents.py +0 -0
  99. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/amendments.py +0 -0
  100. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/artifacts.py +0 -0
  101. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assessments.py +0 -0
  102. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/__init__.py +0 -0
  103. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/agent_instructions.md +0 -0
  104. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/noww_skill.md +0 -0
  105. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/workflows/onboarding.yaml +0 -0
  106. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/workflows/scriptize.yaml +0 -0
  107. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-automate_skill.md +0 -0
  108. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-debug-report_skill.md +0 -0
  109. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-deduce-feedback_skill.md +0 -0
  110. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-feedback-rules_skill.md +0 -0
  111. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-learn-project_skill.md +0 -0
  112. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-refresh_skill.md +0 -0
  113. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-rules-from-artifacts_skill.md +0 -0
  114. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-scriptize_skill.md +0 -0
  115. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-setup_skill.md +0 -0
  116. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-solve_skill.md +0 -0
  117. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-suggest_skill.md +0 -0
  118. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-wizard_skill.md +0 -0
  119. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww-workflow-feedback_skill.md +0 -0
  120. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assets/ww_skill.md +0 -0
  121. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/assignments.py +0 -0
  122. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/bootstrap.py +0 -0
  123. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/builtin_workflows.py +0 -0
  124. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/changes.py +0 -0
  125. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/child_coordination.py +0 -0
  126. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/children.py +0 -0
  127. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/claude_permissions.py +0 -0
  128. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/__init__.py +0 -0
  129. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/__main__.py +0 -0
  130. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/audit.py +0 -0
  131. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/catalogs.py +0 -0
  132. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/discover.py +0 -0
  133. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/initialization.py +0 -0
  134. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/lookup.py +0 -0
  135. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/prompts.py +0 -0
  136. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/cli/updates.py +0 -0
  137. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/completion_artifacts.py +0 -0
  138. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/__init__.py +0 -0
  139. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/actions.py +0 -0
  140. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/composition.py +0 -0
  141. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/rules.py +0 -0
  142. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/steps.py +0 -0
  143. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config/values.py +0 -0
  144. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/config_files.py +0 -0
  145. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/contracts.py +0 -0
  146. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/control.py +0 -0
  147. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/defaults.py +0 -0
  148. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/design_docs.py +0 -0
  149. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/direct_work.py +0 -0
  150. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/discovery.py +0 -0
  151. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/documents.py +0 -0
  152. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/errors.py +0 -0
  153. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/executable.py +0 -0
  154. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/__init__.py +0 -0
  155. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/construction.py +0 -0
  156. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/decoding.py +0 -0
  157. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/execution_models/runs.py +0 -0
  158. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/extensions/__init__.py +0 -0
  159. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/extensions/registry.py +0 -0
  160. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/extensions/store.py +0 -0
  161. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/feedback.py +0 -0
  162. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/handler_repairs.py +0 -0
  163. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/hooks/__init__.py +0 -0
  164. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/hooks/agents.py +0 -0
  165. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/hooks/install.py +0 -0
  166. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/hooks/notices.py +0 -0
  167. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/hooks/runtime.py +0 -0
  168. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/inspect.py +0 -0
  169. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/__init__.py +0 -0
  170. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/commands.py +0 -0
  171. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/policy.py +0 -0
  172. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/instructions/text.py +0 -0
  173. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/interactions.py +0 -0
  174. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/interpolation.py +0 -0
  175. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/item_passes.py +0 -0
  176. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/items.py +0 -0
  177. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/locking.py +0 -0
  178. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/metadata_publication.py +0 -0
  179. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/onboarding.py +0 -0
  180. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/open_work.py +0 -0
  181. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operations.py +0 -0
  182. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/__init__.py +0 -0
  183. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/page.html +0 -0
  184. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/server.py +0 -0
  185. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/session.py +0 -0
  186. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/sheet.py +0 -0
  187. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/operator_ui/view.py +0 -0
  188. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output.py +0 -0
  189. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/__init__.py +0 -0
  190. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/base.py +0 -0
  191. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/json_adapter.py +0 -0
  192. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/output_adapters/terminal.py +0 -0
  193. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/package_updates.py +0 -0
  194. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/plan/__init__.py +0 -0
  195. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/plan/constructs.py +0 -0
  196. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/plan/models.py +0 -0
  197. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/project_config.py +0 -0
  198. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/recovery.py +0 -0
  199. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/replanning.py +0 -0
  200. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/results.py +0 -0
  201. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_checks.py +0 -0
  202. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_conversion.py +0 -0
  203. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_disputes.py +0 -0
  204. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_store.py +0 -0
  205. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/rule_verification.py +0 -0
  206. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/run_coordination.py +0 -0
  207. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/run_reports.py +0 -0
  208. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/runtimes.py +0 -0
  209. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/setup_apply.py +0 -0
  210. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/step_values.py +0 -0
  211. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage.py +0 -0
  212. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/__init__.py +0 -0
  213. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/base.py +0 -0
  214. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/filesystem.py +0 -0
  215. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/memory.py +0 -0
  216. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/project_metadata.py +0 -0
  217. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/storage_adapters/task_document.py +0 -0
  218. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/task_ids.py +0 -0
  219. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/task_references.py +0 -0
  220. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/updates.py +0 -0
  221. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/upgrade.py +0 -0
  222. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/validation.py +0 -0
  223. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/variables.py +0 -0
  224. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/workflow_update.py +0 -0
  225. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/src/ww/workspace.py +0 -0
  226. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/action_contract_helpers.py +0 -0
  227. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/config_helpers.py +0 -0
  228. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/conftest.py +0 -0
  229. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/example_documents.py +0 -0
  230. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/fixtures/packaged_extension/ww_test_packaged_extension.py +0 -0
  231. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/completion.md +0 -0
  232. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/fix-required.md +0 -0
  233. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/interactive.md +0 -0
  234. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/item-stage.md +0 -0
  235. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/loop-body.md +0 -0
  236. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/loop-continue.md +0 -0
  237. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/operator-stop.md +0 -0
  238. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/step-rules.md +0 -0
  239. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/step-single.md +0 -0
  240. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/values-and-metadata.md +0 -0
  241. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/verification.md +0 -0
  242. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/golden/pages/worker-handoff.md +0 -0
  243. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_adjustments.py +0 -0
  244. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_artifact_from_containers.py +0 -0
  245. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_assignment_tokens.py +0 -0
  246. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_auto_retries.py +0 -0
  247. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_automatic_handler_groups.py +0 -0
  248. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_automatic_modes.py +0 -0
  249. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_awaiting_operator.py +0 -0
  250. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_bootstrap_task_id.py +0 -0
  251. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_builtin_workflows.py +0 -0
  252. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_identity.py +0 -0
  253. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_launch_settings.py +0 -0
  254. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_stages.py +0 -0
  255. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_start_action.py +0 -0
  256. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_start_guards.py +0 -0
  257. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_child_tasks.py +0 -0
  258. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_children_added_mid_run.py +0 -0
  259. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_cli.py +0 -0
  260. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_command_metadata.py +0 -0
  261. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_complete_dispatch.py +0 -0
  262. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_concurrency.py +0 -0
  263. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_config_files.py +0 -0
  264. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_configuration_authority.py +0 -0
  265. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_consumed_values.py +0 -0
  266. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_debug_events.py +0 -0
  267. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_direct_work.py +0 -0
  268. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_documents.py +0 -0
  269. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_example_behaviour.py +0 -0
  270. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_executable.py +0 -0
  271. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_extension_execution.py +0 -0
  272. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_feedback_commands.py +0 -0
  273. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_git_variables.py +0 -0
  274. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_golden_pages.py +0 -0
  275. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_handler_repairs.py +0 -0
  276. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_hooks.py +0 -0
  277. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_init_force.py +0 -0
  278. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_init_permissions.py +0 -0
  279. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_inspect.py +0 -0
  280. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_assignment.py +0 -0
  281. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_fields.py +0 -0
  282. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_pass_restarts.py +0 -0
  283. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_pass_runs.py +0 -0
  284. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_reply_reports.py +0 -0
  285. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_item_runtime_values.py +0 -0
  286. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_items.py +0 -0
  287. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_local_step_pages.py +0 -0
  288. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_loops.py +0 -0
  289. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_memory_workflow_service.py +0 -0
  290. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_metadata_lists.py +0 -0
  291. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_onboarding.py +0 -0
  292. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_onboarding_workflows.py +0 -0
  293. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_pack_scenarios.py +0 -0
  294. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_packaged_extension.py +0 -0
  295. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_page_gates.py +0 -0
  296. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_projects.py +0 -0
  297. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_recommended_workflow.py +0 -0
  298. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_recovery_guards.py +0 -0
  299. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_replanning.py +0 -0
  300. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_requirements_pages.py +0 -0
  301. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_requirements_per_session.py +0 -0
  302. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_restart.py +0 -0
  303. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_rule_conversion.py +0 -0
  304. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_rule_verification_flow.py +0 -0
  305. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_rules_and_checks.py +0 -0
  306. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_run_report_commands.py +0 -0
  307. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_scriptize_workflow.py +0 -0
  308. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_setup_apply.py +0 -0
  309. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_setup_update.py +0 -0
  310. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_setup_verification.py +0 -0
  311. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_shared_items.py +0 -0
  312. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_stale_task_records.py +0 -0
  313. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_state_unknown_fields.py +0 -0
  314. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_system_scenarios.py +0 -0
  315. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_update_notice.py +0 -0
  316. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_upgrade.py +0 -0
  317. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_workdir.py +0 -0
  318. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_worker_bootstrap_text.py +0 -0
  319. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/integration/test_workflow_service.py +0 -0
  320. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/page_catalog.py +0 -0
  321. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/plan_helpers.py +0 -0
  322. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/test_dev_version.py +0 -0
  323. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_action_contracts.py +0 -0
  324. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_action_example.py +0 -0
  325. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_action_phase_contexts.py +0 -0
  326. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_artifacts.py +0 -0
  327. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_assignments.py +0 -0
  328. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_beta_notice.py +0 -0
  329. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_builtin_actions.py +0 -0
  330. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_changes.py +0 -0
  331. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_checklist_prompt.py +0 -0
  332. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_child_stages_config.py +0 -0
  333. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_children_config.py +0 -0
  334. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_cli_prompts.py +0 -0
  335. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_completion_selection.py +0 -0
  336. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_config.py +0 -0
  337. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_config_composition.py +0 -0
  338. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_config_writes.py +0 -0
  339. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_delegation_requests.py +0 -0
  340. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_design_docs.py +0 -0
  341. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_discovery.py +0 -0
  342. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_examples_doc.py +0 -0
  343. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_execution_hints.py +0 -0
  344. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_feedback.py +0 -0
  345. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_handler_failure_report.py +0 -0
  346. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_hook_agents.py +0 -0
  347. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_instruction_commands.py +0 -0
  348. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_interactions.py +0 -0
  349. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_item_config.py +0 -0
  350. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_item_passes.py +0 -0
  351. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_item_validation.py +0 -0
  352. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_locking.py +0 -0
  353. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_modes.py +0 -0
  354. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_operator_ui.py +0 -0
  355. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_package_updates.py +0 -0
  356. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_plan.py +0 -0
  357. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_project_config.py +0 -0
  358. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_project_metadata_storage_adapters.py +0 -0
  359. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_rule_disputes.py +0 -0
  360. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_rule_store.py +0 -0
  361. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_rule_verification.py +0 -0
  362. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_run_reports.py +0 -0
  363. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_runtimes.py +0 -0
  364. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_scripts_test_bootstrap.py +0 -0
  365. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_step_role.py +0 -0
  366. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_storage.py +0 -0
  367. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_task_document.py +0 -0
  368. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_task_ids.py +0 -0
  369. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_task_references.py +0 -0
  370. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_task_storage_adapters.py +0 -0
  371. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_transitions.py +0 -0
  372. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_updates.py +0 -0
  373. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_validation.py +0 -0
  374. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_variables.py +0 -0
  375. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_workflow_inheritance.py +0 -0
  376. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_workflow_validation.py +0 -0
  377. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/unit/test_workspace.py +0 -0
  378. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/tests/workflow_helpers.py +0 -0
  379. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/ww.json +0 -0
  380. {ww_agentic_workflows-1.0.0.dev8 → ww_agentic_workflows-1.0.0.dev9}/ww.yaml +0 -0
@@ -9,6 +9,18 @@ The committed package version stays at 0.1.0; development snapshots from `dev`
9
9
  use `1.0.0.devN`. What may change between two pulls, and what ww does not promise
10
10
  yet, is in [documentation/limitations.md](documentation/limitations.md).
11
11
 
12
+ ## 2026-10-08
13
+
14
+ - Fixed: after a worker's assessment, the handoff block lists one `next --outcome <label>` command per
15
+ outcome and a plain `next` shows the choice again instead of failing; `git-commit` no longer asks for a
16
+ message when the task workspace has nothing to commit, the message is optional on the step's completion,
17
+ and the "steps completed since" list of a commit request counts earlier commit placements; `next` on an
18
+ open interactive step shows its page again, and the refusal for a worker's open item names `instruction`,
19
+ `complete` and `next --reassign`; `rules add` and `rules move` work with a group that lists its rule files
20
+ one by one; `rules --json` lists every workflow's steps with the path a `steps` filter can name, loop bodies
21
+ and per-item stages included, which the `ww-rule` skill now reads; the assignment coverage line also names
22
+ the items ww runs itself, marked `(run by ww)`, and the upcoming-assignment preview lists them. `d38e52e`
23
+
12
24
  ## 2026-10-07
13
25
 
14
26
  - Fixed: a rejected completion's artifact is shown on the fix page and kept as a previous attempt in the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ww-agentic-workflows
3
- Version: 1.0.0.dev8
3
+ Version: 1.0.0.dev9
4
4
  Summary: A local-first, resumable workflow CLI for people and AI agents.
5
5
  Project-URL: Homepage, https://agenticworkflows.dev
6
6
  Project-URL: Documentation, https://github.com/from-developers-for-developers/agentic-workflows/tree/main/documentation
@@ -27,7 +27,12 @@ The built-in frontend in `../src/ww/config/` parses `../ww.yaml` into the
27
27
  immutable definitions in `../src/ww/workflow_config.py`; another notation can
28
28
  produce those definitions directly through the same loader contract. Shared
29
29
  cross-definition rules live in `../src/ww/workflow_validation.py`, so notation
30
- parsers do not acquire different workflow semantics. Validation is also where
30
+ parsers do not acquire different workflow semantics. `workflow_config.step_paths`
31
+ is the one walk of a step tree with its logical paths (nested steps, loop
32
+ bodies, per-item and per-child stages under their parent's path); the
33
+ validator, the plan compiler, rule placement and the `rules` listing's
34
+ `targets` all use it, so a step filter is checked, applied and listed against
35
+ the same set of names. Validation is also where
31
36
  the built-in workflows join the configured ones: `../src/ww/builtin_workflows.py`
32
37
  parses the YAML files shipped in `../src/ww/assets/workflows/` (`scriptize.yaml` with `ww-scriptize-rules`, and
33
38
  `onboarding.yaml` with ww's learning and setup workflows) with the same frontend, once per process, and adds each workflow the
@@ -609,11 +614,13 @@ agent, model, reasoning, or profile, or that is reserved for the manager with
609
614
  cannot change those. The `single` runtime keeps per-step bounds. Each stage is still its own plan item
610
615
  with its own record, so completion, reload, and recovery need no span-specific
611
616
  state; only the instruction builder marks the first stage of a span with its
612
- scope and later stages as compact continuations. The builder also splits the
613
- covered items by their execution records into `completed_assignment_items`
614
- and the rest, and names in `running_assignment_item` the ww-owned item the
615
- cursor is on, so a page re-read while a hook runs describes the assignment as
616
- it stands rather than as it was dispatched.
617
+ scope and later stages as compact continuations. The builder also lists every
618
+ item of the assignment in plan order as `assignment_items`, the ones ww runs
619
+ itself among them as `assignment_automatic_items`, splits them by their
620
+ execution records into `completed_assignment_items` and the rest, and names in
621
+ `running_assignment_item` the ww-owned item the cursor is on, so a page re-read
622
+ while a hook runs describes the assignment as it stands rather than as it was
623
+ dispatched.
617
624
 
618
625
  The same module collects the inputs of a completion window. Matching variable
619
626
  requests share one value across its automatic handlers, so overlapping project
@@ -973,10 +980,20 @@ builds from the saved state (`instructions/handoff.py`): the items performed
973
980
  with their outcomes, artifacts, checks, fix rounds and change set, plus the
974
981
  worker's capped `--summary`. The service takes the open
975
982
  assignment's items before a worker command runs, so the block can still name
976
- them after the command closed the assignment. `WorkflowService` builds the block in one method, used by both the completion
983
+ them after the command closed the assignment. When the assignment ended with
984
+ an assessment, the block also carries that step's name and its pending
985
+ outcome labels (`choosing_outcome_of`, `outcomes`, from `pending_assessment`),
986
+ so its manager line is one `next --outcome <label>` command per label rather
987
+ than a plain `next`, which with an outcome pending re-renders the choose page
988
+ instead of reaching `select_assessment_outcome` (`--force` still does, and is
989
+ refused there). `WorkflowService` builds the block in one method, used by both the completion
977
990
  path and `ww handoff`, which reprints it for an ended assignment from the saved records. A worker's `complete` or `loop`
978
991
  on a `role: manager` item is refused; the manager completes it with `--role
979
- manager`.
992
+ manager`. `next` while an item is open follows the same ownership: the page is
993
+ shown again when the session asking holds the open item (every item in
994
+ `single`, a `role: manager` item such as an interactive step in `auto`), and
995
+ refused for a worker's open item with the three ways out named,
996
+ `instruction`, `complete`, and `next --reassign`.
980
997
  A step's `role` says who performs it, and it is resolved along the same chain
981
998
  as the profile: workflow, enclosing steps, the step. For a `role: manager`
982
999
  action the compiler clears profile and execution-selection hints, so
@@ -1099,6 +1116,20 @@ that item has run; the supplied values remain on the record's
1099
1116
  `supplied_values`. Workflow values thus hold only what no consumer has used
1100
1117
  yet, and a later consumer of the same name, a commit after a review loop,
1101
1118
  raises its own input request instead of reusing the earlier value. A
1119
+ handler that needs its inputs only sometimes declares a precondition,
1120
+ `ExtensionHandler.needs_input`, which the compiler carries as
1121
+ `ProvidedVariable.conditional` on the plan item and `ActionExecutor.needs_input`
1122
+ evaluates through `AutomaticAction.needs_input` with the handler's ordinary
1123
+ context: `drain` consults it when the item's values are missing and runs the
1124
+ item without a request when they are not needed, and the completion window
1125
+ (`completion_inputs.py`) accepts a conditional value left out, so a commit on
1126
+ a clean workspace neither asks for a message nor stops the assignment; once
1127
+ ww has requested the value, it is required. The "steps completed since this
1128
+ handler last ran" list of a request is keyed on the handler rather than the
1129
+ plan item: the builder reads `item_executions` and `execution_history` for
1130
+ any placement of the same handler, skips a run whose result says it found
1131
+ nothing to do, and orders records completed in the same second by plan
1132
+ position. A
1102
1133
  reference's `args` are the other input:
1103
1134
  the name-only handler carries them, the compiler checks their count against
1104
1135
  the handler's declared `arguments` and validates their templates like shell
@@ -1851,12 +1882,18 @@ loading the configuration as any command would, and restored whole when that
1851
1882
  fails. Rule files are edited in place, keeping every line a change does not
1852
1883
  concern; the repo YAML is never rewritten whole, because PyYAML cannot round-trip
1853
1884
  comments, so new groups go into `ww-rules.yaml`, a ww-owned import, and the
1854
- repo file gains only its `imports` entry, checked by reading it back.
1885
+ repo file gains only its `imports` entry, checked by reading it back. A rule
1886
+ added or moved into a group that lists its files one by one is written beside
1887
+ the group's last file (or in `--dir`) and listed the same way: `ww-rules.yaml`
1888
+ is rewritten whole, any other declaring file gains the one list line, and the
1889
+ write is refused, naming the line to add by hand, when the list cannot be
1890
+ extended without touching anything else.
1855
1891
  `rules promote` is the one write that also changes the store, after the rule
1856
1892
  files validated. The write mechanics both this and `ww setup apply` use — a
1857
1893
  `FileWrite` plan, the `Transaction` that restores every file, and
1858
- `import_write`, which adds one `imports` entry and checks nothing else moved —
1859
- live in `../src/ww/config_writes.py`, with `dump_yaml`, which writes every YAML
1894
+ `import_write`, which adds one `imports` entry, and `list_item_write`, which
1895
+ appends one item to the block list at a key path, both checking nothing else
1896
+ moved — live in `../src/ww/config_writes.py`, with `dump_yaml`, which writes every YAML
1860
1897
  file ww owns the way a person would: block style, no anchors or aliases, an
1861
1898
  empty value rather than `null` (`- run-tests:`), long text folded with `>-` and
1862
1899
  multi-line text as a `|` block, short scalar lists such as `argv` inline,
@@ -1366,13 +1366,16 @@ Direct branches and `outcomes` cannot be combined; use `outcomes` for custom
1366
1366
  labels.
1367
1367
 
1368
1368
  The agent sees the choice before it answers: the assessment's page lists each
1369
- outcome and what it does, for example "`negative` — ends the workflow here".
1369
+ outcome and what it does, for example "`negative` — ends the workflow here",
1370
+ and says that once the step is complete the manager records the outcome with
1371
+ `next --outcome <label>`.
1370
1372
  Once the assessment is complete, the next page asks for the outcome and shows
1371
- one `next --outcome <label>` command per outcome, never a plain `next`, which
1372
- ww would refuse. An outcome made of an automatic command runs only after its
1373
- outcome is chosen; ww pauses at a pending assessment rather than running any
1374
- branch. A delegating manager chooses it itself; no worker preview is
1375
- shown until the outcome decides which work comes next.
1373
+ one `next --outcome <label>` command per outcome; a plain `next` runs nothing
1374
+ and shows that choice again. An outcome made of an automatic command runs only
1375
+ after its outcome is chosen; ww pauses at a pending assessment rather than
1376
+ running any branch. A delegating manager chooses it itself; no worker preview
1377
+ is shown until the outcome decides which work comes next, and the worker's
1378
+ handoff block ends with the same one command per outcome.
1376
1379
 
1377
1380
  `profile` may be a name or a mapping containing `name` and/or `description`.
1378
1381
  The mapping form supplies an inline description. ww resolves a named profile by
@@ -1537,14 +1540,16 @@ manager continues. `awaiting_operator` means a human must decide; see
1537
1540
  At handoff only the manager runs the displayed `next --role manager` command.
1538
1541
  In the `auto` runtime the manager's delegate page and the requested worker
1539
1542
  describe the step that drives selection, not whichever hook the cursor is on,
1540
- and both the manager and the worker are told every item the assignment covers:
1541
- `This assignment covers, in order: ...` while nothing is done, then, once the
1542
- worker has completed some of them, `Already completed in this assignment: ...
1543
- Remaining, in order: ...`, derived from the items' execution status rather
1544
- than from the assignment's first item. The line is omitted when one item or
1545
- none remains; while it is shown and ww is running an automatic item of the
1546
- assignment, a commit hook or a push, it names it: `` `ww` is now running
1547
- `git-push`. ``
1543
+ and both the manager and the worker are told every item the assignment covers,
1544
+ in plan order, the ones ww runs itself marked: `This assignment covers, in
1545
+ order: `develop`, `git-push` (run by `ww`), `update-workflow-summary`.` while
1546
+ nothing is done, then, once some of them are completed, `Already completed in
1547
+ this assignment: ... Remaining, in order: ...`, derived from the items'
1548
+ execution status rather than from the assignment's first item. The line is
1549
+ omitted when one item or none remains; while it is shown and ww is running an
1550
+ automatic item of the assignment, a commit hook or a push, it names it: `` `ww`
1551
+ is now running `git-push`. `` The previous manager page's "Upcoming
1552
+ assignment" preview lists the same items.
1548
1553
  A worker moving to a later item of the same assignment is told so explicitly,
1549
1554
  and the end of an assignment says to stop and return to the manager.
1550
1555
 
@@ -1555,9 +1560,11 @@ the `awaiting_input` instruction is addressed to the manager, its command
1555
1560
  carries `--role manager`, and the preview before it says that no worker is
1556
1561
  selected. Every pending-input page also lists, under "Work these values
1557
1562
  describe", the handovers of the steps completed since that handler last ran
1558
- in the run, so a commit message names this round's work rather than repeating
1559
- an earlier one. The first page of each session shows the requirements saved by
1560
- `init` in full under "Task requirements", so the user's wording reaches the worker
1563
+ in the run, through any of its placements, so a commit message names this
1564
+ round's work rather than repeating an earlier one; a run that found nothing to
1565
+ commit does not count as one. The first page of each session shows the
1566
+ requirements saved by `init` in full under "Task requirements", so the user's
1567
+ wording reaches the worker
1561
1568
  without the manager adding commentary: the manager's first page that asks for
1562
1569
  work, the first page of every delegated worker assignment (each is a fresh
1563
1570
  session; `pages.worker_requirements` in `ww.json` set to `pointer` swaps it for
@@ -1699,7 +1706,9 @@ Manager: continue with `./ww next TASK-7 --role manager`
1699
1706
  When the block ends a child task's run (the task ID has a `/` and no run of it
1700
1707
  is open any more), the last line names the parent instead: "Manager: continue
1701
1708
  with the parent task: `./ww next TASK-7 --role manager`". A child that is only
1702
- partway through its run keeps its own command.
1709
+ partway through its run keeps its own command. When the assignment ended with
1710
+ an assessment, the last line instead asks the manager to choose its outcome
1711
+ and lists one `next --outcome <label>` command per outcome.
1703
1712
 
1704
1713
  It lists every agent item the worker performed in the assignment with its
1705
1714
  outcome (`completed`, `loop break`, `loop continue`, `held for verification`,
@@ -2389,8 +2398,13 @@ the missing file.
2389
2398
  froze it: its full text, globs, rule file, command, and the steps that carry
2390
2399
  it, and for a rule without a command what the store knows about its wording.
2391
2400
  `ww rules` lists the project's declared groups, with their filters and each
2392
- rule's ID and first sentence, and each step's own rules; `--json` gives the
2393
- same for a program. `ww rules prune` deletes store entries no declared rule
2401
+ rule's ID and first sentence, each step's own rules, and then every
2402
+ workflow's steps as a `steps` filter can name them: one line per step with
2403
+ its path, which reaches exactly that step where a leaf name would match it
2404
+ everywhere (loop bodies and per-item stages included), the groups reaching
2405
+ it, or that it is not an agent step and takes no rules. `--json` gives the
2406
+ same for a program, the steps as `targets` with `workflow`, `step`, `path`,
2407
+ `agent_owned` and `groups`. `ww rules prune` deletes store entries no declared rule
2394
2408
  needs any more, after listing them and asking; `--yes` skips the question.
2395
2409
  `ww rules revoke <check>` rejects a converted or proposed check and its rules
2396
2410
  the same way.
@@ -2399,8 +2413,8 @@ the same way.
2399
2413
 
2400
2414
  Rules are easiest to add in conversation. Invoked as `/ww-rule`, or when you
2401
2415
  ask an agent to add or change a rule, the `ww-rule` skill carries the
2402
- judgment: it reads the groups (`ww rules --json`) and the real workflow and
2403
- step names (`ww discover`), splits what you said into atomic obligations,
2416
+ judgment: it reads the groups and the real workflow and step names from
2417
+ `ww rules --json`, splits what you said into atomic obligations,
2404
2418
  tells a new rule from an amendment of an existing one or a change of where a
2405
2419
  group applies, gives a rule globs only when it names a kind of file and
2406
2420
  counts what each matches, places it in a group whose filters fit, and
@@ -2437,6 +2451,13 @@ Reaches these steps (an agent step's page shows it):
2437
2451
  sentence unless `--id` names it, with `--paths` globs, `--contains` strings
2438
2452
  (it reports how many files hold each) and a check from `--check-shell` or
2439
2453
  `--check-argv` and `--assert empty|eq:<value>`. It never overwrites a file.
2454
+ A group that lists its rule files one by one instead of a directory gets
2455
+ the file beside its last one, or in `--dir <path>`, and the file's path
2456
+ appended to its `rules` list: `ww-rules.yaml` is rewritten whole; `ww.yaml`
2457
+ or another file of yours gains that one line, checked to change nothing
2458
+ else, and the command refuses with the line to add by hand when the list is
2459
+ written in a way it cannot extend (flow style, an anchor). A group that
2460
+ names only other groups needs `--dir`.
2440
2461
  - `rules add --group <name> --dir <path>` adds a root group, with optional
2441
2462
  `--workflows` and `--steps` filters. ww never rewrites
2442
2463
  `ww.yaml`: the group goes into `ww-rules.yaml` next to
@@ -2448,7 +2469,9 @@ Reaches these steps (an agent step's page shows it):
2448
2469
  and, when the old wording had an approved check, that `rules promote` keeps
2449
2470
  it.
2450
2471
  - `rules move <id> <group>` moves the file, unchanged, into another group's
2451
- directory; its wording, and so what the store knows about it, stays.
2472
+ directory, or beside the last file of a group that lists files and into its
2473
+ `rules` list as `rules add` does; its wording, and so what the store knows
2474
+ about it, stays.
2452
2475
  - `rules filter <group> --workflows ... --steps ...` changes where a group of
2453
2476
  `ww-rules.yaml` applies (`--workflows '*'` writes `"*"`; `--all-workflows` and
2454
2477
  `--all-steps` remove a filter, which also means all); a group declared
@@ -2551,7 +2574,11 @@ review loop or one that is a step of its own, therefore requests it afresh
2551
2574
  (`awaiting_input`) instead of running silently with the message an earlier
2552
2575
  step supplied. A failed handler releases its values the same way when it is
2553
2576
  retried, keeping them on its record so the request can show what it was given
2554
- last time.
2577
+ last time. A handler with a precondition asks only when it needs the value:
2578
+ `git-commit` needs no message while the task workspace has nothing to commit,
2579
+ so such a value is optional on the step's completion (the page says so), and
2580
+ when it is left out ww asks for it only if the workspace changed; a clean one
2581
+ commits nothing without a question.
2555
2582
 
2556
2583
  When several automatic completion hooks request the same variable with the
2557
2584
  same description, ww asks for it once and gives that value to each hook.
@@ -2787,7 +2814,12 @@ holds the conversation, the manager in the `auto` runtime: it is a
2787
2814
  `role: manager` step, and the step's profile, agent, model, and reasoning
2788
2815
  are ignored. For a manual-testing workflow, put `interactive: true` on the
2789
2816
  per-item stage: the manager presents each test case, waits for the operator's
2790
- result, records it, ends the interaction, and completes the item.
2817
+ result, records it, ends the interaction, and completes the item. Running
2818
+ `next` again while such a step is open shows its page again, as it does for
2819
+ any open step in the `single` runtime; `complete` is not the way to leave an
2820
+ interactive step before the conversation ended. Only a worker's open item is
2821
+ refused, and the refusal names the ways out: `instruction` to see its page,
2822
+ `complete` to finish it, `next --reassign` to dispatch it again.
2791
2823
 
2792
2824
  A conversation is recorded once, when it ends. A session that ends in the
2793
2825
  middle of one has not recorded it, and ww does not recover it from the
@@ -3674,8 +3706,10 @@ An extension handler runs inside ww rather than as a shell command, so it can
3674
3706
  remember what it did. `ww/git`'s `git-commit` commits and then records the
3675
3707
  commit, and `commits` reads that back. It stages the task workspace first; when
3676
3708
  nothing is staged, for example after a review round that needed no fix, it
3677
- succeeds without a commit and without invoking project pre-commit hooks such as
3678
- Husky or lint-staged:
3709
+ succeeds without a commit, without a `commit_message`, and without invoking
3710
+ project pre-commit hooks such as Husky or lint-staged. Its precondition tells
3711
+ ww whether the workspace has anything to commit, so a clean one is committed
3712
+ without asking for a message at all:
3679
3713
 
3680
3714
  ```console
3681
3715
  ww-agentic-workflows extensions # what is installed, and what it provides
@@ -3989,6 +4023,16 @@ workspace, and no effects, and it does not replace the check the handler makes
3989
4023
  when it runs: `ww/git` declares one for `commit_message` and still checks the
3990
4024
  same rule in `git-commit`.
3991
4025
 
4026
+ Such a handler may also declare `needs_input`, a precondition: whether the
4027
+ handler needs its declared inputs this run; `False` lets ww run it without
4028
+ asking. ww consults it, with the handler's ordinary context, when the inputs
4029
+ are missing: the values of a handler with a precondition are optional on the
4030
+ agent's completion, and when they are left out ww asks for them only if the
4031
+ precondition says they are needed (a precondition that raises counts as
4032
+ needing them). The handler must then accept running without them: `ww/git`'s
4033
+ `git-commit` needs its message only while the task workspace has something
4034
+ to commit, and commits nothing without one otherwise.
4035
+
3992
4036
  ```python
3993
4037
  def _subject_error(values):
3994
4038
  if "\n" in values.get("commit_message", ""):
@@ -3996,11 +4040,16 @@ def _subject_error(values):
3996
4040
  return None
3997
4041
 
3998
4042
 
4043
+ def _needs_commit_message(context):
4044
+ return bool(_git(context, "status", "--porcelain").stdout)
4045
+
4046
+
3999
4047
  ExtensionHandler(
4000
4048
  "git-commit",
4001
4049
  _commit,
4002
4050
  provide=(ProvidedVariable("commit_message"),),
4003
4051
  validate=_subject_error,
4052
+ needs_input=_needs_commit_message,
4004
4053
  )
4005
4054
  ```
4006
4055
 
@@ -4177,7 +4226,9 @@ anything is saved, ww hands each value to the handler that will consume it:
4177
4226
  a handler that declares a validator, such as `ww/git`'s `git-commit` for
4178
4227
  `commit_message`, refuses a value it would fail on, and the completion fails
4179
4228
  with the handler's own message and records nothing, so the agent corrects the
4180
- value and completes again. `ww` then
4229
+ value and completes again. A value whose handler has a precondition is
4230
+ optional, and the screen says so: left out, it is requested later only when
4231
+ the handler needs it, as `git-commit` does only with something to commit. `ww` then
4181
4232
  executes those handlers itself before it activates the next worker item or
4182
4233
  returns control to the manager. If an automatic command fails, the worker stops
4183
4234
  and reports the failure to the manager. The response reports
@@ -1907,15 +1907,15 @@ or `schema_version` is an error.
1907
1907
  | `check <task> [--json]` | Runs the checks of the step in progress against its change set so far, exactly as `complete` would, and prints the failures in the fix page's shape, or `All checks pass`, plus the rules a verifier judges at completion. Records nothing: no attempt counts and no output is kept. Exits 1 when a check fails. Not written to the audit log. |
1908
1908
  | `dispute <task> --rule <id> --reason "<why>"` | Only while the step is in progress, and only for an ID a rejected completion of it failed: a rule, a `fix` hook, a derived check, or a judged rule. Stops the task with `operator_reason: check_disputed`; the page shows the check's text, command, and last output, and the worker's reason. |
1909
1909
  | `rule <task> <id> [--json]` | One rule or check of the task as its plan froze it: full text, globs, rule file (or the step's own list), command and assertion, `max_fixes`, the steps of the task that carry it, and for a rule without a command what the rule-automation store knows about its wording. |
1910
- | `rules [--json]` | The declared root groups with their filters, verifier hints, and rules (ID, summary, globs, whether it has a check, file, times disputed), then each step's own rules and the groups it names. |
1910
+ | `rules [--json]` | The declared root groups with their filters, verifier hints, and rules (ID, summary, globs, whether it has a check, file, times disputed), then each step's own rules and the groups it names, then the `targets`: every workflow's steps in tree order, `init` left out, each with its leaf `step` name, its logical `path` (the precise `steps` selector; loop bodies, nested steps, per-item and per-child stages take their parent's path as a prefix), whether it is `agent_owned` (a loop or nested sequence only holds its steps; an extension or ww-owned action takes no rules), and the `groups` reaching it now, by filter or by name, empty for a step that is not an agent's. |
1911
1911
  | `rules revoke <check> [--reason "<why>"] [--yes] [--json]` | Shows a `converted` or `proposed` store check, asks, and rejects it, recording the reason, together with the rules whose entries name it, which a verifier judges from then on. Never touches YAML, rule files, or the check's config files; the output says they stay for the operator. `--yes` skips the question; without it and without a terminal, it refuses. |
1912
1912
  | `rules convert <check> --covers <rule-id>... [--assert empty\|equals:<value>]... [--config <path>...] [--proven] [--dry-run] [--yes] [--json] (--check-shell "<sh>" \| --check-argv <arg>... \| --check-argv -- <arg>...)` | `--check-argv -- <arg>...` goes last and takes every argument after `--` as the argv, options starting with `-` included. Shows the check, its command in full, its config files, the rules it covers with each one's current store state, and every other change, asks, and records it in the store as `converted`, approved by the operator. A new name creates the check; an existing one has its command, config, proof and coverage replaced and any pending revision dropped. A covered rule another check covered moves to this one, and that check loses any pending revision and is removed once it covers nothing more. A rule this check covered before and no longer does returns to unscriptized (its entry is removed); a rejection or decline naming the check stays. `--config` paths are relative to the project and refused when absolute or with a `..` part. Refuses an unknown or repeated rule ID and a rule with a command of its own. `--dry-run` prints the preview and records nothing. `--json` gives the check, its rules, and the `unscriptized`, `moved`, `dropped_checks` and `dropped_revisions` changes. |
1913
1913
  | `rules decline <rule-id>... --reason "<why>" [--dry-run] [--yes] [--json]` | Shows the rules with each one's current store state and every other change, asks, and records them as `not_convertible` with the reason, removing them from any check's coverage (a check left covering nothing is removed): a verifier judges them, and `ww-scriptize-rules` leaves them out. `--json` gives the rules and the same changes as `rules convert`. |
1914
1914
  | `rules prune [--yes] [--json]` | Lists the store's orphans, rule entries whose wording no declared rule has and checks that cover only such rules and that no remaining rule names, asks, and deletes them. `--yes` skips the question. |
1915
- | `rules add <group> --text "<text>" [--paths <glob>...] [--contains <text>...] [--assert empty\|equals:<value>]... [--id <stem>] [--check-shell "<sh>" \| --check-argv <arg>... \| --check-argv -- <arg>...]` | `--check-argv -- <arg>...` goes last, as for `rules convert`. Creates `<stem>.md` in the group's first directory item; the stem is the first five words of the first sentence in kebab-case unless `--id` gives one. Refuses an existing file, a group without a directory, and a group an extension ships. Reports each glob's match count, and the number of project files containing each `--contains` string, and warns about one found nowhere. `--assert` is repeatable, one condition each. |
1915
+ | `rules add <group> --text "<text>" [--paths <glob>...] [--contains <text>...] [--assert empty\|equals:<value>]... [--id <stem>] [--check-shell "<sh>" \| --check-argv <arg>... \| --check-argv -- <arg>...]` | `--check-argv -- <arg>...` goes last, as for `rules convert`. Creates `<stem>.md` in `--dir <path>`, else in the group's first directory item, else beside the group's last file item; the stem is the first five words of the first sentence in kebab-case unless `--id` gives one. A file no listed directory holds is appended to the group's `rules` list, relative to the declaring file as its other entries are: in `ww-rules.yaml` by rewriting the file whole, in any other file as one added line, checked to change nothing else and refused, naming the line to add by hand, when the list cannot be extended that way (a flow list, an anchor, a tag). Refuses an existing file, a group that lists neither a directory nor a file when `--dir` is absent, and a group an extension ships. Reports each glob's match count, and the number of project files containing each `--contains` string, and warns about one found nowhere. `--assert` is repeatable, one condition each. |
1916
1916
  | `rules add --group <name> --dir <path> [--workflows <name>...] [--steps <name>...]` | `<path>` is relative to the project root and inside it. Adds the group `{rules: [<path>/], workflows, steps}` to `ww-rules.yaml` and, the first time, `ww-rules.yaml` to the repo file's `imports`; creates the directory. A filter option without a name writes `[]`; `'*'` alone writes `"*"`. |
1917
1917
  | `rules edit <id> [--text "<text>"] [--paths <glob>...] [--contains <text>...]` | Replaces a rule file's body, its `paths`, its `contains`, or any of them, keeping every other byte, and reports matches as `rules add` does; warns when the wording's hash changes and names the store entry and approved check that stop matching. Refuses a rule written in a step's `rules` list. |
1918
- | `rules move <id> <group>` | Moves the rule file unchanged into the group's first directory; the rule's ID becomes `<group>/<stem>`. |
1918
+ | `rules move <id> <group>` | Moves the rule file unchanged into the group's first directory, or beside the group's last file item and into its `rules` list as `rules add` lists a file; the rule's ID becomes `<group>/<stem>`. |
1919
1919
  | `rules filter <group> [--workflows <name>...] [--steps <name>...] [--all-workflows] [--all-steps]` | Sets a `ww-rules.yaml` group's filters; `--workflows '*'` / `--steps '*'` writes `"*"`, and `--all-*` removes one, which also admits all. Refuses a group declared in another file. |
1920
1920
  | `rules promote <check>` | Copies a `converted` store check without a pending revision into the `check` of every rule file whose wording it covers, then deletes the check and those rules' entries from the store. Refuses when a covered rule is written in a step's `rules` list or already has a check. |
1921
1921
 
@@ -1941,7 +1941,8 @@ absolute or has a `..` part, which only a hand-edited store holds, counts as
1941
1941
  absent.
1942
1942
 
1943
1943
  `ww-rules.yaml`, next to `ww.yaml`, holds only a `rules`
1944
- mapping written by `rules add --group` and `rules filter`; ww rewrites it
1944
+ mapping written by `rules add --group` and `rules filter`, and by `rules add`
1945
+ and `rules move` listing a file in one of its groups; ww rewrites it
1945
1946
  whole and it is composed like any import. While it exists without being
1946
1947
  imported, the write commands refuse to use it.
1947
1948
 
@@ -400,18 +400,31 @@ def _status_paths(output: str) -> tuple[str, ...]:
400
400
  return tuple(paths)
401
401
 
402
402
 
403
- def _validate_commit_workspace(context: ExtensionContext) -> str | None:
403
+ def _workspace_status(
404
+ context: ExtensionContext,
405
+ ) -> tuple[tuple[str, ...], str | None]:
406
+ """The paths Git reports changed in the task workspace, or why it cannot."""
404
407
  root, error = _workspace_root(context)
405
408
  if error:
406
- return error
409
+ return (), error
407
410
  assert root is not None
408
411
  status = _git(context, "status", "--porcelain=v1", "-z", "--untracked-files=all")
409
412
  if status.returncode:
410
- return _failed(status, "git status failed")
413
+ return (), _failed(status, "git status failed")
411
414
  paths = _status_paths(status.stdout)
412
415
  if status.stdout and not paths:
413
- return "Git reported malformed status output"
414
- return _paths_inside(root, paths)
416
+ return (), "Git reported malformed status output"
417
+ return paths, _paths_inside(root, paths)
418
+
419
+
420
+ def _validate_commit_workspace(context: ExtensionContext) -> str | None:
421
+ return _workspace_status(context)[1]
422
+
423
+
424
+ def _needs_commit_message(context: ExtensionContext) -> bool:
425
+ """Whether the workspace has anything to commit; Git trouble asks as usual."""
426
+ paths, error = _workspace_status(context)
427
+ return bool(paths) or error is not None
415
428
 
416
429
 
417
430
  def _validate_staged_paths(context: ExtensionContext) -> str | None:
@@ -799,12 +812,6 @@ def _commit_message_error(values: Mapping[str, str]) -> str | None:
799
812
 
800
813
  def _commit(context: ExtensionContext) -> ExtensionResult:
801
814
  settings = _task_settings(context)
802
- error = _commit_message_error(context.values)
803
- if error is not None:
804
- return ExtensionResult(False, error=error)
805
- subject = _subject(context, settings, context.values["commit_message"])
806
- if not subject:
807
- return ExtensionResult(False, error="commit_format rendered an empty message")
808
815
  # A retry may arrive after git committed but before ww recorded the
809
816
  # result. The operation trailer gives the checker a durable identity.
810
817
  if context.operation_id:
@@ -840,6 +847,14 @@ def _commit(context: ExtensionContext) -> ExtensionResult:
840
847
  False,
841
848
  error=_failed(has_staged_changes, "could not inspect staged changes"),
842
849
  )
850
+ # Only a commit needs its message: the precondition lets ww run this
851
+ # without asking for one when the workspace is clean.
852
+ error = _commit_message_error(context.values)
853
+ if error is not None:
854
+ return ExtensionResult(False, error=error)
855
+ subject = _subject(context, settings, context.values["commit_message"])
856
+ if not subject:
857
+ return ExtensionResult(False, error="commit_format rendered an empty message")
843
858
  commit_args = ["commit", "-m", subject]
844
859
  if context.operation_id:
845
860
  commit_args.extend(["-m", _operation_marker(context)])
@@ -1692,6 +1707,7 @@ EXTENSION = Extension(
1692
1707
  ),
1693
1708
  check=_check_commit,
1694
1709
  validate=_commit_message_error,
1710
+ needs_input=_needs_commit_message,
1695
1711
  ),
1696
1712
  ExtensionHandler(
1697
1713
  "merge-branch",
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ww-agentic-workflows"
7
- version = "1.0.0.dev8"
7
+ version = "1.0.0.dev9"
8
8
  description = "A local-first, resumable workflow CLI for people and AI agents."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -339,6 +339,13 @@ class _InputValidationContext:
339
339
  extensions: _HandlerLookup
340
340
 
341
341
 
342
+ @dataclass(frozen=True)
343
+ class _PreconditionContext:
344
+ """Handler access and the handler's own context; nothing is recorded."""
345
+
346
+ extensions: _ExtensionService
347
+
348
+
342
349
  class _PreflightExtensions:
343
350
  def __init__(self, executor: ActionExecutor) -> None:
344
351
  self._executor = executor
@@ -722,6 +729,23 @@ class ActionExecutor:
722
729
  _InputValidationContext(_HandlerLookup(self)),
723
730
  )
724
731
 
732
+ def needs_input(
733
+ self, state: ExecutionState, snapshot: PlanSnapshot, item: PlanItem
734
+ ) -> bool:
735
+ """Whether the current automatic item must get its inputs before it runs.
736
+
737
+ Asked while they are missing and before anything is recorded; an
738
+ action without a precondition always needs them.
739
+ """
740
+ implementation = actions.get(item.kind)
741
+ if not isinstance(implementation, AutomaticAction):
742
+ return True
743
+ dispatch = _Dispatch(self, state, snapshot, item)
744
+ return implementation.needs_input(
745
+ item.payload_as(implementation.planned_type),
746
+ _PreconditionContext(_ExtensionService(dispatch)),
747
+ )
748
+
725
749
  def check_recovery(
726
750
  self, state: ExecutionState, plan: WorkflowPlan, item: PlanItem
727
751
  ) -> RecoveryCheckResult | None:
@@ -529,6 +529,13 @@ class InputValidationContext(Protocol):
529
529
  def extensions(self) -> ExtensionHandlerService: ...
530
530
 
531
531
 
532
+ class PreconditionContext(Protocol):
533
+ """What an action may consult to tell whether it needs its inputs."""
534
+
535
+ @property
536
+ def extensions(self) -> ExtensionService: ...
537
+
538
+
532
539
  class ExecutionContext(Protocol):
533
540
  """Read-only invocation information plus deliberately narrow effects."""
534
541
 
@@ -634,6 +641,15 @@ class AutomaticAction(Action[DefinitionT, PlannedT]):
634
641
  del planned, values, context
635
642
  return None
636
643
 
644
+ def needs_input(self, planned: PlannedT, context: PreconditionContext) -> bool:
645
+ """Whether the action needs its declared inputs this run.
646
+
647
+ Core asks while they are missing and nothing is recorded; ``False``
648
+ runs the action without requesting them.
649
+ """
650
+ del planned, context
651
+ return True
652
+
637
653
  def check_recovery(
638
654
  self, planned: PlannedT, context: RecoveryContext
639
655
  ) -> RecoveryCheckResult | None:
@@ -31,6 +31,7 @@ from .contracts import (
31
31
  InputValidationContext,
32
32
  InstructionContent,
33
33
  InstructionContext,
34
+ PreconditionContext,
34
35
  PreflightContext,
35
36
  RecoveryCheckResult,
36
37
  RecoveryContext,
@@ -70,6 +71,16 @@ class ExtensionAction(AutomaticAction[Extension, Extension]):
70
71
  return "extension validator returned an invalid result"
71
72
  return verdict.strip()
72
73
 
74
+ def needs_input(self, planned: Extension, context: PreconditionContext) -> bool:
75
+ """Ask the handler's precondition; one that fails needs the inputs."""
76
+ handler = context.extensions.handler(planned.reference)
77
+ if handler.needs_input is None:
78
+ return True
79
+ try:
80
+ return handler.needs_input(context.extensions.context(planned)) is not False
81
+ except Exception: # noqa: BLE001 - a failing precondition asks as usual
82
+ return True
83
+
73
84
  def execute(self, planned: Extension, context: ExecutionContext) -> ActionResult:
74
85
  handler = context.extensions.handler(planned.reference)
75
86
  try:
@@ -12,11 +12,13 @@ optional frontmatter scopes it to files (`paths`) or gives it a command
12
12
  group, `ww-rules.yaml`, `ww.yaml` or
13
13
  `ww-rule-automation.json` yourself.
14
14
 
15
- 1. **Learn what exists.** Run `./ww rules --json` (groups, their filters and
16
- directories' rules with IDs, summaries, globs, and the project's
17
- `check_guidance` setting) and `./ww discover` (the
18
- workflows and their steps). Use only workflow and step names they show;
19
- never invent one.
15
+ 1. **Learn what exists.** Run `./ww rules --json`: groups, their filters and
16
+ directories' rules with IDs, summaries, globs, the project's
17
+ `check_guidance` setting, and `targets`, every workflow's steps with the
18
+ `path` a `steps` filter names to reach exactly that step (loop bodies and
19
+ per-item stages included) and whether the step is `agent_owned`; only
20
+ such a step takes rules. Use only workflow names and step names or paths
21
+ it shows; never invent one.
20
22
  2. **Split into atomic obligations.** One rule is one thing an agent can do
21
23
  or fail to do. Break the input into such obligations and merge the ones
22
24
  that say the same thing twice. For each, search the existing rules by ID
@@ -29,9 +31,12 @@ group, `ww-rules.yaml`, `ww.yaml` or
29
31
  or `--dry-run`, which reports the count). A glob that matches nothing is
30
32
  dropped, and you say so.
31
33
  4. **Decide placement from the real filters.** An existing group whose
32
- `workflows`/`steps` fit the rule; else propose a new group with its
33
- directory and filters; else, for a one-off, the step's own `rules:` list,
34
- which the operator edits in the YAML by hand (say exactly what to add).
34
+ `workflows`/`steps` fit the rule, whether it lists a directory or its
35
+ files one by one (`rules add` then writes the file beside the group's
36
+ last one, or in `--dir`, and lists it; a group naming only other groups
37
+ needs `--dir`); else propose a new group with its directory and filters;
38
+ else, for a one-off, the step's own `rules:` list, which the operator
39
+ edits in the YAML by hand (say exactly what to add).
35
40
  5. **Rewrite each rule** as one imperative sentence with concrete nouns and
36
41
  no hedging; the rationale and an example go in the body below it, since
37
42
  the step page shows only the first sentence. Propose a `check` only when
@@ -609,12 +609,8 @@ def _rule_write(context: _Context, configuration: WorkflowConfiguration) -> _Out
609
609
  raise StateError(
610
610
  "rules add takes GROUP with --text, or --group NAME with --dir"
611
611
  )
612
- if (
613
- args.directory is not None
614
- or args.workflows is not None
615
- or (args.steps is not None)
616
- ):
617
- raise StateError("--dir, --workflows and --steps go with --group")
612
+ if args.workflows is not None or args.steps is not None:
613
+ raise StateError("--workflows and --steps go with --group")
618
614
  write = rule_writes.plan_add_rule(
619
615
  project,
620
616
  args.group_name,
@@ -627,6 +623,7 @@ def _rule_write(context: _Context, configuration: WorkflowConfiguration) -> _Out
627
623
  tuple(args.assertion) if args.assertion else None,
628
624
  ),
629
625
  stem=args.stem,
626
+ directory=args.directory,
630
627
  )
631
628
  elif action == "edit":
632
629
  write = rule_writes.plan_edit(