Commit Graph

364 Commits

Author SHA1 Message Date
youzini
ea1e515694 test(recall): lock inject-decoupling reroll invariant
Add controller-level coverage for no-new-user reroll behavior:
AFTER_COMMANDS defers recall, BEFORE_COMBINE deterministically reapplies
stored per-floor recall, and misses fall back to legacy compute. Update
docs to describe compute/injection decoupling and recall cards as the
editable per-floor bme_recall source.
2026-06-01 06:56:40 +00:00
youzini
f986bcc293 fix(recall): deterministic persisted reapply on reroll (Phase 1 inject-decoupling)
Reroll (swipe/regenerate/continue = no-new-user) now deterministically
reapplies the parent user floor's stored bme_recall block in
GENERATE_BEFORE_COMBINE_PROMPTS, bypassing the transaction gate and
runRecall entirely. AFTER_COMMANDS defers no-new-user work to
before-combine. Staleness guard recomputes when the user edited the
floor; settings gate honors plugin/recall disable. Fresh normal sends
are unaffected. Compute machinery retained as fallback.
2026-06-01 05:52:45 +00:00
youzini
57d4fd2b58 fix(recall): isolate reroll transactions by generation id
Prior generation's recall transaction was reused for a later reroll
because findRecentGenerationRecallTransactionForChat matched by chat
alone and the peer-hook bridge forced reuse. That set shouldRun=false,
skipped runRecall, and bypassed the persisted-recall reuse gate, so
reroll silently inherited the previous fresh result. Stamp each
transaction with the active host generation id and scope recent-lookup
to the same generation, preserving intra-generation hook bridging.
2026-05-31 21:30:02 +00:00
youzini
f25ad9eaa1 fix(recall): drive reroll reuse from host generation context 2026-05-31 20:36:14 +00:00
youzini
8cfeae0461 fix(recall): reuse reroll recall from host generation type 2026-05-31 20:22:13 +00:00
youzini
8f8da50414 fix(recall): preserve generation context through reroll mutations 2026-05-31 20:18:12 +00:00
youzini
5b5930e442 feat(recall): resolve reroll parent user floor 2026-05-31 20:14:32 +00:00
youzini
01291acb2d feat(recall): track host generation context 2026-05-31 20:12:20 +00:00
youzini
1ee3b3694c test: guard runtime dependency injection completeness 2026-05-31 16:41:46 +00:00
youzini
a64a90fc6d refactor(sync): extract applyGraphLoadState, migrate graph-persistence harness off slicing (Phase 5f) 2026-05-31 14:38:07 +00:00
youzini
23318ea0dc refactor(sync): extract saveGraphToChat + luker cache action (Phase 5e) 2026-05-31 13:22:49 +00:00
youzini
8259dba003 refactor(sync): extract graph load/persist/authority cluster (Phase 5d) 2026-05-31 13:16:13 +00:00
youzini
459ce12f9b refactor(sync): extract graph mutation gate + live-state projection (Phase 5c) 2026-05-31 12:51:58 +00:00
youzini
7210d5b84d refactor(test): migrate index-esm-entry-smoke off index.js slicing (Phase 5b) 2026-05-31 12:45:04 +00:00
youzini
df9e78bdf9 refactor(sync): extract IndexedDB graph persistence io cluster (Phase 5a) 2026-05-31 12:43:33 +00:00
youzini
baff705e28 refactor(test): migrate generation-recall harness off index.js slicing (Phase 4g) 2026-05-31 12:28:47 +00:00
youzini
a546623457 refactor(runtime): extract runPlannerRecallForEna controller (Phase 4f) 2026-05-31 12:13:37 +00:00
youzini
a77762d5d0 refactor(runtime): extract auto-extraction defer factory (Phase 4e) 2026-05-31 12:08:14 +00:00
youzini
9798859e01 refactor(runtime): extract final recall injection factory (Phase 4d) 2026-05-31 12:02:43 +00:00
youzini
a8332a8131 refactor(runtime): extract generation recall transaction lifecycle factory (Phase 4c) 2026-05-31 11:54:45 +00:00
youzini
4f1ccd4c7f refactor(runtime): extract reroll/planner recall input factory (Phase 4b) 2026-05-31 11:48:07 +00:00
youzini
42011201b9 refactor(runtime): extract recall input/intent state factory (Phase 4a) 2026-05-31 11:40:46 +00:00
youzini
ed35b1d8ef refactor(maintenance): extract history-recovery controller, fully migrate p0 off index.js slicing 2026-05-31 11:27:16 +00:00
youzini
43c4224915 refactor(ui): extract recall-message-ui controller, migrate p0 recall harness off slicing 2026-05-31 11:17:27 +00:00
youzini
3fd7d8b699 refactor(maintenance): extract reroll rollback controller, migrate p0 reroll harness off slicing 2026-05-31 11:07:06 +00:00
youzini
aaf2367d7e refactor(maintenance): extract handleExtractionSuccess controller, migrate p0 batch harness off slicing 2026-05-31 10:59:44 +00:00
youzini
7122ee16da refactor(ui): extract history-dirty notice, migrate p0 notification off slicing 2026-05-31 10:43:35 +00:00
youzini
dfcf1ba38e refactor(ui): extract message-render-limit module, migrate test off index.js slicing 2026-05-31 10:41:26 +00:00
youzini
90e14011ae refactor(vector): extract syncVectorState controller, migrate mobile-status off index.js slicing 2026-05-31 10:37:17 +00:00
youzini
a541fefa44 test: add index.js slicing ratchet guard 2026-05-31 10:26:06 +00:00
youzini
dbd7ed051a test: inject resolveOperationalChatId stub into mobile-status VM context 2026-05-30 18:39:46 +00:00
youzini
7c2c1e68f3 chore: remove abandoned hard-cut v3 namespace cluster 2026-05-30 18:32:48 +00:00
youzini
bf0d79c41b test(persistence): verify Luker preserves unknown graph fields 2026-05-30 18:13:16 +00:00
youzini
58ce671973 test(persistence): verify snapshot forward-compat on real stores 2026-05-30 18:06:26 +00:00
youzini
4681708cb7 feat(persistence): add snapshot upgrade-on-read 2026-05-30 18:04:32 +00:00
youzini
6391259555 feat(persistence): add durable snapshot schema contract 2026-05-30 18:02:51 +00:00
youzini
1d09c53c0e refactor(persistence): add v3 graph store adapters 2026-05-30 14:22:00 +00:00
youzini
951fca2c99 refactor(persistence): define v3 graph store shell 2026-05-30 14:14:19 +00:00
youzini
4a1560318a refactor(persistence): route state updates through events 2026-05-30 14:06:21 +00:00
youzini
fd63202a20 refactor(rebirth): isolate vector and reroll gates 2026-05-30 14:02:05 +00:00
youzini
70c0639c94 refactor(rebirth): add graph head model 2026-05-30 13:55:08 +00:00
youzini
a800f7fc8c refactor(rebirth): centralize persistence reducer 2026-05-30 13:47:10 +00:00
youzini
10ec3b7b77 refactor(rebirth): extract identity resolver core 2026-05-30 13:38:01 +00:00
youzini
a7b974b748 chore(rebirth): establish v3 cutover gates 2026-05-30 13:26:19 +00:00
youzini
152913811f fix(vector): repair missing graph identity before rebuild 2026-05-19 13:47:46 +00:00
youzini
681b09a81c fix(vector): recover after embedding model changes 2026-05-19 09:05:55 +00:00
youzini
0f0da1fbe8 fix(persistence): repair legacy pending state safely 2026-05-19 07:36:35 +00:00
opencode
d2d01d2c24 fix(recall): preserve reroll user-floor reuse 2026-05-15 20:13:13 +00:00
opencode
2823d18167 fix(persistence): clear stale pending confirmations 2026-05-15 19:44:08 +00:00
opencode
a5c4e12a76 fix(recall): skip pre-recall recovery on reroll reuse 2026-05-15 19:17:30 +00:00