MCPcopy Create free account
hub / github.com/EvoMap/evolver / mkEventWithTs

Function mkEventWithTs

test/recallVerifyReport.test.js:241–258  ·  view source on GitHub ↗
(type, outcome, latency_ms, age_at_verify_ms, ts, reason)

Source from the content-addressed store, hash-verified

239}
240
241function mkEventWithTs(type, outcome, latency_ms, age_at_verify_ms, ts, reason) {
242 return {
243 type: 'MemoryGraphEvent',
244 kind: 'recall_verify',
245 id: 'mge_' + ts + '_' + Math.random().toString(36).slice(2, 8),
246 ts,
247 asset: { type, id: 'sha256:dummy' + Math.random().toString(36).slice(2, 8) },
248 verification: {
249 outcome,
250 reason: reason || null,
251 attempts: 1,
252 latency_ms,
253 age_at_verify_ms,
254 recalled_hash: outcome === 'roundtrip_ok' ? 'sha256:dummy' : null,
255 },
256 signal: { signals: [] },
257 };
258}

Callers 2

mkEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected