taubyte-core-constraints
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCore Constraints
核心约束
Must-follow rules
必须遵守的规则
- Never ask user to run setup commands manually; agent performs setup.
- Run CLI preflight () before all Taubyte operations.
taubyte-cli-prereqs - For Dream/local, never run backend-contacting commands before Dream is up and universe exists.
tau - Use commands directly; never use
dream.tau dream - Use default universe unless user explicitly requests another.
default - After resource creation, push config () before relying on resource visibility.
tau push project --config-only - After code changes, push code () and verify builds/logs.
tau push project --code-only - Never set function timeout to ; use valid durations (
0,30s, etc.).1m - HTTP functions: one function per path+method; never comma-separated methods.
- For functions/websites in automation, use empty template; for Go functions, include .
--language Go - Use matcher values for DB/storage SDK calls, not resource names.
- Do not bypass failing with direct git operations.
tau push project - On Git Bash Windows for path-like flags, prefix with .
MSYS_NO_PATHCONV=1 - Website must be non-empty and must write deploy output to
.taubyte/build.sh./out - Verify project selection with before resource mutations.
tau --json current - Website/library git fallback is an exception path only when is unavailable; never apply this exception to project config/code pushes.
tau push website|library - Never create website/library without explicit repository strategy:
- use with deterministic
--generate-repository, or--repository-name - use explicit existing /
--repository-name.--repository-id
- use
- After creating website/library, verify repository binding in config (or
websites/*.yaml) before pushing.libraries/*.yaml
- 绝不要要求用户手动运行设置命令;由Agent执行设置操作。
- 在所有Taubyte操作前运行CLI预检查()。
taubyte-cli-prereqs - 对于Dream/本地环境,在Dream启动且universe存在前,绝不要运行会联系后端的命令。
tau - 直接使用命令;绝不要使用
dream。tau dream - 除非用户明确要求其他universe,否则使用默认universe 。
default - 创建资源后,在依赖资源可见性前推送配置()。
tau push project --config-only - 代码变更后,推送代码()并验证构建/日志。
tau push project --code-only - 绝不要将函数超时设置为;使用有效的时长值(如
0、30s等)。1m - HTTP函数:每个路径+方法对应一个函数;绝不要使用逗号分隔的方法。
- 自动化中的函数/网站使用空模板;对于Go函数,需包含参数。
--language Go - DB/存储SDK调用使用匹配器值,而非资源名称。
- 不要通过直接Git操作绕过失败的。
tau push project - 在Windows的Git Bash中使用路径类标志时,需添加前缀。
MSYS_NO_PATHCONV=1 - 网站的必须非空,且必须将部署输出写入
.taubyte/build.sh目录。/out - 在修改资源前,使用验证项目选择。
tau --json current - 网站/库的Git回退仅在不可用时作为异常路径;绝不要将此例外应用于项目配置/代码推送。
tau push website|library - 绝不要在未明确指定仓库策略的情况下创建网站/库:
- 使用并配合确定的
--generate-repository,或--repository-name - 使用明确的现有/
--repository-name。--repository-id
- 使用
- 创建网站/库后,在推送前验证配置中的仓库绑定(或
websites/*.yaml)。libraries/*.yaml
Layout constraints
布局约束
- Project has +
tb_config_<name>.tb_code_<name> - Website/library have separate repositories.
- Function build layout must be discoverable by build system (avoid misplaced function paths).
- 项目包含+
tb_config_<name>。tb_code_<name> - 网站/库拥有独立的仓库。
- 函数构建布局必须能被构建系统发现(避免函数路径放置错误)。