chati-dev 1.0.0
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.
- package/assets/logo.txt +6 -0
- package/bin/chati.js +175 -0
- package/framework/agents/build/dev.md +342 -0
- package/framework/agents/clarity/architect.md +263 -0
- package/framework/agents/clarity/brief.md +277 -0
- package/framework/agents/clarity/brownfield-wu.md +288 -0
- package/framework/agents/clarity/detail.md +274 -0
- package/framework/agents/clarity/greenfield-wu.md +231 -0
- package/framework/agents/clarity/phases.md +272 -0
- package/framework/agents/clarity/tasks.md +279 -0
- package/framework/agents/clarity/ux.md +293 -0
- package/framework/agents/deploy/devops.md +321 -0
- package/framework/agents/quality/qa-implementation.md +310 -0
- package/framework/agents/quality/qa-planning.md +289 -0
- package/framework/config.yaml +8 -0
- package/framework/constitution.md +238 -0
- package/framework/frameworks/decision-heuristics.yaml +64 -0
- package/framework/frameworks/quality-dimensions.yaml +59 -0
- package/framework/i18n/en.yaml +78 -0
- package/framework/i18n/es.yaml +78 -0
- package/framework/i18n/fr.yaml +78 -0
- package/framework/i18n/pt.yaml +78 -0
- package/framework/intelligence/confidence.yaml +42 -0
- package/framework/intelligence/gotchas.yaml +51 -0
- package/framework/intelligence/patterns.yaml +32 -0
- package/framework/migrations/v1.0-to-v1.1.yaml +48 -0
- package/framework/orchestrator/chati.md +333 -0
- package/framework/patterns/elicitation.md +137 -0
- package/framework/quality-gates/implementation-gate.md +64 -0
- package/framework/quality-gates/planning-gate.md +52 -0
- package/framework/schemas/config.schema.json +42 -0
- package/framework/schemas/session.schema.json +103 -0
- package/framework/schemas/task.schema.json +71 -0
- package/framework/templates/brownfield-prd-tmpl.yaml +103 -0
- package/framework/templates/fullstack-architecture-tmpl.yaml +101 -0
- package/framework/templates/prd-tmpl.yaml +94 -0
- package/framework/templates/qa-gate-tmpl.yaml +96 -0
- package/framework/templates/task-tmpl.yaml +85 -0
- package/framework/workflows/brownfield-discovery.yaml +75 -0
- package/framework/workflows/brownfield-fullstack.yaml +104 -0
- package/framework/workflows/brownfield-service.yaml +81 -0
- package/framework/workflows/brownfield-ui.yaml +87 -0
- package/framework/workflows/greenfield-fullstack.yaml +108 -0
- package/package.json +60 -0
- package/scripts/bundle-framework.js +58 -0
- package/src/config/ide-configs.js +80 -0
- package/src/config/mcp-configs.js +136 -0
- package/src/dashboard/data-reader.js +99 -0
- package/src/dashboard/layout.js +161 -0
- package/src/dashboard/renderer.js +104 -0
- package/src/installer/core.js +221 -0
- package/src/installer/templates.js +97 -0
- package/src/installer/validator.js +114 -0
- package/src/upgrade/backup.js +107 -0
- package/src/upgrade/checker.js +105 -0
- package/src/upgrade/migrator.js +171 -0
- package/src/utils/colors.js +18 -0
- package/src/utils/detector.js +51 -0
- package/src/utils/logger.js +41 -0
- package/src/wizard/feedback.js +76 -0
- package/src/wizard/i18n.js +168 -0
- package/src/wizard/index.js +107 -0
- package/src/wizard/questions.js +169 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "chati.dev Session",
|
|
4
|
+
"description": "Schema for .chati/session.yaml - runtime state tracking",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["project", "current_agent", "language", "execution_mode"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"required": ["name", "type", "state"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"name": { "type": "string", "description": "Project name" },
|
|
13
|
+
"type": { "enum": ["greenfield", "brownfield"], "description": "Project type" },
|
|
14
|
+
"state": { "enum": ["clarity", "build", "validate", "deploy", "completed"], "description": "Current pipeline macro-phase" }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"execution_mode": {
|
|
18
|
+
"enum": ["interactive", "autonomous"],
|
|
19
|
+
"default": "interactive",
|
|
20
|
+
"description": "interactive = agent-driven guided mode; autonomous = Ralph Wiggum mode (Dev agent)"
|
|
21
|
+
},
|
|
22
|
+
"current_agent": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Currently active agent name"
|
|
25
|
+
},
|
|
26
|
+
"language": {
|
|
27
|
+
"enum": ["en", "pt", "es", "fr"],
|
|
28
|
+
"default": "en",
|
|
29
|
+
"description": "User interaction language (artifacts always English)"
|
|
30
|
+
},
|
|
31
|
+
"ides": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"enum": ["claude-code", "vscode", "antigravity", "cursor", "windsurf", "gemini-cli", "github-copilot"]
|
|
35
|
+
},
|
|
36
|
+
"description": "Configured IDEs"
|
|
37
|
+
},
|
|
38
|
+
"mcps": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": { "type": "string" },
|
|
41
|
+
"description": "Installed MCPs"
|
|
42
|
+
},
|
|
43
|
+
"user_level": {
|
|
44
|
+
"enum": ["auto", "vibecoder", "power_user"],
|
|
45
|
+
"default": "auto",
|
|
46
|
+
"description": "Detected user expertise level"
|
|
47
|
+
},
|
|
48
|
+
"user_level_confidence": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 0,
|
|
51
|
+
"maximum": 1,
|
|
52
|
+
"default": 0,
|
|
53
|
+
"description": "Progressive detection confidence (0.0 - 1.0)"
|
|
54
|
+
},
|
|
55
|
+
"agents": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Status tracking for all 12 specialized agents",
|
|
58
|
+
"patternProperties": {
|
|
59
|
+
".*": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["status", "score", "criteria_count"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"status": { "enum": ["pending", "in_progress", "completed"] },
|
|
64
|
+
"score": { "type": "number", "minimum": 0, "maximum": 100 },
|
|
65
|
+
"criteria_count": { "type": "integer", "minimum": 0 },
|
|
66
|
+
"completed_at": { "type": ["string", "null"], "format": "date-time" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"backlog": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": ["id", "title", "priority", "status"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": { "type": "string", "pattern": "^BL-\\d{3}$" },
|
|
78
|
+
"title": { "type": "string" },
|
|
79
|
+
"priority": { "enum": ["high", "medium", "low"] },
|
|
80
|
+
"status": { "enum": ["pending", "in_progress", "done", "deferred"] },
|
|
81
|
+
"source_agent": { "type": "string" },
|
|
82
|
+
"target_agent": { "type": "string" },
|
|
83
|
+
"created_at": { "type": ["string", "null"], "format": "date-time" },
|
|
84
|
+
"notes": { "type": "string" }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"last_handoff": { "type": "string" },
|
|
89
|
+
"deviations": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
95
|
+
"from_agent": { "type": "string" },
|
|
96
|
+
"to_agent": { "type": "string" },
|
|
97
|
+
"reason": { "type": "string" },
|
|
98
|
+
"resolved": { "type": "boolean" }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "chati.dev Task",
|
|
4
|
+
"description": "Schema for task definitions created by the Tasks agent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "title", "phase", "criteria", "status"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^T\\d+\\.\\d+$",
|
|
11
|
+
"description": "Task identifier (e.g., T1.1, T2.3)"
|
|
12
|
+
},
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 5,
|
|
16
|
+
"description": "Short, descriptive task title"
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Detailed task description"
|
|
21
|
+
},
|
|
22
|
+
"phase": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Parent phase identifier (e.g., Phase 1)"
|
|
25
|
+
},
|
|
26
|
+
"priority": {
|
|
27
|
+
"enum": ["critical", "high", "medium", "low"],
|
|
28
|
+
"description": "Task priority level"
|
|
29
|
+
},
|
|
30
|
+
"size": {
|
|
31
|
+
"enum": ["XS", "S", "M", "L", "XL"],
|
|
32
|
+
"description": "Estimated effort size (XS=<1h, S=1-2h, M=2-4h, L=4-8h, XL=8h+)"
|
|
33
|
+
},
|
|
34
|
+
"criteria": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"minItems": 1,
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["given", "when", "then"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"given": { "type": "string", "description": "Initial context/state" },
|
|
42
|
+
"when": { "type": "string", "description": "Action performed" },
|
|
43
|
+
"then": { "type": "string", "description": "Expected outcome (verifiable)" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"description": "Acceptance criteria in Given-When-Then format"
|
|
47
|
+
},
|
|
48
|
+
"status": {
|
|
49
|
+
"enum": ["pending", "in_progress", "completed", "blocked"],
|
|
50
|
+
"default": "pending"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": { "type": "string" },
|
|
55
|
+
"description": "Task IDs that must complete before this task"
|
|
56
|
+
},
|
|
57
|
+
"requirement_refs": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": { "type": "string" },
|
|
60
|
+
"description": "PRD requirement IDs this task addresses"
|
|
61
|
+
},
|
|
62
|
+
"blocker": {
|
|
63
|
+
"type": ["string", "null"],
|
|
64
|
+
"description": "Blocker code (C01-C14, G01-G08) if status is blocked"
|
|
65
|
+
},
|
|
66
|
+
"completed_at": {
|
|
67
|
+
"type": ["string", "null"],
|
|
68
|
+
"format": "date-time"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# PRD Template — Brownfield Projects
|
|
2
|
+
# Used by: Detail Agent (brownfield flow)
|
|
3
|
+
# Language: English (Constitution Article VII)
|
|
4
|
+
|
|
5
|
+
template:
|
|
6
|
+
name: Brownfield Product Requirements Document
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
type: brownfield
|
|
9
|
+
|
|
10
|
+
sections:
|
|
11
|
+
- id: executive_summary
|
|
12
|
+
title: "1. Executive Summary"
|
|
13
|
+
description: "Product overview including current state and proposed changes"
|
|
14
|
+
required: true
|
|
15
|
+
|
|
16
|
+
- id: current_state
|
|
17
|
+
title: "2. Current State Analysis"
|
|
18
|
+
description: "Summary of existing system from WU analysis"
|
|
19
|
+
required: true
|
|
20
|
+
subsections:
|
|
21
|
+
- "Existing Architecture"
|
|
22
|
+
- "Technical Debt Summary"
|
|
23
|
+
- "Integration Points"
|
|
24
|
+
source: wu-full-report.md
|
|
25
|
+
|
|
26
|
+
- id: goals_metrics
|
|
27
|
+
title: "3. Goals & Success Metrics"
|
|
28
|
+
description: "What changes we want to achieve, measured against current baseline"
|
|
29
|
+
required: true
|
|
30
|
+
format: table
|
|
31
|
+
columns: [Goal, Current Baseline, Target, Metric]
|
|
32
|
+
|
|
33
|
+
- id: target_users
|
|
34
|
+
title: "4. Target Users"
|
|
35
|
+
description: "Existing and new user segments affected by changes"
|
|
36
|
+
required: true
|
|
37
|
+
|
|
38
|
+
- id: scope_boundaries
|
|
39
|
+
title: "5. Scope Boundaries"
|
|
40
|
+
description: "What will change vs what stays the same"
|
|
41
|
+
required: true
|
|
42
|
+
subsections:
|
|
43
|
+
- "Changes (In Scope)"
|
|
44
|
+
- "Preserved (No Changes)"
|
|
45
|
+
- "Out of Scope"
|
|
46
|
+
|
|
47
|
+
- id: architecture_impact
|
|
48
|
+
title: "6. Architecture Impact"
|
|
49
|
+
description: "How proposed changes affect existing architecture"
|
|
50
|
+
required: true
|
|
51
|
+
source: architecture.md
|
|
52
|
+
|
|
53
|
+
- id: functional_requirements
|
|
54
|
+
title: "7. Functional Requirements"
|
|
55
|
+
description: "New and modified requirements"
|
|
56
|
+
required: true
|
|
57
|
+
categories:
|
|
58
|
+
- "New Requirements"
|
|
59
|
+
- "Modified Requirements"
|
|
60
|
+
- "Deprecated Features"
|
|
61
|
+
fields:
|
|
62
|
+
- id: "FR-XXX"
|
|
63
|
+
- type: "new | modified | deprecated"
|
|
64
|
+
- title: "Short description"
|
|
65
|
+
- description: "Detailed specification"
|
|
66
|
+
- priority: "Must Have | Should Have | Could Have | Won't Have"
|
|
67
|
+
- brief_reference: "Which Brief problem this addresses"
|
|
68
|
+
- acceptance_criteria: "Given-When-Then format"
|
|
69
|
+
- migration_notes: "How to transition from current behavior (if modified)"
|
|
70
|
+
|
|
71
|
+
- id: nonfunctional_requirements
|
|
72
|
+
title: "8. Non-Functional Requirements"
|
|
73
|
+
required: true
|
|
74
|
+
|
|
75
|
+
- id: migration_strategy
|
|
76
|
+
title: "9. Migration Strategy"
|
|
77
|
+
description: "How to transition from current state to new state"
|
|
78
|
+
required: true
|
|
79
|
+
subsections:
|
|
80
|
+
- "Data Migration"
|
|
81
|
+
- "Feature Flags"
|
|
82
|
+
- "Rollback Plan"
|
|
83
|
+
- "Backward Compatibility"
|
|
84
|
+
|
|
85
|
+
- id: risks_mitigations
|
|
86
|
+
title: "10. Risks & Mitigations"
|
|
87
|
+
required: true
|
|
88
|
+
|
|
89
|
+
- id: dependencies_constraints
|
|
90
|
+
title: "11. Dependencies & Constraints"
|
|
91
|
+
required: true
|
|
92
|
+
|
|
93
|
+
- id: traceability
|
|
94
|
+
title: "Traceability Matrix"
|
|
95
|
+
required: true
|
|
96
|
+
format: table
|
|
97
|
+
columns: [Brief Problem, PRD Requirements, Existing Code Impact]
|
|
98
|
+
|
|
99
|
+
validation:
|
|
100
|
+
- "All Brief problems have corresponding requirements"
|
|
101
|
+
- "All modified requirements have migration notes"
|
|
102
|
+
- "Migration strategy includes rollback plan"
|
|
103
|
+
- "No placeholders ([TODO], [TBD])"
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Architecture Template — Fullstack Projects
|
|
2
|
+
# Used by: Architect Agent
|
|
3
|
+
# Language: English (Constitution Article VII)
|
|
4
|
+
|
|
5
|
+
template:
|
|
6
|
+
name: Fullstack Architecture Document
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
type: fullstack
|
|
9
|
+
|
|
10
|
+
sections:
|
|
11
|
+
- id: overview
|
|
12
|
+
title: "1. Architecture Overview"
|
|
13
|
+
description: "High-level system description and architecture diagram"
|
|
14
|
+
required: true
|
|
15
|
+
|
|
16
|
+
- id: tech_stack
|
|
17
|
+
title: "2. Tech Stack"
|
|
18
|
+
description: "Selected technologies with version and justification"
|
|
19
|
+
required: true
|
|
20
|
+
format: table
|
|
21
|
+
columns: [Layer, Technology, Version, Justification]
|
|
22
|
+
layers:
|
|
23
|
+
- Frontend
|
|
24
|
+
- Backend
|
|
25
|
+
- Database
|
|
26
|
+
- Authentication
|
|
27
|
+
- Hosting
|
|
28
|
+
- CI/CD
|
|
29
|
+
- Testing
|
|
30
|
+
|
|
31
|
+
- id: system_components
|
|
32
|
+
title: "3. System Components"
|
|
33
|
+
description: "Component diagram with responsibilities and interactions"
|
|
34
|
+
required: true
|
|
35
|
+
|
|
36
|
+
- id: api_design
|
|
37
|
+
title: "4. API Design"
|
|
38
|
+
description: "Endpoint patterns, authentication, error handling"
|
|
39
|
+
required: true
|
|
40
|
+
subsections:
|
|
41
|
+
- "API Style (REST/GraphQL/tRPC)"
|
|
42
|
+
- "Authentication Flow"
|
|
43
|
+
- "Error Response Format"
|
|
44
|
+
- "Pagination Strategy"
|
|
45
|
+
- "Rate Limiting"
|
|
46
|
+
|
|
47
|
+
- id: data_model
|
|
48
|
+
title: "5. Data Model"
|
|
49
|
+
description: "Database schema with entities, relationships, and constraints"
|
|
50
|
+
required: true
|
|
51
|
+
subsections:
|
|
52
|
+
- "Entity-Relationship Diagram"
|
|
53
|
+
- "Table Definitions"
|
|
54
|
+
- "Indexes"
|
|
55
|
+
- "RLS Policies"
|
|
56
|
+
- "Migration Strategy"
|
|
57
|
+
|
|
58
|
+
- id: auth_model
|
|
59
|
+
title: "6. Authentication & Authorization"
|
|
60
|
+
description: "Auth model, roles, permissions, session management"
|
|
61
|
+
required: true
|
|
62
|
+
|
|
63
|
+
- id: deployment
|
|
64
|
+
title: "7. Deployment Architecture"
|
|
65
|
+
description: "Infrastructure, environments, CI/CD pipeline"
|
|
66
|
+
required: true
|
|
67
|
+
subsections:
|
|
68
|
+
- "Environments (dev, staging, production)"
|
|
69
|
+
- "Infrastructure Diagram"
|
|
70
|
+
- "CI/CD Pipeline"
|
|
71
|
+
- "Environment Variables"
|
|
72
|
+
|
|
73
|
+
- id: security
|
|
74
|
+
title: "8. Security Model"
|
|
75
|
+
description: "OWASP considerations, input validation, secrets management"
|
|
76
|
+
required: true
|
|
77
|
+
|
|
78
|
+
- id: scalability
|
|
79
|
+
title: "9. Scalability Strategy"
|
|
80
|
+
description: "Current approach and future scaling path"
|
|
81
|
+
required: true
|
|
82
|
+
|
|
83
|
+
- id: decisions
|
|
84
|
+
title: "10. Architecture Decisions"
|
|
85
|
+
description: "Record of decisions with options considered and rationale"
|
|
86
|
+
required: true
|
|
87
|
+
format: table
|
|
88
|
+
columns: [Decision, Options Considered, Chosen, Rationale]
|
|
89
|
+
|
|
90
|
+
- id: traceability
|
|
91
|
+
title: "Traceability"
|
|
92
|
+
description: "Maps PRD requirements to architecture components"
|
|
93
|
+
required: true
|
|
94
|
+
format: table
|
|
95
|
+
columns: [PRD Requirement, Architecture Component]
|
|
96
|
+
|
|
97
|
+
validation:
|
|
98
|
+
- "Every PRD requirement maps to an architecture component"
|
|
99
|
+
- "Every technology choice is justified"
|
|
100
|
+
- "Security model covers OWASP Top 10"
|
|
101
|
+
- "No placeholders ([TODO], [TBD])"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# PRD Template — Greenfield Projects
|
|
2
|
+
# Used by: Detail Agent
|
|
3
|
+
# Language: English (Constitution Article VII)
|
|
4
|
+
|
|
5
|
+
template:
|
|
6
|
+
name: Product Requirements Document
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
type: greenfield
|
|
9
|
+
|
|
10
|
+
sections:
|
|
11
|
+
- id: executive_summary
|
|
12
|
+
title: "1. Executive Summary"
|
|
13
|
+
description: "2-3 paragraphs describing the product, its purpose, and value proposition"
|
|
14
|
+
required: true
|
|
15
|
+
|
|
16
|
+
- id: goals_metrics
|
|
17
|
+
title: "2. Goals & Success Metrics"
|
|
18
|
+
description: "Measurable goals with specific metrics and targets"
|
|
19
|
+
required: true
|
|
20
|
+
format: table
|
|
21
|
+
columns: [Goal, Metric, Target, Timeline]
|
|
22
|
+
|
|
23
|
+
- id: target_users
|
|
24
|
+
title: "3. Target Users"
|
|
25
|
+
description: "User personas or segments with characteristics and primary needs"
|
|
26
|
+
required: true
|
|
27
|
+
source: brief-report.md
|
|
28
|
+
|
|
29
|
+
- id: scope_boundaries
|
|
30
|
+
title: "4. Scope Boundaries"
|
|
31
|
+
description: "Explicit in-scope and out-of-scope items"
|
|
32
|
+
required: true
|
|
33
|
+
subsections:
|
|
34
|
+
- "In Scope"
|
|
35
|
+
- "Out of Scope"
|
|
36
|
+
|
|
37
|
+
- id: architecture_overview
|
|
38
|
+
title: "5. High-Level Architecture Overview"
|
|
39
|
+
description: "System components and their relationships (high-level, not detailed)"
|
|
40
|
+
required: true
|
|
41
|
+
|
|
42
|
+
- id: functional_requirements
|
|
43
|
+
title: "6. Functional Requirements"
|
|
44
|
+
description: "Detailed requirements with ID, description, priority, and acceptance criteria"
|
|
45
|
+
required: true
|
|
46
|
+
format: structured
|
|
47
|
+
fields:
|
|
48
|
+
- id: "FR-XXX"
|
|
49
|
+
- title: "Short description"
|
|
50
|
+
- description: "Detailed specification"
|
|
51
|
+
- priority: "Must Have | Should Have | Could Have | Won't Have"
|
|
52
|
+
- brief_reference: "Which Brief problem this addresses"
|
|
53
|
+
- acceptance_criteria: "Given-When-Then format"
|
|
54
|
+
|
|
55
|
+
- id: nonfunctional_requirements
|
|
56
|
+
title: "7. Non-Functional Requirements"
|
|
57
|
+
description: "Performance, security, accessibility, scalability requirements"
|
|
58
|
+
required: true
|
|
59
|
+
categories:
|
|
60
|
+
- Performance
|
|
61
|
+
- Security
|
|
62
|
+
- Accessibility
|
|
63
|
+
- Scalability
|
|
64
|
+
- Reliability
|
|
65
|
+
|
|
66
|
+
- id: business_rules
|
|
67
|
+
title: "8. Business Rules"
|
|
68
|
+
description: "Domain-specific rules that govern behavior"
|
|
69
|
+
required: true
|
|
70
|
+
|
|
71
|
+
- id: risks_mitigations
|
|
72
|
+
title: "9. Risks & Mitigations"
|
|
73
|
+
description: "Identified risks with probability, impact, and mitigation strategies"
|
|
74
|
+
required: true
|
|
75
|
+
format: table
|
|
76
|
+
columns: [Risk, Probability, Impact, Mitigation]
|
|
77
|
+
|
|
78
|
+
- id: dependencies_constraints
|
|
79
|
+
title: "10. Dependencies & Constraints"
|
|
80
|
+
description: "External dependencies, technology constraints, team limitations"
|
|
81
|
+
required: true
|
|
82
|
+
|
|
83
|
+
- id: traceability
|
|
84
|
+
title: "Traceability Matrix"
|
|
85
|
+
description: "Maps Brief problems to PRD requirements"
|
|
86
|
+
required: true
|
|
87
|
+
format: table
|
|
88
|
+
columns: [Brief Problem, PRD Requirements]
|
|
89
|
+
|
|
90
|
+
validation:
|
|
91
|
+
- "All Brief problems have corresponding requirements"
|
|
92
|
+
- "All requirements have acceptance criteria"
|
|
93
|
+
- "No placeholders ([TODO], [TBD])"
|
|
94
|
+
- "Traceability matrix is complete"
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# QA Gate Template
|
|
2
|
+
# Used by: QA-Planning and QA-Implementation Agents
|
|
3
|
+
# Language: English (Constitution Article VII)
|
|
4
|
+
|
|
5
|
+
template:
|
|
6
|
+
name: Quality Gate Report
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
|
|
9
|
+
sections:
|
|
10
|
+
- id: header
|
|
11
|
+
fields:
|
|
12
|
+
- gate_type: "planning | implementation"
|
|
13
|
+
- result: "APPROVED | NEEDS CORRECTION | ESCALATED"
|
|
14
|
+
- score: "0-100"
|
|
15
|
+
- timestamp: "ISO 8601"
|
|
16
|
+
|
|
17
|
+
- id: planning_gate
|
|
18
|
+
applicable_to: planning
|
|
19
|
+
checks:
|
|
20
|
+
- name: "Brief -> PRD Traceability"
|
|
21
|
+
description: "Every Brief problem has a PRD requirement"
|
|
22
|
+
penalty_on_fail: -10
|
|
23
|
+
|
|
24
|
+
- name: "PRD -> Phases Traceability"
|
|
25
|
+
description: "Every PRD requirement appears in a phase"
|
|
26
|
+
penalty_on_fail: -10
|
|
27
|
+
|
|
28
|
+
- name: "Phases -> Tasks Traceability"
|
|
29
|
+
description: "Every phase has at least one task"
|
|
30
|
+
penalty_on_fail: -10
|
|
31
|
+
|
|
32
|
+
- name: "Tasks -> Criteria Traceability"
|
|
33
|
+
description: "Every task has Given-When-Then acceptance criteria"
|
|
34
|
+
penalty_on_fail: -5
|
|
35
|
+
|
|
36
|
+
- name: "Brief-PRD Consistency"
|
|
37
|
+
description: "No PRD requirements without Brief origin"
|
|
38
|
+
penalty_on_fail: -15
|
|
39
|
+
|
|
40
|
+
- name: "Placeholder Check"
|
|
41
|
+
description: "No [TODO], [TBD], [PLACEHOLDER] in artifacts"
|
|
42
|
+
penalty_on_fail: -5
|
|
43
|
+
per_occurrence: true
|
|
44
|
+
|
|
45
|
+
- name: "Agent Criteria Quality"
|
|
46
|
+
description: "Each agent defined rigorous, binary criteria"
|
|
47
|
+
penalty_on_fail: -10
|
|
48
|
+
|
|
49
|
+
- id: implementation_gate
|
|
50
|
+
applicable_to: implementation
|
|
51
|
+
checks:
|
|
52
|
+
- name: "Test Execution"
|
|
53
|
+
description: "All tests pass"
|
|
54
|
+
weight: 0.30
|
|
55
|
+
threshold: "100% pass rate"
|
|
56
|
+
|
|
57
|
+
- name: "Code Coverage"
|
|
58
|
+
description: "Line and branch coverage"
|
|
59
|
+
weight: 0.20
|
|
60
|
+
threshold: ">= 80%"
|
|
61
|
+
|
|
62
|
+
- name: "Security Scan (SAST)"
|
|
63
|
+
description: "No critical or high vulnerabilities"
|
|
64
|
+
weight: 0.25
|
|
65
|
+
threshold: "0 critical, 0 high"
|
|
66
|
+
|
|
67
|
+
- name: "Code Review"
|
|
68
|
+
description: "Architecture adherence, patterns, quality"
|
|
69
|
+
weight: 0.15
|
|
70
|
+
|
|
71
|
+
- name: "Acceptance Criteria"
|
|
72
|
+
description: "All Given-When-Then criteria verified"
|
|
73
|
+
weight: 0.10
|
|
74
|
+
|
|
75
|
+
- id: correction_loop
|
|
76
|
+
max_loops: 3
|
|
77
|
+
protocol:
|
|
78
|
+
- step: "Identify failing check"
|
|
79
|
+
- step: "Send correction to responsible agent"
|
|
80
|
+
- step: "Agent corrects"
|
|
81
|
+
- step: "Re-validate"
|
|
82
|
+
- step: "If still failing after max_loops -> escalate to user"
|
|
83
|
+
|
|
84
|
+
- id: escalation
|
|
85
|
+
options:
|
|
86
|
+
- "1. Manually address the gaps"
|
|
87
|
+
- "2. Override and proceed (with documented risk)"
|
|
88
|
+
- "3. Return to a specific agent for rework"
|
|
89
|
+
|
|
90
|
+
scoring:
|
|
91
|
+
start: 100
|
|
92
|
+
threshold: 95
|
|
93
|
+
decision:
|
|
94
|
+
approved: ">= 95"
|
|
95
|
+
correction: "< 95 (enter silent loop)"
|
|
96
|
+
escalated: "< 95 after max loops"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Task Template
|
|
2
|
+
# Used by: Tasks Agent
|
|
3
|
+
# Language: English (Constitution Article VII)
|
|
4
|
+
|
|
5
|
+
template:
|
|
6
|
+
name: Task Definition
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
|
|
9
|
+
fields:
|
|
10
|
+
- name: id
|
|
11
|
+
type: string
|
|
12
|
+
pattern: "T{phase}.{sequence}"
|
|
13
|
+
example: "T1.1"
|
|
14
|
+
required: true
|
|
15
|
+
|
|
16
|
+
- name: title
|
|
17
|
+
type: string
|
|
18
|
+
description: "Short, action-oriented title"
|
|
19
|
+
min_length: 5
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- name: description
|
|
23
|
+
type: string
|
|
24
|
+
description: "What needs to be implemented"
|
|
25
|
+
required: true
|
|
26
|
+
|
|
27
|
+
- name: phase
|
|
28
|
+
type: string
|
|
29
|
+
description: "Parent phase"
|
|
30
|
+
required: true
|
|
31
|
+
|
|
32
|
+
- name: requirement_ref
|
|
33
|
+
type: string
|
|
34
|
+
description: "PRD requirement ID (FR-XXX)"
|
|
35
|
+
required: true
|
|
36
|
+
|
|
37
|
+
- name: priority
|
|
38
|
+
type: enum
|
|
39
|
+
values: [critical, high, medium, low]
|
|
40
|
+
required: true
|
|
41
|
+
|
|
42
|
+
- name: size
|
|
43
|
+
type: enum
|
|
44
|
+
values: [XS, S, M, L]
|
|
45
|
+
descriptions:
|
|
46
|
+
XS: "< 1 hour"
|
|
47
|
+
S: "1-2 hours"
|
|
48
|
+
M: "2-4 hours"
|
|
49
|
+
L: "4-8 hours"
|
|
50
|
+
required: true
|
|
51
|
+
note: "XL (8h+) must be split into smaller tasks"
|
|
52
|
+
|
|
53
|
+
- name: dependencies
|
|
54
|
+
type: array
|
|
55
|
+
items: string
|
|
56
|
+
description: "Task IDs that must complete before this task"
|
|
57
|
+
required: false
|
|
58
|
+
|
|
59
|
+
- name: acceptance_criteria
|
|
60
|
+
type: array
|
|
61
|
+
items:
|
|
62
|
+
type: object
|
|
63
|
+
fields:
|
|
64
|
+
- given: "Initial context/state"
|
|
65
|
+
- when: "Action performed"
|
|
66
|
+
- then: "Expected outcome (verifiable)"
|
|
67
|
+
min_items: 1
|
|
68
|
+
required: true
|
|
69
|
+
|
|
70
|
+
- name: definition_of_done
|
|
71
|
+
type: array
|
|
72
|
+
items: string
|
|
73
|
+
description: "Checklist of completion requirements"
|
|
74
|
+
default:
|
|
75
|
+
- "Code implemented"
|
|
76
|
+
- "Tests written and passing"
|
|
77
|
+
- "Design System tokens used"
|
|
78
|
+
- "No lint errors"
|
|
79
|
+
- "Self-critique completed (5.5 + 6.5)"
|
|
80
|
+
|
|
81
|
+
validation:
|
|
82
|
+
- "Size must not be XL (split into sub-tasks)"
|
|
83
|
+
- "At least 1 Given-When-Then acceptance criterion"
|
|
84
|
+
- "Requirement reference must exist in PRD"
|
|
85
|
+
- "No placeholders ([TODO], [TBD])"
|