AMR 生产发布影响报告

生成时间:2026-09-22T11:34:48.636816+00:00;分析对象:从 origin/main(HEAD 224664e2c)发布 Web、API、Link、Admin、DB migration 与 Model Routing Catalog 的影响分析。注意:四个服务以 EKS Pod 实际运行镜像为生产发布点,DB migration 与 Catalog 以对应 workflow 最近成功运行的 commit_sha 为生产发布点;六个维度分别计算变更范围。

当前生产发布点(EKS 实态 + workflow 记录)

Web、API、Link、Admin 的发布点来自 Grafana / Prometheus 观察到的 Ready EKS Pod 镜像;DB migration 与 Catalog 的发布点来自对应 workflow 最近一次成功运行。越新的发布点意味着该维度已上线越多内容,feature 表里只列出发布点之后的变更;发布点之前的 commit 属已生效,归入「已在生产生效」一节。目标 commit 均为 224664e2c(fix(ci): validate Public Pricing with the shared schema (#65))。

Web · EKS Pod 实态
Workload:nexu/amr-web · container web · 镜像仓库 amr-web
观察时间:2026-09-22T11:34:48.636816+00:00
Ready Pods:2 / spec 2(updated 2,available 2,replicas 2)
Pod:amr-web-5ffd46c587-gv6kr、amr-web-5ffd46c587-fbks9
实际 commit:4676d97e1
镜像 digest:sha256:379d86f96df5444ca256058b6cb702b67a6376e3fc97b485fc8f603337802079
Workflow 审计:deploy-web-eks-prod.yml 最近成功 run #947(4676d97e1,2026-09-22T02:35:49Z);与 Pod 一致
本次新增(4676d97e1...224664e2c):范围 23 commits,其中命中 Web 目录 2 commits
发布点之前已上线:34/40/42/43(定价文案与 IT/TR 本地化)已上线
API · EKS Pod 实态
Workload:nexu/amr-api · container api · 镜像仓库 amr-api
观察时间:2026-09-22T11:34:48.636816+00:00
Ready Pods:2 / spec 2(updated 2,available 2,replicas 2)
Pod:amr-api-6546769f97-wdlb5、amr-api-6546769f97-g4sv4
实际 commit:feb5eb7fa
镜像 digest:sha256:ce9939f10b5da205dfc354e7d41fb63462eb46d097238edf40c590f10fca7740
Workflow 审计:deploy-api-eks-prod.yml 最近成功 run #385(feb5eb7fa,2026-09-21T02:29:38Z);与 Pod 一致
本次新增(feb5eb7fa...224664e2c):范围 34 commits,其中命中 API 目录 13 commits
发布点之前已上线:该范围内无 services/api 已上线代码变更
Link · EKS Pod 实态
Workload:nexu/amr-link · container link · 镜像仓库 amr-link
观察时间:2026-09-22T11:34:48.636816+00:00
Ready Pods:2 / spec 2(updated 2,available 2,replicas 2)
Pod:amr-link-77686d8974-2lqbm、amr-link-77686d8974-7jq7r
实际 commit:4676d97e1
镜像 digest:sha256:d6d339a87fb3299004f80e96ab827e2b5af643a31dfa2210bdb3e5134a64af80
Workflow 审计:deploy-link-eks-prod.yml 最近成功 run #948(4676d97e1,2026-09-22T02:36:11Z);与 Pod 一致
本次新增(4676d97e1...224664e2c):范围 23 commits,其中命中 Link 目录 1 commits
发布点之前已上线:53 的 bifrost-core Grok 推理补丁已上线
Admin · EKS Pod 实态
Workload:nexu/amr-admin · container admin · 镜像仓库 amr-admin
观察时间:2026-09-22T11:34:48.636816+00:00
Ready Pods:2 / spec 2(updated 2,available 2,replicas 2)
Pod:amr-admin-6dcff9c56b-k8s6s、amr-admin-6dcff9c56b-7qgpp
实际 commit:0a1243060
镜像 digest:sha256:0139558eec90ff7b2aee7109d5d3cee83a6b317ea0e8ae0ffb8a9a714492dae8
Workflow 审计:deploy-admin-eks-prod.yml 最近成功 run #1324(0a1243060,2026-09-22T06:38:24Z);与 Pod 一致
本次新增(0a1243060...224664e2c):范围 10 commits,其中命中 Admin 目录 2 commits
发布点之前已上线:47/49/50(UI 抽屉与筛选)、56(回退上述 UI)、57(额度美元化)已上线
deploy-db-migrations-prod.yml · workflow 记录
DB migration 发布点(db/migrations + db/schema)
最近成功:run #352(created 2026-09-20T08:13:07Z,stopped 2026-09-20T08:23:21Z)
发布点 commit:ff912897d
本次新增(ff912897d...224664e2c):范围 38 commits,其中命中 db/migrations 目录 1 commits
发布点之前已上线:基线 ff912897d(run #352,2026-09-20 08:23Z)已包含此前全部 migration
deploy-model-routing-catalog-prod.yml · workflow 记录
Model Routing Catalog 发布点(data/json + db/seeds)
最近成功:run #976(created 2026-09-22T03:18:47Z,stopped 2026-09-22T03:31:21Z)
发布点 commit:5149e3f66
本次新增(5149e3f66...224664e2c):范围 22 commits,其中命中 catalog 目录 3 commits
发布点之前已上线:39(Hy4/Kimi K3 路由)、53(Grok 4.7)、55(MiMo V2.6)已上线

此次发布真正新增的 feature 和影响面

feature 表只包含「各维度生产发布点之后」的变更:四个服务以 EKS Pod 实态为基线,DB migration 与 Catalog 以 workflow 记录为基线。发布点之前已生效的内容见「已在生产生效」一节,未重复列入。排序按影响面由大到小。

Feature 聚合规则:以业务行为、用户路径、数据契约和部署依赖为准;PR、commit、path 仅作为可点击的追溯证据。

Feature / Author / Commits Web API Link Admin DB schema / migration DB catalog(seed)
XXLCoding Plan:恢复 Go 档位、Personal/Team 产品隔离与客户端计费预检(PR #54)

面向付费 Personal 订阅与 Team 席位用户:恢复 Go 档位的 Coding Plan 覆盖(模型集合、贡献倍率、额度策略),并把 Personal 与 Team 的模型条目、额度策略与产品开关完全隔离(Team 默认关闭、走普通钱包);新增 API 计费预检接口 GET /api/v1/workspaces/{workspaceId}/billing/preflight 与 vela billing preflight,让 Open Design / CLI 在发请求前看到钱包与 Coding Plan 资金来源;Link 侧新增 Billing Classification 与准入流水线(配置故障返回 503 coding_plan_configuration_unavailable,不再静默扣钱包);Web 新增 Coding Plan 用量卡片、Go 购买入口并重写 API Keys 页面;Admin 新增 Personal/Team 受众切换与 Go 倍率/额度配置。分类:跨服务大功能 + DB 契约变更。

Author:mrcfps

  • 16448b777 feat(billing): restore Go plans and add Coding Plan funding preflight (#54)

#54 143 files / +7061 / -1747

Go 购买与定价入口(public-pricing-offers.ts、landing-individual-cards.tsx、pricing-plans.tsx)、新增 Coding Plan 用量卡片(coding-plan-usage-card.tsx)、导航项、i18n、routes/api-keys.tsx 重写(个人控制台 API Keys 与工作区角色解耦)、workspace-selector.ts、mvp-store.ts;净 +1769/-1110,37 files。新增 preflight 路由与 coding-plan-usage(src/billing/http/routes.ts、preflight.ts、coding-plan-usage.ts、infra/postgres.ts、persistence/api-keys.ts、persistence/users.ts、openapi.json)。经济分类与准入:internal/economics/classifier.go、handlers/admission_pipeline.go、modellimit/model_limit.go、membership/client.go、repositories/postgres.go、分类失败指标;18 files。Coding Plan 控制台(features/coding-plan/* 受众上下文、模型条目、贡献倍率、额度策略抽屉)、coding-plan-actions.ts、审计动作目录与资源标签、patrol;42 files。新增 2 个 migration:16448b777 20260921132204_restore_go_coding_plan.sql(恢复 Go:coding_plan_model_entries 增加 contribution_multiplier_go/included_in_go,放宽 pool/usage 证据约束为 go/plus/pro/max)、20260922054546_coding_plan_product_isolation.sql(新表 public.coding_plan_products,coding_plan_model_entries/model_limit_policies 增加 coding_plan_audience 并把唯一键改为 (public_model_id, audience));db/schema/*.hcl、atlas.sum。无 catalog 变更。
LDeepSeek V4.1 Flash 上线:多 provider 路由与定价(PR #61)

面向所有调用 DeepSeek V4.1 Flash 的用户:新增该模型的 provider 路由与定价,覆盖 Aiping、Aliyun、Novita、OpenRouter 四条上游,并同步 route policy、release gate 与 public pricing。属 catalog 数据契约变更,由 catalog workflow apply 到生产库。

Author:Liu Yi

  • 55b1b6e7b feat(catalog): add DeepSeek V4.1 Flash provider routing (#61)

#61

无。无。无。无。无 schema/migration。models.json、provider_routes.json、route_policies.json、public_pricing.json、provider_pricing/provider_{aiping,aliyun,novita,openrouter}.json、model_routing_catalog_release_gates.json、db/seeds/seed-model-routing-catalog.sql、两个 catalog 生成器测试。
MCMS 事件凭证:展示授权窗口与撤销生命周期修复(OPEND-3364/3365/3372/3375)

面向 CMS 触达位(touchpoint/placement)运营:把事件凭证校验绑定到 placement 的实际投放窗口、把展示授权延长到 endsAt 并从凭证中拆分出来、让撤销回执脱离凭证窗口,并在 placement 下架时回收已持有的 runtime decision。修复的是授权/撤销语义与越权窗口,属 API 侧行为修复(Link 与其它维度不受影响)。

Author:a1chzt、lefarcen

  • ffe7d46fe fix(cms): bind event credential checks to the deployment window (OPEND-3364)
  • 74ad7dc69 feat(cms): grant display authority to endsAt and split out the credential (OPEND-3365)
  • 9f1f16ae8 fix(cms): free the revocation receipt from the decision credential window (OPEND-3372)
  • a67e31426 fix(cms): withdraw a held decision when its deployment is unpublished (OPEND-3375)
  • c8d1cf662 docs(cms): correct the documented rollback surface for the display grant
无。src/touchpoints/persistence.ts、src/touchpoints/routes.ts(含下架回收路径)及相关单测/E2E。无。无。无 schema/migration。无 catalog 变更。
MCMS 共享 artifact 与 runtime decision 性能优化(OPEND-3367/3368/3369/3370)

面向 CMS 触达位的运行时吞吐与延迟:只读取被选中 placement 的 artifact、用带字节上限的 LRU 缓存共享 artifact 读、用续期(按主键)替代重新签发 decision、并在调用方已持有内容时返回精简 decision。行为对调用方保持兼容,属 API 侧性能与协议精简。

Author:a1chzt

  • 142297692 perf(cms): read only the selected placement's artifacts (OPEND-3367)
  • 7349eda51 perf(cms): cache shared artifact reads behind a byte-capped LRU (OPEND-3368)
  • 3e5e8644b perf(cms): renew the runtime decision instead of reissuing it (OPEND-3369)
  • 4ddbe454c feat(cms): return a slim decision when the caller already holds the content (OPEND-3370)
  • dae422187 perf(cms): renew the decision by primary key when the caller names it (OPEND-3369)
  • b143ee8a8 test(cms): cover the runtime lifecycle changes against real PostgreSQL
无。src/touchpoints/shared-artifact-store.ts(LRU 与字节上限)、src/touchpoints/persistence.ts(续期/精简 decision)、src/touchpoints/routes.ts,以及真实 PostgreSQL E2E 覆盖。无。无。无 schema/migration。无 catalog 变更。
MCatalog 收敛:归档条目退役与 AIHubMix 下线(PR #48 / #59)

面向终端用户与运营:退役已归档的模型条目、从定价与测试激活清单中移除,并把 AIHubMix provider 整体下架。用户可见后果是部分模型/供应商从可选列表与公开定价中消失,属 catalog 数据收敛,由 catalog workflow apply。

Author:Liu Yi

  • de82fb549 chore(models): retire archived catalog entries (#48)
  • 5778f53d9 chore(catalog): take AIHubMix offline (#59)

#48、#59

无。无。无。无。无 schema/migration。models.json、public_pricing.json、providers.json、model_routing_catalog_test_activation.json、db/seeds/seed-model-routing-catalog.sql、seed-model-routing-catalog-test-activation.sql、catalog 生成器与本地 seed 脚本(db/seeds/local/* 仅本地/测试)。
SPublic Pricing 校验接入共享 schema(PR #65)

把 Public Pricing 的校验脚本改为使用共享 schema,并在 Forgejo/GitHub 的 test 与 prod workflow 中执行;prod 侧 deploy-public-pricing-prod.yml 的校验门槛随之变化。运行时行为不变,属 API 工程脚本 + 发布门槛。

Author:Liu Yi

  • 224664e2c fix(ci): validate Public Pricing with the shared schema (#65)

#65

无。services/api/scripts/verify-public-pricing.ts(新增校验脚本)、services/api/package.json、services/api/test/public-pricing.test.ts;同时修改 deploy-public-pricing-prod.yml 等 workflow。无。无。无 schema/migration。无 catalog 数据变更(仅校验)。
SAdmin 公共模型编辑抽屉审计条目去重(PR #63)

面向 Admin 运营:编辑公共模型抽屉改为逐字段比对,只调用真正发生变化的 Server Action,避免单字段编辑产生多余审计条目(例如只改 Capability 时不再连带写 Context Budget 审计)。属 Admin 单点修复。

Author:Liu Yi

  • 6d963188e fix(admin): avoid duplicate model audit entries (#63)

#63

无。无。无。apps/admin/app/[locale]/(protected)/models/list/edit-public-model-drawer.tsx 与相应用例。无 schema/migration。无 catalog 变更。
SWeb 陈旧仓库引用清理(PR #60)

把 Web 侧指向旧 GitHub 仓库/issue 的注释改为自洽说明,并同步 sandbox、docs、specs 与工具测试夹具到当前仓库身份。含 apps/web 文件改动但仅限注释,无运行时行为变化。

Author:Liu Yi

  • d89dd437c chore: remove stale GitHub repository references (#60)

#60

apps/web/src/lib/workspace-dashboard-client.ts(注释自洽,无行为变化)。无。无。无。无 schema/migration。无 catalog 变更。
SForgejo deploy event 链接修正(PR #64)

修正所有 Forgejo deploy workflow 中的事件链接生成并让 workflow 校验脚本覆盖它。属 发布流水线变更,不进入任何运行时维度,但会改变 deploy 事件上报 URL。

Author:Liu Yi

  • 0af937588 fix(ci): correct Forgejo deploy event links (#64)

#64

无。无 runtime 变更。无 runtime 变更。无。不影响 migration 文件;但 deploy-db-migrations-prod.yml 的事件上报链接随之修正。不影响 seed 内容;但 deploy-model-routing-catalog-prod.yml 的事件上报链接随之修正。

已在生产生效(发布点之前,本次不重复发布)

以下内容均在对应生产发布点之前,已在生产运行。若从 main 重新发布,只分析各自基线之后的净新增。注意各维度基线不同:Web/Link 为 4676d97e1,Admin 为 0a1243060,API 为 feb5eb7fa,Catalog 为 5149e3f66,DB 为 ff912897d。

发布建议

  1. Migration 判断:需要先跑 migration。BASE_DB(ff912897d)之后新增两个 migration,均由 PR #54 引入,必须先运行 deploy-db-migrations-prod.yml:
    • db/migrations/20260921132204_restore_go_coding_plan.sql —— link.model_limit_admissions / link.model_limit_windows / public.usage_events / public.credit_usages / public.membership_model_groups 的约束调整,public.coding_plan_model_entries 增加 Go 相关列。
    • db/migrations/20260922054546_coding_plan_product_isolation.sql —— 新表 public.coding_plan_products,coding_plan_model_entries 与 model_limit_policies 增加 coding_plan_audience,模型条目唯一键改为 (public_model_id, audience)。
    注意:migration 不会自动授予应用角色权限。需用各服务真实数据库登录核对:API/Link 对 public.coding_plan_products 有 SELECT、Admin 有 SELECT/INSERT/UPDATE(规范要求不得假设新表继承授权)。范围内没有被回退的 migration。
  2. 服务发布顺序(严格按 Coding Plan rollout 规范):
    1. DB migration(ff912897d...224664e2c,命中 1 commit)—— 先执行。
    2. Admin(0a1243060...224664e2c,命中 2 commits:PR #54、#63)—— 发布后配置各策略的 Go/Plus/Pro/Max 显式额度与 Go 模型集合、贡献倍率。
    3. Link + API(Link 4676d97e1...224664e2c 1 commit;API feb5eb7fa...224664e2c 13 commits)—— 通过 coding-plan-go-v1 / coding-plan-team-v1 协商;新旧混部期间 Go/Team 覆盖不可用,此期间不要对外宣称已支持,待全部副本升级且 membership policy 缓存过期后再确认。
    4. Catalog(5149e3f66...224664e2c,命中 3 commits:PR #48/#59/#61)—— 独立 workflow,可在 DB 之后任意时点执行。
    5. Web(4676d97e1...224664e2c,命中 2 commits:PR #54、#60)—— 最后发布打开 Go 购买入口的构建;CLI 侧新 preflight 能力需 API 先上线后再分发(规范:Deploy API before distributing the new CLI)。
    回滚原则:先撤下新的 Go 销售,再回滚服务;回滚 API 或 Link 任一都会让 Go 退回 pre-rollout 的钱包行为。
  3. 数据 seed / catalog 判断:catalog 变更由 deploy-model-routing-catalog-prod.yml 的 apply 步骤覆盖(data/json + db/seeds/seed-model-routing-catalog.sql),本次 seed 改动较大(含 seed-model-routing-catalog.sql 全量重写),无需额外 runbook,但建议 apply 后核对 models.json 与 public_pricing.json 的一致性。DB migration 与 catalog 是两个独立 workflow,注意不要互相替代。
  4. 发布后观测:
    • DB:select current_user, has_schema_privilege(current_user,'public','USAGE'), has_table_privilege(current_user,'public.coding_plan_products','SELECT') 必须为 true(Admin 另需 INSERT/UPDATE);select count(*) from public.api_keys where key_prefix = 'sk' 应为 0。
    • Link:gateway_coding_plan_classification_failures_total{cause="query_error"}、准入 503 coding_plan_configuration_unavailable、配额耗尽后的同 scope 钱包回退、Go/Team 池互不借用。
    • API:GET /api/v1/workspaces/{id}/billing/preflight 与 vela billing preflight 在 Personal/Team、覆盖/耗尽/无额度三种情形下的返回;coding plan usage 路由。
    • Web:Public Pricing(Go 入口)、Coding Plan 用量卡片、API Keys 页面(设备凭证不出现)、团队面板。
    • Admin:Coding Plan Personal/Team tab 切换、公共模型编辑抽屉的审计条目数量、patrol 页面。

备注:四个服务的 compare range 基于 EKS Pod 观察到的 BASE 计算,DB migration 与 Catalog 基于各自 workflow 最近成功运行的 commit_sha 计算;两者不同,不可统一使用最旧基线。GitOps(powerformer/apps)values 本轮无法用当前只读凭据读取,未作为对照证据;四个服务的 Forgejo workflow 最近成功记录与 Pod 实态完全一致(见上方卡片)。

证据与观察方法