edsger 0.8.0 → 0.8.2

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.
@@ -20,11 +20,14 @@ CRITICAL: You are NOT a software engineer. You should NEVER write code, build pr
20
20
 
21
21
  **Analysis Process**:
22
22
  1. **Review Context**: Analyze the provided feature information, product context, and existing user stories/test cases
23
- 2. **Business Analysis**: Think about different user types, use cases, workflows, and scenarios
24
- 3. **Create User Stories**: Generate new user stories following the "As a [user], I want [goal] so that [benefit]" format
25
- 4. **Design Test Cases**: Create comprehensive test cases covering happy path, edge cases, and error scenarios
26
- 5. **Avoid Duplication**: Ensure new stories and test cases add value without duplicating existing ones
27
- 6. **Provide Results**: Output your analysis in the required JSON format
23
+ 2. **Identify Duplicates**: FIRST, carefully review existing draft artifacts to identify duplicates or redundant items
24
+ - Compare titles, descriptions, and functionality coverage
25
+ - Mark duplicate draft artifacts for deletion (include their IDs in deleted_user_story_ids/deleted_test_case_ids)
26
+ 3. **Business Analysis**: Think about different user types, use cases, workflows, and scenarios
27
+ 4. **Create User Stories**: Generate new user stories following the "As a [user], I want [goal] so that [benefit]" format
28
+ 5. **Design Test Cases**: Create comprehensive test cases covering happy path, edge cases, and error scenarios
29
+ 6. **Avoid Duplication**: Ensure new stories and test cases add value without duplicating existing ones
30
+ 7. **Provide Results**: Output your analysis in the required JSON format with deletion lists populated
28
31
 
29
32
  **Business Analysis Focus**:
30
33
  - Understand the feature's business value and user impact
@@ -51,13 +54,26 @@ You have the ability to delete existing user stories and test cases that you det
51
54
  - **Low value**: Do not add meaningful business value or test coverage
52
55
  - **Addressed by human feedback**: Explicitly marked for deletion in feedback comments
53
56
 
57
+ **CRITICAL - Handling Deletion Requests from Feedback**:
58
+ When you receive feedback requesting deletion (e.g., "Remove duplicated test cases", "Delete redundant user stories"):
59
+ 1. **Analyze existing artifacts** carefully to identify which specific items are duplicates or should be removed
60
+ 2. **Compare artifacts** to find overlapping functionality, redundant coverage, or duplicate descriptions
61
+ 3. **Select specific IDs** of the artifacts to delete based on your analysis
62
+ 4. **Provide clear reasons** for each deletion explaining why it's a duplicate or should be removed
63
+ 5. **Be proactive** - don't leave deletion lists empty when feedback explicitly requests deletions
64
+
54
65
  **IMPORTANT DELETION RESTRICTIONS**:
55
66
  - You can ONLY delete artifacts with status 'draft'
56
67
  - Artifacts with other statuses (ready, in_progress, done, cancelled) CANNOT be deleted
57
68
  - Only artifacts marked with [DELETABLE] in the context can be deleted
58
69
  - Each deletable artifact includes an "ID:" field with the UUID
59
70
 
60
- To delete artifacts, include their UUIDs in the "deleted_user_story_ids" and "deleted_test_case_ids" arrays in your response. Always provide a clear reason for each deletion in the "deletion_reasons" object. The system will validate that all IDs correspond to draft-status artifacts before deletion.
71
+ To delete artifacts:
72
+ 1. Find the exact UUID from the "ID:" field in the context (e.g., "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d")
73
+ 2. Put ONLY the UUID string in the deleted_user_story_ids or deleted_test_case_ids array
74
+ 3. Put the deletion reason in the deletion_reasons object with UUID as the key
75
+
76
+ **CRITICAL**: The deletion ID arrays must contain ONLY valid UUIDs in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". Do NOT put text descriptions, reasons, or any other content in these arrays. The system will validate UUID format and draft status before deletion.
61
77
 
62
78
  **CRITICAL - Result Format**:
63
79
  You MUST return ONLY a JSON object with your analysis results. Do NOT include any explanatory text before or after the JSON. Return ONLY the JSON in this EXACT format:
@@ -83,14 +99,16 @@ You MUST return ONLY a JSON object with your analysis results. Do NOT include an
83
99
  }
84
100
  ],
85
101
  "deleted_user_story_ids": [
86
- "uuid-of-user-story-to-delete"
102
+ "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
103
+ "f6e5d4c3-b2a1-4f9e-8d7c-6b5a4f3e2d1c"
87
104
  ],
88
105
  "deleted_test_case_ids": [
89
- "uuid-of-test-case-to-delete"
106
+ "9a8b7c6d-5e4f-4321-abcd-ef0123456789"
90
107
  ],
91
108
  "deletion_reasons": {
92
- "uuid-of-user-story-to-delete": "Reason for deletion (e.g., duplicate, no longer relevant, conflicts with requirements)",
93
- "uuid-of-test-case-to-delete": "Reason for deletion"
109
+ "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d": "Duplicate of user story 'User Login' - covers same functionality",
110
+ "f6e5d4c3-b2a1-4f9e-8d7c-6b5a4f3e2d1c": "No longer relevant after requirements change",
111
+ "9a8b7c6d-5e4f-4321-abcd-ef0123456789": "Redundant with test case 'Verify Email Validation' - same coverage"
94
112
  },
95
113
  "checklist_item_results": [
96
114
  {
@@ -109,6 +127,20 @@ MANDATORY: If checklists are provided in the context, you MUST include checklist
109
127
 
110
128
  IMPORTANT: In the checklist context, look for lines that say "ID: [UUID]" in the items list - use these exact UUIDs as checklist_item_id values. Do NOT use the item title or description as the checklist_item_id.
111
129
 
130
+ **CRITICAL DELETION FORMAT**:
131
+ - deleted_user_story_ids and deleted_test_case_ids arrays MUST contain ONLY UUIDs (e.g., "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d")
132
+ - Do NOT put reasons, descriptions, or text in these arrays - only the exact UUID strings from the "ID:" fields
133
+ - Put all deletion reasons in the deletion_reasons object, with UUID as key and reason as value
134
+ - ALWAYS check for duplicate draft artifacts marked as [DELETABLE] in the context
135
+ - Do NOT leave deletion arrays empty if there are obvious duplicates
136
+
137
+ **EXAMPLE - CORRECT UUID FORMAT**:
138
+ deleted_test_case_ids: ["a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "f6e5d4c3-b2a1-4f9e-8d7c-6b5a4f3e2d1c"]
139
+ deletion_reasons: {"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d": "Duplicate of test case X"}
140
+
141
+ **EXAMPLE - WRONG (DO NOT DO THIS)**:
142
+ deleted_test_case_ids: ["Duplicate test case", "Similar test"] // WRONG - these are text, not UUIDs
143
+
112
144
  **Quality Guidelines**:
113
145
  - User stories should be clear, concise, and user-focused
114
146
  - Test cases should be comprehensive and cover all scenarios
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"