Skip to content

docs: retrieval-quality documentation sweep + live footer wrong-tool fix#86

Merged
emp3thy merged 3 commits into
mainfrom
docs/readme-retrieval-quality
Jul 24, 2026
Merged

docs: retrieval-quality documentation sweep + live footer wrong-tool fix#86
emp3thy merged 3 commits into
mainfrom
docs/readme-retrieval-quality

Conversation

@emp3thy

@emp3thy emp3thy commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Brings all non-superpowers documentation in line with the shipped retrieval-quality stack (PRs #83/#84/#85), and fixes a live prompt-text bug the sweep surfaced.

  • README: "How it works" now describes deferred, evidence-gated injection and the rating loop with receipts; config table gains BETTER_MEMORY_INJECT_MODE / CONTEXT_VEC_FLOOR (MIN_HITS marked deprecated); tool tables updated (retrieve(query, ...) Wilson-ranked with exploration slot, credit(..., evidence) required, apply_session_ratings evidence contract, deferred bootstrap + drift sentinel); new "Retrieval-quality layer" architecture section.
  • Docs sweep (7 files): worst finds — three in-repo skill docs routed memory validation to memory.record_use(id), which silently no-ops on reflection/semantic ids (correct tool: memory.credit); website/architecture.md claimed reflections carry reinforcement_score (they don't); docs/hooks-setup.md's example still showed the async Stop-hook registration that the decision doc documents as the 0%-rated bug; stale retrieve signature/defaults.
  • Live bug fix (aea6ddb): the SessionStart bootstrap _FOOTER — injected into every session's first-turn context in both modes — instructed the same silent-no-op record_use call. Now credits via memory_credit(kind, id, class, evidence). Pinning test updated.

Validation

Reviewer verified every new claim against live code (retrieve schema/defaults, Wilson formula, evidence contract, sync Stop hook, sentinel, record_use no-op confirmed at services/observation.py); canary + bootstrap/hook tests green (125 passed).

🤖 Generated with Claude Code

emp3thy and others added 3 commits July 24, 2026 12:35
…nking, evidence receipts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The SessionStart bootstrap footer (services/session_bootstrap.py _FOOTER,
rendered into both the legacy and deferred render paths) told Claude to
call memory_record_use on injected memories -- but bootstrap only ever
injects reflections/semantic memories, and record_use only writes to the
observations table, so the instruction silently no-op'd every session.
Same wrong-tool class as the docs sweep in the prior commit, except this
one is live prompt text, not documentation. Replaced with the credit form
(memory_credit(kind, id, class, evidence)) and updated the one test that
pinned the old footer substring. Also reworded the matching leftover row
in memory-write.md that instructed record_use for a retrieved memory.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Claude BugBot Analysis

This PR is almost entirely documentation/prose updates (README, website docs, skill markdown, hooks-setup docs) describing new ranking/injection/rating behavior; the only source change is a footer string constant in session_bootstrap.py, which matches the existing unprefixed 'memory_credit' naming convention already used elsewhere in the codebase (services/relevant.py), so no genuine logic errors, security issues, or defects were found in the added/modified lines.

No bugs were detected in this PR.

@emp3thy
emp3thy merged commit 8c2b021 into main Jul 24, 2026
3 checks passed
@emp3thy
emp3thy deleted the docs/readme-retrieval-quality branch July 24, 2026 11:55
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