152 lines
27 KiB
Markdown
152 lines
27 KiB
Markdown
# MEMORY
|
||
|
||
- 2026-11-17: owner renamed the trainer public page to `/trainer` (also `/trainer/`). Homepage navigation, Python/Nginx page aliases and browser entry URLs follow that address. Internal `web/lu-trainer.html` and `/lu-trainer/` asset URLs are unchanged; the prior `/lu-trainer` page address below is historical. No push/deployment.
|
||
|
||
- 2026-11-17: implemented the owner-requested LU trainer at `/lu-trainer` and `/lu-trainer/`. The DOM-free original JS engine preserves the documented upstream training model (not verified CatWar rules); both grids consume snapshots without hidden hazards, with temporary hints disclosed only as action results. One in-memory attempt, separate notes, confirmed resets, terminal action locks and no CatWar account/report integration. Original imagegen forest/cat provenance is in `web/lu-trainer/assets/README.md`. No new runtime dependency. Local Node/Python/Chromium and isolated Nginx checks are recorded in `structure_and_data.md`; no registry push or deployment.
|
||
|
||
- 2026-11-17: the owner-provided community chat link is maintained in `web/index.html` beside VK: `https://matrix.to/#/!hQAD8j0wKv51OhvyeAPqRBNyBzvzoZsqBIWYR_OgNxw?via=nyan404.ru`. Preserve both the room ID and `via` parameter when editing it.
|
||
|
||
- 2026-11-17: the owner requested documentation for a LU trainer inspired by `tek1laa/catwar-lu-trainer`, with the interface closer to the supplied real-game screenshot, and explicitly included the «Минное поле» map. See `LU_TRAINER_PROJECT.md`. That documentation stage is superseded by the implementation entry above; deployment remains unverified. Upstream rules were read at `52f7f6111576f57fa5fe3edf43a38ffe2299f799` but were not validated against CatWar; the implementation retains the documented one-map/default-route choices within the owner's subsequent request to implement the plan.
|
||
|
||
- 2026-11-17: the external report integration polls `/api/admin/calculations/pending` and acknowledges through the admin `entered` flag; it shares the admin credential and privileges. A poll starts from the beginning each time to rediscover unmarked or concurrently committed records; clients deduplicate by report ID. The local change is not evidence of deployment.
|
||
|
||
- 2026-10-21: static review found CVE-2026-109618 / CVE-2026-109619 not actionable for the declared Python/Nginx/PostgreSQL stack, which has no PHP request runtime. Evidence and limits are in `structure_and_data.md`; this does not attest to live containers or external infrastructure. Recheck if PHP is introduced or deployment differs.
|
||
|
||
- 2026-10-18: Russian copy is addressed to CatWar faction members. Website instructions, VK help/dialog prompts, and identity lookup messages use plain wording while retaining game terms and existing report formats. Feather input examples intentionally retain the dash separator accepted by the parser; dates/time ranges and empty table markers are also preserved.
|
||
|
||
- 2026-10-18: sent-report history uses `CalculationStore.list_vk_reports(actor_id)` for VK's `Мои отчёты` menu and `list_character_reports(character_id)` for the public calculator tab/API; the latter searches escort, kitten, extra-kitten, and inspection IDs across sources, returns at most 100 newest rows, and omits VK `actor_id`.
|
||
|
||
- 2026-10-10: `/admin` report rows default to creation date descending (newest first); `CalculationStore` supports the `created_at` sort key and the UI requests it explicitly.
|
||
|
||
- 2026-10-10 live: rotated `BELKI_ADMIN_PASSWORD` from ignored `.secrets/BELKI_ADMIN_PASSWORD`, restarted web and bot, and verified `/api/admin/calculations` returns 200 with the current value and 401 with an invalid value.
|
||
|
||
- 2026-10-10 live: image tag `67d505f` with the clickable points activity menu is deployed in k3s; runtime introspection of the new `belki-bot` pod confirmed the three `points:*` button payloads.
|
||
|
||
- 2026-10-10: VK points calculator activity selection has a clickable keyboard (`points:coaching`, `points:training`, `points:inspection`) and accepts both `прокачка`/`прокачку` and `тренировка`/`тренировку`.
|
||
|
||
- 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.
|
||
|
||
- The repository packages a static site under `web/` with an Nginx-based `Dockerfile`.
|
||
- The GitLab pipeline builds and pushes the Belki image from `.gitlab-ci.yml`; current target is `$DOCKER_REGISTRY/belki:latest`.
|
||
- Docker builds are expected to run through `docker:dind` with `DOCKER_HOST=tcp://docker:2375` and `DOCKER_TLS_CERTDIR=""`.
|
||
- The build job now waits for `docker info` before running `docker login` and `docker build` because `docker:29.6.1-dind` can take ~20 seconds to finish initialization on `docker-03`.
|
||
- Current CI image: `docker:29.6.1-cli`.
|
||
- The runner host at `root@10.3.1.236` is `docker-03.homelab.local`; its GitLab Runner is `stage-zone-runner` and successfully reaches `docker:29.6.1-dind`.
|
||
- 2026-08-16: the repository now contains a local-only Belki calculator MVP under `app/` with a standard-library Python HTTP service, shared calculation/report domain, browser form at `/`, and VK Bots Long Poll adapter.
|
||
- Confirmed local acceptance: 28 unittest cases pass; local browser smoke generated a 20-minute ЛУ report; `belki-calculator:test` built and its `/health`, `/api/calculate`, `/api/inspect-bulk`, and `/api/resolve-identity` endpoints responded.
|
||
- Draft k3s manifests live under `deploy/k8s/` but have not been applied. No VK token, group ID, service IP, or cluster Secret is stored in the repository.
|
||
- VK input is now conversational: `BelkiDialog` stores per-peer state, supports `/лу`/`/зу` step-by-step prompts, detects bulk messages, asks for missing skill/status or confirmation, and clears with `/отмена`.
|
||
- 2026-10-10: `belki-bot` pod template carries `qos.dscp=cs1`; k3s node-level
|
||
`pod-dscp-marker` follows this label across ReplicaSet rollouts and pod IP/node
|
||
changes. The selected DSCP class is CS1 (8), not the existing MikroTik CS5.
|
||
- 2026-10-08: VK Long Poll now catches transient SSL/socket/timeouts, logs and reacquires the Long Poll server instead of terminating `belki-bot`. Unfinished dialog state and queued photos are persisted in `vk_dialog_states` by `VkConversationStore`, so a process restart can resume before confirmation; completed/cancelled states are removed.
|
||
- 2026-10-08 live: `belki-bot:2d9aa21` is deployed in k3s with amd64 digest `sha256:899fcb5a91618a0b2f657a96f7fdf2f1686423bba6a95f13e431d589e629d401`; the replacement Pod was Ready with `restartCount=0` after rollout. The retired Pod's 9 restarts were caused by an SSL handshake timeout in `BelkiBot.events()`.
|
||
- The preferred bulk input is a natural line without pipes, such as `15.08 11:00 11:20 Дикая Вишня 1604614 Серолап 1617140`; `/api/inspect-bulk` and the web form fill recognized fields and show only missing questions.
|
||
- `/урок` and `/осмотр` use the same dialog; character name/ID may be entered separately and resolved from the persistent SQLite directory at `BELKI_IDENTITIES_DB` (default `data/belki.sqlite3`), otherwise the dialog asks for the missing half and remembers the completed pair.
|
||
- `.gitignore` now excludes Python bytecode/cache and local test/editor artifacts; generated `__pycache__` directories were removed from the working tree.
|
||
- `prevent-eol` checked `Dockerfile` and `.gitlab-ci.yml`: Python 3.12 is maintained through 2028-10-31; Docker 29.6.1 was unknown to the lifecycle catalog, with no EOL finding. Images are not digest-pinned yet.
|
||
- VK onboarding asks first-time authors for `Имя [ID]`, stores the profile by `from_id` in SQLite, greets by name on later conversations, and accepts `сам`/`несам` as independence shortcuts.
|
||
- VK `/help` is a neutral FAQ: it explains step-by-step entry, complete commands, separator-free one-line input, confirmation, screenshots, and `/отмена` without audience-specific wording.
|
||
- Confirmed calculations are persisted through `BELKI_DATABASE_URL` by `app/belki/history.py`; PostgreSQL is the intended production store and SQLite is only a local fallback.
|
||
- The admin history is served at `/admin`; `/api/admin/calculations` requires `BELKI_ADMIN_PASSWORD` via `X-Admin-Password` and supports sorting by kitten ID/name. The password is configured out-of-band and is not stored in browser localStorage.
|
||
- 2026-08-16: `docs/staging/specs/2026-08-16-krylany-calculator-rules.md` supersedes the older Belki draft: Krylan equals Belka (the escort role); kittens always receive `minutes/5`, while the escort receives `minutes/5` or `minutes/5*1.5` for non-self-sufficient ЛУ; ZU always uses self-sufficient rules.
|
||
- 2026-08-16 production deployment: namespace `belki` is live in k3s. Web and bot use `reg.nyan404.ru/cwshed-clone/belki:6b74dfa`; the migrated cwshed Nginx gateway keeps MetalLB `10.12.0.204` and routes `/belki`, `/admin`, and `/api/*` to web `10.12.0.212`; PostgreSQL uses the amd64 mirror `reg.nyan404.ru/library/postgres:16-alpine-amd64` on Longhorn. Runtime credentials remain only in the cluster Secret `belki-runtime`.
|
||
- GitLab CI/CD now builds SHA/latest tags and deploys `deploy/k8s/production.yaml` from `main`. The ignored `.gitlab.variables.env` is a local handoff for GitLab Variables; CI uses namespace-scoped ServiceAccount `belki/gitlab-deploy`, not cluster-admin credentials.
|
||
- 2026-08-21: applications use a separate store/table from calculator history. `/applications` and VK `/заявка` collect typed data; `/admin` accepts it. The bot can automatically notify only VK submissions, because a web form has no known reply peer.
|
||
- 2026-08-21: Google Sheets export is intentionally disabled by default. Application create/accept events go to a durable outbox and will be delivered through an explicitly configured Apps Script Web App endpoint once the feature flag is enabled.
|
||
- 2026-08-25: Google Sheets export will activate only for a valid HTTPS endpoint; an HTTP/malformed environment URL leaves the outbox untouched and avoids sending its bearer token.
|
||
- 2026-08-21: CI final images use immutable registry base images. Any runtime dependency change requires rebuilding/pushing the matching base (`Dockerfile.base` for `requirements.txt`, `Dockerfile.gateway-base` for `nginx.conf`) and changing the tag used by the final Dockerfile.
|
||
- 2026-08-21: use Context7 for fresh official integration documentation and `prevent-eol` before dependency changes; lifecycle status is not a vulnerability verdict.
|
||
- 2026-08-21: project-local frontend instructions include `frontend-craft`, `frontend-design`, and `ui-ux-pro-max`; use them together for UI work.
|
||
- 2026-08-21: `/belki` is the single public Belki workspace: both reports and its “Заявки” tab are open without a password. The old `/applications` route remains only as a direct legacy entry point. `/admin` is the only password-protected surface.
|
||
- 2026-08-21: `/admin` now keeps a server-memory `HttpOnly` cookie session across page refreshes instead of retaining an admin password in the browser. Its authenticated WebSocket sends a refresh signal every 25 seconds; this needs the cwshed Nginx `/api/` Upgrade proxy settings.
|
||
- 2026-08-21: `img.nyan404.ru` is only the image-host viewer/frontend; Belki uploads must use the image-host API `https://nyan.nyan404.ru`. The API rejects the default Python `urllib` user agent, so `ImageHostClient` identifies requests as `BelkiCalculator/1.0`. Upload failures are converted to actionable API errors rather than a generic calculator 500.
|
||
- 2026-08-21: Belki Python base image `reg.nyan404.ru/cwshed-clone/belki-base:py312-d6c42c4497ce` pins `pip==26.2.1`; CI upgrades to the same version before installing requirements.
|
||
- 2026-08-25: Belki fixes: natural bulk parsing now extracts `Имя ID` and `Имя [ID]` before a `HH:MM-HH:MM` range; web quick input is coaching-only; inspection resources use `+N название`; reports decline `раз/раза`; VK image mirroring defaults to `https://nyan.nyan404.ru`; `/belki` has a standalone goal calculator backed by `mode=goal`.
|
||
- 2026-08-25: VK now exposes the goal calculator in the main keyboard and through `/цель`/`/калькулятор`; its interactive state collects points, session duration, skill, independence, and kitten count, then confirms the calculated result without screenshots.
|
||
- 2026-08-25: public goal calculations reject non-finite scores and bound session length to 1–1440 minutes and kitten count to 1–50, consistently across domain, API, and VK input.
|
||
- 2026-08-25: screenshot uploads are public by product design but are bounded before JSON parsing (20 MiB) and after base64 decoding (15 MiB); only verified PNG/JPEG/WebP bytes and basename-only filenames reach image hosting.
|
||
- 2026-08-25: public web identity completion is deliberately ephemeral; it no longer writes the identity directory used by VK, and unused global web-profile endpoints were removed.
|
||
- 2026-08-25: `Identity` is the shared invariant boundary for persistent profile/directory pairs: names are normalized and bounded to 100 characters, and character/actor IDs must be positive integers.
|
||
- 2026-08-25: public JSON cannot choose arbitrary attachment URLs. Web attachments are accepted only after the running process issued their image-host URL through `/api/web/upload`; the bounded in-memory registry expires entries after 30 minutes.
|
||
- 2026-08-25: VK attachment mirroring has a strict 15 MiB transfer cap, including a Content-Length precheck and bounded read.
|
||
- 2026-08-25: after the byte cap, VK attachment mirroring accepts only PNG/JPEG/WebP signatures and does not trust the external response Content-Type.
|
||
- 2026-08-25: the web service uses `BelkiHTTPServer` with 15-second socket reads and a 32-request semaphore in addition to the bounded JSON body reader.
|
||
- 2026-08-25: natural bulk parsing prioritizes explicit Russian mentor/student labels, then falls back to the original pair order when labels are absent.
|
||
- 2026-08-25: when several labelled wards appear in one natural line, an adjacent `сам`/`несам` marker is assigned to that specific ward before any global status fallback.
|
||
- 2026-08-25: `project_mind_map.md` is the current source-controlled project map for Belki and deployment/security boundaries; update it when a data flow, service, or integration changes.
|
||
- 2026-08-25: password-only admin login has an in-process five-attempt/15-minute per-source limit; it complements but does not replace an edge rate limit.
|
||
- 2026-08-25: in-process admin sessions are opaque tokens with a 12-hour server and cookie lifetime, capped at 100 active sessions; a restart still invalidates them by design.
|
||
- 2026-08-25: free-text parsing normalizes common punctuation, spaced IDs, ID markers and close role-label typos. Do not add generic Russian NER solely for CatWar nicknames: ID and role context are the more reliable authority.
|
||
- 2026-08-25: public reports cap coaching at 50 kittens and inspections at 100 resource rows, 100000 inspections and 100000 units per resource; enforce the limits in the shared domain rather than only in one transport.
|
||
- 2026-08-25: strict API conversion also covers nested extra-kitten IDs and inspection resources; no boolean coercion or unbounded resource conversion occurs before domain validation.
|
||
- 2026-08-25: the domain rejects duplicate participant IDs in coaching and requires a distinct escort and kitten for training, preventing duplicate-input score inflation.
|
||
- 2026-08-25: free-form input also accepts Russian written dates and month abbreviations, normalizing them to `ДД.ММ`; report dates are then calendar-validated in the domain before storage.
|
||
- 2026-08-25: application validation limits text, rows, per-row feather amounts, and attachments across web and VK. Persisted media/review links require HTTPS, and a profile link is accepted only for a VK host.
|
||
- 2026-08-25: authenticated admin refresh WebSockets use a separate pool of eight slots so they cannot consume the bounded general HTTP worker pool. History sorting normalizes old string IDs with current numeric IDs.
|
||
- 2026-09-01: admin XLSX downloads are session/password-protected routes. Keep report category/cat/kitten and application status plus period/date-range query parameters identical between the API list and export endpoint so the file matches the visible selection.
|
||
- 2026-09-01: all web-facing Belki dates are UTC+3. Never change persisted UTC moments to implement this; convert at the UI/XLSX boundary and interpret calendar inputs in UTC+3.
|
||
- 2026-10-03: `web/calculator.html` and `web/admin.html` use a shared autumn theme with warm paper tokens, amber/brown accents, and decorative CSS leaves. The leaves are pointer-transparent, behind content, and reduced to faint static accents for `prefers-reduced-motion`; visual changes require no new assets or dependencies.
|
||
- 2026-09-01: report attachments are a web inspection-only requirement. Enforce it in `validate_web_report_attachments`, not only by hiding the field, and retain optional dated output for legacy bot training sessions.
|
||
# 2026-08-16 — несколько котят в прокачке
|
||
|
||
`CoachingSession.extra_kittens` теперь влияет на баллы сопровождающего через количество подопечных: 1-й ×1, 2-й ×1,5, каждый последующий ×1,15 (коэффициенты перемножаются), вместо сложения полной прибыли. Базовый коэффициент самостоятельности основного котёнка сохраняется. Веб-форма отправляет список `extra_kittens`; VK принимает `доп. котята: ...` в pipe-команде.
|
||
# 2026-08-25: production container architecture
|
||
|
||
Production Belki images and Kubernetes workloads require `linux/amd64`. CI sets `DOCKER_DEFAULT_PLATFORM` and passes `--platform linux/amd64`; Dockerfiles and workload node selectors carry the same constraint. The previous private Python base tag `py312-d6c42c4497ce` was published only for arm64 and must not be used for the application image.
|
||
|
||
# 2026-08-25: standalone Sudoku
|
||
|
||
`/sudoku` is a separate public route, backed by `app/sudoku.py` and `web/sudoku.html`. A supplied nickname (case-insensitive) is intentionally only a resume key, not authentication; never present it as private storage. Games persist in `sudoku_games` through `BELKI_DATABASE_URL` in production or `SUDOKU_DB` locally. The public API must never return the saved solution, and it must keep original clues immutable. The generator is the explicitly requested `dokusan==0.1.0`; it is GPL-3.0-only, Alpha, and last released in 2023, so retain the `NOTICE`/README license disclosure and revalidate it before future runtime upgrades.
|
||
|
||
The final gateway Dockerfile must copy `nginx.conf` into the release image, not rely exclusively on the immutable gateway base. This keeps `/sudoku` and other route changes from producing a successful deployment with an old Nginx configuration and a public 404.
|
||
# 2026-09-06: VK conversation scheduler
|
||
|
||
`app/belki/vk_scheduler.py` хранит реестр бесед, шаблоны, расписания и историю попыток в общей БД (`BELKI_DATABASE_URL` или `BELKI_HISTORY_DB`). `BelkiBot` регистрирует `chat_invite_user`/`chat_invite_user_by_link`, помечает `chat_kick_user`/`chat_leave_user` как недоступные и запускает idempotent scheduler в отдельном daemon-потоке. Админские endpoints `/api/admin/vk/conversations`, `/templates`, `/schedules` защищены существующей сессией; сообщения по умолчанию выключены.
|
||
|
||
# 2026-09-08: private MinIO image storage
|
||
|
||
`app/belki/image_host.py` now uses private distributed MinIO rather than `nyan.nyan404.ru`. The five internal S3 endpoints are tried in order for each operation; uploads are stored under an unguessable 128-bit object ID and public URLs resolve only through `https://cat.nyan404.ru/api/images/<id>`. Keep the MinIO bucket private. `belki-image-store` is a standalone out-of-band Secret with only `GetObject`/`PutObject` plus required `GetBucketLocation` for `belki-images`; never merge it into CI-recreated `belki-runtime` or commit credentials. Existing legacy img.nyan404.ru URLs remain stored as historical links and cannot be recovered by this change.
|
||
|
||
# 2026-09-24: Belki S3 HAProxy front door
|
||
|
||
`belki-image-store` now points to the in-cluster HAProxy Service `10.43.30.146:9000` (`minio-haproxy` in namespace `minio-proxy`) instead of listing the five MinIO node addresses. The live Secret was updated out-of-band and both Belki deployments were restarted; credentials remain out of the repository.
|
||
|
||
# 2026-09-21: admin inspection score breakdown
|
||
|
||
Inspection results persist the base score for the number of inspections and each resource's calculated contribution in addition to the total. `/admin` displays these details in a dedicated `Баллы` column without changing the VK/public report text; legacy rows fall back to the stored total.
|
||
|
||
# 2026-09-26: explicit edible catch catalogue
|
||
|
||
`app/belki/domain.py` keeps an explicit `EDIBLE_CATCHES` set for one-point inspection catches. `Ящерица` and `Летучая мышь` are included and covered by `tests/test_belki.py`; the Krylan memo lists them in the edible catch table.
|
||
|
||
# 2026-10-10: VK Callback API migration
|
||
|
||
`app/belki/vk_bot.py` no longer runs VK Long Poll. It starts a threaded Callback API listener on `VK_CALLBACK_HOST:VK_CALLBACK_PORT` (defaults `0.0.0.0:8081`) and requires `VK_CALLBACK_SECRET` plus `VK_CALLBACK_CONFIRMATION`. VK sends the secret in top-level `secret`, with a maximum length of 50 characters; the code validates that limit without logging or returning the value. `app/belki/vk_callback.py` validates group ID for confirmation requests (which may omit `secret`), validates secret for ordinary events, returns confirmation or `ok`, normalizes `message_event`, and retries failed handlers by releasing the event claim. `VkConversationStore` persists seven-day callback event claims in `vk_callback_events`. Production routing uses the existing public host path `/api/vk/callback`, an exact nginx route to the `belki-bot` ClusterIP Service, and callback health probes. Live VK server registration and confirmation remain deployment-stage actions.
|
||
|
||
# 2026-10-07: entered report state
|
||
|
||
`app/belki/history.py` persists an administrative `entered` boolean with an idempotent SQLite/PostgreSQL schema migration. `/api/admin/calculations/{id}/entered` is session-protected and updates one report. `web/admin.html` defaults report history to the calendar current month, prepends an accessible checkbox/checkmark column, and dims rows after entry; sorting remains unchanged.
|
||
|
||
# 2026-10-13: persistent cat-name changes
|
||
|
||
`IdentityDirectory.rename_existing()` is the only write path for the user-facing rename feature. It requires an existing character ID, updates `identities` and denormalized `profiles` names in PostgreSQL/SQLite, removes the stale old-name index entry, and refreshes cached profiles. The VK dialog starts from the `Изменить имя кота` menu button and asks for ID then a new name. The web `/belki` `Имя кота` tab looks up the current name and submits `/api/rename-identity`; `/api/resolve-identity` remains stateless for report form completion.
|
||
|
||
## ULLI background weather — 2026-10-18
|
||
|
||
Calculator/admin share `web/weather-effect.js` and `.css`, served through `/api/weather/effect.*` so existing gateway routing works. `app/belki/weather.py` reads only the fixed public ULLI raw METAR endpoint: observed wind/gusts control speed/drift, RA/DZ and SN/SG select rain/snow/mixed particles, intensity controls density. Trends/remarks/vicinity do not change observed weather. The cache is process-local (5 min success, 1 min failure), timeout 3 s, payload cap 64 KiB; observations expire after 2 h. Failure restores leaves. Browser polling is every 5 min, hidden tabs pause, reduced motion keeps at most seven faint static particles. No dependencies or storage changes. Remote test-zone MCP was unavailable; local fixtures and browser checks were used. On this Mac, Python HTTPS required `SSL_CERT_FILE=/etc/ssl/cert.pem`; never bypass TLS verification. Production is unverified until a separately requested push/deployment.
|
||
|
||
- 2026-10-18 20:19 MSK: operator's `98182c17` weather rollout verified live. Web/bot/gateway Ready, zero restarts; public `/api/weather/ulli` matched ULLI wind 3 m/s/CAVOK, CSS/JS matched local commit, calculator/admin rendered leaves with reduced motion respected and no console errors. This supersedes the earlier unverified-production status for the leaves/current-weather path; production rain/snow remain fixture-only evidence.
|
||
|
||
## Frontend contracts and LongMemory identity — 2026-11-14
|
||
|
||
- The owner explicitly chose LongMemory `project_id="catwar"`; root `project-info.txt` is the canonical literal identity. Do not derive a different namespace from the repository name. Initial project context/recall had no matching knowledge.
|
||
- `/belki` section choices are real links with URL/history behavior; calculation modes are native radios. Keep browser keyboard semantics and `aria-current`/pressed states aligned with visible selection. File pickers in both application forms must remain visible and keyboard reachable.
|
||
- Editing a report or changing modes invalidates its prepared payload/output. Ignore calculation responses whose version is older than the current form state; guard concurrent preparation/application requests. These frontend guards are not server-side idempotency.
|
||
- Training points have scalar `result.kitten_points` (25); coaching points use an array. Both shapes must render, and hidden activity fields must stay disabled for browser validation. The points renderer uses text nodes instead of HTML interpolation.
|
||
- Regression coverage is `tests/browser/calculator.cjs` with external Playwright and an isolated loopback server; see AGENTS.md. 49 focused Python checks and desktop/mobile browser flows passed in the local fallback environment. Other browsers and real assistive technology remain unverified; no deployment was made.
|
||
- Chrome extension guidance was reviewed, but the legacy CatWar entries are userscripts and were not converted to Manifest V3. Existing licensing/attribution and asset URLs remain intact.
|