Skip to content

我超,恶俗啊 - #19

Merged
ClassTechStar merged 17 commits into
OpenRecite:mainfrom
ClassTechStar:main
Sep 30, 2026
Merged

ClassTechStar merged 17 commits into
OpenRecite:mainfrom
ClassTechStar:main

Conversation

@ClassTechStar

Copy link
Copy Markdown
Collaborator

No description provided.

- gateway: GATEWAY_KEY 在 NODE_ENV=production 下缺失即启动失败
- 8 个 .NET 服务: 生产环境禁止使用开发默认 Gateway:ServiceKey
- Auth/Credit: Admin:PrincipalId 生产 fail-fast,/readyz 上报 adminConfigured
- compose.production: auth/credit 强制注入 Admin__PrincipalId
- compose.integration: 显式定位联调栈(Development + Mock),文件头声明禁止直产
- start_dev: 本地栈固定 Development 环境
- gateway 测试 218 全绿;8 个后端套件 624 用例本机全绿
- secret-scan job:gitleaks-action@v2,版本钉 8.30.1
- .gitleaksignore:19 条历史指纹分诊(误报/历史残留,当前树已清洁)
- changes job(dorny/paths-filter@v3):5 个服务 job 按目录过滤触发
- Model Integration 排除维持并记录评审决策
- tmp/ 运行时渲染图出库(目录已 ignore)
- FileService: IngestionWorker 指数退避重试 + AttemptCount 落库 + 死信可查;
  启动恢复收编进 Worker;OCR 取消改限时 await(消灭 2 处 Task.Run)
- GalGameService: 入队失败退避重试 3 次;AttemptCount 落库;
  启动恢复释放 HELD 预授权(修复 credits 泄漏)
- ModelService: Nli:MaxPendingBatches 有界排队,超限 503+Retry-After;
  /readyz 上报 queuedBatches
- 测试:File 18 / GalGame 362 / Model 4 / Practice 68 全绿
- manualChunks 拆 @antv/g6;5 张背景 PNG→WebP(9.07MB→668KB);bgm 8.6→4.3MB
- api.ts 869→39 行门面 + 8 域文件;global.css 3358 行→6 文件(保序)
- ReviewPage 884→310 行(hooks + 展示组件);购买链接兜底移除
- vitest 11 用例、typecheck、build 全绿
- desktop: 打包版必须显式 GALREVIEW_GATEWAY_URL;新增签名生命周期文档
- mobile: cleartext=false、allowNavigation=[]、allowMixedContent=false
- deploy-windows.ps1: 自动生成并注入 GALREVIEW_ADMIN_PRINCIPAL_ID(兼容 T2 fail-fast)
- docs: 原生 vs compose 生产路径对照;roadmap P1 状态与 test_report §44
- CI: 新增 desktop/mobile 构建 job(路径过滤)
T9 Auth/GalGame/Recite 单体拆分(Program 579/528/682 -> 115/186/116 行);T10 八服务 JSON 结构化日志 + X-Correlation-Id 跨服务透传 + 告警最低集指标;T11 Playwright 双视口 E2E 冒烟与 CI 可选 job;T12 FileService 10 测试文件/Credit 并发防重放/OCR 契约测试。448+104+22+16 用例本地全绿。
gitleaks-action@v2 对组织仓库强制 GITLEAKS_LICENSE,改为直接安装官方 gitleaks 8.30.1 CLI(与 .gitleaksignore 指纹版本一致);Mobile job 在 cap sync 前构建 frontend(webDir=../frontend/dist),npm cache 同步纳入 frontend/package-lock.json。
AuthRepositories.cs:131 的 ResetTokenAlphabet 是密码重置令牌的字符集
(30 个无歧义大写/数字),非密钥。AuthService 拆分(d45c206)把它从
Program.cs 移到新文件,产生一条新指纹的历史命中。处理:
- 行内 gitleaks:allow 注释标记意图,防止未来再移动文件时报新指纹
- d45c206 历史指纹加入 .gitleaksignore
本地全历史扫描(141 提交)no leaks found。
@ClassTechStar
ClassTechStar merged commit 5a8b473 into OpenRecite:main Sep 30, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant