Skip to content

docs: Align documentation with create_version() deploy pattern#1

Merged
ericchansen merged 2 commits into
mainfrom
fix/doc-inconsistencies
Mar 24, 2026
Merged

docs: Align documentation with create_version() deploy pattern#1
ericchansen merged 2 commits into
mainfrom
fix/doc-inconsistencies

Conversation

@ericchansen
Copy link
Copy Markdown
Owner

@ericchansen ericchansen commented Mar 24, 2026

Summary

Three documentation files described a "delete + recreate" agent deployment pattern, but the code actually uses agents.create_version() which creates the agent if new or adds a versioned snapshot if it already exists. This PR aligns the docs with the actual implementation.

Changes

File Change
docs/how-it-works.md Updated steps 6-7 to describe create_version() instead of delete+recreate
docs-site/architecture.md Decision 2: renamed to "Versioned Agents" with accurate rationale
docs-site/concepts/mental-model.md Rewrote "Why Versioned Agents?" section with correct trade-offs

Verification

  • All 31 unit tests pass
  • Linter clean (ruff check .)
  • Confirmed deploy_agent.py uses agents.create_version() (line 141)
  • Live-tested against dev environment: agent deployed as version 7, queried successfully

Three docs referenced a delete+recreate deployment pattern, but
deploy_agent.py actually uses agents.create_version() which creates
the agent if new or adds a versioned snapshot if it already exists.
Updated docs/how-it-works.md, docs-site/architecture.md, and
docs-site/concepts/mental-model.md to reflect the actual behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 24, 2026 20:10
@ericchansen ericchansen changed the title test docs: Align documentation with create_version() deploy pattern Mar 24, 2026
Address code review feedback: several docs and the source docstring
still referenced agents.create() or 'recreate fresh' language after
the initial fix. Updated faq.md, index.md, agent-definition.md,
mental-model.md, and agent_definition.py to consistently use
create_version() terminology throughout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ericchansen ericchansen merged commit 2a7205e into main Mar 24, 2026
1 check passed
@ericchansen ericchansen deleted the fix/doc-inconsistencies branch March 24, 2026 21:05
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.

1 participant