Skip to content

M5-07: Production deployment, health check and release runbook #56

Description

@pillowtalk-Qy
Type: Deployment/Operations
Priority: P0
Initial status: Blocked for final acceptance; preview work可从 M2-11 提前
Owner: Ops/App
Depends on: deployable M2-11; final PASS requires M5-05 clear, M5-06 no hard fail
Blocks: Gate C/public submission
Writable: deployment config, health hardening, docs/release-runbook.md,
          secret-free env example

唯一目标

让支持 Node server/Moss SDK 的 production build 在线上和本地可重复启动、检查、回滚。

实施顺序

  1. M2-11 后尽早建立 preview/production start,避免 8 月 4 日首次部署。
  2. M5 阶段再做 secret、health、cold start、rollback 和 final public smoke。
  3. 公共服务失败时保留本地 production fallback。

验收

[ ] production build/start
[ ] public /api/health
[ ] health 无 secret/full RPC URL
[ ] env vars and missing-env failure documented
[ ] platform supports Node server runtime
[ ] live/fixture modes 符合合同
[ ] restart/cold-start smoke
[ ] public URL no login
[ ] rollback target/command
[ ] local production fallback

验证

pnpm build
pnpm start
curl -fsS http://127.0.0.1:3000/api/health | jq
BASE_URL=http://127.0.0.1:3000 pnpm test:e2e:smoke
BASE_URL=https://<public-demo> pnpm test:e2e:smoke

Codex 指令

基于已选平台配置 production deploy/health/runbook。不得记录 secret,
不得让 health 暴露完整 RPC;验证 cold start、public smoke 和 rollback。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:architectureArchitecture and module boundariesarea:docsDocumentation and evidence-boundary workpriority:P0Critical prioritytype:featureNew product functionality

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions