Skip to content

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

Open
mirror29 wants to merge 5 commits into
mainfrom
worktree-adoption-selfhost-sprint
Open

feat: 增加安全自托管与回测一致性路径#148
mirror29 wants to merge 5 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

mirror29 and others added 4 commits July 23, 2026 13:50
移除因子评估对已知错误回测器的调用,并注销对应 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>
@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: 3aa6636
Status: ✅  Deploy successful!
Preview URL: https://6453e3b5.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: 8d467b5

🤖 GLM-5.2 PR Review

⚠️ review 未完成:GLM API 调用失败:IncompleteRead(7978 bytes read, 11 more expected)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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