devflow-toolkit 0.3.19__tar.gz → 0.3.21__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.19 → devflow_toolkit-0.3.21}/CHANGELOG.md +43 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/PKG-INFO +54 -20
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/README.md +53 -19
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/pyproject.toml +1 -1
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/approve.py +5 -2
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/spec.py +0 -1
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/status.py +56 -1
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/spec_workflow.py +8 -1
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/prompts/__init__.py +7 -2
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_discovery.py +4 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_spec_workflow.py +64 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_state.py +14 -1
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/.gitignore +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/LICENSE +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/antigravity.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/codex.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/opencode.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/adapters/registry.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/cli.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/config.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/harness.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/init.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/config.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/discovery.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/file_types.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/ports.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/prompts/discovery-repair.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/prompts/discovery.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_discovery_decisions.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_harness_adapters.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.3.21 - 2026-11-09
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `devflow status` ends with a `Next:` line: continue Discovery,
|
|
10
|
+
approve the validated spec, implement the approved spec with a coding
|
|
11
|
+
agent, or run `devflow doctor` when an artifact is stale or orphaned.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- `devflow approve 001` is the documented form. `--stage` remains
|
|
16
|
+
optional and defaults to `spec`.
|
|
17
|
+
- `devflow status` marks a blocked state in the status line, for
|
|
18
|
+
example `spec_approved (blocked: spec (stale))`, instead of showing it
|
|
19
|
+
as a plain approved change.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- The unsupported-stage error of `devflow approve` no longer names the
|
|
24
|
+
stale version `0.3.17`.
|
|
25
|
+
|
|
26
|
+
### Package
|
|
27
|
+
|
|
28
|
+
- Package version is `0.3.21`.
|
|
29
|
+
|
|
30
|
+
## 0.3.20 - 2026-11-09
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- An interactive `devflow spec --continue` now stops at the Discovery
|
|
35
|
+
checkpoint when it opened a Discovery session, like a new
|
|
36
|
+
`devflow spec`. Without `--auto`, one command opens at most one agent
|
|
37
|
+
session. A continuation whose Discovery is already complete still
|
|
38
|
+
writes the specification.
|
|
39
|
+
- Interactive Discovery and specification prompts tell the agent to ask
|
|
40
|
+
the user to exit the session when its phase is done, and warn that
|
|
41
|
+
exiting before `spec.md` is written makes DevFlow use its
|
|
42
|
+
deterministic draft.
|
|
43
|
+
|
|
44
|
+
### Package
|
|
45
|
+
|
|
46
|
+
- Package version is `0.3.20`.
|
|
47
|
+
|
|
5
48
|
## 0.3.19 - 2026-11-08
|
|
6
49
|
|
|
7
50
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.21
|
|
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.3.
|
|
35
|
+
**Current version: `0.3.21`.**
|
|
36
36
|
|
|
37
37
|
DevFlow is a command-line toolkit for leading AI models and coding
|
|
38
38
|
agents through specification-driven changes in real software projects.
|
|
@@ -152,7 +152,7 @@ pip install devflow-toolkit
|
|
|
152
152
|
To install a specific built artifact instead:
|
|
153
153
|
|
|
154
154
|
```bash
|
|
155
|
-
pip install devflow_toolkit-0.3.
|
|
155
|
+
pip install devflow_toolkit-0.3.21-py3-none-any.whl
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Verify the installation:
|
|
@@ -207,7 +207,7 @@ devflow spec --continue 001
|
|
|
207
207
|
|
|
208
208
|
```bash
|
|
209
209
|
devflow status 001
|
|
210
|
-
devflow approve 001
|
|
210
|
+
devflow approve 001
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
7. Start the next change. The stored language and model are reused:
|
|
@@ -428,7 +428,7 @@ as an architectural constraint when it is present.
|
|
|
428
428
|
|
|
429
429
|
### Harnesses
|
|
430
430
|
|
|
431
|
-
| Harness | Status in 0.3.
|
|
431
|
+
| Harness | Status in 0.3.21 |
|
|
432
432
|
| --- | --- |
|
|
433
433
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
434
434
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -642,7 +642,7 @@ While any decision is pending or any assumption remains unaccepted:
|
|
|
642
642
|
|
|
643
643
|
- `discovery.yaml` and `context.md` are written;
|
|
644
644
|
- no `spec.md` is generated;
|
|
645
|
-
- `devflow approve
|
|
645
|
+
- `devflow approve` refuses the change;
|
|
646
646
|
- the workflow status is `awaiting_clarification`.
|
|
647
647
|
|
|
648
648
|
`context.md` is the single generated context file. Its
|
|
@@ -680,7 +680,7 @@ A generated specification is valid only when section 7 is exactly
|
|
|
680
680
|
did not cover, DevFlow rejects the generated document, archives it,
|
|
681
681
|
appends the question to `discovery.yaml`, and returns the change to
|
|
682
682
|
`awaiting_clarification`. The question must be answered before a new
|
|
683
|
-
specification is generated. `devflow approve
|
|
683
|
+
specification is generated. `devflow approve` rejects a
|
|
684
684
|
specification that still lists open questions.
|
|
685
685
|
|
|
686
686
|
## Workflow
|
|
@@ -696,13 +696,13 @@ specification that still lists open questions.
|
|
|
696
696
|
8. If artifacts exist without workflow state, diagnose with
|
|
697
697
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
698
698
|
|
|
699
|
-
Available commands in `0.3.
|
|
699
|
+
Available commands in `0.3.21`:
|
|
700
700
|
|
|
701
701
|
| Command | Status |
|
|
702
702
|
| --- | --- |
|
|
703
703
|
| `devflow init` | Implemented |
|
|
704
704
|
| `devflow spec` | Implemented: Discovery, specification, and `--continue` |
|
|
705
|
-
| `devflow approve <id
|
|
705
|
+
| `devflow approve <id>` (stage `spec` by default) | Implemented |
|
|
706
706
|
| `devflow status <id>` | Implemented |
|
|
707
707
|
| `devflow doctor <id>` | Implemented: read-only diagnostics |
|
|
708
708
|
| `devflow recover <id>` | Implemented: register existing artifacts |
|
|
@@ -743,12 +743,13 @@ The command:
|
|
|
743
743
|
architecture to `context.md`;
|
|
744
744
|
6. stops without `spec.md` when any question or assumption remains
|
|
745
745
|
unresolved;
|
|
746
|
-
7. in an interactive run, stops after Discovery
|
|
746
|
+
7. in an interactive run, stops after the Discovery session and prints
|
|
747
747
|
the next command, so you can choose the harness for the
|
|
748
748
|
specification;
|
|
749
|
-
8. on `--continue` (or with `--auto`)
|
|
750
|
-
the
|
|
751
|
-
binds it to the Discovery
|
|
749
|
+
8. on `--continue` with Discovery already complete (or with `--auto`)
|
|
750
|
+
invokes the selected harness with the specification prompt,
|
|
751
|
+
validates the returned specification, and binds it to the Discovery
|
|
752
|
+
digest;
|
|
752
753
|
9. writes `spec.md` and registers the Discovery and specification
|
|
753
754
|
digests in the event log and the workflow projection.
|
|
754
755
|
|
|
@@ -762,6 +763,20 @@ devflow spec "Add a GET /patients endpoint"
|
|
|
762
763
|
devflow spec --continue 006 . --harness opencode
|
|
763
764
|
```
|
|
764
765
|
|
|
766
|
+
Without `--auto`, one interactive command opens at most one agent
|
|
767
|
+
session. When a session ends, exit the harness (for example with
|
|
768
|
+
`/exit`) so DevFlow can validate the result locally, without spending
|
|
769
|
+
tokens:
|
|
770
|
+
|
|
771
|
+
- after a Discovery session, DevFlow stops and prints the next command,
|
|
772
|
+
also when the session was opened by `--continue`;
|
|
773
|
+
- after a specification session, DevFlow validates and registers
|
|
774
|
+
`spec.md`.
|
|
775
|
+
|
|
776
|
+
Exit the specification session only after the agent says `spec.md` is
|
|
777
|
+
written. If the file is missing or invalid, DevFlow writes its
|
|
778
|
+
deterministic draft instead.
|
|
779
|
+
|
|
765
780
|
When no `--harness` is passed, an interactive `devflow spec` asks which
|
|
766
781
|
installed harness to use before starting, even if `.devflow/config.yaml`
|
|
767
782
|
already names one. The configured harness is offered as the default.
|
|
@@ -783,7 +798,9 @@ devflow spec --continue 006
|
|
|
783
798
|
|
|
784
799
|
`--continue` is not a new specification. It reuses the stored request
|
|
785
800
|
and project mode, loads Discovery, and stops until no decision is
|
|
786
|
-
pending and every assumption is accepted.
|
|
801
|
+
pending and every assumption is accepted. If it opened a Discovery
|
|
802
|
+
session, it stops at the Discovery checkpoint; run `--continue` again to
|
|
803
|
+
write the specification. It reuses a current
|
|
787
804
|
validated specification when the Discovery digest still matches;
|
|
788
805
|
otherwise it archives the old specification and generates a new one. If
|
|
789
806
|
an interrupted run left a complete `discovery.yaml` without
|
|
@@ -808,7 +825,8 @@ devflow spec --continue 006 --harness opencode
|
|
|
808
825
|
|
|
809
826
|
`--auto` keeps the older one-shot flow: Discovery and the specification
|
|
810
827
|
run in the same invocation. Without it, an interactive run stops at the
|
|
811
|
-
Discovery checkpoint
|
|
828
|
+
Discovery checkpoint, including a `--continue` run that answered the
|
|
829
|
+
remaining Discovery questions.
|
|
812
830
|
|
|
813
831
|
`spec --language <code>` selects the language for this run and stores it
|
|
814
832
|
as the project default in `.devflow/config.yaml`, so later `--continue`
|
|
@@ -838,6 +856,21 @@ devflow status 001-add-a-get-patients-endpoint
|
|
|
838
856
|
approvals, stale artifacts and orphan files. It reconciles
|
|
839
857
|
`workflow.yaml` from `events.jsonl` before reporting.
|
|
840
858
|
|
|
859
|
+
It ends with a `Next:` line:
|
|
860
|
+
|
|
861
|
+
| State | Next |
|
|
862
|
+
| --- | --- |
|
|
863
|
+
| Discovery pending | `devflow spec --continue 001` |
|
|
864
|
+
| Specification validated | review `spec.md`, then `devflow approve 001` |
|
|
865
|
+
| Specification approved | ask your coding agent to implement `spec.md` |
|
|
866
|
+
| Stale artifact or orphan file | `devflow doctor 001` |
|
|
867
|
+
|
|
868
|
+
A stale artifact also appears in the status line, for example
|
|
869
|
+
`spec_approved (blocked: spec (stale))`.
|
|
870
|
+
|
|
871
|
+
Use `status` day to day. `doctor` is for a change that `status` reports
|
|
872
|
+
as blocked, or that has files on disk without workflow state.
|
|
873
|
+
|
|
841
874
|
### Diagnose and recover a change
|
|
842
875
|
|
|
843
876
|
If `context.md`, `discovery.yaml` or `spec.md` were written outside
|
|
@@ -881,7 +914,7 @@ Recovery does not bypass review. After recovering, inspect
|
|
|
881
914
|
`devflow status 001`, then approve explicitly:
|
|
882
915
|
|
|
883
916
|
```bash
|
|
884
|
-
devflow approve 001
|
|
917
|
+
devflow approve 001
|
|
885
918
|
```
|
|
886
919
|
|
|
887
920
|
If Discovery is incomplete or `spec.md` is invalid, `recover` refuses to
|
|
@@ -891,11 +924,11 @@ register the artifacts and names the problem. Resolve it with
|
|
|
891
924
|
### Approve the specification
|
|
892
925
|
|
|
893
926
|
```bash
|
|
894
|
-
devflow approve 001
|
|
927
|
+
devflow approve 001
|
|
895
928
|
```
|
|
896
929
|
|
|
897
930
|
Approval is explicit and binds the decision to the current artifact
|
|
898
|
-
digests. For a `0.3.
|
|
931
|
+
digests. For a `0.3.21` change it binds `spec.md`, `discovery.yaml` and,
|
|
899
932
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
900
933
|
same approval is a no-op. If an artifact changes after validation,
|
|
901
934
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -906,8 +939,9 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
906
939
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
907
940
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
908
941
|
|
|
909
|
-
Only the `spec` stage is available in `0.3.
|
|
910
|
-
|
|
942
|
+
Only the `spec` stage is available in `0.3.21`, so `--stage` is optional
|
|
943
|
+
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
944
|
+
rejected. There are no `plan`, `implement` or
|
|
911
945
|
`review` commands in this release.
|
|
912
946
|
|
|
913
947
|
### Implement an approved specification
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DevFlow Toolkit
|
|
2
2
|
|
|
3
|
-
**Current version: `0.3.
|
|
3
|
+
**Current version: `0.3.21`.**
|
|
4
4
|
|
|
5
5
|
DevFlow is a command-line toolkit for leading AI models and coding
|
|
6
6
|
agents through specification-driven changes in real software projects.
|
|
@@ -120,7 +120,7 @@ pip install devflow-toolkit
|
|
|
120
120
|
To install a specific built artifact instead:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
pip install devflow_toolkit-0.3.
|
|
123
|
+
pip install devflow_toolkit-0.3.21-py3-none-any.whl
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Verify the installation:
|
|
@@ -175,7 +175,7 @@ devflow spec --continue 001
|
|
|
175
175
|
|
|
176
176
|
```bash
|
|
177
177
|
devflow status 001
|
|
178
|
-
devflow approve 001
|
|
178
|
+
devflow approve 001
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
7. Start the next change. The stored language and model are reused:
|
|
@@ -396,7 +396,7 @@ as an architectural constraint when it is present.
|
|
|
396
396
|
|
|
397
397
|
### Harnesses
|
|
398
398
|
|
|
399
|
-
| Harness | Status in 0.3.
|
|
399
|
+
| Harness | Status in 0.3.21 |
|
|
400
400
|
| --- | --- |
|
|
401
401
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
402
402
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -610,7 +610,7 @@ While any decision is pending or any assumption remains unaccepted:
|
|
|
610
610
|
|
|
611
611
|
- `discovery.yaml` and `context.md` are written;
|
|
612
612
|
- no `spec.md` is generated;
|
|
613
|
-
- `devflow approve
|
|
613
|
+
- `devflow approve` refuses the change;
|
|
614
614
|
- the workflow status is `awaiting_clarification`.
|
|
615
615
|
|
|
616
616
|
`context.md` is the single generated context file. Its
|
|
@@ -648,7 +648,7 @@ A generated specification is valid only when section 7 is exactly
|
|
|
648
648
|
did not cover, DevFlow rejects the generated document, archives it,
|
|
649
649
|
appends the question to `discovery.yaml`, and returns the change to
|
|
650
650
|
`awaiting_clarification`. The question must be answered before a new
|
|
651
|
-
specification is generated. `devflow approve
|
|
651
|
+
specification is generated. `devflow approve` rejects a
|
|
652
652
|
specification that still lists open questions.
|
|
653
653
|
|
|
654
654
|
## Workflow
|
|
@@ -664,13 +664,13 @@ specification that still lists open questions.
|
|
|
664
664
|
8. If artifacts exist without workflow state, diagnose with
|
|
665
665
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
666
666
|
|
|
667
|
-
Available commands in `0.3.
|
|
667
|
+
Available commands in `0.3.21`:
|
|
668
668
|
|
|
669
669
|
| Command | Status |
|
|
670
670
|
| --- | --- |
|
|
671
671
|
| `devflow init` | Implemented |
|
|
672
672
|
| `devflow spec` | Implemented: Discovery, specification, and `--continue` |
|
|
673
|
-
| `devflow approve <id
|
|
673
|
+
| `devflow approve <id>` (stage `spec` by default) | Implemented |
|
|
674
674
|
| `devflow status <id>` | Implemented |
|
|
675
675
|
| `devflow doctor <id>` | Implemented: read-only diagnostics |
|
|
676
676
|
| `devflow recover <id>` | Implemented: register existing artifacts |
|
|
@@ -711,12 +711,13 @@ The command:
|
|
|
711
711
|
architecture to `context.md`;
|
|
712
712
|
6. stops without `spec.md` when any question or assumption remains
|
|
713
713
|
unresolved;
|
|
714
|
-
7. in an interactive run, stops after Discovery
|
|
714
|
+
7. in an interactive run, stops after the Discovery session and prints
|
|
715
715
|
the next command, so you can choose the harness for the
|
|
716
716
|
specification;
|
|
717
|
-
8. on `--continue` (or with `--auto`)
|
|
718
|
-
the
|
|
719
|
-
binds it to the Discovery
|
|
717
|
+
8. on `--continue` with Discovery already complete (or with `--auto`)
|
|
718
|
+
invokes the selected harness with the specification prompt,
|
|
719
|
+
validates the returned specification, and binds it to the Discovery
|
|
720
|
+
digest;
|
|
720
721
|
9. writes `spec.md` and registers the Discovery and specification
|
|
721
722
|
digests in the event log and the workflow projection.
|
|
722
723
|
|
|
@@ -730,6 +731,20 @@ devflow spec "Add a GET /patients endpoint"
|
|
|
730
731
|
devflow spec --continue 006 . --harness opencode
|
|
731
732
|
```
|
|
732
733
|
|
|
734
|
+
Without `--auto`, one interactive command opens at most one agent
|
|
735
|
+
session. When a session ends, exit the harness (for example with
|
|
736
|
+
`/exit`) so DevFlow can validate the result locally, without spending
|
|
737
|
+
tokens:
|
|
738
|
+
|
|
739
|
+
- after a Discovery session, DevFlow stops and prints the next command,
|
|
740
|
+
also when the session was opened by `--continue`;
|
|
741
|
+
- after a specification session, DevFlow validates and registers
|
|
742
|
+
`spec.md`.
|
|
743
|
+
|
|
744
|
+
Exit the specification session only after the agent says `spec.md` is
|
|
745
|
+
written. If the file is missing or invalid, DevFlow writes its
|
|
746
|
+
deterministic draft instead.
|
|
747
|
+
|
|
733
748
|
When no `--harness` is passed, an interactive `devflow spec` asks which
|
|
734
749
|
installed harness to use before starting, even if `.devflow/config.yaml`
|
|
735
750
|
already names one. The configured harness is offered as the default.
|
|
@@ -751,7 +766,9 @@ devflow spec --continue 006
|
|
|
751
766
|
|
|
752
767
|
`--continue` is not a new specification. It reuses the stored request
|
|
753
768
|
and project mode, loads Discovery, and stops until no decision is
|
|
754
|
-
pending and every assumption is accepted.
|
|
769
|
+
pending and every assumption is accepted. If it opened a Discovery
|
|
770
|
+
session, it stops at the Discovery checkpoint; run `--continue` again to
|
|
771
|
+
write the specification. It reuses a current
|
|
755
772
|
validated specification when the Discovery digest still matches;
|
|
756
773
|
otherwise it archives the old specification and generates a new one. If
|
|
757
774
|
an interrupted run left a complete `discovery.yaml` without
|
|
@@ -776,7 +793,8 @@ devflow spec --continue 006 --harness opencode
|
|
|
776
793
|
|
|
777
794
|
`--auto` keeps the older one-shot flow: Discovery and the specification
|
|
778
795
|
run in the same invocation. Without it, an interactive run stops at the
|
|
779
|
-
Discovery checkpoint
|
|
796
|
+
Discovery checkpoint, including a `--continue` run that answered the
|
|
797
|
+
remaining Discovery questions.
|
|
780
798
|
|
|
781
799
|
`spec --language <code>` selects the language for this run and stores it
|
|
782
800
|
as the project default in `.devflow/config.yaml`, so later `--continue`
|
|
@@ -806,6 +824,21 @@ devflow status 001-add-a-get-patients-endpoint
|
|
|
806
824
|
approvals, stale artifacts and orphan files. It reconciles
|
|
807
825
|
`workflow.yaml` from `events.jsonl` before reporting.
|
|
808
826
|
|
|
827
|
+
It ends with a `Next:` line:
|
|
828
|
+
|
|
829
|
+
| State | Next |
|
|
830
|
+
| --- | --- |
|
|
831
|
+
| Discovery pending | `devflow spec --continue 001` |
|
|
832
|
+
| Specification validated | review `spec.md`, then `devflow approve 001` |
|
|
833
|
+
| Specification approved | ask your coding agent to implement `spec.md` |
|
|
834
|
+
| Stale artifact or orphan file | `devflow doctor 001` |
|
|
835
|
+
|
|
836
|
+
A stale artifact also appears in the status line, for example
|
|
837
|
+
`spec_approved (blocked: spec (stale))`.
|
|
838
|
+
|
|
839
|
+
Use `status` day to day. `doctor` is for a change that `status` reports
|
|
840
|
+
as blocked, or that has files on disk without workflow state.
|
|
841
|
+
|
|
809
842
|
### Diagnose and recover a change
|
|
810
843
|
|
|
811
844
|
If `context.md`, `discovery.yaml` or `spec.md` were written outside
|
|
@@ -849,7 +882,7 @@ Recovery does not bypass review. After recovering, inspect
|
|
|
849
882
|
`devflow status 001`, then approve explicitly:
|
|
850
883
|
|
|
851
884
|
```bash
|
|
852
|
-
devflow approve 001
|
|
885
|
+
devflow approve 001
|
|
853
886
|
```
|
|
854
887
|
|
|
855
888
|
If Discovery is incomplete or `spec.md` is invalid, `recover` refuses to
|
|
@@ -859,11 +892,11 @@ register the artifacts and names the problem. Resolve it with
|
|
|
859
892
|
### Approve the specification
|
|
860
893
|
|
|
861
894
|
```bash
|
|
862
|
-
devflow approve 001
|
|
895
|
+
devflow approve 001
|
|
863
896
|
```
|
|
864
897
|
|
|
865
898
|
Approval is explicit and binds the decision to the current artifact
|
|
866
|
-
digests. For a `0.3.
|
|
899
|
+
digests. For a `0.3.21` change it binds `spec.md`, `discovery.yaml` and,
|
|
867
900
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
868
901
|
same approval is a no-op. If an artifact changes after validation,
|
|
869
902
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -874,8 +907,9 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
874
907
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
875
908
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
876
909
|
|
|
877
|
-
Only the `spec` stage is available in `0.3.
|
|
878
|
-
|
|
910
|
+
Only the `spec` stage is available in `0.3.21`, so `--stage` is optional
|
|
911
|
+
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
912
|
+
rejected. There are no `plan`, `implement` or
|
|
879
913
|
`review` commands in this release.
|
|
880
914
|
|
|
881
915
|
### Implement an approved specification
|
|
@@ -34,7 +34,10 @@ def approve(
|
|
|
34
34
|
stage: str = typer.Option(
|
|
35
35
|
"spec",
|
|
36
36
|
"--stage",
|
|
37
|
-
help=
|
|
37
|
+
help=(
|
|
38
|
+
"Stage to approve. Defaults to 'spec', the only stage available "
|
|
39
|
+
"in this release."
|
|
40
|
+
),
|
|
38
41
|
),
|
|
39
42
|
) -> None:
|
|
40
43
|
"""Approve the validated artifacts of a workflow stage."""
|
|
@@ -57,7 +60,7 @@ def _approve(spec_id: str, path: Path, stage: str) -> None:
|
|
|
57
60
|
normalized = stage.strip().lower()
|
|
58
61
|
if normalized != "spec":
|
|
59
62
|
msg = (
|
|
60
|
-
f"Stage '{stage}' is not available in
|
|
63
|
+
f"Stage '{stage}' is not available in this release. "
|
|
61
64
|
"Only the 'spec' stage can be approved."
|
|
62
65
|
)
|
|
63
66
|
raise UnsupportedStageError(msg)
|
|
@@ -8,6 +8,7 @@ import typer
|
|
|
8
8
|
from rich.console import Console
|
|
9
9
|
|
|
10
10
|
from devflow.core.artifacts.errors import ArtifactError
|
|
11
|
+
from devflow.core.artifacts.models import ArtifactStatus
|
|
11
12
|
from devflow.core.config import (
|
|
12
13
|
ConfigError,
|
|
13
14
|
ConfigManager,
|
|
@@ -17,9 +18,12 @@ from devflow.core.discovery import DiscoveryError, DiscoveryManager
|
|
|
17
18
|
from devflow.core.project import ProjectDetector
|
|
18
19
|
from devflow.core.state import (
|
|
19
20
|
ChangeLocation,
|
|
21
|
+
ChangeStatus,
|
|
20
22
|
StateError,
|
|
21
23
|
WorkflowLocator,
|
|
22
24
|
WorkflowStateManager,
|
|
25
|
+
WorkflowStatus,
|
|
26
|
+
artifact_blockers,
|
|
23
27
|
)
|
|
24
28
|
|
|
25
29
|
console = Console()
|
|
@@ -64,7 +68,17 @@ def _status(spec_id: str, path: Path) -> None:
|
|
|
64
68
|
|
|
65
69
|
console.print(f"[bold]Change:[/bold] {location.change}")
|
|
66
70
|
console.print(f"[bold]Spec id:[/bold] {location.spec_id}")
|
|
67
|
-
|
|
71
|
+
blockers = (
|
|
72
|
+
artifact_blockers(state, state.status)
|
|
73
|
+
if state.status != WorkflowStatus.DRAFT.value
|
|
74
|
+
else ()
|
|
75
|
+
)
|
|
76
|
+
status_line = f"[bold]Status:[/bold] {state.status}"
|
|
77
|
+
if blockers:
|
|
78
|
+
status_line += (
|
|
79
|
+
" [yellow](blocked: " + ", ".join(blockers) + ")[/yellow]"
|
|
80
|
+
)
|
|
81
|
+
console.print(status_line)
|
|
68
82
|
console.print(f"[bold]Updated:[/bold] {state.updated_at or 'unknown'}")
|
|
69
83
|
if current.last_event is not None:
|
|
70
84
|
console.print(
|
|
@@ -109,6 +123,47 @@ def _status(spec_id: str, path: Path) -> None:
|
|
|
109
123
|
"They are not approved and do not advance the change.[/dim]"
|
|
110
124
|
)
|
|
111
125
|
|
|
126
|
+
next_step = _next_step(current, location)
|
|
127
|
+
if next_step:
|
|
128
|
+
console.print(f"\n[bold]Next:[/bold] {next_step}")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def _next_step(
|
|
132
|
+
current: ChangeStatus,
|
|
133
|
+
location: ChangeLocation,
|
|
134
|
+
) -> str:
|
|
135
|
+
"""Suggest the next action for the current workflow state."""
|
|
136
|
+
state = current.state
|
|
137
|
+
spec_id = location.spec_id
|
|
138
|
+
artifacts = state.artifacts
|
|
139
|
+
stale = any(
|
|
140
|
+
record.status == ArtifactStatus.STALE.value
|
|
141
|
+
for record in artifacts.values()
|
|
142
|
+
)
|
|
143
|
+
if stale or current.orphans:
|
|
144
|
+
return f"devflow doctor {spec_id}"
|
|
145
|
+
|
|
146
|
+
spec = artifacts.get("spec")
|
|
147
|
+
if state.status == WorkflowStatus.SPEC_APPROVED.value:
|
|
148
|
+
spec_path = (
|
|
149
|
+
spec.path
|
|
150
|
+
if spec is not None
|
|
151
|
+
else f"{location.change}/spec.md"
|
|
152
|
+
)
|
|
153
|
+
return f"ask your coding agent to implement `{spec_path}`"
|
|
154
|
+
if (
|
|
155
|
+
state.status == WorkflowStatus.DRAFT.value
|
|
156
|
+
and spec is not None
|
|
157
|
+
and spec.status == ArtifactStatus.VALIDATED.value
|
|
158
|
+
):
|
|
159
|
+
return f"review spec.md, then devflow approve {spec_id}"
|
|
160
|
+
if state.status in {
|
|
161
|
+
WorkflowStatus.DRAFT.value,
|
|
162
|
+
WorkflowStatus.AWAITING_CLARIFICATION.value,
|
|
163
|
+
}:
|
|
164
|
+
return f"devflow spec --continue {spec_id}"
|
|
165
|
+
return ""
|
|
166
|
+
|
|
112
167
|
|
|
113
168
|
def _print_discovery(
|
|
114
169
|
*,
|
|
@@ -326,11 +326,13 @@ class SpecWorkflow:
|
|
|
326
326
|
|
|
327
327
|
adapter = request.adapter
|
|
328
328
|
setup_result: SetupResult | None = None
|
|
329
|
+
discovery_session = False
|
|
329
330
|
if (
|
|
330
331
|
not discovery.is_complete
|
|
331
332
|
and self._can_run_discovery(adapter, request, config)
|
|
332
333
|
):
|
|
333
334
|
assert adapter is not None
|
|
335
|
+
discovery_session = True
|
|
334
336
|
setup_result = self._setup_adapter(
|
|
335
337
|
adapter=adapter,
|
|
336
338
|
config=config,
|
|
@@ -430,7 +432,12 @@ class SpecWorkflow:
|
|
|
430
432
|
directory=prepared.directory,
|
|
431
433
|
)
|
|
432
434
|
|
|
433
|
-
|
|
435
|
+
# A new change always pauses after Discovery. A continuation pauses
|
|
436
|
+
# only when it opened a Discovery session, so one command never
|
|
437
|
+
# chains two agent sessions unless --auto is used.
|
|
438
|
+
if request.stop_after_discovery and (
|
|
439
|
+
discovery_session or not continuation
|
|
440
|
+
):
|
|
434
441
|
return self._build_result(
|
|
435
442
|
spec=None,
|
|
436
443
|
harness_name=(
|
|
@@ -425,7 +425,9 @@ def _discovery_mode_instructions(
|
|
|
425
425
|
"a new question with the next `Qn` identifier. Update "
|
|
426
426
|
f"`{discovery_path}` in place. Do not write or modify `spec.md` in "
|
|
427
427
|
"this phase. Stop and report only when DevFlow can validate "
|
|
428
|
-
"Discovery as complete."
|
|
428
|
+
"Discovery as complete. Then tell the user that Discovery is "
|
|
429
|
+
"recorded and that they must exit this session so DevFlow can "
|
|
430
|
+
"validate it."
|
|
429
431
|
)
|
|
430
432
|
|
|
431
433
|
|
|
@@ -444,7 +446,10 @@ def _mode_instructions(
|
|
|
444
446
|
"genuinely missing, do not write the specification: report it as "
|
|
445
447
|
"a numbered item in section 7 so DevFlow can return it to "
|
|
446
448
|
"Discovery. Do not finish until the file exists and contains the "
|
|
447
|
-
"complete document."
|
|
449
|
+
"complete document. Then tell the user that the specification is "
|
|
450
|
+
"written and that they must exit this session so DevFlow can "
|
|
451
|
+
"validate it. Exiting earlier makes DevFlow replace it with a "
|
|
452
|
+
"deterministic draft."
|
|
448
453
|
)
|
|
449
454
|
return (
|
|
450
455
|
"You are running interactively, but specification writes are "
|
|
@@ -567,6 +567,10 @@ def test_blocked_discovery_cannot_be_approved(tmp_path: Path) -> None:
|
|
|
567
567
|
assert "discovery is not complete" in approval.output
|
|
568
568
|
assert not (_change_directory(tmp_path) / "spec.md").exists()
|
|
569
569
|
|
|
570
|
+
status = runner.invoke(app, ["status", "001", str(tmp_path)])
|
|
571
|
+
assert status.exit_code == 0, status.output
|
|
572
|
+
assert "Next: devflow spec --continue 001" in status.output
|
|
573
|
+
|
|
570
574
|
|
|
571
575
|
def test_continue_generates_a_digest_bound_specification(
|
|
572
576
|
tmp_path: Path,
|
|
@@ -295,6 +295,70 @@ def test_workflow_stops_after_discovery_when_requested(
|
|
|
295
295
|
).exists()
|
|
296
296
|
|
|
297
297
|
|
|
298
|
+
def test_continue_pauses_after_discovery_session_then_writes_spec(
|
|
299
|
+
tmp_path: Path,
|
|
300
|
+
) -> None:
|
|
301
|
+
config = _config(tmp_path)
|
|
302
|
+
adapter = FakeAdapter()
|
|
303
|
+
prompts: list[str] = []
|
|
304
|
+
|
|
305
|
+
def idle(invocation: Invocation) -> InvocationResult:
|
|
306
|
+
return InvocationResult(returncode=0, stdout="", stderr="")
|
|
307
|
+
|
|
308
|
+
def answer(invocation: Invocation) -> InvocationResult:
|
|
309
|
+
assert adapter.run_context is not None
|
|
310
|
+
prompts.append(adapter.run_context.prompt)
|
|
311
|
+
if "Discovery Task" in adapter.run_context.prompt:
|
|
312
|
+
manager = DiscoveryManager(invocation.cwd)
|
|
313
|
+
directory = adapter.run_context.spec_directory
|
|
314
|
+
document = manager.load(directory, required=True)
|
|
315
|
+
for question in document.pending_questions:
|
|
316
|
+
document = manager.answer(
|
|
317
|
+
document,
|
|
318
|
+
question.id,
|
|
319
|
+
"Use the existing project behavior.",
|
|
320
|
+
)
|
|
321
|
+
manager.write(directory, document)
|
|
322
|
+
return InvocationResult(returncode=0, stdout="", stderr="")
|
|
323
|
+
|
|
324
|
+
created = _run(
|
|
325
|
+
config,
|
|
326
|
+
adapter=adapter,
|
|
327
|
+
executor=idle,
|
|
328
|
+
mode="interactive",
|
|
329
|
+
stop_after_discovery=True,
|
|
330
|
+
)
|
|
331
|
+
assert created.blocked is True
|
|
332
|
+
|
|
333
|
+
resumed = _run(
|
|
334
|
+
config,
|
|
335
|
+
adapter=adapter,
|
|
336
|
+
executor=answer,
|
|
337
|
+
mode="interactive",
|
|
338
|
+
stop_after_discovery=True,
|
|
339
|
+
description="",
|
|
340
|
+
continue_spec_id="001",
|
|
341
|
+
)
|
|
342
|
+
assert resumed.stopped_after_discovery is True
|
|
343
|
+
assert resumed.spec is None
|
|
344
|
+
assert len(prompts) == 1
|
|
345
|
+
assert "Discovery Task" in prompts[0]
|
|
346
|
+
|
|
347
|
+
finished = _run(
|
|
348
|
+
config,
|
|
349
|
+
adapter=adapter,
|
|
350
|
+
executor=answer,
|
|
351
|
+
mode="interactive",
|
|
352
|
+
stop_after_discovery=True,
|
|
353
|
+
description="",
|
|
354
|
+
continue_spec_id="001",
|
|
355
|
+
)
|
|
356
|
+
assert finished.stopped_after_discovery is False
|
|
357
|
+
assert finished.spec is not None
|
|
358
|
+
assert len(prompts) == 2
|
|
359
|
+
assert "Specification Task" in prompts[1]
|
|
360
|
+
|
|
361
|
+
|
|
298
362
|
def test_workflow_falls_back_when_agent_output_is_invalid(
|
|
299
363
|
tmp_path: Path,
|
|
300
364
|
) -> None:
|
|
@@ -424,14 +424,24 @@ def test_cli_status_approve_and_stale_detection(
|
|
|
424
424
|
assert status_result.exit_code == 0, status_result.output
|
|
425
425
|
assert "Status: draft" in status_result.output
|
|
426
426
|
assert "validated" in status_result.output
|
|
427
|
+
assert "Next: review spec.md, then devflow approve 001" in (
|
|
428
|
+
status_result.output
|
|
429
|
+
)
|
|
427
430
|
|
|
428
431
|
approve_result = runner.invoke(
|
|
429
432
|
app,
|
|
430
|
-
["approve", change, str(tmp_path)
|
|
433
|
+
["approve", change, str(tmp_path)],
|
|
431
434
|
)
|
|
432
435
|
assert approve_result.exit_code == 0, approve_result.output
|
|
433
436
|
assert "Workflow status: spec_approved" in approve_result.output
|
|
434
437
|
|
|
438
|
+
approved_status = runner.invoke(
|
|
439
|
+
app,
|
|
440
|
+
["status", change, str(tmp_path)],
|
|
441
|
+
)
|
|
442
|
+
assert "ask your coding agent to implement" in approved_status.output
|
|
443
|
+
assert "blocked" not in approved_status.output
|
|
444
|
+
|
|
435
445
|
repeat = runner.invoke(
|
|
436
446
|
app,
|
|
437
447
|
["approve", change, str(tmp_path), "--stage", "spec"],
|
|
@@ -447,6 +457,9 @@ def test_cli_status_approve_and_stale_detection(
|
|
|
447
457
|
)
|
|
448
458
|
assert stale_status.exit_code == 0, stale_status.output
|
|
449
459
|
assert "stale" in stale_status.output
|
|
460
|
+
assert "blocked: spec (stale)" in stale_status.output
|
|
461
|
+
assert "Next: devflow doctor 001" in stale_status.output
|
|
462
|
+
assert "implement" not in stale_status.output
|
|
450
463
|
|
|
451
464
|
stale_approve = runner.invoke(
|
|
452
465
|
app,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/django-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{devflow_toolkit-0.3.19 → devflow_toolkit-0.3.21}/src/devflow/profiles/fastapi-backend/profile.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|