devflow-toolkit 0.3.27__tar.gz → 0.4.1__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.
Files changed (93) hide show
  1. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/CHANGELOG.md +91 -0
  2. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/PKG-INFO +140 -29
  3. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/README.md +43 -14
  4. devflow_toolkit-0.4.1/docs/PRESENTATION.md +144 -0
  5. devflow_toolkit-0.4.1/docs/PUBLISHING.md +266 -0
  6. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/docs/REFERENCE.md +139 -28
  7. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/pyproject.toml +1 -2
  8. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/spec.py +10 -0
  9. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/status.py +30 -0
  10. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/config.py +21 -9
  11. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/discovery.py +132 -1
  12. devflow_toolkit-0.4.1/src/devflow/core/security_baseline.py +366 -0
  13. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/specification.py +86 -1
  14. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/prompts/__init__.py +103 -15
  15. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/prompts/discovery.md +41 -5
  16. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/prompts/spec.md +6 -0
  17. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_discovery_decisions.py +4 -2
  18. devflow_toolkit-0.4.1/tests/test_security_baseline.py +338 -0
  19. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_spec_workflow.py +1 -1
  20. devflow_toolkit-0.3.27/PUBLISHING.md +0 -155
  21. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/.gitignore +0 -0
  22. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/LICENSE +0 -0
  23. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/__init__.py +0 -0
  24. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/__init__.py +0 -0
  25. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/agents.py +0 -0
  26. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/antigravity.py +0 -0
  27. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/base.py +0 -0
  28. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/claude_code.py +0 -0
  29. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/codex.py +0 -0
  30. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/detector.py +0 -0
  31. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/instructions.py +0 -0
  32. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/kiro.py +0 -0
  33. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/opencode.py +0 -0
  34. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/adapters/registry.py +0 -0
  35. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/cli.py +0 -0
  36. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/__init__.py +0 -0
  37. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/approve.py +0 -0
  38. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/config.py +0 -0
  39. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/doctor.py +0 -0
  40. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/harness.py +0 -0
  41. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/init.py +0 -0
  42. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/recover.py +0 -0
  43. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/reopen.py +0 -0
  44. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/commands/security.py +0 -0
  45. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/__init__.py +0 -0
  46. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/architecture.py +0 -0
  47. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/__init__.py +0 -0
  48. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/errors.py +0 -0
  49. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/models.py +0 -0
  50. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/store.py +0 -0
  51. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/clock.py +0 -0
  52. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/constitution.py +0 -0
  53. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/file_types.py +0 -0
  54. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/ports.py +0 -0
  55. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/profile_manager.py +0 -0
  56. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/project.py +0 -0
  57. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/recovery.py +0 -0
  58. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/security_tools.py +0 -0
  59. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/spec_workflow.py +0 -0
  60. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/__init__.py +0 -0
  61. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/errors.py +0 -0
  62. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/events.py +0 -0
  63. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/locator.py +0 -0
  64. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/lock.py +0 -0
  65. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/manager.py +0 -0
  66. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/models.py +0 -0
  67. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/core/state/transitions.py +0 -0
  68. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/hooks/__init__.py +0 -0
  69. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/hooks/claude_guard.py +0 -0
  70. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/models/__init__.py +0 -0
  71. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/models/profile.py +0 -0
  72. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/models/project.py +0 -0
  73. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
  74. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
  75. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/architecture.md +0 -0
  76. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
  77. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/constitution.md +0 -0
  78. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/profile.yaml +0 -0
  79. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
  80. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/django-backend/profile.yaml +0 -0
  81. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
  82. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
  83. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/src/devflow/prompts/discovery-repair.md +0 -0
  84. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_cli.py +0 -0
  85. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_discovery.py +0 -0
  86. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_event_log.py +0 -0
  87. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_greenfield.py +0 -0
  88. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_hardening.py +0 -0
  89. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_harness_adapters.py +0 -0
  90. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_recovery.py +0 -0
  91. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_security_tools.py +0 -0
  92. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_state.py +0 -0
  93. {devflow_toolkit-0.3.27 → devflow_toolkit-0.4.1}/tests/test_state_replay.py +0 -0
@@ -2,6 +2,97 @@
2
2
 
3
3
  All notable changes to DevFlow Toolkit are documented in this file.
4
4
 
