Commit Graph

73 Commits

Author SHA1 Message Date
68da50b77b Отчёт активности: сообщения сотрудника, записанные под менеджером проекта, считаются; ночная проверка: received_at по времени сообщения, молчание агента - не обработка
All checks were successful
ci / test (push) Successful in 51s
ci / deploy (push) Successful in 2m54s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 10:08:38 +03:00
54b38d9076 Ночная проверка: уверенно найденное Daily Log обрабатывается сразу, в it-support - итог по каждому (обработано/не уверена/не получилось)
All checks were successful
ci / test (push) Successful in 53s
ci / deploy (push) Successful in 2m57s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 09:57:41 +03:00
5fedd4c508 Тест ночной проверки: поправлены интервалы
All checks were successful
ci / test (push) Successful in 57s
ci / deploy (push) Successful in 3m1s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 09:48:55 +03:00
b106f4141f Ночная проверка: сообщение бота об ошибке не считается ответом, упавшие сообщения берутся всегда
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-29 09:48:45 +03:00
c80816b4c7 Ночная проверка упущенного (02:00 Тампа), мониторинг хоста, чистка образов в deploy.sh
All checks were successful
ci / test (push) Successful in 55s
ci / deploy (push) Successful in 3m2s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 09:26:47 +03:00
1b12fbf538 Ассистент: мягкий отбор сообщений Daily Log/проектов в общем канале, повтор сводки по реальному ts
Some checks failed
ci / test (push) Failing after 38s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 08:52:57 +03:00
e716c82075 Ассистент: сводка Daily Log по проектам из общего канала (#2-general-all)
All checks were successful
ci / test (push) Successful in 53s
ci / deploy (push) Successful in 2m52s
Разбор сводки по проектам, запись в Daily Log каждого агентом (p-daily-summary.md), ответ в тред, simulate с summary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 08:39:46 +03:00
ed0c7ef4c5 simulate/apply: менеджер по person id без включённого проекта (чаты бухгалтерии и руководителя)
All checks were successful
ci / test (push) Successful in 43s
ci / deploy (push) Successful in 2m30s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:31:28 +03:00
152ab33aa8 Ассистент бухгалтерии: чат accounting, промт, команда khb-acc, маршрут /acc (миграция 072, п.88)
All checks were successful
ci / test (push) Successful in 46s
ci / deploy (push) Successful in 2m55s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:26:43 +03:00
9f5297f765 Ассистент менеджера: вопрос о chargeback к контракту подрядчика (khb-chargeback, п.87); граница с accounting_automation
Some checks failed
ci / test (push) Successful in 47s
ci / deploy (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:00:33 +03:00
213ef36bcf Короткое напоминание только если осмысленное сообщение было менее 24 часов назад (last_meaningful, миграция 039, п.86)
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m37s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:47:46 +03:00
6c4767c806 Письма подрядчикам: исправлена типизация после смягчения правила про телефон (CI)
All checks were successful
ci / test (push) Successful in 34s
ci / deploy (push) Successful in 2m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 13:23:12 +03:00
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