bailian-managed-agent
Bailian managed agent IaC (bl managed-agent)
CRITICAL — Before executing, MUST read the shared protocol in ../bailian-protocol/SKILL.md: High-risk operation confirmation, Version & updates (pre-flight checklist), and CLI errors: report an issue. Command details are authoritative in reference/managed-agent.md and bl managed-agent --help — do not guess flags. If that protocol file is missing, stop and run bl skill init; do not guess auth/consent.
Safety guardrail (the most important rule)
apply / destroy and single-resource create --yes mutate persistent remote resources:
- For
agents.yamlresource changes, always runbl managed-agent planfirst and show the diff to the user. - A single-resource create command previews its scoped plan when
--yesis absent; show that preview before retrying it with--yes. - Only after explicit user confirmation, retry
apply/destroy/ single-resource create with--yes. - Never add
--yeson your own initiative before the user has confirmed.
API-oriented commands do not replace IaC. Agent / Environment / Skill / Vault / Deployment 的 create 命令仍通过
agents.yaml → scoped plan → scoped apply 管理;查询命令和 Session、Event、File、Deployment 运行时动作直接调用 API。
session archive|delete、file delete、deployment run|pause|unpause 也需要先 --dry-run,确认后才传 --yes。