devflow-toolkit 0.3.7__tar.gz → 0.3.8__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 (77) hide show
  1. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/CHANGELOG.md +15 -0
  2. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/PKG-INFO +13 -11
  3. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/README.md +12 -10
  4. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/pyproject.toml +1 -1
  5. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/claude_code.py +12 -11
  6. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/cli.py +1 -1
  7. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/approve.py +1 -1
  8. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_harness_adapters.py +9 -4
  9. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/.gitignore +0 -0
  10. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/LICENSE +0 -0
  11. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/__init__.py +0 -0
  12. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/__init__.py +0 -0
  13. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/agents.py +0 -0
  14. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/base.py +0 -0
  15. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/codex.py +0 -0
  16. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/detector.py +0 -0
  17. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/instructions.py +0 -0
  18. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/kiro.py +0 -0
  19. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/opencode.py +0 -0
  20. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/adapters/registry.py +0 -0
  21. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/__init__.py +0 -0
  22. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/doctor.py +0 -0
  23. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/harness.py +0 -0
  24. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/init.py +0 -0
  25. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/recover.py +0 -0
  26. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/spec.py +0 -0
  27. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/commands/status.py +0 -0
  28. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/__init__.py +0 -0
  29. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/architecture.py +0 -0
  30. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/artifacts/__init__.py +0 -0
  31. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/artifacts/errors.py +0 -0
  32. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/artifacts/models.py +0 -0
  33. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/artifacts/store.py +0 -0
  34. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/clock.py +0 -0
  35. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/config.py +0 -0
  36. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/constitution.py +0 -0
  37. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/discovery.py +0 -0
  38. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/ports.py +0 -0
  39. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/profile_manager.py +0 -0
  40. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/project.py +0 -0
  41. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/recovery.py +0 -0
  42. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/spec_workflow.py +0 -0
  43. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/specification.py +0 -0
  44. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/__init__.py +0 -0
  45. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/errors.py +0 -0
  46. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/events.py +0 -0
  47. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/locator.py +0 -0
  48. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/lock.py +0 -0
  49. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/manager.py +0 -0
  50. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/models.py +0 -0
  51. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/core/state/transitions.py +0 -0
  52. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/models/__init__.py +0 -0
  53. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/models/profile.py +0 -0
  54. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/models/project.py +0 -0
  55. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
  56. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
  57. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/base/constitution/architecture.md +0 -0
  58. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
  59. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/base/constitution/constitution.md +0 -0
  60. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/base/profile.yaml +0 -0
  61. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
  62. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/django-backend/profile.yaml +0 -0
  63. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
  64. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
  65. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/prompts/__init__.py +0 -0
  66. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/prompts/discovery.md +0 -0
  67. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/prompts/spec.greenfield.md +0 -0
  68. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/src/devflow/prompts/spec.md +0 -0
  69. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_cli.py +0 -0
  70. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_discovery.py +0 -0
  71. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_event_log.py +0 -0
  72. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_greenfield.py +0 -0
  73. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_hardening.py +0 -0
  74. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_recovery.py +0 -0
  75. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_spec_workflow.py +0 -0
  76. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_state.py +0 -0
  77. {devflow_toolkit-0.3.7 → devflow_toolkit-0.3.8}/tests/test_state_replay.py +0 -0
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to DevFlow Toolkit are documented in this file.
4
4
 
5
+ ## 0.3.8 - 2026-11-04
6
+
7
+ ### Fixed
8
+
9
+ - Interactive Claude Code runs now use Manual mode
10
+ (`--permission-mode manual`) instead of `dontAsk`. `AskUserQuestion`
11
+ is a user-interaction tool that no permission mode auto-approves, so
12
+ the allow-list introduced in `0.3.7` could not unblock the Discovery
13
+ dialog. Reads and writes under `.devflow/specs/` remain pre-approved;
14
+ shell, web, task and notebook tools remain denied. Non-interactive
15
+ runs keep the locked `dontAsk` mode.
16
+ - Claude Code now allows `Write` under `.devflow/specs/` in addition to
17
+ `Edit`.
18
+ - Package version is `0.3.8`.
19
+
5
20
  ## 0.3.7 - 2026-11-04
6
21
 
