Skip to content

Commit 843c0cc

Browse files
committed
refactor: record learning M247 - acknowledge user messages mid-operation
1 parent f89fc83 commit 843c0cc

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

.claude/cat/retrospectives/mistakes.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,33 @@
5252
"catches_variations": true
5353
},
5454
"correct_behavior": "Search conversation for --- XXX --- marker in PRE-COMPUTED WORK BOXES, copy entire box verbatim, only replace placeholder text with actual values"
55+
},
56+
{
57+
"id": "M247",
58+
"timestamp": "2026-01-25T14:10:00Z",
59+
"category": "protocol_violation",
60+
"description": "Ignored user's mid-operation message embedded in system-reminder, continued with task completion without acknowledging",
61+
"root_cause": "Focused on task completion over user interaction; did not parse system-reminders for user messages mid-operation",
62+
"rca_method": "B",
63+
"rca_method_name": "taxonomy",
64+
"prevention_type": "skill",
65+
"prevention_path": "${CLAUDE_PROJECT_DIR}/plugin/hooks/inject-session-instructions.sh",
66+
"pattern_keywords": [
67+
"user message",
68+
"system-reminder",
69+
"acknowledge",
70+
"mid-operation",
71+
"ignored"
72+
],
73+
"prevention_implemented": true,
74+
"prevention_verified": true,
75+
"recurrence_of": null,
76+
"prevention_quality": {
77+
"verification_type": "positive",
78+
"fragility": "medium",
79+
"catches_variations": true
80+
},
81+
"correct_behavior": "When user input arrives mid-operation: STOP, ACKNOWLEDGE the message in response text, then address or track before continuing"
5582
}
5683
]
5784
}

.claude/cat/retrospectives/retrospectives.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"last_retrospective": "2026-01-25T00:00:00Z",
3-
"mistake_count_since_last": 2,
3+
"mistake_count_since_last": 3,
44
"config": {
55
"mistake_count_threshold": 5,
66
"trigger_interval_days": 7

plugin/hooks/inject-session-instructions.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ MESSAGE=$(cat << 'INSTRUCTIONS'
4444
4545
**When user input arrives mid-operation**:
4646
1. **STOP** current task analysis immediately
47-
2. Track with TaskCreate if needed (all issues, even just 2-3 items)
48-
3. If impacts current task → address now; else → add to end
49-
4. Acknowledge before continuing
47+
2. **ACKNOWLEDGE** the user's message in your response text
48+
3. Track with TaskCreate if needed (all issues, even just 2-3 items)
49+
4. If impacts current task → address now; else → add to end
50+
5. Continue only after acknowledgment
5051
5152
**Common failure**: Continuing to analyze tool output while ignoring embedded user request.
5253

plugin/hooks/prompt_handlers/user_issues.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
"wrong output",
4646
"wrong result",
4747
"incorrect result",
48+
# M247: User message handling failures
49+
"ignored",
50+
"you ignored",
51+
"didn't acknowledge",
52+
"didn't respond to",
53+
"expected behavior",
4854
]
4955

5056

0 commit comments

Comments
 (0)