/** * 终态五名与非终态注记(编码规范 §8.1;语义出处 OS 4.3 / AM 1.3)。 * * 终态由**系统**裁定,封闭枚举,活动与模型不得增删。 */ import { z } from 'zod'; /** 终态五名 —— 唯一成功终态是 released(放行通过且落地收敛,输出口已发射) */ export declare const TERMINAL_STATES: readonly ["released", "blocked", "stalled", "exhausted", "terminated"]; export declare const terminalStateSchema: z.ZodEnum<{ released: "released"; blocked: "blocked"; stalled: "stalled"; exhausted: "exhausted"; terminated: "terminated"; }>; export type TerminalState = z.infer; export declare const TERMINAL_STATE_LABEL: Readonly>; /** 触发者 —— OS 4.3 的第三列 */ export declare const TERMINAL_STATE_TRIGGER: Readonly>; export declare function isSuccessTerminal(state: TerminalState): boolean; /** 驳回:放行卡的环内回转,任务继续 —— redo 按原要求重做 / revise 带意见迭代 */ export declare const REJECTION_KINDS: readonly ["redo", "revise"]; export declare const rejectionKindSchema: z.ZodEnum<{ redo: "redo"; revise: "revise"; }>; export type RejectionKind = z.infer; export declare const REJECTION_KIND_LABEL: Readonly>; /** 控制三语义(OS 06):暂停 = 可恢复冻结 · 叫停 = 负责人紧急中断 · 终止 = 不可恢复关闭 */ export declare const CONTROL_SEMANTICS: readonly ["pause", "halt", "terminate"]; export declare const controlSemanticSchema: z.ZodEnum<{ pause: "pause"; halt: "halt"; terminate: "terminate"; }>; export type ControlSemantic = z.infer; export declare const CONTROL_SEMANTIC_LABEL: Readonly>; /** * 任务运行态 —— 与终态分层:终态是收场名,运行态是「此刻在干嘛」。 * landing-blocked(落地受阻)是运行态不是终态,处置后仍收敛于终态名录(OS 7.3)。 */ export declare const TASK_RUNTIME_STATES: readonly ["running", "awaiting-human", "awaiting-event", "suspended", "landing-blocked", "terminal"]; export declare const taskRuntimeStateSchema: z.ZodEnum<{ running: "running"; "awaiting-human": "awaiting-human"; "awaiting-event": "awaiting-event"; suspended: "suspended"; "landing-blocked": "landing-blocked"; terminal: "terminal"; }>; export type TaskRuntimeState = z.infer; export declare const TASK_RUNTIME_STATE_LABEL: Readonly>; export declare const WORKFLOW_STATES: readonly ["running", "waiting", "completed", "terminated", "abnormal"]; export declare const workflowStateSchema: z.ZodEnum<{ terminated: "terminated"; running: "running"; waiting: "waiting"; completed: "completed"; abnormal: "abnormal"; }>; export type WorkflowState = z.infer; export declare const WORKFLOW_STATE_LABEL: Readonly>; export declare const ATTRIBUTION_SIDES: readonly ["machine", "human", "human-verdict", "world-wait"]; export declare const attributionSideSchema: z.ZodEnum<{ machine: "machine"; human: "human"; "human-verdict": "human-verdict"; "world-wait": "world-wait"; }>; export type AttributionSide = z.infer; export declare const ATTRIBUTION_SIDE_LABEL: Readonly>; export declare const ACCEPTANCE_LEVELS: readonly ["L1", "L2", "L3", "L4", "L5"]; export declare const acceptanceLevelSchema: z.ZodEnum<{ L1: "L1"; L2: "L2"; L3: "L3"; L4: "L4"; L5: "L5"; }>; export type AcceptanceLevel = z.infer; export declare const ACCEPTANCE_LEVEL_LABEL: Readonly>; /** L1–L4 是质量关,L5 是责任关 —— 判据全绿只是可提交,完成只出自放行通过 */ export declare function isResponsibilityGate(level: AcceptanceLevel): boolean;