@theronap/agnoclast-mcp 0.9.275 โ†’ 0.9.276

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.
@@ -221,6 +221,19 @@ export function formatUnheld(groups, { more = false, shadow = false } = {}) {
221
221
  return lines
222
222
  }
223
223
 
224
+ /** Arrivals assigned to a session that may still lock into a confidential brain: shown, not to be touched yet. */
225
+ export function formatHeldForLock(groups) {
226
+ const n = groups.reduce((t, g) => t + (Number(g?.count) || 1), 0)
227
+ const lines = [`๐Ÿ“ฅ ${n} arrival${n === 1 ? ' is' : 's are'} assigned to this session โ€” LEAVE ${n === 1 ? 'IT' : 'THEM'} FOR NOW: do not file, claim or dispatch a filer this turn.`]
228
+ for (const g of groups.slice(0, MAX_ASSIGNED)) {
229
+ const many = Number(g?.count) > 1 ? ` ร—${g.count}` : ''
230
+ lines.push(` ${g?.source ?? '?'}${many} โ€” ${g?.title ?? '(unreadable)'} ยท ${g?.hoursAgo ?? '?'}h`)
231
+ }
232
+ if (groups.length > MAX_ASSIGNED) lines.push(` โ€ฆ and ${groups.length - MAX_ASSIGNED} more groups`)
233
+ lines.push(' This person has a ๐Ÿ”’ confidential brain, and this session has not used Agnoclast yet. Filing would use an ordinary brain and lock the session out of the confidential one. Do the user\'s request first: if it uses the confidential brain, these pass to another session; otherwise they are shown again on the next prompt.')
234
+ return lines
235
+ }
236
+
224
237
  export function formatNotice(signals) {
225
238
  const lines = formatPressing(signals?.pressing)
226
239
  const offers = signals?.settling?.offers ?? []
@@ -236,7 +249,14 @@ export function formatNotice(signals) {
236
249
  const split = all.some((g) => typeof g?.held === 'boolean')
237
250
  const assigned = split ? all.filter((g) => g?.held === true) : all
238
251
  const unheld = split ? all.filter((g) => g?.held === false) : []
239
- if (assigned.length) {
252
+ if (all.length && signals?.holdForConfidentialLock === true) {
253
+ // CONFIDENTIAL BRAINS (web/lib/engine/confidential_lock.ts; Theron, 2026-10-28). The person holds a confidential
254
+ // seat and this session has not used Agnoclast yet. Filing an arrival โ€” inline or by the background filer โ€” is a
255
+ // use of an ordinary brain and would lock the session OUT of the confidential one before the person's own first
256
+ // request decides. So: name them, and leave them. If the session locks in, the server hands them to another
257
+ // session; if it locks out, the next prompt shows them as usual.
258
+ lines.push(...formatHeldForLock(all))
259
+ } else if (assigned.length) {
240
260
  const n = assigned.reduce((t, g) => t + (Number(g?.count) || 1), 0)
241
261
  lines.push(`๐Ÿ“ฅ ${n} arrival${n === 1 ? ' is' : 's are'} ASSIGNED TO THIS SESSION โ€” you are ${n === 1 ? 'its' : 'their'} only owner. Handle ${n === 1 ? 'it' : 'them'} before the user's request, then answer the user:`)
242
262
  for (const g of assigned.slice(0, MAX_ASSIGNED)) {
@@ -247,7 +267,7 @@ export function formatNotice(signals) {
247
267
  if (assigned.length > MAX_ASSIGNED) lines.push(` โ€ฆ and ${assigned.length - MAX_ASSIGNED} more groups`)
248
268
  lines.push(' `intake_claim {intakeItemIds}` โ†’ `intake_materialize` (or `intake_discard` for junk) ยท `not_mine` hands one to the next session ยท only what only the user can decide โ†’ `intake_defer`.')
249
269
  }
250
- if (unheld.length) lines.push(...formatUnheld(unheld, { more: assigned.length > 0, shadow: signals?.routineShadow === true }))
270
+ if (unheld.length && signals?.holdForConfidentialLock !== true) lines.push(...formatUnheld(unheld, { more: assigned.length > 0, shadow: signals?.routineShadow === true }))
251
271
  if (delta) {
252
272
  lines.push(`โšก ${delta} new arrival${delta === 1 ? '' : 's'} in the pile since this session was last told.`)
253
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.275",
3
+ "version": "0.9.276",
4
4
  "description": "Connect your AI assistant to Cortex โ€” your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {