An rkb build older than the queries: key rejects every lesson that has it
Symptom#
After a KB gains queries: lines, an older rkb treats each such lesson as invalid. In CI the site build prints a warning like this, with a built count far below the real one:
Warning: 276 lessons published before are no longer published the same way
Cause#
Unknown frontmatter keys are an error (deny_unknown_fields), so a build that does not know queries: rejects the file. Each rejected lesson then counts as "no longer published". The KB's .github/workflows/site.yml pins RKB_VERSION, so CI can run an rkb older than the one that wrote the lessons.
Fix#
Update rkb on every machine before you push or pull a KB that has queries:. For CI, bump RKB_VERSION in site.yml to a release that knows the key. Compare the CI "built N lessons" line with a local rkb site build. Do this before you blame a merge or a rebase.
Evidence#
Observer notes of 2026-10-01. They name the warning, the pinned RKB_VERSION and the unknown-field cause. They show no rerun after the bump.
Also found by searching
- Warning: 276 lessons published before are no longer published the same way
- rkb rejects lessons that have a queries field
- unknown frontmatter key queries after pulling the KB
- CI site build counts far fewer lessons than a local rkb site build