devflow-toolkit 0.3.26__py3-none-any.whl → 0.3.27__py3-none-any.whl
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/adapters/claude_code.py +34 -4
- devflow/commands/status.py +3 -0
- devflow/core/discovery.py +74 -13
- devflow/core/spec_workflow.py +1 -0
- devflow/hooks/__init__.py +1 -0
- devflow/hooks/claude_guard.py +76 -0
- devflow/prompts/discovery-repair.md +15 -14
- devflow/prompts/discovery.md +4 -3
- {devflow_toolkit-0.3.26.dist-info → devflow_toolkit-0.3.27.dist-info}/METADATA +25 -7
- {devflow_toolkit-0.3.26.dist-info → devflow_toolkit-0.3.27.dist-info}/RECORD +13 -11
- {devflow_toolkit-0.3.26.dist-info → devflow_toolkit-0.3.27.dist-info}/WHEEL +0 -0
- {devflow_toolkit-0.3.26.dist-info → devflow_toolkit-0.3.27.dist-info}/entry_points.txt +0 -0
- {devflow_toolkit-0.3.26.dist-info → devflow_toolkit-0.3.27.dist-info}/licenses/LICENSE +0 -0
devflow/adapters/claude_code.py
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import json
|
|
6
|
+
import shlex
|
|
7
|
+
import sys
|
|
6
8
|
|
|
7
9
|
from devflow.adapters.base import (
|
|
8
10
|
FileChange,
|
|
@@ -51,10 +53,13 @@ class ClaudeCodeAdapter(HarnessAdapter):
|
|
|
51
53
|
return SetupResult(changes=tuple(changes))
|
|
52
54
|
|
|
53
55
|
def build_run(self, context: RunContext) -> Invocation:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
)
|
|
56
|
+
settings_data: dict[str, object] = {
|
|
57
|
+
"permissions": self._permission_rules(context),
|
|
58
|
+
}
|
|
59
|
+
hooks = self._write_guard(context)
|
|
60
|
+
if hooks:
|
|
61
|
+
settings_data["hooks"] = hooks
|
|
62
|
+
settings = json.dumps(settings_data, separators=(",", ":"))
|
|
58
63
|
root = context.root
|
|
59
64
|
permission_mode = (
|
|
60
65
|
"manual" if context.mode == "interactive" else "dontAsk"
|
|
@@ -112,6 +117,31 @@ class ClaudeCodeAdapter(HarnessAdapter):
|
|
|
112
117
|
return []
|
|
113
118
|
return ["Read", "Grep", "Glob"]
|
|
114
119
|
|
|
120
|
+
def _write_guard(self, context: RunContext) -> dict[str, object]:
|
|
121
|
+
"""Block writes outside the specs directory without asking the user."""
|
|
122
|
+
permissions = context.permissions
|
|
123
|
+
if permissions.allow_source_code_changes or not (
|
|
124
|
+
permissions.allow_spec_write
|
|
125
|
+
):
|
|
126
|
+
return {}
|
|
127
|
+
allowed = context.spec_directory.parent
|
|
128
|
+
command = " ".join(
|
|
129
|
+
[
|
|
130
|
+
shlex.quote(sys.executable),
|
|
131
|
+
"-m",
|
|
132
|
+
"devflow.hooks.claude_guard",
|
|
133
|
+
shlex.quote(str(allowed)),
|
|
134
|
+
]
|
|
135
|
+
)
|
|
136
|
+
return {
|
|
137
|
+
"PreToolUse": [
|
|
138
|
+
{
|
|
139
|
+
"matcher": "Write|Edit|MultiEdit|NotebookEdit",
|
|
140
|
+
"hooks": [{"type": "command", "command": command}],
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
|
|
115
145
|
def _permission_rules(
|
|
116
146
|
self,
|
|
117
147
|
context: RunContext,
|
devflow/commands/status.py
CHANGED
|
@@ -245,6 +245,9 @@ def _print_discovery(
|
|
|
245
245
|
soft_wrap=True,
|
|
246
246
|
)
|
|
247
247
|
|
|
248
|
+
for note in discovery.notes:
|
|
249
|
+
console.print(f" [yellow]corrected: {note}[/yellow]", soft_wrap=True)
|
|
250
|
+
|
|
248
251
|
suggestions = discovery.suggested_next_specs()
|
|
249
252
|
if suggestions:
|
|
250
253
|
console.print("\n[bold]Suggested next specifications[/bold]")
|
devflow/core/discovery.py
CHANGED
|
@@ -105,6 +105,50 @@ _CATEGORY_MATERIALITY = {
|
|
|
105
105
|
"deployment": MATERIALITY_TECHNICAL,
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
# Categories agents commonly invent, mapped to the closest valid one.
|
|
109
|
+
# Unknown categories fall back to functional_scope; the materiality the
|
|
110
|
+
# agent wrote is kept, so a critical decision stays critical.
|
|
111
|
+
_CATEGORY_ALIASES = {
|
|
112
|
+
"api": "functional_scope",
|
|
113
|
+
"api_contract": "functional_scope",
|
|
114
|
+
"api_design": "functional_scope",
|
|
115
|
+
"interface": "functional_scope",
|
|
116
|
+
"scope": "functional_scope",
|
|
117
|
+
"functional": "functional_scope",
|
|
118
|
+
"validation": "functional_scope",
|
|
119
|
+
"business_rules": "functional_scope",
|
|
120
|
+
"error_handling": "functional_scope",
|
|
121
|
+
"ui": "user_behavior",
|
|
122
|
+
"ux": "user_behavior",
|
|
123
|
+
"user_interface": "user_behavior",
|
|
124
|
+
"user_experience": "user_behavior",
|
|
125
|
+
"navigation": "user_behavior",
|
|
126
|
+
"i18n": "user_behavior",
|
|
127
|
+
"localization": "user_behavior",
|
|
128
|
+
"data": "data_persistence",
|
|
129
|
+
"data_model": "data_persistence",
|
|
130
|
+
"database": "data_persistence",
|
|
131
|
+
"persistence": "data_persistence",
|
|
132
|
+
"storage": "data_persistence",
|
|
133
|
+
"security": "security_authentication",
|
|
134
|
+
"authentication": "security_authentication",
|
|
135
|
+
"authorization": "security_authentication",
|
|
136
|
+
"auth": "security_authentication",
|
|
137
|
+
"permissions": "security_authentication",
|
|
138
|
+
"privacy": "security_authentication",
|
|
139
|
+
"integration": "external_integration",
|
|
140
|
+
"external": "external_integration",
|
|
141
|
+
"third_party": "external_integration",
|
|
142
|
+
"architecture": "architecture_boundary",
|
|
143
|
+
"performance": "architecture_boundary",
|
|
144
|
+
"scalability": "architecture_boundary",
|
|
145
|
+
"configuration": "architecture_boundary",
|
|
146
|
+
"dependency": "dependencies",
|
|
147
|
+
"libraries": "dependencies",
|
|
148
|
+
"infrastructure": "deployment",
|
|
149
|
+
"operations": "deployment",
|
|
150
|
+
}
|
|
151
|
+
|
|
108
152
|
ASSUMPTION_PENDING = "pending_acceptance"
|
|
109
153
|
ASSUMPTION_ACCEPTED = "accepted"
|
|
110
154
|
ASSUMPTION_STATUSES = (ASSUMPTION_PENDING, ASSUMPTION_ACCEPTED)
|
|
@@ -685,6 +729,9 @@ class DiscoveryDocument:
|
|
|
685
729
|
questions: tuple[DiscoveryQuestion, ...] = ()
|
|
686
730
|
assumptions: tuple[DiscoveryAssumption, ...] = ()
|
|
687
731
|
deferred: tuple[DeferredItem, ...] = ()
|
|
732
|
+
# Minor problems DevFlow corrected while reading the record. They are
|
|
733
|
+
# reported to the user and never written back by themselves.
|
|
734
|
+
notes: tuple[str, ...] = ()
|
|
688
735
|
|
|
689
736
|
def suggested_next_specs(self) -> tuple[DeferredItem, ...]:
|
|
690
737
|
"""Return next-level improvements to propose as later specs.
|
|
@@ -1182,8 +1229,9 @@ class DiscoveryManager:
|
|
|
1182
1229
|
)
|
|
1183
1230
|
raise DiscoveryError(msg)
|
|
1184
1231
|
|
|
1232
|
+
notes: list[str] = []
|
|
1185
1233
|
questions = tuple(
|
|
1186
|
-
self._question(item, index)
|
|
1234
|
+
self._question(item, index, notes=notes, default_time=updated_at)
|
|
1187
1235
|
for index, item in enumerate(questions_data, start=1)
|
|
1188
1236
|
)
|
|
1189
1237
|
question_ids = {question.id for question in questions}
|
|
@@ -1244,6 +1292,7 @@ class DiscoveryManager:
|
|
|
1244
1292
|
questions=questions,
|
|
1245
1293
|
assumptions=assumptions,
|
|
1246
1294
|
deferred=deferred,
|
|
1295
|
+
notes=tuple(notes),
|
|
1247
1296
|
)
|
|
1248
1297
|
return document
|
|
1249
1298
|
|
|
@@ -1251,18 +1300,26 @@ class DiscoveryManager:
|
|
|
1251
1300
|
self,
|
|
1252
1301
|
data: object,
|
|
1253
1302
|
index: int,
|
|
1303
|
+
*,
|
|
1304
|
+
notes: list[str] | None = None,
|
|
1305
|
+
default_time: str = "",
|
|
1254
1306
|
) -> DiscoveryQuestion:
|
|
1255
1307
|
mapping = _mapping(data, f"questions[{index}]")
|
|
1256
1308
|
identifier = _text(mapping.get("id"), "question id")
|
|
1257
1309
|
if not _QUESTION_ID.fullmatch(identifier):
|
|
1258
1310
|
msg = f"Invalid discovery question id: {identifier!r}"
|
|
1259
1311
|
raise DiscoveryError(msg)
|
|
1312
|
+
if notes is None:
|
|
1313
|
+
notes = []
|
|
1260
1314
|
category = _text(mapping.get("category"), "question category")
|
|
1261
1315
|
if category not in QUESTION_CATEGORIES:
|
|
1262
|
-
|
|
1263
|
-
|
|
1316
|
+
key = category.strip().lower().replace("-", "_").replace(" ", "_")
|
|
1317
|
+
corrected = _CATEGORY_ALIASES.get(key, "functional_scope")
|
|
1318
|
+
notes.append(
|
|
1319
|
+
f"{identifier}: unknown category {category!r} read as "
|
|
1320
|
+
f"{corrected!r}."
|
|
1264
1321
|
)
|
|
1265
|
-
|
|
1322
|
+
category = corrected
|
|
1266
1323
|
question = _limited_text(
|
|
1267
1324
|
mapping.get("question"),
|
|
1268
1325
|
f"{identifier}.question",
|
|
@@ -1277,11 +1334,11 @@ class DiscoveryManager:
|
|
|
1277
1334
|
f"{identifier}.materiality",
|
|
1278
1335
|
) or ""
|
|
1279
1336
|
if materiality and materiality not in MATERIALITIES:
|
|
1280
|
-
|
|
1281
|
-
f"
|
|
1282
|
-
|
|
1337
|
+
notes.append(
|
|
1338
|
+
f"{identifier}: unknown materiality {materiality!r} ignored; "
|
|
1339
|
+
"the category default applies."
|
|
1283
1340
|
)
|
|
1284
|
-
|
|
1341
|
+
materiality = ""
|
|
1285
1342
|
status = _text(mapping.get("status"), f"{identifier}.status")
|
|
1286
1343
|
if status in QUESTION_PENDING_ALIASES:
|
|
1287
1344
|
status = QUESTION_PENDING
|
|
@@ -1380,12 +1437,16 @@ class DiscoveryManager:
|
|
|
1380
1437
|
f"{identifier} is resolved but has no answer."
|
|
1381
1438
|
)
|
|
1382
1439
|
if not answered_by:
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
)
|
|
1440
|
+
answered_by = "user"
|
|
1441
|
+
notes.append(f"{identifier}: missing answered_by read as user.")
|
|
1386
1442
|
if not answered_at:
|
|
1387
|
-
|
|
1388
|
-
|
|
1443
|
+
if not default_time:
|
|
1444
|
+
raise DiscoveryError(
|
|
1445
|
+
f"{identifier} is resolved but has no answered_at."
|
|
1446
|
+
)
|
|
1447
|
+
answered_at = default_time
|
|
1448
|
+
notes.append(
|
|
1449
|
+
f"{identifier}: missing answered_at read as {default_time}."
|
|
1389
1450
|
)
|
|
1390
1451
|
elif resolution_source == RESOLUTION_ASSUMPTION:
|
|
1391
1452
|
raise DiscoveryError(
|
devflow/core/spec_workflow.py
CHANGED
|
@@ -932,6 +932,7 @@ class SpecWorkflow:
|
|
|
932
932
|
updated, digest = repaired_result
|
|
933
933
|
repaired = True
|
|
934
934
|
self._discard_unexpected_spec(prepared, spec_existed, warnings)
|
|
935
|
+
warnings.extend(f"discovery.yaml: {note}" for note in updated.notes)
|
|
935
936
|
if not repaired:
|
|
936
937
|
digest = self._discovery_digest(
|
|
937
938
|
discovery_manager,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Guards that DevFlow installs into agent harness sessions."""
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""Claude Code PreToolUse hook that keeps writes inside a directory.
|
|
2
|
+
|
|
3
|
+
DevFlow passes this hook to specification sessions. Claude Code asks
|
|
4
|
+
the user about any write that is neither allowed nor denied, and a deny
|
|
5
|
+
rule for writes would also block `.devflow/specs/`. The hook decides
|
|
6
|
+
instead: a write outside the allowed directory is blocked without a
|
|
7
|
+
prompt, and the reason is returned to the agent.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import json
|
|
13
|
+
import sys
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
from typing import Any
|
|
16
|
+
|
|
17
|
+
BLOCKED_EXIT_CODE = 2
|
|
18
|
+
_PATH_KEYS = ("file_path", "notebook_path", "path")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def blocked_reason(payload: dict[str, Any], allowed: Path) -> str | None:
|
|
22
|
+
"""Return why a tool call must be blocked, or None to let it run."""
|
|
23
|
+
tool_input = payload.get("tool_input")
|
|
24
|
+
if not isinstance(tool_input, dict):
|
|
25
|
+
tool_input = {}
|
|
26
|
+
raw = next(
|
|
27
|
+
(
|
|
28
|
+
tool_input[key]
|
|
29
|
+
for key in _PATH_KEYS
|
|
30
|
+
if isinstance(tool_input.get(key), str) and tool_input[key]
|
|
31
|
+
),
|
|
32
|
+
None,
|
|
33
|
+
)
|
|
34
|
+
if raw is None:
|
|
35
|
+
return (
|
|
36
|
+
"DevFlow: this session may only write files under "
|
|
37
|
+
f"{allowed}. The write has no file path, so it was blocked."
|
|
38
|
+
)
|
|
39
|
+
cwd = payload.get("cwd")
|
|
40
|
+
base = Path(cwd) if isinstance(cwd, str) and cwd else Path.cwd()
|
|
41
|
+
target = Path(raw)
|
|
42
|
+
if not target.is_absolute():
|
|
43
|
+
target = base / target
|
|
44
|
+
try:
|
|
45
|
+
target.resolve().relative_to(allowed.resolve())
|
|
46
|
+
except ValueError:
|
|
47
|
+
return (
|
|
48
|
+
f"DevFlow: this session may only write files under {allowed}. "
|
|
49
|
+
f"Writing {raw} was blocked. Do not create scripts or helper "
|
|
50
|
+
"files: DevFlow validates discovery.yaml and spec.md itself when "
|
|
51
|
+
"the session ends."
|
|
52
|
+
)
|
|
53
|
+
return None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def main(argv: list[str] | None = None) -> int:
|
|
57
|
+
args = sys.argv[1:] if argv is None else argv
|
|
58
|
+
if len(args) != 1:
|
|
59
|
+
print("usage: claude_guard <allowed-directory>", file=sys.stderr)
|
|
60
|
+
return BLOCKED_EXIT_CODE
|
|
61
|
+
try:
|
|
62
|
+
payload = json.load(sys.stdin)
|
|
63
|
+
except (OSError, ValueError):
|
|
64
|
+
print("DevFlow: unreadable hook input; write blocked.", file=sys.stderr)
|
|
65
|
+
return BLOCKED_EXIT_CODE
|
|
66
|
+
if not isinstance(payload, dict):
|
|
67
|
+
payload = {}
|
|
68
|
+
reason = blocked_reason(payload, Path(args[0]))
|
|
69
|
+
if reason is None:
|
|
70
|
+
return 0
|
|
71
|
+
print(reason, file=sys.stderr)
|
|
72
|
+
return BLOCKED_EXIT_CODE
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if __name__ == "__main__":
|
|
76
|
+
raise SystemExit(main())
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
# Discovery
|
|
1
|
+
# Discovery Record Repair
|
|
2
|
+
|
|
3
|
+
{{language_note}}
|
|
2
4
|
|
|
3
5
|
You are repairing the DevFlow Discovery record `{{discovery_path}}`.
|
|
4
6
|
|
|
5
|
-
DevFlow could not
|
|
7
|
+
DevFlow could not accept the file:
|
|
6
8
|
|
|
7
9
|
```text
|
|
8
10
|
{{error}}
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
## Language
|
|
12
|
-
|
|
13
|
-
{{language_note}}
|
|
14
|
-
|
|
15
13
|
## Task
|
|
16
14
|
|
|
17
|
-
Fix only the
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
`spec.md` or any application
|
|
15
|
+
Fix only what the error above describes: the YAML syntax or the invalid
|
|
16
|
+
field it names. Do not change the request or the meaning of any
|
|
17
|
+
decision, answer, evidence, option or assumption. Do not add, remove or
|
|
18
|
+
re-scope a decision. Do not write or modify `spec.md` or any application
|
|
19
|
+
source file.
|
|
21
20
|
|
|
22
21
|
## YAML Safety Rules
|
|
23
22
|
|
|
@@ -27,10 +26,12 @@ Do not add, remove or re-scope a decision. Do not write or modify
|
|
|
27
26
|
- Use a block scalar (`|` or `>`) for long prose instead of leaving it
|
|
28
27
|
unquoted.
|
|
29
28
|
- Preserve the existing indentation, list structure and field names.
|
|
30
|
-
- Re-read the complete file after editing
|
|
31
|
-
|
|
29
|
+
- Re-read the complete file after editing. Do not create scripts or run
|
|
30
|
+
commands to validate it: DevFlow validates the record when this
|
|
31
|
+
session ends.
|
|
32
32
|
- Keep all text in the language already used by the record unless the
|
|
33
33
|
task prompt asks for another language.
|
|
34
34
|
|
|
35
|
-
When you finish,
|
|
36
|
-
|
|
35
|
+
When you finish, list the lines you repaired and tell the user to exit
|
|
36
|
+
this session so DevFlow can validate the file. Do not generate a
|
|
37
|
+
specification.
|
devflow/prompts/discovery.md
CHANGED
|
@@ -273,9 +273,10 @@ it is a real improvement.
|
|
|
273
273
|
multi-line value unquoted.
|
|
274
274
|
- Keep one root mapping and preserve the existing indentation. Do not
|
|
275
275
|
write duplicate keys.
|
|
276
|
-
- Before finishing, re-read the complete `discovery.yaml` file
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
- Before finishing, re-read the complete `discovery.yaml` file. Never
|
|
277
|
+
leave a partially written or unquoted value in it. Do not create
|
|
278
|
+
scripts or run commands to validate it: DevFlow validates the record
|
|
279
|
+
when the session ends.
|
|
279
280
|
|
|
280
281
|
Valid question categories are `functional_scope`, `user_behavior`,
|
|
281
282
|
`data_persistence`, `security_authentication`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-toolkit
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.27
|
|
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.27`.**
|
|
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.27-py3-none-any.whl
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Verify the installation:
|
|
@@ -457,7 +457,7 @@ as an architectural constraint when it is present.
|
|
|
457
457
|
|
|
458
458
|
### Harnesses
|
|
459
459
|
|
|
460
|
-
| Harness | Status in 0.3.
|
|
460
|
+
| Harness | Status in 0.3.27 |
|
|
461
461
|
| --- | --- |
|
|
462
462
|
| OpenCode | Verified end-to-end; interactive Discovery uses the `question` tool |
|
|
463
463
|
| Antigravity | Custom agents and scoped permissions generated; `agy` loading and print mode verified |
|
|
@@ -551,6 +551,13 @@ pre-approved, while shell, web and task tools remain denied.
|
|
|
551
551
|
Non-interactive runs keep the locked `dontAsk` mode and do not allow the
|
|
552
552
|
question tool.
|
|
553
553
|
|
|
554
|
+
Manual mode would ask you about any other write, such as a helper
|
|
555
|
+
script in `/tmp`. To avoid that prompt, DevFlow also passes a
|
|
556
|
+
`PreToolUse` hook (`devflow.hooks.claude_guard`) that blocks every
|
|
557
|
+
`Write`, `Edit`, `MultiEdit` and `NotebookEdit` outside
|
|
558
|
+
`.devflow/specs/` without asking, and tells the agent why. The hook is
|
|
559
|
+
not added when `allow_source_code_changes` is enabled.
|
|
560
|
+
|
|
554
561
|
## Discovery
|
|
555
562
|
|
|
556
563
|
Discovery is separate from specification. The project context decides
|
|
@@ -731,6 +738,17 @@ specification and asks you to run `devflow spec --continue`, which
|
|
|
731
738
|
repairs the file first. When an agent lists questions in section 7,
|
|
732
739
|
nested bullets stay part of the same question.
|
|
733
740
|
|
|
741
|
+
DevFlow corrects minor mistakes instead of starting a repair session,
|
|
742
|
+
and lists each correction as a warning and in `devflow status`: an
|
|
743
|
+
unknown category is read as the closest valid one (for example
|
|
744
|
+
`api_contract` as `functional_scope`, `security` as
|
|
745
|
+
`security_authentication`), an unknown materiality falls back to the
|
|
746
|
+
category default, and a user answer without `answered_by` or
|
|
747
|
+
`answered_at` is read as `user` at the record's `updated_at`. The
|
|
748
|
+
materiality the agent wrote is kept, so a `critical` decision can still
|
|
749
|
+
never be assumed. Unreadable YAML, answers on pending decisions and
|
|
750
|
+
assumed critical decisions still require a repair.
|
|
751
|
+
|
|
734
752
|
DevFlow derives completeness from the decisions themselves: a record
|
|
735
753
|
marked `complete` with pending questions is treated as
|
|
736
754
|
`awaiting_clarification`, and a question written with
|
|
@@ -800,7 +818,7 @@ for each item; the agent does not write it.
|
|
|
800
818
|
8. If artifacts exist without workflow state, diagnose with
|
|
801
819
|
`devflow doctor <id>` and repair with `devflow recover <id>`.
|
|
802
820
|
|
|
803
|
-
Available commands in `0.3.
|
|
821
|
+
Available commands in `0.3.27`:
|
|
804
822
|
|
|
805
823
|
| Command | Status |
|
|
806
824
|
| --- | --- |
|
|
@@ -1033,7 +1051,7 @@ devflow approve 001
|
|
|
1033
1051
|
```
|
|
1034
1052
|
|
|
1035
1053
|
Approval is explicit and binds the decision to the current artifact
|
|
1036
|
-
digests. For a `0.3.
|
|
1054
|
+
digests. For a `0.3.27` change it binds `spec.md`, `discovery.yaml` and,
|
|
1037
1055
|
when a manifest applies, the architecture manifest digest. Repeating the
|
|
1038
1056
|
same approval is a no-op. If an artifact changes after validation,
|
|
1039
1057
|
DevFlow marks it stale and refuses approval until it is regenerated and
|
|
@@ -1044,7 +1062,7 @@ and names the pending questions and assumptions. Approval also rejects a
|
|
|
1044
1062
|
specification whose section 7 still lists open questions. Legacy `0.2.0`
|
|
1045
1063
|
changes without `discovery.yaml` remain approvable with a warning.
|
|
1046
1064
|
|
|
1047
|
-
Only the `spec` stage is available in `0.3.
|
|
1065
|
+
Only the `spec` stage is available in `0.3.27`, so `--stage` is optional
|
|
1048
1066
|
and defaults to `spec`. `--stage plan` and `--stage review` are
|
|
1049
1067
|
rejected. There are no `plan`, `implement` or
|
|
1050
1068
|
`review` commands in this release.
|
|
@@ -4,7 +4,7 @@ devflow/adapters/__init__.py,sha256=WcsjXQTKzHNzMAHx82-sdJQeR3ceHRVqLWTUtRlaraE,
|
|
|
4
4
|
devflow/adapters/agents.py,sha256=OZnz7wAJNcIojtgaQIK1iB6QKWGgv2VCmoBp8M9DUKE,1423
|
|
5
5
|
devflow/adapters/antigravity.py,sha256=tbhAWUNQt5fPemN_N8zEEdaBMPDRExpcXfF6obvvXvo,9124
|
|
6
6
|
devflow/adapters/base.py,sha256=YggY_IwHExdybl5S9NjwZSlmmcw9Y6z7DhQsl3JLvXs,2055
|
|
7
|
-
devflow/adapters/claude_code.py,sha256=
|
|
7
|
+
devflow/adapters/claude_code.py,sha256=Z43hjVFTcWh3OAGn2mVECpg425XCRptLZ_dyMoEhrtQ,4548
|
|
8
8
|
devflow/adapters/codex.py,sha256=5EVBRlYg3ClYhvN1NmUfxhBrEURLryIZTpHQkyFtzx8,3616
|
|
9
9
|
devflow/adapters/detector.py,sha256=92BkNAvWs2Vh8H6xJzMweBDCw6yuYVg7sV4LoSZ8KFo,3291
|
|
10
10
|
devflow/adapters/instructions.py,sha256=AUje2tYnyI8yxnZQ5JlUjBON8Nz_yq4_yxpCz_DQoys,10885
|
|
@@ -21,20 +21,20 @@ devflow/commands/recover.py,sha256=sV9x5-30E_3XRBe7JItDiSG-pqrowRzjqOkC_eyrhFQ,2
|
|
|
21
21
|
devflow/commands/reopen.py,sha256=bZiX-dyKgmtdKdV4FHwEwRCFvuuX5jezBCI7wIpkHYU,2971
|
|
22
22
|
devflow/commands/security.py,sha256=lZlbMo34JHX46kBHRTSsZd4ANZ1mvxh6I-Nc6jNzuLI,2049
|
|
23
23
|
devflow/commands/spec.py,sha256=7glxFHKuJd33mL6YayrxRJ6TViUmmQk5rijbNepsbig,16353
|
|
24
|
-
devflow/commands/status.py,sha256=
|
|
24
|
+
devflow/commands/status.py,sha256=2rIPAZZnFvS3aAsHUNw8JaBrFq_l_8UGbURrKHIgXCo,7514
|
|
25
25
|
devflow/core/__init__.py,sha256=hN7i4-PDaZ7y4P8qRpZl_lJvIiPyQaN1TDGnw2BecYU,427
|
|
26
26
|
devflow/core/architecture.py,sha256=qllllsUVqA76LiSU6z_s4U8dxMcs6ClKXU16HxI3yOI,13692
|
|
27
27
|
devflow/core/clock.py,sha256=KZROv6o51Ln1EzK00ySCxfc7WPZqPlaQhFfjfdc_TMY,1651
|
|
28
28
|
devflow/core/config.py,sha256=g_9ocRsrDLSsZZ5Sy1qlI7gi8WA2WlyiLUOZhcID2Ig,27065
|
|
29
29
|
devflow/core/constitution.py,sha256=rPLc8Puv9nUMC_GZwzOqvr1B-4urdxAISr655od2IPM,5333
|
|
30
|
-
devflow/core/discovery.py,sha256=
|
|
30
|
+
devflow/core/discovery.py,sha256=YxCUvyfA0HLp2xEAI4frCks-5APNyTP0yBNCuVHDWZc,62649
|
|
31
31
|
devflow/core/file_types.py,sha256=5S5YywOaTESDiln4kP7qyJFEjxHoiF6tSBbwuXNpDDc,566
|
|
32
32
|
devflow/core/ports.py,sha256=6jlqeR40MNaz-IuZIAPimXpRKew-wMUab3KzelcTXsU,4541
|
|
33
33
|
devflow/core/profile_manager.py,sha256=QnnJka2KIKD2tCSWJkGTOUEFMgmQT0Z9Qv173JKWKHw,8937
|
|
34
34
|
devflow/core/project.py,sha256=4OnudghY5N5rCOmafWO5Hk68M7T3-mOV0j0k0dh2luE,16891
|
|
35
35
|
devflow/core/recovery.py,sha256=W2If6Ymb3ISwMN8IVQYCwptDUzhxejlF-P2NvMYyZP0,8818
|
|
36
36
|
devflow/core/security_tools.py,sha256=F-JdGzycS-Vov_1SE5qciNVi31DqnnJXVqHqoDocSAA,8912
|
|
37
|
-
devflow/core/spec_workflow.py,sha256=
|
|
37
|
+
devflow/core/spec_workflow.py,sha256=CTBDdKX8EkfHfrhUpjXY1r3QYwN-w5Du9cjSiViIhZg,44034
|
|
38
38
|
devflow/core/specification.py,sha256=6b1-MRJjlPyzTwk5FzWCZJneAe0xy-xpnsmLZgMcA6Y,70036
|
|
39
39
|
devflow/core/artifacts/__init__.py,sha256=gt9xahPynoxv75FMq1ZJx91ILTIv4ExuvX1Ymrxwr2c,627
|
|
40
40
|
devflow/core/artifacts/errors.py,sha256=hwZxnLFcUTtEjDWtN6rUCkM69EN19LGVlc6HD-pNZyk,493
|
|
@@ -48,6 +48,8 @@ devflow/core/state/lock.py,sha256=94llvwHtCc5WOw-Uq8kDCu4iOBpRM4ccp6Q6fLZpYZ0,20
|
|
|
48
48
|
devflow/core/state/manager.py,sha256=o4Qo2C3pJOpOS6Id-NB4hNeKbvvoTDwbf6E2Jv_j-pE,31876
|
|
49
49
|
devflow/core/state/models.py,sha256=4GTrS34ymbJIyBeZkcCi0z0e1bsq67vdxRSnSQ9O3gc,4654
|
|
50
50
|
devflow/core/state/transitions.py,sha256=Go0zLhxcujWhaZEGg7JMqcC_UJU_nEFEBbpKIqrCtrs,3581
|
|
51
|
+
devflow/hooks/__init__.py,sha256=WM0gYOH-p2ZFvJhE351jkPi7wXKduskvj5Mw_LUQqnY,64
|
|
52
|
+
devflow/hooks/claude_guard.py,sha256=VL4KKVR-GNqFo8S2fmpsod65zXcZyFJ0IOus_pRWeQY,2325
|
|
51
53
|
devflow/models/__init__.py,sha256=hXX3IDZbHgklmuzVVlpiRs5SSPnrkO5kN1-k2hIEk7E,156
|
|
52
54
|
devflow/models/profile.py,sha256=j8KifeDQSN-wvzDJe1GGQQN9Vw7S2oncj75NNHpwpZs,2001
|
|
53
55
|
devflow/models/project.py,sha256=fbxNk2db6Tsa8DXPzAFf8OqgbbY6gWJ7e07_kBO_QHw,973
|
|
@@ -62,11 +64,11 @@ devflow/profiles/django-backend/constitution/django-standards.md,sha256=0M-XmxOp
|
|
|
62
64
|
devflow/profiles/fastapi-backend/profile.yaml,sha256=5_b-zWSX0HV-tw_2ntRCSa4DyP3NUqYWmxOh55pXYmc,321
|
|
63
65
|
devflow/profiles/fastapi-backend/constitution/fastapi-standards.md,sha256=iFKib4i_9z4wBQ9thl-uftg5g-CHwvmFWzMtLgA7CBk,1949
|
|
64
66
|
devflow/prompts/__init__.py,sha256=DttfMavd0nfmhKkVE46VhpIHkGS-4amYfufABEM20xI,19120
|
|
65
|
-
devflow/prompts/discovery-repair.md,sha256=
|
|
66
|
-
devflow/prompts/discovery.md,sha256=
|
|
67
|
+
devflow/prompts/discovery-repair.md,sha256=hpw8pFaUC8OiHK_KTI2nMF45f77CqcFuDYzn9o6X5ao,1240
|
|
68
|
+
devflow/prompts/discovery.md,sha256=QDwfcjmb76yJH4DKMyoZ4QRtrdkDwljrWr3gn2MYCn8,14920
|
|
67
69
|
devflow/prompts/spec.md,sha256=Kze_ZvE5yn0tfncvr98Nw6GQLEZlJmcZFWDNUpLMnlc,7689
|
|
68
|
-
devflow_toolkit-0.3.
|
|
69
|
-
devflow_toolkit-0.3.
|
|
70
|
-
devflow_toolkit-0.3.
|
|
71
|
-
devflow_toolkit-0.3.
|
|
72
|
-
devflow_toolkit-0.3.
|
|
70
|
+
devflow_toolkit-0.3.27.dist-info/METADATA,sha256=C5fdX_sRXh7QwCc1XDJG7fKAHRpknvIAzsx8cIB2gj0,53041
|
|
71
|
+
devflow_toolkit-0.3.27.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
72
|
+
devflow_toolkit-0.3.27.dist-info/entry_points.txt,sha256=wPmqE1081vi8s3xf-Wfzfvpl-44IKgwx7OGoLEK3u7o,44
|
|
73
|
+
devflow_toolkit-0.3.27.dist-info/licenses/LICENSE,sha256=Wa04lstC8Goe4b9IYfEYWB2k7nokYBejZl6NdyAl8rA,1077
|
|
74
|
+
devflow_toolkit-0.3.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|