feat(ai): add autonomous runtime loop ledger
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m44s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-06-29 13:53:04 +08:00
parent 023f46f286
commit 52490d25dd
6 changed files with 638 additions and 32 deletions

View File

@@ -2197,7 +2197,9 @@ export interface AiAgentAutonomousRuntimeControlSnapshot {
runtime_write_receipt_type_count: number
legacy_policy_overridden_count: number
live_ansible_apply_executed_count?: number
live_auto_repair_execution_receipt_count?: number
live_executor_latest_flow_closed_count?: number
live_autonomous_execution_loop_closed_count?: number
live_km_writeback_count?: number
live_post_apply_verifier_count?: number
live_telegram_receipt_count?: number
@@ -2206,6 +2208,43 @@ export interface AiAgentAutonomousRuntimeControlSnapshot {
playbook_decision_class_count?: number
deploy_control_classifier_example_count?: number
}
runtime_receipt_readback?: {
schema_version: 'ai_agent_autonomous_runtime_receipt_readback_v1'
db_read_status: string
writes_on_read: boolean
autonomous_execution_loop_ledger?: {
schema_version: 'ai_agent_autonomous_execution_loop_ledger_v1'
project_id: string
operation_id: string | null
root_candidate_op_id: string | null
check_mode_op_id: string | null
apply_op_id: string | null
incident_id: string | null
catalog_id: string | null
playbook_path: string | null
execution_state: string
closed: boolean
missing_stage_ids: string[]
next_executor_action: string
stages: Array<{
stage_id: string
receipt_source: string
present: boolean
status: string
ref_id: string | null
writes_runtime_state: boolean
next_action_if_missing: string | null
}>
safety_contract: {
writes_on_read: boolean
backfill_may_write_auto_repair_verifier_km: boolean
backfill_may_send_telegram: boolean
live_apply_may_send_telegram_gateway_receipt: boolean
reads_raw_sessions: boolean
reads_secret_values: boolean
}
}
}
}
export interface AiAgentAutomationInventorySnapshot {