Repository navigation
docs: clarify agent definitions, instances, sessions, and runs - #2347
Closed
ChrisJBurns wants to merge 2 commits into
Closed
ChrisJBurns wants to merge 2 commits into
ChrisJBurns wants to merge 2 commits into
Conversation
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
ChrisJBurns
marked this pull request as ready for review
October 14, 2026 21:14
jhrozek
pushed a commit
that referenced
this pull request
Oct 15, 2026
Add a Relationships and lifetimes section to agent-definitions.md with a diagram, a lifecycle table, and an explanation of creation ancestry versus execution delegation. Folded from #2347 (squashed from 5f3d3a8 and da695f7). Co-Authored-By: Codex <[email protected]>
Contributor
|
Folded into #2121 as c872f08, with your authorship kept. The follow-up changes are summarized in the diagram thread. Feel free to close this one, or tell me if you'd rather I do it. |
jhrozek
pushed a commit
that referenced
this pull request
Oct 19, 2026
Add a Relationships and lifetimes section to agent-definitions.md with a diagram, a lifecycle table, and an explanation of creation ancestry versus execution delegation. Folded from #2347 (squashed from 5f3d3a8 and da695f7). Co-Authored-By: Codex <[email protected]>
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.
Summary
The identity design defines AgentDef, agent instance, Session, and Run in prose, but their relationships and lifetimes are difficult to see at a glance. Add a Relationships and lifetimes section directly after the vocabulary and incarnation explanation in
agent-definitions.md.The section contains a Mermaid diagram, a lifecycle table, and an explanation of creation ancestry versus execution delegation. It identifies Session as each instance's persisted context, including separate child sessions, and leaves registration APIs and storage representation open.
Issue relationship
Stacked on #2121, with base branch
docs/agent-authority.Relates to the relationship-diagram review comment.
Type of change
Test plan
git diff --checktask docs.task docsoverall: fails on eight inherited broken references to the parent's missingdocs/drafts/agent-identity/credential-flow-rework.md. Confirmed all eight references exist on the parent branch. The scan reports no broken anchors, orphans, or unreachable pages.Runtime lint, race, and demo gates were not run for this documentation-only draft.
Changes
docs/drafts/agent-identity/agent-definitions.mdUser-facing change
None. This adds explanation to the proposed architecture.
Special notes for reviewers
Please confirm the distinction between per-instance persisted Sessions and the wider root session association. The section follows the domain model's separate persisted child sessions.