Commit Graph

61 Commits

Author SHA1 Message Date
c129d9651e Письма подрядчикам: телефон менеджера необязателен (нет телефона - письмо без него)
Some checks failed
ci / test (push) Failing after 16s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 13:15:20 +03:00
8ea65aedcb Письма подрядчикам: короткий код в конце темы, тема - основной ключ сопоставления (индекс по теме)
All checks were successful
ci / test (push) Successful in 32s
ci / deploy (push) Successful in 2m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 23:17:56 +03:00
83f28625dd Отбор работ подрядчика: совпадение по началу слова (wall не находит Drywall)
All checks were successful
ci / test (push) Successful in 32s
ci / deploy (push) Successful in 2m24s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:59:54 +03:00
2987e8f139 Письма подрядчикам: отбор адресата, khb-mail, журнал contractor_email, правило в промте (п.82)
Some checks failed
ci / test (push) Successful in 35s
ci / deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:57:28 +03:00
7237edadbe Письма подрядчикам: шаблон Артура, код письма, отправка через Gmail API от имени менеджера (делегирование домена)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:38:58 +03:00
a104112326 Агенты: пилот compact вместо явной памяти по простою (п.81): /compact через 4 или 55 минут по статусу диалога от агента, resume с полным промтом, оценка токенов в agent_usage, предупреждение на 50% недельного лимита
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:24:45 +03:00
ad8e65c15e Агенты: менеджер отвечает за все работы проекта, включая подрядчиков (п.80); дубли todo: автоматические (агент и Claude) закрываются, ручные - с вопросом; правки Юрия в approved
Some checks failed
ci / test (push) Successful in 30s
ci / deploy (push) Failing after 3m36s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 20:46:31 +03:00
f1d8809e1d Агенты: обновление токена для замера лимитов (п.77), повтор открытых вопросов и закрытие своих дублей todo (п.78); багрепорт employee_reports уточнён правилом владельца
All checks were successful
ci / test (push) Successful in 32s
ci / deploy (push) Successful in 2m26s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 20:05:07 +03:00
fe180d8ed8 Тест тайминга чата не зависит от даты (фиксированный ts давал int overflow debounce_ms через 24.8 суток, CI падал и блокировал деплой); правки Юрия в approved
All checks were successful
ci / test (push) Successful in 32s
ci / deploy (push) Successful in 4m17s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 09:13:19 +03:00
76f8a1b9d9 Агенты: язык ответов - поле владельца (по умолчанию English), правило в промтах, смена только по просьбе владельца (deviations п.76)
Some checks failed
ci / test (push) Failing after 31s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 23:01:07 +03:00
53027f75de Агенты: нет задач у менеджера - шаг 2 не запускается, напоминания и обращения в ИТ не пишутся (deviations п.75)
All checks were successful
ci / test (push) Successful in 30s
ci / deploy (push) Successful in 2m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 20:06:21 +03:00
62756a8878 Агент видит скриншоты и фото: Read в инструментах чата, правило в промтах (deviations п.73)
All checks were successful
ci / test (push) Successful in 31s
ci / deploy (push) Successful in 2m20s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 21:43:58 +03:00
3449a9a3a0 Тест пересчёта 11:50: новая сессия вместо resume (после 53df5a9)
All checks were successful
ci / test (push) Successful in 28s
ci / deploy (push) Successful in 2m22s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:35:33 +03:00
53df5a9e7f Агенты: новая сессия вместо resume (память в промте), живой агент по простою 4 мин сводит память; экономия лимита (deviations п.69)
Some checks failed
ci / test (push) Failing after 29s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:19:11 +03:00
333106e518 Агент чата: один автор - одно имя во входе (справочник person + пометка [менеджер] в диалоге канала); deviations п.68
All checks were successful
ci / test (push) Successful in 29s
ci / deploy (push) Successful in 2m20s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 13:47:12 +03:00
6734a56722 globals хранит масштаб лимита (токены на 100%), текущий расход - по логам; замеры agent_limit_sample и сверка с процентами claude
All checks were successful
ci / test (push) Successful in 28s
ci / deploy (push) Successful in 2m24s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:30:10 +03:00
4b89ab84be Багрепорты todo_service: проверка (CI-баг и запись без проекта приняты в approved, токены - обсуждение); масштаб лимита только при полном покрытии окна; промт khb-todo
Some checks failed
ci / test (push) Failing after 28s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:53:07 +03:00
bc6697834a Агенты: учёт токенов (agent_usage, буфер в памяти + пачки в БД), globals с лимитами аккаунта, доллары убраны
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 2m18s
Расчётная стоимость из ответов claude не является списанием (тариф Team, 0 из 10 USD), поэтому результаты, API и записи больше её не ведут.
Токены каждого вызова модели - в agent_usage; проценты 5-часового и недельного окон читаются у claude в globals (одна строка, check),
предупреждение ИТ на 80% и 95%, сводка GET /agent/usage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:41:10 +03:00
f32d74a265 Агенты: переключение на todo_service (khb-todo, TodoEventPoller вместо ControlWatcher, блок Todo, промты proposed); багрепорты todo_service
Some checks failed
ci / test (push) Failing after 28s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:14:41 +03:00
232229f704 docs: data_objects по направлениям (common, agents, todo_service + сервисы), approved и proposed синхронно; правила README, индексы
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m56s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:17:50 +03:00
7c26b38a49 Промты согласованы и установлены всем менеджерам: recap, Control todo (миграция 023, ControlWatcher), fallback на английском; tasks.md очищен
All checks were successful
ci / test (push) Successful in 25s
ci / deploy (push) Successful in 2m7s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:28:06 +03:00
a2db4922e4 Тест: автор реплики в проектном канале указан в промте
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 2m0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 16:52:29 +03:00
57bb5cf5f3 Ответ адресуется отправителю: автор у каждой реплики, правило в промтах
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 3m57s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 16:44:40 +03:00
63044fd46b Промты: напоминания с относительной давностью, пакетный вопрос про todo старше 3 недель один раз
All checks were successful
ci / deploy (push) Successful in 2m3s
ci / test (push) Successful in 25s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 07:14:19 +03:00
4d67896493 Промты: todo-напоминания устаревают через 14 дней
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 2m5s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 07:09:45 +03:00
93c943ded0 Промты: напоминание о todo-напоминании - коротко и разговорно
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 2m0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 07:03:30 +03:00
dd718c9ac3 Промты: todo-напоминания менеджеру назначаются на него самого, срок 3 рабочих дня, без вопросов
Some checks failed
ci / test (push) Successful in 26s
ci / deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 07:02:02 +03:00
4a32a08b6d Проектные каналы: тихий режим, recap для Daily Log; Huddle через message_changed; короткие напоминания
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 2m13s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 21:12:07 +03:00
bfce62d66f Google Drive под ключами сервисных аккаунтов вместо rclone: клиент Drive API, папка приёма и выгрузка материалов; команда khb-drive для агентов (builder - строителям и проектным чатам, полный - руководителю); rclone удалён; промты; тесты
All checks were successful
ci / test (push) Successful in 25s
ci / deploy (push) Successful in 3m13s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 09:41:33 +03:00
00bf1cdd39 Чтение зеркала Supabase агентами (khb-sql, роли khb_agent / khb_agent_ceo, KHB_SQL_URL); отчёты для агента руководителя; промты; тесты; docs
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 3m24s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 11:50:22 +03:00
77b6e4ae3b Чат руководителя (chat_kind = ceo, промт p-ceo-assistant, ответ в разделе «Ответ Arthur»); блоки входа и правило про todo - всем версиям, необязательные фрагменты; тесты; docs
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m26s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 18:22:10 +03:00
059ece8578 Fallback JobTread (проверка при старте, повтор записи до 5 минут, повтор запуска в коде); требование: без ответа менеджера - только короткое напоминание (новая версия); тесты; docs
All checks were successful
ci / test (push) Successful in 25s
ci / deploy (push) Successful in 1m31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 18:10:01 +03:00
ddbf3da93f Агентам разрешено читать Google Drive (поиск и чтение, без записи); правило в промтах шага 4 и проектного канала; тест
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m28s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 17:48:07 +03:00
2a92458106 Календарь пассивных окон по дням недели (вторник весь день по Тампе): агенты в режиме passive; API; тесты; docs
All checks were successful
ci / test (push) Successful in 26s
ci / deploy (push) Successful in 1m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 21:13:38 +03:00
c59ac87486 Режим passive при отключении агента: молчит по своей инициативе, на сообщения менеджера отвечает как обычно (миграция 018); off - вообще ничего; тесты; docs
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m29s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 20:23:15 +03:00
f3e0b0618e Отключение агента менеджера: на время и до команды владельца (миграция 017, API pause/resume, события, шаг 2 и приём сообщений); тесты; docs
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 19:56:51 +03:00
e8ac83e8a3 Предложения по промтам применены правками промтов в proposed (новая версия агента): точечные изменения, список, зависимые работы, даты, упоминание, частота сообщений; разделы входа # Менеджер и # Частота сообщений; docs
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m29s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 21:43:56 +03:00
63e7dd790b Промты агентов перенесены в docs модуля (p-*.md внутри feature); прежняя версия читает approved, новая - proposed; тест промтов
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m34s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 21:34:18 +03:00
b4a2a2ca99 generated/proposed: пересборка индекса после очистки лишних файлов в docs/proposed
Some checks failed
ci / test (push) Failing after 26s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 21:31:32 +03:00
4a7ab9b34e Агент (live): todo самого менеджера закрываются в любом проекте и без проекта; тест; docs
All checks were successful
ci / test (push) Successful in 25s
ci / deploy (push) Successful in 1m28s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 20:29:09 +03:00
b84aeb8fff Долгоживущий агент: короткий промт только при той же сессии (после сброса сессии - полный)
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m30s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 13:41:48 +03:00
d4eefb08d3 Долгоживущий агент: стоимость и время API по ходам (разница накопительных счётчиков)
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 1m30s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 12:59:29 +03:00
65ab75d378 Долгоживущий агент чата (только для managerIds, тестовый менеджер) и тайминг чата (chat_timing, миграция 016); тесты; docs
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m46s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 12:55:18 +03:00
918ace43c8 Ассистент: API памяти, сессии и истории агентов; предложение по инструментам разбора; принцип про зависимые работы
Some checks failed
ci / test (push) Successful in 22s
ci / deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 23:21:57 +03:00
ed3b9e13dc Ассистент: сброс сессии агента при недоступности коннектора JobTread; заметка о записи в рабочие проекты
All checks were successful
ci / test (push) Successful in 21s
ci / deploy (push) Successful in 1m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 22:58:21 +03:00
8b2551acb2 Ассистент: дедупликация обращений в ИТ, закрытие осиротевших запусков при старте; предложение к промтам
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m39s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 22:33:01 +03:00
1722a87915 Ассистент: llmtest- только для тестовых проектов (agent.testJobIds), POST /chat/apply для разового поручения агенту
All checks were successful
ci / test (push) Successful in 21s
ci / deploy (push) Successful in 1m37s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 22:25:04 +03:00
b975ae0bc3 Проектный канал без проекта (jt_job_id null) ассистентом не обрабатывается
All checks were successful
ci / test (push) Successful in 22s
ci / deploy (push) Successful in 1m38s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 22:01:31 +03:00
b91aa4bbbf Тест проектного канала: is_enabled задаётся явно (по умолчанию теперь false)
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m38s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 21:17:37 +03:00
61001a0e46 Ассистент CEO: проверка тишины отключена, отчёт о просроченных поручениях, черновик промта
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 19:38:57 +03:00