devflow-toolkit 0.3.9__tar.gz → 0.3.11__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.9 → devflow_toolkit-0.3.11}/CHANGELOG.md +23 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/PKG-INFO +13 -10
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/README.md +12 -9
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/pyproject.toml +1 -1
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/cli.py +1 -1
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/approve.py +1 -1
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/discovery.py +8 -2
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/spec_workflow.py +5 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/prompts/__init__.py +18 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/prompts/discovery.md +4 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_discovery.py +32 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_spec_workflow.py +25 -1
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/.gitignore +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/LICENSE +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/spec.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/commands/status.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/config.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/prompts/spec.greenfield.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_state.py +0 -0
- {devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.3.11 - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A contact form that collects an email address is no longer treated as
|
|
10
|
+
if the submission behavior were already decided. `email` and `correo`
|
|
11
|
+
alone no longer count as a submission decision; explicit phrases such
|
|
12
|
+
as "send an email" or "enviar un correo" still do. This prevents
|
|
13
|
+
contact requests with an email field from completing Discovery with
|
|
14
|
+
zero questions.
|
|
15
|
+
- Package version is `0.3.11`.
|
|
16
|
+
|
|
17
|
+
## 0.3.10 - 2026-11-05
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Interactive Discovery now receives the documentation language selected
|
|
22
|
+
for the run. Claude Code asks existing questions and writes new
|
|
23
|
+
questions in Spanish when `--language es` is used, instead of always
|
|
24
|
+
speaking English. Existing stored question text is preserved, but it is
|
|
25
|
+
translated accurately when asked in conversation.
|
|
26
|
+
- Package version is `0.3.10`.
|
|
27
|
+
|
|
5
28
|
## 0.3.9 - 2026-11-05
|
|
6
29
|
|
|
7
30
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
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.11` 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.11-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.11 |
|
|
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 |
|
|
@@ -468,7 +468,7 @@ specification that still lists open questions.
|
|
|
468
468
|
8. If artifacts exist without workflow state, diagnose with
|
|
469
469
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
470
470
|
|
|
471
|
-
Available commands in `0.3.
|
|
471
|
+
Available commands in `0.3.11`:
|
|
472
472
|
|
|
473
473
|
| Command | Status |
|
|
474
474
|
| --- | --- |
|
|
@@ -578,9 +578,12 @@ run in the same invocation. Without it, an interactive run stops at the
|
|
|
578
578
|
Discovery checkpoint.
|
|
579
579
|
|
|
580
580
|
`spec --language <code>` overrides the configured language for that run
|
|
581
|
-
without changing `.devflow/config.yaml`.
|
|
582
|
-
|
|
583
|
-
|
|
581
|
+
without changing `.devflow/config.yaml`. Interactive agent Discovery
|
|
582
|
+
asks existing questions and writes new questions in that language, even
|
|
583
|
+
when the stored question text was generated in English by the
|
|
584
|
+
deterministic planner. Specifications written by an agent use the same
|
|
585
|
+
language. The deterministic `--no-agent` planner still writes its own
|
|
586
|
+
stored question text in English.
|
|
584
587
|
|
|
585
588
|
If the harness is unavailable, fails, or returns an invalid document,
|
|
586
589
|
DevFlow writes a deterministic draft and reports the reason. The command
|
|
@@ -656,7 +659,7 @@ devflow approve 001 --stage spec
|
|
|
656
659
|
```
|
|
657
660
|
|
|
658
661
|
Approval is explicit and binds the decision to the current artifact
|
|
659
|
-
digests. For a `0.3.
|
|
662
|
+
digests. For a `0.3.11` change it binds `spec.md`, `discovery.yaml` and,
|
|
660
663
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
661
664
|
same approval is a no-op. If an artifact changes after validation,
|
|
662
665
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -667,7 +670,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
667
670
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
668
671
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
669
672
|
|
|
670
|
-
Only the `spec` stage is available in `0.3.
|
|
673
|
+
Only the `spec` stage is available in `0.3.11`. `--stage plan` and
|
|
671
674
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
672
675
|
`review` commands in this release.
|
|
673
676
|
|
|
@@ -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.11` 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.11-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.11 |
|
|
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 |
|
|
@@ -436,7 +436,7 @@ specification that still lists open questions.
|
|
|
436
436
|
8. If artifacts exist without workflow state, diagnose with
|
|
437
437
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
438
438
|
|
|
439
|
-
Available commands in `0.3.
|
|
439
|
+
Available commands in `0.3.11`:
|
|
440
440
|
|
|
441
441
|
| Command | Status |
|
|
442
442
|
| --- | --- |
|
|
@@ -546,9 +546,12 @@ run in the same invocation. Without it, an interactive run stops at the
|
|
|
546
546
|
Discovery checkpoint.
|
|
547
547
|
|
|
548
548
|
`spec --language <code>` overrides the configured language for that run
|
|
549
|
-
without changing `.devflow/config.yaml`.
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
without changing `.devflow/config.yaml`. Interactive agent Discovery
|
|
550
|
+
asks existing questions and writes new questions in that language, even
|
|
551
|
+
when the stored question text was generated in English by the
|
|
552
|
+
deterministic planner. Specifications written by an agent use the same
|
|
553
|
+
language. The deterministic `--no-agent` planner still writes its own
|
|
554
|
+
stored question text in English.
|
|
552
555
|
|
|
553
556
|
If the harness is unavailable, fails, or returns an invalid document,
|
|
554
557
|
DevFlow writes a deterministic draft and reports the reason. The command
|
|
@@ -624,7 +627,7 @@ devflow approve 001 --stage spec
|
|
|
624
627
|
```
|
|
625
628
|
|
|
626
629
|
Approval is explicit and binds the decision to the current artifact
|
|
627
|
-
digests. For a `0.3.
|
|
630
|
+
digests. For a `0.3.11` change it binds `spec.md`, `discovery.yaml` and,
|
|
628
631
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
629
632
|
same approval is a no-op. If an artifact changes after validation,
|
|
630
633
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -635,7 +638,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
635
638
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
636
639
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
637
640
|
|
|
638
|
-
Only the `spec` stage is available in `0.3.
|
|
641
|
+
Only the `spec` stage is available in `0.3.11`. `--stage plan` and
|
|
639
642
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
640
643
|
`review` commands in this release.
|
|
641
644
|
|
|
@@ -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.11. "
|
|
61
61
|
"Only the 'spec' stage can be approved."
|
|
62
62
|
)
|
|
63
63
|
raise UnsupportedStageError(msg)
|
|
@@ -143,8 +143,6 @@ _SUBMISSION_DECISIONS = {
|
|
|
143
143
|
"persisted",
|
|
144
144
|
"database",
|
|
145
145
|
"db",
|
|
146
|
-
"email",
|
|
147
|
-
"correo",
|
|
148
146
|
"smtp",
|
|
149
147
|
"send_mail",
|
|
150
148
|
"confirmation",
|
|
@@ -160,6 +158,14 @@ _SUBMISSION_PHRASES = {
|
|
|
160
158
|
"solo mostrar",
|
|
161
159
|
"confirmation message",
|
|
162
160
|
"mensaje de confirmacion",
|
|
161
|
+
"send an email",
|
|
162
|
+
"send email",
|
|
163
|
+
"email notification",
|
|
164
|
+
"notify by email",
|
|
165
|
+
"enviar un correo",
|
|
166
|
+
"enviar correo",
|
|
167
|
+
"notificacion por correo",
|
|
168
|
+
"notificar por correo",
|
|
163
169
|
}
|
|
164
170
|
_NO_PERSISTENCE_PHRASES = {
|
|
165
171
|
"no persistence",
|
|
@@ -310,6 +310,9 @@ class SpecWorkflow:
|
|
|
310
310
|
discovery_manager=discovery_manager,
|
|
311
311
|
adapter=adapter,
|
|
312
312
|
execution_mode=request.execution_mode,
|
|
313
|
+
language=(
|
|
314
|
+
request.language or config.documentation_language
|
|
315
|
+
),
|
|
313
316
|
config=config,
|
|
314
317
|
project=project,
|
|
315
318
|
constitution=constitution,
|
|
@@ -686,6 +689,7 @@ class SpecWorkflow:
|
|
|
686
689
|
discovery_manager: DiscoveryManager,
|
|
687
690
|
adapter: HarnessPort,
|
|
688
691
|
execution_mode: str,
|
|
692
|
+
language: str,
|
|
689
693
|
config: DevFlowConfig,
|
|
690
694
|
project: Project,
|
|
691
695
|
constitution: Constitution,
|
|
@@ -707,6 +711,7 @@ class SpecWorkflow:
|
|
|
707
711
|
harness_name=adapter.display_name,
|
|
708
712
|
execution_mode=execution_mode,
|
|
709
713
|
permissions=config.permissions,
|
|
714
|
+
language=language,
|
|
710
715
|
)
|
|
711
716
|
run_context = RunContext(
|
|
712
717
|
root=config.root,
|
|
@@ -102,6 +102,7 @@ def build_discovery_prompt(
|
|
|
102
102
|
harness_name: str,
|
|
103
103
|
execution_mode: str,
|
|
104
104
|
permissions: AgentPermissions,
|
|
105
|
+
language: str = "en",
|
|
105
106
|
) -> str:
|
|
106
107
|
"""Render the interactive discovery prompt for any harness."""
|
|
107
108
|
template = load_prompt("discovery.md")
|
|
@@ -112,6 +113,7 @@ def build_discovery_prompt(
|
|
|
112
113
|
"discovery_path": discovery_path,
|
|
113
114
|
"harness_name": harness_name,
|
|
114
115
|
"execution_mode": execution_mode,
|
|
116
|
+
"language_note": _discovery_language_note(language),
|
|
115
117
|
"mode_instructions": _discovery_mode_instructions(
|
|
116
118
|
discovery_path,
|
|
117
119
|
execution_mode,
|
|
@@ -139,6 +141,22 @@ def _language_note(language: str) -> str:
|
|
|
139
141
|
)
|
|
140
142
|
|
|
141
143
|
|
|
144
|
+
def _discovery_language_note(language: str) -> str:
|
|
145
|
+
"""Return the prompt instruction that selects the conversation language."""
|
|
146
|
+
target = (language or "en").strip() or "en"
|
|
147
|
+
return (
|
|
148
|
+
f"Speak to the user and write every new discovery question, reason, "
|
|
149
|
+
f"option, assumption and report in the language identified as "
|
|
150
|
+
f"`{target}`.\n\n"
|
|
151
|
+
"The existing discovery record may contain question text in another "
|
|
152
|
+
"language. Preserve its ids, categories, blocking flags and stored "
|
|
153
|
+
"question text exactly, but translate each question accurately into "
|
|
154
|
+
"the target language when you ask it in conversation. Keep paths, "
|
|
155
|
+
"field names, category identifiers, `Qn`/`An` identifiers, commands "
|
|
156
|
+
"and digests exactly as shown."
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
|
|
142
160
|
def _discovery_mode_instructions(
|
|
143
161
|
discovery_path: str,
|
|
144
162
|
execution_mode: str,
|
|
@@ -10,6 +10,10 @@ You are the discovery agent for the project `{{project_name}}`.
|
|
|
10
10
|
- Harness: {{harness_name}}
|
|
11
11
|
- Execution mode: {{execution_mode}}
|
|
12
12
|
|
|
13
|
+
## Language
|
|
14
|
+
|
|
15
|
+
{{language_note}}
|
|
16
|
+
|
|
13
17
|
Read the context and the discovery record before talking to the user.
|
|
14
18
|
The discovery record is the only place where answers and assumption
|
|
15
19
|
acceptance may be recorded.
|
|
@@ -296,6 +296,38 @@ def test_planner_asks_a_generic_scope_question_for_unknown_requests(
|
|
|
296
296
|
assert document.questions[0].blocking is True
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
def test_planner_does_not_treat_email_field_as_submission_decision(
|
|
300
|
+
tmp_path: Path,
|
|
301
|
+
) -> None:
|
|
302
|
+
document = DiscoveryPlanner().build(
|
|
303
|
+
request=(
|
|
304
|
+
"Quiero crear una seccion de 'contactenos' que tenga un formulario "
|
|
305
|
+
"donde el usuario pueda registrar su correo electronico para poder "
|
|
306
|
+
"darle respuesta a alguna peticion"
|
|
307
|
+
),
|
|
308
|
+
spec_id="001",
|
|
309
|
+
change="001-quiero-crear-una-seccion-de-contactenos",
|
|
310
|
+
project_mode="existing",
|
|
311
|
+
project=Project(
|
|
312
|
+
root=tmp_path,
|
|
313
|
+
name="demo",
|
|
314
|
+
project_type="unknown",
|
|
315
|
+
),
|
|
316
|
+
profiles=(),
|
|
317
|
+
reference_paths=(),
|
|
318
|
+
category_paths={},
|
|
319
|
+
has_tests=True,
|
|
320
|
+
architecture=None,
|
|
321
|
+
now="2026-11-02T00:00:00Z",
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
assert document.status == DISCOVERY_AWAITING
|
|
325
|
+
assert not document.is_complete
|
|
326
|
+
assert len(document.questions) == 1
|
|
327
|
+
assert "contact form" in document.questions[0].question
|
|
328
|
+
assert document.assumptions[0].status == "pending_acceptance"
|
|
329
|
+
|
|
330
|
+
|
|
299
331
|
def test_planner_blocks_comment_api_without_authorship_decision(
|
|
300
332
|
tmp_path: Path,
|
|
301
333
|
) -> None:
|
|
@@ -199,15 +199,18 @@ def _run(
|
|
|
199
199
|
executor: FakeExecutor | None = None,
|
|
200
200
|
mode: str = "non-interactive",
|
|
201
201
|
stop_after_discovery: bool = False,
|
|
202
|
+
description: str = "Add a health endpoint",
|
|
203
|
+
language: str = "",
|
|
202
204
|
) -> SpecWorkflowResult:
|
|
203
205
|
workflow = SpecWorkflow(executor=executor or FakeExecutor())
|
|
204
206
|
return workflow.run(
|
|
205
207
|
SpecWorkflowRequest(
|
|
206
|
-
description=
|
|
208
|
+
description=description,
|
|
207
209
|
config=config,
|
|
208
210
|
execution_mode=mode,
|
|
209
211
|
adapter=adapter,
|
|
210
212
|
stop_after_discovery=stop_after_discovery,
|
|
213
|
+
language=language,
|
|
211
214
|
)
|
|
212
215
|
)
|
|
213
216
|
|
|
@@ -403,6 +406,27 @@ def test_workflow_accepts_interactive_spec_written_by_agent(
|
|
|
403
406
|
)
|
|
404
407
|
|
|
405
408
|
|
|
409
|
+
def test_discovery_prompt_uses_request_language(tmp_path: Path) -> None:
|
|
410
|
+
config = _config(tmp_path)
|
|
411
|
+
adapter = FakeAdapter()
|
|
412
|
+
|
|
413
|
+
result = _run(
|
|
414
|
+
config,
|
|
415
|
+
adapter=adapter,
|
|
416
|
+
executor=FakeExecutor(),
|
|
417
|
+
mode="interactive",
|
|
418
|
+
description="Crear un formulario de contactenos",
|
|
419
|
+
language="es",
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
assert result.blocked is True
|
|
423
|
+
assert adapter.run_context is not None
|
|
424
|
+
prompt = adapter.run_context.prompt
|
|
425
|
+
assert "`es`" in prompt
|
|
426
|
+
assert "Speak to the user" in prompt
|
|
427
|
+
assert "translate each question" in prompt
|
|
428
|
+
|
|
429
|
+
|
|
406
430
|
def test_core_does_not_import_harness_adapters() -> None:
|
|
407
431
|
core_root = Path(core_package.__file__).resolve().parent
|
|
408
432
|
violations: list[str] = []
|
|
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.9 → devflow_toolkit-0.3.11}/src/devflow/profiles/django-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.3.9 → devflow_toolkit-0.3.11}/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
|