@akagilnc/pi-workflow-roles 0.1.2442 → 0.1.2453
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,7 +59,12 @@ export function loadMainRoleSessionMaterials(role) {
|
|
|
59
59
|
}
|
|
60
60
|
/** Gatekeeper province + Inspector/Notary officer sessions. */
|
|
61
61
|
export const GATEKEEPER_SESSION_MATERIALS = {
|
|
62
|
-
gatekeeper: [
|
|
62
|
+
gatekeeper: [
|
|
63
|
+
"CLAUDE.md",
|
|
64
|
+
"souls/gatekeeper.md",
|
|
65
|
+
"souls/quality-law.md",
|
|
66
|
+
"souls/gate-output-guide.md",
|
|
67
|
+
],
|
|
63
68
|
inspector: [
|
|
64
69
|
"CLAUDE.md",
|
|
65
70
|
"souls/inspector.md",
|
package/package.json
CHANGED
package/souls/quality-law.md
CHANGED
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
|
|
29
29
|
日常施工只跑触及面的聚焦测试;家族或批次收尾,在最终待合并状态跑一次全量到绿;之后再有修复,重跑全量。
|
|
30
30
|
|
|
31
|
+
## 未完成交卷
|
|
32
|
+
|
|
33
|
+
unfinished 只认两因:**缺前置**——处置当下仍缺少已声明的前置产物、决定或答复,且该缺失使剩余派工当前无法合法执行;**违宪约束**——继续施工将违反 authority 或既裁法源。两因之外的一切理由(执行窗口、时间、工作量、难度等),不得作为 unfinished 成立依据,审官一律封驳。
|
|
34
|
+
|
|
35
|
+
据实以两因交卷不构成违规,但不自动 pass;所称阻断须可由卷宗独立核对,声明与引用本身不能证明缺失或因果。
|
|
36
|
+
|
|
31
37
|
## 预警参考线
|
|
32
38
|
|
|
33
39
|
给审官的触发线,由审官自行判断,不是机械闸。超线不必然有罪,但须专项审视、当事方须给出说明:
|
|
@@ -71,7 +71,12 @@ export function loadMainRoleSessionMaterials(
|
|
|
71
71
|
|
|
72
72
|
/** Gatekeeper province + Inspector/Notary officer sessions. */
|
|
73
73
|
export const GATEKEEPER_SESSION_MATERIALS = {
|
|
74
|
-
gatekeeper: [
|
|
74
|
+
gatekeeper: [
|
|
75
|
+
"CLAUDE.md",
|
|
76
|
+
"souls/gatekeeper.md",
|
|
77
|
+
"souls/quality-law.md",
|
|
78
|
+
"souls/gate-output-guide.md",
|
|
79
|
+
],
|
|
75
80
|
inspector: [
|
|
76
81
|
"CLAUDE.md",
|
|
77
82
|
"souls/inspector.md",
|
package/src/worker-role.ts
CHANGED
|
@@ -284,15 +284,13 @@ export function createFixerRoleRuntime(
|
|
|
284
284
|
ctx,
|
|
285
285
|
toolCallId,
|
|
286
286
|
);
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
});
|
|
295
|
-
}
|
|
287
|
+
await requireGatekeeperPass({
|
|
288
|
+
context: ctx,
|
|
289
|
+
subject: { kind: "worker_completion", material: JSON.stringify(output) },
|
|
290
|
+
...(_signal === undefined ? {} : { signal: _signal }),
|
|
291
|
+
hostActions,
|
|
292
|
+
toolCallId,
|
|
293
|
+
});
|
|
296
294
|
const acceptedDetails = output;
|
|
297
295
|
return {
|
|
298
296
|
content: [{ type: "text" as const, text: FIXER_ACCEPTED_TEXT }],
|
|
@@ -425,15 +423,13 @@ export function createCoderRoleRuntime(
|
|
|
425
423
|
ctx,
|
|
426
424
|
toolCallId,
|
|
427
425
|
);
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
});
|
|
436
|
-
}
|
|
426
|
+
await requireGatekeeperPass({
|
|
427
|
+
context: ctx,
|
|
428
|
+
subject: { kind: "worker_completion", material: JSON.stringify(output) },
|
|
429
|
+
...(_signal === undefined ? {} : { signal: _signal }),
|
|
430
|
+
hostActions,
|
|
431
|
+
toolCallId,
|
|
432
|
+
});
|
|
437
433
|
const acceptedDetails = output;
|
|
438
434
|
return {
|
|
439
435
|
content: [{ type: "text" as const, text: CODER_ACCEPTED_TEXT }],
|