devflow-toolkit 0.3.11__tar.gz → 0.3.13__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.
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/CHANGELOG.md +24 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/PKG-INFO +16 -8
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/README.md +15 -7
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/pyproject.toml +1 -1
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/codex.py +4 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/cli.py +1 -1
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/approve.py +1 -1
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/prompts/__init__.py +15 -8
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/prompts/discovery.md +11 -2
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_harness_adapters.py +16 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_spec_workflow.py +4 -1
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/.gitignore +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/LICENSE +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/spec.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/commands/status.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/config.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/discovery.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/spec_workflow.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/prompts/spec.greenfield.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_discovery.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_state.py +0 -0
- {devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.3.13 - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Interactive Codex runs now enable Codex's structured
|
|
10
|
+
`request_user_input` tool, so Discovery questions can be answered by
|
|
11
|
+
selecting an option instead of reading a numbered list and typing a
|
|
12
|
+
reply. The feature warning is suppressed for the DevFlow invocation.
|
|
13
|
+
- The Discovery prompt now explicitly asks the harness to use a
|
|
14
|
+
structured multiple-choice tool when available and to fall back to
|
|
15
|
+
numbered options otherwise.
|
|
16
|
+
- Package version is `0.3.13`.
|
|
17
|
+
|
|
18
|
+
## 0.3.12 - 2026-11-05
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- When interactive Discovery runs in a non-English language, the agent
|
|
23
|
+
now translates existing question, reason and option text in
|
|
24
|
+
`discovery.yaml` into that language in place. The conversation and the
|
|
25
|
+
persisted record use the same language instead of asking in Spanish
|
|
26
|
+
while leaving English question text in the file.
|
|
27
|
+
- Package version is `0.3.12`.
|
|
28
|
+
|
|
5
29
|
## 0.3.11 - 2026-11-05
|
|
6
30
|
|
|
7
31
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.13
|
|
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.
|
|
45
|
+
This is the `0.3.13` 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.
|
|
121
|
+
pip install devflow_toolkit-0.3.13-py3-none-any.whl
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
Verify the installation:
|
|
@@ -297,7 +297,7 @@ as an architectural constraint when it is present.
|
|
|
297
297
|
|
|
298
298
|
### Harnesses
|
|
299
299
|
|
|
300
|
-
| Harness | Status in 0.3.
|
|
300
|
+
| Harness | Status in 0.3.13 |
|
|
301
301
|
| --- | --- |
|
|
302
302
|
| OpenCode | Verified end-to-end in non-interactive mode |
|
|
303
303
|
| Codex | Integration files are generated, but not verified for this release |
|
|
@@ -309,6 +309,13 @@ Do not treat an unverified adapter as a compatibility guarantee. The
|
|
|
309
309
|
generated files and command lines for Codex, Claude Code and Kiro may
|
|
310
310
|
change as those integrations are tested.
|
|
311
311
|
|
|
312
|
+
For interactive Codex runs, DevFlow enables Codex's experimental
|
|
313
|
+
`request_user_input` tool so Discovery questions can be answered by
|
|
314
|
+
selecting an option instead of typing a free-form reply. Claude Code uses
|
|
315
|
+
its native `AskUserQuestion` dialog. Both adapters fall back to numbered
|
|
316
|
+
text options if the installed harness does not expose a structured
|
|
317
|
+
question tool.
|
|
318
|
+
|
|
312
319
|
For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
|
|
313
320
|
agents under `.opencode/agents/`. The project-level `opencode.json` can
|
|
314
321
|
also select the model used by the agent, for example:
|
|
@@ -468,7 +475,7 @@ specification that still lists open questions.
|
|
|
468
475
|
8. If artifacts exist without workflow state, diagnose with
|
|
469
476
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
470
477
|
|
|
471
|
-
Available commands in `0.3.
|
|
478
|
+
Available commands in `0.3.13`:
|
|
472
479
|
|
|
473
480
|
| Command | Status |
|
|
474
481
|
| --- | --- |
|
|
@@ -581,7 +588,8 @@ Discovery checkpoint.
|
|
|
581
588
|
without changing `.devflow/config.yaml`. Interactive agent Discovery
|
|
582
589
|
asks existing questions and writes new questions in that language, even
|
|
583
590
|
when the stored question text was generated in English by the
|
|
584
|
-
deterministic planner
|
|
591
|
+
deterministic planner; the stored question, reason and option text is
|
|
592
|
+
translated in place. Specifications written by an agent use the same
|
|
585
593
|
language. The deterministic `--no-agent` planner still writes its own
|
|
586
594
|
stored question text in English.
|
|
587
595
|
|
|
@@ -659,7 +667,7 @@ devflow approve 001 --stage spec
|
|
|
659
667
|
```
|
|
660
668
|
|
|
661
669
|
Approval is explicit and binds the decision to the current artifact
|
|
662
|
-
digests. For a `0.3.
|
|
670
|
+
digests. For a `0.3.13` change it binds `spec.md`, `discovery.yaml` and,
|
|
663
671
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
664
672
|
same approval is a no-op. If an artifact changes after validation,
|
|
665
673
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -670,7 +678,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
670
678
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
671
679
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
672
680
|
|
|
673
|
-
Only the `spec` stage is available in `0.3.
|
|
681
|
+
Only the `spec` stage is available in `0.3.13`. `--stage plan` and
|
|
674
682
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
675
683
|
`review` commands in this release.
|
|
676
684
|
|
|
@@ -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.
|
|
13
|
+
This is the `0.3.13` 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.
|
|
89
|
+
pip install devflow_toolkit-0.3.13-py3-none-any.whl
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
Verify the installation:
|
|
@@ -265,7 +265,7 @@ as an architectural constraint when it is present.
|
|
|
265
265
|
|
|
266
266
|
### Harnesses
|
|
267
267
|
|
|
268
|
-
| Harness | Status in 0.3.
|
|
268
|
+
| Harness | Status in 0.3.13 |
|
|
269
269
|
| --- | --- |
|
|
270
270
|
| OpenCode | Verified end-to-end in non-interactive mode |
|
|
271
271
|
| Codex | Integration files are generated, but not verified for this release |
|
|
@@ -277,6 +277,13 @@ Do not treat an unverified adapter as a compatibility guarantee. The
|
|
|
277
277
|
generated files and command lines for Codex, Claude Code and Kiro may
|
|
278
278
|
change as those integrations are tested.
|
|
279
279
|
|
|
280
|
+
For interactive Codex runs, DevFlow enables Codex's experimental
|
|
281
|
+
`request_user_input` tool so Discovery questions can be answered by
|
|
282
|
+
selecting an option instead of typing a free-form reply. Claude Code uses
|
|
283
|
+
its native `AskUserQuestion` dialog. Both adapters fall back to numbered
|
|
284
|
+
text options if the installed harness does not expose a structured
|
|
285
|
+
question tool.
|
|
286
|
+
|
|
280
287
|
For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
|
|
281
288
|
agents under `.opencode/agents/`. The project-level `opencode.json` can
|
|
282
289
|
also select the model used by the agent, for example:
|
|
@@ -436,7 +443,7 @@ specification that still lists open questions.
|
|
|
436
443
|
8. If artifacts exist without workflow state, diagnose with
|
|
437
444
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
438
445
|
|
|
439
|
-
Available commands in `0.3.
|
|
446
|
+
Available commands in `0.3.13`:
|
|
440
447
|
|
|
441
448
|
| Command | Status |
|
|
442
449
|
| --- | --- |
|
|
@@ -549,7 +556,8 @@ Discovery checkpoint.
|
|
|
549
556
|
without changing `.devflow/config.yaml`. Interactive agent Discovery
|
|
550
557
|
asks existing questions and writes new questions in that language, even
|
|
551
558
|
when the stored question text was generated in English by the
|
|
552
|
-
deterministic planner
|
|
559
|
+
deterministic planner; the stored question, reason and option text is
|
|
560
|
+
translated in place. Specifications written by an agent use the same
|
|
553
561
|
language. The deterministic `--no-agent` planner still writes its own
|
|
554
562
|
stored question text in English.
|
|
555
563
|
|
|
@@ -627,7 +635,7 @@ devflow approve 001 --stage spec
|
|
|
627
635
|
```
|
|
628
636
|
|
|
629
637
|
Approval is explicit and binds the decision to the current artifact
|
|
630
|
-
digests. For a `0.3.
|
|
638
|
+
digests. For a `0.3.13` change it binds `spec.md`, `discovery.yaml` and,
|
|
631
639
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
632
640
|
same approval is a no-op. If an artifact changes after validation,
|
|
633
641
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -638,7 +646,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
638
646
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
639
647
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
640
648
|
|
|
641
|
-
Only the `spec` stage is available in `0.3.
|
|
649
|
+
Only the `spec` stage is available in `0.3.13`. `--stage plan` and
|
|
642
650
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
643
651
|
`review` commands in this release.
|
|
644
652
|
|
|
@@ -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.
|
|
60
|
+
f"Stage '{stage}' is not available in DevFlow 0.3.13. "
|
|
61
61
|
"Only the 'spec' stage can be approved."
|
|
62
62
|
)
|
|
63
63
|
raise UnsupportedStageError(msg)
|
|
@@ -145,15 +145,17 @@ def _discovery_language_note(language: str) -> str:
|
|
|
145
145
|
"""Return the prompt instruction that selects the conversation language."""
|
|
146
146
|
target = (language or "en").strip() or "en"
|
|
147
147
|
return (
|
|
148
|
-
f"Speak to the user and write every
|
|
148
|
+
f"Speak to the user and write every discovery question, reason, "
|
|
149
149
|
f"option, assumption and report in the language identified as "
|
|
150
150
|
f"`{target}`.\n\n"
|
|
151
151
|
"The existing discovery record may contain question text in another "
|
|
152
|
-
"language.
|
|
153
|
-
"
|
|
154
|
-
"the
|
|
155
|
-
"
|
|
156
|
-
"and
|
|
152
|
+
"language. Translate each existing question, reason and option "
|
|
153
|
+
"faithfully into the target language and write the translations into "
|
|
154
|
+
"the discovery record in place. Do not add, remove or re-scope "
|
|
155
|
+
"questions while translating. Preserve every id, category, blocking "
|
|
156
|
+
"flag and option count, and keep paths, field names, category "
|
|
157
|
+
"identifiers, `Qn`/`An` identifiers, commands and digests exactly as "
|
|
158
|
+
"shown."
|
|
157
159
|
)
|
|
158
160
|
|
|
159
161
|
|
|
@@ -178,12 +180,17 @@ def _discovery_mode_instructions(
|
|
|
178
180
|
return (
|
|
179
181
|
"You are running interactively. Read the discovery record and ask "
|
|
180
182
|
"the user about every pending question and every proposed "
|
|
181
|
-
"assumption, whether or not a question is marked blocking.
|
|
183
|
+
"assumption, whether or not a question is marked blocking. Use the "
|
|
184
|
+
"harness's structured question or multiple-choice tool when "
|
|
185
|
+
"available so the user can select an option instead of typing prose; "
|
|
186
|
+
"otherwise present numbered options. If "
|
|
182
187
|
"reading the request or context reveals a missing decision, append "
|
|
183
188
|
"a new question with the next `Qn` identifier before continuing. "
|
|
184
189
|
"Record only explicit answers. Update the same "
|
|
185
190
|
f"`{discovery_path}` file in place, preserving every existing id, "
|
|
186
|
-
"category, blocking flag and
|
|
191
|
+
"category, blocking flag, option count and the meaning of every "
|
|
192
|
+
"question. When the run language differs, translate question, reason "
|
|
193
|
+
"and option text faithfully into it. Set an answered "
|
|
187
194
|
"question to `status: answered` with `answer`, `answered_by: user` "
|
|
188
195
|
"and an ISO-8601 `answered_at` timestamp. Set an accepted "
|
|
189
196
|
"assumption to `status: accepted` with `accepted_by: user` and "
|
|
@@ -85,8 +85,11 @@ compatibility and out-of-scope items.
|
|
|
85
85
|
pending and explain what decision is needed.
|
|
86
86
|
- Do not accept assumptions on the user's behalf. Acceptance is an
|
|
87
87
|
explicit human action.
|
|
88
|
-
- Preserve every existing id,
|
|
89
|
-
|
|
88
|
+
- Preserve every existing id, category, blocking flag, option count and
|
|
89
|
+
the meaning of every question. When the target language differs,
|
|
90
|
+
translate question, reason and option text into it instead of adding,
|
|
91
|
+
removing or re-scoping questions.
|
|
92
|
+
- Never change the request, `spec_id`, `change` or `project_mode`.
|
|
90
93
|
- When you discover a requirement gap, append a new question instead
|
|
91
94
|
of hiding it in an answer or an assumption.
|
|
92
95
|
- Record only what the user explicitly said. Do not summarize away
|
|
@@ -145,6 +148,12 @@ assumption is unaccepted, and to `complete` only when nothing remains.
|
|
|
145
148
|
|
|
146
149
|
## Conversation Rules
|
|
147
150
|
|
|
151
|
+
- When your harness provides a structured question or multiple-choice
|
|
152
|
+
tool, use it for every question and for assumption acceptance. Put the
|
|
153
|
+
recorded options in the tool, add a free-form/Other choice, and wait
|
|
154
|
+
for the user's selection. If no such tool exists, present the options
|
|
155
|
+
as a numbered list and ask the user to reply with the number or a
|
|
156
|
+
free-form answer.
|
|
148
157
|
- Ask one focused question at a time.
|
|
149
158
|
- Explain why the answer changes the specification.
|
|
150
159
|
- Offer the recorded options when they exist, but accept a free-form
|
|
@@ -435,6 +435,22 @@ def test_auto_selection_prompts_instead_of_choosing(
|
|
|
435
435
|
assert asked == [["codex", "claude-code"]]
|
|
436
436
|
|
|
437
437
|
|
|
438
|
+
def test_codex_interactive_enables_selectable_question_tool(
|
|
439
|
+
tmp_path: Path,
|
|
440
|
+
) -> None:
|
|
441
|
+
context = _run_context(tmp_path, mode="interactive")
|
|
442
|
+
invocation = CodexAdapter().build_run(context)
|
|
443
|
+
argv = list(invocation.argv)
|
|
444
|
+
|
|
445
|
+
assert invocation.interactive is True
|
|
446
|
+
assert (
|
|
447
|
+
"features.default_mode_request_user_input=true" in argv
|
|
448
|
+
)
|
|
449
|
+
assert "suppress_unstable_features_warning=true" in argv
|
|
450
|
+
assert argv[argv.index("--ask-for-approval") + 1] == "on-request"
|
|
451
|
+
assert argv[-1] == "prompt"
|
|
452
|
+
|
|
453
|
+
|
|
438
454
|
def test_codex_non_interactive_is_read_only(
|
|
439
455
|
tmp_path: Path,
|
|
440
456
|
) -> None:
|
|
@@ -424,7 +424,10 @@ def test_discovery_prompt_uses_request_language(tmp_path: Path) -> None:
|
|
|
424
424
|
prompt = adapter.run_context.prompt
|
|
425
425
|
assert "`es`" in prompt
|
|
426
426
|
assert "Speak to the user" in prompt
|
|
427
|
-
assert "
|
|
427
|
+
assert "Translate each existing question" in prompt
|
|
428
|
+
assert "write the translations into the discovery record" in prompt
|
|
429
|
+
assert "structured question or multiple-choice tool" in prompt
|
|
430
|
+
assert "numbered options" in prompt
|
|
428
431
|
|
|
429
432
|
|
|
430
433
|
def test_core_does_not_import_harness_adapters() -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/django-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.3.11 → devflow_toolkit-0.3.13}/src/devflow/profiles/fastapi-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|