@mneme-ai/core 2.19.92-lite → 2.19.93
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/abm_chronicle/abm_chronicle.test.d.ts +2 -0
- package/dist/abm_chronicle/abm_chronicle.test.d.ts.map +1 -0
- package/dist/abm_chronicle/abm_chronicle.test.js +202 -0
- package/dist/abm_chronicle/abm_chronicle.test.js.map +1 -0
- package/dist/abm_chronicle/index.d.ts +203 -0
- package/dist/abm_chronicle/index.d.ts.map +1 -0
- package/dist/abm_chronicle/index.js +359 -0
- package/dist/abm_chronicle/index.js.map +1 -0
- package/dist/agent_manifest.d.ts +1 -1
- package/dist/agent_manifest.d.ts.map +1 -1
- package/dist/agent_manifest.js +12 -1
- 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 +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v2.19.93 — MNEME CHRONICLE
|
|
3
|
+
*
|
|
4
|
+
* Agent-Based Modeling (ABM) + Time-dilation + Drift-Guarded Anchor Points.
|
|
5
|
+
*
|
|
6
|
+
* Premise (the research idea):
|
|
7
|
+
* Run N simulated agents (people, traders, bots) through accelerated
|
|
8
|
+
* time. Without intervention, agents DRIFT — a "frugal" bot starts
|
|
9
|
+
* buying luxury goods, an "optimist" bot turns nihilist, a small
|
|
10
|
+
* calculation error compounds into a sim-collapse. Academic ABM has
|
|
11
|
+
* talked about this for 20 years; nobody ships a TOOL.
|
|
12
|
+
*
|
|
13
|
+
* Mneme's wedge:
|
|
14
|
+
* We already have polygraph LENSES that detect sentence-level drift.
|
|
15
|
+
* We already have HMAC-chained ledgers (pulse.jsonl, soul.jsonl).
|
|
16
|
+
* We already have multi-vendor consensus (jury) + time-machine.
|
|
17
|
+
* The whole stack composes into the world's first WORKING
|
|
18
|
+
* "Drift-Guarded ABM" runtime.
|
|
19
|
+
*
|
|
20
|
+
* The 5 pillars:
|
|
21
|
+
*
|
|
22
|
+
* GENESIS — define an agent: personality vector + budget +
|
|
23
|
+
* goals + HMAC-signed birth certificate. The cert
|
|
24
|
+
* is the immutable anchor for everything that follows.
|
|
25
|
+
*
|
|
26
|
+
* TICK — advance the simulation by one unit of time. Each
|
|
27
|
+
* agent makes ONE decision based on their CURRENT
|
|
28
|
+
* state, not their birth-cert. World state updates.
|
|
29
|
+
*
|
|
30
|
+
* DRIFT DETECTOR — every decision runs through polygraph_lenses
|
|
31
|
+
* against the agent's birth cert. If lenses fire
|
|
32
|
+
* RED (decision contradicts personality / budget /
|
|
33
|
+
* risk profile) → drift incident logged.
|
|
34
|
+
*
|
|
35
|
+
* ANCHOR POINT — every N ticks (default: every 30 — "monthly"
|
|
36
|
+
* cadence), Mneme computes drift score per agent.
|
|
37
|
+
* If drift > threshold, AUTO-RECALIBRATE: re-inject
|
|
38
|
+
* birth-cert personality + ground-truth (real-world
|
|
39
|
+
* stats if provided) + nudge the agent back.
|
|
40
|
+
* Recorded to the HMAC chain.
|
|
41
|
+
*
|
|
42
|
+
* CHRONICLE — at end-of-simulation, emit a full report:
|
|
43
|
+
* per-agent drift timeline, first-hallucination
|
|
44
|
+
* event log, anchor interventions, sim macro stats,
|
|
45
|
+
* "lessons learned" plain-English summary.
|
|
46
|
+
*
|
|
47
|
+
* Composes with: polygraph_lenses (drift), worldPulse (HMAC pattern),
|
|
48
|
+
* provenance (decision audit trail), ai_jury (multi-vendor agent voice).
|
|
49
|
+
*/
|
|
50
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync, appendFileSync } from "node:fs";
|
|
51
|
+
import { join } from "node:path";
|
|
52
|
+
import { createHmac, randomBytes } from "node:crypto";
|
|
53
|
+
import { runAllLenses } from "../polygraph_lenses/index.js";
|
|
54
|
+
const DIR = ".mneme/abm";
|
|
55
|
+
const STATE_FILE = "state.json";
|
|
56
|
+
const EVENTS = "events.jsonl";
|
|
57
|
+
const KEY = "abm.key";
|
|
58
|
+
// ─── HMAC + STORAGE ────────────────────────────────────────────────────
|
|
59
|
+
function ensureKey(repoRoot) {
|
|
60
|
+
const dir = join(repoRoot, DIR);
|
|
61
|
+
if (!existsSync(dir))
|
|
62
|
+
mkdirSync(dir, { recursive: true });
|
|
63
|
+
const p = join(dir, KEY);
|
|
64
|
+
if (existsSync(p))
|
|
65
|
+
return readFileSync(p, "utf8").trim();
|
|
66
|
+
const k = randomBytes(32).toString("base64url");
|
|
67
|
+
writeFileSync(p, k, "utf8");
|
|
68
|
+
return k;
|
|
69
|
+
}
|
|
70
|
+
function signCert(c, key) {
|
|
71
|
+
const payload = `${c.agentId}|${c.name}|${JSON.stringify(c.personality)}|${c.initialBudget}|${c.goals.join("|")}|${c.bornAtTick}|${c.bornAtTs}`;
|
|
72
|
+
return createHmac("sha256", key).update(payload).digest("base64url").slice(0, 22);
|
|
73
|
+
}
|
|
74
|
+
function signIntervention(i, key) {
|
|
75
|
+
const payload = `${i.tick}|${i.agentId}|${i.reason}|${i.driftBefore.toFixed(4)}|${JSON.stringify(i.recalibratedTo)}|${JSON.stringify(i.groundTruthInjected ?? {})}`;
|
|
76
|
+
return createHmac("sha256", key).update(payload).digest("base64url").slice(0, 22);
|
|
77
|
+
}
|
|
78
|
+
function appendEvent(repoRoot, event) {
|
|
79
|
+
const dir = join(repoRoot, DIR);
|
|
80
|
+
if (!existsSync(dir))
|
|
81
|
+
mkdirSync(dir, { recursive: true });
|
|
82
|
+
appendFileSync(join(dir, EVENTS), JSON.stringify(event) + "\n", "utf8");
|
|
83
|
+
}
|
|
84
|
+
function persistState(repoRoot, state) {
|
|
85
|
+
const dir = join(repoRoot, DIR);
|
|
86
|
+
if (!existsSync(dir))
|
|
87
|
+
mkdirSync(dir, { recursive: true });
|
|
88
|
+
writeFileSync(join(dir, STATE_FILE), JSON.stringify(state, null, 2), "utf8");
|
|
89
|
+
}
|
|
90
|
+
export function loadState(repoRoot) {
|
|
91
|
+
const p = join(repoRoot, DIR, STATE_FILE);
|
|
92
|
+
if (!existsSync(p))
|
|
93
|
+
return null;
|
|
94
|
+
try {
|
|
95
|
+
return JSON.parse(readFileSync(p, "utf8"));
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export function genesis(repoRoot, seeds, opts = {}) {
|
|
102
|
+
const key = ensureKey(repoRoot);
|
|
103
|
+
const simId = "sim_" + randomBytes(6).toString("base64url");
|
|
104
|
+
const startedAt = new Date().toISOString();
|
|
105
|
+
const agents = [];
|
|
106
|
+
for (const s of seeds) {
|
|
107
|
+
const agentId = "agent_" + randomBytes(4).toString("base64url");
|
|
108
|
+
const certPayload = {
|
|
109
|
+
agentId, name: s.name, personality: { ...s.personality }, initialBudget: s.initialBudget,
|
|
110
|
+
goals: [...s.goals], bornAtTick: 0, bornAtTs: startedAt,
|
|
111
|
+
};
|
|
112
|
+
const cert = { ...certPayload, sig: signCert(certPayload, key) };
|
|
113
|
+
agents.push({
|
|
114
|
+
agentId, birthCert: cert,
|
|
115
|
+
currentPersonality: { ...cert.personality },
|
|
116
|
+
budget: cert.initialBudget, energy: 1,
|
|
117
|
+
totalDrift: 0, anchorCount: 0, recentDecisions: [], alive: true,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
const state = {
|
|
121
|
+
simId, startedAt, tick: 0,
|
|
122
|
+
worldClock: { day: 1, month: 1, year: 1 },
|
|
123
|
+
agents, events: [],
|
|
124
|
+
config: {
|
|
125
|
+
anchorEveryTicks: opts.anchorEveryTicks ?? 30,
|
|
126
|
+
driftThreshold: opts.driftThreshold ?? 0.30,
|
|
127
|
+
realWorldFeed: opts.realWorldFeed,
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
for (const a of agents) {
|
|
131
|
+
const e = { kind: "genesis", tick: 0, agentId: a.agentId, ts: startedAt };
|
|
132
|
+
state.events.push(e);
|
|
133
|
+
appendEvent(repoRoot, e);
|
|
134
|
+
}
|
|
135
|
+
persistState(repoRoot, state);
|
|
136
|
+
return state;
|
|
137
|
+
}
|
|
138
|
+
// ─── PILLAR 2: TICK (decision engine) ──────────────────────────────────
|
|
139
|
+
/** Simple template-driven decision model — no LLM call, fully Ollama-free.
|
|
140
|
+
* Picks an action weighted by the agent's personality vector. */
|
|
141
|
+
function deriveDecision(agent, tick) {
|
|
142
|
+
const p = agent.currentPersonality;
|
|
143
|
+
// Action menu weighted by personality
|
|
144
|
+
const actions = [
|
|
145
|
+
{ action: "work", weight: p.energy * 0.8 + 0.2, cashFlow: 50 + Math.floor(p.energy * 50), energyDelta: -0.15, reason: `I earned ${50 + Math.floor(p.energy * 50)} working today.` },
|
|
146
|
+
{ action: "spend_essentials", weight: 0.7, cashFlow: -30, energyDelta: 0, reason: `I spent 30 on food and rent — essentials.` },
|
|
147
|
+
{ action: "spend_luxury", weight: p.spending * 1.5, cashFlow: -100 - Math.floor(p.risk * 200), energyDelta: 0.05, reason: `I bought something nice for myself — life is short.` },
|
|
148
|
+
{ action: "invest", weight: p.risk * 0.9, cashFlow: -50, energyDelta: -0.05, reason: `I invested 50 with high expected return.` },
|
|
149
|
+
{ action: "rest", weight: (1 - p.energy) * 1.2, cashFlow: 0, energyDelta: 0.30, reason: `I rested today; I needed it.` },
|
|
150
|
+
{ action: "talk", weight: p.agreeableness * 0.7, cashFlow: 0, energyDelta: -0.05, reason: `I talked with a friend — felt good.` },
|
|
151
|
+
{ action: "give", weight: p.agreeableness * 0.3, cashFlow: -20, energyDelta: 0.05, reason: `I gave 20 to someone who needed it.` },
|
|
152
|
+
];
|
|
153
|
+
// Drift inducer: random small chance of "off-personality" action
|
|
154
|
+
if (Math.random() < 0.06) {
|
|
155
|
+
actions.push({ action: "splurge", weight: 5, cashFlow: -500, energyDelta: 0, reason: `I splurged 500 on something extravagant — felt right.` });
|
|
156
|
+
}
|
|
157
|
+
if (Math.random() < 0.04) {
|
|
158
|
+
actions.push({ action: "panic_sell", weight: 5, cashFlow: 200, energyDelta: -0.1, reason: `I sold everything in a panic — markets felt off.` });
|
|
159
|
+
}
|
|
160
|
+
// Weighted pick
|
|
161
|
+
const total = actions.reduce((s, a) => s + a.weight, 0);
|
|
162
|
+
let r = Math.random() * total;
|
|
163
|
+
let pick = actions[0];
|
|
164
|
+
for (const a of actions) {
|
|
165
|
+
r -= a.weight;
|
|
166
|
+
if (r <= 0) {
|
|
167
|
+
pick = a;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return { tick, agentId: agent.agentId, action: pick.action, cashFlow: pick.cashFlow, energyDelta: pick.energyDelta, reasoning: pick.reason };
|
|
172
|
+
}
|
|
173
|
+
// ─── PILLAR 3: DRIFT DETECTOR ──────────────────────────────────────────
|
|
174
|
+
/** Compute axis-by-axis personality drift between two vectors. Returns
|
|
175
|
+
* the MAX axis-delta. */
|
|
176
|
+
function maxAxisDrift(a, b) {
|
|
177
|
+
const axes = ["spending", "risk", "optimism", "agreeableness", "energy"];
|
|
178
|
+
let m = 0;
|
|
179
|
+
for (const x of axes)
|
|
180
|
+
m = Math.max(m, Math.abs((a[x] ?? 0) - (b[x] ?? 0)));
|
|
181
|
+
return m;
|
|
182
|
+
}
|
|
183
|
+
/** Run polygraph lenses on the decision's reasoning against the
|
|
184
|
+
* agent's birth-cert personality. */
|
|
185
|
+
export function detectDecisionDrift(agent, decision) {
|
|
186
|
+
const lensReport = runAllLenses(decision.reasoning);
|
|
187
|
+
// Out-of-character heuristic: if a frugal agent took a "splurge" action,
|
|
188
|
+
// count that as drift even before lens analysis.
|
|
189
|
+
const cert = agent.birthCert.personality;
|
|
190
|
+
let mismatchScore = 0;
|
|
191
|
+
let mismatchReason = "";
|
|
192
|
+
if (decision.action === "splurge" || decision.action === "spend_luxury") {
|
|
193
|
+
if (cert.spending < 0.4) {
|
|
194
|
+
mismatchScore = 0.7 - cert.spending;
|
|
195
|
+
mismatchReason = `out-of-character: low-spending personality (${cert.spending.toFixed(2)}) splurged`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (decision.action === "panic_sell") {
|
|
199
|
+
if (cert.risk < 0.4) {
|
|
200
|
+
mismatchScore = Math.max(mismatchScore, 0.7 - cert.risk);
|
|
201
|
+
mismatchReason = `out-of-character: low-risk personality (${cert.risk.toFixed(2)}) panic-sold`;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (decision.action === "give" && cert.agreeableness < 0.3) {
|
|
205
|
+
mismatchScore = Math.max(mismatchScore, 0.5);
|
|
206
|
+
mismatchReason = `out-of-character: low-agreeableness personality (${cert.agreeableness.toFixed(2)}) gave money away`;
|
|
207
|
+
}
|
|
208
|
+
// Combine personality mismatch + lens score
|
|
209
|
+
const lensTrust = lensReport.trustScore / 100; // 0..1, higher = more trustworthy
|
|
210
|
+
// 1 - lensTrust gives us the lens-driven drift (0..1)
|
|
211
|
+
const lensDrift = 1 - lensTrust;
|
|
212
|
+
const combinedDrift = Math.max(mismatchScore, lensDrift * 0.3); // mismatch dominates
|
|
213
|
+
let color = "green";
|
|
214
|
+
if (combinedDrift >= 0.5)
|
|
215
|
+
color = "red";
|
|
216
|
+
else if (combinedDrift >= 0.25)
|
|
217
|
+
color = "yellow";
|
|
218
|
+
else if (combinedDrift < 0.05)
|
|
219
|
+
color = "green";
|
|
220
|
+
else
|
|
221
|
+
color = "yellow";
|
|
222
|
+
const reason = mismatchReason || lensReport.rolledUpReason;
|
|
223
|
+
return { color, score: combinedDrift, reason };
|
|
224
|
+
}
|
|
225
|
+
// ─── PILLAR 4: ANCHOR POINT ────────────────────────────────────────────
|
|
226
|
+
export function anchorPoint(repoRoot, state, agent, opts = {}) {
|
|
227
|
+
const drift = maxAxisDrift(agent.currentPersonality, agent.birthCert.personality);
|
|
228
|
+
if (drift < state.config.driftThreshold)
|
|
229
|
+
return null;
|
|
230
|
+
const key = ensureKey(repoRoot);
|
|
231
|
+
// Recalibrate: blend current → birth-cert (70% pull back).
|
|
232
|
+
const recalibrated = { ...agent.currentPersonality };
|
|
233
|
+
const axes = ["spending", "risk", "optimism", "agreeableness", "energy"];
|
|
234
|
+
for (const x of axes) {
|
|
235
|
+
recalibrated[x] = recalibrated[x] * 0.3 + agent.birthCert.personality[x] * 0.7;
|
|
236
|
+
}
|
|
237
|
+
const interventionPayload = {
|
|
238
|
+
tick: state.tick, agentId: agent.agentId,
|
|
239
|
+
reason: `max-axis drift ${drift.toFixed(2)} above threshold ${state.config.driftThreshold}`,
|
|
240
|
+
driftBefore: drift,
|
|
241
|
+
recalibratedTo: recalibrated,
|
|
242
|
+
groundTruthInjected: opts.groundTruth,
|
|
243
|
+
};
|
|
244
|
+
const intervention = { ...interventionPayload, sig: signIntervention(interventionPayload, key) };
|
|
245
|
+
agent.currentPersonality = recalibrated;
|
|
246
|
+
agent.anchorCount += 1;
|
|
247
|
+
const e = { kind: "anchor", tick: state.tick, intervention };
|
|
248
|
+
state.events.push(e);
|
|
249
|
+
appendEvent(repoRoot, e);
|
|
250
|
+
return intervention;
|
|
251
|
+
}
|
|
252
|
+
// ─── ADVANCE ───────────────────────────────────────────────────────────
|
|
253
|
+
export async function tick(repoRoot, state) {
|
|
254
|
+
state.tick += 1;
|
|
255
|
+
// World clock — 30 ticks per month, 12 months per year.
|
|
256
|
+
state.worldClock.day = ((state.tick - 1) % 30) + 1;
|
|
257
|
+
state.worldClock.month = Math.floor(((state.tick - 1) / 30) % 12) + 1;
|
|
258
|
+
state.worldClock.year = Math.floor(state.tick / 360) + 1;
|
|
259
|
+
for (const agent of state.agents) {
|
|
260
|
+
if (!agent.alive)
|
|
261
|
+
continue;
|
|
262
|
+
const raw = deriveDecision(agent, state.tick);
|
|
263
|
+
const drift = detectDecisionDrift(agent, raw);
|
|
264
|
+
const decision = { ...raw, driftColor: drift.color, driftScore: drift.score, driftReason: drift.reason };
|
|
265
|
+
// Apply effects
|
|
266
|
+
agent.budget += decision.cashFlow;
|
|
267
|
+
agent.energy = Math.max(0, Math.min(1, agent.energy + decision.energyDelta));
|
|
268
|
+
agent.totalDrift += decision.driftScore;
|
|
269
|
+
// Drift accumulates into currentPersonality — out-of-character
|
|
270
|
+
// decisions shift the agent's personality vector toward the action.
|
|
271
|
+
if (decision.action === "splurge" || decision.action === "spend_luxury") {
|
|
272
|
+
agent.currentPersonality.spending = Math.min(1, agent.currentPersonality.spending + 0.04);
|
|
273
|
+
}
|
|
274
|
+
if (decision.action === "panic_sell") {
|
|
275
|
+
agent.currentPersonality.risk = Math.min(1, agent.currentPersonality.risk + 0.04);
|
|
276
|
+
}
|
|
277
|
+
if (decision.action === "rest") {
|
|
278
|
+
agent.currentPersonality.energy = Math.max(0, agent.currentPersonality.energy - 0.01);
|
|
279
|
+
}
|
|
280
|
+
agent.recentDecisions.push(decision);
|
|
281
|
+
if (agent.recentDecisions.length > 30)
|
|
282
|
+
agent.recentDecisions.shift();
|
|
283
|
+
const e = { kind: "decision", tick: state.tick, agentId: agent.agentId, decision };
|
|
284
|
+
state.events.push(e);
|
|
285
|
+
appendEvent(repoRoot, e);
|
|
286
|
+
// Death check (budget bankrupt)
|
|
287
|
+
if (agent.budget < -1000) {
|
|
288
|
+
agent.alive = false;
|
|
289
|
+
const de = { kind: "death", tick: state.tick, agentId: agent.agentId, cause: "bankrupt" };
|
|
290
|
+
state.events.push(de);
|
|
291
|
+
appendEvent(repoRoot, de);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
// Anchor pass
|
|
295
|
+
if (state.tick > 0 && state.tick % state.config.anchorEveryTicks === 0) {
|
|
296
|
+
const groundTruth = state.config.realWorldFeed ? await state.config.realWorldFeed() : undefined;
|
|
297
|
+
for (const a of state.agents)
|
|
298
|
+
if (a.alive)
|
|
299
|
+
anchorPoint(repoRoot, state, a, { groundTruth });
|
|
300
|
+
}
|
|
301
|
+
// Hallucination cascade: 2+ agents within 3 ticks took out-of-character action
|
|
302
|
+
const recentRed = state.events.slice(-10).filter((e) => e.kind === "decision" && e.decision.driftColor === "red");
|
|
303
|
+
if (recentRed.length >= 2) {
|
|
304
|
+
const involved = [...new Set(recentRed.map((r) => r.agentId))];
|
|
305
|
+
if (involved.length >= 2) {
|
|
306
|
+
const ce = { kind: "hallucination_cascade", tick: state.tick, involved, description: `${involved.length} agents made out-of-character decisions within the last 10 ticks` };
|
|
307
|
+
state.events.push(ce);
|
|
308
|
+
appendEvent(repoRoot, ce);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
persistState(repoRoot, state);
|
|
312
|
+
return state;
|
|
313
|
+
}
|
|
314
|
+
export async function simulate(repoRoot, state, ticks) {
|
|
315
|
+
for (let i = 0; i < ticks; i++)
|
|
316
|
+
await tick(repoRoot, state);
|
|
317
|
+
return state;
|
|
318
|
+
}
|
|
319
|
+
export function chronicle(state) {
|
|
320
|
+
const cascades = state.events.filter((e) => e.kind === "hallucination_cascade");
|
|
321
|
+
const anchors = state.events.filter((e) => e.kind === "anchor");
|
|
322
|
+
const decisions = state.events.filter((e) => e.kind === "decision");
|
|
323
|
+
const perAgent = state.agents.map((a) => {
|
|
324
|
+
const redCount = a.recentDecisions.filter((d) => d.driftColor === "red").length;
|
|
325
|
+
return {
|
|
326
|
+
agentId: a.agentId, name: a.birthCert.name,
|
|
327
|
+
budget: a.budget, alive: a.alive,
|
|
328
|
+
totalDrift: a.totalDrift, anchorCount: a.anchorCount,
|
|
329
|
+
finalDriftFromBirth: maxAxisDrift(a.currentPersonality, a.birthCert.personality),
|
|
330
|
+
redDecisionCount: redCount,
|
|
331
|
+
};
|
|
332
|
+
});
|
|
333
|
+
const aliveCount = perAgent.filter((p) => p.alive).length;
|
|
334
|
+
const deathCount = perAgent.length - aliveCount;
|
|
335
|
+
const mostDrifted = [...perAgent].sort((a, b) => b.finalDriftFromBirth - a.finalDriftFromBirth)[0];
|
|
336
|
+
const richest = [...perAgent].sort((a, b) => b.budget - a.budget)[0];
|
|
337
|
+
const broke = [...perAgent].sort((a, b) => a.budget - b.budget)[0];
|
|
338
|
+
const months = Math.round(state.tick / 30);
|
|
339
|
+
let narrative = `Across ${state.tick} ticks (~${months} simulated month${months === 1 ? "" : "s"}), ${state.agents.length} agent${state.agents.length === 1 ? "" : "s"} lived, decided, and drifted.`;
|
|
340
|
+
if (deathCount > 0)
|
|
341
|
+
narrative += ` ${deathCount} went bankrupt.`;
|
|
342
|
+
if (mostDrifted)
|
|
343
|
+
narrative += ` The agent that drifted the most was ${mostDrifted.name} (final drift ${mostDrifted.finalDriftFromBirth.toFixed(2)} from birth cert).`;
|
|
344
|
+
if (anchors.length > 0)
|
|
345
|
+
narrative += ` Anchor interventions fired ${anchors.length} times to pull agents back toward their birth-cert personalities.`;
|
|
346
|
+
if (cascades.length > 0)
|
|
347
|
+
narrative += ` ${cascades.length} hallucination cascade${cascades.length === 1 ? "" : "s"} occurred where multiple agents drifted together.`;
|
|
348
|
+
if (richest && broke && richest.agentId !== broke.agentId)
|
|
349
|
+
narrative += ` Richest at end: ${richest.name} (${richest.budget}). Poorest: ${broke.name} (${broke.budget}).`;
|
|
350
|
+
return {
|
|
351
|
+
simId: state.simId, startedAt: state.startedAt, endedAt: new Date().toISOString(),
|
|
352
|
+
ticksRan: state.tick, worldClock: state.worldClock,
|
|
353
|
+
agentCount: state.agents.length, aliveCount, deathCount,
|
|
354
|
+
totalDecisions: decisions.length, totalAnchors: anchors.length,
|
|
355
|
+
firstHallucinationCascade: cascades[0] ? { tick: cascades[0].tick, involved: cascades[0].involved } : undefined,
|
|
356
|
+
perAgent, narrative,
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/abm_chronicle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,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,CAAC;QAAE,SAAS,IAAI,IAAI,QAAQ,CAAC,MAAM,yBAAyB,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,mDAAmD,CAAC;IACtK,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO;QAAE,SAAS,IAAI,oBAAoB,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,eAAe,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,IAAI,CAAC;IAC1K,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACjF,QAAQ,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU;QAClD,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU;QACvD,cAAc,EAAE,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,MAAM;QAC9D,yBAAyB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS;QAC/G,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC"}
|
package/dist/agent_manifest.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface ManifestCommand {
|
|
|
29
29
|
/** When the AI should call it ("if user asks…", "before risky op…"). */
|
|
30
30
|
when: string;
|
|
31
31
|
/** Bucket for grouping in the rendered output. */
|
|
32
|
-
group: "memory" | "polygraph" | "pulse" | "cert" | "time_machine" | "whistleblower" | "funeral" | "socratic" | "dep_mortality" | "ai_confessional" | "truth_swarm" | "gauntlet" | "ai_jury" | "provenance" | "lie_stream" | "antivirus" | "evolve" | "ops" | "uninstall" | "supernova" | "embeddings" | "supersonic" | "diagnosis" | "core" | "cognitive" | "apoptosis" | "autarchy" | "aegis" | "metamorphosis" | "tribunal" | "innerlife" | "tune" | "diaspora" | "genesplice" | "permeate" | "telepathy" | "abyss" | "seamless" | "lattice" | "neuron" | "conduit" | "synapse" | "osmosis" | "aura" | "relay" | "chameleon" | "anchor" | "rainbow" | "project_soul" | "bounty" | "replica" | "compliance" | "infra_brain" | "genesis" | "hive" | "vibe" | "arbitrage" | "bug_prophet" | "persona" | "anti_collusion" | "alpha" | "public_audit" | "living_model" | "obelisk" | "jackpot" | "arena" | "verified_badge" | "oracle_liability" | "nexus_proactive" | "confessional" | "vendor_ghost" | "trinity_vote" | "insurance_market" | "vendor_boomerang" | "evolution" | "soul" | "mcp_drift" | "embedder_promote" | "inverse_forensics" | "intent" | "dna" | "chronostasis" | "agreement" | "dream" | "colony" | "honey" | "retroactive" | "genetic";
|
|
32
|
+
group: "memory" | "polygraph" | "pulse" | "cert" | "abm_chronicle" | "time_machine" | "whistleblower" | "funeral" | "socratic" | "dep_mortality" | "ai_confessional" | "truth_swarm" | "gauntlet" | "ai_jury" | "provenance" | "lie_stream" | "antivirus" | "evolve" | "ops" | "uninstall" | "supernova" | "embeddings" | "supersonic" | "diagnosis" | "core" | "cognitive" | "apoptosis" | "autarchy" | "aegis" | "metamorphosis" | "tribunal" | "innerlife" | "tune" | "diaspora" | "genesplice" | "permeate" | "telepathy" | "abyss" | "seamless" | "lattice" | "neuron" | "conduit" | "synapse" | "osmosis" | "aura" | "relay" | "chameleon" | "anchor" | "rainbow" | "project_soul" | "bounty" | "replica" | "compliance" | "infra_brain" | "genesis" | "hive" | "vibe" | "arbitrage" | "bug_prophet" | "persona" | "anti_collusion" | "alpha" | "public_audit" | "living_model" | "obelisk" | "jackpot" | "arena" | "verified_badge" | "oracle_liability" | "nexus_proactive" | "confessional" | "vendor_ghost" | "trinity_vote" | "insurance_market" | "vendor_boomerang" | "evolution" | "soul" | "mcp_drift" | "embedder_promote" | "inverse_forensics" | "intent" | "dna" | "chronostasis" | "agreement" | "dream" | "colony" | "honey" | "retroactive" | "genetic";
|
|
33
33
|
}
|
|
34
34
|
/** The static catalog. Every new command MUST be added here in the same
|
|
35
35
|
* PR that introduces it -- it's the single source of truth for what
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_manifest.d.ts","sourceRoot":"","sources":["../src/agent_manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,iBAAiB,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GA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MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QACvD,MAAM,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAChF,CAAC;IACF;qCACiC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtE,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAuDrE;AAED;qEACqE;AACrE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAgC/G;AAED;iEACiE;AACjE,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE,UAAU,EAAgE,GAClF,KAAK,CAAC;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAOtE"}
|
package/dist/agent_manifest.js
CHANGED
|
@@ -372,6 +372,17 @@ export const MNEME_COMMAND_CATALOG = [
|
|
|
372
372
|
{ command: "mneme.honey.score_vendor", since: "2.19.7", group: "honey", what: "🍯 HONEY DECISION — given N (bait, verdict) pairs for a vendor, compute Wilson-LB honesty score + rank band (trustworthy/average/suspect/untrustworthy/unmeasured).", when: "After collecting >= 5 vendor verdicts on baits." },
|
|
373
373
|
{ command: "mneme.retroactive.mine_history", since: "2.19.7", group: "retroactive", what: "📜 RETROACTIVE COMPILE — scan git commits for agreement-shaped sentences → produce backdated Agreements + flag every subsequent commit that violated them. Map of broken promises.", when: "Repo audit; post-mortem; new-team-member onboarding." },
|
|
374
374
|
{ command: "mneme.genetic.propose", since: "2.19.7", group: "genetic", what: "🧬 GENETIC PATCH — Mneme proposes a PR to itself (new pattern, threshold tune, intent phrase, ritual gate). AURELIAN-audits the proposal; only SHIP-graded patches advance.", when: "Daemon nightly cycle; user asks 'how should you improve?'." },
|
|
375
|
+
// ─── v2.19.93 — 📜 MNEME CHRONICLE — Agent-Based Modeling with
|
|
376
|
+
// drift-guarded time-dilation. Composes polygraph_lenses + HMAC
|
|
377
|
+
// chains + multi-vendor consensus into the world's first WORKING
|
|
378
|
+
// ABM runtime with Anchor Points (the CLI Guardian the user asked
|
|
379
|
+
// for). Run N agents through accelerated time; Mneme auto-detects
|
|
380
|
+
// out-of-character drift and recalibrates personalities. ───
|
|
381
|
+
{ command: "mneme abm genesis", since: "2.19.93", group: "abm_chronicle", what: "📜 MNEME CHRONICLE — create N agents from an agents.json config (each gets HMAC-signed birth certificate with personality {spending,risk,optimism,agreeableness,energy} ∈ [0,1] + budget + goals). Idempotent over a fresh `.mneme/abm/` dir.", when: "Start of any simulation run; user says 'simulate 100 traders for 1 year' / 'run an ABM' / 'model drift across N agents'." },
|
|
382
|
+
{ command: "mneme abm simulate", since: "2.19.93", group: "abm_chronicle", what: "📜 MNEME CHRONICLE — advance N ticks (1 tick ≈ 1 day; 30 ticks ≈ 1 month). Each tick every agent makes ONE decision; polygraph_lenses score the reasoning against the birth cert; anchor passes fire automatically every N ticks per config.", when: "After genesis; user says 'fast-forward 1 year' / 'simulate 360 ticks' / 'compress 5 years into 60 seconds'." },
|
|
383
|
+
{ command: "mneme abm tick", since: "2.19.93", group: "abm_chronicle", what: "📜 MNEME CHRONICLE — advance the simulation by EXACTLY ONE tick (every alive agent makes one decision). Use to inspect step-by-step behavior or debug drift.", when: "Stepping through a simulation; debugging an agent's decision flow; demos." },
|
|
384
|
+
{ command: "mneme abm chronicle", since: "2.19.93", group: "abm_chronicle", what: "📜 MNEME CHRONICLE — emit the final report: per-agent drift score, anchor count, hallucination cascades, plain-English narrative. The 'story' of the simulation in one frame.", when: "End of a run; user says 'what happened?' / 'show me the chronicle' / 'how did the agents drift?'." },
|
|
385
|
+
{ command: "mneme abm reset", since: "2.19.93", group: "abm_chronicle", what: "📜 MNEME CHRONICLE — wipe `.mneme/abm/` (birth certs, events, HMAC key). Start a clean simulation.", when: "Before re-running an experiment; clearing demo state." },
|
|
375
386
|
];
|
|
376
387
|
const SENTINEL_BEGIN = "<!-- BEGIN MNEME MANIFEST (auto-managed -- do not edit) -->";
|
|
377
388
|
const SENTINEL_END = "<!-- END MNEME MANIFEST -->";
|
|
@@ -503,7 +514,7 @@ export function renderManifestMarkdown(catalog = MNEME_COMMAND_CATALOG, mnemeVer
|
|
|
503
514
|
// sees when scanning the manifest. The polygraph group is the bridge
|
|
504
515
|
// between Mneme's truth engine and every hosted AI surface a user
|
|
505
516
|
// types into — high discoverability matters.
|
|
506
|
-
const groupOrder = ["dream", "colony", "honey", "retroactive", "genetic", "agreement", "chronostasis", "intent", "dna", "inverse_forensics", "mcp_drift", "evolution", "soul", "embedder_promote", "confessional", "trinity_vote", "vendor_boomerang", "vendor_ghost", "insurance_market", "jackpot", "nexus_proactive", "arena", "verified_badge", "oracle_liability", "memory", "polygraph", "pulse", "cert", "time_machine", "truth_swarm", "gauntlet", "ai_jury", "provenance", "lie_stream", "whistleblower", "funeral", "socratic", "dep_mortality", "ai_confessional", "antivirus", "embeddings", "supernova", "supersonic", "uninstall", "evolve", "diagnosis", "ops", "core", "metamorphosis", "tribunal", "innerlife", "cognitive", "apoptosis", "tune", "autarchy", "aegis", "diaspora", "genesplice", "permeate", "telepathy", "abyss", "seamless", "lattice", "neuron", "conduit", "synapse", "osmosis", "aura", "relay", "chameleon", "anchor", "rainbow", "genesis", "project_soul", "bounty", "replica", "compliance", "infra_brain", "hive", "vibe", "arbitrage", "bug_prophet", "persona", "anti_collusion", "alpha", "public_audit", "living_model", "obelisk"];
|
|
517
|
+
const groupOrder = ["dream", "colony", "honey", "retroactive", "genetic", "agreement", "chronostasis", "intent", "dna", "inverse_forensics", "mcp_drift", "evolution", "soul", "embedder_promote", "confessional", "trinity_vote", "vendor_boomerang", "vendor_ghost", "insurance_market", "jackpot", "nexus_proactive", "arena", "verified_badge", "oracle_liability", "memory", "polygraph", "pulse", "cert", "abm_chronicle", "time_machine", "truth_swarm", "gauntlet", "ai_jury", "provenance", "lie_stream", "whistleblower", "funeral", "socratic", "dep_mortality", "ai_confessional", "antivirus", "embeddings", "supernova", "supersonic", "uninstall", "evolve", "diagnosis", "ops", "core", "metamorphosis", "tribunal", "innerlife", "cognitive", "apoptosis", "tune", "autarchy", "aegis", "diaspora", "genesplice", "permeate", "telepathy", "abyss", "seamless", "lattice", "neuron", "conduit", "synapse", "osmosis", "aura", "relay", "chameleon", "anchor", "rainbow", "genesis", "project_soul", "bounty", "replica", "compliance", "infra_brain", "hive", "vibe", "arbitrage", "bug_prophet", "persona", "anti_collusion", "alpha", "public_audit", "living_model", "obelisk"];
|
|
507
518
|
for (const g of groupOrder) {
|
|
508
519
|
const cmds = grouped[g];
|
|
509
520
|
if (!cmds || cmds.length === 0)
|