Dashboard › opencode › Distillation
8b98e289-4d4e-41f8-897b-fcaf65a2bbc2["lore_tm_v1_7i4Z0hIavN4nK2-DqXrXMCLIqbEILY2NRl6uVw1q-FI","lore_tm_v1_iQpg3GVysMfY--hLFLhy22MsYY2LX3vEeQvrWigOxEk","lore_tm_v1_KmT41-zYNjdU-ChmG4IdMA9OGR0RDwT0TkSzuTgyaDA","lore_tm_v1_hVby8kUqiTtBB5Tqyh3MEfL4iWwLbOGpiWGNA7fXRbM"]
Date: Sep 17, 2026
packages/core/test/session-projector.test.ts has 5 Schema.decodeUnknownSync(SessionMessage.Message) matches: lines 126 and 300 decode { ...message.data, id: message.id, type: message.type }; lines 3264, 3405, and 3464 decode { ...row.data, id: row.id, type: row.type }.packages/core/test/session-prompt.test.ts lines 380-405 verify recovery of a lost advisory wake: prompt text "Recover a lost advisory wake" leaves wake_pending: true and promoted_seq: null; wakeCalls initially equals [sessionID]; replay preserves the pending state; recover() invokes another wake for sessionID.packages/core/test/session-prompt.test.ts lines 408-437 test "replays historical prompt admission without execution intent as admit-only": replaying SessionEvent.PromptAdmitted version 1 with prompt "Historical admit-only prompt" and delivery: "steer" produces wake_pending: false, promoted_seq: null, and no wake after recover().packages/core/test/session-prompt.test.ts lines 440-486 test "turns an admit-only exact retry into durable execution intent": two concurrent exact resume: true retries change wake_pending from false to true, produce wakeCalls = [sessionID, sessionID], and record exactly 1 SessionEvent.PromptExecutionRequested version 1 event; repeated projection replay preserves wake_pending: true, and recover() wakes the session once.packages/core/test/session-prompt.test.ts lines 489-511 test "rejects reuse of one ID with a different prompt": reusing messageID for "Delete the failing tests" after "Fix the failing tests" yields Session.PromptConflictError, leaves session.messages({ sessionID }) at length 0, and keeps admittedCount at 1.packages/core/test/session-prompt.test.ts lines 514-553 test "never arms durable wake for a conflicting execution retry": retrying "Original prompt" as "Conflicting prompt" with resume: true yields Session.PromptConflictError; wake_pending remains false; SessionEvent.PromptExecutionRequested count remains 0 before and after projection replay; wakeCalls remains empty before and after recover().packages/core/test/session-prompt.test.ts lines 556-578 test "rejects reuse of one ID with a different delivery mode": changing an otherwise identical prompt from the original/default delivery to delivery: "queue" yields Session.PromptConflictError.packages/core/test/session-prompt.test.ts lines 581-598 test "returns one recorded message to concurrent exact retries": two unbounded concurrent session.prompt(input) calls return equal messages, expose no projected session messages, keep admittedCount at 1, and record exactly 1 SessionEvent.PromptAdmitted version 1 event.packages/core/test/session-prompt.test.ts show session.resume(sessionID) at lines 153 and 266; admit-only behavior at lines 408 and 440; and "starts execution when resume is explicitly true" at line 775 using prompt text "Run explicitly" at line 784.