feat(api): monthly-review/ic-trend 接真——10-01 用户拍板「接真不删页」P1 件 [vps]
审计 10-01 P1-12 三 mock 端点之二接真(读现成月度批评产物,hypotheses 留 P4):
- GET /pipeline/monthly-review: 本机 monthly dir 最新报告 JSON 原文→
period/runDate/factorsEvaluated/consensusMedianT(collective.median)/
consensusThreshold(collective.floor);首班 10-04 前 null(前端 PanelCard
隐藏不造数);crossCheck 仅同 as_of 双 host 报告同 dir 才出双行(单机=空
列表,不伪造"一致"),maxAbsDiff=同因子 t 差最大值,>0.05(起步默认)判分歧
- GET /pipeline/factors/{name}/ic-trend: 最新报告 monthly_points 月度 t
序列(t=None 月如实跳过);baseline=晋级 promotion_t×0.5(相对降幅过半
红线,衰减条件①),未晋级=2.0 绝对地板(条件②);无报告/无点 404
- mock/index.ts: 两端点条目退役(逐端点删条目纪律,composite 先例);
PIPELINE_MOCK 仅剩 hypotheses(P4);全接真后删机制=在案退出条件
- spec §7 数据行接真进度同步(档随码走)
- 测试 tests/api/test_routes_pipeline_monthly.py 8 例(单机/双机一致/分歧/
baseline 两态/404 两态)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -121,9 +121,8 @@ export const PIPELINE_MOCK = import.meta.env.DEV
|
||||
|
||||
const pipelineRoutes: Route[] = [
|
||||
{ m: 'get', re: /^\/pipeline\/hypotheses$/, build: () => ({ items: P.hypothesesMock }) },
|
||||
{ m: 'get', re: /^\/pipeline\/monthly-review$/, build: () => P.monthlyReviewMock },
|
||||
// /pipeline/composite 已接真端点(P1, 09-27): 不再 mock, 走 sanguo_api
|
||||
{ m: 'get', re: /^\/pipeline\/factors\/[^/]+\/ic-trend$/, build: (url) => P.icTrendMock(url.split('/')[3]) },
|
||||
// /pipeline/composite 已接真(P1, 09-27);monthly-review/ic-trend 已接真
|
||||
// (P1, 10-01 用户拍板「接真不删页」):均不再 mock,走 sanguo_api
|
||||
]
|
||||
|
||||
export function matchPipelineMock(method: string, url: string): unknown | undefined {
|
||||
|
||||
Reference in New Issue
Block a user