feat(delivery): observe production revision with dual evidence #19

Merged
lanrtop merged 4 commits from feat/project-capability-control-plane-p3c into master 2026-09-23 11:18:16 +08:00
Owner

目标

为项目声明的 production 增加只读交付观测:Gitea 部署 context 与当前运行版本双证据一致时才报告 deployed,不替项目决定上线。

变更

  • 校验项目自有的 production capability profile,公开 HTTP JSON 探针仅允许公网目标,限制超时、响应体大小、重定向和代理。
  • 聚合 Gitea 默认分支的精确部署 context 与运行 SHA;保留 failed、pending、skipped、drifted、unavailable 等状态及原始证据。
  • 修正部署 job 为 skipped/failed/pending 时把状态更新时间误报为 deployed_at;保留实际运行 SHA。
  • 更新 MCP 说明、onboarding 自检与蓝图/交付文档;修正 Windows mock-server 测试的非阻塞 socket 抖动。

验证

  • cargo test --lib:187/187 通过。
  • rustfmt --check --edition 2021(本次修改的 Rust 文件):通过。
  • git diff --check origin/master...HEAD:通过。
  • 当前 head 的 push CI run 140 与 PR CI run 141 均通过。

没验什么 / 边界

  • Enterprise CI run 531 重跑后的只读检查曾取得 /health/version HTTP 200、revision 3cfff458c241e419078f43a6d0d52b35397cc5fa;这不是当前运行状态的持续保证。炼境正式版尚未加载本分支,跨项目 MCP 端到端验收仍须在本 PR 获人工合并确认并更新运行版本后进行。
  • 本 PR 不加入 SSH、数据库写入、部署、回滚或发布按钮。
  • 仓库级 cargo fmt --check 仍受未改动的 project_scan.rs 既有格式差异影响;修改文件的 scoped rustfmt 检查已通过。
## 目标 为项目声明的 production 增加只读交付观测:Gitea 部署 context 与当前运行版本双证据一致时才报告 deployed,不替项目决定上线。 ## 变更 - 校验项目自有的 production capability profile,公开 HTTP JSON 探针仅允许公网目标,限制超时、响应体大小、重定向和代理。 - 聚合 Gitea 默认分支的精确部署 context 与运行 SHA;保留 failed、pending、skipped、drifted、unavailable 等状态及原始证据。 - 修正部署 job 为 skipped/failed/pending 时把状态更新时间误报为 deployed_at;保留实际运行 SHA。 - 更新 MCP 说明、onboarding 自检与蓝图/交付文档;修正 Windows mock-server 测试的非阻塞 socket 抖动。 ## 验证 - `cargo test --lib`:187/187 通过。 - `rustfmt --check --edition 2021`(本次修改的 Rust 文件):通过。 - `git diff --check origin/master...HEAD`:通过。 - 当前 head 的 push CI run 140 与 PR CI run 141 均通过。 ## 没验什么 / 边界 - Enterprise CI run 531 重跑后的只读检查曾取得 `/health/version` HTTP 200、revision `3cfff458c241e419078f43a6d0d52b35397cc5fa`;这不是当前运行状态的持续保证。炼境正式版尚未加载本分支,跨项目 MCP 端到端验收仍须在本 PR 获人工合并确认并更新运行版本后进行。 - 本 PR 不加入 SSH、数据库写入、部署、回滚或发布按钮。 - 仓库级 `cargo fmt --check` 仍受未改动的 `project_scan.rs` 既有格式差异影响;修改文件的 scoped rustfmt 检查已通过。
lanrtop added 3 commits 2026-09-23 10:21:03 +08:00
Read project-owned production profile, verify Gitea deploy context and public version probe, and surface explicit degraded states.

Feature-Confirmed: true
Filter resolved connection addresses and bypass environment proxies so project-declared probes cannot reach local services through public hostnames.
fix(delivery): distinguish skipped production deploy
All checks were successful
Push & PR Check / check (push) Successful in 1m18s
Push & PR Check / check (pull_request) Successful in 58s
8bc33aaab9
lanrtop added 1 commit 2026-09-23 11:10:06 +08:00
fix(delivery): avoid false deployed timestamp
All checks were successful
Push & PR Check / check (push) Successful in 59s
Push & PR Check / check (pull_request) Successful in 1m0s
dbc1b068ab
Rules-Applied: R07,R13
lanrtop merged commit bb3c3ae657 into master 2026-09-23 11:18:16 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lanrtop/dev-manager-tauri#19
No description provided.