Skip to content

Add Narrative-First V0 to V1 Migration Guide (Alternative to #362)#363

Draft
jpshackelford wants to merge 2 commits intomainfrom
narrative-migration-guide
Draft

Add Narrative-First V0 to V1 Migration Guide (Alternative to #362)#363
jpshackelford wants to merge 2 commits intomainfrom
narrative-migration-guide

Conversation

@jpshackelford
Copy link
Contributor

Summary

This PR provides an alternative approach to the migration guide in #362. The key difference is the narrative-first structure that leads with a step-by-step walkthrough rather than reference tables.

Comparison with PR #362

Aspect PR #362 This PR
Lead section Endpoint mapping tables Step-by-step migration walkthrough
Examples Isolated operations Build on each other in a workflow
Agent Server Explained abstractly Shown in context (Step 5) with full curl example
Reference tables Primary content Secondary, for lookup
Flow Reader assembles pieces Guide walks through complete journey

Structure

1. Overview (brief - architecture change + benefits accordion)

2. Migration Walkthrough (THE NARRATIVE)
   Step 1: Create and Start a Conversation
   Step 2: Track Conversation Startup  
   Step 3: Work with Events and Messages
   Step 4: Manage Sandbox Lifecycle
   Step 5: Access the Agent Server
   Step 6: Handle Files and Workspace

3. Quick Reference: Endpoint Mapping (tables for lookup)

4. Agent Server API Reference

5. Known Gaps and Workarounds

6. Authentication Summary

7. Additional Resources

Key Improvements

  1. Actionable from the start - Users can follow along and migrate step-by-step
  2. Context for each change - "Here's what you did in V0, here's why V1 is different"
  3. Complete examples - Each step builds on previous, showing real workflow
  4. Agent Server fully demonstrated - Step 5 shows getting sandbox → extracting session key → making calls
  5. Reference stays available - Endpoint tables at end for quick lookup

Rationale

Based on feedback that a narrative migration flow is important for users. This approach addresses @enyst's "Typical Migration Flow" suggestion from #12578:

  1. Create/Start conversation
  2. Track startup (poll or stream)
  3. Events/messages operations
  4. Sandbox ops
  5. Agent-server operations

Related

This alternative approach restructures the migration guide to lead with
a step-by-step narrative walkthrough, with reference tables moved to
the end for lookup purposes.

Structure:
1. Overview (brief architecture change + benefits accordion)
2. Migration Walkthrough (6 steps with V0→V1 examples)
   - Step 1: Create and Start a Conversation
   - Step 2: Track Conversation Startup
   - Step 3: Work with Events and Messages
   - Step 4: Manage Sandbox Lifecycle
   - Step 5: Access the Agent Server
   - Step 6: Handle Files and Workspace
3. Quick Reference: Endpoint Mapping (tables)
4. Agent Server API Reference
5. Known Gaps and Workarounds
6. Authentication Summary
7. Additional Resources

Based on feedback from OpenHands/OpenHands#12578.

Co-authored-by: openhands <openhands@all-hands.dev>
- Add link to App Server OpenAPI spec (openapi.json) in Additional Resources
- Add new section explaining how to access Agent Server Swagger docs and OpenAPI spec
- Includes step-by-step instructions for getting Agent Server URL from sandbox

Co-authored-by: openhands <openhands@all-hands.dev>
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.

V0 to V1 Migration Guide

2 participants