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

Function outcome

test/sessionStartScope.test.js:77–87  ·  view source on GitHub ↗
(note, { workspace_id, cwd } = {})

Source from the content-addressed store, hash-verified

75// A "good" recent successful outcome that passes filterRelevantOutcomes
76// (status success, score >= 0.5, timestamped now), tagged with a workspace.
77function outcome(note, { workspace_id, cwd } = {}) {
78 const e = {
79 timestamp: new Date().toISOString(),
80 gene_id: 'ad_hoc',
81 signals: ['stable_success_plateau'],
82 outcome: { status: 'success', score: 0.8, note },
83 };
84 if (workspace_id !== undefined) e.workspace_id = workspace_id;
85 if (cwd !== undefined) e.cwd = cwd;
86 return e;
87}
88
89function runStart(env) {
90 const out = execFileSync('node', [scriptPath], {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected