---
title: "Lifecycle & environment"
description: "Dữ liệu Staging không bao giờ tự sang Production. Nếu hai binding trỏ về cùng external backend thì app phải tự chịu trách nhiệm isolation."
url: "https://sotaagents.ai/vi/manual/developer-guide/lifecycle-and-environments"
generated_by: "sotaagents-ldp"
docs_index: "https://sotaagents.ai/manual/llms.txt"
locale: "vi"
---

# Lifecycle & environment

![Sơ đồ lifecycle: live session development trở thành immutable Staging artifact, sota release promote đúng artifact đó lên Production, data partition tách riêng và visibility quản lý độc lập](/manual/assets/developer/app-lifecycle.svg?v=2)
_Development là live session cá nhân — UI/backend local, một workspace, chưa có immutable artifact. `sota deploy` đóng gói Staging artifact; `sota release` promote đúng artifact đó lên Production. Data partition luôn tách riêng, visibility quản lý độc lập._

| Environment | Tạo bởi | Ai dùng được | Dữ liệu |
| --- | --- | --- | --- |
| Development | `sota dev` | Developer sở hữu live session và là thành viên workspace | Partition dev cá nhân |
| Staging | `sota deploy` | Owner/contributor khi exact environment đã cài và bật | Partition Staging riêng |
| Production | `sota release` | User được visibility và workspace enablement cho phép | Partition Production |

> [!WARNING]
> Release chuyển code, không chuyển dữ liệu nghiệp vụ.
>
> Dữ liệu Staging không bao giờ tự sang Production. Nếu hai binding trỏ về cùng external backend thì app phải tự chịu trách nhiệm isolation.

![App Registry hiển thị Staging, Production và trạng thái App Store](/manual/assets/developer/app-registry-lifecycle.webp)
_Registry hiển thị exact version của Staging/Production; App Store listing là governance state riêng của Production._
