命令定义、权限与测试
开放平台 · 自动化 · /robot/command/:id
REGISTRY POLICY
设计契约检查全部通过,不等于产品证据通过
stable-idf4-targetnine-stateinteractioncontractsguardsevidence-planNINE-STATE FIXTURE MAP
九个状态都有产品语义,但 fixture 文件尚待实现
状态名称来自该 Screen Contract;K16 canonical key 用于跨仓聚合。产品仓必须提交确定性数据,而不是让 CI 依赖线上随机状态。
READY命令目录就绪
FIXTURE MISSINGLOADING命令定义加载
FIXTURE MISSINGEMPTY尚无命令
FIXTURE MISSINGPARTIAL_ERROR测试控制台部分失败
FIXTURE MISSINGERROR命令草稿保存失败
FIXTURE MISSINGOFFLINE_STALE离线只读定义
FIXTURE MISSINGFORBIDDEN缺少 bot.command:manage
FIXTURE MISSINGDESTRUCTIVE_CONFIRM命令发布确认
FIXTURE MISSINGSUCCESS_RECEIPT命令 revision 已发布
FIXTURE MISSINGG1–G8 EVIDENCE
缺一项就保持阻断
路径是跨仓约定,不表示文件已经存在。上传凭证、token、PII、signed URL 与原始敏感 payload 永远不能成为证据内容。
Task packet
scope、owner paths、依赖、non-goals 与 rollback
ui-ci/target-open-bot-commands/task-packet.yamlScreen contract
稳定 Screen ID、route、regions、actions、states、contracts 与 risks
/api/ui-ci/target-open-bot-commandsStatic report
format、lint、typecheck、schema 与 secret scan
ui-ci/target-open-bot-commands/static/report.jsonState fixture pack
九态确定性 fixture、long/large/locale 与错误注入
ui-ci/target-open-bot-commands/fixtures/manifest.jsonConsumer contract
producer schema、consumer fixtures、compatibility 与 migration window
ui-ci/target-open-bot-commands/contracts/results.jsonExperience bundle
visual、a11y、interaction、responsive 与 native device matrix
ui-ci/target-open-bot-commands/experience/manifest.jsonSecurity negative
authz、resource binding、abuse、privacy、redaction 与 artifact integrity
ui-ci/target-open-bot-commands/security/results.jsonRelease manifest
exact commit、artifact digest、SBOM、config、migration 与 rollback drill
ui-ci/target-open-bot-commands/release/manifest.jsonProduction proof
external synthetic、telemetry、error budget、owner ack 与 incident link
ui-ci/target-open-bot-commands/production/evidence.jsonCONTRACTS & ACTIONS
实现输入
- BotCommandDefinition
- CommandArgumentSchema
- CommandContextPolicy
- CommandPermission
- CommandInvocation
- CommandAck
- CommandRevision
- AuditReceipt
- 创建命令
- 编辑参数 schema
- 设置调用上下文
- 模拟权限决定
- 运行 Sandbox 测试
- 保存草稿
- 请求发布