Ray's Knowledge Base
Unlock

A chained rkb add ...; rkb inbox done <id> marks the item done even when the add fails

PitfallVerified 1 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

During a distill, rkb add fails on a lint error, but the inbox item is already marked done, so nothing points at the lost lesson any more.

Cause#

The two commands were chained with ; or in one shell line, so rkb inbox done ran without regard to the result of rkb add.

Fix#

Run rkb inbox done <id> as its own command, after the rkb add output shows status: written. If a chain is needed, use && so a failed add stops it.

Evidence#

A distill transcript from 2026-09-30 in ~/Code/ray/rkb: the agent wrote "my chained command still marked the item done" and had to re-run the add by hand.

Also found by searching

  • rkb inbox done ran although rkb add failed
  • inbox item marked done but the lesson was not written
  • how do I chain rkb add and rkb inbox done safely
  • lost a lesson because the add failed in a chained command