feat(share): LLM-written answers + requests worth answering - #21
Merged
Conversation
Two halves of the same problem. On the asking side, a request now carries what they are doing, what broke with symptoms, and what they want to know; all three are required and length-checked, so "не работает" is refused with a template instead of being forwarded, and all three steer retrieval rather than the closing question alone. On the answering side, an optional composer turns the retrieved fragments into an actual answer that says where the material lives — an LLM call with no tools, whose output still passes the secret scanner, the version hash and a human /ok before anything is sent. Composing ships selected fragments to the model provider, so it is explicit opt-in via SESSION_RECALL_COMPOSE=claude — an API key sitting in the environment is not consent. Every failure path (no opt-in, package absent, provider down, refusal, empty text) falls back to the deterministic on-machine digest, so an answer never silently goes missing. 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.
Две половины одной проблемы — по обоим пунктам Максима.
Ask со структурой. Запрос теперь несёт три части: что делают (
--doing), с чем столкнулись и какие симптомы (--problem), что хотят узнать (--want). Все три обязательны и проверяются по длине —"не работает"отбивается шаблоном, а не уезжает пиру. Все три идут в retrieval-запрос: симптомы часто попадают в транскрипт там, где причёсанный вопрос — нет.LLM-ответ. Композер превращает найденные фрагменты в написанный ответ: прямой ответ → «где смотреть» (проект, session id, файлы/PR/ошибки из фрагментов) → чего фрагменты не покрывают. Клетка не ослабла: у композера нет тулзов, только текст на входе и выходе, а его результат всё равно проходит сканер секретов, version-хеш и человеческий
/ok. Максимум, чего добьётся инъекция в сниппете — сформулирует слова, которые владелец прочитает перед апрувом. В системном промпте фрагменты и запрос явно помечены как ДАННЫЕ.Приватность — опт-ин. Композинг отправляет выбранные фрагменты провайдеру модели: единственное место в гейте, где приватный контент пересекает границу, которую владелец не принимал раньше. Поэтому только
SESSION_RECALL_COMPOSE=claude; ключ в окружении согласием не считается. Любой сбой (нет опт-ина, пакета, провайдер лежит, refusal, пустой текст) → детерминированный дайджест, который машину не покидает. Ответ не пропадает никогда.Модель
claude-opus-5, включён server-side fallback. Зависимостьanthropic— опциональная (.[compose]).Плюс: превью помечает
written from N fragment(s)противraw N fragment(s), показывает problem/doing как недоверенные цитаты, и для написанного ответа показывает саму прозу, а не дайджест фрагментов. Новые CLI:share ask,share fetch.23 новых теста; сюита 247 passed. Проверено вживую через боевой relay.
🤖 Generated with Claude Code