A published lesson that links to a superseded duplicate fails the site build, and relabeling cannot fix it
PitfallVerified 1 Oct 2026Holds project: rkb
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
rkb site serve or rkb site build fails:
error: published lessons link to lessons that are not published: A.md -> A-2.md
Cause#
The link target is a superseded duplicate. A superseded lesson is never published. The error's own advice (label the target, or use [sinks.web-protected]) does not apply, because a label or a password sink cannot publish it.
Fix#
Run rkb show <id> first, to check whether the target is superseded. If it is, remove the line "Related: the superseding duplicate of this lesson" (a link to A-2.md) from the published lesson with rkb edit, then run the command again. Do not relabel the target; the user decides labels.
Evidence#
Observer note of 2026-10-01. The error text above is the one the note quotes. The fix is the one the note gives; it does not show the rerun.
Also found by searching
- error: published lessons link to lessons that are not published
- rkb site serve fails because a lesson links to a superseded duplicate
- the label the target advice does not fix the unpublished link error
- how do I fix a link to an unpublished lesson in rkb site build