teamspec 3.2.0 → 4.1.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.
Files changed (51) hide show
  1. package/README.md +24 -12
  2. package/bin/teamspec-init.js +2 -2
  3. package/lib/cli.js +653 -99
  4. package/lib/extension-installer.js +19 -219
  5. package/lib/linter.js +823 -1076
  6. package/lib/prompt-generator.js +312 -330
  7. package/lib/structure-loader.js +400 -0
  8. package/package.json +14 -6
  9. package/teamspec-core/FOLDER_STRUCTURE.yml +131 -0
  10. package/teamspec-core/agents/AGENT_BA.md +188 -293
  11. package/teamspec-core/agents/AGENT_BOOTSTRAP.md +197 -102
  12. package/teamspec-core/agents/AGENT_DES.md +9 -8
  13. package/teamspec-core/agents/AGENT_DEV.md +68 -67
  14. package/teamspec-core/agents/AGENT_FA.md +437 -245
  15. package/teamspec-core/agents/AGENT_FIX.md +344 -74
  16. package/teamspec-core/agents/AGENT_PO.md +487 -0
  17. package/teamspec-core/agents/AGENT_QA.md +124 -98
  18. package/teamspec-core/agents/AGENT_SA.md +143 -84
  19. package/teamspec-core/agents/AGENT_SM.md +106 -83
  20. package/teamspec-core/agents/README.md +143 -93
  21. package/teamspec-core/copilot-instructions.md +281 -205
  22. package/teamspec-core/definitions/definition-of-done.md +47 -84
  23. package/teamspec-core/definitions/definition-of-ready.md +35 -60
  24. package/teamspec-core/registry.yml +898 -0
  25. package/teamspec-core/teamspec.yml +44 -28
  26. package/teamspec-core/templates/README.md +5 -5
  27. package/teamspec-core/templates/adr-template.md +19 -17
  28. package/teamspec-core/templates/bai-template.md +125 -0
  29. package/teamspec-core/templates/bug-report-template.md +21 -15
  30. package/teamspec-core/templates/business-analysis-template.md +16 -13
  31. package/teamspec-core/templates/decision-log-template.md +26 -22
  32. package/teamspec-core/templates/dev-plan-template.md +168 -0
  33. package/teamspec-core/templates/epic-template.md +204 -0
  34. package/teamspec-core/templates/feature-increment-template.md +84 -0
  35. package/teamspec-core/templates/feature-template.md +45 -32
  36. package/teamspec-core/templates/increments-index-template.md +53 -0
  37. package/teamspec-core/templates/product-template.yml +44 -0
  38. package/teamspec-core/templates/products-index-template.md +46 -0
  39. package/teamspec-core/templates/project-template.yml +70 -0
  40. package/teamspec-core/templates/ri-template.md +225 -0
  41. package/teamspec-core/templates/rt-template.md +104 -0
  42. package/teamspec-core/templates/sd-template.md +132 -0
  43. package/teamspec-core/templates/sdi-template.md +119 -0
  44. package/teamspec-core/templates/sprint-template.md +17 -15
  45. package/teamspec-core/templates/story-template-v4.md +202 -0
  46. package/teamspec-core/templates/story-template.md +48 -90
  47. package/teamspec-core/templates/ta-template.md +198 -0
  48. package/teamspec-core/templates/tai-template.md +131 -0
  49. package/teamspec-core/templates/tc-template.md +145 -0
  50. package/teamspec-core/templates/testcases-template.md +20 -17
  51. package/extensions/teamspec-0.1.0.vsix +0 -0
