@akagilnc/pi-workflow-roles 0.1.2444 → 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: ["CLAUDE.md", "souls/gatekeeper.md", "souls/gate-output-guide.md"],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akagilnc/pi-workflow-roles",
3
- "version": "0.1.2444",
3
+ "version": "0.1.2453",
4
4
  "description": "Soul-bound workflow roles for Pi",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -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: ["CLAUDE.md", "souls/gatekeeper.md", "souls/gate-output-guide.md"],
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",
@@ -284,15 +284,13 @@ export function createFixerRoleRuntime(
284
284
  ctx,
285
285
  toolCallId,
286
286
  );
287
- if (output.status === "completed" || output.status === "partially_completed") {
288
- await requireGatekeeperPass({
289
- context: ctx,
290
- subject: { kind: "worker_completion", material: JSON.stringify(output) },
291
- ...(_signal === undefined ? {} : { signal: _signal }),
292
- hostActions,
293
- toolCallId,
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
- if (output.status === "completed") {
429
- await requireGatekeeperPass({
430
- context: ctx,
431
- subject: { kind: "worker_completion", material: JSON.stringify(output) },
432
- ...(_signal === undefined ? {} : { signal: _signal }),
433
- hostActions,
434
- toolCallId,
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 }],