Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

fix: Stop creating noise learning files for neutral (5/10) sentiment ratings

Aaron Fields821f08b3298b
diff --git a/Releases/v3.0/.claude/hooks/RatingCapture.hook.ts b/Releases/v3.0/.claude/hooks/RatingCapture.hook.ts
index a8eda2a1..1499ec2d 100755
--- a/Releases/v3.0/.claude/hooks/RatingCapture.hook.ts
+++ b/Releases/v3.0/.claude/hooks/RatingCapture.hook.ts
@@ -294,7 +294,8 @@ function captureLowRatingLearning(
detailedContext: string,
source: 'explicit' | 'implicit'
): void {
- if (rating >= 6) return;
+ if (rating >= 5) return; // 5 = neutral (no sentiment), only capture actual negatives (<=4)
+ if (!detailedContext?.trim()) return; // Skip if no meaningful context to learn from
const { year, month, day, hours, minutes, seconds } = getPSTComponents();
const yearMonth = `${year}-${month}`;
@@ -370,7 +371,7 @@ async function main() {
writeRating(entry);
triggerTrending();
- if (explicitResult.rating < 6) {
+ if (explicitResult.rating < 5) {
// Get last response for context
let responseContext = '';
try {
@@ -455,7 +456,7 @@ async function main() {
writeRating(entry);
triggerTrending();
- if (sentiment.rating < 6) {
+ if (sentiment.rating < 5) {
captureLowRatingLearning(
sentiment.rating,
sentiment.summary,