(note, { workspace_id, cwd } = {})
| 75 | // A "good" recent successful outcome that passes filterRelevantOutcomes |
| 76 | // (status success, score >= 0.5, timestamped now), tagged with a workspace. |
| 77 | function 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 | |
| 89 | function runStart(env) { |
| 90 | const out = execFileSync('node', [scriptPath], { |
no outgoing calls
no test coverage detected