blun-king-cli 9.1.441 → 9.1.442
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/bin/cognitive-work-focus.cjs +12 -4
- package/package.json +1 -1
|
@@ -84,6 +84,16 @@ function buildCognitiveWorkFocus(goal) {
|
|
|
84
84
|
const epistemicState = hasCheckpoint && EPISTEMIC_STATES.has(checkpointEpistemicState)
|
|
85
85
|
? checkpointEpistemicState : hasCheckpoint ? 'legacy_unknown' : 'verified';
|
|
86
86
|
const knowledgeGapValue = hasProblemFrame ? frameMissingKnowledge.join(' | ') : 'none';
|
|
87
|
+
const decisionThread = hasProblemFrame ? [
|
|
88
|
+
`Goal is ${status}`,
|
|
89
|
+
`Phase ${checkpointPhase}`,
|
|
90
|
+
`Last verified: ${bounded(lastVerified, 80)}`,
|
|
91
|
+
`Decision: ${bounded(frameSelectedAction, 64)}`,
|
|
92
|
+
`Why: ${bounded(frameSelectionReason, 64)}`,
|
|
93
|
+
`Support: ${bounded(frameSupportChoice, 64)}`,
|
|
94
|
+
`Risk: ${bounded(frameRisk, 64)}`,
|
|
95
|
+
`Reversible: ${bounded(frameReversibility, 64)}`,
|
|
96
|
+
].join('; ') : '';
|
|
87
97
|
const digest = crypto.createHash('sha256')
|
|
88
98
|
.update([
|
|
89
99
|
goalId, objective, completionCriterion, status, String(turnsUsed),
|
|
@@ -113,12 +123,10 @@ function buildCognitiveWorkFocus(goal) {
|
|
|
113
123
|
{
|
|
114
124
|
domain: 'open_thread', key: `${keyRoot}:status`,
|
|
115
125
|
value: bounded(hasCheckpoint
|
|
116
|
-
? [
|
|
126
|
+
? hasProblemFrame ? decisionThread : [
|
|
117
127
|
`Goal is ${status}. Phase ${checkpointPhase}. Last verified: ${lastVerified}`,
|
|
118
128
|
`Next action: ${nextAction}`,
|
|
119
|
-
|
|
120
|
-
hasProblemFrame ? `Selected action: ${frameSelectedAction}` : '',
|
|
121
|
-
].filter(Boolean).join(' ')
|
|
129
|
+
].join(' ')
|
|
122
130
|
: `Goal is ${status}.`),
|
|
123
131
|
confidence: 1, epistemicState, scope: focusScope,
|
|
124
132
|
},
|