7
22
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Summary: Specification workflow toolkit for AI-assisted software changes
5
5
  Author: DevFlow contributors
6
6
  License-Expression: MIT
@@ -42,7 +42,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
42
42
  selected agent harness is only the execution backend that drafts the
43
43
  specification.
44
44
 
45
- This is the `0.3.7` MVP. It implements the **discovery and
45
+ This is the `0.3.8` MVP. It implements the **discovery and
46
46
  specification stages only**. It supports two specification contexts:
47
47
  **Existing Project** (the default) and **Greenfield**. It is not a
48
48
  complete SDD platform and does not include planning, implementation or
@@ -118,7 +118,7 @@ pip install devflow-toolkit
118
118
  To install a specific built artifact instead:
119
119
 
120
120
  ```bash
121
- pip install devflow_toolkit-0.3.7-py3-none-any.whl
121
+ pip install devflow_toolkit-0.3.8-py3-none-any.whl
122
122
  ```
123
123
 
124
124
  Verify the installation:
@@ -291,7 +291,7 @@ as an architectural constraint when it is present.
291
291
 
292
292
  ### Harnesses
293
293
 
294
- | Harness | Status in 0.3.7 |
294
+ | Harness | Status in 0.3.8 |
295
295
  | --- | --- |
296
296
  | OpenCode | Verified end-to-end in non-interactive mode |
297
297
  | Codex | Integration files are generated, but not verified for this release |
@@ -340,10 +340,12 @@ not treated as the only permission boundary.
340
340
  When a harness cannot enforce a restriction technically, DevFlow prints
341
341
  a warning instead of claiming that the restriction is guaranteed.
342
342
 
343
- For Claude Code, interactive runs explicitly allow the
344
- `AskUserQuestion` tool even though the adapter uses `dontAsk` mode, so
345
- Discovery can ask the user directly. Non-interactive runs do not allow
346
- the tool.
343
+ For Claude Code, interactive runs use Manual mode
344
+ (`--permission-mode manual`) so Discovery can open the
345
+ `AskUserQuestion` dialog. Reads and writes under `.devflow/specs/` are
346
+ pre-approved, while shell, web and task tools remain denied.
347
+ Non-interactive runs keep the locked `dontAsk` mode and do not allow the
348
+ question tool.
347
349
 
348
350
  ## Discovery
349
351
 
@@ -454,7 +456,7 @@ specification that still lists open questions.
454
456
  8. If artifacts exist without workflow state, diagnose with
455
457
  `devflow doctor <id>` and repair with `devflow recover <id>`.
456
458
 
457
- Available commands in `0.3.7`:
459
+ Available commands in `0.3.8`:
458
460
 
459
461
  | Command | Status |
460
462
  | --- | --- |
@@ -642,7 +644,7 @@ devflow approve 001 --stage spec
642
644
  ```
643
645
 
644
646
  Approval is explicit and binds the decision to the current artifact
645
- digests. For a `0.3.7` change it binds `spec.md`, `discovery.yaml` and,
647
+ digests. For a `0.3.8` change it binds `spec.md`, `discovery.yaml` and,
646
648
  when a manifest applies, the architecture manifest digest. Repeating the
647
649
  same approval is a no-op. If an artifact changes after validation,
648
650
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -653,7 +655,7 @@ and names the pending questions and assumptions. Approval also rejects a
653
655
  specification whose section 7 still lists open questions. Legacy `0.2.0`
654
656
  changes without `discovery.yaml` remain approvable with a warning.
655
657
 
656
- Only the `spec` stage is available in `0.3.7`. `--stage plan` and
658
+ Only the `spec` stage is available in `0.3.8`. `--stage plan` and
657
659
  `--stage review` are rejected. There are no `plan`, `implement` or
658
660
  `review` commands in this release.
659
661
 
@@ -10,7 +10,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
10
10
  selected agent harness is only the execution backend that drafts the
11
11
  specification.
12
12
 
13
- This is the `0.3.7` MVP. It implements the **discovery and
13
+ This is the `0.3.8` MVP. It implements the **discovery and
14
14
  specification stages only**. It supports two specification contexts:
15
15
  **Existing Project** (the default) and **Greenfield**. It is not a
16
16
  complete SDD platform and does not include planning, implementation or
@@ -86,7 +86,7 @@ pip install devflow-toolkit
86
86
  To install a specific built artifact instead:
87
87
 
88
88
  ```bash
