From b21ceda9df73934d4a23c7ff5a52dad1eb78b8a3 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Sat, 10 Oct 2026 21:49:55 +0300 Subject: [PATCH] docs: record manual callback rollout --- MEMORY.md | 2 ++ project_mind_map.md | 4 ++++ structure_and_data.md | 1 + 3 files changed, 7 insertions(+) diff --git a/MEMORY.md b/MEMORY.md index aafa659..8441b3e 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -1,5 +1,7 @@ # MEMORY +- 2026-10-10 live: manually deployed VK Callback API migration from the local checkout. Belki image `reg.nyan404.ru/cwshed-clone/belki:df5dd4e` has digest `sha256:bd0abf5ef86565534e9455a628c276fe49a39eca28c0581d581ea2c5a4b0dcf1`; gateway `reg.nyan404.ru/cwshed:df5dd4e` has digest `sha256:b274cfd43710fa7def9048601ad4de3da0895e2744e230cb0348f19b347a6eaa`. Callback secret and confirmation were read from ignored `.secrets/VK_CALLBACK_*` files and applied only to the cluster Secret. Callback confirmation returned HTTP 200 both on `belki-bot:8081` and through cwshed `/api/vk/callback` via port-forward. + - 2026-09-01: `docs/Новая Крыланы. [Памятка].md` is the searchable Markdown wiki version of the supplied Krylan memo. It is a convenience index rather than rule authority: resolve drift against the Krylan blog, current leadership announcements, and inter-faction agreement. - 2026-09-01: `docs/Памятка-и-бот-расхождения.md` records how the newer calculator/bot differs from the older memo. Treat current code/tests as the implementation authority; update the memo after future agreed rule changes. diff --git a/project_mind_map.md b/project_mind_map.md index 3f26e5c..5a3442e 100644 --- a/project_mind_map.md +++ b/project_mind_map.md @@ -97,6 +97,10 @@ mindmap belki-bot belki-postgres cwshed gateway + Manual rollout 2026-10-10 + amd64 images on reg.nyan404.ru + callback Secret from ignored local files + confirmation verified through gateway proxy Security boundaries Public input bounded JSON diff --git a/structure_and_data.md b/structure_and_data.md index f58ee47..3b6dfd6 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -20,6 +20,7 @@ - [`CONTRIBUTING.md`](./CONTRIBUTING.md): contribution and verification rules. ## Runtime / Deployment +- 2026-10-10: performed a manual production rollout from the local checkout. The amd64 images `reg.nyan404.ru/cwshed-clone/belki:df5dd4e` (digest `sha256:bd0abf5ef86565534e9455a628c276fe49a39eca28c0581d581ea2c5a4b0dcf1`) and `reg.nyan404.ru/cwshed:df5dd4e` (digest `sha256:b274cfd43710fa7def9048601ad4de3da0895e2744e230cb0348f19b347a6eaa`) were built on `root@10.3.1.168` and applied to namespace `belki`. `VK_CALLBACK_SECRET` and `VK_CALLBACK_CONFIRMATION` came from ignored `.secrets/` files and were applied to `Secret/belki-runtime`; their values are not stored here. Direct callback and the cwshed `/api/vk/callback` proxy both returned HTTP 200 for the confirmation payload through an admin port-forward. The old bot ReplicaSet pod was still terminating during the final snapshot; the new pod was Running with zero restarts. - 2026-10-08: hardened `belki-bot` VK Long Poll against transient `OSError`/SSL/timeout failures. The poll loop logs the failure, waits, obtains a fresh `groups.getLongPollServer` lease, and continues without exiting the process. - 2026-10-08: `BelkiDialog` now persists unfinished per-actor state and queued VK photos in `vk_dialog_states` through the existing `BELKI_DATABASE_URL`/`BELKI_HISTORY_DB` store. State is written after each text/photo event and restored lazily after a bot restart; completed/cancelled dialogs are deleted. - 2026-10-10: added pod-template label `qos.dscp=cs1` to `belki-bot`; the k3s