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

Function writeLastRun

test/solidifyIntegration.test.js:100–127  ·  view source on GitHub ↗
(evolutionDir, overrides = {})

Source from the content-addressed store, hash-verified

98}
99
100function writeLastRun(evolutionDir, overrides = {}) {
101 const lastRun = {
102 selected_gene_id: 'gene_test_solidify',
103 signals: ['test', 'area:testing'],
104 mutation: {
105 type: 'Mutation',
106 id: 'mut_test_solidify',
107 category: 'repair',
108 trigger_signals: ['test'],
109 target: 'behavior:test_coverage',
110 expected_effect: 'improved test coverage',
111 risk_level: 'low',
112 },
113 personality_state: {
114 type: 'PersonalityState',
115 rigor: 0.8,
116 creativity: 0.5,
117 verbosity: 0.5,
118 risk_tolerance: 0.2,
119 obedience: 0.8,
120 },
121 parent_event_id: null,
122 ...overrides,
123 };
124 const statePath = path.join(evolutionDir, 'evolution_solidify_state.json');
125 fs.writeFileSync(statePath, JSON.stringify({ last_run: lastRun }, null, 2), 'utf8');
126 return lastRun;
127}
128
129// Require solidify AFTER env is set (paths bake in on first require).
130// We do a fresh require inside each describe block's before() instead of at

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected