# Project State & Enhancement Backlog
Living list of what's done and what's next for blog.hoelee.com. Work through these **one by one** โ don't batch unrelated changes. Check off items as they land.
**Status key:** โ done ยท ๐ต in progress ยท โฌ not started
> **How to resume the project:** start at the top-most โฌ item in the **Execution Plan** (ยง2) below and work downward. Each step is self-contained, has a "done when" criterion, and references the governing doc. Don't jump ahead โ earlier steps unlock later ones.
---
## 1. Done (foundation)
- โ Astro 5 static + Markdown, Gitea Actions CI/CD โ nginx โ Cloudflare (deployed)
- โ Design system: hoelee.com brand palette, Inter + JetBrains Mono, light/dark, sticky nav, code copy button
- โ Brand "Mr Hoelee" (replaced "hoelee.dev")
- โ Author card + `Person`/`ProfilePage` JSON-LD (E-E-A-T), article meta, reading time, related posts
- โ Full SEO: canonical, Open Graph (+dims), twitter:card, favicon (all sizes), RSS + sitemap
- โ Category pages (`/categories/`, `/categories/[category]/`)
- โ Locale scheme: English flat in `posts/`, Chinese in `posts/zh/` (lang derived from folder)
- โ Language switcher in nav โ links to the **same post** in the other language (auto-matches by `zh/` prefix)
- โ Locale-aware nav labels (EN/ZH)
- โ Dark mode default (light opt-in via toggle)
- โ Case study "How I Host This Blog"
- โ Chinese translation of the case study (`posts/zh/how-i-host-this-blog.md`)
- โ hello-world intro post
- โ Case study "How I Built the DigiKedai Telegram AI Bot" + Chinese twin (`posts/zh/how-i-built-the-digikedai-telegram-bot/`)
- โ Business framing corrected (website design & development = primary; email hosting = secondary)
- โ Knowledge guides in `docs/` + README index + `hoelee-blog` skill
- โ Both repos public (Gitea + GitHub) with title/description/homepage/topics + `v1.0.0` release
- โ **Live re-audit of the Sept research recorded (ยง2 Phase E + ยง4), 2026-09-29** โ 53 posts ร 2 languages, 127 sitemap URLs, 133/133 internal links 200
---
## 2. Execution Plan (work top โ bottom, one step at a time)
> This plan comes from a full research pass (Sept 2026) comparing blog.hoelee.com against reference developer blogs (Simon Willison, Josh Comeau, Dan Abramov/overreacted, Julia Evans) + industry surveys. Priority is fixed: **identity & content โ discovery โ polish.** Don't reorder unless the user says so.
>
> **โ Re-checked against the live site 2026-09-29 (ยง4).** Parts of Phase A/C/D are stale โ **C1, D1 and B2b are DONE.** The measured bottleneck is no longer content; it is **distribution / visibility**. Per user decision on 2026-09-29, **Phase E is inserted at the TOP of the queue โ start there**, then work the still-open A/C items.
### Phase E โ Distribution & visibility (added 2026-09-29 from the live re-audit โ DO THESE FIRST)
The Sept research assumed the constraint was identity + content. Measured on 2026-09-29 that is no longer true:
53 posts live in both languages, 127 sitemap URLs, and all **133 internal links** across the home, archive,
category, about and ZH pages return **200**. The site is built and healthy โ almost nobody can find it, and there
is no instrumentation to tell whether anyone does. Full evidence table in ยง4.
**Step E1 โ Analytics + the search-performance loop.** โฌ
There is **no analytics of any kind**: home, post, about and ZH pages were grepped for GA/GTM, Plausible, Umami,
Matomo, Clarity, PostHog and Cloudflare's `beacon.min.js` โ zero hits. Without it, "did this post get read" is
unanswerable, and the job-hunt thesis can't be verified. Decisions (2026-09-29):
| Option | Verdict |
|---|---|
| **Cloudflare Web Analytics** | โ **Primary.** Free with no event/traffic cap, **cookieless** (no consent banner, no CLS cost), one snippet in the base layout โ and it reports Core Web Vitals field data, which the Sept report's CWV item otherwise has no way to check. |
| **Google Search Console** | โ **Not optional, and half-done already.** `hoelee.com` carries a `google-site-verification=โฆ` TXT record, so a **domain property** already covers `blog.hoelee.com`. Unconfirmed: whether `https://blog.hoelee.com/sitemap-index.xml` was ever submitted. Only the GSC UI can answer that. |
| **Umami** (self-hosted on DSM โ MIT, ~1 M events/month free cloud tier) | ๐ต Optional later, only if per-event funnels or full data ownership are wanted. |
| GA4 / Plausible CE | โ Skip โ GA4 brings weight + a consent banner; Plausible CE needs Postgres **and** ClickHouse. |
- [ ] Enable CF Web Analytics for the zone and add the beacon to the base layout's `
` (belt-and-braces vs CF auto-injection).
- [ ] Confirm the GSC domain property covers the blog, submit `sitemap-index.xml`, and re-check "Discovered / Indexed" counts ~a week later.
- **Done when:** a pageview from a second device shows up in CF Web Analytics, and GSC lists the sitemap as Submitted with the post URLs Discovered.
- **Governing doc:** `seo-reference.md`.
**E1 progress โ self-hosted Umami deployed 2026-09-29 โ (deploy only; not yet public, not yet wired to the blog)**
| Item | State |
|---|---|
| Stack | DSM Portainer **stack 284 `umami`** (endpoint 2), container `umami`, host port **5410 โ 3000**, network `bridge_hoelee` |
| Image | `ghcr.io/umami-software/umami:postgresql-latest` โ resolved **v3.4.0** (Node 22.23.2). โ v3 publishes versioned tags on `docker.umami.is`, but ghcr only carries rolling tags (`postgresql-v*` stops at 2.16) โ record the running version before any upgrade or there is no tag to roll back to |
| Database | **Reused the shared instance**: stack 139 `postgres` โ `postgres-server` (PG 17.10, `Etc/UTC`). New role + DB `umami` (login only, **not** superuser). `CREATE EXTENSION pgcrypto` works because PG 13+ treats it as trusted. โ Data lives in `/volume1/docker/postgres-server/data` next to authentik / n8n / tubesync / crowdsec โ same fate if that volume is restored |
| Env | `DATABASE_URL`, `APP_SECRET`, `TWO_FACTOR_ENCRYPTION_KEY`, `CLIENT_IP_HEADER=x-forwarded-for`, `DISABLE_TELEMETRY=1`, `DISABLE_UPDATES=1`, `MCP_ENABLED=1`, `TZ=Asia/Kuala_Lumpur`. No `cpus:` (DSM has no CFS quota) |
| Verified on LAN | `/api/heartbeat` โ `{"ok":true}` (first hit 6.1 s cold, then 66 ms), `/login` 200, container `healthy`, prisma migrations created **16 tables** |
| Ops notes | `/volume1/docker/umami/README.md` |
| **Public URL** | **https://stats.hoelee.com** live 2026-09-29 โ DNS **A โ 180.73.9.11** (the user's usual path, **not** through Cloudflare) โ router 443 โ DSM nginx reverse proxy (`ReverseProxy.json` key `8df2ab4d-ff73-47a0-b5ad-5a09957e6402`, frontend `stats.hoelee.com:443` โ **`localhost:10000`** = the authentik outpost since the SSO cut-over) โ `http://umami:3000`. Cert = Let's Encrypt `CN=stats.hoelee.com`, 2026-09-28 โ 2026-12-27; `http://` โ 308. Public allowlist via `skip_path_regex` only: `/script.js` 200, `POST /api/send` 200/400, `/api/heartbeat` 200; every dashboard path 302 โ `auth.hoelee.com` |
| **Client IP fix** | โ Because traffic does **not** pass Cloudflare, `CLIENT_IP_HEADER` was changed `cf-connecting-ip` โ **`x-forwarded-for`** (what DSM nginx sets) on 2026-09-29, stack re-PUT and verified in the running container. Without it every visit would be attributed to the proxy. Consequence of no CF: no WAF/rate-limit/bot protection on this hostname |
| โ **Hardening (A+B) done 2026-09-29** | (A) Default `admin`/`umami` replaced with a random 20-char password (`C:\Users\hoelee\.secrets\umami-admin.txt`) and `APP_SECRET` rotated โ every previously issued session invalidated. Verified: old password **401**, new password **200**, old token **401**. (B) New stack **285 `umami-gateway`** (`nginx:1.29-alpine`, holds host port **5410** = what the DSM vhost targets) โ public allowlist is exactly `/script.js`, `/api/send`, `/api/heartbeat`; **everything else 403**. Umami itself no longer publishes a public port; the dashboard moved to **LAN-only `192.168.1.1:5411`** (stack 284 republished `5411:3000`), which is unreachable from the internet โ verified from the VPS: TCP 5411 closed/filtered, TCP 443 open. โ **Superseded later the same day by the SSO gate below** โ the DSM vhost now points at the outpost, so stack 285 is no longer in the public path but is **left running as the rollback** |
| โ Gate design constraint found | **HTTP basic auth cannot be used here**: the Umami front end sends `Authorization: Bearer ` on its own API calls, and a browser sends only one `Authorization` header โ Bearer replaces Basic, so a basic-auth gate 401s every API call and the dashboard breaks. If a *remote* dashboard is ever wanted, **one hostname is still enough** โ either rely on Umami's own login (+ enable 2FA) or put cookie auth (authentik forward-auth / oauth2-proxy) on this same hostname with skip-paths for the tracker (the `traefik-login-numerology` pattern). A second hostname (tracker vs admin) is the PostHog/Sentry-scale ingest-vs-app split, not a requirement. `stats-admin.hoelee.com` was only a hypothetical and was never created (NXDOMAIN verified) |
| End-to-end tracker verified | A real pageview POSTed through the **public** gate was recorded: 1 pageview / 1 visitor, with `country=MY, region=MY-07, city=George Town`, browser chrome, os Windows 10 โ proving the `X-Forwarded-For` chain (DSM nginx โ gate โ Umami) works and geo needs no Cloudflare headers. The temporary test website was deleted afterwards (website list back to 0) |
| Still open | (a) CF Web Analytics still not enabled (independent of Umami โ it is the zero-code option and would also give Core Web Vitals field data). (b) GSC sitemap submission still unconfirmed โ only the GSC UI answers it. (c) โ **Resolved 2026-09-30** โ the tracker is wired into three sites (see Step B2j) and pageviews are landing with real geo + referrer; "recording" is no longer in doubt, only the CF/GSC half of E1 remains |
| Dashboard login | **Two ways in** (since the SSO cut-over): โ authentik SSO first, then the app's own login โ or the LAN break-glass . Credentials: `admin` + the random password in `C:\Users\hoelee\.secrets\umami-admin.txt` (agent-set 2026-09-29; change it in Settings โ Profile if you prefer). Per-account 2FA is available (`TWO_FACTOR_ENCRYPTION_KEY` already set) |
**E1 progress โ SSO gate wired 2026-09-29 โ (authentik `forward-auth`-style proxy in front of the dashboard; tracker stays public)**
The user asked for the dashboard to be reachable remotely **without** publishing an Umami login page, i.e. one hostname, SSO on the dashboard, tracker open. Built on the existing authentik instance (`auth.hoelee.com`, 2026.8.2) instead of a second container:
| Item | State |
|---|---|
| authentik objects | proxy provider **pk 64 `Provider Proxy Stats`** (`mode=proxy`, `external_host=https://stats.hoelee.com`, `internal_host=http://umami:3000`, `skip_path_regex` = `^/script\.js$` + `^/api/send` + `^/api/heartbeat$` + `^/mcp(/|$)`) + application **`umami-stats`** (launch URL + 512ร512 logo, see below). Attached to the **embedded outpost** `e16274ac-a3ad-4c21-bb16-4a5d32570bc6` (20th provider) |
| Per-app login flow | **`auth-stats`** (designation `authentication`, 4 stages: identification โ password โ mfa-validation โ user-login), so the SSO page for this app is its own branded screen and **not** shared with the other 19 apps. Provider `authentication_flow` points at it |
| App icon | โ In this build the application icon field is **`meta_icon`** (not `icon` โ PATCHing `icon` silently no-ops). Uploaded with the house convention `application-icons/umami.png` via `POST /admin/file/` (multipart, `usage=media`), then `PATCH /core/applications/umami-stats/ {"meta_icon": "application-icons/umami.png"}` โ `meta_icon_url` `/files/media/public/application-icons/umami.png` verified 200 (21,989 B PNG) |
| DSM cut-over | vhost `โฆc378795c2acb.w3conf` ยง2731 `proxy_pass http://localhost:5410` โ **`http://localhost:10000`** (the outpost) + `ReverseProxy.json` `"port" : 5410` โ `10000`; backups `*.bak-20260929-sso-stats-sso`. Both edits asserted unique first (`grep -c 5410` = 1 in each file), `nginx -t` clean, reloaded |
| โ Pitfall found | **`mode=proxy` is required here, `forward_single` breaks it**: `forward_single` leaves `internal_host` empty, so the outpost has no upstream โ the SSO redirect chain looks perfectly healthy while **every app path silently 404s** (`/script.js` 404 with `x-powered-by: authentik`). `proxy` + `internal_host=http://umami:3000` is also what HA (pk 6) / NocoDB (pk 62) use |
| โ Other pitfall | After any provider change the **embedded outpost needs ~1โ2 min to pick up the new config**; before that, `/` answers `302 โ /flows/-/default/authentication/` and app paths 404. Judging the wiring before that window expires gives a false "it's broken" |
| Verified from the public internet (2026-09-29) | anonymous `/` โ 302 โ `/outpost.goauthentik.io/start` โ `auth.hoelee.com/if/flow/auth-stats/โฆ` โ **200** (same shape as the working `auth-mysql` chain); `/login`, `/api/websites` โ 302 gated; `/script.js` **200**, `/api/heartbeat` **200**, `POST /api/send` **400 app-level** |
| End-to-end tracker through the SSO path | temp website + 2 pageviews POSTed to `https://stats.hoelee.com/api/send` โ recorded **2 pageviews / 1 visitor / 1 session**, `country=MY, region=MY-07, city=George Town`, referrer metric `google.com` โ **the outpost does not break `X-Forwarded-For`, geo still works**; temp website deleted |
| MCP over the public URL (added 2026-09-29, same day) | `^/mcp(/|$)` appended to the provider's `skip_path_regex` (done via `ak shell` ORM โ the `hermes3` API token was dead by then, and the ORM write is the same model path the API uses). Verified: `POST https://stats.hoelee.com/mcp` with `Authorization: Bearer umami_โฆ` + `Accept: application/json, text/event-stream` โ **200**, `Content-Type: text/event-stream`, chunked, `x-powered-by: authentik`, `tools/list` returns the tool table, `tools/call list_websites` โ `count: 0`; **no key โ 401** (`Missing bearer API key`, i.e. the request reaches Umami, not the SSO gate); dashboard paths still 302, tracker paths unchanged. โ `x-api-key:` does **not** work for Umami's API/MCP โ only `Authorization: Bearer` |
| **Tracker wired into the two sites (2026-09-29) โ ** | Website records created: `blog.hoelee.com` โ `1817d8f6-0e49-4b9a-a50d-307e4f2962c7`, `www.digikedai.com` โ `61b57143-f3f4-4353-9ede-9c615146de84`. Snippet added to `blog/src/layouts/BaseLayout.astro` (commit **de17bea**, pushed Gitea+GitHub, Gitea Actions โ live in ~1 min; covers EN **and** ZH since both use the layout) and to `dsm-resource-management/www/src/layouts/Base.astro` (CF Pages via `./deploy.sh`, deployment `4d3d6aa6.digikedai.pages.dev`). Both tags carry `is:inline` (Astro would otherwise process the script) + `data-domains` so local dev never reports. Verified live HTML on both domains contains the `data-website-id`; verified end-to-end with a **real Chrome** (Canary CDP 9222): blog `/` + `/zh/` โ 4 pageviews/2 visitors, digikedai `/` + `/products/` โ 2 pageviews/1 visitor, geo `MY / MY-07 / George Town`, chrome/Windows 10; then `POST /api/websites//reset` cleared the test rows (both back to 0) |
| โ **Verification pitfall: headless browsers are ignored** | Umami drops bot/headless user agents โ `HeadlessChrome/151` (DSM browserless) โ `200 {"beep":"boop"}` and **nothing stored**; a normal Chrome UA โ `200 {"cache":โฆ}` and stored. So `beep boop` = *ignored*, not success, and an empty dashboard after a headless test is not a bug. Verify tracking with a **real** browser (Canary CDP 9222: `curl -X PUT "http://127.0.0.1:9222/json/new?"`), or at least a normal-UA curl |
| Not done yet | CF Web Analytics beacon + GSC `sitemap-index.xml` submission (both independent of Umami) |
| Known trade-off (honest) | (1) SSO protects the *dashboard route*, but Umami has **no OIDC**, so after SSO the user still sees **Umami's own login page** โ double login, expected, one-click after the first time (2FA is available per-account in Settings โ Profile; `TWO_FACTOR_ENCRYPTION_KEY` already in the stack env). (2) `` remains a **LAN break-glass path that bypasses SSO** (still needs Umami credentials; verified closed from the internet) โ delete/close it if that is not wanted. (3) If the authentik outpost goes down, the dashboard goes down with it (tracker too โ but the site keeps loading, the tracker fails silently) |
| Rollback | Start the gate again (`sudo /usr/local/bin/docker start umami-gateway`, or start stack 285 in Portainer) โ re-point the vhost + `ReverseProxy.json` to `5410` โ reload nginx. Backups of both files sit next to the originals. (The gate container is now **`Exited (0)`** โ it was stopped once the outpost took over, so port 5410 is free; the stack is kept as the rollback asset) |
| Note | The `hermes3` authentik API token expired mid-session (DB says `expires 2026-09-28 22:17:08Z`); the leftover self-test account was removed through authentik's own ORM (`ak shell`), so no admin-group test user is left behind |
**Step E2 โ Wire the two sites together (www.hoelee.com โ blog).** โธ Deferred by user 2026-09-29
Measured: **all six pages of www.hoelee.com** (home, `/zh-hans/`, `/about-mrhoelee/`, T&C, support, privacy) contain
**zero** references to `blog.hoelee.com`, while the blog links out to www.hoelee.com. The older, more established
domain passes no authority and offers no click-path to the portfolio โ one-way.
โ **User decision 2026-09-29: www.hoelee.com needs a full overhaul; do NOT patch it piecemeal now.** Fold this link
into that overhaul (together with the v2.1 audit finding that its agency framing conflicts with the job hunt).
Tracked here so it isn't lost.
**Step E3 โ Syndicate 2โ3 flagship posts.** โฌ (report ยง9 "Month 2+ โ promote": never executed)
`seo-reference.md` already carries the syndication policy (cross-post with canonical back to the original domain);
nothing has ever been syndicated, so the 53 posts only exist for people who already know the URL.
- [ ] Cross-post to dev.to with `` pointing at the original: `how-i-built-the-digikedai-telegram-bot`, `one-prometheus-for-unraid-synology-and-a-vps`, `self-hosting-mem0`.
- [ ] One LinkedIn share per flagship (same photo + name identity as the blog).
- **Done when:** each dev.to copy is live with the canonical set, and each has one LinkedIn post.
**Step E4 โ Chinese-side routes and nav are broken.** โฌ (extends Step C4)
Live ZH pages: the nav renders ใๆ็ซ ใโ `/zh/` (fallback; `/zh/posts/` **404s**) and ใๅ ณไบใโ `/zh/` โ i.e. the
Chinese nav's *About* link is wrong even though `/zh/about/` itself returns 200 and is in the sitemap. `grep
'/zh/about/'` finds **no inbound link anywhere on the site**, so the ZH About page is orphaned.
- [ ] Build the `/zh/posts/` archive; point ใๆ็ซ ใ at it and ใๅ ณไบใ at `/zh/about/`.
- **Done when:** `/zh/posts/` 200, both ZH nav labels point at the right routes, and `/zh/about/` is reachable by clicking from `/zh/`.
**Step E5 โ `og:locale` is wrong on all 53 Chinese pages.** โฌ
ZH post pages emit `` with `og:locale:alternate = en_US`.
- **Done when:** ZH pages emit `zh_CN` (`en_US` as the alternate), EN pages unchanged.
**Step E6 โ Cloudflare is not caching the HTML.** โฌ
A post page returns `cf-cache-status: DYNAMIC` and `strict-transport-security: max-age=0`. A static site behind CF
should be edge-cached โ lower TTFB and less origin traffic through the tunnel.
- [ ] Add a cache rule for `blog.hoelee.com` (cache HTML, honour origin `last-modified`) and take a decision on HSTS.
- **Done when:** a repeat request shows `cf-cache-status: HIT` **and** a deploy still goes live within ~1 minute.
**Step E7 โ Content-volume guardrail.** โฌ ongoing
53 posts shipped in ~4 weeks (30 dated 2026-09). The volume itself is the "content-farm" signal `content-guide.md`
ยง7 warns about, even though every post traces to real logs/commits. Two rules:
- Keep the existing per-post "every claim traces to a source file or log" check โ do not relax it for volume.
- **Never stack more than ~3โ5 posts on one `pubDate`** (worst day so far: 2026-09-18 with 5). Spreading a batch by
backdating into archive gaps is the sanctioned method.
**Step E8 โ Small hygiene backlog.** โฌ
- [ ] `scraping-bot-walled-marketplace-warm-browser-session`: OG card exists, **banner 404s** (no `banner:` in frontmatter, no PNG). Generate it or accept it as the one exception.
- [x] โ `authentik-css-greater-than-bug` (the `>` bug) โ **published 2026-10-16 (`2295c0f`)**: `draft: true โ false` in EN + ZH, `pubDate` kept at 2026-09-20 with **`updatedDate: 2026-10-16`** so `lastmod` stays honest, OG + banner generated (og `rows=1 overflow=0`; banner `delta=2 overflow=0`), and the CTA's displayed phone corrected (`011-797 2969` โ `+60 12-797 2969`). Verified live: EN/ZH/og/banner all **200**, language switch both ways, `/posts/` order still monotonic. The draft bank is now empty.
- [ ] `og-default.png` has **no face**; the homepage and category pages share it. Regenerate after Step A1 (same source asset).
- **Done when:** no page references a 404 image, the draft bank is empty, and the default share card matches the A1 photo.
### Phase A โ Identity (highest ROI, ~2โ3 hrs total)
**Step A1 โ Add a real author photo (headshot).**
The #1 gap vs. every reference blog: the avatar is a letter "M" placeholder and there's no photo anywhere on the site. Every credible personal dev blog has a human face.
- [ ] User provides one headshot (square, โฅ800ร800 for avatar; also source for og).
- [ ] Replace `avatar` letter with the photo in: nav/brand (optional), author card (About + every post), `ProfilePage` JSON-LD `image`.
- [ ] Add the photo to `og-default.png` template so the default share card has a face.
- **Governing doc:** `design-guide.md` ยง2 (author box), ยง5 (E-E-A-T name+photo consistency).
- **Done when:** a real face renders in the author card on About + every post; `curl` shows no 404 for the asset.
**Step A2 โ Align the homepage title & hero framing.**
The `` says "engineering, DevOps & self-hosting" but the hero says "full-stack developer and DevOps engineer" โ two slightly different framings.
- [ ] Pick one line (recommend: "full-stack developer & DevOps engineer") and use it in both ``/meta description and hero paragraph.
- **Done when:** homepage title, meta description, and hero all say the same thing about who Hoelee is.
**Step A3 โ Add a "Start here" / featured posts route.**
New visitors land on reverse-chronological "Latest posts" with no guidance to the best content (Julia Evans' Favorites, Josh Comeau's featured posts both solve this).
- [ ] Add a "Start here" (or "Featured") section on the homepage surfacing 2โ3 flagship case studies.
- [ ] Optionally add a `/favorites` or `/start-here` page (defer the dedicated page until โฅ6 strong posts; the homepage strip is the immediate win).
- **Done when:** homepage shows a featured/start-here strip above or beside "Latest posts".
### Phase B โ Content (80% of value; the long game)
**Step B1 โ Write the 2nd flagship case study: "Self-Hosting a Mem0 Memory Stack".** โ Done 2026-09-16
The Mem0 flagship is already the single highest-value unwritten post in the backlog.
- [x] Write `src/content/posts/self-hosting-mem0.md` (category `case-studies`).
- [x] Write Chinese twin `src/content/posts/zh/self-hosting-mem0.md` (same filename โ auto language-switch).
- [x] Follow the "hard job โ post" template (ยง4 content-guide) + open with "why it matters" + end with hire CTA (ยง8 post-guideline).
- **Governing doc:** `content-guide.md` ยง4/ยง8, `post-guideline.md` ยง8.
- **Done when:** โ both EN + ZH pages live, language-switch works, hire CTA present.
**Step B1b โ Write the self-hosted STT case study.** โ Done 2026-09-19
`self-hosted-speech-to-text-api.md` (EN + ZH): whisper.cpp on GPU + n8n auth gate +
nginx gateway, with the four build traps and the "5x faster than typing" business case.
- [x] EN + ZH posts, custom OG + banner, hire CTA.
- **Done when:** โ both pages build, language-switch verified, images generated.
**Step B2 โ Write 2โ3 short "gotcha" posts (Google-friendly, compound over time).**
- [x] "Replacing RDPGuard With IPBan: The Traps Nobody Documents" (EN + ZH, `devops`, 2026-09-19) โ the uninstaller that unbans 12 attackers, `--install-service` doesn't exist in v4.1.0, `ExpireTime` vs `BanTime`. Both images custom.
- [x] "When Your Database Client Lies to You: Patching Workbench 26 for MariaDB" (EN + ZH, `devops`, 2026-09-19) โ a client whose error handler crashed while reporting its own errors, masking every real failure; three patches to Oracle's bundled code, all stemming from `major >= 8` being an invalid MySQL-vs-MariaDB test. Both images custom.
- [x] "Why Chrome Forgets Its Tabs in a Container โ And How I Fixed It" (EN + ZH, `devops`, 2026-09-29) โ the container kills the browser, so it never sees a clean exit and *no* restore mechanism fires (flag, hand-edited `Preferences`, `RestoreOnStartup` policy all verified failing); the 60-second snapshot keeper that fixed it, plus the stale `Singleton*` and `custom-cont-init.d` permission traps. Both images custom.
- [x] "The Forward-Auth Gate That Verified Perfectly โ and Wasn't Live" (EN + ZH, `devops`, 2026-09-29) โ the B2 forward-auth item, delivered with a better villain than Traefik: the gate passed every local check (302 โ outpost, branded login page) while the public URL served the app directly, because that hostname is served by a Cloudflare tunnel rule that bypasses nginx; adds `skip_path_regex` (SSO for the UI, open API), the "count before you substitute" revert trap (11 vhosts share the outpost port) and the same-second reload race. Custom OG + banner, hire CTA, commit `e7e4ee5`.
- [ ] "Site-to-site OpenVPN behind CGNAT"
- [ ] "Fixing the WordPress /cv 301โ404 chain" (from own audit)
- **Governing doc:** `content-guide.md` ยง3 (post type #3), `post-guideline.md`.
- **Done when:** โฅ2 gotcha posts live (these are `notes`/`devops`, no Chinese translation required per ยง8).
- โ **Note:** `post-guideline.md` ยง8 (newer) says *every* post gets a ZH twin โ the "no Chinese required" note above is stale. The RDPGuard post was published EN + ZH.
**Step B2b โ Draft bank.** โ Both published 2026-09-27 (EN + ZH, with OG + banner, verified 200 on 2026-09-29) โ `migrating-codeigniter-iis-to-openlitespeed` and `upgrading-codeigniter-46-to-47`. The publish recipe below stays valid for the next draft. Remaining draft: `authentik-css-greater-than-bug` (**E8**).
Two finished posts (EN + ZH, each with frontmatter pointing at OG + banner paths) sitting in the repo but
**not built or listed** โ `draft: true` excludes them from all listings and generates no pages.
| Slug | Category | Status | Assets |
|---|---|---|---|
| `migrating-codeigniter-iis-to-openlitespeed` | `engineering` | drafted, unpublished | OG + banner PNGs **not yet generated** |
| `upgrading-codeigniter-46-to-47` | `notes` | drafted, unpublished | OG + banner PNGs **not yet generated** |
**To publish one later:**
1. Flip `draft: true` โ `draft: false` in **both** `src/content/posts/.md` and `src/content/posts/zh/.md`.
2. Set the real `pubDate` (currently `2026-09-20`, the draft date) in both files.
3. Generate its images: `node scripts/og-gen/generate.mjs ` and `node scripts/banner-gen/generate.mjs ` (add a `TERMINALS[slug]` / `BANNERS[slug]` entry first for the custom panel).
4. `npm run build`, commit, `git push origin main`.
5. Verify both URLs return 200 and the language switcher links them.
- **Why these two:** `engineering` had only 1 post and `tutorials` only 1 โ the blog was ~all `devops`/`case-studies`. These put PHP/CodeIgniter (the actual day-job stack) on the blog, which is what a PHP full-stack recruiter searches for.
- **Governing doc:** `content-guide.md` ยง3/ยง4, `post-guideline.md` ยง8.
- **Done when:** both are published live with EN+ZH, custom OG + banner, and verified 200.
**Step B2c โ (unplanned) Publish "No API for Browser Translation" โ the English-mode story.** โ Done 2026-09-29
`adding-english-mode-to-a-chinese-only-web-app` (category `engineering`, EN + ZH): the `` lie that
suppressed the browser's translate prompt, the fact that no browser-translate API exists, and the gateway-injected
dictionary + floating EN button (871 labels, 77โ88% measured coverage). Custom OG + banner, hire CTA, commit `8a9ba6a`.
- **Why:** `engineering` was the thinnest published category, and the story is a rare, searchable gotcha with hard numbers.
- **Done when:** โ both pages 200, language switch links both ways, sitemap hreflang pair, RSS entry, OG + banner served.
**Step B2d โ (unplanned) Publish "How I Vet an Open-Source Dependency Before Betting On It".** โ Done 2026-09-29
`vetting-an-open-source-dependency-before-you-bet-on-it` (category `devops`, EN + ZH): the six checks that
corrected six assumptions from a 1,306-line architecture spec โ repo vital signs via the GitHub API, grepping for
the feature instead of reading for it (OIDC/SSO/SAML โ 0 hits), reading a feature doc's target branch
(white-label lives on `multi-tenant`, not `main`), reading the data model rather than the feature list
(`percent`/`fixed` vs five assumed rule types), the Community-vs-Enterprise tier gate (API tokens free, SSO paid),
and whether the money rail works in-country (selfhost + manual payouts, not Stripe Connect). Custom OG + banner,
hire CTA, commit `8711136`.
- **Why:** forms a due-diligence cluster with `how-to-verify-a-hosting-provider-before-you-buy` and
`how-i-vetted-20-vps-providers-with-parallel-subagents` โ those cover vendors you *pay*, this covers code you
*depend on*. `devops` is the most differentiated category.
- **Done when:** โ both pages 200, language switch links both ways, OG + banner served (1200ร630 / 1600ร900),
listing order monotonic on `/posts/`, `/` and `/zh/`, Gitea Actions task `success`.
- โ **Overlap to watch:** two parallel in-flight posts cover adjacent material
(`nocodb-sso-is-a-licensed-feature`, `authentik-forward-auth-gate-wasnt-live`). If those publish, add
cross-links so the trio reads as a series rather than repetition.
**Step B2f โ (unplanned) Publish the agent-safety + CDP-automation pair.** โ Done 2026-09-29
Two posts from the DigiKedai voucher-automation session, both backdated into the archive's empty 2025
stretch (EN + ZH, custom OG + banner, commit `170f5cc`):
| Slug | Category | pubDate | updatedDate | What it is |
|---|---|---|---|---|
| `i-let-an-agent-manage-my-shopee-vouchers` | `ai` | 2025-07-08 | 2026-09-29 | the audit โ propose โ auto design, the `mode: propose` gate, and the list-lag mistake that created an unplanned RM140 voucher |
| `why-your-cdp-clicks-silently-fail` | `devops` | 2025-03-19 | 2026-09-29 | stale rect from `scroll-behavior: smooth`, coordinate clicks dropped on a hidden window, JS-dispatched events โ and how to tell the three causes apart |
- **Why 2025 dates:** 2025-01 โ 2025-10 was completely empty in the archive (nearest neighbours:
2024-09-24 and 2025-11-12). Backdating fills a real gap; `updatedDate` keeps `lastmod` / `dateModified`
honest (post-guideline backdating rule). Neither post carries a date-, month- or version-pinned sentence โ
verified with `grep -nE "20[0-9]{2}|January|โฆ|tonight|this week"` **before** moving the date.
- โ **B2's gotcha list is still open:** the three bullets there (Traefik forward-auth, OpenVPN behind CGNAT,
WordPress `/cv` 301โ404 chain) remain unstarted; `why-your-cdp-clicks-silently-fail` counts as an extra.
- โ **Generator entries deliberately NOT committed.** Another session had uncommitted edits in
`scripts/og-gen/generate.mjs` / `scripts/banner-gen/generate.mjs`, so the `TERMINALS` / `BANNERS` entries for
these two slugs were applied through throwaway `generate.local.mjs` copies (deleted afterwards) and the images
were committed as static files. **Re-add the four entries below** the next time one of these images must be
regenerated, or when the next post needs a panel in the same style:
````js
TERMINALS['i-let-an-agent-manage-my-shopee-vouchers'] = `
$python voucher_watch.py --auto
Confirm clicked ยท voucher not in the list โ the list was 10 min stale
mode=proposeโ waiting for price confirmation โ
`;
BANNERS['i-let-an-agent-manage-my-shopee-vouchers'] = {
titlebar: 'unraid โ shopee voucher watch',
lines: [
{ t: 'cmd', text: 'python voucher_watch.py --auto' },
{ t: 'dim', text: 'vouchers have no draft state โ Confirm = live + escrow' },
{ t: 'err', text: 'Confirm clicked ยท not in list ยท judged "refused" ยท clicked twice more' },
{ t: 'ok', text: 'it existed โ the voucher list was ~10 min behind' },
{ t: 'err', text: 'cost: one unplanned RM14/29 voucher ยท exposure RM140' },
{ t: 'cmd', text: 'policy: mode=propose ยท cap RM300/month' },
{ t: 'ok', text: 'PROPOSAL RM9.60 / min RM18 ร 20 โ WAITING FOR PRICE' },
{ t: 'hl', text: 'agent-created vouchers since the gate: 0 ยท 4 live' },
],
flow: [
{ n: '1', label: 'read-only audit' },
{ n: '2', label: 'propose params' },
{ n: '3', label: 'human confirms' },
{ n: '4', label: 'create once โ' },
],
};
BANNERS['why-your-cdp-clicks-silently-fail'] = {
titlebar: 'canary โ seller centre via CDP',
lines: [
{ t: 'cmd', text: "click '.picker-item.end-picker input'" },
{ t: 'err', text: 'clicked @591,361 ยท picker never opened' },
{ t: 'dim', text: 'scroll-behavior: smooth โ rect read mid-animation' },
{ t: 'ok', text: 'scrollBehavior=auto + behavior:instant โ rect is real' },
{ t: 'err', text: 'document.hidden=true โ coordinate clicks dropped' },
{ t: 'cmd', text: "['mousedown','mouseup','click'].forEach(dispatchEvent)" },
{ t: 'ok', text: 'picker opens every time ยท Confirm lands โ' },
{ t: 'hl', text: '3 causes ยท 1 injected listener tells them apart' },
],
flow: [
{ n: '1', label: 'arm listener' },
{ n: '2', label: 'elementFromPoint' },
{ n: '3', label: 'JS-dispatch click' },
{ n: '4', label: 'opens every time โ' },
],
};
````
- **Done when:** โ both pages 200 (EN + ZH), language switch links both ways, OG + banner served
(1200ร630 / 1600ร900), listing order monotonic on `/posts/`, `/` and `/zh/`, Gitea Actions task `success`,
and `git status` clean of other sessions' files.
**Step B3 โ Adopt the "hard job โ post" habit.**
Every solved problem becomes a `notes` entry the same week.
- [ ] Revisit cadence target: 2 posts/month โ 1/week (`content-guide.md` ยง5).
- **Done when:** 3 consecutive months hit the 2-posts/month floor.
**Step B2e โ (unplanned) Two posts out of the SSO / forward-auth session.** โ Done 2026-09-29
Same working session that wired (and then deliberately rolled back) an authentik forward-auth gate in front of a
self-hosted app produced two posts:
| Slug | Category | What it argues | Commit |
|---|---|---|---|
| `authentik-forward-auth-gate-wasnt-live` | `devops` | the gate verified perfectly from the host while the public URL bypassed it โ two ingress layers per hostname; verify from outside and read which software answered (`x-powered-by`) | `e7e4ee5` |
| `nocodb-sso-is-a-licensed-feature` | `notes` | the OIDC env vars are real and enforced at boot, but the feature is Business+; on an unlicensed build an unauthenticated `GET /auth/oidc` throws and exits(1); MySQL meta blocks licensing; the "drop-in" community fork is abandoned (0.255.2, 2024-10-29) | `2d0de72` |
- Both EN + ZH, custom OG + banner, hire CTA; both link to each other (one-way: the NocoDB post links to the gate post).
- **Why:** the trap is rare and genuinely searchable (`authentik forward auth`, `nocodb sso self-hosted`), and both are
first-person debugging stories with measured evidence โ the moat per `content-guide.md` ยง7.
- **Done when:** โ 4 pages 200 with expected content, language switch links both ways, 4 images served as `image/png`.
**Step B2f โ (unplanned) Four monitoring posts out of one Prometheus/Grafana session.** โ Done 2026-09-29
One working session that unified monitoring across unRaid + Synology DSM + a VPS produced four posts. All four are
**backdated** into the 2026-03-25 โ 2026-09-04 archive gap (that stretch had no posts) with `updatedDate: 2026-09-29`
holding the real date, so the sitemap `lastmod` stays honest and listings still sort by `pubDate`:
| Slug | Category | pubDate | What it argues |
|---|---|---|---|
| `smartctl-exit-code-32-skips-the-disks-that-matter` | `notes` | 2026-04-14 | `smartctl`'s exit status is a bitfield, not a boolean: `rc=32` means "SMART OK, attributes were below threshold in the past". An `if ! smartctl` guard skipped 2 of 4 SSDs โ exactly the marginal ones. Fix: mask the informational bits (32/64), export `rc` as a metric. |
| `why-your-grafana-dashboard-shows-no-data` | `devops` | 2026-05-17 | A template variable defined as `label_values(...{nodename=~"$nodename"})` filters on itself โ 0 options โ `$node` empty โ every panel No data while all targets are `up`. Also: why hand-substituting variable values during verification hides exactly this bug, and `$__all` โ `.*` in automated panel checks. |
| `your-disk-full-alert-is-lying` | `devops` | 2026-06-24 | Percentage thresholds on multi-TB volumes fire while 500 GB remains; 92% "memory used" with 4.8 GB available is cache, not pressure. Alert on consequences: bytes free, `MemAvailable`, steal >50%. Includes the "keep the comparison in the threshold condition" rule and the mount-selector exclusions. |
| `one-prometheus-for-unraid-synology-and-a-vps` | `case-studies` | 2026-07-29 | The flagship: node_exporter vs cAdvisor coverage matrix; `name!=""` for cAdvisor's non-container cgroups; "total storage" counting one NAS volume three times (`/volume1`, `/opt`, CIFS re-mount) and the dedup selector; a KVM guest exporting no CPU frequency at all (textfile collector, distinct metric name, merged with `or`); a container reporting its own ID as `nodename`. Result: 7 targets, 47 cores / 158 GHz / 142 GB / 64 TB / 155 containers on one screen. |
- All four EN + ZH, custom OG + banner, hire CTA naming "self-hosted monitoring pipelines"; no post carries an absolute
date or "recently/as of" phrasing, which is what made the backdating safe (per `post-guideline.md` backdating rule).
- **Why:** the blog had **zero** Prometheus/Grafana/monitoring posts while `content-guide.md` ยง2 lists monitoring under
`devops`, "my most differentiated material" โ and `monitoring`/`grafana no data`/`smartctl exit code` are heavily
searched by exactly the audience this blog targets.
- **Done when:** โ 8 pages 200 with expected content, language switch links both ways, 8 images served as `image/png`,
archive order still monotonic on `/posts/`, the homepage and `/zh/`.
**Step B2g โ (unplanned) Three posts out of the Synology Office / spreadsheet-API session.** โ Done 2026-09-29
One session spent making a Synology NAS read, write and chart spreadsheets produced three posts. All three are
**backdated** into the 2024-09-24 โ 2025-11-12 gap โ the widest stretch in the archive with no posts โ with
`updatedDate: 2026-09-26` holding the real date, so `lastmod` stays honest and listings still sort by `pubDate`:
| Slug | Category | pubDate | What it argues |
|---|---|---|---|
| `synology-spreadsheet-api-is-a-container` | `devops` | 2025-08-20 | The flagship. Enumerating the DSM gateway (1,515 APIs) showed no cell-level Office endpoint, so I concluded the NAS had no spreadsheet API โ **wrong**: it ships as the container `synology/spreadsheet-api` (image tag โ Office version table). Plus two diagnostics that lied (`synopkg is_onoff` reporting a running package as "not turned on"; `ps` without `sudo` on DSM listing only your own processes, which made a live stack look dead), a required `AUTH_SECRET` whose absence crashes with a minified stack trace, a `401` with provably correct credentials, 2FA that can never authenticate, `403` vs `404` semantics, a personal `My Drive` unreachable by any service account, and the verified fix โ read/write/CSV/`.xlsx` with Synology's own engine evaluating the formulas, then a chart out the far end. |
| `synology-api-401-with-the-correct-password` | `notes` | 2025-09-10 | The two causes of a `401` when the password is right: `host` must be an FQDN whose certificate the proxy accepts (a bare LAN IP fails its TLS handshake, and a failed handshake is reported identically to a bad password), and a 2FA account can never sign in (`AuthorizationBody` has no OTP field). Includes the three-command triage that separates them, and why a token that worked yesterday returns `401` today โ it's bound to the DSM session, not just to a 28-day clock. |
| `reading-a-containers-own-api-docs` | `notes` | 2025-10-01 | Extract a container's contract from the artifact instead of the vendor's page: `--entrypoint cat` the bundled OpenAPI spec, `--entrypoint grep` the bundle for the env-var contract and the defaults, read Env/Entrypoint/Cmd from the registry config blob without pulling a byte, decode the real listening port from `/proc/net/tcp`, and run detached to read startup logs without hanging the shell. |
- All three EN + ZH, custom OG + banner (centering **measured**, not eyeballed: gapAbove/gapBelow 47/49, 76/78,
106/108, `delta=2px`, `overflow=0`), hire CTA naming self-hosted integrations; the two `notes` posts link up to
the flagship with a relative link.
- **Why:** the search results for `synology spreadsheet api` / `spreadsheet-api docker` are Synology's own Hub page,
a German how-to and two MCP wrappers โ nothing covers the failure modes, and the "vendor tool told me the wrong
thing" shape matches the blog's strongest existing genre (`patching-workbench-26-for-mariadb`,
`when-smart-says-healthy-but-your-raid-is-corrupting-data`).
- **Done when:** โ 6 pages 200 with expected content, language switch links both ways, 6 images served as
`image/png`, archive order still monotonic on `/posts/`, the homepage and `/zh/`.
**Step B2h โ (unplanned) Audit + backdate of the six posts that landed on 2026-09-29.** โ Done 2026-09-29
One publishing day put **six** EN posts on the same `pubDate`, so `/posts/` opened with a single-day dump. Each was
checked for date-, month- and version-pinned prose before its frontmatter was touched; two carried no pins and were
moved into the archive's empty months with `updatedDate: 2026-09-29` holding the real date:
| Slug | Category | pubDate โ updatedDate | Why it was safe / blocked |
|---|---|---|---|
| `adding-english-mode-to-a-chinese-only-web-app` | `engineering` | 2025-06-11 โ 2026-09-29 | no absolute date, month name, version or relative-time phrasing anywhere in EN or ZH; fills the empty 2025-06 |
| `authentik-forward-auth-gate-wasnt-live` | `devops` | 2026-08-12 โ 2026-09-29 | no pins. `nocodb-sso-is-a-licensed-feature` links *back* to it, so it must stay dated earlier than 2026-09-29 (it does), and the "licensing story in its own write-up" forward reference now reads as weeks rather than months. Fills the empty 2026-08 |
- **The four that had to stay on 2026-09-29, and the exact sentence that pins them:**
- `read-only-nocodb-dashboard-for-a-remote-database` โ image tag `nocodb/nocodb:2026.09.0` **and** a returned row
timestamp `2026-09-27 01:54:16+00:00` โ floor 2026-09-27.
- `nocodb-sso-is-a-licensed-feature` โ same `2026.09.0` image tag โ floor 2026-09-01.
- `vetting-an-open-source-dependency-before-you-bet-on-it` โ quotes the GitHub API as "last push 2026-09-10"
โ floor 2026-09-11.
- `why-chrome-forgets-its-tabs-in-a-container` โ the setup table names `Chrome 154` (โ Oct 2026 on Chrome's
cadence) and the post links back to `scraping-bot-walled-marketplace-warm-browser-session` (2026-09-13) as
something already written โ floor 2026-09-13.
- **Still empty, and therefore the spare slots for the next batch:** 2024-10 โ 2025-02 (five months) and 2025-04/05.
- **Done when:** โ build clean, `lastmod` = 2026-09-29 for all four URLs (EN + ZH), listing order still monotonic
on `/posts/`, the homepage and `/zh/`, both article pages render the historical date.
**Step B2i โ (unplanned) The web3 category, plus two engineering posts.** โ Done 2026-09-29
`web3` had **zero** posts and no route at all: `/categories/` rendered its card with the label
"0 posts ยท coming soon" as a *non-link*, and `/categories/web3/` returned **404** (Astro only emits a
category detail route once the category has posts). A Gitea sweep found seven real web3 repos whose
commits date to **2024-08-15 โ 2024-08-19**, which is also why those posts could be backdated honestly.
Five posts shipped (EN + ZH, custom OG + banner, hire CTA):
| Slug | Category | pubDate | updatedDate | Source repo |
|---|---|---|---|---|
| `fully-on-chain-svg-nfts` | `web3` | 2024-10-08 | 2026-09-29 | `foundry-nft` โ `MoodNft.sol`, `DeployMoodNft.s.sol` |
| `why-my-on-chain-nft-art-changed-on-windows` | `web3` | 2026-08-19 | โ | `foundry-nft` โ the `.gitattributes` fix commit |
| `chainlink-vrf-v2-lottery-contract` | `web3` | 2024-12-10 | 2026-09-29 | `hardhat-smartcontract-lottery` โ `Raffle.sol` |
| `verifying-a-pdf-report-page-by-page` | `engineering` | 2026-09-28 | 2026-09-29 | `numerology-report` โ `docs/pdf-pipeline.md` |
| `jpa-version-field-lost-update` | `engineering` | 2026-08-19 | โ | `springboot-hoelee-demo` โ `@Version` |
- **Why these dates:** the two 2024 posts fill the empty 2024-10 and 2024-12 archive months with the real
work date and `updatedDate` holding the true date, so `lastmod` stays honest. The two 2026-08-19 posts use
the real work date rather than joining the 2026-09-29 pile-up. `verifying-a-pdf-report-page-by-page` was
moved **one day** to 2026-09-28 for the same reason โ it was the fifth post landing on 2026-09-29.
- โ **Date pins were re-checked before moving any date.** The only `202[0-9]` hits in the two backdated
posts are inside the contract address `0xc2022b56โฆ`, not dates. All cited figures were traced to source:
`868596` / `4102 bytes` / `993568` gas / `0.000535185588997216 ETH` / block `6522146` / mint `181874`
(deploy + mint logs), `335011` gas (`.gas-snapshot`), `2.5ptโ7.5pt` + `20,225,818` bytes + `30โ490pt`
(`docs/pdf-pipeline.md`; the `27 pages` / `12,789 pages` figures live in `app/Libraries/ReportPdf.php`
lines 21 and 196, **not** in the doc), `@Version` + `POST_VERSION_CONFLICT` in the Spring demo.
- โ **The `TERMINALS` / `BANNERS` entries for all five slugs ARE committed this time** (unlike B2f, which had
to hide them in this file because a parallel session held uncommitted generator edits). Both generators
were verified clean and the diffs purely additive (30/0 and 100/0) before editing.
- Banner centering **measured, not eyeballed**: all five at 8 rows, `gapAbove`/`gapBelow` within 2px,
`overflow=0`, `scrollHeight == clientHeight == 636`.
- **Done when:** โ 2 new category routes (`/categories/web3/`, `/zh/categories/web3/`), build 127 pages clean,
all 10 post URLs + 10 images 200, language switch both ways, listing order monotonic on `/posts/`, `/`, `/zh/`.
**Step B2j โ (unplanned) One post out of the analytics/SSO session, plus the tracker wired into three sites.** โ Done 2026-09-30
The analytics session (Step E1) produced one flagship post and the material to justify it:
| Slug | Category | pubDate | Commit | Live |
|---|---|---|---|---|
| `one-hostname-public-tracker-sso-dashboard` | `devops` | 2026-09-30 | `54d8cce` | EN + ZH + OG + banner all **200** |
- **Angle:** "public ingest, private dashboard" on **one hostname** โ the authentik proxy provider +
`skip_path_regex` pattern, written up as the *correct* counterpart to `authentik-forward-auth-gate-wasnt-live`
(which documented the gate that was never live). The two posts cross-reference the same instance from
opposite directions, which is exactly the compounding an authentik series is supposed to do.
- **Two traps are the post's core value** (both cost real time in this session): (1) cloning a working
provider that used `mode=forward_single` leaves `internal_host` empty, so the SSO chain is textbook-correct
while **every app path 404s** โ the tell is `x-powered-by: authentik` on the 404; (2) the embedded outpost
needs **1โ2 minutes** to pick up a provider change and answers `302 โ /flows/-/default/authentication/`
plus 404s until it does, which reads as "the wiring is broken".
- Also in the post: why nginx basic auth can never gate this app (the browser carries one `Authorization`
header, so the app's own bearer token displaces Basic and every API call 401s), the honest trade-offs
(double login โ no OIDC in the app; dashboard is as available as the outpost; one LAN break-glass port),
and the public-internet verification table (including `POST /api/send` returning an **app-level 400** rather
than a gate 403 โ proof the request reaches the app).
- **Generators committed with the post** (both clean, diffs additive-only 5/0 and 21/0): 3-line `TERMINALS`
entry, 8-row `BANNERS` entry with the 5-step flow.
- **Verified:** build clean (129 pages, Pagefind 2 languages), 14 content assertions on the deployed pages
(framing, both traps, CTA, language switch both ways, tracker tag, og + banner), listing order monotonic
with the new post newest (2026-09-30), Gitea Actions run **122 success**, EN/ZH/OG/banner 200 within a minute.
- โ **Not done:** no synthetic pageview this time โ the real-Chrome CDP window (9222) was closed by the time
the post shipped, and the house rule is to verify analytics with a real browser rather than a headless one.
The page carries the tracker (asserted in the HTML), so the first real visit is what will show up.
**Tracker now wired into three sites (E1 progress, 2026-09-30)** โ the analytics deployment is no longer
"installed, not collecting":
| Site | website ID | Where the snippet lives | Deploy path |
|---|---|---|---|
| `blog.hoelee.com` | `1817d8f6-0e49-4b9a-a50d-307e4f2962c7` | `src/layouts/BaseLayout.astro` (EN + ZH share it) | Gitea Actions, ~1 min |
| `www.digikedai.com` | `61b57143-f3f4-4353-9ede-9c615146de84` | `dsm-resource-management/www/src/layouts/Base.astro` | `npm run build` + `./deploy.sh` (CF Pages) |
| `www.sifumail.com` | `9d76b8aa-486a-4e4a-b344-f1f93e9ba292` | all 4 pages' `` (static site, no shared template) | `scp` to the VPS docroot `/docker/web/www.sifumail.com/public/` |
โ **Verification pitfall (cost me a false alarm): Umami drops bot/headless user agents.** The same payload
returns `200 {"beep":"boop"}` and stores **nothing** from `HeadlessChrome`, but `200 {"cache":"โฆ"}` and stores
from a normal Chrome UA โ so "0 pageviews after a headless test" is not a bug. Verify with a real browser.
**Step B2k โ (unplanned) Two posts out of the reader/book.hoelee.com session: the upstream rewrite, and the front-door pattern.** โ Done 2026-10-06
| Slug | Category | pubDate | Live |
|---|---|---|---|
| `the-upstream-was-deleted-then-came-back-rewritten` | `devops` | 2026-10-06 | EN + ZH + OG + banner all **200** |
| `putting-a-front-door-on-an-app-you-cant-modify` | `devops` | **2025-06-24** (backdated) | EN + ZH + OG + banner all **200** |
- **Why these two, from the reader's own setup (stack 136) rather than a generic idea:** the existing coverage of that
project was the translation post (`adding-english-mode-โฆ`) and the TTS post. The untouched material was (a) the
dependency's death-and-resurrection and (b) the gateway/front-door packaging pattern.
- โ **The upstream facts changed while the skill still said "dead".** Re-verified live 2026-10-06: `github.com/hectorqin/reader`
is **alive** โ 11,036โ / 5,471 forks / AGPL-3.0 / default branch `main`, last push 2026-10-02 โ but it is a
**from-scratch rewrite**: the git history was re-initialised **2026-09-16** (`chore: ๅๅงๅไปๅบ`) and holds **233
commits**; Kotlin/Spring+Vert.x โ **TypeScript/Node**, port 8080 โ **5888**, `/storage/data` JSON โ **`/data` SQLite**,
env config โ **admin-UI settings in the DB**, image moved to **`cnb.cool/hectorqin/reader:main`** (branch/commit tags,
deliberately no `:latest`), **0 releases / 0 tags**; Docker Hub `hectorqin/reader` still **404**. Upstream's own P0
notes admit the **image-pull + container upgrade drill was never run** and legacy-data auto-migration is unimplemented.
The running deployment is unchanged (`liangnianzhi/reader.hectorqin:latest-20250525`). **The `hectorqin-reader` skill was
corrected in this session** โ a future session must not repeat "upstream is dead, there is no upgrade".
- **Post 1** writes that up as "dead vs rewriting" with the reusable checks (repository health โ artifact health; no tags
โ every upgrade is a SHA; mirror source *and* image; compare the **shape** before the features; read the maintainer's
"not done yet" list; AGPL-3.0 if you run it for paying users).
- **Post 2** is the gateway pattern: a second `nginx:alpine` container owning the public port, the request-time
`resolver 127.0.0.11` (so the front page survives the app being down), `client_max_body_size` preserved for uploads,
why a proxy **body rewrite** cannot touch a client-rendered SPA, the "reload โ back to the front door" injection with
its `sessionStorage.gatePass` consume-step, the app's own CSS hook for whitelabelling, and the **silent-failure** warning
(the injections depend on the literals `` and ``).
- โ **Backdating rule applied to post 2 only.** Post 1 is date-pinned (its facts *are* SeptโOct 2026) so it ships on the
real date. Post 2 went into the empty **2025-06-25 โ 2025-07-07** window at `2025-06-24`, `updatedDate: 2026-10-06`
so `lastmod` stays honest โ and it is constrained to **link backwards only** (it cross-links
`adding-english-mode-โฆ`, dated 2025-06-11); a forward link to a later-dated post would contradict the backdate.
- **Generators committed with the posts** (both were clean, `deletions: 0`, `node --check` OK) via
`scripts/append_generator_entries.py`: 4-line `TERMINALS` + 8-row `BANNERS` per slug.
- **Verified after deploy:** build clean (139 pages, Pagefind 2 languages, no duplicate-id warning); `measure_og_banner.py`
**PASS** on both (og `rows=1 overflow=0 missingHash=0`; banner 8 rows, `delta=2`, `overflow=0`); 8 live URLs 200 with the
right content types; sitemap **139 URLs**, all four new entries `lastmod 2026-10-06` with hreflang alternates; EN and ZH
listing rows **monotonic** with the new posts at **#2** (2026-10-06) and **#54** (2025-06-24, between 2025-07-08 and
2025-06-11); language switch links both ways; CTA links present (Cloudflare rewrites the `mailto:` to `email-protection`
โ expected). Commit `378d55c`, pushed Gitea + GitHub, both remotes **0/0**; follow-up `ef3f520` sharpened the wipe
evidence after checking the actual repo (not just the API): `master` is a **single commit dated 2026-06-22** whose
README is the word `deleted`, sharing **no common ancestor** with `main` โ the API's `created_at` still reads 2021-08-13
and would have misled a reader who trusted it.
- **Upstream source mirrored to Gitea (private) the same session:** `hoelee/reader-2026-rewrite` โ full clone of
`github.com/hectorqin/reader` (`main` @ `5c59cae`, plus the 1-commit `master`), pushed with `git push --mirror`.
โ Gitea's hook **rejects `refs/pull/*`** ("hook declined") โ that is expected and harmless; branches and the whole
object history land. A future session should re-push from a fresh `git clone --mirror` to refresh it, or switch the
repo to a Gitea pull mirror (the existing `hoelee/reader` uses the 8h auto-sync mirror feature).
- โ **Reminder for the next session:** the assertion method matters โ hrefs must be checked against **raw** HTML, not the
tag-stripped text (a first pass reported the CTA and cross-links "missing" because tag-stripping removes `href`).
**Step B2l โ (unplanned) Two posts written from the 2026-10-09 โ 10-16 sessions, held for the user's read.** ๐ต
Per the user's instruction of 2026-10-16 ("ๅ ๅๅบๆฅ๏ผๆ็ไบ่ฟๅ๏ผ็กฎ่ฎคๅๅๅ"), these two are **written, built and
image-complete but deliberately not committed and not pushed** โ they are untracked files in the working tree while
they wait for a read. **A parallel session's `git add -A` would sweep them in โ never stage blindly in this tree.**
A third post written in the same batch (`the-dialog-opened-in-7-seconds-my-script-waited-5`, category `ai`) was
**dropped by the user** โ parked as `draft: true` in `18f2ed3` and **not to be published**; see the note under the
table.
| Slug | Category | Proposed `pubDate` | Source session (Hermes id) | What it argues |
|---|---|---|---|---|
| `calibrating-intel-quick-sync-hevc-quality` | `tutorials` | 2026-10-14 | `20261014_132458_102ffe` | The full QSV calibration: ICQ 18โ22 inflate thin sources (size gate 176.8/141.8/107.6%), the usable range starts at 24, the quality cliff sits **between 28 and 30**, excerpts rank quality but **never** speed (fast == medium byte-for-byte, 168,435,266 B), the four traps (`/lib` mount, `rgb24` rate control, `SKIP already HEVC hvc1`, one QSV job at a time) |
| `docker-reported-exit-0-the-oom-killer-disagreed` | `devops` | 2026-10-16 | `20261016_034103_770729` | "Container stopped unexpectedly" while `docker inspect` reports `ExitCode 0` / `OOMKilled=false` โ the truth was 6 cgroup OOM kills in dmesg (uptime stamps matching `FinishedAt`), driven by a crawler flood (25,976 IPs / 50k lines, 33,636ร403 + 16,082ร429); fix = 512M โ 2g + `memswap_limit: 2g`, labelled a stopgap; plus the "my own bare curl got 403" verification trap |
- **Parked draft (do not publish):** `the-dialog-opened-in-7-seconds-my-script-waited-5` โ the LinkedIn cron's race
(dialog +1.8 s, buttons +2.8 s, editor +7.2 s vs a `sleep(5)` look-once), the swallowed-click defect and the 72 h
approval TTL against a 12-day queue. User dropped it on 2026-10-16. Both `.md` files are committed with
`draft: true` (excluded from build/listing/sitemap โ verified: 153 pages, no route, 0 sitemap hits); its OG/banner
PNGs were deleted, but its `TERMINALS`/`BANNERS` entries are already in the repo, so re-imaging is one command.
- โ **Backdating verdict for this batch (do not re-litigate): neither held post may carry a historical date.**
- `docker-reported-exit-0-โฆ`: its evidence *is* dated โ `Oct 12`, `Oct 16`, the times 02:45 / 02:58 / 03:39 /
05:33 / 07:37 / 07:57, "two weeks of uptime", "18 minutes after the restart". Any older date makes the post
contradict its own table. Ships on the real date (`2026-10-16`), `updatedDate` = the day it is actually pushed.
- `calibrating-intel-quick-sync-hevc-quality`: the prose carries no calendar date, but two checkable pins fix it
to **2026-10-14**: (a) it names **ffmpeg 9.0.2**, and ffmpeg.org lists 9.0.2 as released **2026-09-18** (9.0 on
2026-08-04), so nothing before that date is honest; (b) the premise โ a shipping QSV tier whose defaults mean
"uncalibrated" โ only existed from the tier landing (Batch 4b-1, 2026-10-14 11:41) to the calibration that
evening (Batch 4b-2). Keep `pubDate` 2026-10-14, `updatedDate` = the real push day.
- Deep backdating (2024/2025 archive gaps) therefore needs **evergreen** posts only โ see B2m for which queued
topics qualify.
- **State of each:** EN + ZH written; `rewrap_post.py` โ `wrap_lists.py` applied to the EN files (ZH untouched, one
paragraph per line); OG + banner generated and **measured** (`measure_og_banner.py` โ PASS on all four pairs);
`npm run build` clean (155 pages, no duplicate-id warning); all 8 `dist/` pages verified locally (language switch
both ways, content assertions from whitespace-normalised tag-stripped text, listing order monotonic on `/posts/`,
`/` and `/zh/`).
- โ **The generators already carry all four `TERMINALS`/`BANNERS` entry sets** โ the three for this batch's slugs
(two held + one parked) rode into `2295c0f` together with the authentik entry (git stages whole files). They are
inert until a slug is actually generated, so publishing each post needs only its two `.md` files plus its two PNGs.
- **To publish one:** confirm the real `pubDate` (`date`, and the newest `