Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ ops inventory).

### Vercel Workflows (backend-agents)

- **Architecture — the Workflow run owns the turn.** A durable turn is owned by
the Workflow run started at `POST /api/turns`, independent of any attached
viewport: it survives tab close / refresh / logout. A viewport **attaches** to
a live run (hydrate from Blob + `GET /api/turns/:runId/stream`);
unmount/switch/New/Clear/logout is **detach only**, never a cancel — cancel is
the explicit `POST /api/turns/:runId/cancel`. **Tools are steps:** one
`'use step'` = one model round **or** one tool execution **or** one persist —
never a mega-step, never wrap `runAgentStream` in a single step. Inference is
server-side: production turns use `/api/turns`; `/api/agent` is the legacy
tests/JSON path.
- **Wiring ships by Git deploy:** `workflow` dependency + `withWorkflow(nextConfig)`
in `next.config.js`; `"use workflow"` fixtures/xhr live server-side
(`lib/workflows/*`, `app/api/workflows/smoke`).
Expand Down
Loading