You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5cfa31
Browse filesBrowse the repository at this point in the historyBrowse files
Third blind speed bug-hunt (2/member, HEAD a579235). 3 real fixes, 3 verified
accepted-by-design (documented), 2 dismissed.
HIGH #3 - seq=0 first-compartment invisible (OpenCode parity gap):
getMaxCompartmentSeq returned 0 for an empty session, same as the first real
compartment (sequence 0). So mustMaterialize saw 0===0 (no refold into m[0]) and
m[1]'s filter excluded it - the first compartment was missing
from history until a SECOND one published. The incremental publish path does not
clear the m[0] cache, so it was live. Ported Pi's proven fix: empty session now
reports EMPTY_MAX_COMPARTMENT_SEQ (-1); normalizeCachedMaxCompartmentSeq
reinterprets a legacy stored 0 as empty only when the live session has zero
compartments. +1 regression test; 2 empty-session assertions updated 0 -> -1.
MED #8 - dreamer archived count under-reported (runner.ts): archivedIds and
mergedIds are disjoint in getMemoryCountsByStatus (a superseded memory goes to
mergedIds, never archivedIds), so subtracting merged again double-counted and
drove archived toward zero. Dropped the term. Feeds the dreamer
memory-changes drill-down.
MED #2 - dashboard key-files & smart-notes path mismatch (db.rs): both used
literal WHERE project_path = ? while the frontend passes resolved identity, so
symlinked/legacy/non-canonical paths returned 0 rows (same class as the #87
memories fix). Generalized resolve_paths_for_memory_filter ->
resolve_paths_for_table_filter and routed get_project_key_files + get_smart_notes
through it (IN-query over all paths normalizing to the identity).
Verified accepted-by-design -> AUDIT-KNOWN-ISSUES A9/A10 + A8 addendum:
#1 stale key-files render one pass (cache-stability design), #4 m[0] no
reselect/reorder after non-additive mutation (supersede-delta), #6 materialize
boundary expiry cutoff (A8), #7 merge status-promotion lag (supersede-delta).
Dismissed: session_facts_version missing-column (column exists), Pi
deferred-materialization (re-flag of A6).
plugin 1712/0 (+1), Pi 403/0, dashboard cargo + 106 Rust tests, tsc + biome
clean, dist rebuilt.
0 commit comments