Repository navigation
docs(agent-identity): record how broker sessions follow Mecatl sessions - #2496
Merged
Merged
Conversation
- Which sessions are roots with their own broker session, which belong to a root's tree, and that a session with no owner gets none. - A fork or clear opens its own broker session; the source keeps its own. - Deleting a session closes its broker session; releasing it, a client disconnecting, or a lost lease leaves it open. - One open broker session per root host session: a repeated open returns it, another owner fails with session_owned (which the broker returns too), and another incarnation with ALREADY_EXISTS. - Another workload's session looks the same as an unknown one. - Registration reports the instance's host session and owner, and the owner must be the session's owner. Co-authored-by: Mecatl <[email protected]>
jhrozek
approved these changes
Oct 23, 2026
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the agent identity design with lasting decisions about broker sessions that were settled while building them, where the design was silent or ambiguous. Interim choices are left out.
Changes
agent-definitions.md, "Relationships and lifetimes"): main, scheduled, and debug sessions are roots, as is an older session saved without a kind. Subagent, parallel-branch, and team-member sessions belong to the tree of the session that started them. A session with no owner gets no broker session, so its gateway calls fail closed.credentials-and-lifecycle.md, "Session end"): deleting the host session closes it. Releasing the session, a client disconnecting, or a replica losing its lease leaves it open, because agents keep working after the user closes their client. The revocation list now says "deleting the session" instead of the ambiguous "closing the session".session_owned, and one with another incarnation fails withALREADY_EXISTS. The error reasons table now lists the broker, as well as AS-1, as returningsession_owned.PERMISSION_DENIEDas an unknown session ID, and a lookup by host session finds nothing.For the design author (Juan Antonio Osorio) to review.
Testing
Docs only.
matlatl check . --strictis clean on a clean checkout of this branch.API compatibility
None: design documentation only.