Archived
手改是**兜 AI 的错**的那一手 —— 这一轮把它从「摆在那儿但落不了地」做成真的: 件上就地改 · 保存**按地址收**,不看当下那张卡:载荷从前借道工单的 `blocks[i]` 取列名, 于是熔断卡(没有 blocks)在屏上时,人补的那一格一个字都送不出去 —— 而他要补的恰恰是把这一单卡住的那个必填格。授权面改由活动清单的台账声明把关。 · **能增删行**:错不止「这一格填错了」,还有「这一行不该在」与「漏了一行」。 删挂记号不当场抹掉(看得见、可后悔),且**删要说出来**(`drops`)—— 「没回传就是删了」会把一次不完整的回传变成一次删表。 · **必填没填按不下提交**:与放行门 L1 同一个数同一套算法;闸上摆出差在哪一行哪一格。 · 只写真改了的那几行 —— 改一格却留「修订 4 行」的痕,那句话是假的。 判据与门 · 裁量判据带谓词时**谓词说了算**:「选填缺口已补齐」基座数得出来, 人填好的目标价它照样判「客户未提供」的毛病由此消掉。 · 验收卡判据**读时现算** —— 人在成果件上补一格,判据跟着变。 · 放行门认「**办完了没有**」不认「有人写过」:从前写个 `false` 就把门推开, 于是一单没打标就进了放行门。三个数全由基座现数。 · 拒回把「活没干完」说成「数或行对不上」的毛病:判据点名的表一行都没写时直说那一步没办。 **指向两扇打不开的门,比不指还糟。** 界面不撒谎 · 日志只有三色:负责人绿 · 智能体蓝 · 系统灰(归侧五种是度量的分法,不是给人看的)。 · 验收收口答两件事:落了什么(按**交付物**点名,一份成果的几张表并成一行)、 往哪儿去(转出哪一口、带过去哪些字段);一个口都没发就直说到此为止。 · 签完到收尾之间那一段有自己的话「字已签下,正在落地」—— 中间态本来就该说出来,只是要说对。 · 消息不再被内部事件刷屏:只有从通道进来的件才谈得上「无人认领」。 · 建客户公司与联系人**一次确认落两行**;联系人编码自增不问人;卡面摆表的人读名。 A1 三案例端到端全 released:全 A 类直通 12 拍 / 客户点名跳一条 10 拍 / 新客户缺必填 14 拍。 五道门禁全绿(971 passed)。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JsTDjoHovERXyy6Wmw1ALp
85 lines
4.0 KiB
TypeScript
85 lines
4.0 KiB
TypeScript
/**
|
|
* 终态五名与非终态注记(编码规范 §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<typeof terminalStateSchema>;
|
|
export declare const TERMINAL_STATE_LABEL: Readonly<Record<TerminalState, string>>;
|
|
/** 触发者 —— OS 4.3 的第三列 */
|
|
export declare const TERMINAL_STATE_TRIGGER: Readonly<Record<TerminalState, string>>;
|
|
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<typeof rejectionKindSchema>;
|
|
export declare const REJECTION_KIND_LABEL: Readonly<Record<RejectionKind, string>>;
|
|
/** 控制三语义(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<typeof controlSemanticSchema>;
|
|
export declare const CONTROL_SEMANTIC_LABEL: Readonly<Record<ControlSemantic, string>>;
|
|
/**
|
|
* 任务运行态 —— 与终态分层:终态是收场名,运行态是「此刻在干嘛」。
|
|
* 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<typeof taskRuntimeStateSchema>;
|
|
export declare const TASK_RUNTIME_STATE_LABEL: Readonly<Record<TaskRuntimeState, string>>;
|
|
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<typeof workflowStateSchema>;
|
|
export declare const WORKFLOW_STATE_LABEL: Readonly<Record<WorkflowState, string>>;
|
|
export declare const ATTRIBUTION_SIDES: readonly ["machine", "human", "human-verdict", "world-wait", "trigger"];
|
|
export declare const attributionSideSchema: z.ZodEnum<{
|
|
machine: "machine";
|
|
human: "human";
|
|
"human-verdict": "human-verdict";
|
|
"world-wait": "world-wait";
|
|
trigger: "trigger";
|
|
}>;
|
|
export type AttributionSide = z.infer<typeof attributionSideSchema>;
|
|
export declare const ATTRIBUTION_SIDE_LABEL: Readonly<Record<AttributionSide, string>>;
|
|
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<typeof acceptanceLevelSchema>;
|
|
export declare const ACCEPTANCE_LEVEL_LABEL: Readonly<Record<AcceptanceLevel, string>>;
|
|
/** L1–L4 是质量关,L5 是责任关 —— 判据全绿只是可提交,完成只出自放行通过 */
|
|
export declare function isResponsibilityGate(level: AcceptanceLevel): boolean;
|