chg_0013(T2): 5 件套 fixture 对齐 + e2e dth_mpq.test.sh (45 cases)
影响:4 个 spec 文件的 H_A 改为 [p01,p02,p03,p04,p05],与 spec 期望交集 [p01,p02,p03] 数学自洽;e2e dth_mpq.test.sh 新增 449 行, 10 cases / 45 sub-assertions 一次跑过 (pass=45 fail=0 elapsed=5s)。 改动: - openspec/changes/chg_0013_medical_privacy_query/spec.md:30 H_A 修正 - openspec/changes/chg_0013_medical_privacy_query/testcases.md:29 H_A 修正(C3_Given) - openspec/changes/chg_0013_medical_privacy_query/testcases.map.yaml:58 hospital_fixture.h_a 修正 - docs/dth/mpq/scenario.md:94 S3a fixture + :197 C4 forbidden list - tests/e2e/dth_mpq.test.sh 新增(449 行):S1→S9 9 步跑全 19 算子 中 6 个(did-identity / psi / tee-inference / paillier-he / abac-policy / compliance-audit),含 PHI 不出域断言(C4/C7/C9) 设计: - T1 提交时 H_A 用 [p01,p02,p04,p05,p06],缺 p03 → A∩B∩C 数学上 不能等于 [p01,p02,p03](p03 仅在 H_B/H_C);本次把 H_A 改为 [p01,p02,p03,p04,p05],5 件套 4 个文件 + 注释同时更新,避免 跑 e2e 时还要"先调 fixture 再跑" - e2e 实际数组早就用了正确版本,仅注释块的"旧 fixture 记录 + 替换原因"误导;本次把注释对齐到与 spec 完全一致,删去 "We replace p06 in H_A with p03"的偏差说明 - 与 chg_0010_frc.test.sh / chg_0011_vc.test.sh 同模式(沿用同 一套 admin token + curl + assert helper),不引入新依赖 Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
1 parent
4898325f4b
commit
2e35c10177
5 files changed
+452
-5
No files matched your search
@@ -27,7 +27,7 @@ endpoint / dependency, so that 业务方能用现有算子验证"医疗数据不
|
||||
### S3 PSI 三方求交 = [p01, p02, p03]
|
||||
|
||||
- **WHEN** 3 hospitals submit private patient ID lists:
|
||||
- H_A = `[p01, p02, p04, p05, p06]` (5 patients)
|
||||
- H_A = `[p01, p02, p03, p04, p05]` (5 patients)
|
||||
- H_B = `[p01, p03, p02, p07]` (4 patients)
|
||||
- H_C = `[p01, p02, p03, p08, p09]` (5 patients)
|
||||
- **THEN** PSI intersection output = `[p01, p02, p03]` (3 shared patients with disease D-101)
|
||||
|
||||
@@ -55,7 +55,7 @@ notes:
|
||||
tee_invariant: "tee-inference signature must verify_code=0 with correct attestation_key (C5) AND verify_code=1 with wrong verify_key (C6)"
|
||||
three_hospital_psi_changes: "psi operator only supports 2-way; MPQ composes (A∩B) ∩ C in 2 sequential calls (same as chg_0010)"
|
||||
hospital_fixture:
|
||||
h_a: [p01, p02, p04, p05, p06] # 5 patients
|
||||
h_a: [p01, p02, p03, p04, p05] # 5 patients
|
||||
h_b: [p01, p03, p02, p07] # 4 patients
|
||||
h_c: [p01, p02, p03, p08, p09] # 5 patients
|
||||
expected_intersection: [p01, p02, p03]
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
- Type: e2e
|
||||
- Priority: P0
|
||||
- Given: 3 hospital patient ID lists:
|
||||
- H_A = [p01, p02, p04, p05, p06] (5 patients)
|
||||
- H_A = [p01, p02, p03, p04, p05] (5 patients)
|
||||
- H_B = [p01, p03, p02, p07] (4 patients)
|
||||
- H_C = [p01, p02, p03, p08, p09] (5 patients)
|
||||
- When: 2 sequential PSI calls (A∩B) then (A∩B ∩ C)
|
||||
|
||||
Reference in new issue
Block a user