feat(governance): 顯示任務批准邊界與進度彙總
This commit is contained in:
@@ -679,8 +679,21 @@ export interface AiAgentAutomationInventorySnapshot {
|
||||
title: string
|
||||
output: string
|
||||
gate_status: string
|
||||
approval_boundary: {
|
||||
mode: string
|
||||
display_summary: string
|
||||
allowed_actions: string[]
|
||||
blocked_actions: string[]
|
||||
requires_operator_approval_for: string[]
|
||||
}
|
||||
next_action: string
|
||||
}>
|
||||
task_approval_boundary_rollup: {
|
||||
total_tasks: number
|
||||
by_mode: Record<string, number>
|
||||
tasks_requiring_explicit_approval: string[]
|
||||
tasks_with_blocked_operations: string[]
|
||||
}
|
||||
evidence: Array<{
|
||||
evidence_id: string
|
||||
kind: 'schema' | 'test' | 'browser' | 'api' | 'build' | 'doc' | 'runtime'
|
||||
@@ -715,6 +728,27 @@ export interface AiAgentAutomationBacklogSnapshot {
|
||||
by_gate_status: Record<string, number>
|
||||
by_owner_agent: Record<string, number>
|
||||
}
|
||||
progress_summary: {
|
||||
overall_percent: number
|
||||
done_items: number
|
||||
planned_items: number
|
||||
total_items: number
|
||||
formula: string
|
||||
by_priority: Array<{
|
||||
priority: 'P0' | 'P1' | 'P2' | 'P3'
|
||||
completion_percent: number
|
||||
done_items: number
|
||||
total_items: number
|
||||
}>
|
||||
by_workstream: Array<{
|
||||
workstream_id: string
|
||||
display_name: string
|
||||
completion_percent: number
|
||||
done_items: number
|
||||
total_items: number
|
||||
next_task_id: string
|
||||
}>
|
||||
}
|
||||
backlog_items: Array<{
|
||||
item_id: string
|
||||
priority: 'P0' | 'P1' | 'P2' | 'P3'
|
||||
@@ -730,8 +764,21 @@ export interface AiAgentAutomationBacklogSnapshot {
|
||||
risk_level: 'low' | 'medium' | 'high' | 'critical'
|
||||
evidence_refs: string[]
|
||||
acceptance_criteria: string[]
|
||||
approval_boundary: {
|
||||
mode: string
|
||||
display_summary: string
|
||||
allowed_actions: string[]
|
||||
blocked_actions: string[]
|
||||
requires_operator_approval_for: string[]
|
||||
}
|
||||
next_review: string
|
||||
}>
|
||||
item_approval_boundary_rollup: {
|
||||
total_items: number
|
||||
by_mode: Record<string, number>
|
||||
items_requiring_explicit_approval: string[]
|
||||
items_with_blocked_operations: string[]
|
||||
}
|
||||
approval_boundaries: Record<
|
||||
| 'sdk_installation_allowed'
|
||||
| 'paid_api_call_allowed'
|
||||
|
||||
Reference in New Issue
Block a user