Commit 574d639
docs(search): include recency factor in ranking formula (#215)
## Summary
- Fixes #203: `docs/temperature.md` and `docs/search.md` stated `score =
relevance × (0.3 + 0.7 × temperature)`, but `pkg/query/rank.go`
multiplies by a third `recency` factor (`1 / (1 +
hours_since_last_access / 24)`, `1.0` for never-accessed nodes). Docs
now reflect the real three-factor formula.
- Scope extended beyond the two files the issue named to also cover
`skills/remind/SKILL.md` (the agent-facing mental model) and
`.claude/skills/tune-temperature-policy/SKILL.md` — `CLAUDE.md`'s "Tread
carefully — Temperature policy" section explicitly flags those as
silent-drift surfaces that must stay in sync.
- Docs-only. No code change.
## Test plan
- [x] `make check-skills` — PASS (`skills/remind/SKILL.md` still under
180-line budget)
- [x] Negative grep: no remaining `(0.3 + 0.7 × temperature)` occurrence
lacks a trailing `× recency` (or is the standalone `temperature_score =
…` breakdown).
- [x] Manual read-through of both `docs/*.md` paragraphs for tone
consistency.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 53c4851 commit 574d639
4 files changed
Lines changed: 5 additions & 5 deletions
File tree
- .claude/skills/tune-temperature-policy
- docs
- skills/remind
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments