devflow-toolkit 0.3.14__tar.gz → 0.3.16__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.14 → devflow_toolkit-0.3.16}/CHANGELOG.md +58 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/PKG-INFO +95 -22
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/README.md +94 -21
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/pyproject.toml +1 -1
- devflow_toolkit-0.3.16/src/devflow/adapters/antigravity.py +284 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/codex.py +2 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/opencode.py +20 -3
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/registry.py +2 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/cli.py +1 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/approve.py +1 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/harness.py +2 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/init.py +2 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/spec.py +2 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/status.py +3 -1
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/config.py +130 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/discovery.py +343 -40
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/ports.py +3 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/spec_workflow.py +130 -0
- devflow_toolkit-0.3.16/src/devflow/prompts/__init__.py +471 -0
- devflow_toolkit-0.3.16/src/devflow/prompts/discovery.md +281 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_discovery.py +20 -0
- devflow_toolkit-0.3.16/tests/test_discovery_decisions.py +403 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_harness_adapters.py +119 -1
- devflow_toolkit-0.3.14/src/devflow/prompts/__init__.py +0 -258
- devflow_toolkit-0.3.14/src/devflow/prompts/discovery.md +0 -181
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/.gitignore +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/LICENSE +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/agents.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/base.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/claude_code.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/detector.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/instructions.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/adapters/kiro.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/doctor.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/commands/recover.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/architecture.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/artifacts/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/artifacts/errors.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/artifacts/models.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/artifacts/store.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/clock.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/constitution.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/profile_manager.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/project.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/recovery.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/specification.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/errors.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/events.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/locator.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/lock.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/manager.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/models.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/core/state/transitions.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/models/__init__.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/models/profile.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/models/project.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/base/constitution/architecture.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/base/constitution/constitution.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/base/profile.yaml +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/django-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/prompts/spec.greenfield.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/src/devflow/prompts/spec.md +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_cli.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_event_log.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_greenfield.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_hardening.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_recovery.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_spec_workflow.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_state.py +0 -0
- {devflow_toolkit-0.3.14 → devflow_toolkit-0.3.16}/tests/test_state_replay.py +0 -0
|
@@ -2,6 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to DevFlow Toolkit are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.3.16 - 2026-11-05
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Discovery now uses a decision contract with three outcomes:
|
|
10
|
+
`resolved`, `assumed` and `pending`. Questions gain `materiality`,
|
|
11
|
+
`resolution_source` and `evidence`, while `pending`, `resolved` and
|
|
12
|
+
`assumed` replace the old answered/pending-only model.
|
|
13
|
+
- `decision-context.md` is generated deterministically for every
|
|
14
|
+
change. It contains project facts, conventions, approved decisions,
|
|
15
|
+
evidence, pending decisions and constraints, is token-capped, and
|
|
16
|
+
carries its own digest for new sessions.
|
|
17
|
+
- Discovery configuration adds question budgets, maximum rounds,
|
|
18
|
+
batching and assumption policy under `discovery` in
|
|
19
|
+
`.devflow/config.yaml`.
|
|
20
|
+
- Basic batching groups independent decisions into one interaction.
|
|
21
|
+
Harness limits are enforced; Codex is capped at three questions per
|
|
22
|
+
call.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Discovery prefers evidence before questions and only asks for
|
|
27
|
+
decisions that materially change the result. Critical and security
|
|
28
|
+
decisions can never be assumed.
|
|
29
|
+
- OpenCode and Antigravity agent instructions now ask for one batched
|
|
30
|
+
question call per round instead of one call per question.
|
|
31
|
+
- Legacy discovery records remain loadable. `answered` is read as
|
|
32
|
+
`resolved`, and questions without an explicit materiality keep their
|
|
33
|
+
previous behavior.
|
|
34
|
+
- Package version is `0.3.16`.
|
|
35
|
+
|
|
36
|
+
## 0.3.15 - 2026-11-05
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- Google Antigravity (`agy`) is now a supported harness. `devflow init
|
|
41
|
+
--harness antigravity` generates `AGENTS.md` and the custom agents
|
|
42
|
+
`.agents/agents/devflow-spec.md` and
|
|
43
|
+
`.agents/agents/devflow-spec-readonly.md`, and adds them to the
|
|
44
|
+
managed `.gitignore` block. Interactive runs use the writable agent
|
|
45
|
+
with `ask_question` enabled; non-interactive runs use the read-only
|
|
46
|
+
agent in print mode.
|
|
47
|
+
- Antigravity permissions scope project reads and `.devflow/specs`
|
|
48
|
+
writes, and deny commands, web access and MCP servers. The inline
|
|
49
|
+
`--settings` payload also trusts the project workspace so the CLI does
|
|
50
|
+
not stop at the trust prompt.
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
|
|
54
|
+
- Interactive OpenCode Discovery now explicitly tells the generated
|
|
55
|
+
`devflow-spec` agent to call the `question` tool for every pending
|
|
56
|
+
question and every assumption acceptance instead of asking in
|
|
57
|
+
free-form prose.
|
|
58
|
+
- The Discovery prompt names the structured question tool for OpenCode
|
|
59
|
+
(`question`) and Antigravity (`ask_question`). Codex and Claude Code
|
|
60
|
+
prompt text is unchanged.
|
|
61
|
+
- Package version is `0.3.15`.
|
|
62
|
+
|
|
5
63
|
## 0.3.14 - 2026-11-05
|
|
6
64
|
|
|
7
65
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.16
|
|
4
4
|
Summary: Specification workflow toolkit for AI-assisted software changes
|
|
5
5
|
Author: DevFlow contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -42,7 +42,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
|
|
|
42
42
|
selected agent harness is only the execution backend that drafts the
|
|
43
43
|
specification.
|
|
44
44
|
|
|
45
|
-
This is the `0.3.
|
|
45
|
+
This is the `0.3.16` MVP. It implements the **discovery and
|
|
46
46
|
specification stages only**. It supports two specification contexts:
|
|
47
47
|
**Existing Project** (the default) and **Greenfield**. It is not a
|
|
48
48
|
complete SDD platform and does not include planning, implementation or
|
|
@@ -101,9 +101,10 @@ identity for the project:
|
|
|
101
101
|
- A POSIX operating system (Linux or macOS). Windows is not tested and is
|
|
102
102
|
not supported in this release, because the workflow locks require
|
|
103
103
|
`fcntl`.
|
|
104
|
-
- For agent-generated specifications: OpenCode
|
|
105
|
-
authenticated on `PATH`. OpenCode is
|
|
106
|
-
end-to-end
|
|
104
|
+
- For agent-generated specifications: OpenCode or Google Antigravity
|
|
105
|
+
(`agy`) installed and authenticated on `PATH`. OpenCode is verified
|
|
106
|
+
end-to-end; Antigravity agent loading and print mode are verified
|
|
107
|
+
locally.
|
|
107
108
|
- Git is not required. DevFlow does not initialize a repository, commit
|
|
108
109
|
files or run destructive commands.
|
|
109
110
|
|
|
@@ -118,7 +119,7 @@ pip install devflow-toolkit
|
|
|
118
119
|
To install a specific built artifact instead:
|
|
119
120
|
|
|
120
121
|
```bash
|
|
121
|
-
pip install devflow_toolkit-0.3.
|
|
122
|
+
pip install devflow_toolkit-0.3.16-py3-none-any.whl
|
|
122
123
|
```
|
|
123
124
|
|
|
124
125
|
Verify the installation:
|
|
@@ -155,6 +156,7 @@ Common options:
|
|
|
155
156
|
|
|
156
157
|
```bash
|
|
157
158
|
devflow init --harness opencode --mode non-interactive
|
|
159
|
+
devflow init --harness antigravity --mode interactive
|
|
158
160
|
devflow init --profile django-backend --name my-service
|
|
159
161
|
devflow init --project-mode greenfield
|
|
160
162
|
devflow init --language es
|
|
@@ -297,9 +299,10 @@ as an architectural constraint when it is present.
|
|
|
297
299
|
|
|
298
300
|
### Harnesses
|
|
299
301
|
|
|
300
|
-
| Harness | Status in 0.3.
|
|
302
|
+
| Harness | Status in 0.3.16 |
|
|
301
303
|
| --- | --- |
|
|
302
|
-
| OpenCode | Verified end-to-end
|
|
304
|
+
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
305
|
+
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
303
306
|
| Codex | Integration files are generated, but not verified for this release |
|
|
304
307
|
| Claude Code | Integration files are generated, but not verified for this release |
|
|
305
308
|
| Kiro | Integration files are generated, but not verified for this release |
|
|
@@ -316,6 +319,26 @@ its native `AskUserQuestion` dialog. Both adapters fall back to numbered
|
|
|
316
319
|
text options if the installed harness does not expose a structured
|
|
317
320
|
question tool.
|
|
318
321
|
|
|
322
|
+
OpenCode and Antigravity receive an explicit instruction to call their
|
|
323
|
+
structured question tool for every pending Discovery question and for
|
|
324
|
+
every assumption acceptance. OpenCode's tool is `question`; Antigravity's
|
|
325
|
+
tool is `ask_question`. The instruction is injected only for those
|
|
326
|
+
harnesses, so the Codex and Claude Code prompts are unchanged.
|
|
327
|
+
|
|
328
|
+
For Antigravity, DevFlow generates `AGENTS.md` and custom agents under
|
|
329
|
+
`.agents/agents/`. Interactive runs use the writable `devflow-spec`
|
|
330
|
+
agent with `agy --settings <json> --agent devflow-spec
|
|
331
|
+
--prompt-interactive <prompt>`. Non-interactive runs use the read-only
|
|
332
|
+
`devflow-spec-readonly` agent with `agy --settings <json> --agent
|
|
333
|
+
devflow-spec-readonly --print --output-format text <prompt>`. Project
|
|
334
|
+
reads are allowed, writes are scoped to `.devflow/specs` in interactive
|
|
335
|
+
mode, and commands, web access and MCP servers are denied. The alias
|
|
336
|
+
`agy` is accepted for `--harness`.
|
|
337
|
+
|
|
338
|
+
To configure Discovery in Spanish, pass `--language es` to `init`, or to
|
|
339
|
+
a single `spec` run. The conversation and the stored question text use
|
|
340
|
+
the selected language.
|
|
341
|
+
|
|
319
342
|
For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
|
|
320
343
|
agents under `.opencode/agents/`. The project-level `opencode.json` can
|
|
321
344
|
also select the model used by the agent, for example:
|
|
@@ -382,6 +405,7 @@ updated_at: "2026-11-02T10:00:00Z"
|
|
|
382
405
|
questions:
|
|
383
406
|
- id: Q1
|
|
384
407
|
category: functional_scope
|
|
408
|
+
materiality: functional
|
|
385
409
|
question: What should happen when the contact form is submitted?
|
|
386
410
|
reason: Persistence, confirmation and email delivery change scope.
|
|
387
411
|
blocking: true
|
|
@@ -390,9 +414,22 @@ questions:
|
|
|
390
414
|
answer: null
|
|
391
415
|
answered_by: null
|
|
392
416
|
answered_at: null
|
|
417
|
+
- id: Q2
|
|
418
|
+
category: architecture_boundary
|
|
419
|
+
materiality: technical
|
|
420
|
+
question: Which form mechanism should the page use?
|
|
421
|
+
reason: The project already uses Django Forms.
|
|
422
|
+
blocking: false
|
|
423
|
+
status: resolved
|
|
424
|
+
resolution_source: evidence
|
|
425
|
+
evidence:
|
|
426
|
+
- "profiles/django-backend"
|
|
427
|
+
- "src/contact/forms.py:12"
|
|
428
|
+
answer: Reuse Django Forms.
|
|
429
|
+
options: []
|
|
393
430
|
assumptions:
|
|
394
431
|
- id: A1
|
|
395
|
-
question_id:
|
|
432
|
+
question_id: Q3
|
|
396
433
|
value: Use `/contacto/` as the URL path.
|
|
397
434
|
reason: Internal routing must be visible before approval.
|
|
398
435
|
source: agent_default
|
|
@@ -401,14 +438,45 @@ assumptions:
|
|
|
401
438
|
accepted_at: null
|
|
402
439
|
```
|
|
403
440
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
`
|
|
411
|
-
|
|
441
|
+
Every decision has one outcome: `resolved`, `assumed` or `pending`.
|
|
442
|
+
A question presents a pending decision; an assumption is the acceptance
|
|
443
|
+
ledger for an assumed decision. Each decision has a `category`, a
|
|
444
|
+
`materiality` (`critical`, `functional`, `technical` or `cosmetic`) and
|
|
445
|
+
an explicit `blocking` flag.
|
|
446
|
+
|
|
447
|
+
- `pending` is valid only for blocking or material decisions.
|
|
448
|
+
- `resolved` by the user records `answer`, `answered_by` and
|
|
449
|
+
`answered_at`.
|
|
450
|
+
- `resolved` by evidence records `resolution_source: evidence` and at
|
|
451
|
+
least one `evidence` entry.
|
|
452
|
+
- `assumed` requires a linked assumption with explicit human acceptance.
|
|
453
|
+
Critical and security decisions can never be assumed.
|
|
454
|
+
- `answered` is a legacy alias that DevFlow reads as `resolved`.
|
|
455
|
+
|
|
456
|
+
A specification may only be generated when no decision is `pending` and
|
|
457
|
+
every assumption has been explicitly accepted. DevFlow validates the
|
|
458
|
+
record and confirms completeness; the agent never declares Discovery
|
|
459
|
+
complete on its own.
|
|
460
|
+
|
|
461
|
+
Discovery uses a per-round question budget and batches independent
|
|
462
|
+
decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
463
|
+
|
|
464
|
+
```yaml
|
|
465
|
+
discovery:
|
|
466
|
+
question_budget:
|
|
467
|
+
initial: 6
|
|
468
|
+
follow_up: 3
|
|
469
|
+
maximum: 12
|
|
470
|
+
interaction:
|
|
471
|
+
batch_size: 6
|
|
472
|
+
max_rounds: 3
|
|
473
|
+
assumptions:
|
|
474
|
+
enabled: true
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
The budget limits questions but never permits ignoring a critical
|
|
478
|
+
decision. If material decisions remain after the budget is exhausted,
|
|
479
|
+
Discovery stays incomplete and asks for intervention.
|
|
412
480
|
|
|
413
481
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
414
482
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -431,13 +499,18 @@ starts as `pending_acceptance`. It never becomes accepted automatically.
|
|
|
431
499
|
A human must set `status: accepted` with `accepted_by` and `accepted_at`,
|
|
432
500
|
or reject it and record a different decision.
|
|
433
501
|
|
|
434
|
-
While any
|
|
502
|
+
While any decision is pending or any assumption remains unaccepted:
|
|
435
503
|
|
|
436
|
-
- `discovery.yaml` and `context.md` are written;
|
|
504
|
+
- `discovery.yaml`, `context.md` and `decision-context.md` are written;
|
|
437
505
|
- no `spec.md` is generated;
|
|
438
506
|
- `devflow approve --stage spec` refuses the change;
|
|
439
507
|
- the workflow status is `awaiting_clarification`.
|
|
440
508
|
|
|
509
|
+
`decision-context.md` is generated deterministically by DevFlow from
|
|
510
|
+
the project facts, conventions, approved decisions, evidence, pending
|
|
511
|
+
decisions and constraints. It is capped and carries its own digest, so
|
|
512
|
+
a new session does not need to rediscover the whole project.
|
|
513
|
+
|
|
441
514
|
Answer the questions in the file, or run an interactive harness, then
|
|
442
515
|
resume:
|
|
443
516
|
|
|
@@ -480,7 +553,7 @@ specification that still lists open questions.
|
|
|
480
553
|
8. If artifacts exist without workflow state, diagnose with
|
|
481
554
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
482
555
|
|
|
483
|
-
Available commands in `0.3.
|
|
556
|
+
Available commands in `0.3.16`:
|
|
484
557
|
|
|
485
558
|
| Command | Status |
|
|
486
559
|
| --- | --- |
|
|
@@ -672,7 +745,7 @@ devflow approve 001 --stage spec
|
|
|
672
745
|
```
|
|
673
746
|
|
|
674
747
|
Approval is explicit and binds the decision to the current artifact
|
|
675
|
-
digests. For a `0.3.
|
|
748
|
+
digests. For a `0.3.16` change it binds `spec.md`, `discovery.yaml` and,
|
|
676
749
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
677
750
|
same approval is a no-op. If an artifact changes after validation,
|
|
678
751
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -683,7 +756,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
683
756
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
684
757
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
685
758
|
|
|
686
|
-
Only the `spec` stage is available in `0.3.
|
|
759
|
+
Only the `spec` stage is available in `0.3.16`. `--stage plan` and
|
|
687
760
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
688
761
|
`review` commands in this release.
|
|
689
762
|
|
|
@@ -10,7 +10,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
|
|
|
10
10
|
selected agent harness is only the execution backend that drafts the
|
|
11
11
|
specification.
|
|
12
12
|
|
|
13
|
-
This is the `0.3.
|
|
13
|
+
This is the `0.3.16` MVP. It implements the **discovery and
|
|
14
14
|
specification stages only**. It supports two specification contexts:
|
|
15
15
|
**Existing Project** (the default) and **Greenfield**. It is not a
|
|
16
16
|
complete SDD platform and does not include planning, implementation or
|
|
@@ -69,9 +69,10 @@ identity for the project:
|
|
|
69
69
|
- A POSIX operating system (Linux or macOS). Windows is not tested and is
|
|
70
70
|
not supported in this release, because the workflow locks require
|
|
71
71
|
`fcntl`.
|
|
72
|
-
- For agent-generated specifications: OpenCode
|
|
73
|
-
authenticated on `PATH`. OpenCode is
|
|
74
|
-
end-to-end
|
|
72
|
+
- For agent-generated specifications: OpenCode or Google Antigravity
|
|
73
|
+
(`agy`) installed and authenticated on `PATH`. OpenCode is verified
|
|
74
|
+
end-to-end; Antigravity agent loading and print mode are verified
|
|
75
|
+
locally.
|
|
75
76
|
- Git is not required. DevFlow does not initialize a repository, commit
|
|
76
77
|
files or run destructive commands.
|
|
77
78
|
|
|
@@ -86,7 +87,7 @@ pip install devflow-toolkit
|
|
|
86
87
|
To install a specific built artifact instead:
|
|
87
88
|
|
|
88
89
|
```bash
|
|
89
|
-
pip install devflow_toolkit-0.3.
|
|
90
|
+
pip install devflow_toolkit-0.3.16-py3-none-any.whl
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Verify the installation:
|
|
@@ -123,6 +124,7 @@ Common options:
|
|
|
123
124
|
|
|
124
125
|
```bash
|
|
125
126
|
devflow init --harness opencode --mode non-interactive
|
|
127
|
+
devflow init --harness antigravity --mode interactive
|
|
126
128
|
devflow init --profile django-backend --name my-service
|
|
127
129
|
devflow init --project-mode greenfield
|
|
128
130
|
devflow init --language es
|
|
@@ -265,9 +267,10 @@ as an architectural constraint when it is present.
|
|
|
265
267
|
|
|
266
268
|
### Harnesses
|
|
267
269
|
|
|
268
|
-
| Harness | Status in 0.3.
|
|
270
|
+
| Harness | Status in 0.3.16 |
|
|
269
271
|
| --- | --- |
|
|
270
|
-
| OpenCode | Verified end-to-end
|
|
272
|
+
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
273
|
+
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
271
274
|
| Codex | Integration files are generated, but not verified for this release |
|
|
272
275
|
| Claude Code | Integration files are generated, but not verified for this release |
|
|
273
276
|
| Kiro | Integration files are generated, but not verified for this release |
|
|
@@ -284,6 +287,26 @@ its native `AskUserQuestion` dialog. Both adapters fall back to numbered
|
|
|
284
287
|
text options if the installed harness does not expose a structured
|
|
285
288
|
question tool.
|
|
286
289
|
|
|
290
|
+
OpenCode and Antigravity receive an explicit instruction to call their
|
|
291
|
+
structured question tool for every pending Discovery question and for
|
|
292
|
+
every assumption acceptance. OpenCode's tool is `question`; Antigravity's
|
|
293
|
+
tool is `ask_question`. The instruction is injected only for those
|
|
294
|
+
harnesses, so the Codex and Claude Code prompts are unchanged.
|
|
295
|
+
|
|
296
|
+
For Antigravity, DevFlow generates `AGENTS.md` and custom agents under
|
|
297
|
+
`.agents/agents/`. Interactive runs use the writable `devflow-spec`
|
|
298
|
+
agent with `agy --settings <json> --agent devflow-spec
|
|
299
|
+
--prompt-interactive <prompt>`. Non-interactive runs use the read-only
|
|
300
|
+
`devflow-spec-readonly` agent with `agy --settings <json> --agent
|
|
301
|
+
devflow-spec-readonly --print --output-format text <prompt>`. Project
|
|
302
|
+
reads are allowed, writes are scoped to `.devflow/specs` in interactive
|
|
303
|
+
mode, and commands, web access and MCP servers are denied. The alias
|
|
304
|
+
`agy` is accepted for `--harness`.
|
|
305
|
+
|
|
306
|
+
To configure Discovery in Spanish, pass `--language es` to `init`, or to
|
|
307
|
+
a single `spec` run. The conversation and the stored question text use
|
|
308
|
+
the selected language.
|
|
309
|
+
|
|
287
310
|
For OpenCode, DevFlow generates `AGENTS.md`, `opencode.json` and the
|
|
288
311
|
agents under `.opencode/agents/`. The project-level `opencode.json` can
|
|
289
312
|
also select the model used by the agent, for example:
|
|
@@ -350,6 +373,7 @@ updated_at: "2026-11-02T10:00:00Z"
|
|
|
350
373
|
questions:
|
|
351
374
|
- id: Q1
|
|
352
375
|
category: functional_scope
|
|
376
|
+
materiality: functional
|
|
353
377
|
question: What should happen when the contact form is submitted?
|
|
354
378
|
reason: Persistence, confirmation and email delivery change scope.
|
|
355
379
|
blocking: true
|
|
@@ -358,9 +382,22 @@ questions:
|
|
|
358
382
|
answer: null
|
|
359
383
|
answered_by: null
|
|
360
384
|
answered_at: null
|
|
385
|
+
- id: Q2
|
|
386
|
+
category: architecture_boundary
|
|
387
|
+
materiality: technical
|
|
388
|
+
question: Which form mechanism should the page use?
|
|
389
|
+
reason: The project already uses Django Forms.
|
|
390
|
+
blocking: false
|
|
391
|
+
status: resolved
|
|
392
|
+
resolution_source: evidence
|
|
393
|
+
evidence:
|
|
394
|
+
- "profiles/django-backend"
|
|
395
|
+
- "src/contact/forms.py:12"
|
|
396
|
+
answer: Reuse Django Forms.
|
|
397
|
+
options: []
|
|
361
398
|
assumptions:
|
|
362
399
|
- id: A1
|
|
363
|
-
question_id:
|
|
400
|
+
question_id: Q3
|
|
364
401
|
value: Use `/contacto/` as the URL path.
|
|
365
402
|
reason: Internal routing must be visible before approval.
|
|
366
403
|
source: agent_default
|
|
@@ -369,14 +406,45 @@ assumptions:
|
|
|
369
406
|
accepted_at: null
|
|
370
407
|
```
|
|
371
408
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
`
|
|
379
|
-
|
|
409
|
+
Every decision has one outcome: `resolved`, `assumed` or `pending`.
|
|
410
|
+
A question presents a pending decision; an assumption is the acceptance
|
|
411
|
+
ledger for an assumed decision. Each decision has a `category`, a
|
|
412
|
+
`materiality` (`critical`, `functional`, `technical` or `cosmetic`) and
|
|
413
|
+
an explicit `blocking` flag.
|
|
414
|
+
|
|
415
|
+
- `pending` is valid only for blocking or material decisions.
|
|
416
|
+
- `resolved` by the user records `answer`, `answered_by` and
|
|
417
|
+
`answered_at`.
|
|
418
|
+
- `resolved` by evidence records `resolution_source: evidence` and at
|
|
419
|
+
least one `evidence` entry.
|
|
420
|
+
- `assumed` requires a linked assumption with explicit human acceptance.
|
|
421
|
+
Critical and security decisions can never be assumed.
|
|
422
|
+
- `answered` is a legacy alias that DevFlow reads as `resolved`.
|
|
423
|
+
|
|
424
|
+
A specification may only be generated when no decision is `pending` and
|
|
425
|
+
every assumption has been explicitly accepted. DevFlow validates the
|
|
426
|
+
record and confirms completeness; the agent never declares Discovery
|
|
427
|
+
complete on its own.
|
|
428
|
+
|
|
429
|
+
Discovery uses a per-round question budget and batches independent
|
|
430
|
+
decisions into one interaction. The defaults live in `.devflow/config.yaml`:
|
|
431
|
+
|
|
432
|
+
```yaml
|
|
433
|
+
discovery:
|
|
434
|
+
question_budget:
|
|
435
|
+
initial: 6
|
|
436
|
+
follow_up: 3
|
|
437
|
+
maximum: 12
|
|
438
|
+
interaction:
|
|
439
|
+
batch_size: 6
|
|
440
|
+
max_rounds: 3
|
|
441
|
+
assumptions:
|
|
442
|
+
enabled: true
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
The budget limits questions but never permits ignoring a critical
|
|
446
|
+
decision. If material decisions remain after the budget is exhausted,
|
|
447
|
+
Discovery stays incomplete and asks for intervention.
|
|
380
448
|
|
|
381
449
|
The deterministic planner recognizes contact pages, forms, comments,
|
|
382
450
|
authentication, persistence, deployments and architecture boundaries in
|
|
@@ -399,13 +467,18 @@ starts as `pending_acceptance`. It never becomes accepted automatically.
|
|
|
399
467
|
A human must set `status: accepted` with `accepted_by` and `accepted_at`,
|
|
400
468
|
or reject it and record a different decision.
|
|
401
469
|
|
|
402
|
-
While any
|
|
470
|
+
While any decision is pending or any assumption remains unaccepted:
|
|
403
471
|
|
|
404
|
-
- `discovery.yaml` and `context.md` are written;
|
|
472
|
+
- `discovery.yaml`, `context.md` and `decision-context.md` are written;
|
|
405
473
|
- no `spec.md` is generated;
|
|
406
474
|
- `devflow approve --stage spec` refuses the change;
|
|
407
475
|
- the workflow status is `awaiting_clarification`.
|
|
408
476
|
|
|
477
|
+
`decision-context.md` is generated deterministically by DevFlow from
|
|
478
|
+
the project facts, conventions, approved decisions, evidence, pending
|
|
479
|
+
decisions and constraints. It is capped and carries its own digest, so
|
|
480
|
+
a new session does not need to rediscover the whole project.
|
|
481
|
+
|
|
409
482
|
Answer the questions in the file, or run an interactive harness, then
|
|
410
483
|
resume:
|
|
411
484
|
|
|
@@ -448,7 +521,7 @@ specification that still lists open questions.
|
|
|
448
521
|
8. If artifacts exist without workflow state, diagnose with
|
|
449
522
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
450
523
|
|
|
451
|
-
Available commands in `0.3.
|
|
524
|
+
Available commands in `0.3.16`:
|
|
452
525
|
|
|
453
526
|
| Command | Status |
|
|
454
527
|
| --- | --- |
|
|
@@ -640,7 +713,7 @@ devflow approve 001 --stage spec
|
|
|
640
713
|
```
|
|
641
714
|
|
|
642
715
|
Approval is explicit and binds the decision to the current artifact
|
|
643
|
-
digests. For a `0.3.
|
|
716
|
+
digests. For a `0.3.16` change it binds `spec.md`, `discovery.yaml` and,
|
|
644
717
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
645
718
|
same approval is a no-op. If an artifact changes after validation,
|
|
646
719
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -651,7 +724,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
651
724
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
652
725
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
653
726
|
|
|
654
|
-
Only the `spec` stage is available in `0.3.
|
|
727
|
+
Only the `spec` stage is available in `0.3.16`. `--stage plan` and
|
|
655
728
|
`--stage review` are rejected. There are no `plan`, `implement` or
|
|
656
729
|
`review` commands in this release.
|
|
657
730
|
|