---
title: "Best practices"
description: "Mỗi tool một nhiệm vụ, schema chặt, timeout hữu hạn, failure mode an toàn."
url: "https://sotaagents.ai/vi/manual/developer-guide/best-practices"
generated_by: "sotaagents-ldp"
docs_index: "https://sotaagents.ai/manual/llms.txt"
locale: "vi"
---

# Best practices

### Capability nhỏ và rõ

Mỗi tool một nhiệm vụ, schema chặt, timeout hữu hạn, failure mode an toàn.

### Tin platform context

Verify signed Sota request; không lấy workspace/actor/app/environment từ input tùy ý.

### UI portable

Dùng generated contracts và platform loaders; không tự ghép asset URL, token, navigation hay fallback.

### Quan sát exact version

Log artifact/version, environment, request ID, tool name; không log secret.

### Tách environment

Dùng credentials/data store riêng khi cần isolation. Staging vẫn dùng credit/audit context thật.

### Release forward

Không mutate version đã deploy; tăng version, validate, test exact Staging artifact rồi release.
