Skip to content

Fix pattern decay rates and watcher noise filtering#270

Merged
CalebisGross merged 1 commit intomainfrom
fix/pattern-decay-and-noise
Mar 20, 2026
Merged

Fix pattern decay rates and watcher noise filtering#270
CalebisGross merged 1 commit intomainfrom
fix/pattern-decay-and-noise

Conversation

@CalebisGross
Copy link
Copy Markdown
Collaborator

Summary

Three signal quality fixes found during agent audit of v0.26.0:

1. Pattern decay was effectively disabled for established patterns

Self-sustaining patterns (10+ evidence, 0.9+ strength) had 0.9999 per-cycle decay — a month of hourly consolidation only reduced them by 0.07%. Stale patterns from weeks ago were stuck at strength 1.0.

Decay type Before After Monthly loss
Self-sustaining 0.9999 0.995 0.07% → ~30%
Normal baseline 0.998 0.995 ~18% → ~30%
Stale (healthy evidence) 0.98 0.97 per 7-day check → per 3-day
Stale (weak evidence) 0.90 0.85 per 7-day check → per 3-day

2. Release tooling files bypassed heuristic filtering

.release-please-manifest.json scored 0.45 heuristic (0.3 base + 0.15 JSON config bonus), clearing the 0.4 salience floor. Added to hard-reject list alongside CHANGELOG.md.

3. Salience floor was too permissive

Default was 0.0 (effectively disabled). Raised to 0.5 to filter shallow config changes and desktop noise before they reach the encoding pipeline.

Test plan

  • make build + make test pass
  • golangci-lint run — 0 issues
  • Pattern decay, perception, and encoding tests all pass

Three fixes for signal quality issues found during agent audit:

1. Pattern decay rates increased — self-sustaining patterns now decay
   at 0.995/cycle (was 0.9999, ~30% monthly loss vs ~0.07%). Normal
   patterns 0.995 (was 0.998). Stale threshold reduced from 7 to 3
   days. Stale decay rates increased across all tiers.

2. Hard-reject release tooling files — .release-please-manifest.json
   and CHANGELOG.md added to heuristic lockfile rejection list. These
   are deterministic files with zero semantic value.

3. Salience floor raised 0.0 → 0.5 in DefaultConfig — non-MCP
   memories below 0.5 salience (shallow config changes, desktop noise)
   are skipped during encoding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CalebisGross CalebisGross merged commit 586969c into main Mar 20, 2026
@CalebisGross CalebisGross deleted the fix/pattern-decay-and-noise branch March 20, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant