feat(task-018): add observability retry cancel and audit trail
This commit is contained in:
@@ -26,6 +26,7 @@ export type AgentJobSummary = {
|
||||
agent_profile: string;
|
||||
article_id?: string | null;
|
||||
attempt?: number;
|
||||
cancel_eligible?: boolean;
|
||||
duration_ms?: number | null;
|
||||
error_category?: AgentJobErrorCategory | null;
|
||||
error_message?: string | null;
|
||||
@@ -38,6 +39,9 @@ export type AgentJobSummary = {
|
||||
parent_job_id?: string | null;
|
||||
payload?: Record<string, unknown>;
|
||||
queued_at: string;
|
||||
retry_block_reason?: string | null;
|
||||
retry_eligible?: boolean;
|
||||
safe_failure_summary?: string | null;
|
||||
started_at?: string | null;
|
||||
status: AgentJobStatus;
|
||||
stderr?: string;
|
||||
@@ -78,6 +82,7 @@ export type ArticleDetailResponse = {
|
||||
research_manifests?: ResearchArtifactManifestSummary[];
|
||||
reviews?: ReviewSummary[];
|
||||
target_site?: TargetSiteConfig | null;
|
||||
timeline?: ObservabilityTimelineEventSummary[];
|
||||
workflow_events?: WorkflowEventSummary[];
|
||||
};
|
||||
|
||||
@@ -420,6 +425,25 @@ export type LanguageReviewRunResponse = {
|
||||
report: ContentReviewReportSummary;
|
||||
};
|
||||
|
||||
export type ObservabilityTimelineEventSummary = {
|
||||
actor_user_id?: string | null;
|
||||
article_id: string;
|
||||
cancel_eligible?: boolean;
|
||||
created_at: string;
|
||||
entry_type: string;
|
||||
event_type: string;
|
||||
from_status?: ArticleWorkflowStatus | null;
|
||||
id: string;
|
||||
job_id?: string | null;
|
||||
job_status?: AgentJobStatus | null;
|
||||
job_type?: AgentJobType | null;
|
||||
payload?: Record<string, unknown>;
|
||||
retry_eligible?: boolean;
|
||||
safe_failure_summary?: string | null;
|
||||
source: string;
|
||||
to_status?: ArticleWorkflowStatus | null;
|
||||
};
|
||||
|
||||
export type PlanListResponse = {
|
||||
plans: PlanSummary[];
|
||||
};
|
||||
@@ -610,6 +634,23 @@ export type RunnerFileRef = {
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type ScriptConfigVersionAuditEventListResponse = {
|
||||
events?: ScriptConfigVersionAuditEventSummary[];
|
||||
};
|
||||
|
||||
export type ScriptConfigVersionAuditEventSummary = {
|
||||
actor_user_id?: string | null;
|
||||
created_at: string;
|
||||
diff?: Record<string, unknown>;
|
||||
event_type: string;
|
||||
id: string;
|
||||
payload?: Record<string, unknown>;
|
||||
rollback_target_version_id?: string | null;
|
||||
target_site_id: string;
|
||||
version?: number | null;
|
||||
version_id: string;
|
||||
};
|
||||
|
||||
export type ScriptConfigVersionCreateRequest = {
|
||||
activate?: boolean;
|
||||
diff?: Record<string, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user