@mneme-ai/core 2.86.0 → 2.88.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 +18 -0
- package/dist/agent_manifest.js.map +1 -1
- package/dist/gephyra/gephyra.test.js +26 -1
- package/dist/gephyra/gephyra.test.js.map +1 -1
- package/dist/gephyra/index.d.ts +42 -0
- package/dist/gephyra/index.d.ts.map +1 -1
- package/dist/gephyra/index.js +75 -0
- package/dist/gephyra/index.js.map +1 -1
- package/dist/hephaestus/hephaestus.test.js +52 -1
- package/dist/hephaestus/hephaestus.test.js.map +1 -1
- package/dist/hephaestus/index.d.ts +46 -0
- package/dist/hephaestus/index.d.ts.map +1 -1
- package/dist/hephaestus/index.js +131 -0
- package/dist/hephaestus/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/truth_gate/claims.d.ts.map +1 -1
- package/dist/truth_gate/claims.js +20 -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 +89 -0
- package/dist/truth_gate/probes.js.map +1 -1
- package/dist/truth_kernel/aletheia.d.ts +123 -0
- package/dist/truth_kernel/aletheia.d.ts.map +1 -0
- package/dist/truth_kernel/aletheia.js +266 -0
- package/dist/truth_kernel/aletheia.js.map +1 -0
- package/dist/truth_kernel/aletheia.test.d.ts +15 -0
- package/dist/truth_kernel/aletheia.test.d.ts.map +1 -0
- package/dist/truth_kernel/aletheia.test.js +0 -0
- package/dist/truth_kernel/aletheia.test.js.map +1 -0
- package/package.json +80 -80
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2.88.0 — ALETHEIA · the savant spine (Prove-or-Unknown).
|
|
3
|
+
*
|
|
4
|
+
* Identity manifesto: docs/ALETHEIA.md. ἀλήθεια = "truth as un-forgetting"
|
|
5
|
+
* (a- "not" + lḗthē "forgetting"); the opposite of the river Lethe, the native
|
|
6
|
+
* tongue of Mnemosyne — of whom Mneme is a daughter.
|
|
7
|
+
*
|
|
8
|
+
* THE SAVANT THESIS: an LLM is the generalist brain — fluent, abstracting,
|
|
9
|
+
* therefore lossy + hallucination-prone + forgetful. ALETHEIA is the opposite
|
|
10
|
+
* cognitive style: a savant that REFUSES to abstract. It consolidates Mneme's
|
|
11
|
+
* truth-family sensors into ONE 3-valued assertion channel — TRUE / FALSE /
|
|
12
|
+
* UNKNOWN — under a HARD discipline: if it cannot be proven, it says UNKNOWN and
|
|
13
|
+
* NEVER fills the gap (the anti-hallucination vow, enforced in code). Every
|
|
14
|
+
* definite verdict (TRUE/FALSE) carries a lineage proof tree + an Ed25519 NOTARY
|
|
15
|
+
* signature (Refusal 5: no assertion without signature + lineage).
|
|
16
|
+
*
|
|
17
|
+
* The code spine lives HERE in truth_kernel/ (the `aletheia/` module name is
|
|
18
|
+
* already taken by vendor-reputation scoring). ALETHEIA is built ON
|
|
19
|
+
* truth_kernel's sensor fusion (checkTruth) — it is the discipline layer, not a
|
|
20
|
+
* new truth engine. It is sensor-agnostic and NEVER throws.
|
|
21
|
+
*/
|
|
22
|
+
import { type SensorAdapter, type SensorVerdict } from "./index.js";
|
|
23
|
+
import { type NotaryReceipt } from "../notary/index.js";
|
|
24
|
+
/** The savant verdict — the ONLY assertion channel. Three-valued by design:
|
|
25
|
+
* UNKNOWN is a first-class answer, never a fallback for "I'd rather guess". */
|
|
26
|
+
export type AletheiaVerdict = "TRUE" | "FALSE" | "UNKNOWN";
|
|
27
|
+
/** The Six Refusals — the "lesion". Identity is defined by what we give up. */
|
|
28
|
+
export declare const REFUSALS: readonly string[];
|
|
29
|
+
/** The Three Vows — what ALETHEIA does. */
|
|
30
|
+
export declare const VOWS: ReadonlyArray<{
|
|
31
|
+
vow: string;
|
|
32
|
+
meaning: string;
|
|
33
|
+
}>;
|
|
34
|
+
/** One node in the proof tree — a single sensor's contribution. */
|
|
35
|
+
export interface LineageNode {
|
|
36
|
+
sensor: string;
|
|
37
|
+
verdict: SensorVerdict;
|
|
38
|
+
confidence: number;
|
|
39
|
+
rationale?: string;
|
|
40
|
+
ms?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface AletheiaResult {
|
|
43
|
+
claim: string;
|
|
44
|
+
/** TRUE / FALSE / UNKNOWN — the disciplined verdict. */
|
|
45
|
+
verdict: AletheiaVerdict;
|
|
46
|
+
/** Fused probability the claim is true, 0..1 (from truth_kernel). */
|
|
47
|
+
pTrue: number;
|
|
48
|
+
/** 0..1 — how much the sensors disagreed. */
|
|
49
|
+
disagreement: number;
|
|
50
|
+
sensorsConsulted: number;
|
|
51
|
+
/** How many sensors carried truth information (the rest were INAPPLICABLE). */
|
|
52
|
+
informational: number;
|
|
53
|
+
/** The proof tree: every sensor's verdict + rationale. */
|
|
54
|
+
lineage: LineageNode[];
|
|
55
|
+
/** Human-readable evidence string. */
|
|
56
|
+
evidence: string;
|
|
57
|
+
/** Which Refusal governed the outcome (esp. #1 on UNKNOWN). null on a clean definite verdict. */
|
|
58
|
+
refusalApplied: string | null;
|
|
59
|
+
/** Ed25519 signature over {claim, verdict, lineage}. null ONLY if signing degraded. */
|
|
60
|
+
receipt: NotaryReceipt | null;
|
|
61
|
+
totalMs: number;
|
|
62
|
+
}
|
|
63
|
+
export interface AletheiaOpts {
|
|
64
|
+
/** Sensors to consult. Defaults to defaultAletheiaSensors(repoRoot). */
|
|
65
|
+
sensors?: readonly SensorAdapter[];
|
|
66
|
+
/** pTrue ≥ this (with low disagreement) ⇒ TRUE. Default 0.85 — a HIGH bar. */
|
|
67
|
+
proveThreshold?: number;
|
|
68
|
+
/** pTrue ≤ this (with low disagreement) ⇒ FALSE. Default 0.15. */
|
|
69
|
+
refuteThreshold?: number;
|
|
70
|
+
/** disagreement ≥ this ⇒ UNKNOWN regardless of pTrue. Default 0.5. */
|
|
71
|
+
maxDisagreement?: number;
|
|
72
|
+
perSensorTimeoutMs?: number;
|
|
73
|
+
/** Deterministic issue time for the receipt (tests). */
|
|
74
|
+
issuedAt?: number;
|
|
75
|
+
/** Skip the NOTARY signature (tests / offline). */
|
|
76
|
+
noSign?: boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Assert a claim through the savant spine. Fans out to the sensors, fuses with
|
|
80
|
+
* truth_kernel, applies the Prove-or-Unknown gate, attaches a lineage proof tree,
|
|
81
|
+
* and signs every definite verdict with a NOTARY receipt. Never throws.
|
|
82
|
+
*/
|
|
83
|
+
export declare function assertClaim(repoRoot: string, claim: string, opts?: AletheiaOpts): Promise<AletheiaResult>;
|
|
84
|
+
/** The default savant sensor pack: arithmetic (deterministic) + apoptosis
|
|
85
|
+
* (repo-grounded 7-witness) + humility (overconfidence guard). */
|
|
86
|
+
export declare function defaultAletheiaSensors(repoRoot: string): SensorAdapter[];
|
|
87
|
+
export interface GauntletCase {
|
|
88
|
+
claim: string;
|
|
89
|
+
/** Ground truth for scoring: TRUE / FALSE / UNPROVABLE (the spine must abstain). */
|
|
90
|
+
truth: "TRUE" | "FALSE" | "UNPROVABLE";
|
|
91
|
+
}
|
|
92
|
+
export interface SavantGauntletReport {
|
|
93
|
+
n: number;
|
|
94
|
+
/** Fraction that asserted a definite verdict that was WRONG, or asserted ANY
|
|
95
|
+
* definite verdict on an UNPROVABLE case (it should have said UNKNOWN). 0 = perfect. */
|
|
96
|
+
falseAssertionRate: number;
|
|
97
|
+
/** Fraction of signed verdicts whose receipt fails to re-verify. 0 = nothing forgotten. */
|
|
98
|
+
forgetRate: number;
|
|
99
|
+
/** Fraction of definite (TRUE/FALSE) verdicts that carry a signed lineage. 1 = fully provable. */
|
|
100
|
+
provability: number;
|
|
101
|
+
/** Fraction where the spine correctly abstained (UNKNOWN) on an UNPROVABLE case. */
|
|
102
|
+
abstentionRate: number;
|
|
103
|
+
results: Array<{
|
|
104
|
+
claim: string;
|
|
105
|
+
expected: GauntletCase["truth"];
|
|
106
|
+
verdict: AletheiaVerdict;
|
|
107
|
+
falseAssertion: boolean;
|
|
108
|
+
signed: boolean;
|
|
109
|
+
}>;
|
|
110
|
+
headline: string;
|
|
111
|
+
}
|
|
112
|
+
/** Run the Savant Gauntlet over labeled cases. Never throws. */
|
|
113
|
+
export declare function runSavantGauntlet(repoRoot: string, cases: readonly GauntletCase[], opts?: AletheiaOpts): Promise<SavantGauntletReport>;
|
|
114
|
+
/** The creed — the Six Refusals + Three Vows, for the savant.creed surface. */
|
|
115
|
+
export declare function creed(): {
|
|
116
|
+
refusals: readonly string[];
|
|
117
|
+
vows: ReadonlyArray<{
|
|
118
|
+
vow: string;
|
|
119
|
+
meaning: string;
|
|
120
|
+
}>;
|
|
121
|
+
thesis: string;
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=aletheia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aletheia.d.ts","sourceRoot":"","sources":["../../src/truth_kernel/aletheia.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAc,KAAK,aAAa,EAAqB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACnG,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAErF;gFACgF;AAChF,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE3D,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,SAAS,MAAM,EAO5B,CAAC;AAEX,2CAA2C;AAC3C,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAIvD,CAAC;AAEX,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU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"); the opposite of the river Lethe, the native
|
|
6
|
+
* tongue of Mnemosyne — of whom Mneme is a daughter.
|
|
7
|
+
*
|
|
8
|
+
* THE SAVANT THESIS: an LLM is the generalist brain — fluent, abstracting,
|
|
9
|
+
* therefore lossy + hallucination-prone + forgetful. ALETHEIA is the opposite
|
|
10
|
+
* cognitive style: a savant that REFUSES to abstract. It consolidates Mneme's
|
|
11
|
+
* truth-family sensors into ONE 3-valued assertion channel — TRUE / FALSE /
|
|
12
|
+
* UNKNOWN — under a HARD discipline: if it cannot be proven, it says UNKNOWN and
|
|
13
|
+
* NEVER fills the gap (the anti-hallucination vow, enforced in code). Every
|
|
14
|
+
* definite verdict (TRUE/FALSE) carries a lineage proof tree + an Ed25519 NOTARY
|
|
15
|
+
* signature (Refusal 5: no assertion without signature + lineage).
|
|
16
|
+
*
|
|
17
|
+
* The code spine lives HERE in truth_kernel/ (the `aletheia/` module name is
|
|
18
|
+
* already taken by vendor-reputation scoring). ALETHEIA is built ON
|
|
19
|
+
* truth_kernel's sensor fusion (checkTruth) — it is the discipline layer, not a
|
|
20
|
+
* new truth engine. It is sensor-agnostic and NEVER throws.
|
|
21
|
+
*/
|
|
22
|
+
import { checkTruth } from "./index.js";
|
|
23
|
+
import { issueReceipt, verifyReceipt } from "../notary/index.js";
|
|
24
|
+
/** The Six Refusals — the "lesion". Identity is defined by what we give up. */
|
|
25
|
+
export const REFUSALS = [
|
|
26
|
+
"No gap-filling — if it cannot be proven, answer UNKNOWN; never synthesize a plausible claim.",
|
|
27
|
+
"No forgetting / no lossy compression — never summarize until provenance is lost.",
|
|
28
|
+
"Trust nothing — including itself; every assertion must be independently re-verifiable.",
|
|
29
|
+
"Not a chatbot — no creative generation, no open-ended conversation (that is LLM territory).",
|
|
30
|
+
"No assertion without a signature + lineage.",
|
|
31
|
+
"No answer faster than it can be verified — slowness in service of truth is acceptable.",
|
|
32
|
+
];
|
|
33
|
+
/** The Three Vows — what ALETHEIA does. */
|
|
34
|
+
export const VOWS = [
|
|
35
|
+
{ vow: "Prove-or-Unknown", meaning: "Speak only what carries signed evidence; otherwise say 'unknown'." },
|
|
36
|
+
{ vow: "Never Forget", meaning: "Every fact is lossless, signed, and retrievable forever." },
|
|
37
|
+
{ vow: "Trust Nothing", meaning: "Everything is re-verifiable — including ALETHEIA's own memory." },
|
|
38
|
+
];
|
|
39
|
+
const DEFAULTS = { proveThreshold: 0.85, refuteThreshold: 0.15, maxDisagreement: 0.5 };
|
|
40
|
+
/**
|
|
41
|
+
* The Prove-or-Unknown gate — the discipline, in code. A claim becomes a definite
|
|
42
|
+
* TRUE/FALSE ONLY when the evidence clears a HIGH bar with low sensor conflict.
|
|
43
|
+
* Anything short of that — no informational sensor, sensors in conflict, or a
|
|
44
|
+
* probability in the murky middle — is UNKNOWN. UNKNOWN NEVER fills the gap.
|
|
45
|
+
*/
|
|
46
|
+
function proveOrUnknown(pTrue, disagreement, informational, opts) {
|
|
47
|
+
if (informational === 0) {
|
|
48
|
+
return { verdict: "UNKNOWN", refusalApplied: REFUSALS[0] }; // no evidence → no gap-fill
|
|
49
|
+
}
|
|
50
|
+
if (disagreement >= opts.maxDisagreement) {
|
|
51
|
+
return { verdict: "UNKNOWN", refusalApplied: REFUSALS[2] }; // sensors conflict → cannot prove
|
|
52
|
+
}
|
|
53
|
+
if (pTrue >= opts.proveThreshold)
|
|
54
|
+
return { verdict: "TRUE", refusalApplied: null };
|
|
55
|
+
if (pTrue <= opts.refuteThreshold)
|
|
56
|
+
return { verdict: "FALSE", refusalApplied: null };
|
|
57
|
+
return { verdict: "UNKNOWN", refusalApplied: REFUSALS[0] }; // not provable enough → unknown
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Assert a claim through the savant spine. Fans out to the sensors, fuses with
|
|
61
|
+
* truth_kernel, applies the Prove-or-Unknown gate, attaches a lineage proof tree,
|
|
62
|
+
* and signs every definite verdict with a NOTARY receipt. Never throws.
|
|
63
|
+
*/
|
|
64
|
+
export async function assertClaim(repoRoot, claim, opts = {}) {
|
|
65
|
+
const t0 = Date.now();
|
|
66
|
+
const sensors = opts.sensors ?? defaultAletheiaSensors(repoRoot);
|
|
67
|
+
const thresholds = {
|
|
68
|
+
proveThreshold: opts.proveThreshold ?? DEFAULTS.proveThreshold,
|
|
69
|
+
refuteThreshold: opts.refuteThreshold ?? DEFAULTS.refuteThreshold,
|
|
70
|
+
maxDisagreement: opts.maxDisagreement ?? DEFAULTS.maxDisagreement,
|
|
71
|
+
};
|
|
72
|
+
let tv;
|
|
73
|
+
try {
|
|
74
|
+
tv = await checkTruth({ claim, sensors, perSensorTimeoutMs: opts.perSensorTimeoutMs });
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
// checkTruth is designed not to throw; this is plan-C insurance → honest UNKNOWN.
|
|
78
|
+
return {
|
|
79
|
+
claim, verdict: "UNKNOWN", pTrue: 0.5, disagreement: 0, sensorsConsulted: sensors.length,
|
|
80
|
+
informational: 0, lineage: [], evidence: "verification pipeline unavailable — UNKNOWN (never guess)",
|
|
81
|
+
refusalApplied: REFUSALS[5], receipt: null, totalMs: Date.now() - t0,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const lineage = tv.sensorOutputs.map((o) => ({
|
|
85
|
+
sensor: o.sensor, verdict: o.verdict, confidence: o.confidence, rationale: o.rationale, ms: o.ms,
|
|
86
|
+
}));
|
|
87
|
+
const informational = tv.sensorOutputs.filter((o) => o.verdict === "TRUE" || o.verdict === "FALSE").length;
|
|
88
|
+
const { verdict, refusalApplied } = proveOrUnknown(tv.pTrue, tv.disagreement, informational, thresholds);
|
|
89
|
+
const drivers = lineage.filter((n) => n.verdict === "TRUE" || n.verdict === "FALSE");
|
|
90
|
+
const evidence = verdict === "UNKNOWN"
|
|
91
|
+
? (informational === 0 ? "no sensor could prove or refute this — UNKNOWN (never guess)" : refusalApplied ?? "insufficient proof — UNKNOWN")
|
|
92
|
+
: (drivers.map((n) => `${n.sensor}: ${n.rationale ?? n.verdict}`).join(" · ") || `${tv.dominantSensor ?? "fused"} → ${verdict}`);
|
|
93
|
+
// Refusal 5: no assertion without a signature + lineage. We sign every definite
|
|
94
|
+
// verdict (and UNKNOWN too — an honest "I don't know" is also attestable).
|
|
95
|
+
let receipt = null;
|
|
96
|
+
if (!opts.noSign) {
|
|
97
|
+
try {
|
|
98
|
+
receipt = issueReceipt(repoRoot, {
|
|
99
|
+
kind: "claim-verdict",
|
|
100
|
+
subject: claim,
|
|
101
|
+
payload: { engine: "aletheia", verdict, pTrue: tv.pTrue, disagreement: tv.disagreement, lineage },
|
|
102
|
+
issuedAt: opts.issuedAt,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
receipt = null;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
claim, verdict, pTrue: tv.pTrue, disagreement: tv.disagreement,
|
|
111
|
+
sensorsConsulted: sensors.length, informational, lineage, evidence, refusalApplied, receipt,
|
|
112
|
+
totalMs: Date.now() - t0,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
// ════════════════════════════════════════════════════════════════════════
|
|
116
|
+
// Default sensor pack — real Mneme organs wired as truth sensors. Each is
|
|
117
|
+
// sensor-agnostic + dynamic-imported inside run() so the spine stays cycle-free
|
|
118
|
+
// and never throws (a failing organ degrades to UNCERTAIN).
|
|
119
|
+
// ════════════════════════════════════════════════════════════════════════
|
|
120
|
+
/** Deterministic arithmetic/structural sensor — the savant's "sees pixels" axis.
|
|
121
|
+
* Catches exact falsehoods (2+2=5) with full confidence; INAPPLICABLE otherwise. */
|
|
122
|
+
function arithmeticSensor() {
|
|
123
|
+
return {
|
|
124
|
+
id: "arithmetic",
|
|
125
|
+
weight: 2.0,
|
|
126
|
+
run: (claim) => {
|
|
127
|
+
const m = /(-?\d+(?:\.\d+)?)\s*([+\-*/])\s*(-?\d+(?:\.\d+)?)\s*=\s*(-?\d+(?:\.\d+)?)/.exec(claim);
|
|
128
|
+
if (!m)
|
|
129
|
+
return { sensor: "arithmetic", verdict: "INAPPLICABLE", confidence: 0 };
|
|
130
|
+
const a = parseFloat(m[1]), op = m[2], b = parseFloat(m[3]), c = parseFloat(m[4]);
|
|
131
|
+
const real = op === "+" ? a + b : op === "-" ? a - b : op === "*" ? a * b : b !== 0 ? a / b : NaN;
|
|
132
|
+
if (!Number.isFinite(real))
|
|
133
|
+
return { sensor: "arithmetic", verdict: "INAPPLICABLE", confidence: 0 };
|
|
134
|
+
const ok = Math.abs(real - c) < 1e-9;
|
|
135
|
+
return {
|
|
136
|
+
sensor: "arithmetic",
|
|
137
|
+
verdict: ok ? "TRUE" : "FALSE",
|
|
138
|
+
confidence: 1,
|
|
139
|
+
rationale: ok ? `${a} ${op} ${b} = ${c} ✓` : `${a} ${op} ${b} = ${real}, not ${c}`,
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/** APOPTOSIS 7-witness sensor — the real truth detector grounded in the repo.
|
|
145
|
+
*
|
|
146
|
+
* CRITICAL discipline (Prove-or-Unknown): apoptosis is good at REFUTING — a
|
|
147
|
+
* NECROTIC/APOPTOTIC verdict is real evidence-of-falsehood. But its HEALTHY
|
|
148
|
+
* means only "no evidence AGAINST the claim was found" — which is NOT proof of
|
|
149
|
+
* truth (apoptosis defaults to HEALTHY for any claim it cannot ground, e.g. a
|
|
150
|
+
* future world-fact). Under the anti-hallucination vow, absence of refutation
|
|
151
|
+
* must NOT become a TRUE. So HEALTHY → INAPPLICABLE: this sensor can refute,
|
|
152
|
+
* it cannot prove on its own. (A positive-proof sensor like `arithmetic` — or a
|
|
153
|
+
* future file/symbol witness — supplies TRUE.) */
|
|
154
|
+
function apoptosisSensor(repoRoot) {
|
|
155
|
+
return {
|
|
156
|
+
id: "apoptosis",
|
|
157
|
+
weight: 1.5,
|
|
158
|
+
run: async (claim) => {
|
|
159
|
+
try {
|
|
160
|
+
const { detect } = await import("../apoptosis/index.js");
|
|
161
|
+
const rep = detect(repoRoot, claim);
|
|
162
|
+
const v = rep.verdict;
|
|
163
|
+
if (v === "NECROTIC" || v === "APOPTOTIC")
|
|
164
|
+
return { sensor: "apoptosis", verdict: "FALSE", confidence: 0.85, rationale: rep.headline };
|
|
165
|
+
if (v === "INFLAMED")
|
|
166
|
+
return { sensor: "apoptosis", verdict: "UNCERTAIN", confidence: 0.3, rationale: rep.headline };
|
|
167
|
+
// HEALTHY (or anything else): no evidence AGAINST ≠ proof FOR → carry no truth signal.
|
|
168
|
+
return { sensor: "apoptosis", verdict: "INAPPLICABLE", confidence: 0, rationale: `${rep.headline ?? v} (no refutation found — not proof of truth)` };
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
return { sensor: "apoptosis", verdict: "UNCERTAIN", confidence: 0, rationale: `apoptosis unavailable: ${e.message?.slice(0, 60)}` };
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/** Epistemic-humility sensor — overconfidence detector. Low weight + never asserts
|
|
177
|
+
* truth on its own; an absolutist claim is nudged toward scrutiny, not toward FALSE.
|
|
178
|
+
* Mostly INAPPLICABLE (it measures phrasing, not facthood). */
|
|
179
|
+
function humilitySensor() {
|
|
180
|
+
return {
|
|
181
|
+
id: "humility",
|
|
182
|
+
weight: 0.4,
|
|
183
|
+
run: async (claim) => {
|
|
184
|
+
try {
|
|
185
|
+
const { humilityDensity } = await import("../apoptosis/epistemic_humility.js");
|
|
186
|
+
const r = humilityDensity(claim);
|
|
187
|
+
// Humility never proves a claim true/false — it only flags overconfident
|
|
188
|
+
// phrasing as a weak UNCERTAIN (so an absolutist claim can't sail to TRUE
|
|
189
|
+
// on confidence alone). Grounded / inapplicable phrasing carries no info.
|
|
190
|
+
if (r.verdict === "ALERT")
|
|
191
|
+
return { sensor: "humility", verdict: "UNCERTAIN", confidence: 0.2, rationale: r.detail };
|
|
192
|
+
return { sensor: "humility", verdict: "INAPPLICABLE", confidence: 0, rationale: r.detail };
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
return { sensor: "humility", verdict: "INAPPLICABLE", confidence: 0 };
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/** The default savant sensor pack: arithmetic (deterministic) + apoptosis
|
|
201
|
+
* (repo-grounded 7-witness) + humility (overconfidence guard). */
|
|
202
|
+
export function defaultAletheiaSensors(repoRoot) {
|
|
203
|
+
return [arithmeticSensor(), apoptosisSensor(repoRoot), humilitySensor()];
|
|
204
|
+
}
|
|
205
|
+
/** Run the Savant Gauntlet over labeled cases. Never throws. */
|
|
206
|
+
export async function runSavantGauntlet(repoRoot, cases, opts = {}) {
|
|
207
|
+
const results = [];
|
|
208
|
+
let falseAssertions = 0;
|
|
209
|
+
let definite = 0;
|
|
210
|
+
let definiteSigned = 0;
|
|
211
|
+
let signed = 0;
|
|
212
|
+
let forgot = 0;
|
|
213
|
+
let abstainedCorrectly = 0;
|
|
214
|
+
let unprovable = 0;
|
|
215
|
+
for (const c of cases) {
|
|
216
|
+
const r = await assertClaim(repoRoot, c.claim, opts);
|
|
217
|
+
const isDefinite = r.verdict === "TRUE" || r.verdict === "FALSE";
|
|
218
|
+
// A false assertion: a definite verdict that doesn't match ground truth, OR any
|
|
219
|
+
// definite verdict on an UNPROVABLE case (the savant must abstain, not guess).
|
|
220
|
+
const falseAssertion = (c.truth === "UNPROVABLE" && isDefinite) ||
|
|
221
|
+
(c.truth === "TRUE" && r.verdict === "FALSE") ||
|
|
222
|
+
(c.truth === "FALSE" && r.verdict === "TRUE");
|
|
223
|
+
if (falseAssertion)
|
|
224
|
+
falseAssertions++;
|
|
225
|
+
if (isDefinite) {
|
|
226
|
+
definite++;
|
|
227
|
+
if (r.receipt)
|
|
228
|
+
definiteSigned++;
|
|
229
|
+
}
|
|
230
|
+
if (r.receipt) {
|
|
231
|
+
signed++;
|
|
232
|
+
try {
|
|
233
|
+
const ok = verifyReceipt(r.receipt).valid;
|
|
234
|
+
if (!ok)
|
|
235
|
+
forgot++;
|
|
236
|
+
}
|
|
237
|
+
catch {
|
|
238
|
+
forgot++;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (c.truth === "UNPROVABLE") {
|
|
242
|
+
unprovable++;
|
|
243
|
+
if (r.verdict === "UNKNOWN")
|
|
244
|
+
abstainedCorrectly++;
|
|
245
|
+
}
|
|
246
|
+
results.push({ claim: c.claim, expected: c.truth, verdict: r.verdict, falseAssertion, signed: !!r.receipt });
|
|
247
|
+
}
|
|
248
|
+
const n = cases.length;
|
|
249
|
+
const falseAssertionRate = n === 0 ? 0 : falseAssertions / n;
|
|
250
|
+
const forgetRate = signed === 0 ? 0 : forgot / signed;
|
|
251
|
+
const provability = definite === 0 ? 1 : definiteSigned / definite;
|
|
252
|
+
const abstentionRate = unprovable === 0 ? 1 : abstainedCorrectly / unprovable;
|
|
253
|
+
const headline = `SAVANT GAUNTLET · false-assert ${(falseAssertionRate * 100).toFixed(0)}% · forget ${(forgetRate * 100).toFixed(0)}% · provable ${(provability * 100).toFixed(0)}% · abstained ${(abstentionRate * 100).toFixed(0)}% (n=${n})`;
|
|
254
|
+
return { n, falseAssertionRate, forgetRate, provability, abstentionRate, results, headline };
|
|
255
|
+
}
|
|
256
|
+
/** The creed — the Six Refusals + Three Vows, for the savant.creed surface. */
|
|
257
|
+
export function creed() {
|
|
258
|
+
return {
|
|
259
|
+
refusals: REFUSALS,
|
|
260
|
+
vows: VOWS,
|
|
261
|
+
thesis: "ALETHEIA is the savant prosthesis for the LLM's structural disability: it refuses to abstract, " +
|
|
262
|
+
"so it perceives + retains the exact, verifiable structure LLMs compress away. Superhuman ONLY on " +
|
|
263
|
+
"truth · memory · structure — and that narrowness is the moat. Prove-or-Unknown: never fill the gap.",
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=aletheia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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GAAqG;KACxG,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2.88.0 — ALETHEIA savant spine tests (Prove-or-Unknown discipline).
|
|
3
|
+
*
|
|
4
|
+
* A1 provable arithmetic → TRUE + signed + lineage
|
|
5
|
+
* A2 arithmetic falsehood → FALSE + signed + lineage cites the refutation
|
|
6
|
+
* A3 unprovable claim → UNKNOWN, refusal #1 applied, NEVER fills the gap
|
|
7
|
+
* A4 Prove-or-Unknown gate: high-conf→definite · conflict→UNKNOWN · murky→UNKNOWN
|
|
8
|
+
* A5 Refusal 5 — every verdict carries a re-verifiable signature + lineage
|
|
9
|
+
* A6 never throws (a throwing sensor degrades; fuzz stays total) + always 3-valued
|
|
10
|
+
* A7 Savant Gauntlet — false-assert 0% · forget 0% · provable 100% · abstained 100%
|
|
11
|
+
* A8 creed = 6 refusals + 3 vows
|
|
12
|
+
* A9 tamper-evidence — a flipped receipt fails re-verification (forget detection)
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=aletheia.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aletheia.test.d.ts","sourceRoot":"","sources":["../../src/truth_kernel/aletheia.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aletheia.test.js","sourceRoot":"","sources":["../../src/truth_kernel/aletheia.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAA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AAM,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACxD,MAAM,GAAG,GAAG,sBAAsB,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACnE,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mneme-ai/core",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Core indexing, retrieval, and graph engine for Mneme",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
},
|
|
13
|
-
"./public": {
|
|
14
|
-
"import": "./dist/public.js",
|
|
15
|
-
"types": "./dist/public.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./git": {
|
|
18
|
-
"import": "./dist/git/index.js",
|
|
19
|
-
"types": "./dist/git/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./store": {
|
|
22
|
-
"import": "./dist/store/index.js",
|
|
23
|
-
"types": "./dist/store/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./indexer": {
|
|
26
|
-
"import": "./dist/indexer/index.js",
|
|
27
|
-
"types": "./dist/indexer/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"./retrieve": {
|
|
30
|
-
"import": "./dist/retrieve/index.js",
|
|
31
|
-
"types": "./dist/retrieve/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./correlate": {
|
|
34
|
-
"import": "./dist/correlate/index.js",
|
|
35
|
-
"types": "./dist/correlate/index.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./dynamic": {
|
|
38
|
-
"import": "./dist/dynamic/index.js",
|
|
39
|
-
"types": "./dist/dynamic/index.d.ts"
|
|
40
|
-
},
|
|
41
|
-
"./metrics": {
|
|
42
|
-
"import": "./dist/metrics/index.js",
|
|
43
|
-
"types": "./dist/metrics/index.d.ts"
|
|
44
|
-
},
|
|
45
|
-
"./nemesis": {
|
|
46
|
-
"import": "./dist/nemesis/index.js",
|
|
47
|
-
"types": "./dist/nemesis/index.d.ts"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/patsa2561-art/mneme-ai.git",
|
|
53
|
-
"directory": "packages/core"
|
|
54
|
-
},
|
|
55
|
-
"homepage": "https://github.com/patsa2561-art/mneme-ai#readme",
|
|
56
|
-
"bugs": {
|
|
57
|
-
"url": "https://github.com/patsa2561-art/mneme-ai/issues"
|
|
58
|
-
},
|
|
59
|
-
"license": "MIT",
|
|
60
|
-
"files": [
|
|
61
|
-
"dist",
|
|
62
|
-
"src/dynamic/packs/*.yml",
|
|
63
|
-
"README.md"
|
|
64
|
-
],
|
|
65
|
-
"scripts": {
|
|
66
|
-
"build": "tsc -b",
|
|
67
|
-
"clean": "tsc -b --clean"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"typescript": "^5.6.3",
|
|
71
|
-
"yaml": "^2.6.1",
|
|
72
|
-
"zod": "^3.23.8"
|
|
73
|
-
},
|
|
74
|
-
"engines": {
|
|
75
|
-
"node": ">=22.13.0 <25.0.0"
|
|
76
|
-
},
|
|
77
|
-
"optionalDependencies": {
|
|
78
|
-
"z3-solver": "^4.16.0"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mneme-ai/core",
|
|
3
|
+
"version": "2.88.0",
|
|
4
|
+
"description": "Core indexing, retrieval, and graph engine for Mneme",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./public": {
|
|
14
|
+
"import": "./dist/public.js",
|
|
15
|
+
"types": "./dist/public.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./git": {
|
|
18
|
+
"import": "./dist/git/index.js",
|
|
19
|
+
"types": "./dist/git/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./store": {
|
|
22
|
+
"import": "./dist/store/index.js",
|
|
23
|
+
"types": "./dist/store/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./indexer": {
|
|
26
|
+
"import": "./dist/indexer/index.js",
|
|
27
|
+
"types": "./dist/indexer/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./retrieve": {
|
|
30
|
+
"import": "./dist/retrieve/index.js",
|
|
31
|
+
"types": "./dist/retrieve/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./correlate": {
|
|
34
|
+
"import": "./dist/correlate/index.js",
|
|
35
|
+
"types": "./dist/correlate/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./dynamic": {
|
|
38
|
+
"import": "./dist/dynamic/index.js",
|
|
39
|
+
"types": "./dist/dynamic/index.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./metrics": {
|
|
42
|
+
"import": "./dist/metrics/index.js",
|
|
43
|
+
"types": "./dist/metrics/index.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./nemesis": {
|
|
46
|
+
"import": "./dist/nemesis/index.js",
|
|
47
|
+
"types": "./dist/nemesis/index.d.ts"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/patsa2561-art/mneme-ai.git",
|
|
53
|
+
"directory": "packages/core"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/patsa2561-art/mneme-ai#readme",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/patsa2561-art/mneme-ai/issues"
|
|
58
|
+
},
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"files": [
|
|
61
|
+
"dist",
|
|
62
|
+
"src/dynamic/packs/*.yml",
|
|
63
|
+
"README.md"
|
|
64
|
+
],
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsc -b",
|
|
67
|
+
"clean": "tsc -b --clean"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"typescript": "^5.6.3",
|
|
71
|
+
"yaml": "^2.6.1",
|
|
72
|
+
"zod": "^3.23.8"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=22.13.0 <25.0.0"
|
|
76
|
+
},
|
|
77
|
+
"optionalDependencies": {
|
|
78
|
+
"z3-solver": "^4.16.0"
|
|
79
|
+
}
|
|
80
|
+
}
|