Skip to content
Merged
Changes from all commits
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
4 changes: 4 additions & 0 deletions agent_docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ Note: Background tasks do **not** run in Vercel preview deployments (see
- **Relationships**: Use ObjectId references with proper population
- **Indexing**: Strategic indexes for query performance
- **Migrations**: Versioned migrations for schema changes (see `packages/api/migrations/`)
- **No read-after-write**: Some deployments send reads
to replicas, which can lag the primary. Don't re-query a document you just
wrote; respond from what the write returned (`Model.create(...)`,
`findOneAndUpdate(..., { new: true })`).

## Security Requirements

Expand Down
Loading