47 lines
2.4 KiB
Markdown
47 lines
2.4 KiB
Markdown
|
|
# 规划设计对齐验证报告(Checkpoint-19 / TOK-REAL 与 M-021 接入)
|
|||
|
|
|
|||
|
|
- 日期:2026-03-30
|
|||
|
|
- 触发条件:新增 token API 服务实现并将 M-021 接入阶段门禁
|
|||
|
|
|
|||
|
|
## 1. 结论
|
|||
|
|
|
|||
|
|
结论:**开发阶段对齐通过。TOK-REAL-001/003 的“无实现/无构建工件”缺口已明显收敛,M-021 已具备自动化计算与门禁接入能力。**
|
|||
|
|
|
|||
|
|
## 2. 对齐范围
|
|||
|
|
|
|||
|
|
1. `platform-token-runtime/cmd/platform-token-runtime/main.go`
|
|||
|
|
2. `platform-token-runtime/internal/httpapi/token_api.go`
|
|||
|
|
3. `platform-token-runtime/internal/httpapi/token_api_test.go`
|
|||
|
|
4. `platform-token-runtime/internal/auth/service/inmemory_runtime.go`
|
|||
|
|
5. `platform-token-runtime/Dockerfile`
|
|||
|
|
6. `scripts/ci/token_runtime_readiness_check.sh`
|
|||
|
|
7. `scripts/ci/superpowers_stage_validate.sh`
|
|||
|
|
8. `scripts/ci/superpowers_release_pipeline.sh`
|
|||
|
|
9. `docs/supply_gate_command_playbook_v1_2026-03-25.md`
|
|||
|
|
10. `reports/gates/token_runtime_readiness_2026-03-30_160246.md`
|
|||
|
|
11. `reports/gates/superpowers_stage_validation_2026-03-30_160244.md`
|
|||
|
|
12. `reports/gates/superpowers_release_pipeline_2026-03-30_160244.md`
|
|||
|
|
|
|||
|
|
## 3. 核查结果
|
|||
|
|
|
|||
|
|
| 核查项 | 结果 | 证据 |
|
|||
|
|
|---|---|---|
|
|||
|
|
| Token API 服务具备可执行入口 | PASS | `cmd/platform-token-runtime/main.go` |
|
|||
|
|
| `issue/refresh/revoke/introspect` 主接口实现存在 | PASS | `internal/httpapi/token_api.go` |
|
|||
|
|
| API 级行为具备可执行测试覆盖 | PASS | `internal/httpapi/token_api_test.go` |
|
|||
|
|
| runtime 可构建并通过测试 | PASS | `token_runtime_go_build_*.log` + `token_runtime_go_test_*.log` |
|
|||
|
|
| M-021 自动化脚本可计算并输出结论 | PASS | `scripts/ci/token_runtime_readiness_check.sh` + readiness 报告 |
|
|||
|
|
| Superpowers 阶段门禁已纳入 M-021 | PASS | `superpowers_stage_validation_2026-03-30_160244.md`(PHASE-10 PASS) |
|
|||
|
|
|
|||
|
|
## 4. 限制与说明
|
|||
|
|
|
|||
|
|
1. M-021=100% 仅表示“开发阶段实现就绪”,不代表真实 staging 已验收通过。
|
|||
|
|
2. PHASE-07 仍为 DEFERRED(真实 URL 与短期 token 未就绪),因此总门禁结论仍为 `CONDITIONAL_GO`。
|
|||
|
|
3. 最终签署结论仍需以真实联调证据替换 mock 证据后更新。
|
|||
|
|
|
|||
|
|
## 5. 下一步
|
|||
|
|
|
|||
|
|
1. 进入联调窗口后,使用真实 `.env` 执行 `staging_precheck_and_run.sh`。
|
|||
|
|
2. 在真实 staging 复跑 `superpowers_release_pipeline.sh`,并更新最终签署稿。
|
|||
|
|
3. 若要进一步关闭 TOK-REAL-002,补齐审计事件入库与查询证明链(含租户维度查询样例)。
|