@@ -0,0 +1,198 @@
1
+ # Technical Architecture: `ta-{PRX}-{NNN}-{description}`
2
+
3
+ <!--
4
+ ⚠️ TECHNICAL ARCHITECTURE RULES
5
+
6
+ Technical Architecture documents technical decisions and design approaches.
7
+
8
+ RULES:
9
+ 1. Technical Architecture links to features they affect
10
+ 2. Technical Architecture links to business decisions that triggered them
11
+ 3. SA does NOT update Feature Canon directly - Technical Architecture informs FA
12
+ 4. If behavior is affected, FA must review Feature Canon
13
+
14
+ NAMING PATTERN: ta-{PRX}-{NNN}-{description}.md
15
+ EXAMPLE: ta-ACME-001-microservices.md
16
+
17
+ TEAMSPEC RULES ENFORCED:
18
+ - TS-TA-001: Technical Architecture required for architecture-impacting changes
19
+ - TS-TA-002: Technical Architecture must link to affected features
20
+ -->
21
+
22
+ > **Template Version**: 4.0
23
+ > **Last Updated**: 2026-01-11
24
+
25
+ ---
26
+
27
+ **Document Owner:** SA (Solution Architect)
28
+ **Artifact Type:** Technical Architecture (Canonical)
29
+ **Lifecycle:** Permanent, versioned
30
+
31
+ ---
32
+
33
+ ## Metadata
34
+
35
+ | Field | Value |
36
+ | :--- | :--- |
37
+ | **TA ID** | ta-{PRX}-{NNN} |
38
+ | **Product** | {product-id} ({PRX}) |
39
+ | **Status** | Proposed / Accepted / Deprecated / Superseded |
40
+ | **Date** | YYYY-MM-DD |
41
+ | **Author** | [SA Name] |
42
+ | **Superseded By** | [ta-{PRX}-{NNN} if applicable] |
43
+
44
+ ---
45
+
46
+ ## Context
47
+
48
+ > What is the problem? Why do we need to make a technical decision?
49
+
50
+ [Describe the technical situation, constraints, and forces that require a decision.]
51
+
52
+ ---
53
+
54
+ ## Options Considered
55
+
56
+ ### Option 1: [Option Name]
57
+
58
+ **Description**: [Brief description]
59
+
60
+ **Pros**:
61
+ - [Pro 1]
62
+ - [Pro 2]
63
+
64
+ **Cons**:
65
+ - [Con 1]
66
+ - [Con 2]
67
+
68
+ ### Option 2: [Option Name]
69
+
70
+ **Description**: [Brief description]
71
+
72
+ **Pros**:
73
+ - [Pro 1]
74
+
75
+ **Cons**:
76
+ - [Con 1]
77
+
78
+ ---
79
+
80
+ ## Decision
81
+
82
+ > We are choosing **Option X** because...
83
+
84
+ [Clear statement of the decision and primary rationale]
85
+
86
+ ---
87
+
88
+ ## Consequences
89
+
90
+ ### Positive
91
+
92
+ - [Benefit 1]
93
+ - [Benefit 2]
94
+
95
+ ### Negative
96
+
97
+ - [Trade-off 1]
98
+ - [Trade-off 2]
99
+
100
+ ---
101
+
102
+ ## Related Decisions
103
+
104
+ <!-- TEAMSPEC RULE: Link to business decisions that triggered this Technical Architecture -->
105
+
106
+ | Decision ID | Decision Title | Relationship |
107
+ |-------------|----------------|--------------|
108
+ | [dec-{PRX}-{NNN}](../decisions/dec-{PRX}-{NNN}-*.md) | [Title] | Triggered by / Related to |
109
+
110
+ > If this Technical Architecture was triggered by a business decision, link it here.
111
+
112
+ ---
113
+
114
+ ## Affected Features
115
+
116
+ <!-- TEAMSPEC RULE: TS-TA-002 - Technical Architecture must link to features -->
117
+
118
+ > ⚠️ If this decision affects user-observable behavior, FA must review Feature Canon.
119
+
120
+ | Feature ID | Feature Name | Impact | Canon Review Needed? |
121
+ |------------|--------------|--------|---------------------|
122
+ | [f-{PRX}-{NNN}](../features/f-{PRX}-{NNN}-*.md) | [Name] | [How this affects behavior] | Yes / No |
123
+
124
+ ---
125
+
126
+ ## Behavior Impact Assessment
127
+
128
+ > ⚠️ SA provides technical facts. FA translates to Feature Canon behavior.
129
+
130
+ ### Does this Technical Architecture affect user-observable behavior?
131
+
132
+ - [ ] **No** — Internal/technical change only (no Canon update needed)
133
+ - [ ] **Yes** — Behavior implications described below
134
+
135
+ ### Behavior Implications (if Yes)
136
+
137
+ | Technical Decision | Behavior Implication | FA Action |
138
+ |--------------------|---------------------|-----------|
139
+ | [e.g., Rate limit: 100 req/min] | [e.g., System rejects excess requests] | FA adds to Canon |
140
+
141
+ > **Workflow:**
142
+ > 1. SA creates Technical Architecture with technical constraints
143
+ > 2. Technical Architecture may imply behavior constraints
144
+ > 3. FA incorporates constraints into Feature Canon
145
+ > 4. FA owns the behavioral wording
146
+
147
+ ---
148
+
149
+ ## Examples of Behavior-Impacting Decisions
150
+
151
+ ✅ **Include in Feature Impact** (FA must review Canon):
152
+ - Changing how errors are reported to users
153
+ - Adding/removing functionality constraints
154
+ - Changing performance characteristics users observe
155
+ - Changing access control or permissions
156
+
157
+ ❌ **Usually no Feature Impact**:
158
+ - Internal refactoring (no user-observable change)
159
+ - Technology stack decisions (if behavior unchanged)
160
+ - Database optimization (if behavior unchanged)
161
+
162
+ ---
163
+
164
+ ## Documentation Trail
165
+
166
+ This Technical Architecture is referenced in Feature Canon Change Log when it affects documented behavior:
167
+
168
+ > ta-{PRX}-{NNN}: [Title] — Added [feature capability / constraint]
169
+
170
+ This maintains traceability between architecture and product behavior.
171
+
172
+ ---
173
+
174
+ ## Implementation Notes
175
+
176
+ _Technical details for DEV team._
177
+
178
+ - [Implementation note 1]
179
+ - [Implementation note 2]
180
+
181
+ ---
182
+
183
+ ## Review & Approval
184
+
185
+ | Role | Name | Status | Date |
186
+ |------|------|--------|------|
187
+ | SA (Author) | [Name] | ✅ | YYYY-MM-DD |
188
+ | Tech Lead | [Name] | ⏳ | |
189
+ | FA (if behavior affected) | [Name] | ⏳ | |
190
+
191
+ ---
192
+
193
+ ## Linter Rules Enforced
194
+
195
+ | Rule | Description |
196
+ |------|-------------|
197
+ | TS-TA-001 | Technical Architecture required for architecture-impacting changes |
198
+ | TS-TA-002 | Technical Architecture must link to affected features |
@@ -0,0 +1,131 @@
1
+ # Technical Architecture Increment: `<tai-PRX-XXX-description>`
2
+
3
+ > **ID:** tai-PRX-XXX
4
+ > **Product:** `<product-id>` (PRX)
5
+ > **Project:** `<project-id>`
6
+ > **Target TA Feature:** `<ta-PRX-XXX-name>`
7
+ > **Target Feature:** `<f-PRX-XXX-feature-name>`
8
+ > **Status:** draft | proposed | approved | implemented | synced
9
+
10
+ ---
11
+
12
+ **Document Owner:** SA (Solution Architect)
13
+ **Artifact Type:** Technical Architecture Increment (Project)
14
+ **Lifecycle:** Project-scoped, merged to Product TA after approval
15
+
16
+ ---
17
+
18
+ ## Metadata
19
+
20
+ | Field | Value |
21
+ | :--- | :--- |
22
+ | **TAI ID** | tai-PRX-XXX |
23
+ | **Status** | Proposed / Accepted / Implemented / Synced |
24
+ | **Date** | YYYY-MM-DD |
25
+ | **Author** | [SA Name] |
26
+ | **Target TA** | [ta-PRX-XXX](../../products/PRX/technical-architecture/ta-PRX-XXX-*.md) |
27
+ | **Feature Increment** | [fi-PRX-XXX](../feature-increments/fi-PRX-XXX-*.md) |
28
+
29
+ ---
30
+
31
+ ## 1. Overview
32
+
33
+ _Brief description of the technical architecture increment specific to this project._
34
+
35
+ ---
36
+
37
+ ## 2. AS-IS (Current Product TA)
38
+
39
+ > _Auto-populated from Product Technical Architecture. DO NOT EDIT unless correcting errors._
40
+
41
+ _Copy relevant sections from the Product TA._
42
+
43
+ ---
44
+
45
+ ## 3. TO-BE (Project Technical Architecture)
46
+
47
+ ### 3.1 New/Changed Architecture Elements
48
+
49
+ _Describe what the project-specific architecture includes that product architecture doesn't._
50
+
51
+ ### 3.2 Technical Specifications
52
+
53
+ _Detailed technical specifications for this increment._
54
+
55
+ ### 3.3 Out of Scope
56
+
57
+ _Explicitly state what this increment does NOT include._
58
+
59
+ ---
60
+
61
+ ## 4. Impact Analysis
62
+
63
+ ### 4.1 Feature Implications
64
+
65
+ | Feature | Impact Type | Description |
66
+ |---------|-------------|-------------|
67
+ | [f-PRX-XXX] | Modified | _What architecture changes affect this feature_ |
68
+
69
+ ### 4.2 Infrastructure Dependencies
70
+
71
+ _Links to infrastructure or platform requirements._
72
+
73
+ ### 4.3 Implementation Constraints
74
+
75
+ _Architecture constraints that affect DEV work._
76
+
77
+ ---
78
+
79
+ ## 5. Behavior Impact Assessment
80
+
81
+ > ⚠️ Does this TAI affect user-observable behavior?
82
+
83
+ ### 5.1 Changes to Feature Behavior
84
+
85
+ _What behavior changes result from this architecture._
86
+
87
+ ### 5.2 Feature Canon Updates
88
+
89
+ _What sections of Feature Canon need updates based on this TAI._
90
+
91
+ ---
92
+
93
+ ## 6. Integration Notes
94
+
95
+ ### 6.1 Product TA Alignment
96
+
97
+ _How this project TAI aligns with or extends the product TA._
98
+
99
+ ### 6.2 Merge Strategy
100
+
101
+ _How this TAI will be merged back to Product TA after project completion._
102
+
103
+ ---
104
+
105
+ ## 7. Implementation Notes
106
+
107
+ ### 7.1 Development Guidelines
108
+
109
+ _Key implementation guidance for the development team._
110
+
111
+ ### 7.2 Testing and Validation
112
+
113
+ _How the architecture will be validated._
114
+
115
+ ---
116
+
117
+ ## 8. Review & Approval
118
+
119
+ | Role | Name | Status | Date |
120
+ |------|------|--------|------|
121
+ | SA (Author) | [Name] | ✅ | YYYY-MM-DD |
122
+ | Tech Lead | [Name] | ⏳ | |
123
+ | FA (if behavior affected) | [Name] | ⏳ | |
124
+
125
+ ---
126
+
127
+ ## Change Log
128
+
129
+ | Date | Author | Change |
130
+ |------|--------|--------|
131
+ | YYYY-MM-DD | @author | Initial draft |
@@ -0,0 +1,145 @@
1
+ # Test Cases: `<tc-fi-PRX-XXX-description>`
2
+
3
+ <!--
4
+ ⚠️ PROJECT-LEVEL TEST CASES
5
+
6
+ Test cases for Feature Increments validate project-specific test scenarios.
7
+ These are created during sprint planning and refined during development.
8
+
9
+ RULES:
10
+ 1. Test cases reference Feature-Increment behavior
11
+ 2. Tests can reference Feature Canon sections
12
+ 3. Tests are specific to the project sprint
13
+ 4. Linked to acceptance criteria
14
+
15
+ TEAMSPEC RULES ENFORCED:
16
+ - TS-DOD-003: Tests are feature-increment level
17
+ - TS-QA-002: Tests must reference Feature Canon or Increment Canon
18
+ -->
19
+
20
+ > **Template Version**: 2.0
21
+ > **Last Updated**: 2026-01-07
22
+
23
+ ---
24
+
25
+ **Document Owner:** QA (QA Engineer)
26
+ **Artifact Type:** Project Test Cases (Project-scoped)
27
+ **Lifecycle:** Project-scoped, merged to Product feature tests after approval
28
+
29
+ ---
30
+
31
+ ## Test Case Reference
32
+
33
+ **Feature Increment:** [fi-PRX-XXX — Increment Name](../feature-increments/fi-PRX-XXX-*.md)
34
+ **Feature:** [F-XXX — Feature Name](../../products/PRX/features/F-XXX-name.md)
35
+ **Test Level:** Feature Increment (project-scoped)
36
+
37
+ | Metadata | Value |
38
+ | :--- | :--- |
39
+ | **TC ID** | tc-fi-PRX-XXX |
40
+ | **Feature Increment** | [fi-PRX-XXX](../feature-increments/fi-PRX-XXX-*.md) |
41
+ | **Feature** | [F-XXX](../../products/PRX/features/F-XXX-name.md) |
42
+ | **Author** | [QA Name] |
43
+ | **Created** | YYYY-MM-DD |
44
+ | **Last Updated** | YYYY-MM-DD |
45
+
46
+ ---
47
+
48
+ ## Test Scenarios
49
+
50
+ ### TC-001: [Title]
51
+
52
+ - **Type**: Positive / Negative / Boundary
53
+ - **Feature Reference**: [fi-PRX-XXX: TO-BE Behavior](../feature-increments/fi-PRX-XXX-*.md)
54
+ - **Acceptance Criteria**: AC-1 from FI
55
+ - **Pre-conditions**: [Setup required]
56
+ - **Steps**:
57
+ 1. [Action 1]
58
+ 2. [Action 2]
59
+ - **Expected Result**: [What should happen]
60
+ - **Test Data**: [Data needed]
61
+ - **Automation**: Manual / Automated
62
+
63
+ ### TC-002: [Title]
64
+
65
+ - **Type**: Positive / Negative / Boundary
66
+ - **Feature Reference**: [fi-PRX-XXX: TO-BE Behavior](../feature-increments/fi-PRX-XXX-*.md)
67
+ - **Acceptance Criteria**: AC-2 from FI
68
+ - **Pre-conditions**: [Setup required]
69
+ - **Steps**:
70
+ 1. [Action 1]
71
+ 2. [Action 2]
72
+ - **Expected Result**: [What should happen]
73
+ - **Test Data**: [Data needed]
74
+ - **Automation**: Manual / Automated
75
+
76
+ ---
77
+
78
+ ## Acceptance Criteria Coverage
79
+
80
+ | AC ID | AC Description | Test ID | Status |
81
+ |-------|----------------|---------|--------|
82
+ | AC-1 | [From FI] | TC-001 | [ ] |
83
+ | AC-2 | [From FI] | TC-002 | [ ] |
84
+ | AC-3 | [From FI] | TC-003 | [ ] |
85
+
86
+ ---
87
+
88
+ ## Edge Case Coverage
89
+
90
+ | Edge Case | Feature Behavior | Test ID | Status |
91
+ |-----------|-----------------|---------|--------|
92
+ | [Edge case 1] | [How it should behave] | TC-004 | [ ] |
93
+ | [Edge case 2] | [How it should behave] | TC-005 | [ ] |
94
+
95
+ ---
96
+
97
+ ## Feature Alignment Validation
98
+
99
+ Before marking tests as "Complete":
100
+
101
+ - [ ] All tests reference Feature Increment or Feature Canon behavior
102
+ - [ ] All acceptance criteria are covered
103
+ - [ ] No tests for undocumented behavior
104
+ - [ ] Feature-Increment is current (no pending updates)
105
+ - [ ] Feature Canon is reviewed for conflicts
106
+
107
+ ---
108
+
109
+ ## Test Execution Results
110
+
111
+ | Date | Tester | Environment | Pass | Fail | Blocked | Notes |
112
+ |------|--------|-------------|------|------|---------|-------|
113
+ | YYYY-MM-DD | [Name] | [Env] | {N} | {N} | {N} | |
114
+ | YYYY-MM-DD | [Name] | [Env] | {N} | {N} | {N} | |
115
+
116
+ ---
117
+
118
+ ## Issues Logged
119
+
120
+ | Issue ID | Description | Severity | Status | Owner |
121
+ |----------|-------------|----------|--------|-------|
122
+ | BUG-XXX | [Issue] | P1/P2/P3 | Open | [Owner] |
123
+
124
+ ---
125
+
126
+ ## Test Sign-Off
127
+
128
+ This test pack validates:
129
+
130
+ 1. ✅ Feature-Increment acceptance criteria are met
131
+ 2. ✅ Documented behavior works correctly
132
+ 3. ✅ Edge cases are handled properly
133
+
134
+ **QA Approved:** [ ] Yes
135
+ **QA Name:** ________________
136
+ **Date:** ________________
137
+ **Sprint:** ________________
138
+
139
+ ---
140
+
141
+ ## Change Log
142
+
143
+ | Date | Author | Change |
144
+ |------|--------|--------|
145
+ | YYYY-MM-DD | @author | Initial test cases |
@@ -1,28 +1,31 @@
1
1
  # Test Cases: [Feature Name]
