devflow-toolkit 0.3.28__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.3.28 → devflow_toolkit-0.4.2}/CHANGELOG.md +80 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/PKG-INFO +82 -27
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/README.md +12 -4
- devflow_toolkit-0.4.2/docs/PRESENTATION.md +145 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/docs/REFERENCE.md +81 -26
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/pyproject.toml +1 -1
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/spec.py +10 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/status.py +30 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/config.py +24 -36
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/discovery.py +132 -1
- devflow_toolkit-0.4.2/src/devflow/core/security_baseline.py +366 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/specification.py +86 -1
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/prompts/__init__.py +103 -15
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/prompts/discovery.md +41 -5
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/prompts/spec.md +6 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_cli.py +5 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_discovery_decisions.py +24 -2
- devflow_toolkit-0.4.2/tests/test_security_baseline.py +338 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_spec_workflow.py +1 -1
- devflow_toolkit-0.3.28/docs/DEMO.md +0 -159
- devflow_toolkit-0.3.28/docs/PRESENTATION.md +0 -155
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/.gitignore +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/LICENSE +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/docs/PUBLISHING.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/antigravity.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/cli.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/approve.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/config.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/reopen.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/commands/security.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/file_types.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/security_tools.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/spec_workflow.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/hooks/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/hooks/claude_guard.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/src/devflow/prompts/discovery-repair.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_discovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_security_tools.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_state.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.2}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,86 @@
|
|
|
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
|
+
|
|
19
|
+
## 0.4.1 - 2026-11-10
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- The specification agent asks about every missing decision in its own
|
|
24
|
+
session, in batches of up to six, instead of returning to Discovery
|
|
25
|
+
when more than three are missing. It returns only when the user does
|
|
26
|
+
not answer or prefers to decide later.
|
|
27
|
+
- The Discovery budget only limits optional questions: critical and
|
|
28
|
+
blocking decisions are always asked, even beyond the cap or the round
|
|
29
|
+
limit, and decisions resolved from evidence do not count.
|
|
30
|
+
- New Discovery defaults: `follow_up: 6`, `maximum: 20`,
|
|
31
|
+
`max_rounds: 5`. `devflow spec` warns when a project still has the old
|
|
32
|
+
defaults (3, 12, 3).
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- DevFlow lists, without tokens, the level-1 ASVS controls that no
|
|
37
|
+
question, answer, evidence or accepted risk cites yet, in the
|
|
38
|
+
Decision Context and in `devflow status`. Discovery cites the ASVS
|
|
39
|
+
identifier of each control it covers and groups related controls in
|
|
40
|
+
one question.
|
|
41
|
+
|
|
42
|
+
### Package
|
|
43
|
+
|
|
44
|
+
- Package version is `0.4.1`, published on TestPyPI and PyPI.
|
|
45
|
+
|
|
46
|
+
## 0.4.0 - 2026-11-10
|
|
47
|
+
|
|
48
|
+
### Added
|
|
49
|
+
|
|
50
|
+
- Security baseline from OWASP ASVS 5.0. DevFlow detects, without
|
|
51
|
+
tokens, the ASVS areas a change touches (authentication, sessions,
|
|
52
|
+
authorization, input validation and encoding, web frontend, files,
|
|
53
|
+
APIs, data protection and deployment configuration) and lists their
|
|
54
|
+
level-1 and level-2 controls, with ASVS identifiers, in the Decision
|
|
55
|
+
Context.
|
|
56
|
+
- Discovery covers every level-1 control with evidence or a question,
|
|
57
|
+
and offers level-2 controls as the next level.
|
|
58
|
+
- `accepted_risks` in `discovery.yaml`: a level-1 control the user
|
|
59
|
+
decides not to apply now. Discovery stays incomplete until the risk is
|
|
60
|
+
explicitly accepted; it records who accepted it, when and an optional
|
|
61
|
+
review date.
|
|
62
|
+
- Section 4 of the spec includes `### Security considerations` (threat,
|
|
63
|
+
mitigation, AC and ASVS control). DevFlow adds the level-1 controls as
|
|
64
|
+
a checklist when the agent omits it, and always writes
|
|
65
|
+
`### Accepted security risks` from Discovery.
|
|
66
|
+
- `devflow status` lists the detected security areas and accepted
|
|
67
|
+
risks.
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
|
|
71
|
+
- The Decision Context cap grew from 8,000 to 12,000 characters to fit
|
|
72
|
+
the security baseline.
|
|
73
|
+
- `docs/PRESENTATION.md` is now an invitation for a team to try DevFlow
|
|
74
|
+
on their own projects and send feedback, with a 30-minute trial and a
|
|
75
|
+
feedback questionnaire.
|
|
76
|
+
|
|
77
|
+
### Removed
|
|
78
|
+
|
|
79
|
+
- `docs/DEMO.md`, which depended on a specific example project.
|
|
80
|
+
|
|
81
|
+
### Package
|
|
82
|
+
|
|
83
|
+
- Package version is `0.4.0`, published on TestPyPI only.
|
|
84
|
+
|
|
5
85
|
## 0.3.28 - 2026-11-09
|
|
6
86
|
|
|
7
87
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.
|
|
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.
|
|
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.
|
|
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.
|
|
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 |
|
|
@@ -698,18 +694,21 @@ decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
|
698
694
|
discovery:
|
|
699
695
|
question_budget:
|
|
700
696
|
initial: 6
|
|
701
|
-
follow_up:
|
|
702
|
-
maximum:
|
|
697
|
+
follow_up: 6
|
|
698
|
+
maximum: 20
|
|
703
699
|
interaction:
|
|
704
700
|
batch_size: 6
|
|
705
|
-
max_rounds:
|
|
701
|
+
max_rounds: 5
|
|
706
702
|
assumptions:
|
|
707
703
|
enabled: true
|
|
708
704
|
```
|
|
709
705
|
|
|
710
|
-
The budget limits questions
|
|
711
|
-
|
|
712
|
-
|
|
706
|
+
The budget only limits optional questions. Critical and blocking
|
|
707
|
+
decisions are always asked in the same session, even beyond the cap or
|
|
708
|
+
the round limit, and decisions resolved from project evidence do not
|
|
709
|
+
count. Projects initialized before `0.4.1` keep the old limits
|
|
710
|
+
(`follow_up: 3`, `maximum: 12`, `max_rounds: 3`); `devflow spec` warns
|
|
711
|
+
about them and suggests the new values.
|
|
713
712
|
|
|
714
713
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
715
714
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -780,16 +779,17 @@ specification that still lists open questions.
|
|
|
780
779
|
In an interactive run the specification agent checks for missing
|
|
781
780
|
decisions **before** writing:
|
|
782
781
|
|
|
783
|
-
- **
|
|
784
|
-
the same rules as Discovery
|
|
785
|
-
next-level option with its
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
`
|
|
792
|
-
|
|
782
|
+
- **Missing decisions:** it asks you about all of them in the same
|
|
783
|
+
session, in batches of up to six, with the same rules as Discovery
|
|
784
|
+
(recommended level-1 option first, a next-level option with its
|
|
785
|
+
reason, security never assumed). Your answers are recorded in
|
|
786
|
+
`discovery.yaml` as decisions resolved by you, and then it writes the
|
|
787
|
+
spec. DevFlow writes the new Discovery digest into the spec header,
|
|
788
|
+
because the agent cannot compute it.
|
|
789
|
+
- **No answer, or you prefer to decide later:** it records them as
|
|
790
|
+
`pending`, sets the record to `awaiting_clarification` and stops
|
|
791
|
+
without writing `spec.md`, so no tokens are spent on a document that
|
|
792
|
+
would be discarded.
|
|
793
793
|
|
|
794
794
|
If the agent leaves `discovery.yaml` invalid, DevFlow writes no
|
|
795
795
|
specification and asks you to run `devflow spec --continue`, which
|
|
@@ -863,6 +863,55 @@ in `devflow status`, after approval in the `Next:` line, and in
|
|
|
863
863
|
that subsection itself, with a ready-to-run `devflow spec "..."` command
|
|
864
864
|
for each item; the agent does not write it.
|
|
865
865
|
|
|
866
|
+
### Security baseline (OWASP ASVS 5.0)
|
|
867
|
+
|
|
868
|
+
DevFlow organizes security with the
|
|
869
|
+
[OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
|
|
870
|
+
5.0, which groups controls by level: L1 basic, L2 standard, L3 high.
|
|
871
|
+
|
|
872
|
+
1. **Detection, without tokens.** DevFlow reads the request and the
|
|
873
|
+
Discovery questions and answers, and detects the ASVS areas the
|
|
874
|
+
change touches: authentication (V6), sessions (V7), authorization
|
|
875
|
+
(V8), input validation and encoding (V2, V1), web frontend (V3), file
|
|
876
|
+
handling (V5), APIs (V4), data protection (V14) and deployment
|
|
877
|
+
configuration (V13).
|
|
878
|
+
2. **Discovery covers level 1.** The Decision Context lists the
|
|
879
|
+
level-1 controls of each area, with their ASVS identifiers. Every one
|
|
880
|
+
must be covered: by project evidence or by a question whose
|
|
881
|
+
recommended option applies it. Level-2 controls are offered as the
|
|
882
|
+
next level.
|
|
883
|
+
3. **Accepted risks have an owner.** If you decide not to apply a
|
|
884
|
+
level-1 control now, it is recorded in `accepted_risks` and Discovery
|
|
885
|
+
stays incomplete until you accept it explicitly:
|
|
886
|
+
|
|
887
|
+
```yaml
|
|
888
|
+
accepted_risks:
|
|
889
|
+
- id: R1
|
|
890
|
+
control: "6.3.1"
|
|
891
|
+
risk: "Login has no protection against password guessing yet."
|
|
892
|
+
reason: "Internal tool behind the VPN; planned for the next spec."
|
|
893
|
+
status: accepted
|
|
894
|
+
accepted_by: jonathan
|
|
895
|
+
accepted_at: "2026-11-10T09:00:00Z"
|
|
896
|
+
review_by: "2026-12-31"
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
4. **The spec shows the security work.** Section 4 contains
|
|
900
|
+
`### Security considerations`, a table of threat, mitigation,
|
|
901
|
+
acceptance criterion and ASVS control written by the agent. If the
|
|
902
|
+
agent omits it, DevFlow adds the level-1 controls as a review
|
|
903
|
+
checklist. DevFlow always writes `### Accepted security risks` from
|
|
904
|
+
Discovery.
|
|
905
|
+
|
|
906
|
+
DevFlow also checks, without tokens, which level-1 controls no question,
|
|
907
|
+
answer, evidence or accepted risk cites by its ASVS identifier, and
|
|
908
|
+
lists them in the Decision Context and in `devflow status`, so
|
|
909
|
+
Discovery covers them before the spec is written.
|
|
910
|
+
|
|
911
|
+
`devflow status` lists the detected areas and the accepted risks. The
|
|
912
|
+
control texts are short summaries; the ASVS document is the normative
|
|
913
|
+
reference.
|
|
914
|
+
|
|
866
915
|
## Workflow
|
|
867
916
|
|
|
868
917
|
1. Initialize the project with `devflow init`.
|
|
@@ -876,7 +925,7 @@ for each item; the agent does not write it.
|
|
|
876
925
|
8. If artifacts exist without workflow state, diagnose with
|
|
877
926
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
878
927
|
|
|
879
|
-
Available commands in `0.
|
|
928
|
+
Available commands in `0.4.2`:
|
|
880
929
|
|
|
881
930
|
| Command | Status |
|
|
882
931
|
| --- | --- |
|
|
@@ -1109,7 +1158,7 @@ devflow approve 001
|
|
|
1109
1158
|
```
|
|
1110
1159
|
|
|
1111
1160
|
Approval is explicit and binds the decision to the current artifact
|
|
1112
|
-
digests. For a `0.
|
|
1161
|
+
digests. For a `0.4.2` change it binds `spec.md`, `discovery.yaml` and,
|
|
1113
1162
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1114
1163
|
same approval is a no-op. If an artifact changes after validation,
|
|
1115
1164
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1120,7 +1169,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1120
1169
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1121
1170
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1122
1171
|
|
|
1123
|
-
Only the `spec` stage is available in `0.
|
|
1172
|
+
Only the `spec` stage is available in `0.4.2`, so `--stage` is optional
|
|
1124
1173
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1125
1174
|
rejected. There are no `plan`, `implement` or
|
|
1126
1175
|
`review` commands in this release.
|
|
@@ -1203,12 +1252,18 @@ my-project/
|
|
|
1203
1252
|
│ ├── spec.md # only when Discovery is complete
|
|
1204
1253
|
│ ├── workflow.yaml # projection of events.jsonl
|
|
1205
1254
|
│ ├── events.jsonl # append-only source of truth
|
|
1255
|
+
│ ├── history/ # earlier versions of spec.md
|
|
1206
1256
|
│ └── .lock # per-change advisory lock
|
|
1207
1257
|
├── AGENTS.md
|
|
1208
1258
|
├── opencode.json # when OpenCode is selected
|
|
1209
1259
|
└── .opencode/agents/ # when OpenCode is selected
|
|
1210
1260
|
```
|
|
1211
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
|
+
|
|
1212
1267
|
All managed files are identifiable: Markdown files contain
|
|
1213
1268
|
`<!-- devflow:managed -->`, and JSON files contain `"devflowManaged":
|
|
1214
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.
|
|
35
|
+
Current version: `0.4.2` · Python 3.11+ · Linux and macOS
|
|
36
36
|
|
|
37
37
|
## Install
|
|
38
38
|
|
|
@@ -99,8 +99,8 @@ devflow spec --continue 001
|
|
|
99
99
|
|
|
100
100
|
Each command opens at most one chat. Run it again if there are pending
|
|
101
101
|
questions, and once more to write `spec.md`. If the agent writing the
|
|
102
|
-
spec finds
|
|
103
|
-
writes the spec. Exit the chat only after the agent says `spec.md` is
|
|
102
|
+
spec finds missing decisions, it asks you about all of them right there
|
|
103
|
+
and then writes the spec. Exit the chat only after the agent says `spec.md` is
|
|
104
104
|
written.
|
|
105
105
|
|
|
106
106
|
Prefer one command for both phases? Add `--auto` to the first command:
|
|
@@ -177,6 +177,14 @@ written outside the normal flow.
|
|
|
177
177
|
- **Fewer wasted tokens.** Questions are cheap; rewriting code after a
|
|
178
178
|
misunderstanding is expensive. An approved spec avoids most of those
|
|
179
179
|
rewrites.
|
|
180
|
+
- **Security from the spec.** DevFlow detects the OWASP ASVS areas a
|
|
181
|
+
change touches (login, sessions, permissions, forms, files, APIs,
|
|
182
|
+
personal data). Discovery covers the level-1 controls and offers
|
|
183
|
+
level 2 as the next step; a risk you decide to accept is recorded with
|
|
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.
|
|
180
188
|
- **Grow step by step.** After approval, `devflow status 001` suggests
|
|
181
189
|
the next level as a new spec.
|
|
182
190
|
- **Small changes don't need DevFlow.** Use it when a change involves
|
|
@@ -191,7 +199,7 @@ written outside the normal flow.
|
|
|
191
199
|
rule.
|
|
192
200
|
- [Changelog](CHANGELOG.md)
|
|
193
201
|
- [How to publish a release](docs/PUBLISHING.md)
|
|
194
|
-
- [
|
|
202
|
+
- [Invitation to try DevFlow and give feedback](docs/PRESENTATION.md)
|
|
195
203
|
(in Spanish)
|
|
196
204
|
|
|
197
205
|
## Acknowledgments
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# DevFlow: invitación a probar y dar feedback
|
|
2
|
+
|
|
3
|
+
Te pedimos que pruebes DevFlow en un proyecto tuyo y nos cuentes qué te
|
|
4
|
+
pareció. No hace falta desarrollar nada sobre la herramienta: solo usarla
|
|
5
|
+
y darnos tu opinión.
|
|
6
|
+
|
|
7
|
+
- Paquete: <https://pypi.org/project/devflow-toolkit/>
|
|
8
|
+
- Guía corta: [README](../README.md)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Qué es, en 30 segundos
|
|
13
|
+
|
|
14
|
+
> Hoy cada uno trabaja con la IA a su manera. Le pedimos algo ambiguo,
|
|
15
|
+
> itera corrigiendo y a veces deja código o alcance que nadie pidió: es
|
|
16
|
+
> deuda técnica que creamos sin darnos cuenta. DevFlow pone un paso común
|
|
17
|
+
> antes de programar: **la IA pregunta, nosotros decidimos, queda una
|
|
18
|
+
> spec aprobada y el agente implementa solo eso.**
|
|
19
|
+
|
|
20
|
+
La idea no es generar código más rápido, sino decidir mejor antes de
|
|
21
|
+
generarlo. Pensar es barato; rehacer código es caro.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Por qué puede servirnos
|
|
26
|
+
|
|
27
|
+
**Lo caro de un agente no es escribir, es corregir.** Cuando le pedimos
|
|
28
|
+
algo ambiguo, explora todo el repositorio, escribe código y tests,
|
|
29
|
+
nosotros lo rechazamos y vuelve a empezar con un contexto cada vez más
|
|
30
|
+
grande. Cada vuelta sale más cara que la anterior.
|
|
31
|
+
|
|
32
|
+
| Lo que pasa hoy | Lo que propone DevFlow |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| El agente itera corrigiendo | Las decisiones se toman **antes**, en rondas de preguntas baratas |
|
|
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
|
+
| Cada uno usa la IA a su manera | Mismo flujo y mismas reglas de arquitectura y código en cada proyecto |
|
|
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 los controles de seguridad básicos (OWASP ASVS nivel 1) que toca el cambio, y los riesgos que se aceptan quedan con nombre |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Cómo probarlo (unos 30 minutos)
|
|
43
|
+
|
|
44
|
+
**Requisitos:** Linux o macOS, Python 3.11 o superior, y Claude Code u
|
|
45
|
+
OpenCode instalado y con sesión iniciada.
|
|
46
|
+
|
|
47
|
+
Elige un proyecto real tuyo y un **cambio mediano** que tengas pendiente
|
|
48
|
+
(una funcionalidad, una integración o un refactor), no algo trivial.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
cd mi-proyecto
|
|
52
|
+
python3 -m venv .venv && source .venv/bin/activate # si no tienes uno
|
|
53
|
+
pip install devflow-toolkit
|
|
54
|
+
|
|
55
|
+
devflow init --harness claude-code --language es # o --harness opencode
|
|
56
|
+
devflow spec "Describe aquí tu cambio"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
1. Se abre el chat del agente. **Responde sus preguntas.** Cuando diga
|
|
60
|
+
que terminó, sal con `/exit`.
|
|
61
|
+
2. Ejecuta `devflow spec --continue 001` las veces que haga falta, hasta
|
|
62
|
+
que quede escrita la spec. `devflow status 001` siempre dice qué
|
|
63
|
+
sigue.
|
|
64
|
+
3. Lee `.devflow/specs/001-…/spec.md`. Si te convence:
|
|
65
|
+
`devflow approve 001`.
|
|
66
|
+
4. Opcional: abre tu agente normalmente y pídele
|
|
67
|
+
`Implementa .devflow/specs/001-…/spec.md`.
|
|
68
|
+
|
|
69
|
+
Al terminar, si no quieres conservar nada: borra `.devflow/`,
|
|
70
|
+
`AGENTS.md` o `CLAUDE.md` (y `.pre-commit-config.yaml` si aceptaste los
|
|
71
|
+
controles de seguridad), quita de `.gitignore` el bloque entre
|
|
72
|
+
`# devflow:managed:begin` y `# devflow:managed:end`, y desinstala con
|
|
73
|
+
`pip uninstall devflow-toolkit`.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Qué te pedimos que nos cuentes
|
|
78
|
+
|
|
79
|
+
Responde lo que puedas; las respuestas cortas también sirven.
|
|
80
|
+
|
|
81
|
+
**Sobre las preguntas (Discovery)**
|
|
82
|
+
|
|
83
|
+
1. ¿Las preguntas fueron útiles o te parecieron obvias o excesivas?
|
|
84
|
+
2. ¿Te preguntó algo que no habías pensado? ¿Qué?
|
|
85
|
+
3. ¿Cuántas rondas necesitaste? ¿Se te hizo largo?
|
|
86
|
+
4. ¿Las opciones de "siguiente nivel" y sus explicaciones te aportaron
|
|
87
|
+
algo?
|
|
88
|
+
5. ¿Las preguntas de seguridad te parecieron útiles o excesivas?
|
|
89
|
+
|
|
90
|
+
**Sobre la spec**
|
|
91
|
+
|
|
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?
|
|
95
|
+
|
|
96
|
+
**Sobre la implementación (si la probaste)**
|
|
97
|
+
|
|
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?
|
|
100
|
+
|
|
101
|
+
**En general**
|
|
102
|
+
|
|
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
|
|
106
|
+
cuáles no?
|
|
107
|
+
14. Si algo falló: ¿qué comando ejecutaste y qué mensaje salió?
|
|
108
|
+
|
|
109
|
+
Envía tus respuestas a **[nombre o canal de contacto]**.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Limitaciones conocidas
|
|
114
|
+
|
|
115
|
+
- **Versión alfa (0.4.x).** Puede tener errores; justo por eso nos
|
|
116
|
+
interesa tu feedback.
|
|
117
|
+
- **Solo cubre la especificación.** La implementación la hace tu agente;
|
|
118
|
+
DevFlow todavía no verifica el resultado.
|
|
119
|
+
- **Agentes verificados:** Claude Code y OpenCode. Codex, Kiro y
|
|
120
|
+
Antigravity no están verificados.
|
|
121
|
+
- **Solo Linux y macOS.**
|
|
122
|
+
- **La calidad de las preguntas depende del modelo** que use tu agente.
|
|
123
|
+
- **No compensa en cambios triviales.** Para eso, sigue como siempre.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Preguntas frecuentes
|
|
128
|
+
|
|
129
|
+
**¿Mis datos salen de mi equipo?**
|
|
130
|
+
DevFlow guarda todo en tu repositorio, en `.devflow/`. No hay servicio
|
|
131
|
+
externo ni telemetría. Lo único que sale es lo que ya envía tu agente a
|
|
132
|
+
su modelo.
|
|
133
|
+
|
|
134
|
+
**¿Gasta muchos tokens?**
|
|
135
|
+
Las preguntas gastan poco, porque son sobre todo lectura. La validación
|
|
136
|
+
la hace DevFlow en local y no gasta tokens.
|
|
137
|
+
|
|
138
|
+
**¿Qué pasa si quiero cambiar una spec ya aprobada?**
|
|
139
|
+
`devflow reopen 001` retira la aprobación, guarda la versión anterior y
|
|
140
|
+
te deja corregirla.
|
|
141
|
+
|
|
142
|
+
**¿Me ofrece instalar algo más?**
|
|
143
|
+
Tras la primera aprobación te ofrece herramientas de seguridad locales
|
|
144
|
+
(Semgrep, Bandit, pip-audit, gitleaks) que revisan el código en cada
|
|
145
|
+
commit. Es opcional: puedes responder que no.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DevFlow Toolkit
|
|
2
2
|
|
|
3
|
-
**Current version: `0.
|
|
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.
|
|
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.
|
|
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 |
|
|
@@ -666,18 +662,21 @@ decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
|
666
662
|
discovery:
|
|
667
663
|
question_budget:
|
|
668
664
|
initial: 6
|
|
669
|
-
follow_up:
|
|
670
|
-
maximum:
|
|
665
|
+
follow_up: 6
|
|
666
|
+
maximum: 20
|
|
671
667
|
interaction:
|
|
672
668
|
batch_size: 6
|
|
673
|
-
max_rounds:
|
|
669
|
+
max_rounds: 5
|
|
674
670
|
assumptions:
|
|
675
671
|
enabled: true
|
|
676
672
|
```
|
|
677
673
|
|
|
678
|
-
The budget limits questions
|
|
679
|
-
|
|
680
|
-
|
|
674
|
+
The budget only limits optional questions. Critical and blocking
|
|
675
|
+
decisions are always asked in the same session, even beyond the cap or
|
|
676
|
+
the round limit, and decisions resolved from project evidence do not
|
|
677
|
+
count. Projects initialized before `0.4.1` keep the old limits
|
|
678
|
+
(`follow_up: 3`, `maximum: 12`, `max_rounds: 3`); `devflow spec` warns
|
|
679
|
+
about them and suggests the new values.
|
|
681
680
|
|
|
682
681
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
683
682
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -748,16 +747,17 @@ specification that still lists open questions.
|
|
|
748
747
|
In an interactive run the specification agent checks for missing
|
|
749
748
|
decisions **before** writing:
|
|
750
749
|
|
|
751
|
-
- **
|
|
752
|
-
the same rules as Discovery
|
|
753
|
-
next-level option with its
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
`
|
|
760
|
-
|
|
750
|
+
- **Missing decisions:** it asks you about all of them in the same
|
|
751
|
+
session, in batches of up to six, with the same rules as Discovery
|
|
752
|
+
(recommended level-1 option first, a next-level option with its
|
|
753
|
+
reason, security never assumed). Your answers are recorded in
|
|
754
|
+
`discovery.yaml` as decisions resolved by you, and then it writes the
|
|
755
|
+
spec. DevFlow writes the new Discovery digest into the spec header,
|
|
756
|
+
because the agent cannot compute it.
|
|
757
|
+
- **No answer, or you prefer to decide later:** it records them as
|
|
758
|
+
`pending`, sets the record to `awaiting_clarification` and stops
|
|
759
|
+
without writing `spec.md`, so no tokens are spent on a document that
|
|
760
|
+
would be discarded.
|
|
761
761
|
|
|
762
762
|
If the agent leaves `discovery.yaml` invalid, DevFlow writes no
|
|
763
763
|
specification and asks you to run `devflow spec --continue`, which
|
|
@@ -831,6 +831,55 @@ in `devflow status`, after approval in the `Next:` line, and in
|
|
|
831
831
|
that subsection itself, with a ready-to-run `devflow spec "..."` command
|
|
832
832
|
for each item; the agent does not write it.
|
|
833
833
|
|
|
834
|
+
### Security baseline (OWASP ASVS 5.0)
|
|
835
|
+
|
|
836
|
+
DevFlow organizes security with the
|
|
837
|
+
[OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
|
|
838
|
+
5.0, which groups controls by level: L1 basic, L2 standard, L3 high.
|
|
839
|
+
|
|
840
|
+
1. **Detection, without tokens.** DevFlow reads the request and the
|
|
841
|
+
Discovery questions and answers, and detects the ASVS areas the
|
|
842
|
+
change touches: authentication (V6), sessions (V7), authorization
|
|
843
|
+
(V8), input validation and encoding (V2, V1), web frontend (V3), file
|
|
844
|
+
handling (V5), APIs (V4), data protection (V14) and deployment
|
|
845
|
+
configuration (V13).
|
|
846
|
+
2. **Discovery covers level 1.** The Decision Context lists the
|
|
847
|
+
level-1 controls of each area, with their ASVS identifiers. Every one
|
|
848
|
+
must be covered: by project evidence or by a question whose
|
|
849
|
+
recommended option applies it. Level-2 controls are offered as the
|
|
850
|
+
next level.
|
|
851
|
+
3. **Accepted risks have an owner.** If you decide not to apply a
|
|
852
|
+
level-1 control now, it is recorded in `accepted_risks` and Discovery
|
|
853
|
+
stays incomplete until you accept it explicitly:
|
|
854
|
+
|
|
855
|
+
```yaml
|
|
856
|
+
accepted_risks:
|
|
857
|
+
- id: R1
|
|
858
|
+
control: "6.3.1"
|
|
859
|
+
risk: "Login has no protection against password guessing yet."
|
|
860
|
+
reason: "Internal tool behind the VPN; planned for the next spec."
|
|
861
|
+
status: accepted
|
|
862
|
+
accepted_by: jonathan
|
|
863
|
+
accepted_at: "2026-11-10T09:00:00Z"
|
|
864
|
+
review_by: "2026-12-31"
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
4. **The spec shows the security work.** Section 4 contains
|
|
868
|
+
`### Security considerations`, a table of threat, mitigation,
|
|
869
|
+
acceptance criterion and ASVS control written by the agent. If the
|
|
870
|
+
agent omits it, DevFlow adds the level-1 controls as a review
|
|
871
|
+
checklist. DevFlow always writes `### Accepted security risks` from
|
|
872
|
+
Discovery.
|
|
873
|
+
|
|
874
|
+
DevFlow also checks, without tokens, which level-1 controls no question,
|
|
875
|
+
answer, evidence or accepted risk cites by its ASVS identifier, and
|
|
876
|
+
lists them in the Decision Context and in `devflow status`, so
|
|
877
|
+
Discovery covers them before the spec is written.
|
|
878
|
+
|
|
879
|
+
`devflow status` lists the detected areas and the accepted risks. The
|
|
880
|
+
control texts are short summaries; the ASVS document is the normative
|
|
881
|
+
reference.
|
|
882
|
+
|
|
834
883
|
## Workflow
|
|
835
884
|
|
|
836
885
|
1. Initialize the project with `devflow init`.
|
|
@@ -844,7 +893,7 @@ for each item; the agent does not write it.
|
|
|
844
893
|
8. If artifacts exist without workflow state, diagnose with
|
|
845
894
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
846
895
|
|
|
847
|
-
Available commands in `0.
|
|
896
|
+
Available commands in `0.4.2`:
|
|
848
897
|
|
|
849
898
|
| Command | Status |
|
|
850
899
|
| --- | --- |
|
|
@@ -1077,7 +1126,7 @@ devflow approve 001
|
|
|
1077
1126
|
```
|
|
1078
1127
|
|
|
1079
1128
|
Approval is explicit and binds the decision to the current artifact
|
|
1080
|
-
digests. For a `0.
|
|
1129
|
+
digests. For a `0.4.2` change it binds `spec.md`, `discovery.yaml` and,
|
|
1081
1130
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1082
1131
|
same approval is a no-op. If an artifact changes after validation,
|
|
1083
1132
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1088,7 +1137,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1088
1137
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1089
1138
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1090
1139
|
|
|
1091
|
-
Only the `spec` stage is available in `0.
|
|
1140
|
+
Only the `spec` stage is available in `0.4.2`, so `--stage` is optional
|
|
1092
1141
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1093
1142
|
rejected. There are no `plan`, `implement` or
|
|
1094
1143
|
`review` commands in this release.
|
|
@@ -1171,12 +1220,18 @@ my-project/
|
|
|
1171
1220
|
│ ├── spec.md # only when Discovery is complete
|
|
1172
1221
|
│ ├── workflow.yaml # projection of events.jsonl
|
|
1173
1222
|
│ ├── events.jsonl # append-only source of truth
|
|
1223
|
+
│ ├── history/ # earlier versions of spec.md
|
|
1174
1224
|
│ └── .lock # per-change advisory lock
|
|
1175
1225
|
├── AGENTS.md
|
|
1176
1226
|
├── opencode.json # when OpenCode is selected
|
|
1177
1227
|
└── .opencode/agents/ # when OpenCode is selected
|
|
1178
1228
|
```
|
|
1179
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
|
+
|
|
1180
1235
|
All managed files are identifiable: Markdown files contain
|
|
1181
1236
|
`<!-- devflow:managed -->`, and JSON files contain `"devflowManaged":
|
|
1182
1237
|
true`. Unmanaged files with the same names are left untouched and
|