test(api): capability audit no longer counts the deleted dead panel as app-visible (BUG-1342)
Independent Staging Quality Gate / validate (push) Successful in 18m9s
Independent Staging Quality Gate / publish (push) Successful in 3m56s

The audit scans frontend app/components source. Its only Case Validation
hit was evidence-audit-panel.tsx, never mounted and deleted in #63, so the
topic is truthfully gone and case_validator's UX level is thin. Product
owner chose option A on issue #63 (Claude fixes directly). Staging gate
run 1824 was red on this test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LutgzyJqNhPpZy1nFsJtN3
This commit is contained in:
Claude
2026-10-14 15:27:53 +08:00
parent 29949e0a29
commit 3e20c125b8
2 changed files with 10 additions and 2 deletions
+9 -2
View File
@@ -1632,9 +1632,12 @@ def test_capability_audit_scans_registry_and_local_sources() -> None:
'reports/[reportId]',
'terms',
]
# 原值: 期望集合含 'Case Validation'
# 新值: 去掉 'Case Validation'
# 原因: 唯一命中它的是从未挂载的内部面板 evidence-audit-panel.tsx(含 MEVG 字样),
# BUG-1342 删掉该死组件后,用户界面上本来就看不到案例校验;审计现在如实不再列出
assert set(audit['surfaces']['app_visible_topics']) == {
'Birth Rectification',
'Case Validation',
'Synastry 16-factor',
}
assert '/api/deep_varga_avastha' in audit['surfaces']['api_endpoints']
@@ -1666,7 +1669,11 @@ def test_capability_audit_scans_registry_and_local_sources() -> None:
assert all('ux_next_action' in row for row in ux['next_queue'])
ux_by_id = {row['id']: row for row in ux['rows']}
assert ux_by_id['birth_time_rectifier']['ux_level'] in {'excellent', 'usable'}
assert ux_by_id['case_validator']['ux_level'] == 'excellent'
# 原值: case_validator 的 ux_level == 'excellent'
# 新值: == 'thin'
# 原因: 同上,'excellent' 靠的是从未挂载的 evidence-audit-panel.tsx 被扫成「界面可见」;
# BUG-1342 删掉它后按真实界面评分,案例校验没有用户入口,评为 thin 是如实结果
assert ux_by_id['case_validator']['ux_level'] == 'thin'
assert ux_by_id['synastry_16factor']['ux_level'] == 'excellent'
for technique_id in [
'ashtakavarga_pav',