2
2
 
3
- <!--
4
- ⚠️ TESTS ARE FEATURE-LEVEL, NOT STORY-LEVEL
5
-
6
- Test cases validate Feature Canon behavior, not individual stories.
7
-
8
- RULES:
9
- 1. Tests reference Feature Canon sections
10
- 2. Tests are canonical (survive story completion)
11
- 3. If behavior doesn't match Canon, classify the issue
12
- 4. Do not create story-specific test cases
13
-
14
- TEAMSPEC RULES ENFORCED:
15
- - TS-DOD-002: Tests are feature-level
16
- - TS-QA-001: Tests must reference Feature Canon
3
+ <!--
4
+ DEPRECATED TEMPLATE - DO NOT USE
5
+
6
+ This template is DEPRECATED as of TeamSpec 4.0.
7
+
8
+ USE INSTEAD:
9
+ - tc-template.md for PROJECT test cases (tc-fi-{PRX}-{NNN}-*.md)
10
+ - Product regression tests use rt-f-{PRX}-{NNN}-*.md pattern
11
+
12
+ REASON: TeamSpec 4.0 uses a two-layer QA model:
13
+ 1. Project Test Cases (tc-fi-*) → validate Feature-Increments
14
+ 2. Product Regression Tests (rt-f-*) → long-term regression coverage
15
+
16
+ This old template doesn't follow the 4.0 naming conventions or QA model.
17
+
18
+ See: spec/4.0/registry.yml for correct artifact patterns
17
19
  -->
18
20
 
19
- > **Template Version**: 2.0
21
+ > **Template Version**: 2.0 (DEPRECATED)
20
22
  > **Last Updated**: 2026-01-07
23
+ > **Status**: ⛔ DEPRECATED - Use tc-template.md instead
21
24
 
22
25
  ---
23
26
 
24
- **Document Owner:** QA (QA Engineer)
25
- **Artifact Type:** Canonical (Feature-level)
27
+ **Document Owner:** QA (QA Engineer)
28
+ **Artifact Type:** Canonical (Feature-level) - DEPRECATED
26
29
  **Lifecycle:** Permanent, evolves with Feature Canon
27
30
 
28
31
  ---
Binary file