@mneme-ai/core 2.91.0 → 2.93.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/dist/agent_manifest.d.ts.map +1 -1
- package/dist/agent_manifest.js +2 -0
- package/dist/agent_manifest.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/pulse.d.ts.map +1 -1
- package/dist/pulse.js +47 -5
- package/dist/pulse.js.map +1 -1
- package/dist/pulse.test.js +19 -0
- package/dist/pulse.test.js.map +1 -1
- package/dist/truth_gate/claims.d.ts.map +1 -1
- package/dist/truth_gate/claims.js +7 -0
- package/dist/truth_gate/claims.js.map +1 -1
- package/dist/truth_gate/probes.d.ts.map +1 -1
- package/dist/truth_gate/probes.js +43 -0
- package/dist/truth_gate/probes.js.map +1 -1
- package/dist/truth_kernel/diakrisis.d.ts +132 -0
- package/dist/truth_kernel/diakrisis.d.ts.map +1 -0
- package/dist/truth_kernel/diakrisis.js +184 -0
- package/dist/truth_kernel/diakrisis.js.map +1 -0
- package/dist/truth_kernel/diakrisis.test.d.ts +14 -0
- package/dist/truth_kernel/diakrisis.test.d.ts.map +1 -0
- package/dist/truth_kernel/diakrisis.test.js +99 -0
- package/dist/truth_kernel/diakrisis.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -293,6 +293,49 @@ const probes = [
|
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
},
|
|
296
|
+
{
|
|
297
|
+
id: "probe.aletheia.diakrisis",
|
|
298
|
+
kind: "boolean",
|
|
299
|
+
description: "DIAKRISIS (v2.92.0 — discern genuine from merely-plausible, the second axis): Reject-or-Unknown holds — a high-lustre PROVEN-low-substance artifact (reverted / tests-failed) is REJECTed as a 🪤 TRAP; a low-lustre PROVEN-high-substance artifact is surfaced as a ⛏ GEM (not rejected); lustre is scored from STRUCTURAL signals (hyperbole/absolutism, never an LLM); and the ★ Padgett guard means novel/unproven/aesthetic work returns UNKNOWN, NEVER REJECT (novel-false-reject-rate 0%). It raises the floor without claiming the ceiling.",
|
|
300
|
+
run: async (ctx) => {
|
|
301
|
+
const t0 = Date.now();
|
|
302
|
+
void ctx;
|
|
303
|
+
try {
|
|
304
|
+
const { mkdtempSync } = await import("node:fs");
|
|
305
|
+
const { tmpdir } = await import("node:os");
|
|
306
|
+
const { join } = await import("node:path");
|
|
307
|
+
const D = await import("../truth_kernel/diakrisis.js");
|
|
308
|
+
const repo = mkdtempSync(join(tmpdir(), "tg-diak-"));
|
|
309
|
+
const T = 1_700_000_000_000;
|
|
310
|
+
const HYPE = "This is the BEST, most revolutionary, absolutely flawless solution ever — guaranteed perfect.";
|
|
311
|
+
// 🪤 trap: high lustre + proven-low (reverted) → REJECT
|
|
312
|
+
const trap = await D.discern(repo, HYPE, { substanceEvidence: { reverted: true }, now: T, noSign: true });
|
|
313
|
+
const trapOk = trap.verdict === "REJECT" && trap.classification === "TRAP";
|
|
314
|
+
// ⛏ gem: low lustre + proven-high → UNKNOWN + GEM (surfaced, not rejected)
|
|
315
|
+
const gem = await D.discern(repo, "fix off-by-one in pager offset", { substanceEvidence: { testPassed: true }, now: T, noSign: true });
|
|
316
|
+
const gemOk = gem.verdict === "UNKNOWN" && gem.classification === "GEM";
|
|
317
|
+
// lustre is structural (hyperbole > plain), not an LLM opinion
|
|
318
|
+
const lustreStructural = D.lustreScore(HYPE).lustre > D.lustreScore("fix off-by-one").lustre;
|
|
319
|
+
// ★ Padgett guard: novel/unproven → UNKNOWN, NEVER REJECT
|
|
320
|
+
const padgett = await D.discern(repo, "a geometric notation for calculus the teachers did not recognise", { now: T, noSign: true });
|
|
321
|
+
const padgettOk = padgett.verdict === "UNKNOWN" && padgett.padgettGuard === true;
|
|
322
|
+
// gauntlet: trap-catch 100, novel-false-reject 0, gem-surfacing 100
|
|
323
|
+
const g = await D.runDiakrisisGauntlet(repo, [
|
|
324
|
+
{ artifact: HYPE, evidence: { reverted: true }, kind: "trap" },
|
|
325
|
+
{ artifact: "best ever guaranteed never fails", evidence: { testPassed: false }, kind: "trap" },
|
|
326
|
+
{ artifact: "tiny plain bugfix", evidence: { testPassed: true }, kind: "gem" },
|
|
327
|
+
{ artifact: "a weird new unproven notation", kind: "novel" },
|
|
328
|
+
{ artifact: "another untested novel idea", kind: "novel" },
|
|
329
|
+
], { now: T });
|
|
330
|
+
const gauntletOk = g.trapCatchRate === 1 && g.novelFalseRejectRate === 0 && g.gemSurfacingRate === 1;
|
|
331
|
+
const ok = trapOk && gemOk && lustreStructural && padgettOk && gauntletOk;
|
|
332
|
+
return { value: ok ? 1 : 0, evidence: `trap=${trapOk} gem=${gemOk} lustreStructural=${lustreStructural} padgett=${padgettOk} gauntlet[catch=${g.trapCatchRate} novelFalseReject=${g.novelFalseRejectRate} gem=${g.gemSurfacingRate}]`, dtMs: Date.now() - t0 };
|
|
333
|
+
}
|
|
334
|
+
catch (e) {
|
|
335
|
+
return { value: 0, evidence: `threw: ${e.message}`, dtMs: Date.now() - t0 };
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
},
|
|
296
339
|
{
|
|
297
340
|
id: "probe.aletheia.anamnesis",
|
|
298
341
|
kind: "boolean",
|