feat: knowledge-retrieval detection + init wizard UserPromptSubmit fix#17
Merged
CLCrawford-dev merged 2 commits intomainfrom Feb 21, 2026
Merged
feat: knowledge-retrieval detection + init wizard UserPromptSubmit fix#17CLCrawford-dev merged 2 commits intomainfrom
CLCrawford-dev merged 2 commits intomainfrom
Conversation
…ion close Close the scar enforcement gap where agents confirm scars (APPLYING) but never report outcomes, causing 80% null execution_successful in scar_usage. Option A: session_close defaults execution_successful based on confirm_scars decision (APPLYING→true, unmentioned→false). Option B: new reflect_scars tool (gitmem-rf/gm-reflect) for end-of-session OBEYED/REFUTED evidence, bridged into scar_usage with priority over defaults. Refs: OD-772 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Routes institutional-memory queries ("what's our process for X",
"recall how we handle Y") through GitMem search instead of passive
scar injection. Fixes UserPromptSubmit missing from init wizard's
buildClaudeHooks(). Updates stale EXPECTED_TOOL_COUNTS (free 21→22,
pro 26→27, dev 30→31).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
auto-retrieve-hook.sh— routes "what's our process for X" / "recall how we handle Y" queries through GitMem search instead of passive scar injectionbuildClaudeHooks()ininit-wizard.jsmissingUserPromptSubmitevent (plugin users had it via hooks.json, init wizard users did not)EXPECTED_TOOL_COUNTSin smoke tests (free 21→22, pro 26→27, dev 30→31) — drifted afterarchive_learningwas ungated for free tier andgraph_traversewas addedTest plan
🤖 Generated with Claude Code