chati-dev 4.0.3 → 4.0.4
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.
|
@@ -54,7 +54,32 @@ Implement each task from the approved task breakdown with high quality, followin
|
|
|
54
54
|
```
|
|
55
55
|
For each task:
|
|
56
56
|
1. Announce: "Starting T{X}: {title} — implementing now..."
|
|
57
|
-
|
|
57
|
+
1.5. Pre-Flight Spec Check (BEFORE any code):
|
|
58
|
+
a. Validate Given-When-Then criteria:
|
|
59
|
+
→ Are all criteria specific and measurable? (not "works correctly", "looks good")
|
|
60
|
+
→ If ANY criterion is vague/untestable → STOP. Escalate G01: "{criterion} is ambiguous."
|
|
61
|
+
→ If task has NO criteria → STOP. Escalate G01: "T{X} has no testable acceptance criteria."
|
|
62
|
+
b. Check dependencies:
|
|
63
|
+
→ For each T{x}.{y} in Dependencies: is it marked complete in tasks.md?
|
|
64
|
+
→ If dependency incomplete → STOP. Escalate: "Cannot start T{X}: T{dep} not yet complete."
|
|
65
|
+
c. Set implementation strategy from task size:
|
|
66
|
+
→ XS/S: standard flow — proceed to Step 2
|
|
67
|
+
→ M (2-4h): output brief implementation outline (files + approach), then proceed
|
|
68
|
+
→ L (4-8h): output full implementation plan, ask "[ready/clarify/skip]", wait for user
|
|
69
|
+
RULE: NEVER write code before Step 1.5 passes. If spec is unclear, fix the spec first.
|
|
70
|
+
OUTPUT: "Spec check passed. T{X} is {size} — {strategy}."
|
|
71
|
+
2. Read task details, acceptance criteria, and verify architectural alignment:
|
|
72
|
+
Before coding, cross-check against chati.dev/artifacts/3-Architecture/architecture.md:
|
|
73
|
+
- API tasks → endpoint pattern, response format, error handling contract match Section 4?
|
|
74
|
+
- Database tasks → table/column names, relationships match Section 5 (Data Model)?
|
|
75
|
+
- Auth tasks → auth approach matches Section 6 (Authentication)?
|
|
76
|
+
- New modules/components → file structure matches Section 3 (System Components)?
|
|
77
|
+
If conflict detected → STOP. Escalate G05:
|
|
78
|
+
"T{X} conflicts with architecture decision: {specific conflict}.
|
|
79
|
+
Implement per architecture.md or per task spec?"
|
|
80
|
+
RULE: architecture.md is the source of truth. NEVER implement against architectural decisions.
|
|
81
|
+
RULE: Do NOT silently reconcile conflicts — always surface them.
|
|
82
|
+
If no architecture.md present → proceed with best practices, note in handoff.
|
|
58
83
|
3. Implement code
|
|
59
84
|
-> Output: "Implementation done. Running self-critique (5.5)..."
|
|
60
85
|
4. Run self-critique (Step 5.5) — 1 fix pass, then proceed
|
|
@@ -89,7 +114,17 @@ WHILE tasks_pending:
|
|
|
89
114
|
|
|
90
115
|
FOR attempt IN 1..3:
|
|
91
116
|
1. Read task details and acceptance criteria
|
|
92
|
-
|
|
117
|
+
1.5. Pre-Flight Spec Check:
|
|
118
|
+
→ If ANY criterion is vague/untestable → mark task blocked (G01), skip to next task
|
|
119
|
+
→ If task has no Given-When-Then criteria → mark task blocked (G01), skip to next
|
|
120
|
+
→ If dependency not complete → mark task blocked, skip to next independent task
|
|
121
|
+
→ M-size tasks: output implementation outline before coding
|
|
122
|
+
→ L-size tasks: output full implementation plan before coding (no user confirmation)
|
|
123
|
+
2. Verify architectural alignment (cross-check architecture.md before coding):
|
|
124
|
+
→ API/DB/Auth/module tasks: verify patterns match architecture.md
|
|
125
|
+
→ If conflict → mark task blocked (G05), skip to next task
|
|
126
|
+
→ If no architecture.md → proceed with best practices
|
|
127
|
+
3. Implement code
|
|
93
128
|
-> Output: "T{X} implementation done. Self-critique (5.5)..."
|
|
94
129
|
3. Run self-critique (Step 5.5) — 1 fix pass, then proceed
|
|
95
130
|
-> Output: "T{X} critique done. Running tests..."
|
|
@@ -282,9 +317,11 @@ Criteria:
|
|
|
282
317
|
6. No lint errors
|
|
283
318
|
7. Self-critique (5.5 + 6.5) completed
|
|
284
319
|
8. No blockers remaining
|
|
320
|
+
9. Pre-flight spec check passed: criteria were specific and testable before coding started
|
|
321
|
+
10. Architectural alignment verified: no G05 conflicts, or G05 explicitly resolved before coding
|
|
285
322
|
|
|
286
323
|
Score = criteria met / total criteria
|
|
287
|
-
Threshold: >= 95% per task
|
|
324
|
+
Threshold: >= 95% per task (minimum 9/10)
|
|
288
325
|
```
|
|
289
326
|
|
|
290
327
|
---
|
|
@@ -325,7 +362,7 @@ agents:
|
|
|
325
362
|
dev:
|
|
326
363
|
status: in_progress | completed
|
|
327
364
|
score: {average across all tasks}
|
|
328
|
-
criteria_count:
|
|
365
|
+
criteria_count: 10
|
|
329
366
|
completed_at: "{timestamp when all tasks done}"
|
|
330
367
|
```
|
|
331
368
|
|
package/framework/config.yaml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# chati.dev Configuration
|
|
2
|
-
version: "4.0.
|
|
2
|
+
version: "4.0.4"
|
|
3
3
|
installed_at: "2026-02-07T10:00:00Z"
|
|
4
|
-
updated_at: "2026-03-
|
|
5
|
-
installer_version: "4.0.
|
|
4
|
+
updated_at: "2026-03-22T00:00:00Z"
|
|
5
|
+
installer_version: "4.0.4"
|
|
6
6
|
project_type: greenfield
|
|
7
7
|
language: en
|
|
8
8
|
ides: [claude-code]
|
|
@@ -48,6 +48,19 @@ rules:
|
|
|
48
48
|
text: "Iterate on implementation until acceptance criteria are met."
|
|
49
49
|
priority: normal
|
|
50
50
|
|
|
51
|
+
- id: dev-spec-intake
|
|
52
|
+
text: "MUST validate task spec BEFORE writing code: verify all Given-When-Then criteria are specific and testable, check all task dependencies are complete. Escalate G01 immediately for ambiguous criteria, G02 for conflicting criteria — NEVER start coding with unclear spec."
|
|
53
|
+
priority: critical
|
|
54
|
+
|
|
55
|
+
- id: dev-size-strategy
|
|
56
|
+
text: "MUST adapt implementation approach by task size: XS/S = standard flow; M (2-4h) = output implementation outline before coding; L (4-8h) = output implementation plan and ask user confirmation before starting (autonomous mode: output plan and proceed without confirmation)."
|
|
57
|
+
priority: high
|
|
58
|
+
|
|
59
|
+
- id: dev-arch-coherence
|
|
60
|
+
text: "MUST verify implementation aligns with architecture.md before coding any API endpoints, database schemas, auth flows, or new modules. Escalate G05 immediately if conflict detected. NEVER implement against architectural decisions — always surface conflicts to user."
|
|
61
|
+
priority: high
|
|
62
|
+
|
|
51
63
|
# Provider Preference (v3.0.0)
|
|
52
|
-
- dev-provider
|
|
64
|
+
- id: dev-provider
|
|
65
|
+
text: "Default provider: claude. Can run on gemini for large codebase tasks (1M context window)."
|
|
53
66
|
priority: normal
|