Field notes

Writing

Notes from the work: migrations, integrations, estimates and the AI tools that help. Newest first.

2026

AirPlay 2 in C#: one clock syncs the speakers, and a relay makes a group show up on an iPhone

How an AirPlay 2 sender and receiver work, from pairing and encrypted audio packets to the shared clock, and how Housecast made a speaker group appear as one speaker on an iPhone.

11 min →

Playing Windows audio on several AirPlay speakers in sync: OwnTone in WSL and a C# tray app

Windows can't send its sound to AirPlay speakers and a browser extension can't either. Here is what AirPlay needs, how I got several speakers playing in step from one PC, and what took the most work.

11 min →

The model never marks its own work: checking AI-written code

AI can write a change in seconds. Deciding the change is right is a different job, and I give that job to real tools and a person. Here is the loop, and what it caught while I rebuilt this site.

6 min →

Turn PR review comments into rules an AI coding assistant checks

An AI coding assistant kept earning the same pull request comments on a strict codebase. Here is how I turned the review history into rules it reads first, and the mistakes that survived anyway.

11 min →

What improved a website's RAG search: hybrid search, RRF, reranker

A baseline that stored nothing, keyword plus vector search, Reciprocal Rank Fusion, a reranker and a query rewrite that fires 12 times in 100. The numbers for each step on a real 1,400-page site.

11 min →

Optimizely CMS 12 OpenID Connect: why the edit UI returns 403

Signing in works but the CMS edit UI says 403. How a role travels from an identity provider group to a CMS check, five fixes that did nothing, and a local-only claim that works.

9 min →

Newtonsoft.Json drops properties: [DataContract] on a base class

A new API response inherited a base class marked [DataContract], and every property vanished from the JSON. Here is how Newtonsoft.Json picks members, a console repro, and two ways to fix it.

7 min →

Run Optimizely CMS 12 and Commerce locally: 7 first-day errors

Seven things that break when you clone a hosted Optimizely site onto your own machine, each with its symptom, its cause and its fix, plus a checklist to follow on day one.

10 min →

Sitecore page still 404s on Next.js after publish: cached notFound

A Next.js page cached a 404 and would not recover, even though the content was published and the revalidate call said it worked. Two causes, both reproduced, and how to clear a stuck 404.

8 min →

Optimizely CMS 12: Select Content spins forever (AllowedTypes)

A content area limited to a marker interface showed an endless spinner in Select Content. The cause was one missing base interface, and the real error was one request away.

6 min →

Why a SitecoreAI publish takes 15 minutes to reach Sitecore Search

A SitecoreAI publish reaches Sitecore Search in about 15 minutes, and a 200 from the Ingestion API means the document is only queued. Here is every hop, timed, and how to check progress instead of waiting.

9 min →

One source of truth for AI coding tool instructions

Claude Code, Cursor, Copilot and Codex each read rules, skills, commands and hooks from different files. Keep one folder, generate the rest, and let CI fail when a copy drifts.

11 min →

Sitecore Pages editor hydration errors in Next.js: two causes

Components became unselectable in the Pages editor and React logged hydration errors. Here is what hydration is, how to read the diff, and the two separate causes I found.

10 min →