docs(spec): proactive enrichment-recall subsystem#150
Open
jordanrburger wants to merge 1 commit into
Open
Conversation
…ber" loop) Design spec (for review, not yet implemented) for upstreaming the proactive KB-enrichment loop — the dreaming-run "🧠 Help me remember" block that asks the user a small ranked set of connector-blind questions and feeds answers back into the KB. None of it exists in the engine today (no generator script, no phase, no state files). Proposed design: port the read-only generator as a tenant-agnostic cat-1 script (de-personalized — the scanning logic is generic, but comments/string-literals/one employer-specific regex need scrubbing), seed empty install-only state files (stoplist + qa-log) that survive upgrades, and add a recall section to phases/modes/feedback-processing.md carrying the quality rules (user-only-answerable, no over-suppression-to-zero, self-containment) + the rotation/rejection loop. Alternatives A (prose-only, no script) and B (no persistent state) considered and rejected. Flags the engine's missing dreaming notification-composition phase + the regex-generalization risk for reviewers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design review only — no behavior change. Adds a design spec; implementation follows once the approach is agreed. Companion to #149 (briefing-mode layer).
Context
A mature instance runs a pull-capture loop: at the end of a dreaming run it appends a small ranked set of "🧠 Help me remember …" questions to its wrap DM — facts no connector can see (in-person events, decisions, head-knowledge) — and feeds the answers back into the KB. The engine has none of it: no generator script, no phase, no state files.
Proposed design
templates/scripts/generate-enrichment-questions.py, wired like the existingrecurring-task-status.py). It's a pure-stdlib, read-only KB scanner that ranks connector-blind candidate questions and applies rotation (--exclude) + a persistent stoplist (--reject-file). The scanning logic is already generic; de-personalization is the work — comments, string literals, and one employer-specific regex guard.enrichment-stoplist.txt,enrichment-qa-log.md) so upgrades never clobber a user's accumulated suppression/history.phases/modes/feedback-processing.md(enrichment is the pull-capture half of the feedback loop) carrying the quality rules — user-only-answerable (not connector-answerable), no over-suppression to zero, self-containment — plus the rotation + in-thread-rejection loop.Alternatives A (prose-only, no script — loses deterministic rotation/suppression) and B (no persistent state — loses permanent suppression) documented and rejected.
Asking reviewers
feedback-processing.md. Acceptable, or worth a notification-phase consolidation first?Spec:
docs/superpowers/specs/2026-06-21-enrichment-recall-subsystem-design.md🤖 Generated with Claude Code