Commit Graph

111 Commits

Author SHA1 Message Date
b422309148 accounting_automation: этап 1 бухгалтерской автоматизации (инвойсы из почты, категоризация, ручной разбор, MCP), интервальные задания scheduler, миграции 033/034/038
All checks were successful
ci / test (push) Successful in 40s
ci / deploy (push) Successful in 2m41s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:05:28 +03:00
12e331efe9 Зеркало QuickBooks qbo_* (миграция 032) и загрузка POST /sync в qbo_auth, задание scheduler qbo_sync (п.85)
All checks were successful
ci / test (push) Successful in 36s
ci / deploy (push) Successful in 2m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:32:36 +03:00
d8926bc6dc Сервис qbo_auth: OAuth-токены QuickBooks Online (callback services/api/qbo/callback), исследование и предложение quickbooks_bookkeeper (п.84)
All checks were successful
ci / test (push) Successful in 36s
ci / deploy (push) Successful in 5m18s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 22:19:06 +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
fd96573655 Ручной запуск сбора с ожиданием итога: POST /runs?wait=true, идущий сбор вместо 409 (багрепорт data_collector, п.83)
All checks were successful
ci / test (push) Successful in 34s
ci / deploy (push) Successful in 2m28s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 11:49:40 +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
caec489563 Daily Log по проекту: событие засчитывается менеджеру проекта независимо от автора (багрепорт employee_reports, миграция 028); Resolution
All checks were successful
ci / test (push) Successful in 30s
ci / deploy (push) Successful in 2m31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 20:12:36 +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
678cde985c todo_service: запись назначенному в любом проекте и без проекта, агентские токены, тест не зависит от реальной даты
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 10:22:31 +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
3ac2e427ec todo_service: публичный адрес services.khbuild.freeddns.org/api/todo вместо отдельного субхоста
All checks were successful
ci / test (push) Successful in 29s
ci / deploy (push) Successful in 2m16s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 15:37:11 +03:00
e6ac717623 todo_service: POST /todos возвращает todo (по API)
All checks were successful
ci / test (push) Successful in 26s
ci / deploy (push) Successful in 2m11s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:14:18 +03:00
ad17e8364f todo_service: новый сервис todo (надстройка над JobTread, REST, MCP, вебхуки, слежение Control), миграция 024, docs в proposed
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 2m10s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:08:54 +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
538849e300 Гант: предшественники с отрицательным днём не дают ложного противоречия сроков
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-23 19:14:03 +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
5320e1c2e7 passwords_backupper: архив 7z с паролем (мастер-пароль экспортёра Vaultwarden) вместо 7z+age
All checks were successful
ci / test (push) Successful in 28s
ci / deploy (push) Successful in 2m7s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 22:22:11 +03:00
90f75ac2fc passwords_backupper: 403 при прореживании - заметка о правах; cap_add DAC_READ_SEARCH в шаблоне compose
All checks were successful
ci / test (push) Successful in 27s
ci / deploy (push) Successful in 2m12s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 21:16:46 +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
12147fc3eb passwords_backupper: ежедневная зашифрованная (7z + age) копия Vaultwarden и Infisical на Google Drive, аварийные md, scheduler, deploy
Some checks failed
ci / test (push) Successful in 29s
ci / deploy (push) Failing after 3m32s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:46:23 +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