# AI Agent Note — VardKey Short working handover for the next model. Keep it short. - `TODO.md` (Norwegian) is the requirement specification. Sections 1–18 are the binding spec; 19–31 are history; section 32 is the round in progress. The full reasoning is in the git history. - The binding rules live in `TODO.md` and `README.md`. This note does not repeat them — it carries the handover, the rules that are easy to get wrong, and the traps that already cost time. - `HANDOVER.md` was deleted as outdated. Do not recreate it. ## Status - **Done and verified:** sections 1–31 and section 18 steps 1–11. **Section 32.1, the icon, is done** — the SVG drawing, the favicon on every page, the top-bar brand mark and the two 192 and 512 px PNGs — together with **section 32.2, the UI pass with the retro theme**, **section 32.3, the alert and page texts**, **section 32.4, the bug report** (round 32-A and round 32-B), and **section 32.7, the dashboard menu and the dashboard clean-up**. The follow-up round of 32.1 and 32.2 — the favicon, the top-bar brand mark, the footer at the bottom, the single way back, the history button and the three line/table changes in the history view — is done too. Schema version 12. **511 green tests.** The StartOS package is built, sideloaded and running on a StartOS 0.4.0 box; the package version is still `0.1.0:0`. - **What is left of section 32:** 32.6 the documentation drift, and then 32.5 the raise to `1.0.0:0` together with section 18 step 12. 32.6 has to come after the rounds it documents, and 32.5 last. One item inside 32.4 is left to the user: **BR-003** — read the 32.4 section below before acting on it, because the report's own wording for it is out of date. The user's own manual pass is also outstanding: the retro theme on a narrow phone, the footer on a short page, the favicon in the tab, the brand mark in the top bar, the top-bar menu and the cleaned dashboard, installing the PWA with the two PNG icons, the history view after the three changes, and the whole box test again. - **A round stops when it is done.** Do not start the next item unless the user asks. - **Verified how:** the automated suite, the user's manual browser testing, and the install and test round on a StartOS 0.4.0 box. The user runs the suite; the agent has no shell. - **Tests:** `python3 -m unittest discover -s tests`. They run on a Windows copy at `C:\Users\\Downloads\helsesjekk`, so they must pass there as well as on Linux. - **Known gap, still open, folded into 32.6:** `docs/application.md` and `README.md` still describe the API as it was before section 31 — no login/session endpoints, no gating or CSRF rule, the old maintenance command name, the undated export name, and now also the two new summary fields, the moved field reminder, the added `model` field in the check detail, the icon link on the pages, the two PNG icons, the top-bar menu, the removed dashboard cards, the `Download CSV` link on the history page and the robots rule. The documentation conflict in the bug report (BR-004) covers the same ground. ## Section 32 — what is left - **32.1 The icon — done.** `icon.svg` at the root and `static/icon.svg` are the same retro drawing: a raised grey window with the three keys, centred in the face. **The navy title bar is gone**, and the keys were recomputed so they are centred: one key group is 21 high, the face inside the bevel runs from 6 to 122, so the centre is 64 and the keys sit at `translate(23, 25.5)`, `(23, 51.5)` and `(23, 77.5)`. The root file is 1.2 KiB, well under the 40 KiB cap, and it is plain SVG with no font, image or network reference, so the `default-src 'self'` CSP holds. Every one of the six pages links `/icon.svg` as its favicon, the top-bar brand mark is the icon image under the same `brand-mark` class, and the two PNGs the user rasterized — `static/icon-192.png` and `static/icon-512.png` — are listed in the manifest after the SVG, served through `STATIC_FILES` and cached by the service worker. `/icon.svg` was already in `STATIC_FILES`, in the manifest's `icons` entry and in the service worker's allow-list, so no path is new; the two PNG paths are. - **32.2 UI polish — done**, including the follow-up round. See the round 32.2 section below. The only thing left for the user is the manual browser pass on a narrow phone and over the new points. - **32.3 Alert and page texts — done.** See the round 32.3 section below. - **32.4 The bug report — done.** See the section below for what each finding turned out to be. - **32.7 The dashboard menu and the dashboard clean-up — done.** Six points, all in `TODO.md` §32.7: the `Menu` drop-down in the top bar instead of the Sign out button; the `Configured setup` / `Your keys` heading and the `#key-count` label gone, with `#key-list` moved up under `#setup-shape`; the `Next check` card gone and the earliest due date moved into `Attention`; no placeholder text in an empty alert list; the dashboard history card gone with `Download CSV` moved to `/history`; and no indexing or crawling (`static/robots.txt`, a `noindex, nofollow` meta on all six pages, and an `X-Robots-Tag` header from `_send_security_headers()`). No schema change, no new endpoint, no new feature, and `static/robots.txt` is the only new file. See the round 32.7 section below. It had to be done before 32.6, so the documents describe the released state. - **32.6 The documentation drift.** `README.md`, `docs/application.md`, `instructions.md`, `UPDATING.md`, `AGENTS.md` and the package's own i18n strings are all behind the code. `TODO.md` §32.6 lists what is wrong in each. It answers the rest of BR-004, and it must be done after 32.1–32.2 and 32.7 and before 32.5, so the documents describe the released state. - **32.5 The version raise.** `0.1.0:0` → `1.0.0:0`, once the items above are done and the user says so. No schema change, no new endpoint, no new feature. `startos/versions/` stays empty, because the app migrates its own schema. ## Round 32.7 — the top-bar menu and the dashboard clean-up Six points, all in `TODO.md` §32.7. No schema change, no new endpoint, no new feature, no new document, and `static/robots.txt` is the only new file. - **The menu is built by `static/session.js`, not by the pages.** It replaced the lone Sign out button, and it is added on the five application pages — `/login` has none, because `session.js` is not loaded there. The items are `Start health check` → `/health-check`, `Settings` → `/settings`, `History` → `/history`, a separator, and `Sign out`. The first three are `` and Sign out is a `