Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function main() {
const maxRssMb = parseMs(process.env.EVOLVER_MAX_RSS_MB, 500) || 500;
const suicideEnabled = String(process.env.EVOLVER_SUICIDE || '').toLowerCase() !== 'false';

let currentSleepMs = Math.min(maxSleepMs, Math.max(minSleepMs, minSleepMs));
let currentSleepMs = minSleepMs;
let cycleCount = 0;

while (true) {
Expand Down
1 change: 0 additions & 1 deletion src/evolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,6 @@ async function run() {
try {
const runId = `run_${Date.now()}`;
const parentEventId = getLastEventId();
const selectedBy = memoryAdvice && memoryAdvice.preferredGeneId ? 'memory_graph+selector' : 'selector';

// Baseline snapshot (before any edits).
let baselineUntracked = [];
Expand Down
1 change: 1 addition & 0 deletions src/gep/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,6 @@ module.exports = {
selectGene,
selectCapsule,
buildSelectorDecision,
matchPatternToSignals,
};

4 changes: 2 additions & 2 deletions src/gep/solidify.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ function checkConstraints({ gene, blast, blastRadiusEstimate, repoRoot }) {

if (!gene || gene.type !== 'Gene') return { ok: true, violations, warnings, blastSeverity };
const constraints = gene.constraints || {};
const maxFiles = Math.max(Number(constraints.max_files) || 0, 20);
const DEFAULT_MAX_FILES = 20;
const maxFiles = Number(constraints.max_files) > 0 ? Number(constraints.max_files) : DEFAULT_MAX_FILES;

// --- Blast radius severity classification ---
blastSeverity = classifyBlastSeverity({ blast, maxFiles });
Expand Down Expand Up @@ -1076,7 +1077,6 @@ function solidify({ intent, summary, dryRun = false, rollbackOnFailure = true }
// Search-First Evolution: auto-publish eligible capsules to the Hub (as Gene+Capsule bundle).
let publishResult = null;
if (!dryRun && capsule && capsule.a2a && capsule.a2a.eligible_to_broadcast) {
const sourceType = lastRun && lastRun.source_type ? String(lastRun.source_type) : 'generated';
const autoPublish = String(process.env.EVOLVER_AUTO_PUBLISH || 'true').toLowerCase() !== 'false';
const visibility = String(process.env.EVOLVER_DEFAULT_VISIBILITY || 'public').toLowerCase();
const minPublishScore = Number(process.env.EVOLVER_MIN_PUBLISH_SCORE) || 0.78;
Expand Down