Skip to content

fix: named serde default for supersedes_demotion#27

Open
Liorrr wants to merge 1 commit intomasterfrom
fix/ks78-serde-default
Open

fix: named serde default for supersedes_demotion#27
Liorrr wants to merge 1 commit intomasterfrom
fix/ks78-serde-default

Conversation

@Liorrr
Copy link
Copy Markdown
Contributor

@Liorrr Liorrr commented Apr 10, 2026

Summary

  • Greptile P1 from PR KS78: Relative supersession demotion — multiplicative 0.40 (#11) #22: #[serde(default)] on supersedes_demotion resolved to f32::default() = 0.0 instead of the intended 0.40
  • Users with partial config.toml files got zero demotion applied to superseded memories
  • Adds default_supersedes_demotion() helper following the existing pattern (default_recency_weight, default_child_rescue_only, etc.)

Test plan

  • cargo clippy -p shrimpk-core -- -D warnings passes (0 warnings)
  • cargo test -p shrimpk-core passes (91/91)
  • cargo check --workspace passes

🤖 Generated with Claude Code

#[serde(default)] on supersedes_demotion resolved to f32::default() = 0.0
instead of the intended 0.40. Users with partial config.toml files got no
demotion applied to superseded memories.

Adds default_supersedes_demotion() helper following the existing pattern
(default_recency_weight, default_child_rescue_only, etc.) and wires it
via #[serde(default = "default_supersedes_demotion")].

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liorrr has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

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