Files
piik/docs/adr
T
AAA d8f8cfdf7b docs(adr): propose browser session lifetime owners
ChannelSession holds the domain connection and every activity a page can
start in one 4,000-line class, reconciled by one function and fenced by a
different predicate at each await. It absorbed about 140 fix commits in
thirty days, most of them carrying one lifetime's state across another's
transition.

Propose applying the one-owner-per-lifetime rule to it: owners with a
signal, a reconcile over raw snapshots, one retirement and a projection;
the view as output only; operation failures returned to their callers;
identity replacement moved to the session's owner; and constructor seams
first, so the tests stop writing private fields. The steps are ordered so
the line can merge between them.

Status is proposed. Nothing is implemented by this commit.
d8f8cfdf7b · 2026-11-24 21:17:36 +08:00
History
..