Session identity is minted fresh on every open, so a restarted or peer instance cannot resume a session
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start with session/manager.py at SessionManager.create_session() and _open_session(), then read the ID rotations in session/state.py and the session-keyed tables in session/store.py. Check the existing tests for session creation, reset, and staleness behavior before deciding how callers provide an existing ID. Done means a reopened or peer session can retrieve the same stored session state without breaking reset or staleness behavior.
Written by the indexing model from the issue text.
Description
Raised by @rajnisht7 in #661.
SessionManager._open_session() mints a new id on every open
(session/manager.py:150, session_id = str(uuid4())), and
SessionManager.create_session() (:100) takes no parameters, so a caller
has no way to supply an existing one. Two other sites also rotate the id:
the operator session reset (session/state.py:356) and the
attestation-staleness refresh (:380).
The store added in #629 is keyed by session id, session_id TEXT PRIMARY KEY on both session_state and closed_sessions
(session/store.py:52-62). docs/configuration.md describes
session_state_path as making the ratchet "hold per session across
instances and survive a restart". Wiring the store (#653, #661) is
necessary for that but not sufficient while the identity is regenerated on
every open, since a restarted or peer instance looks up a row key it can
never produce again.
Worth noting for whoever picks this up: SessionState is a dataclass that
already accepts session_id=, so the gap is at the manager entry point
rather than in the data model.
This predates #661 and is not introduced by it.
- Dominant language
- Python
- Stars
- 33
- Forks
- 24
- Avg merge
- 19h 50m
- Merged PRs (30d)
- 75
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from agentrust-io/cmcp
-
Follow-ups from #779: seal after bundle verification, owner-auth wording, config-digest changelogPossibly taken @rajnisht7 claimed this 1 day ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 57/100
agentrust-io/cmcp#782 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
3 of 6 InspectionResult values are declared but unreachablePossibly taken @dinakarjs claimed this 4 days ago. Open
Difficulty 3/5 Half a day Newbie friendliness 35/100
agentrust-io/cmcp#764 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
agentrust-io/cmcp#736 · 6 comments ·
Maintainers usually reply within 1 day
-
Define explicit authorization for releasing confidential data and derived outputsPossibly taken @rajnisht7 claimed this 1 day ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
agentrust-io/cmcp#660 · 7 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Bind MCP Tasks and authenticated callbacks into cMCP evidencePossibly taken @rajnisht7 claimed this 1 day ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
agentrust-io/cmcp#567 · 19 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in agentrust-io/cmcp
Similar issues
-
comp/tools P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#142908 · 1 comment ·
-
[oblt-aw][autodoc] Fix malformed headings in new Buildkite docs pagesPossibly taken @github-actions claimed this today. Opendocumentation
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
[Bug]: fileUploadMatrix.test.ts URL case does a real DNS lookup and fails offlinePossibly taken @r2jaff claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ComposioHQ/composio#5054 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
pytorch/tensordict#3286 ·
Maintainers usually reply within 1 day