Skip to content

docs: clarify agent definitions, instances, sessions, and runs - #2347

Closed
ChrisJBurns wants to merge 2 commits into
docs/agent-authorityfrom
ChrisJBurns/identity-broker-isolation-design
Closed

ChrisJBurns wants to merge 2 commits into
docs/agent-authorityfrom
ChrisJBurns/identity-broker-isolation-design

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Documentation

Test plan

  • git diff --check
  • Reference generation, TypeScript SDK API checks, instruction-file hygiene, and the executable operations-example check completed through task docs.
  • task docs overall: fails on eight inherited broken references to the parent's missing docs/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

File Change
docs/drafts/agent-identity/agent-definitions.md Add the conceptual diagram and lifecycle explanation beside the vocabulary.

User-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.

@ChrisJBurns ChrisJBurns changed the title docs: illustrate agent identity relationships and lifetimes docs: clarify agent definitions, instances, sessions, and runs Oct 14, 2026
@ChrisJBurns
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]>
@jhrozek

jhrozek commented Oct 15, 2026

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants