@theronap/cortex-mcp 0.9.107 → 0.9.108

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.
Files changed (2) hide show
  1. package/lib/server.mjs +19 -5
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -462,8 +462,8 @@ export async function runServer(version) {
462
462
  server.registerTool(
463
463
  'gate3_status',
464
464
  {
465
- title: 'Gate 3 currency monitor',
466
- description: 'Read the aggregate-only Gate 3 currency-monitor status for this brain. It counts explicit maintenance-candidate reviews and their same-session durable corrections in the rolling window; it never exposes project names, evidence content, or session keys. "machine_evidence_ready" means enough ordinary-work evidence has accumulated to request a human closure decision, not that the monitor closes the gate itself.',
465
+ title: 'Maintenance-review counter (informational — NOT a gate 3 criterion)',
466
+ description: 'Counts explicit maintenance-candidate reviews and their same-session durable corrections in a rolling window, aggregate-only; it never exposes project names, evidence content, or session keys. IT DOES NOT DECIDE ANYTHING, AND IT NO LONGER BEARS ON GATE 3. Gate 3 CLOSED for v1 on 2026-08-22 with five residuals named inside the closure, and this counter was dropped from its closure criteria the same day because it measures gate 4\'s machinery rather than currency. It is also the wrong SHAPE of signal: it counts agents catching the wiki being wrong and fixing it, so a rising number means failure is being discovered more often, not that currency is improving. Read it as "how often did anyone review maintenance candidates", nothing more. Gate state lives on [[Agnoclast v1 — the currency gate]]; read that page, not this tool, to learn where a gate stands.',
467
467
  inputSchema: {
468
468
  days: z.number().optional().describe('rolling window in days (1-90, default 14)'),
469
469
  brain: z.string().optional().describe('brain name or org id when you belong to more than one brain; omit for a sole brain'),
@@ -480,9 +480,23 @@ export async function runServer(version) {
480
480
  throw new Error(classify(res.status, res.headers.get('content-type'), body, res.headers.get('x-vercel-id')).message)
481
481
  }
482
482
  const status = await res.json()
483
- const text = status.machineEvidenceReady
484
- ? `Gate 3 machine evidence is ready: ${status.maintenanceReviewSessions} independent maintenance-review sessions and ${status.correctionSessions} correction sessions in ${status.days} days. A human should confirm these were ordinary work before closing the gate.`
485
- : `Gate 3 is still collecting evidence: ${status.maintenanceReviewSessions}/${status.requiredReviewSessions} independent maintenance-review sessions and ${status.correctionSessions}/${status.requiredCorrectionSessions} correction sessions in ${status.days} days. No gate decision has been made.`
483
+ // NO THRESHOLD LANGUAGE, DELIBERATELY. Until 2026-08-24 this rendered
484
+ // "machine evidence is ready before closing the gate" a sentence written when the counter
485
+ // WAS gate 3's criterion. Gate 3 closed 2026-08-22 and the counter was dropped from its
486
+ // criteria the same day, and nothing told the tool. Called on 2026-08-24 it still invited a
487
+ // reader to close a gate that had been closed for two days, on grounds that no longer applied.
488
+ // The numbers were never wrong; the sentence around them was, and it was recomputed fresh on
489
+ // every call while its framing stayed frozen — which is what made it read as current.
490
+ // So: report the count, name what it is not, and point at where gate state actually lives.
491
+ const text =
492
+ `Maintenance reviews (informational — NOT a gate criterion): ` +
493
+ `${status.maintenanceReviewSessions} session${status.maintenanceReviewSessions === 1 ? '' : 's'} reviewed maintenance candidates ` +
494
+ `and ${status.correctionSessions} made a same-session durable correction, in ${status.days} days.\n` +
495
+ `⚠ This does not bear on gate 3. Gate 3 CLOSED for v1 on 2026-08-22 (five residuals named inside the closure), ` +
496
+ `and this counter was dropped from its closure criteria the same day — it measures gate 4's machinery, not currency. ` +
497
+ `It is also inverted as a health signal: it counts agents catching the wiki being WRONG, so a rising number means ` +
498
+ `failure is being discovered more often, not that currency is improving.\n` +
499
+ `For where any gate actually stands, read [[Agnoclast v1 — the currency gate]].`
486
500
  return { content: [{ type: 'text', text }] }
487
501
  },
488
502
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/cortex-mcp",
3
- "version": "0.9.107",
3
+ "version": "0.9.108",
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": {