at.kotoba.state

Single overwritten record: per-glyph SRS state + the directed confusion map. Read once at startup; overwritten on flush. rkey is literally `self`.

Repository @kotoba.at did:plc:o5f3cgna5sku4p6iitld6mxs namespace authority
Details · record, key literal:self
Kindrecord
Record keyliteral:self
Authoritykotoba.at
Indexed

Record

record · key literal:self

Properties

confusion

requiredunknown

Directed, single-kana only: shown glyph -> { answered-as romaji: count }. Counts are decayed (x0.9/session) so the app stores them as fixed-point ×10000 INTEGERS (no float type). `unknown` map; the app owns the value scaling at the record edge.

glyphs

requiredunknown

Map keyed by glyph -> { box:int, kanji:{box:int,seen:int,lastSeen?:str}, lastSeen?:str, modes:{ tap:{seen,missed,ewmaParseMs|null}, type:{seen,missed,ewmaParseMs|null}, meaning:{seen,missed,ewmaParseMs|null} } }. Per-mode success + latency; `box` is kana-reading recall and `kanji` is the separate ruby-bearing written-form recognition ladder (#171). `kanji.lastSeen` is that lane's own date clock for overdue scheduling (#134), distinct from the glyph's `lastSeen`, which every card stamps; older kanji lanes may omit it. `meaning` (word -> gloss) only ever accrues for glossed word glyphs. Counts, boxes and latencies are integers; dates are strings. A missing mode row reads as empty; a missing `kanji` lane reads cold; legacy flat records ({box,ewmaParseMs,seen,missed}) are migrated to tap on read. `unknown` because lexicons have no dynamic-key map type (see README).

updatedAt

requiredstring · datetime