Skip to content

feat: 增加安全自托管与回测一致性路径 - #148

Merged
mirror29 merged 11 commits into
mainfrom
worktree-adoption-selfhost-sprint
Jul 28, 2026
Merged

feat: 增加安全自托管与回测一致性路径#148
mirror29 merged 11 commits into
mainfrom
worktree-adoption-selfhost-sprint

Conversation

@mirror29

Copy link
Copy Markdown
Owner

Summary

  • 新增固定 180 天的 paper.assess_window_consistency,复用 paper 内核并明确四态窗口一致性证据。
  • 关闭不可信 factor P0 回测端点与 tool 输出,移除 raw LLM 配置头日志并增加密钥回归测试。
  • 提供本机绑定的 Docker 自托管入口、首个账户 bootstrap、用户级加密 API key 指引、构建上下文密钥排除与 CI Compose 校验。

Test plan

  • pnpm --dir packages/orchestration exec vitest run tests/identity.test.ts tests/factor-discovery.test.ts tests/tools.test.ts(52 passed)
  • pnpm --dir packages/orchestration typecheck
  • DATABASE_URL=... JWT_SECRET=... uv --project services/factor run pytest services/factor/tests/test_api.py(8 passed)
  • uv --project services/factor run ruff check .
  • bash scripts/check-consistency.sh
  • 合并生产/self-host Compose 的 CI 同款 config --quiet 校验
  • Docker 全栈 up --build:当前环境拉取 Docker Hub BuildKit frontend 时网络超时,待网络恢复后复跑。

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploying inalpha-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: a0b9fe6
Status: ✅  Deploy successful!
Preview URL: https://6fcce1b0.inalpha-web.pages.dev
Branch Preview URL: https://worktree-adoption-selfhost-s.inalpha-web.pages.dev

View logs

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review base: f25bf53

🤖 GLM-5.2 PR Review

mirror29 and others added 9 commits July 28, 2026 09:23
移除因子评估对已知错误回测器的调用,并注销对应 HTTP 路由,避免输出不可审计的金融结论。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
复用 paper 回测内核输出固定 180 天的四态一致性证据,不改变通用回测契约或默认窗口。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
身份中间件只记录已筛选的配置元数据,移除原始请求头日志并用回归测试保护密钥边界。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
提供本机绑定的完整 Docker 栈、账户初始化和用户级密钥配置文档,同时在构建与 CI 中防止环境密钥泄露或配置漂移。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
将候选转正与模拟盘 runner 启动纳入同一受确认的操作,避免审计文案变化或流程拆分导致重复确认。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mirror29
mirror29 force-pushed the worktree-adoption-selfhost-sprint branch from 4b80fa2 to b177c4a Compare July 28, 2026 02:21
mirror29 and others added 2 commits July 28, 2026 10:32
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mirror29
mirror29 merged commit 0035243 into main Jul 28, 2026
11 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