You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/SESSION-PROTOCOL.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ The agent MUST read context documents before starting work. This is a **blocking
73
73
74
74
**Requirements:**
75
75
76
-
1. The agent MUST read `.agents/HANDOFF.md` for previous session context
76
+
1. The agent MUST read `.agents/HANDOFF.md` for previous session context (READ-ONLY reference)
77
77
2. The agent SHOULD read relevant Serena memories based on task topic
78
78
3. The agent SHOULD read `.agents/planning/enhancement-PROJECT-PLAN.md` if working on enhancement project
79
79
4. The agent MAY read additional context files based on task requirements
@@ -84,7 +84,7 @@ The agent MUST read context documents before starting work. This is a **blocking
84
84
- Agent references prior decisions from HANDOFF.md
85
85
- Agent does not ask questions answered in HANDOFF.md
86
86
87
-
**Rationale:** Agents are expert amnesiacs. Without reading HANDOFF.md, they will repeat completed work or contradict prior decisions.
87
+
**Rationale:** Agents are expert amnesiacs. Without reading HANDOFF.md, they will repeat completed work or contradict prior decisions. Note: HANDOFF.md is a read-only reference; do not modify it during sessions.
88
88
89
89
### Phase 1.5: Skill Validation (BLOCKING)
90
90
@@ -200,23 +200,24 @@ The agent MUST update documentation before ending.
200
200
201
201
**Requirements:**
202
202
203
-
1. The agent MUST update `.agents/HANDOFF.md` with:
204
-
- Link to session log (e.g., `[Session NN](./sessions/YYYY-MM-DD-session-NN.md)`)
205
-
- What was completed this session
206
-
- What should happen next session
207
-
- Any blockers or concerns
208
-
- Files changed
203
+
1. The agent MUST NOT update `.agents/HANDOFF.md` directly. Session context MUST go to:
204
+
- Your session log at `.agents/sessions/YYYY-MM-DD-session-NN.md`
205
+
- Serena memory for cross-session context (using `mcp__serena__write_memory` or equivalent)
206
+
-`.agents/handoffs/{branch}/{session}.md` for branch-specific handoff (if on feature branch)
209
207
2. The agent MUST complete the session log with:
210
208
- Tasks attempted and outcomes
211
209
- Decisions made with rationale
212
210
- Challenges encountered and resolutions
211
+
- Link reference for next session handoff
213
212
3. The agent SHOULD update PROJECT-PLAN.md if tasks were completed
213
+
4. The agent MAY read `.agents/HANDOFF.md` for historical context (read-only reference)
214
214
215
215
**Verification:**
216
216
217
-
- HANDOFF.md modified timestamp is current
218
217
- Session log contains complete information
218
+
- Serena memory updated with relevant context
219
219
- PROJECT-PLAN.md checkboxes updated if applicable
220
+
- HANDOFF.md is NOT modified (unless explicitly approved by architect)
220
221
221
222
### Phase 2: Quality Checks (REQUIRED)
222
223
@@ -302,11 +303,12 @@ Copy this checklist to each session log and verify completion:
0 commit comments