5
+ ## 0.4.1 - 2026-11-10
6
+
7
+ ### Changed
8
+
9
+ - The specification agent asks about every missing decision in its own
10
+ session, in batches of up to six, instead of returning to Discovery
11
+ when more than three are missing. It returns only when the user does
12
+ not answer or prefers to decide later.
13
+ - The Discovery budget only limits optional questions: critical and
14
+ blocking decisions are always asked, even beyond the cap or the round
15
+ limit, and decisions resolved from evidence do not count.
16
+ - New Discovery defaults: `follow_up: 6`, `maximum: 20`,
17
+ `max_rounds: 5`. `devflow spec` warns when a project still has the old
18
+ defaults (3, 12, 3).
19
+
20
+ ### Added
21
+
22
+ - DevFlow lists, without tokens, the level-1 ASVS controls that no
23
+ question, answer, evidence or accepted risk cites yet, in the
24
+ Decision Context and in `devflow status`. Discovery cites the ASVS
25
+ identifier of each control it covers and groups related controls in
26
+ one question.
27
+
28
+ ### Package
29
+
30
+ - Package version is `0.4.1`. Published on TestPyPI only; PyPI stays on
31
+ `0.3.28`.
32
+
33
+ ## 0.4.0 - 2026-11-10
34
+
35
+ ### Added
36
+
37
+ - Security baseline from OWASP ASVS 5.0. DevFlow detects, without
38
+ tokens, the ASVS areas a change touches (authentication, sessions,
39
+ authorization, input validation and encoding, web frontend, files,
40
+ APIs, data protection and deployment configuration) and lists their
41
+ level-1 and level-2 controls, with ASVS identifiers, in the Decision
42
+ Context.
43
+ - Discovery covers every level-1 control with evidence or a question,
44
+ and offers level-2 controls as the next level.
45
+ - `accepted_risks` in `discovery.yaml`: a level-1 control the user
46
+ decides not to apply now. Discovery stays incomplete until the risk is
47
+ explicitly accepted; it records who accepted it, when and an optional
48
+ review date.
49
+ - Section 4 of the spec includes `### Security considerations` (threat,
50
+ mitigation, AC and ASVS control). DevFlow adds the level-1 controls as
51
+ a checklist when the agent omits it, and always writes
52
+ `### Accepted security risks` from Discovery.
53
+ - `devflow status` lists the detected security areas and accepted
54
+ risks.
55
+
56
+ ### Changed
57
+
58
+ - The Decision Context cap grew from 8,000 to 12,000 characters to fit
59
+ the security baseline.
60
+ - `docs/PRESENTATION.md` is now an invitation for a team to try DevFlow
61
+ on their own projects and send feedback, with a 30-minute trial and a
62
+ feedback questionnaire.
63
+
64
+ ### Removed
65
+
66
+ - `docs/DEMO.md`, which depended on a specific example project.
67
+
68
+ ### Package
69
+
70
+ - Package version is `0.4.0`. Published on TestPyPI only; PyPI stays on
71
+ `0.3.28`.
72
+
73
+ ## 0.3.28 - 2026-11-09
74
+
75
+ ### Changed
76
+
77
+ - The PyPI description (`docs/REFERENCE.md`) now opens with the new
78
+ introduction (why DevFlow trades code rounds for question rounds),
79
+ the install command and the command flow, before the full reference.
80
+ - The publishing manual moved to `docs/PUBLISHING.md` and was rewritten
81
+ step by step for TestPyPI and PyPI.
82
+
83
+ ### Added
84
+
85
+ - `docs/PRESENTATION.md`: a one-page presentation for a development
86
+ team, with the problem, the solution, a pilot proposal, limitations
87
+ and common questions (in Spanish).
88
+ - `docs/DEMO.md`: how to prepare the example project and run a
89
+ 10-minute live demo, with a plan B and how to reset afterwards (in
90
+ Spanish).
91
+
92
+ ### Package
93
+
94
+ - Package version is `0.3.28`.
95
+
5
96
  ## 0.3.27 - 2026-11-09
6
97
 
7
98
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.27
3
+ Version: 0.4.1
4
4
  Summary: Specification workflow toolkit for AI-assisted software changes
5
5
  Author: DevFlow contributors
6
6
  License-Expression: MIT
@@ -32,17 +32,75 @@ Description-Content-Type: text/markdown
32
32
 
33
33
  # DevFlow Toolkit
34
34
 
