feat: add extra_context_type label (chat/document/notes) for input-aware extraction
Engineering guardrails for AI coding agents
Brought to you by:
mnemehq
Originally created by: TheoV823
extra_context_type column on users — nullable TEXT CHECK (IN 'chat', 'document', 'notes'); migration in migrate_add_extra_context_type.sql_CONTEXT_TYPE_HINTS dict appends a focus hint to the Claude system prompt based on input type: chat → conversation patterns, document → formal structure, notes → heuristics and rules of thumbflask add-user --extra-context-type — optional chat|document|notes flag; raises UsageError if provided without --extra-context-pathpython -m pytest tests/ -q to verifyflask add-user --help shows --extra-context-type [chat|document|notes]--extra-context-type without --extra-context-path exits non-zeroThis branch is based on feature/signal-profile-refactor (PR [#1]). Merge order: PR [#1] → PR [#2] → this PR.
🤖 Generated with Claude Code
Ticket changed by: TheoV823