Агенты: обновление токена для замера лимитов (п.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>
This commit is contained in:
2026-11-09 20:05:07 +03:00
parent f9b249b446
commit f1d8809e1d
11 changed files with 124 additions and 7 deletions

View File

@@ -208,4 +208,15 @@ describe("промты в docs модуля (p-*.md)", () => {
expect(ceo).toContain("khb-employee-reports:8091/api/activity");
expect(ceo).toContain("v_activity_action");
});
it("открытые вопросы повторяются (блок памяти, не больше 2 повторов), дубли todo закрывает только агентский автор", () => {
for (const name of ["p-manager-dialog.md", "p-ceo-assistant.md"]) {
const t = loadPrompt(name, { media_dir: "/m" }, "proposed");
expect(t, name).toContain("`Открытые вопросы`");
expect(t, name).toContain("не больше 2 повторов");
expect(t, name).toContain("kind = 'todo_created'");
expect(t, name).toContain("сам не закрывай");
}
expect(loadFragment("p-chat-events.md", "Напоминание 12:00", {}, "proposed")).toContain("Открытые вопросы");
});
});