89
- pip install devflow_toolkit-0.3.7-py3-none-any.whl
89
+ pip install devflow_toolkit-0.3.8-py3-none-any.whl
90
90
  ```
91
91
 
92
92
  Verify the installation:
@@ -259,7 +259,7 @@ as an architectural constraint when it is present.
259
259
 
260
260
  ### Harnesses
261
261
 
262
- | Harness | Status in 0.3.7 |
262
+ | Harness | Status in 0.3.8 |
263
263
  | --- | --- |
264
264
  | OpenCode | Verified end-to-end in non-interactive mode |
265
265
  | Codex | Integration files are generated, but not verified for this release |
@@ -308,10 +308,12 @@ not treated as the only permission boundary.
308
308
  When a harness cannot enforce a restriction technically, DevFlow prints
309
309
  a warning instead of claiming that the restriction is guaranteed.
310
310
 
311
- For Claude Code, interactive runs explicitly allow the
312
- `AskUserQuestion` tool even though the adapter uses `dontAsk` mode, so
313
- Discovery can ask the user directly. Non-interactive runs do not allow
314
- the tool.
311
+ For Claude Code, interactive runs use Manual mode
312
+ (`--permission-mode manual`) so Discovery can open the
313
+ `AskUserQuestion` dialog. Reads and writes under `.devflow/specs/` are
314
+ pre-approved, while shell, web and task tools remain denied.
315
+ Non-interactive runs keep the locked `dontAsk` mode and do not allow the
316
+ question tool.
315
317
 
316
318
  ## Discovery
317
319
 
@@ -422,7 +424,7 @@ specification that still lists open questions.
422
424
  8. If artifacts exist without workflow state, diagnose with
423
425
  `devflow doctor <id>` and repair with `devflow recover <id>`.
424
426
 
425
- Available commands in `0.3.7`:
427
+ Available commands in `0.3.8`:
426
428
 
427
429
  | Command | Status |
428
430
  | --- | --- |
@@ -610,7 +612,7 @@ devflow approve 001 --stage spec
610
612
  ```
611
613
 
612
614
  Approval is explicit and binds the decision to the current artifact
613
- digests. For a `0.3.7` change it binds `spec.md`, `discovery.yaml` and,
615
+ digests. For a `0.3.8` change it binds `spec.md`, `discovery.yaml` and,
614
616
  when a manifest applies, the architecture manifest digest. Repeating the
615
617
  same approval is a no-op. If an artifact changes after validation,
616
618
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -621,7 +623,7 @@ and names the pending questions and assumptions. Approval also rejects a
621
623
  specification whose section 7 still lists open questions. Legacy `0.2.0`
622
624
  changes without `discovery.yaml` remain approvable with a warning.
623
625
 
624
- Only the `spec` stage is available in `0.3.7`. `--stage plan` and
626
+ Only the `spec` stage is available in `0.3.8`. `--stage plan` and
625
627
  `--stage review` are rejected. There are no `plan`, `implement` or
626
628
  `review` commands in this release.
627
629
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "devflow-toolkit"
7
- version = "0.3.7"
7
+ version = "0.3.8"
8
8
  description = "Specification workflow toolkit for AI-assisted software changes"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -56,14 +56,15 @@ class ClaudeCodeAdapter(HarnessAdapter):
56
56
  separators=(",", ":"),
57
57
  )
58
58
  root = context.root
59
+ permission_mode = (
60
+ "manual" if context.mode == "interactive" else "dontAsk"
61
+ )
59
62
 
60
63
  if context.mode == "interactive":
