devflow-toolkit 0.3.13__py3-none-any.whl → 0.3.14__py3-none-any.whl
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/cli.py +1 -1
- devflow/commands/approve.py +1 -1
- devflow/core/discovery.py +27 -7
- devflow/core/spec_workflow.py +1 -0
- {devflow_toolkit-0.3.13.dist-info → devflow_toolkit-0.3.14.dist-info}/METADATA +15 -10
- {devflow_toolkit-0.3.13.dist-info → devflow_toolkit-0.3.14.dist-info}/RECORD +9 -9
- {devflow_toolkit-0.3.13.dist-info → devflow_toolkit-0.3.14.dist-info}/WHEEL +0 -0
- {devflow_toolkit-0.3.13.dist-info → devflow_toolkit-0.3.14.dist-info}/entry_points.txt +0 -0
- {devflow_toolkit-0.3.13.dist-info → devflow_toolkit-0.3.14.dist-info}/licenses/LICENSE +0 -0
devflow/cli.py
CHANGED
devflow/commands/approve.py
CHANGED
|
@@ -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.14. "
|
|
61
61
|
"Only the 'spec' stage can be approved."
|
|
62
62
|
)
|
|
63
63
|
raise UnsupportedStageError(msg)
|
devflow/core/discovery.py
CHANGED
|
@@ -417,6 +417,11 @@ _PLANNER_SIGNAL_WORDS = (
|
|
|
417
417
|
| _ARCHITECTURE_WORDS
|
|
418
418
|
| _VAGUE_TERMS
|
|
419
419
|
)
|
|
420
|
+
# Generic data words describe where something is stored, not what the user
|
|
421
|
+
# will be able to do. Matching only this vocabulary is not enough evidence
|
|
422
|
+
# that the planner understood the feature, so it must still ask for scope.
|
|
423
|
+
_WEAK_SIGNAL_WORDS = _DATA_WORDS | _VAGUE_TERMS
|
|
424
|
+
_STRONG_SIGNAL_WORDS = _PLANNER_SIGNAL_WORDS - _WEAK_SIGNAL_WORDS
|
|
420
425
|
|
|
421
426
|
|
|
422
427
|
class DiscoveryError(Exception):
|
|
@@ -1116,8 +1121,14 @@ class DiscoveryPlanner:
|
|
|
1116
1121
|
has_tests: bool,
|
|
1117
1122
|
architecture: ArchitectureManifest | None,
|
|
1118
1123
|
now: str,
|
|
1124
|
+
require_question: bool = False,
|
|
1119
1125
|
) -> DiscoveryDocument:
|
|
1120
|
-
"""Return a deterministic discovery record for a request.
|
|
1126
|
+
"""Return a deterministic discovery record for a request.
|
|
1127
|
+
|
|
1128
|
+
``require_question`` guarantees that at least one question is
|
|
1129
|
+
produced when no specific heuristic matches. Interactive runs use it
|
|
1130
|
+
so the selected harness is never skipped with an empty Discovery.
|
|
1131
|
+
"""
|
|
1121
1132
|
text = _normalize(request)
|
|
1122
1133
|
words = _words(text)
|
|
1123
1134
|
questions: list[DiscoveryQuestion] = []
|
|
@@ -1532,17 +1543,26 @@ class DiscoveryPlanner:
|
|
|
1532
1543
|
|
|
1533
1544
|
if (
|
|
1534
1545
|
not questions
|
|
1535
|
-
and
|
|
1536
|
-
|
|
1546
|
+
and (
|
|
1547
|
+
require_question
|
|
1548
|
+
or (
|
|
1549
|
+
len(keywords) < 6
|
|
1550
|
+
and not (words & _PLANNER_SIGNAL_WORDS)
|
|
1551
|
+
)
|
|
1552
|
+
or (
|
|
1553
|
+
words & _WEAK_SIGNAL_WORDS
|
|
1554
|
+
and not (words & _STRONG_SIGNAL_WORDS)
|
|
1555
|
+
)
|
|
1556
|
+
)
|
|
1537
1557
|
):
|
|
1538
1558
|
add_question(
|
|
1539
1559
|
"functional_scope",
|
|
1540
1560
|
"What exact user-visible behavior should this change add, and "
|
|
1541
1561
|
"how should it be verified?",
|
|
1542
|
-
"The request
|
|
1543
|
-
"
|
|
1544
|
-
"behavior or the acceptance criteria
|
|
1545
|
-
"decision.",
|
|
1562
|
+
"The request does not identify a feature pattern that DevFlow "
|
|
1563
|
+
"can turn into requirements on its own, so it cannot confirm "
|
|
1564
|
+
"the scope, the expected behavior or the acceptance criteria "
|
|
1565
|
+
"without an explicit decision.",
|
|
1546
1566
|
(
|
|
1547
1567
|
"Describe the intended behavior and acceptance criteria.",
|
|
1548
1568
|
"Reuse an existing feature (describe it).",
|
devflow/core/spec_workflow.py
CHANGED
|
@@ -250,6 +250,7 @@ class SpecWorkflow:
|
|
|
250
250
|
has_tests=prepared.analysis.has_tests,
|
|
251
251
|
architecture=architecture,
|
|
252
252
|
now=now,
|
|
253
|
+
require_question=request.execution_mode == "interactive",
|
|
253
254
|
)
|
|
254
255
|
discovery_path, discovery_digest = discovery_manager.write(
|
|
255
256
|
prepared.directory,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.14
|
|
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.14` 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.14-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.14 |
|
|
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 |
|
|
@@ -412,9 +412,14 @@ generated.
|
|
|
412
412
|
|
|
413
413
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
414
414
|
authentication, persistence, deployments and architecture boundaries in
|
|
415
|
-
English and Spanish.
|
|
416
|
-
|
|
417
|
-
|
|
415
|
+
English and Spanish. Generic data vocabulary such as `datos`, `data` or
|
|
416
|
+
`database` does not by itself prove that the feature scope is understood:
|
|
417
|
+
when it is the only match, the planner adds a generic blocking scope
|
|
418
|
+
question instead of marking Discovery complete. Interactive runs always
|
|
419
|
+
produce at least one question when no specific question matches, so the
|
|
420
|
+
selected harness is invoked instead of being skipped with an empty
|
|
421
|
+
Discovery. Non-interactive runs keep the deterministic behavior for
|
|
422
|
+
concrete requests such as `Add a health endpoint`.
|
|
418
423
|
|
|
419
424
|
For user-generated content, Discovery must also resolve who writes it,
|
|
420
425
|
who may create, edit or delete it, moderation, authentication
|
|
@@ -475,7 +480,7 @@ specification that still lists open questions.
|
|
|
475
480
|
8. If artifacts exist without workflow state, diagnose with
|
|
476
481
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
477
482
|
|
|
478
|
-
Available commands in `0.3.
|
|
483
|
+
Available commands in `0.3.14`:
|
|
479
484
|
|
|
480
485
|
| Command | Status |
|
|
481
486
|
| --- | --- |
|
|
@@ -667,7 +672,7 @@ devflow approve 001 --stage spec
|
|
|
667
672
|
```
|
|
668
673
|
|
|
669
674
|
Approval is explicit and binds the decision to the current artifact
|
|
670
|
-
digests. For a `0.3.
|
|
675
|
+
digests. For a `0.3.14` change it binds `spec.md`, `discovery.yaml` and,
|
|
671
676
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
672
677
|
same approval is a no-op. If an artifact changes after validation,
|
|
673
678
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -678,7 +683,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
678
683
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
679
684
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
680
685
|
|
|
681
|
-
Only the `spec` stage is available in `0.3.
|
|
686
|
+
Only the `spec` stage is available in `0.3.14`. `--stage plan` and
|
|
682
687
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
683
688
|
`review` commands in this release.
|
|
684
689
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
devflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
devflow/cli.py,sha256=
|
|
2
|
+
devflow/cli.py,sha256=lnBFcUsBrcGsZDoXEjHevHd69fz0Xmz_H9y6u1_sM7M,1169
|
|
3
3
|
devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,867
|
|
4
4
|
devflow/adapters/agents.py,sha256=OZnz7wAJNcIojtgaQIK1iB6QKWGgv2VCmoBp8M9DUKE,1423
|
|
5
5
|
devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
|
|
@@ -11,7 +11,7 @@ devflow/adapters/kiro.py,sha256=VxAcwkAdkTbZjDjTJaZfs4kyVHSwR4_Wo3GmFsbmEBU,6754
|
|
|
11
11
|
devflow/adapters/opencode.py,sha256=tAsLApXFSUU2-fPgE8wXtgF7OAOA_qYrVJVeS-GiJ3E,7077
|
|
12
12
|
devflow/adapters/registry.py,sha256=NLd_tf7dAiZUa6gbQFcwPogurZyjbMNbzjjXozAD4xs,1177
|
|
13
13
|
devflow/commands/__init__.py,sha256=yOLtd_4R4xdlMgAzihzIT35oyV_qcz0br-aoLebRj1c,157
|
|
14
|
-
devflow/commands/approve.py,sha256=
|
|
14
|
+
devflow/commands/approve.py,sha256=1d2DX14DJIYR2g40g2nS9-y0q71wp_HMEMkqrCssYwM,2741
|
|
15
15
|
devflow/commands/doctor.py,sha256=vYk2i3OksbGpHEUFsqi7c4w44mAXRmY0OeEdO8h5j_M,4161
|
|
16
16
|
devflow/commands/harness.py,sha256=-Tas6OvkM46zRhBEcJokQkrbKixP4y-haabkI-JmQXM,3891
|
|
17
17
|
devflow/commands/init.py,sha256=B-rW-etZ-Rptt9YW43YZ5mN_l3gfGczuXW9kpmHDOWQ,15420
|
|
@@ -23,12 +23,12 @@ devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,
|
|
|
23
23
|
devflow/core/clock.py,sha256=KZROv6o51Ln1EzK00ySCxfc7WPZqPlaQhFfjfdc_TMY,1651
|
|
24
24
|
devflow/core/config.py,sha256=Ft37K1r6zm3QsU6YtuqBjq2Yr9sDscC5QiqAUrsHpUw,22108
|
|
25
25
|
devflow/core/constitution.py,sha256=nPHyy7BuIyyqkn4y85UyWn2E7f5AWHbg4iZ0frF9SfE,4581
|
|
26
|
-
devflow/core/discovery.py,sha256=
|
|
26
|
+
devflow/core/discovery.py,sha256=M0IwZu0HAGW7cxfwi8SS5AbQAB7ClDHkp83ZaK18aPw,46412
|
|
27
27
|
devflow/core/ports.py,sha256=R6ybjAdJEdtTKFc4FMFTX0TVwRfDwPoWCsu-BHrhI5A,4071
|
|
28
28
|
devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
|
|
29
29
|
devflow/core/project.py,sha256=aXJanCK-TjkDy4v_XM14Xj3z7sbHPusjyJrIzmDqeAI,16989
|
|
30
30
|
devflow/core/recovery.py,sha256=W2If6Ymb3ISwMN8IVQYCwptDUzhxejlF-P2NvMYyZP0,8818
|
|
31
|
-
devflow/core/spec_workflow.py,sha256=
|
|
31
|
+
devflow/core/spec_workflow.py,sha256=iHJDwVIGek-9bc7naOVfJkLKAEH65NIy4Sc59X0RMcA,32866
|
|
32
32
|
devflow/core/specification.py,sha256=vVlhHCdBFlnuIfA_IJPxY4sa0S0t6oX27cn_nFyevGM,65399
|
|
33
33
|
devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
|
|
34
34
|
devflow/core/artifacts/errors.py,sha256=hwZxnLFcUTtEjDWtN6rUCkM69EN19LGVlc6HD-pNZyk,493
|
|
@@ -59,8 +59,8 @@ devflow/prompts/__init__.py,sha256=3VO8CxG8NYCY5D1PiBzvBavtP05FwYbNrBEDT7qGmUc,9
|
|
|
59
59
|
devflow/prompts/discovery.md,sha256=vvrrtm8jHbzKX8hPPupgMjZBTMFY3qdTOoVvgFYJvPY,6717
|
|
60
60
|
devflow/prompts/spec.greenfield.md,sha256=BEKTN7G0B_P0bAevNeShzb_54dYu6j95_B3YqyhYK40,5154
|
|
61
61
|
devflow/prompts/spec.md,sha256=zXrNA--c8IiQJBMyxidTtLVHUIrn7Ynj6935dyje1SY,3801
|
|
62
|
-
devflow_toolkit-0.3.
|
|
63
|
-
devflow_toolkit-0.3.
|
|
64
|
-
devflow_toolkit-0.3.
|
|
65
|
-
devflow_toolkit-0.3.
|
|
66
|
-
devflow_toolkit-0.3.
|
|
62
|
+
devflow_toolkit-0.3.14.dist-info/METADATA,sha256=Mf1H9_rqrPRW0ZZmPW614Fwtkfvmrt3fuHc54XnUIZc,30310
|
|
63
|
+
devflow_toolkit-0.3.14.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
64
|
+
devflow_toolkit-0.3.14.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
|
|
65
|
+
devflow_toolkit-0.3.14.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
|
|
66
|
+
devflow_toolkit-0.3.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|