feat(governance): 新增報表真相與告警有效性審查
All checks were successful
CD Pipeline / tests (push) Successful in 1m34s
Code Review / ai-code-review (push) Successful in 15s
CD Pipeline / build-and-deploy (push) Successful in 6m2s
CD Pipeline / post-deploy-checks (push) Successful in 2m38s

This commit is contained in:
Your Name
2026-06-12 10:28:19 +08:00
parent bc4735a645
commit 7fef2dc832
20 changed files with 1178 additions and 21 deletions

View File

@@ -317,6 +317,11 @@ export const apiClient = {
return handleResponse<AiAgentRuntimeVerifierEvidenceReviewSnapshot>(res)
},
async getAiAgentReportTruthActionabilityReview() {
const res = await fetch(`${API_BASE_URL}/agents/agent-report-truth-actionability-review`)
return handleResponse<AiAgentReportTruthActionabilityReviewSnapshot>(res)
},
async getAiAgentOwnerApprovedFixtureDryRun() {
const res = await fetch(`${API_BASE_URL}/agents/agent-owner-approved-fixture-dry-run`)
return handleResponse<AiAgentOwnerApprovedFixtureDryRunSnapshot>(res)
@@ -1843,6 +1848,106 @@ export interface AiAgentRuntimeVerifierEvidenceReviewSnapshot {
}
}
export interface AiAgentReportTruthActionabilityReviewSnapshot {
schema_version: 'ai_agent_report_truth_actionability_review_v1'
generated_at: string
program_status: {
overall_completion_percent: number
current_priority: 'P0' | 'P1' | 'P2' | 'P3'
current_task_id: string
next_task_id: string
read_only_mode: true
runtime_authority: 'report_truth_actionability_review_only_no_report_send_or_runtime_fix'
status_note: string
}
source_refs: string[]
report_truth: {
report_truth_packet_ready: true
all_zero_weekly_report_is_actionable_anomaly: true
daily_report_contract_present: boolean
weekly_report_contract_present: boolean
monthly_report_contract_present: false
freshness_gate_implemented: false
source_confidence_gate_implemented: false
actionability_score_implemented: false
ai_agent_runtime_control_allowed: false
telegram_report_send_allowed: false
cronjob_change_allowed: false
truth_note: string
}
zero_signal_findings: Array<{
finding_id: string
display_name: string
severity: string
source: string
evidence: string
operator_meaning: string
required_fix: string
owner_agent: 'openclaw' | 'hermes' | 'nemotron'
blocked_runtime_action: string
}>
report_cadence_contracts: Array<{
cadence_id: string
display_name: string
status: string
source: string
required_truth: string
next_action: string
owner_agent: 'openclaw' | 'hermes' | 'nemotron'
}>
alert_actionability_lanes: Array<{
lane_id: string
display_name: string
routing_policy: string
ai_agent_role: string
notification_policy: string
}>
telegram_routing_consolidation: {
canonical_room_name: 'AwoooI SRE 戰情室'
canonical_room_env: 'SRE_GROUP_CHAT_ID'
product_alerts_must_route_to_canonical_room: true
other_bot_or_group_alerts_allowed: false
direct_telegram_api_send_allowed: false
secret_value_read_allowed: false
route_change_allowed: false
routing_note: string
}
telegram_route_findings: Array<{
route_id: string
display_name: string
source: string
current_state: string
target_state: string
risk: string
required_fix: string
blocked_runtime_action: string
}>
operator_actions: Array<{
action_id: string
display_name: string
action_type: string
status: string
owner_agent: 'openclaw' | 'hermes' | 'nemotron'
operator_instruction: string
blocked_runtime_action: string
}>
approval_boundaries: Record<string, false>
rollups: {
zero_signal_finding_count: number
critical_finding_count: number
high_finding_count: number
cadence_contract_count: number
missing_cadence_contract_count: number
actionability_lane_count: number
telegram_route_finding_count: number
legacy_or_direct_route_count: number
operator_action_count: number
approval_required_action_ids: string[]
blocked_runtime_action_count: number
all_zero_weekly_report_confidence: 'low_trust_actionable_anomaly'
}
}
export interface AiAgentOwnerApprovedFixtureDryRunSnapshot {
schema_version: 'ai_agent_owner_approved_fixture_dry_run_v1'
generated_at: string