principles-disciple 1.31.0 → 1.32.0

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.
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
5
- "version": "1.31.0",
5
+ "version": "1.32.0",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "Native OpenClaw plugin for Principles Disciple",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.js",
@@ -1722,6 +1722,9 @@ async function processEvolutionQueue(wctx: WorkspaceContext, logger: PluginLogge
1722
1722
  taskId: sleepTask.id,
1723
1723
  painContext: sleepTask.recentPainContext,
1724
1724
  triggerSource: sleepTask.source,
1725
+ // #297: Configure which preflight gates to skip.
1726
+ // sleep_reflection uses periodic trigger which bypasses idle by design.
1727
+ skipPreflightGates: ['idle'],
1725
1728
  },
1726
1729
  });
1727
1730
  sleepTask.resultRef = workflowHandle.workflowId;
@@ -260,12 +260,9 @@ export class NocturnalWorkflowManager implements WorkflowManager {
260
260
  },
261
261
  // Pass painContext for Selector ranking bias
262
262
  painContext,
263
- // #244: Only skip preflight idle gate for manual/test triggers.
264
- // Automatic triggers must go through normal idle check.
265
- // #292: Periodic triggers (source='nocturnal') also bypass idle check for debugging
266
- ...(((options.metadata)?.triggerSource === 'manual' ||
267
- (options.metadata)?.triggerSource === 'test' ||
268
- (options.metadata)?.triggerSource === 'nocturnal')
263
+ // #244: Skip preflight gates as configured by caller (e.g. manual/test/sleep_reflection).
264
+ // Gates not in skipPreflightGates go through normal checks.
265
+ ...(((options.metadata)?.skipPreflightGates as string[] | undefined)?.includes('idle')
269
266
  ? {
270
267
  idleCheckOverride: {
271
268
  isIdle: true,
@@ -274,7 +271,7 @@ export class NocturnalWorkflowManager implements WorkflowManager {
274
271
  userActiveSessions: 0,
275
272
  abandonedSessionIds: [],
276
273
  trajectoryGuardrailConfirmsIdle: true,
277
- reason: `${(options.metadata)?.triggerSource ?? 'manual'}.test override`,
274
+ reason: 'skipPreflightGates override',
278
275
  },
279
276
  }
280
277
  : {}),