• (f460853) Let the flow timestamps accumulate, and bump to 0.22.0

    Ghost released this 2026-08-23 10:49:15 +00:00 | 71 commits to master since this release

    a6023e2 made the three stamps mutually exclusive: entering a status wrote
    its field and leaving removed it, so a finished ticket carried exactly one
    of the three and the journey behind it was invisible. A reader asking when
    this was filed, when it was picked up, when it went out for review and when
    it finished got one answer and three absences, and nothing could tell that
    committed had ever happened.

    So the removal rule is replaced by an accumulation rule. mv stamps the
    target's field on entry, re-entering restamps, and arriving anywhere removes
    the fields of every status after the target. That is one arrival rule off
    the flow order Status::ALL already holds, not a case per move, and it is
    also what a forward skip under -f wants: backlog straight to done stamps
    Completed On alone and leaves the stages it jumped unwritten rather than
    fabricated. A backward move truncates the journey at the target, so done
    back to reviewing drops Completed On and keeps the two before it, and
    anything back to backlog drops all three.

    Presence therefore changes meaning. A field no longer says the ticket sits
    in that status now, it says the ticket got that far and has not been sent
    back past it. Status is what says where it is.

    This is still not d4ce964's history log. These answer how far and when,
    once per stage; every status change, every owner and every tag along the way
    is the log's job.

    The placement a6023e2 chose already holds: the three sit directly after
    Created At in METADATA_ORDER, so a ticket that has walked the whole flow
    reads as one block of four timestamps in flow order ahead of Campaign and
    Status. Nothing but mv writes them, pinned by a test over add, set,
    append and chown.

    Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

    Downloads