devflow-toolkit 0.4.1__tar.gz → 0.4.2__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.4.1 → devflow_toolkit-0.4.2}/CHANGELOG.md +16 -4
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/PKG-INFO +13 -11
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/README.md +4 -1
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/docs/PRESENTATION.md +12 -11
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/docs/REFERENCE.md +12 -10
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/pyproject.toml +1 -1
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/config.py +3 -27
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_cli.py +5 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_discovery_decisions.py +20 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/.gitignore +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/LICENSE +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/docs/PUBLISHING.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/antigravity.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/cli.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/approve.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/config.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/reopen.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/security.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/spec.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/commands/status.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/discovery.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/file_types.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/security_baseline.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/security_tools.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/spec_workflow.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/hooks/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/hooks/claude_guard.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/prompts/__init__.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/prompts/discovery-repair.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/prompts/discovery.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_discovery.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_security_baseline.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_security_tools.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_spec_workflow.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_state.py +0 -0
- {devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.4.2 - 2026-11-10
|
|
6
|
+
|
|
7
|
+
### Removed
|
|
8
|
+
|
|
9
|
+
- `devflow init` no longer creates the empty `.devflow/plans/` and
|
|
10
|
+
`.devflow/templates/` folders, and no longer writes `plans` and
|
|
11
|
+
`templates` in `config.yaml`. Nothing used them. Older configuration
|
|
12
|
+
files that contain those keys still load; the keys are ignored and
|
|
13
|
+
existing folders are left untouched.
|
|
14
|
+
|
|
15
|
+
### Package
|
|
16
|
+
|
|
17
|
+
- Package version is `0.4.2`, published on TestPyPI and PyPI.
|
|
18
|
+
|
|
5
19
|
## 0.4.1 - 2026-11-10
|
|
6
20
|
|
|
7
21
|
### Changed
|
|
@@ -27,8 +41,7 @@ All notable changes to DevFlow Toolkit are documented in this file.
|
|
|
27
41
|
|
|
28
42
|
### Package
|
|
29
43
|
|
|
30
|
-
- Package version is `0.4.1
|
|
31
|
-
`0.3.28`.
|
|
44
|
+
- Package version is `0.4.1`, published on TestPyPI and PyPI.
|
|
32
45
|
|
|
33
46
|
## 0.4.0 - 2026-11-10
|
|
34
47
|
|
|
@@ -67,8 +80,7 @@ All notable changes to DevFlow Toolkit are documented in this file.
|
|
|
67
80
|
|
|
68
81
|
### Package
|
|
69
82
|
|
|
70
|
-
- Package version is `0.4.0
|
|
71
|
-
`0.3.28`.
|
|
83
|
+
- Package version is `0.4.0`, published on TestPyPI only.
|
|
72
84
|
|
|
73
85
|
## 0.3.28 - 2026-11-09
|
|
74
86
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Specification workflow toolkit for AI-assisted software changes
|
|
5
5
|
Author: DevFlow contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
|
|
|
32
32
|
|
|
33
33
|
# DevFlow Toolkit
|
|
34
34
|
|
|
35
|
-
**Current version: `0.4.
|
|
35
|
+
**Current version: `0.4.2`.**
|
|
36
36
|
|
|
37
37
|
Before any code is written, you and the AI agree on what will be built
|
|
38
38
|
and approve it as a spec. The agent then implements once, on something
|
|
@@ -210,7 +210,7 @@ pip install devflow-toolkit
|
|
|
210
210
|
To install a specific built artifact instead:
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
|
-
pip install devflow_toolkit-0.4.
|
|
213
|
+
pip install devflow_toolkit-0.4.2-py3-none-any.whl
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
Verify the installation:
|
|
@@ -425,10 +425,6 @@ constitution:
|
|
|
425
425
|
- django-standards.md
|
|
426
426
|
specifications:
|
|
427
427
|
path: .devflow/specs
|
|
428
|
-
plans:
|
|
429
|
-
path: .devflow/plans
|
|
430
|
-
templates:
|
|
431
|
-
path: .devflow/templates
|
|
432
428
|
agent:
|
|
433
429
|
harness: opencode
|
|
434
430
|
model: provider/model-name
|
|
@@ -515,7 +511,7 @@ as an architectural constraint when it is present.
|
|
|
515
511
|
|
|
516
512
|
### Harnesses
|
|
517
513
|
|
|
518
|
-
| Harness | Status in 0.4.
|
|
514
|
+
| Harness | Status in 0.4.2 |
|
|
519
515
|
| --- | --- |
|
|
520
516
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
521
517
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -929,7 +925,7 @@ reference.
|
|
|
929
925
|
8. If artifacts exist without workflow state, diagnose with
|
|
930
926
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
931
927
|
|
|
932
|
-
Available commands in `0.4.
|
|
928
|
+
Available commands in `0.4.2`:
|
|
933
929
|
|
|
934
930
|
| Command | Status |
|
|
935
931
|
| --- | --- |
|
|
@@ -1162,7 +1158,7 @@ devflow approve 001
|
|
|
1162
1158
|
```
|
|
1163
1159
|
|
|
1164
1160
|
Approval is explicit and binds the decision to the current artifact
|
|
1165
|
-
digests. For a `0.4.
|
|
1161
|
+
digests. For a `0.4.2` change it binds `spec.md`, `discovery.yaml` and,
|
|
1166
1162
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1167
1163
|
same approval is a no-op. If an artifact changes after validation,
|
|
1168
1164
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1173,7 +1169,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1173
1169
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1174
1170
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1175
1171
|
|
|
1176
|
-
Only the `spec` stage is available in `0.4.
|
|
1172
|
+
Only the `spec` stage is available in `0.4.2`, so `--stage` is optional
|
|
1177
1173
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1178
1174
|
rejected. There are no `plan`, `implement` or
|
|
1179
1175
|
`review` commands in this release.
|
|
@@ -1256,12 +1252,18 @@ my-project/
|
|
|
1256
1252
|
│ ├── spec.md # only when Discovery is complete
|
|
1257
1253
|
│ ├── workflow.yaml # projection of events.jsonl
|
|
1258
1254
|
│ ├── events.jsonl # append-only source of truth
|
|
1255
|
+
│ ├── history/ # earlier versions of spec.md
|
|
1259
1256
|
│ └── .lock # per-change advisory lock
|
|
1260
1257
|
├── AGENTS.md
|
|
1261
1258
|
├── opencode.json # when OpenCode is selected
|
|
1262
1259
|
└── .opencode/agents/ # when OpenCode is selected
|
|
1263
1260
|
```
|
|
1264
1261
|
|
|
1262
|
+
DevFlow creates only `constitution/` and `specs/` inside `.devflow/`.
|
|
1263
|
+
Projects initialized before `0.4.2` may also have empty `plans/` and
|
|
1264
|
+
`templates/` folders and matching keys in `config.yaml`; nothing uses
|
|
1265
|
+
them, so they can be deleted.
|
|
1266
|
+
|
|
1265
1267
|
All managed files are identifiable: Markdown files contain
|
|
1266
1268
|
`<!-- devflow:managed -->`, and JSON files contain `"devflowManaged":
|
|
1267
1269
|
true`. Unmanaged files with the same names are left untouched and
|
|
@@ -32,7 +32,7 @@ tokens, which cost several times more than input tokens.
|
|
|
32
32
|
The goal is not to generate code faster, but to decide better before
|
|
33
33
|
generating it. Thinking is cheap; redoing code is expensive.
|
|
34
34
|
|
|
35
|
-
Current version: `0.4.
|
|
35
|
+
Current version: `0.4.2` · Python 3.11+ · Linux and macOS
|
|
36
36
|
|
|
37
37
|
## Install
|
|
38
38
|
|
|
@@ -182,6 +182,9 @@ written outside the normal flow.
|
|
|
182
182
|
personal data). Discovery covers the level-1 controls and offers
|
|
183
183
|
level 2 as the next step; a risk you decide to accept is recorded with
|
|
184
184
|
your name.
|
|
185
|
+
- **Questions never dead-end.** Critical and blocking decisions are
|
|
186
|
+
always asked, even beyond the question budget, and missing decisions
|
|
187
|
+
found while writing the spec are asked in the same session.
|
|
185
188
|
- **Grow step by step.** After approval, `devflow status 001` suggests
|
|
186
189
|
the next level as a new spec.
|
|
187
190
|
- **Small changes don't need DevFlow.** Use it when a change involves
|
|
@@ -35,7 +35,7 @@ grande. Cada vuelta sale más cara que la anterior.
|
|
|
35
35
|
| Código y alcance que nadie pidió | La spec fija requisitos (`FR`), criterios de aceptación (`AC`) y qué queda **fuera de alcance** |
|
|
36
36
|
| Cada uno usa la IA a su manera | Mismo flujo y mismas reglas de arquitectura y código en cada proyecto |
|
|
37
37
|
| No queda registro de las decisiones | Cada pregunta, respuesta y aprobación queda guardada en el repositorio |
|
|
38
|
-
| La seguridad se recuerda tarde | Discovery pregunta
|
|
38
|
+
| La seguridad se recuerda tarde | Discovery pregunta los controles de seguridad básicos (OWASP ASVS nivel 1) que toca el cambio, y los riesgos que se aceptan quedan con nombre |
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
@@ -85,25 +85,26 @@ Responde lo que puedas; las respuestas cortas también sirven.
|
|
|
85
85
|
3. ¿Cuántas rondas necesitaste? ¿Se te hizo largo?
|
|
86
86
|
4. ¿Las opciones de "siguiente nivel" y sus explicaciones te aportaron
|
|
87
87
|
algo?
|
|
88
|
+
5. ¿Las preguntas de seguridad te parecieron útiles o excesivas?
|
|
88
89
|
|
|
89
90
|
**Sobre la spec**
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
6. ¿La spec describe bien lo que querías construir?
|
|
93
|
+
7. ¿Hay algo que sobre, que falte o que no se entienda?
|
|
94
|
+
8. ¿Se la pasarías a un compañero para implementarla tal cual?
|
|
94
95
|
|
|
95
96
|
**Sobre la implementación (si la probaste)**
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
9. ¿El agente se mantuvo dentro de la spec o hizo cosas que no pedías?
|
|
99
|
+
10. ¿Necesitaste menos correcciones que de costumbre?
|
|
99
100
|
|
|
100
101
|
**En general**
|
|
101
102
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
11. ¿Qué fue lo más útil?
|
|
104
|
+
12. ¿Qué te molestó o te hizo perder tiempo?
|
|
105
|
+
13. ¿Lo usarías en tu trabajo diario? ¿Para qué tipo de cambios sí y para
|
|
105
106
|
cuáles no?
|
|
106
|
-
|
|
107
|
+
14. Si algo falló: ¿qué comando ejecutaste y qué mensaje salió?
|
|
107
108
|
|
|
108
109
|
Envía tus respuestas a **[nombre o canal de contacto]**.
|
|
109
110
|
|
|
@@ -111,7 +112,7 @@ Envía tus respuestas a **[nombre o canal de contacto]**.
|
|
|
111
112
|
|
|
112
113
|
## Limitaciones conocidas
|
|
113
114
|
|
|
114
|
-
- **Versión alfa (0.
|
|
115
|
+
- **Versión alfa (0.4.x).** Puede tener errores; justo por eso nos
|
|
115
116
|
interesa tu feedback.
|
|
116
117
|
- **Solo cubre la especificación.** La implementación la hace tu agente;
|
|
117
118
|
DevFlow todavía no verifica el resultado.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DevFlow Toolkit
|
|
2
2
|
|
|
3
|
-
**Current version: `0.4.
|
|
3
|
+
**Current version: `0.4.2`.**
|
|
4
4
|
|
|
5
5
|
Before any code is written, you and the AI agree on what will be built
|
|
6
6
|
and approve it as a spec. The agent then implements once, on something
|
|
@@ -178,7 +178,7 @@ pip install devflow-toolkit
|
|
|
178
178
|
To install a specific built artifact instead:
|
|
179
179
|
|
|
180
180
|
```bash
|
|
181
|
-
pip install devflow_toolkit-0.4.
|
|
181
|
+
pip install devflow_toolkit-0.4.2-py3-none-any.whl
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
Verify the installation:
|
|
@@ -393,10 +393,6 @@ constitution:
|
|
|
393
393
|
- django-standards.md
|
|
394
394
|
specifications:
|
|
395
395
|
path: .devflow/specs
|
|
396
|
-
plans:
|
|
397
|
-
path: .devflow/plans
|
|
398
|
-
templates:
|
|
399
|
-
path: .devflow/templates
|
|
400
396
|
agent:
|
|
401
397
|
harness: opencode
|
|
402
398
|
model: provider/model-name
|
|
@@ -483,7 +479,7 @@ as an architectural constraint when it is present.
|
|
|
483
479
|
|
|
484
480
|
### Harnesses
|
|
485
481
|
|
|
486
|
-
| Harness | Status in 0.4.
|
|
482
|
+
| Harness | Status in 0.4.2 |
|
|
487
483
|
| --- | --- |
|
|
488
484
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
489
485
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -897,7 +893,7 @@ reference.
|
|
|
897
893
|
8. If artifacts exist without workflow state, diagnose with
|
|
898
894
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
899
895
|
|
|
900
|
-
Available commands in `0.4.
|
|
896
|
+
Available commands in `0.4.2`:
|
|
901
897
|
|
|
902
898
|
| Command | Status |
|
|
903
899
|
| --- | --- |
|
|
@@ -1130,7 +1126,7 @@ devflow approve 001
|
|
|
1130
1126
|
```
|
|
1131
1127
|
|
|
1132
1128
|
Approval is explicit and binds the decision to the current artifact
|
|
1133
|
-
digests. For a `0.4.
|
|
1129
|
+
digests. For a `0.4.2` change it binds `spec.md`, `discovery.yaml` and,
|
|
1134
1130
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1135
1131
|
same approval is a no-op. If an artifact changes after validation,
|
|
1136
1132
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1141,7 +1137,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1141
1137
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1142
1138
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1143
1139
|
|
|
1144
|
-
Only the `spec` stage is available in `0.4.
|
|
1140
|
+
Only the `spec` stage is available in `0.4.2`, so `--stage` is optional
|
|
1145
1141
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1146
1142
|
rejected. There are no `plan`, `implement` or
|
|
1147
1143
|
`review` commands in this release.
|
|
@@ -1224,12 +1220,18 @@ my-project/
|
|
|
1224
1220
|
│ ├── spec.md # only when Discovery is complete
|
|
1225
1221
|
│ ├── workflow.yaml # projection of events.jsonl
|
|
1226
1222
|
│ ├── events.jsonl # append-only source of truth
|
|
1223
|
+
│ ├── history/ # earlier versions of spec.md
|
|
1227
1224
|
│ └── .lock # per-change advisory lock
|
|
1228
1225
|
├── AGENTS.md
|
|
1229
1226
|
├── opencode.json # when OpenCode is selected
|
|
1230
1227
|
└── .opencode/agents/ # when OpenCode is selected
|
|
1231
1228
|
```
|
|
1232
1229
|
|
|
1230
|
+
DevFlow creates only `constitution/` and `specs/` inside `.devflow/`.
|
|
1231
|
+
Projects initialized before `0.4.2` may also have empty `plans/` and
|
|
1232
|
+
`templates/` folders and matching keys in `config.yaml`; nothing uses
|
|
1233
|
+
them, so they can be deleted.
|
|
1234
|
+
|
|
1233
1235
|
All managed files are identifiable: Markdown files contain
|
|
1234
1236
|
`<!-- devflow:managed -->`, and JSON files contain `"devflowManaged":
|
|
1235
1237
|
true`. Unmanaged files with the same names are left untouched and
|
|
@@ -20,8 +20,6 @@ from devflow.models.project import (
|
|
|
20
20
|
CONFIG_RELATIVE_PATH = Path(".devflow") / "config.yaml"
|
|
21
21
|
DEFAULT_CONSTITUTION_PATH = Path(".devflow") / "constitution"
|
|
22
22
|
DEFAULT_SPECIFICATIONS_PATH = Path(".devflow") / "specs"
|
|
23
|
-
DEFAULT_PLANS_PATH = Path(".devflow") / "plans"
|
|
24
|
-
DEFAULT_TEMPLATES_PATH = Path(".devflow") / "templates"
|
|
25
23
|
DEFAULT_DOCUMENTATION_LANGUAGE = "en"
|
|
26
24
|
MAX_DISCOVERY_BUDGET = 100
|
|
27
25
|
# follow_up, maximum and max_rounds written by `devflow init` before
|
|
@@ -247,8 +245,6 @@ class DevFlowConfig:
|
|
|
247
245
|
technologies: dict[str, list[str]]
|
|
248
246
|
constitution: ConstitutionSettings
|
|
249
247
|
specifications_path: Path
|
|
250
|
-
plans_path: Path
|
|
251
|
-
templates_path: Path
|
|
252
248
|
documentation_language: str
|
|
253
249
|
agent: AgentSettings
|
|
254
250
|
discovery: DiscoverySettings = DiscoverySettings()
|
|
@@ -318,11 +314,9 @@ class ConfigManager:
|
|
|
318
314
|
data.get("specifications"),
|
|
319
315
|
"specifications",
|
|
320
316
|
)
|
|
321
|
-
plans
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
"templates",
|
|
325
|
-
)
|
|
317
|
+
# `plans` and `templates` were written by `devflow init` before
|
|
318
|
+
# 0.4.2. Nothing uses them, so older files keep loading and the keys
|
|
319
|
+
# are ignored.
|
|
326
320
|
documentation = self._mapping(
|
|
327
321
|
data.get("documentation", {}),
|
|
328
322
|
"documentation",
|
|
@@ -351,14 +345,6 @@ class ConfigManager:
|
|
|
351
345
|
),
|
|
352
346
|
"specifications.path",
|
|
353
347
|
)
|
|
354
|
-
plans_path = self._relative_path(
|
|
355
|
-
plans.get("path", DEFAULT_PLANS_PATH.as_posix()),
|
|
356
|
-
"plans.path",
|
|
357
|
-
)
|
|
358
|
-
templates_path = self._relative_path(
|
|
359
|
-
templates.get("path", DEFAULT_TEMPLATES_PATH.as_posix()),
|
|
360
|
-
"templates.path",
|
|
361
|
-
)
|
|
362
348
|
|
|
363
349
|
technologies = self._technologies(data.get("technologies", {}))
|
|
364
350
|
|
|
@@ -417,8 +403,6 @@ class ConfigManager:
|
|
|
417
403
|
),
|
|
418
404
|
),
|
|
419
405
|
specifications_path=specifications_path,
|
|
420
|
-
plans_path=plans_path,
|
|
421
|
-
templates_path=templates_path,
|
|
422
406
|
documentation_language=documentation_language,
|
|
423
407
|
agent=agent_settings,
|
|
424
408
|
discovery=discovery_settings,
|
|
@@ -490,12 +474,6 @@ class ConfigManager:
|
|
|
490
474
|
"specifications": {
|
|
491
475
|
"path": DEFAULT_SPECIFICATIONS_PATH.as_posix(),
|
|
492
476
|
},
|
|
493
|
-
"plans": {
|
|
494
|
-
"path": DEFAULT_PLANS_PATH.as_posix(),
|
|
495
|
-
},
|
|
496
|
-
"templates": {
|
|
497
|
-
"path": DEFAULT_TEMPLATES_PATH.as_posix(),
|
|
498
|
-
},
|
|
499
477
|
"documentation": {
|
|
500
478
|
"language": language,
|
|
501
479
|
},
|
|
@@ -658,8 +636,6 @@ class ConfigManager:
|
|
|
658
636
|
for path in (
|
|
659
637
|
config.constitution.path,
|
|
660
638
|
config.specifications_path,
|
|
661
|
-
config.plans_path,
|
|
662
|
-
config.templates_path,
|
|
663
639
|
):
|
|
664
640
|
resolved = path.resolve()
|
|
665
641
|
try:
|
|
@@ -168,6 +168,11 @@ def test_init_detects_django_and_installs_only_its_guidelines(
|
|
|
168
168
|
assert config["project"]["type"] == "backend"
|
|
169
169
|
assert config["profiles"] == ["django-backend"]
|
|
170
170
|
assert "postgresql" in config["technologies"]["databases"]
|
|
171
|
+
assert "plans" not in config
|
|
172
|
+
assert "templates" not in config
|
|
173
|
+
assert not (tmp_path / ".devflow" / "plans").exists()
|
|
174
|
+
assert not (tmp_path / ".devflow" / "templates").exists()
|
|
175
|
+
assert (tmp_path / ".devflow" / "specs").is_dir()
|
|
171
176
|
|
|
172
177
|
constitution = tmp_path / ".devflow" / "constitution"
|
|
173
178
|
assert (constitution / "constitution.md").is_file()
|
|
@@ -698,3 +698,23 @@ def test_repair_prompt_forbids_validation_scripts() -> None:
|
|
|
698
698
|
|
|
699
699
|
assert "Do not create scripts" in prompt
|
|
700
700
|
assert prompt.index("`es`") < prompt.index("## Task")
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
def test_old_config_with_plans_and_templates_still_loads(
|
|
704
|
+
tmp_path: Path,
|
|
705
|
+
) -> None:
|
|
706
|
+
config = ConfigManager(tmp_path).create(
|
|
707
|
+
Project(root=tmp_path, name="demo", project_type="unknown"),
|
|
708
|
+
[],
|
|
709
|
+
[],
|
|
710
|
+
)
|
|
711
|
+
path = config.path
|
|
712
|
+
data = yaml.safe_load(path.read_text(encoding="utf-8"))
|
|
713
|
+
data["plans"] = {"path": ".devflow/plans"}
|
|
714
|
+
data["templates"] = {"path": ".devflow/templates"}
|
|
715
|
+
path.write_text(yaml.safe_dump(data), encoding="utf-8")
|
|
716
|
+
|
|
717
|
+
loaded = ConfigManager(tmp_path).load()
|
|
718
|
+
|
|
719
|
+
assert loaded.specifications_path.name == "specs"
|
|
720
|
+
assert not hasattr(loaded, "plans_path")
|
|
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
|
|
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.4.1 → devflow_toolkit-0.4.2}/src/devflow/profiles/django-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.4.1 → devflow_toolkit-0.4.2}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|