feat: injection-proof activity graph in cch view + technical-writer support (v0.9.1)#38
Open
Shreyan1 wants to merge 2 commits into
Open
feat: injection-proof activity graph in cch view + technical-writer support (v0.9.1)#38Shreyan1 wants to merge 2 commits into
Shreyan1 wants to merge 2 commits into
Conversation
…upport Injection previously left no durable trace: the UserPromptSubmit hook built and returned context but recorded nothing, so 'is it actually injecting?' was unanswerable. Now every prompt that returns learned context appends one metadata line (timestamp, tool, session, habit/memory counts, scope) to events.jsonl, fail-open and rotation-capped like log.jsonl but in its own file so no log.jsonl consumer's 'one line = one captured edit' assumption changes. cch view renders it as a capture-vs-injection activity graph with a last-injected proof line. Writer support: repo scan now samples article .md/.mdx pages (instruction docs and README excluded) so a docs corpus seeds house style cold; both extraction prompts name writing conventions (heading case, voice, callouts, frontmatter) as first-class habits; the injection wrapper says 'code or documentation'. Verified live: a docs repo scan learned frontmatter shape, second-person voice, bold-UI-terms, and Note-callout habits, which then graduated and injected. Also: habit rules that quote the extraction prompt's own instruction text (llama3.2:1b echoing 'Single Declarative Sentence') are dropped at parse, mirroring the memory-side few-shot echo guard. Version 0.9.1. 1052 tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <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.
The ultimate transparency test
Injection previously left no durable trace. This PR records every real injection and shows it.
Technical-writer support
Hardening
Version 0.9.1 · 1052 tests green · lint clean
🤖 Generated with Claude Code