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.
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -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:
|
|
264
|
-
//
|
|
265
|
-
|
|
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:
|
|
274
|
+
reason: 'skipPreflightGates override',
|
|
278
275
|
},
|
|
279
276
|
}
|
|
280
277
|
: {}),
|