clementine-agent 1.18.164 → 1.18.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/self-improve.js +22 -0
- package/package.json +1 -1
|
@@ -1393,6 +1393,17 @@ export class SelfImproveLoop {
|
|
|
1393
1393
|
const state = this.loadState();
|
|
1394
1394
|
state.pendingApprovals = Math.max(0, state.pendingApprovals - 1);
|
|
1395
1395
|
this.saveState(state);
|
|
1396
|
+
// 1.18.165 — record the goal-area approval signal so the
|
|
1397
|
+
// hypothesizer biases future cycles toward goal patterns the
|
|
1398
|
+
// owner has accepted (the original 1.18.161 wiring missed
|
|
1399
|
+
// this branch's early return — caught by the audit).
|
|
1400
|
+
recordApprovalSignal({
|
|
1401
|
+
experimentId,
|
|
1402
|
+
area: pending.area,
|
|
1403
|
+
target: pending.target,
|
|
1404
|
+
hypothesis: pending.hypothesis,
|
|
1405
|
+
decision: 'approved',
|
|
1406
|
+
});
|
|
1396
1407
|
logger.info({ id: experimentId, target: pending.target }, 'Goal created from self-improve proposal');
|
|
1397
1408
|
return `Goal created: ${goalData.title ?? goalSlug}`;
|
|
1398
1409
|
}
|
|
@@ -1470,6 +1481,17 @@ export class SelfImproveLoop {
|
|
|
1470
1481
|
}) + '\n');
|
|
1471
1482
|
}
|
|
1472
1483
|
catch { /* ignore impact-check schedule errors */ }
|
|
1484
|
+
// 1.18.165 — record the skill-area approval signal. Skills are
|
|
1485
|
+
// the highest-leverage approval pattern (the owner approving a
|
|
1486
|
+
// skill-body edit is a strong signal); the original 1.18.161
|
|
1487
|
+
// wiring missed this branch's early return.
|
|
1488
|
+
recordApprovalSignal({
|
|
1489
|
+
experimentId,
|
|
1490
|
+
area: pending.area,
|
|
1491
|
+
target: pending.target,
|
|
1492
|
+
hypothesis: pending.hypothesis,
|
|
1493
|
+
decision: 'approved',
|
|
1494
|
+
});
|
|
1473
1495
|
return `Applied skill change to ${path.relative(VAULT_DIR, targetPath)} (useCount preserved, version bumped)`;
|
|
1474
1496
|
}
|
|
1475
1497
|
catch (err) {
|