POLICY VALIDMERGE BLOCKEDAdmin · dashboard

命令定义、权限与测试

开放平台 · 自动化 · /robot/command/:id

IMPLEMENTATION OWNER开放平台 · 自动化
QA OWNERQA Architecture
SOURCEdocs/ui-blueprint/12-k09b-open-platform-automation.md
VIEWPORTS1440×900 · 1280×800 · 390×844

REGISTRY POLICY

设计契约检查全部通过,不等于产品证据通过

Stable Screen IDstable-id
PASS
Isolated F4 TARGETf4-target
PASS
Nine-state familynine-state
PASS
Actions definedinteraction
PASS
Data contracts definedcontracts
PASS
Architecture guards definedguards
PASS
G1–G8 evidence planevidence-plan
PASS

NINE-STATE FIXTURE MAP

九个状态都有产品语义,但 fixture 文件尚待实现

状态名称来自该 Screen Contract;K16 canonical key 用于跨仓聚合。产品仓必须提交确定性数据,而不是让 CI 依赖线上随机状态。

01READY

命令目录就绪

FIXTURE MISSING
02LOADING

命令定义加载

FIXTURE MISSING
03EMPTY

尚无命令

FIXTURE MISSING
04PARTIAL_ERROR

测试控制台部分失败

FIXTURE MISSING
05ERROR

命令草稿保存失败

FIXTURE MISSING
06OFFLINE_STALE

离线只读定义

FIXTURE MISSING
07FORBIDDEN

缺少 bot.command:manage

FIXTURE MISSING
08DESTRUCTIVE_CONFIRM

命令发布确认

FIXTURE MISSING
09SUCCESS_RECEIPT

命令 revision 已发布

FIXTURE MISSING

G1–G8 EVIDENCE

缺一项就保持阻断

路径是跨仓约定,不表示文件已经存在。上传凭证、token、PII、signed URL 与原始敏感 payload 永远不能成为证据内容。

G1

Task packet

scope、owner paths、依赖、non-goals 与 rollback

ui-ci/target-open-bot-commands/task-packet.yaml
MISSING
G1

Screen contract

稳定 Screen ID、route、regions、actions、states、contracts 与 risks

/api/ui-ci/target-open-bot-commands
REGISTERED
G2

Static report

format、lint、typecheck、schema 与 secret scan

ui-ci/target-open-bot-commands/static/report.json
MISSING
G3

State fixture pack

九态确定性 fixture、long/large/locale 与错误注入

ui-ci/target-open-bot-commands/fixtures/manifest.json
MISSING
G4

Consumer contract

producer schema、consumer fixtures、compatibility 与 migration window

ui-ci/target-open-bot-commands/contracts/results.json
MISSING
G5

Experience bundle

visual、a11y、interaction、responsive 与 native device matrix

ui-ci/target-open-bot-commands/experience/manifest.json
MISSING
G6

Security negative

authz、resource binding、abuse、privacy、redaction 与 artifact integrity

ui-ci/target-open-bot-commands/security/results.json
MISSING
G7

Release manifest

exact commit、artifact digest、SBOM、config、migration 与 rollback drill

ui-ci/target-open-bot-commands/release/manifest.json
MISSING
G8

Production proof

external synthetic、telemetry、error budget、owner ack 与 incident link

ui-ci/target-open-bot-commands/production/evidence.json
MISSING

CONTRACTS & ACTIONS

实现输入

Contracts
  • BotCommandDefinition
  • CommandArgumentSchema
  • CommandContextPolicy
  • CommandPermission
  • CommandInvocation
  • CommandAck
  • CommandRevision
  • AuditReceipt
Actions
  • 创建命令
  • 编辑参数 schema
  • 设置调用上下文
  • 模拟权限决定
  • 运行 Sandbox 测试
  • 保存草稿
  • 请求发布