Files
dth/openspec/changes/chg_0014_gov_open_data/testcases.map.yaml
T

89 lines
3.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# spec: experiment_platform@chg_0014_gov_open_data
scenarios:
- id: S1
cases: [C1_gov_did_four_bureaus_establish]
- id: S2
cases: [C2_gov_masking_5_types]
- id: S3
cases: [C3_gov_watermark_roundtrip]
- id: S4
cases: [C4_gov_prompt_defense_clean]
- id: S5
cases: [C5_gov_prompt_defense_injection]
- id: S6
cases: [C6_gov_abac_3_decisions]
- id: S7
cases: [C7_gov_audit_chain_hmac_valid]
- id: S8
cases: [C8_gov_did_tamper_detected]
- id: S9
cases: [C9_gov_watermark_length_invariant]
- id: S10
cases: [C10_gov_e2e_full_flow_6_steps]
gate:
blocking_gap_tolerance: 0
implementation_files:
- docs/dth/gov/scenario.md
- tests/e2e/dth_gov.test.sh
- CLAUDE.md # F-2 +1 行 + 表头数 +1(T5)
test_files:
- tests/e2e/dth_gov.test.sh
notes:
reuses_operators_no_new_code: true
new_module_count: 0
new_frontend_components: 0
operator_coverage: "7 of 19 existing operators used"
operators_used:
- did-identity (S1 / S8)
- tds-connector (S1b)
- data-masking (S2)
- data-watermark (S3 / S9)
- prompt-defense (S4 / S5) # NEW usage not in FRC/VC/MPQ
- abac-policy (S6)
- compliance-audit (S7)
complements_chg_0010_frc: true
complements_chg_0011_vc: true
complements_chg_0013_mpq: true
complementary_operators_vs_frc:
frc_only: [threshold-sig, mpc-beaver, psi, paillier-he]
gov_only: [prompt-defense, data-masking] # G2G 用但 FRC 不用
shared: [did-identity, tds-connector, data-watermark, abac-policy, compliance-audit] # 5 个共有
complementary_operators_vs_vc:
vc_only: [horizontal-fedavg]
gov_only: [prompt-defense] # G2G 用但 VC 不用
shared: [did-identity, tds-connector, data-masking, data-watermark, abac-policy, compliance-audit] # 6 个共有
complementary_operators_vs_mpq:
mpq_only: [tee-inference, psi, paillier-he]
gov_only: [prompt-defense, data-masking] # G2G 用但 MPQ 不用
shared: [did-identity, tds-connector, data-watermark, abac-policy, compliance-audit] # 5 个共有
pii_invariant: "NO phone/id_card/email/bank_card/name plaintext appears in any API response across C1-C10 (C2 / C7 / C10 显式断言)"
watermark_invariant: "data-watermark embed + extract round-trip: extracted_payload === 'govdata-2026' (C3 / C9)"
prompt_defense_invariant: "clean prompt → detected=false + threat_level=low (C4); injection prompt → detected=true + threat_level=high + reasons contains 'injection-pattern-match' (C5)"
five_bureau_fixture:
police: {identifier: "police", secret: "g2g-secret-police"}
civil: {identifier: "civil", secret: "g2g-secret-civil"}
health: {identifier: "health", secret: "g2g-secret-health"}
gov_center: {identifier: "gov-center", secret: "g2g-secret-gov-center"}
pii_fixture:
phone: "13800138000"
id_card: "110101199001011234"
email: "[email protected]"
bank_card: "6222021234567890"
name: "张三"
no_new_dependency: true
claude_md_change:
file: CLAUDE.md
section: "F-2 子模块索引 → 已落 chg 索引"
placement: "现有 13 行后追加第 14 行"
row_count: 1
frc_template_reuse: "无(G2G 自含,不依赖 LMS v2 / FRC 模板)"
new_frontend_components: []
new_frontend_views: []
bound_task_breakdown:
T1: [scenario.md]
T2: [testcases.md, testcases.map.yaml, dth_gov.test.sh]
T3: [e2e PASS]
T4: [gate + 10 regressions]
T5: [CLAUDE.md F-2 +1 行]
T6: [.xstudio-report.md]