Skip to content

feat(cognition): RecallFaculty.relevance_weight configurable (unblocks replay bench) - #1656

Merged
joelteply merged 1 commit into
canaryfrom
feat/recall-tunable-relevance-weight
Jun 20, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/recall-tunable-relevance-weight

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Makes the recall relevance/salience blend a tunable field (with_relevance_weight) so IntelMac's replay A/B bench can sweep it. Test proves 0.0→salience, 1.0→relevance. Small, additive, 8 recall tests green.

…ks the replay A/B bench

RELEVANCE_WEIGHT was a const; the bench (IntelMac, e07ed2b) needs it as a tunable
field to sweep 0.0 (pure salience = old behaviour) → 1.0 (pure relevance) and diff
the traces. Now a per-faculty field: with_relevance_weight(w) (clamped [0,1]) +
relevance_weight() getter; DEFAULT_RELEVANCE_WEIGHT (0.5) is the default.
blended_score takes the weight as a param.

Test relevance_weight_tunes_the_blend: weight 0.0 surfaces the more-salient
irrelevant memory, weight 1.0 surfaces the topically-relevant one — the sweep the
bench diffs to prove recall propagates to behaviour. 8 recall tests green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@joelteply
joelteply merged commit f93664b into canary Jun 20, 2026
4 checks passed
@joelteply
joelteply deleted the feat/recall-tunable-relevance-weight branch June 20, 2026 00:57
joelteply added a commit that referenced this pull request Nov 4, 2026
…ain window excludes its commit, Shown reads a one-digit-off UUID (card 484b000b) (#5776)

The range is exactly three airc PRs:
- #1655 (card 0dc9af03): addressed admission reads trust through one held handle, a
  primary-key seek per frame (the daemon had opened ~24 SQLite connections/s on the IntelMac).
- #1656 (card e3077c20): the drain window is sized by its statements' work, not the commit's
  fixed sync (Windows CI compaction drain went from >120 s to an airc-store suite of 40.98 s).
- #1657 (airc slice of card 484b000b): Shown reads a UUID one hex digit off by its leading
  short form, against the caller's candidates only.

All three are additive to the APIs continuum uses (TrustStore and peer_trust are new; the
free airc_trust functions and Shown's existing forms are unchanged). Cargo.lock changes only
the 15 rev lines; no dependency is added or removed.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant