session open: with no session open, the worktree check passing and
no non-quota hold, publishes a copy of the task file in the state
directory, takes a snapshot of the worktree on its HEAD (the base to
be) and keeps it on refs/tarlatan/<sessionId>/open, then appends
[SessionOpened, SnapshotKept(KeptAtOpen), Approved] for the
tranche at that HEAD in one batch (dogfood-8 owner rulings 3 and 4).
A refused snapshot or attribute check, or a failed ref write, fails the
command with its typed error before the batch: nothing is appended.
Returns the SessionOpened.
session open: with no session open, the worktree check passing and no non-quota hold, publishes a copy of the task file in the state directory, takes a snapshot of the worktree on its HEAD (the base to be) and keeps it onrefs/tarlatan/<sessionId>/open, then appends [SessionOpened,SnapshotKept(KeptAtOpen),Approved] for the tranche at that HEAD in one batch (dogfood-8 owner rulings 3 and 4). A refused snapshot or attribute check, or a failed ref write, fails the command with its typed error before the batch: nothing is appended. Returns theSessionOpened.