The current agent session initialization protocol in .github/AGENTS.md has a critical flaw: it does not explicitly instruct the agent to generate a new sessionId at the start of each memory-enabled session. This leads to attempts to reuse old session IDs, add memories to already summarized sessions, and creates an inconsistent and unreliable memory state.
This ticket aims to rectify this by enhancing the session initialization process to ensure a proper, distinct sessionId is generated and the memory core's state is correctly validated before any memory operations occur.
Acceptance Criteria
- The
.github/AGENTS.md file is updated to include a clear step in the "Session Initialization" sequence (Step 2) that mandates the generation of a new, unique sessionId for each new memory-enabled session.
- The new
sessionId must be generated before any memory-related operations (e.g., saving the first message, summarizing previous sessions).
- The protocol must explicitly state that once a session has been summarized, it is considered immutable, and no further memories should be added to it.
- The agent's internal logic for initiating a session must reflect these changes, ensuring a new
sessionId is always used for new sessions when the memory core is active.
- The agent should be able to correctly identify and use the current session's ID for all memory operations within that session.
The current agent session initialization protocol in
.github/AGENTS.mdhas a critical flaw: it does not explicitly instruct the agent to generate a newsessionIdat the start of each memory-enabled session. This leads to attempts to reuse old session IDs, add memories to already summarized sessions, and creates an inconsistent and unreliable memory state.This ticket aims to rectify this by enhancing the session initialization process to ensure a proper, distinct
sessionIdis generated and the memory core's state is correctly validated before any memory operations occur.Acceptance Criteria
.github/AGENTS.mdfile is updated to include a clear step in the "Session Initialization" sequence (Step 2) that mandates the generation of a new, uniquesessionIdfor each new memory-enabled session.sessionIdmust be generated before any memory-related operations (e.g., saving the first message, summarizing previous sessions).sessionIdis always used for new sessions when the memory core is active.