35
- **Current version: `0.3.27`.**
35
+ **Current version: `0.4.1`.**
36
+
37
+ Before any code is written, you and the AI agree on what will be built
38
+ and approve it as a spec. The agent then implements once, on something
39
+ clear, instead of trying, failing and redoing. Questions are cheap;
40
+ redoing code is expensive.
41
+
42
+ **The expensive part of an agent is not writing, it is correcting.**
43
+ Give it something ambiguous and it explores the whole repository, writes
44
+ code and tests, you reject it, and it starts again with an ever larger
45
+ context. Every round costs more than the last, and it is paid in output
46
+ tokens, which cost several times more than input tokens.
47
+
48
+ **DevFlow trades code rounds for question rounds.**
49
+
50
+ - **Discovery asks first.** Authentication, permissions, validation,
51
+ what stays out of scope. These rounds are cheap: mostly reading, no
52
+ code.
53
+ - **Validation spends no tokens.** DevFlow checks that Discovery is
54
+ complete and that the spec has the right shape with local Python
55
+ code.
56
+ - **The approved spec guides the agent.** It says which files to touch,
57
+ which requirements to meet (`FR`) and how to prove it is done (`AC`).
58
+ The agent explores less, stays in scope and writes nothing nobody
59
+ asked for.
60
+ - **Each phase reads only what it needs.** Code style rules are loaded
61
+ when implementing, not while specifying.
62
+ - **Context is never lost.** Everything stays in your repository, in a
63
+ few files under `.devflow/`. Switch sessions or agents and there is
64
+ nothing to explain again.
65
+
66
+ The goal is not to generate code faster, but to decide better before
67
+ generating it. Thinking is cheap; redoing code is expensive.
68
+
69
+ ## Install
70
+
71
+ ```bash
72
+ pip install devflow-toolkit
73
+ devflow version
74
+ ```
75
+
76
+ You also need an AI agent installed on your machine, for example
77
+ [OpenCode](https://opencode.ai) or Claude Code.
78
+
79
+ ## The flow
80
+
81
+ ```text
82
+ devflow init once per project
83
+ │
84
+ devflow spec "your change" Discovery: the agent asks, you answer
85
+ │
86
+ devflow spec --continue 001 repeat until the spec is written
87
+ │
88
+ devflow approve 001 you approve the spec
89
+ │
90
+ "Implement .devflow/specs/001-…/spec.md" ask your agent to build it
91
+
92
+ Need to change an approved spec? devflow reopen 001
93
+ Not sure what comes next? devflow status 001
94
+ ```
95
+
96
+ The rest of this page is the full reference: every command, option,
97
+ file and rule.
98
+
99
+ ## What DevFlow covers
36
100
 
37
101
  DevFlow is a command-line toolkit for leading AI models and coding
38
102
  agents through specification-driven changes in real software projects.
39
103
 
40
- The goal is simple: keep models and agents inside a process defined by
41
- people. AI can write code quickly, but without clear limits it can also
42
- produce unnecessary code, duplicate logic, invent scope or build things
43
- nobody asked for. DevFlow exists to prevent that. The team decides what
44
- will be built, why and under which rules **before** an agent writes code.
45
-
46
104
  Discovery is the centre of that process. It is not a one-shot chat or a
47
105
  form to fill in; it is a joint exploration between the human team and the
48
106
  AI model. Both review the project, ask questions, challenge assumptions
@@ -152,7 +210,7 @@ pip install devflow-toolkit
152
210
  To install a specific built artifact instead:
153
211
 
154
212
  ```bash
155
- pip install devflow_toolkit-0.3.27-py3-none-any.whl
213
+ pip install devflow_toolkit-0.4.1-py3-none-any.whl
156
214
  ```
157
215
 
158
216
  Verify the installation:
@@ -457,7 +515,7 @@ as an architectural constraint when it is present.
457
515
 
458
516
  ### Harnesses
459
517
 
460
- | Harness | Status in 0.3.27 |
518
+ | Harness | Status in 0.4.1 |
461
519
  | --- | --- |
462
520
  | OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
463
521
  | Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
@@ -640,18 +698,21 @@ decisions into one interaction. The defaults live in `.devflow/config.yaml`:
640
698
  discovery:
641
699
  question_budget:
642
700
  initial: 6
643
- follow_up: 3
644
- maximum: 12
701
+ follow_up: 6
702
+ maximum: 20
645
703
  interaction:
646
704
  batch_size: 6
647
- max_rounds: 3
705
+ max_rounds: 5
648
706
  assumptions:
649
707
  enabled: true
650
708
  ```
651
709
 
652
- The budget limits questions but never permits ignoring a critical
653
- decision. If material decisions remain after the budget is exhausted,
654
- Discovery stays incomplete and asks for intervention.
710
+ The budget only limits optional questions. Critical and blocking
711
+ decisions are always asked in the same session, even beyond the cap or
712
+ the round limit, and decisions resolved from project evidence do not
713
+ count. Projects initialized before `0.4.1` keep the old limits
714
+ (`follow_up: 3`, `maximum: 12`, `max_rounds: 3`); `devflow spec` warns
715
+ about them and suggests the new values.
655
716
 
656
717
  The deterministic planner recognizes contact pages, forms, comments,
657
718
  authentication, persistence, deployments and architecture boundaries in
@@ -722,16 +783,17 @@ specification that still lists open questions.
722
783
  In an interactive run the specification agent checks for missing
723
784
  decisions **before** writing:
724
785
 
725
- - **Up to 3 missing decisions:** it asks you in the same session, with
726
- the same rules as Discovery (recommended level-1 option first, a
727
- next-level option with its reason, security never assumed). Your
728
- answers are recorded in `discovery.yaml` as decisions resolved by you,
729
- and then it writes the spec. DevFlow writes the new Discovery digest
730
- into the spec header, because the agent cannot compute it.
731
- - **More than 3, or no answer:** it records them as `pending`, sets the
732
- record to `awaiting_clarification` and stops without writing
733
- `spec.md`, so no tokens are spent on a document that would be
734
- discarded.
786
+ - **Missing decisions:** it asks you about all of them in the same
787
+ session, in batches of up to six, with the same rules as Discovery
788
+ (recommended level-1 option first, a next-level option with its
789
+ reason, security never assumed). Your answers are recorded in
790
+ `discovery.yaml` as decisions resolved by you, and then it writes the
791
+ spec. DevFlow writes the new Discovery digest into the spec header,
792
+ because the agent cannot compute it.
793
+ - **No answer, or you prefer to decide later:** it records them as
794
+ `pending`, sets the record to `awaiting_clarification` and stops
795
+ without writing `spec.md`, so no tokens are spent on a document that
796
+ would be discarded.
735
797
 
736
798
  If the agent leaves `discovery.yaml` invalid, DevFlow writes no
737
799
  specification and asks you to run `devflow spec --continue`, which
@@ -805,6 +867,55 @@ in `devflow status`, after approval in the `Next:` line, and in
805
867
  that subsection itself, with a ready-to-run `devflow spec "..."` command
806
868
  for each item; the agent does not write it.
807
869
 
870
+ ### Security baseline (OWASP ASVS 5.0)
871
+
872
+ DevFlow organizes security with the
873
+ [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
874
+ 5.0, which groups controls by level: L1 basic, L2 standard, L3 high.
875
+
876
+ 1. **Detection, without tokens.** DevFlow reads the request and the
877
+ Discovery questions and answers, and detects the ASVS areas the
878
+ change touches: authentication (V6), sessions (V7), authorization
879
+ (V8), input validation and encoding (V2, V1), web frontend (V3), file
880
+ handling (V5), APIs (V4), data protection (V14) and deployment
881
+ configuration (V13).
882
+ 2. **Discovery covers level 1.** The Decision Context lists the
883
+ level-1 controls of each area, with their ASVS identifiers. Every one
884
+ must be covered: by project evidence or by a question whose
885
+ recommended option applies it. Level-2 controls are offered as the
886
+ next level.
887
+ 3. **Accepted risks have an owner.** If you decide not to apply a
888
+ level-1 control now, it is recorded in `accepted_risks` and Discovery
889
+ stays incomplete until you accept it explicitly:
890
+
891
+ ```yaml
892
+ accepted_risks:
893
+ - id: R1
894
+ control: "6.3.1"
895
+ risk: "Login has no protection against password guessing yet."
896
+ reason: "Internal tool behind the VPN; planned for the next spec."
897
+ status: accepted
898
+ accepted_by: jonathan
899
+ accepted_at: "2026-11-10T09:00:00Z"
900
+ review_by: "2026-12-31"
901
+ ```
902
+
903
+ 4. **The spec shows the security work.** Section 4 contains
904
+ `### Security considerations`, a table of threat, mitigation,
905
+ acceptance criterion and ASVS control written by the agent. If the
906
+ agent omits it, DevFlow adds the level-1 controls as a review
907
+ checklist. DevFlow always writes `### Accepted security risks` from
908
+ Discovery.
909
+
910
+ DevFlow also checks, without tokens, which level-1 controls no question,
911
+ answer, evidence or accepted risk cites by its ASVS identifier, and
912
+ lists them in the Decision Context and in `devflow status`, so
913
+ Discovery covers them before the spec is written.
914
+
915
+ `devflow status` lists the detected areas and the accepted risks. The
916
+ control texts are short summaries; the ASVS document is the normative
917
+ reference.
918
+
808
919
  ## Workflow
809
920
 
810
921
  1. Initialize the project with `devflow init`.
@@ -818,7 +929,7 @@ for each item; the agent does not write it.
818
929
  8. If artifacts exist without workflow state, diagnose with
819
930
  `devflow doctor <id>` and repair with `devflow recover <id>`.
820
931
 
821
- Available commands in `0.3.27`:
932
+ Available commands in `0.4.1`:
822
933
 
823
934
  | Command | Status |
824
935
  | --- | --- |
@@ -1051,7 +1162,7 @@ devflow approve 001
1051
1162
  ```
1052
1163
 
1053
1164
  Approval is explicit and binds the decision to the current artifact
1054
- digests. For a `0.3.27` change it binds `spec.md`, `discovery.yaml` and,
1165
+ digests. For a `0.4.1` change it binds `spec.md`, `discovery.yaml` and,
1055
1166
  when a manifest applies, the architecture manifest digest. Repeating the
1056
1167
  same approval is a no-op. If an artifact changes after validation,
1057
1168
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -1062,7 +1173,7 @@ and names the pending questions and assumptions. Approval also rejects a
1062
1173
  specification whose section 7 still lists open questions. Legacy `0.2.0`
1063
1174
  changes without `discovery.yaml` remain approvable with a warning.
1064
1175
 
1065
- Only the `spec` stage is available in `0.3.27`, so `--stage` is optional
1176
+ Only the `spec` stage is available in `0.4.1`, so `--stage` is optional
1066
1177
  and defaults to `spec`. `--stage plan` and `--stage review` are
1067
1178
  rejected. There are no `plan`, `implement` or
1068
1179
  `review` commands in this release.
@@ -1,16 +1,38 @@
1
1
  # DevFlow Toolkit
2
2
 
3
- DevFlow is a command-line tool that makes AI coding agents work from an
4
- approved specification instead of a vague chat request.
5
-
6
- - **You decide first.** The agent asks the questions that matter
7
- (Discovery) and writes a specification (`spec.md`). You approve it.
8
- - **The agent builds what was approved.** Nothing more, nothing less.
9
- - **Everything stays in your repository.** Decisions, the spec and its
10
- approval live in `.devflow/`, so any agent or teammate can pick up
11
- the work.
12
-
13
- Current version: `0.3.27` · Python 3.11+ · Linux and macOS
3
+ Before any code is written, you and the AI agree on what will be built
4
+ and approve it as a spec. The agent then implements once, on something
5
+ clear, instead of trying, failing and redoing. Questions are cheap;
6
+ redoing code is expensive.
7
+
8
+ **The expensive part of an agent is not writing, it is correcting.**
9
+ Give it something ambiguous and it explores the whole repository, writes
10
+ code and tests, you reject it, and it starts again with an ever larger
11
+ context. Every round costs more than the last, and it is paid in output
12
+ tokens, which cost several times more than input tokens.
13
+
14
+ **DevFlow trades code rounds for question rounds.**
15
+
16
+ - **Discovery asks first.** Authentication, permissions, validation,
17
+ what stays out of scope. These rounds are cheap: mostly reading, no
18
+ code.
19
+ - **Validation spends no tokens.** DevFlow checks that Discovery is
20
+ complete and that the spec has the right shape with local Python
21
+ code.
22
+ - **The approved spec guides the agent.** It says which files to touch,
23
+ which requirements to meet (`FR`) and how to prove it is done (`AC`).
24
+ The agent explores less, stays in scope and writes nothing nobody
25
+ asked for.
26
+ - **Each phase reads only what it needs.** Code style rules are loaded
27
+ when implementing, not while specifying.
28
+ - **Context is never lost.** Everything stays in your repository, in a
29
+ few files under `.devflow/`. Switch sessions or agents and there is
30
+ nothing to explain again.
31
+
32
+ The goal is not to generate code faster, but to decide better before
33
+ generating it. Thinking is cheap; redoing code is expensive.
34
+
35
+ Current version: `0.4.1` · Python 3.11+ · Linux and macOS
14
36
 
15
37
  ## Install
16
38
 
@@ -77,8 +99,8 @@ devflow spec --continue 001
77
99
 
78
100
  Each command opens at most one chat. Run it again if there are pending
79
101
  questions, and once more to write `spec.md`. If the agent writing the
80
- spec finds up to 3 missing decisions, it asks you right there and then
81
- 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
82
104
  written.
83
105
 
84
106
  Prefer one command for both phases? Add `--auto` to the first command:
@@ -155,6 +177,11 @@ written outside the normal flow.
155
177
  - **Fewer wasted tokens.** Questions are cheap; rewriting code after a
156
178
  misunderstanding is expensive. An approved spec avoids most of those
157
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.
158
185
  - **Grow step by step.** After approval, `devflow status 001` suggests
159
186
  the next level as a new spec.
160
187
  - **Small changes don't need DevFlow.** Use it when a change involves
@@ -168,7 +195,9 @@ written outside the normal flow.
168
195
  - [Full reference](docs/REFERENCE.md): every command, option, file and
169
196
  rule.
170
197
  - [Changelog](CHANGELOG.md)
171
- - [How to publish a release](PUBLISHING.md)
198
+ - [How to publish a release](docs/PUBLISHING.md)
199
+ - [Invitation to try DevFlow and give feedback](docs/PRESENTATION.md)
200
+ (in Spanish)
172
201
 
173
202
  ## Acknowledgments
174
203
 
@@ -0,0 +1,144 @@
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 la seguridad básica de forma explícita |
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
+
89
+ **Sobre la spec**
90
+
91
+ 5. ¿La spec describe bien lo que querías construir?
92
+ 6. ¿Hay algo que sobre, que falte o que no se entienda?
93
+ 7. ¿Se la pasarías a un compañero para implementarla tal cual?
94
+
95
+ **Sobre la implementación (si la probaste)**
96
+
97
+ 8. ¿El agente se mantuvo dentro de la spec o hizo cosas que no pedías?
98
+ 9. ¿Necesitaste menos correcciones que de costumbre?
99
+
100
+ **En general**
101
+
102
+ 10. ¿Qué fue lo más útil?
103
+ 11. ¿Qué te molestó o te hizo perder tiempo?
104
+ 12. ¿Lo usarías en tu trabajo diario? ¿Para qué tipo de cambios sí y para
105
+ cuáles no?
106
+ 13. Si algo falló: ¿qué comando ejecutaste y qué mensaje salió?
107
+
108
+ Envía tus respuestas a **[nombre o canal de contacto]**.
109
+
110
+ ---
111
+
112
+ ## Limitaciones conocidas
113
+
114
+ - **Versión alfa (0.3.x).** Puede tener errores; justo por eso nos
115
+ interesa tu feedback.
116
+ - **Solo cubre la especificación.** La implementación la hace tu agente;
117
+ DevFlow todavía no verifica el resultado.
118
+ - **Agentes verificados:** Claude Code y OpenCode. Codex, Kiro y
119
+ Antigravity no están verificados.
120
+ - **Solo Linux y macOS.**
121
+ - **La calidad de las preguntas depende del modelo** que use tu agente.
122
+ - **No compensa en cambios triviales.** Para eso, sigue como siempre.
123
+
124
+ ---
125
+
126
+ ## Preguntas frecuentes
127
+
128
+ **¿Mis datos salen de mi equipo?**
129
+ DevFlow guarda todo en tu repositorio, en `.devflow/`. No hay servicio
130
+ externo ni telemetría. Lo único que sale es lo que ya envía tu agente a
131
+ su modelo.
132
+
133
+ **¿Gasta muchos tokens?**
134
+ Las preguntas gastan poco, porque son sobre todo lectura. La validación
135
+ la hace DevFlow en local y no gasta tokens.
136
+
137
+ **¿Qué pasa si quiero cambiar una spec ya aprobada?**
138
+ `devflow reopen 001` retira la aprobación, guarda la versión anterior y
139
+ te deja corregirla.
140
+
141
+ **¿Me ofrece instalar algo más?**
142
+ Tras la primera aprobación te ofrece herramientas de seguridad locales
143
+ (Semgrep, Bandit, pip-audit, gitleaks) que revisan el código en cada
144
+ commit. Es opcional: puedes responder que no.