61
64
  argv = (
62
65
  self.executable,
63
66
  "--permission-mode",
64
- "dontAsk",
65
- "--allowedTools",
66
- "AskUserQuestion",
67
+ permission_mode,
67
68
  "--settings",
68
69
  settings,
69
70
  context.prompt,
@@ -79,7 +80,7 @@ class ClaudeCodeAdapter(HarnessAdapter):
79
80
  "--output-format",
80
81
  "text",
81
82
  "--permission-mode",
82
- "dontAsk",
83
+ permission_mode,
83
84
  "--tools",
84
85
  ",".join(tools),
85
86
  "--settings",
@@ -118,15 +119,15 @@ class ClaudeCodeAdapter(HarnessAdapter):
118
119
  if context.permissions.allow_project_read:
119
120
  allow.extend(["Read", "Grep", "Glob"])
120
121
 
121
- if context.mode == "interactive":
122
- # Discovery needs to ask the user directly. ``dontAsk`` denies
123
- # every prompt unless the tool is explicitly allowed.
124
- allow.append("AskUserQuestion")
125
-
126
122
  if context.permissions.allow_source_code_changes:
127
- allow.extend(["Edit", "Bash"])
123
+ allow.extend(["Edit", "Write", "Bash"])
128
124
  elif context.permissions.allow_spec_write:
129
- allow.append("Edit(.devflow/specs/**)")
125
+ allow.extend(
126
+ [
127
+ "Edit(.devflow/specs/**)",
128
+ "Write(.devflow/specs/**)",
129
+ ]
130
+ )
130
131
 
131
132
  deny.extend(["WebFetch", "WebSearch", "Task"])
132
133
  if not context.permissions.allow_source_code_changes:
@@ -35,7 +35,7 @@ def version() -> None:
35
35
  try:
36
36
  current_version = package_version("devflow-toolkit")
37
37
  except PackageNotFoundError:
38
- current_version = "0.3.7"
38
+ current_version = "0.3.8"
39
39
  console.print(f"DevFlow v{current_version}")
40
40
 
41
41
 
@@ -57,7 +57,7 @@ def _approve(spec_id: str, path: Path, stage: str) -> None:
57
57
  normalized = stage.strip().lower()
58
58
  if normalized != "spec":
59
59
  msg = (
60
- f"Stage '{stage}' is not available in DevFlow 0.3.7. "
60
+ f"Stage '{stage}' is not available in DevFlow 0.3.8. "
61
61
  "Only the 'spec' stage can be approved."
62
62
  )
63
63
  raise UnsupportedStageError(msg)
@@ -449,17 +449,20 @@ def test_codex_non_interactive_is_read_only(
449
449
  assert invocation.interactive is False
450
450
 
451
451
 
452
- def test_claude_interactive_allows_questions(
452
+ def test_claude_interactive_uses_manual_mode_for_questions(
453
453
  tmp_path: Path,
454
454
  ) -> None:
455
455
  context = _run_context(tmp_path, mode="interactive")
456
456
  invocation = ClaudeCodeAdapter().build_run(context)
457
457
  argv = invocation.argv
458
458
 
459
- assert argv[argv.index("--permission-mode") + 1] == "dontAsk"
460
- assert argv[argv.index("--allowedTools") + 1] == "AskUserQuestion"
459
+ assert argv[argv.index("--permission-mode") + 1] == "manual"
460
+ assert "--allowedTools" not in argv
461
461
  settings = json.loads(argv[argv.index("--settings") + 1])
462
- assert "AskUserQuestion" in settings["permissions"]["allow"]
462
+ allow = settings["permissions"]["allow"]
463
+ assert "AskUserQuestion" not in allow
464
+ assert "Edit(.devflow/specs/**)" in allow
465
+ assert "Write(.devflow/specs/**)" in allow
463
466
 
464
467
 
465
468
  def test_claude_non_interactive_restricts_tools(
@@ -470,8 +473,10 @@ def test_claude_non_interactive_restricts_tools(
470
473
  argv = invocation.argv
471
474
 
472
475
  assert argv[argv.index("--tools") + 1] == "Read,Grep,Glob"
476
+ assert argv[argv.index("--permission-mode") + 1] == "dontAsk"
473
477
  settings = json.loads(argv[argv.index("--settings") + 1])
474
478
  assert "Edit(.devflow/specs/**)" in settings["permissions"]["allow"]
479
+ assert "Write(.devflow/specs/**)" in settings["permissions"]["allow"]
475
480
  assert "AskUserQuestion" not in settings["permissions"]["allow"]
476
481
  assert "Bash" in settings["permissions"]["deny"]
477
482
 
File without changes