devflow-toolkit 0.3.28__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.
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/CHANGELOG.md +68 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/PKG-INFO +76 -23
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/README.md +9 -4
- devflow_toolkit-0.4.1/docs/PRESENTATION.md +144 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/docs/REFERENCE.md +75 -22
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/pyproject.toml +1 -1
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/spec.py +10 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/status.py +30 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/config.py +21 -9
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/discovery.py +132 -1
- devflow_toolkit-0.4.1/src/devflow/core/security_baseline.py +366 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/specification.py +86 -1
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/prompts/__init__.py +103 -15
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/prompts/discovery.md +41 -5
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/prompts/spec.md +6 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_discovery_decisions.py +4 -2
- devflow_toolkit-0.4.1/tests/test_security_baseline.py +338 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/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.1}/.gitignore +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/LICENSE +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/docs/PUBLISHING.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/antigravity.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/cli.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/approve.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/config.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/reopen.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/commands/security.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/file_types.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/security_tools.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/spec_workflow.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/hooks/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/hooks/claude_guard.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/src/devflow/prompts/discovery-repair.md +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_discovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_security_tools.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_state.py +0 -0
- {devflow_toolkit-0.3.28 → devflow_toolkit-0.4.1}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,74 @@
|
|
|
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
|
+
|
|
5
73
|
## 0.3.28 - 2026-11-09
|
|
6
74
|
|
|
7
75
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.
|
|
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,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.1`.**
|
|
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.1-py3-none-any.whl
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
Verify the installation:
|
|
@@ -515,7 +515,7 @@ as an architectural constraint when it is present.
|
|
|
515
515
|
|
|
516
516
|
### Harnesses
|
|
517
517
|
|
|
518
|
-
| Harness | Status in 0.
|
|
518
|
+
| Harness | Status in 0.4.1 |
|
|
519
519
|
| --- | --- |
|
|
520
520
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
521
521
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -698,18 +698,21 @@ decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
|
698
698
|
discovery:
|
|
699
699
|
question_budget:
|
|
700
700
|
initial: 6
|
|
701
|
-
follow_up:
|
|
702
|
-
maximum:
|
|
701
|
+
follow_up: 6
|
|
702
|
+
maximum: 20
|
|
703
703
|
interaction:
|
|
704
704
|
batch_size: 6
|
|
705
|
-
max_rounds:
|
|
705
|
+
max_rounds: 5
|
|
706
706
|
assumptions:
|
|
707
707
|
enabled: true
|
|
708
708
|
```
|
|
709
709
|
|
|
710
|
-
The budget limits questions
|
|
711
|
-
|
|
712
|
-
|
|
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.
|
|
713
716
|
|
|
714
717
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
715
718
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -780,16 +783,17 @@ specification that still lists open questions.
|
|
|
780
783
|
In an interactive run the specification agent checks for missing
|
|
781
784
|
decisions **before** writing:
|
|
782
785
|
|
|
783
|
-
- **
|
|
784
|
-
the same rules as Discovery
|
|
785
|
-
next-level option with its
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
`
|
|
792
|
-
|
|
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.
|
|
793
797
|
|
|
794
798
|
If the agent leaves `discovery.yaml` invalid, DevFlow writes no
|
|
795
799
|
specification and asks you to run `devflow spec --continue`, which
|
|
@@ -863,6 +867,55 @@ in `devflow status`, after approval in the `Next:` line, and in
|
|
|
863
867
|
that subsection itself, with a ready-to-run `devflow spec "..."` command
|
|
864
868
|
for each item; the agent does not write it.
|
|
865
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
|
+
|
|
866
919
|
## Workflow
|
|
867
920
|
|
|
868
921
|
1. Initialize the project with `devflow init`.
|
|
@@ -876,7 +929,7 @@ for each item; the agent does not write it.
|
|
|
876
929
|
8. If artifacts exist without workflow state, diagnose with
|
|
877
930
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
878
931
|
|
|
879
|
-
Available commands in `0.
|
|
932
|
+
Available commands in `0.4.1`:
|
|
880
933
|
|
|
881
934
|
| Command | Status |
|
|
882
935
|
| --- | --- |
|
|
@@ -1109,7 +1162,7 @@ devflow approve 001
|
|
|
1109
1162
|
```
|
|
1110
1163
|
|
|
1111
1164
|
Approval is explicit and binds the decision to the current artifact
|
|
1112
|
-
digests. For a `0.
|
|
1165
|
+
digests. For a `0.4.1` change it binds `spec.md`, `discovery.yaml` and,
|
|
1113
1166
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1114
1167
|
same approval is a no-op. If an artifact changes after validation,
|
|
1115
1168
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1120,7 +1173,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1120
1173
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1121
1174
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1122
1175
|
|
|
1123
|
-
Only the `spec` stage is available in `0.
|
|
1176
|
+
Only the `spec` stage is available in `0.4.1`, so `--stage` is optional
|
|
1124
1177
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1125
1178
|
rejected. There are no `plan`, `implement` or
|
|
1126
1179
|
`review` commands in this release.
|
|
@@ -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.1` · 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,11 @@ 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.
|
|
180
185
|
- **Grow step by step.** After approval, `devflow status 001` suggests
|
|
181
186
|
the next level as a new spec.
|
|
182
187
|
- **Small changes don't need DevFlow.** Use it when a change involves
|
|
@@ -191,7 +196,7 @@ written outside the normal flow.
|
|
|
191
196
|
rule.
|
|
192
197
|
- [Changelog](CHANGELOG.md)
|
|
193
198
|
- [How to publish a release](docs/PUBLISHING.md)
|
|
194
|
-
- [
|
|
199
|
+
- [Invitation to try DevFlow and give feedback](docs/PRESENTATION.md)
|
|
195
200
|
(in Spanish)
|
|
196
201
|
|
|
197
202
|
## Acknowledgments
|
|
@@ -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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DevFlow Toolkit
|
|
2
2
|
|
|
3
|
-
**Current version: `0.
|
|
3
|
+
**Current version: `0.4.1`.**
|
|
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.1-py3-none-any.whl
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
Verify the installation:
|
|
@@ -483,7 +483,7 @@ as an architectural constraint when it is present.
|
|
|
483
483
|
|
|
484
484
|
### Harnesses
|
|
485
485
|
|
|
486
|
-
| Harness | Status in 0.
|
|
486
|
+
| Harness | Status in 0.4.1 |
|
|
487
487
|
| --- | --- |
|
|
488
488
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
489
489
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -666,18 +666,21 @@ decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
|
666
666
|
discovery:
|
|
667
667
|
question_budget:
|
|
668
668
|
initial: 6
|
|
669
|
-
follow_up:
|
|
670
|
-
maximum:
|
|
669
|
+
follow_up: 6
|
|
670
|
+
maximum: 20
|
|
671
671
|
interaction:
|
|
672
672
|
batch_size: 6
|
|
673
|
-
max_rounds:
|
|
673
|
+
max_rounds: 5
|
|
674
674
|
assumptions:
|
|
675
675
|
enabled: true
|
|
676
676
|
```
|
|
677
677
|
|
|
678
|
-
The budget limits questions
|
|
679
|
-
|
|
680
|
-
|
|
678
|
+
The budget only limits optional questions. Critical and blocking
|
|
679
|
+
decisions are always asked in the same session, even beyond the cap or
|
|
680
|
+
the round limit, and decisions resolved from project evidence do not
|
|
681
|
+
count. Projects initialized before `0.4.1` keep the old limits
|
|
682
|
+
(`follow_up: 3`, `maximum: 12`, `max_rounds: 3`); `devflow spec` warns
|
|
683
|
+
about them and suggests the new values.
|
|
681
684
|
|
|
682
685
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
683
686
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -748,16 +751,17 @@ specification that still lists open questions.
|
|
|
748
751
|
In an interactive run the specification agent checks for missing
|
|
749
752
|
decisions **before** writing:
|
|
750
753
|
|
|
751
|
-
- **
|
|
752
|
-
the same rules as Discovery
|
|
753
|
-
next-level option with its
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
`
|
|
760
|
-
|
|
754
|
+
- **Missing decisions:** it asks you about all of them in the same
|
|
755
|
+
session, in batches of up to six, with the same rules as Discovery
|
|
756
|
+
(recommended level-1 option first, a next-level option with its
|
|
757
|
+
reason, security never assumed). Your answers are recorded in
|
|
758
|
+
`discovery.yaml` as decisions resolved by you, and then it writes the
|
|
759
|
+
spec. DevFlow writes the new Discovery digest into the spec header,
|
|
760
|
+
because the agent cannot compute it.
|
|
761
|
+
- **No answer, or you prefer to decide later:** it records them as
|
|
762
|
+
`pending`, sets the record to `awaiting_clarification` and stops
|
|
763
|
+
without writing `spec.md`, so no tokens are spent on a document that
|
|
764
|
+
would be discarded.
|
|
761
765
|
|
|
762
766
|
If the agent leaves `discovery.yaml` invalid, DevFlow writes no
|
|
763
767
|
specification and asks you to run `devflow spec --continue`, which
|
|
@@ -831,6 +835,55 @@ in `devflow status`, after approval in the `Next:` line, and in
|
|
|
831
835
|
that subsection itself, with a ready-to-run `devflow spec "..."` command
|
|
832
836
|
for each item; the agent does not write it.
|
|
833
837
|
|
|
838
|
+
### Security baseline (OWASP ASVS 5.0)
|
|
839
|
+
|
|
840
|
+
DevFlow organizes security with the
|
|
841
|
+
[OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)
|
|
842
|
+
5.0, which groups controls by level: L1 basic, L2 standard, L3 high.
|
|
843
|
+
|
|
844
|
+
1. **Detection, without tokens.** DevFlow reads the request and the
|
|
845
|
+
Discovery questions and answers, and detects the ASVS areas the
|
|
846
|
+
change touches: authentication (V6), sessions (V7), authorization
|
|
847
|
+
(V8), input validation and encoding (V2, V1), web frontend (V3), file
|
|
848
|
+
handling (V5), APIs (V4), data protection (V14) and deployment
|
|
849
|
+
configuration (V13).
|
|
850
|
+
2. **Discovery covers level 1.** The Decision Context lists the
|
|
851
|
+
level-1 controls of each area, with their ASVS identifiers. Every one
|
|
852
|
+
must be covered: by project evidence or by a question whose
|
|
853
|
+
recommended option applies it. Level-2 controls are offered as the
|
|
854
|
+
next level.
|
|
855
|
+
3. **Accepted risks have an owner.** If you decide not to apply a
|
|
856
|
+
level-1 control now, it is recorded in `accepted_risks` and Discovery
|
|
857
|
+
stays incomplete until you accept it explicitly:
|
|
858
|
+
|
|
859
|
+
```yaml
|
|
860
|
+
accepted_risks:
|
|
861
|
+
- id: R1
|
|
862
|
+
control: "6.3.1"
|
|
863
|
+
risk: "Login has no protection against password guessing yet."
|
|
864
|
+
reason: "Internal tool behind the VPN; planned for the next spec."
|
|
865
|
+
status: accepted
|
|
866
|
+
accepted_by: jonathan
|
|
867
|
+
accepted_at: "2026-11-10T09:00:00Z"
|
|
868
|
+
review_by: "2026-12-31"
|
|
869
|
+
```
|
|
870
|
+
|
|
871
|
+
4. **The spec shows the security work.** Section 4 contains
|
|
872
|
+
`### Security considerations`, a table of threat, mitigation,
|
|
873
|
+
acceptance criterion and ASVS control written by the agent. If the
|
|
874
|
+
agent omits it, DevFlow adds the level-1 controls as a review
|
|
875
|
+
checklist. DevFlow always writes `### Accepted security risks` from
|
|
876
|
+
Discovery.
|
|
877
|
+
|
|
878
|
+
DevFlow also checks, without tokens, which level-1 controls no question,
|
|
879
|
+
answer, evidence or accepted risk cites by its ASVS identifier, and
|
|
880
|
+
lists them in the Decision Context and in `devflow status`, so
|
|
881
|
+
Discovery covers them before the spec is written.
|
|
882
|
+
|
|
883
|
+
`devflow status` lists the detected areas and the accepted risks. The
|
|
884
|
+
control texts are short summaries; the ASVS document is the normative
|
|
885
|
+
reference.
|
|
886
|
+
|
|
834
887
|
## Workflow
|
|
835
888
|
|
|
836
889
|
1. Initialize the project with `devflow init`.
|
|
@@ -844,7 +897,7 @@ for each item; the agent does not write it.
|
|
|
844
897
|
8. If artifacts exist without workflow state, diagnose with
|
|
845
898
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
846
899
|
|
|
847
|
-
Available commands in `0.
|
|
900
|
+
Available commands in `0.4.1`:
|
|
848
901
|
|
|
849
902
|
| Command | Status |
|
|
850
903
|
| --- | --- |
|
|
@@ -1077,7 +1130,7 @@ devflow approve 001
|
|
|
1077
1130
|
```
|
|
1078
1131
|
|
|
1079
1132
|
Approval is explicit and binds the decision to the current artifact
|
|
1080
|
-
digests. For a `0.
|
|
1133
|
+
digests. For a `0.4.1` change it binds `spec.md`, `discovery.yaml` and,
|
|
1081
1134
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1082
1135
|
same approval is a no-op. If an artifact changes after validation,
|
|
1083
1136
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1088,7 +1141,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1088
1141
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1089
1142
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1090
1143
|
|
|
1091
|
-
Only the `spec` stage is available in `0.
|
|
1144
|
+
Only the `spec` stage is available in `0.4.1`, so `--stage` is optional
|
|
1092
1145
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1093
1146
|
rejected. There are no `plan`, `implement` or
|
|
1094
1147
|
`review` commands in this release.
|
|
@@ -191,6 +191,16 @@ def _create_specification(
|
|
|
191
191
|
detector = ProjectDetector()
|
|
192
192
|
root = detector.find_root(path)
|
|
193
193
|
config = ConfigManager(root).load()
|
|
194
|
+
if config.discovery.uses_legacy_defaults:
|
|
195
|
+
_print_warnings(
|
|
196
|
+
[
|
|
197
|
+
"Discovery uses the old limits (follow_up 3, maximum 12, "
|
|
198
|
+
"max_rounds 3), which can stop Discovery before every security "
|
|
199
|
+
"control is covered. Set discovery.question_budget.follow_up: 6, "
|
|
200
|
+
"maximum: 20 and discovery.interaction.max_rounds: 5 in "
|
|
201
|
+
".devflow/config.yaml."
|
|
202
|
+
]
|
|
203
|
+
)
|
|
194
204
|
|
|
195
205
|
if resume is not None:
|
|
196
206
|
_ensure_continuable(config, resume)
|
|
@@ -20,6 +20,10 @@ from devflow.core.discovery import (
|
|
|
20
20
|
DiscoveryManager,
|
|
21
21
|
)
|
|
22
22
|
from devflow.core.project import ProjectDetector
|
|
23
|
+
from devflow.core.security_baseline import (
|
|
24
|
+
applicable_areas,
|
|
25
|
+
uncovered_controls,
|
|
26
|
+
)
|
|
23
27
|
from devflow.core.state import (
|
|
24
28
|
ChangeLocation,
|
|
25
29
|
ChangeStatus,
|
|
@@ -29,6 +33,7 @@ from devflow.core.state import (
|
|
|
29
33
|
WorkflowStatus,
|
|
30
34
|
artifact_blockers,
|
|
31
35
|
)
|
|
36
|
+
from devflow.prompts import coverage_texts, security_texts
|
|
32
37
|
|
|
33
38
|
console = Console()
|
|
34
39
|
error_console = Console(stderr=True)
|
|
@@ -245,6 +250,31 @@ def _print_discovery(
|
|
|
245
250
|
soft_wrap=True,
|
|
246
251
|
)
|
|
247
252
|
|
|
253
|
+
areas = applicable_areas(security_texts("", discovery))
|
|
254
|
+
if areas:
|
|
255
|
+
console.print(
|
|
256
|
+
" security baseline: "
|
|
257
|
+
+ ", ".join(area.label for area in areas),
|
|
258
|
+
soft_wrap=True,
|
|
259
|
+
)
|
|
260
|
+
missing = uncovered_controls(areas, coverage_texts(discovery))
|
|
261
|
+
if missing:
|
|
262
|
+
console.print(
|
|
263
|
+
" [yellow]level-1 controls not cited by any decision: "
|
|
264
|
+
+ ", ".join(control.asvs_id for control in missing)
|
|
265
|
+
+ "[/yellow]",
|
|
266
|
+
soft_wrap=True,
|
|
267
|
+
)
|
|
268
|
+
for risk in discovery.accepted_risks:
|
|
269
|
+
state = (
|
|
270
|
+
f"accepted by {risk.accepted_by}"
|
|
271
|
+
if risk.is_accepted
|
|
272
|
+
else "pending acceptance"
|
|
273
|
+
)
|
|
274
|
+
console.print(
|
|
275
|
+
f" {risk.id} [security risk] {state}: {risk.risk}",
|
|
276
|
+
soft_wrap=True,
|
|
277
|
+
)
|
|
248
278
|
for note in discovery.notes:
|
|
249
279
|
console.print(f" [yellow]corrected: {note}[/yellow]", soft_wrap=True)
|
|
250
280
|
|