--- a/package.json
+++ b/package.json
@@ -1,7 +1,6 @@
 {
   "name": "dsh-learn-everything",
-  "version": "0.1.0",
-  "private": true,
+  "version": "0.1.0-cyberfete.1",
   "description": "Feynman learning-mode plugin for DeepSeek Harness: /learn on|off, structured lesson cards, rich HTML teaching.",
   "type": "module",
   "main": "./lib/index.js",
@@ -20,8 +19,7 @@
       "default": "./lib/types/types.js"
     },
     "./constants": {
-      "types": "./lib/types/constants.d.ts",
-      "default": "./lib/types/constants.js"
+      "default": "./lib/constants.js"
     },
     "./package.json": "./package.json"
   },
@@ -41,7 +39,6 @@
     "client": {
       "inject": [
         "@deepseek-ai/dsh-client-locale",
-        "@deepseek-ai/dsh-client-runtime",
         "@deepseek-ai/dsh-client-ui-primitives",
         "@deepseek-ai/dsh-client-ui-slots",
         "@deepseek-ai/dsh-client-ui-tool"
@@ -49,63 +46,15 @@
       "platform": "web"
     }
   },
-  "scripts": {
-    "clean": "node scripts/clean.mjs",
-    "dsh:link": "node scripts/setup-dsh-links.mjs",
-    "dsh:link:check": "node scripts/setup-dsh-links.mjs --check",
-    "build:host": "tsc -p tsconfig.build.json && tsdown",
-    "build:client": "node scripts/build-client.mjs",
-    "build": "pnpm clean && pnpm build:host && pnpm build:client",
-    "typecheck": "pnpm build:host && tsc -p tsconfig.host.json --noEmit && tsc -p tsconfig.client.json --noEmit && tsc -p tsconfig.spec.json --noEmit",
-    "test": "vitest run",
-    "test:e2e": "vitest run --config vitest.e2e.config.ts",
-    "test:web": "pnpm build && vitest run --config vitest.web.config.ts",
-    "test:web:refresh": "pnpm build && DSH_SNAPSHOT=refresh vitest run --config vitest.web.config.ts",
-    "test:smoke": "pnpm build && vitest run --config vitest.smoke.config.ts",
-    "prepare": "node scripts/setup-dsh-links.mjs && pnpm build",
-    "prepack": "pnpm build"
-  },
-  "peerDependencies": {
-    "@deepseek-ai/cordis": "^4.0.1-rc.1",
-    "@deepseek-ai/dsh-agent": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-app-boot": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-agent-loop": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-agent-loop-testkit": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-client-locale": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-client-ui-tool": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-commands": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-llm": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-llm-deepseek": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-session": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-system-prompt": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-tool-ask-user": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-tools": "^0.0.1-rc.2",
-    "@deepseek-ai/dsh-user-questions": "^0.0.1-rc.2",
-    "react": "^18.2.0",
-    "react-dom": "^18.3.1"
-  },
+  "peerDependencies": {},
   "dependencies": {
     "dompurify": "^3.4.13",
-    "mermaid": "11.16.0"
+    "mermaid": "11.16.0",
+    "esbuild": "0.28.2",
+    "react": "18.3.1"
   },
-  "devDependencies": {
-    "@types/node": "^26.2.0",
-    "@types/react": "~18.3.1",
-    "@types/react-dom": "~18.3.7",
-    "esbuild": "^0.28.2",
-    "playwright": "1.61.1",
-    "react": "^18.2.0",
-    "react-dom": "^18.3.1",
-    "tsdown": "^0.20.1",
-    "typescript": "^6.0.3",
-    "vitest": "^3.2.4"
-  },
   "engines": {
     "node": "^22.19 || >=24"
   },
-  "license": "BSD-3-Clause",
-  "packageManager": "pnpm@11.7.0"
+  "license": "BSD-3-Clause"
 }
--- a/src/controller.ts
+++ b/src/controller.ts
@@ -71,7 +71,7 @@
       text: (context) => {
         if (context.agent === undefined) return ''
         const pending = this.pendingIntents.get(context.agent.session)
-        return (pending?.active ?? foldLearningMode(context.agent.session.events)) ? this.section : ''
+        return (pending?.active ?? foldLearningMode(context.agent.session.snapshotEvents())) ? this.section : ''
       },
     })
 
@@ -95,7 +95,7 @@
                 // Repeat the queued wording while an exit still awaits the
                 // next accepted pre-step; only a truly inactive session reads
                 // idempotent.
-                return foldLearningMode(agent.session.events)
+                return foldLearningMode(agent.session.snapshotEvents())
                   ? { kind: 'success', text: 'Leaving learning mode (applies from the next step).' }
                   : { kind: 'success', text: 'Learning mode is already inactive.' }
             }
@@ -122,7 +122,7 @@
    * @returns Current logged state plus a pending selection, when present.
    */
   get(agent: Agent): { active: boolean; pending?: boolean } {
-    const active = foldLearningMode(agent.session.events)
+    const active = foldLearningMode(agent.session.snapshotEvents())
     const pending = this.pendingIntents.get(agent.session)
     return pending === undefined ? { active } : { active, pending: pending.active }
   }
@@ -146,19 +146,19 @@
   set(agent: Agent, active: boolean): 'committed' | 'queued' | 'cancelled' | 'noop' {
     const session = agent.session
     const pending = this.pendingIntents.get(session)
-    const target = pending?.active ?? foldLearningMode(session.events)
+    const target = pending?.active ?? foldLearningMode(session.snapshotEvents())
     if (active === target) return 'noop'
-    if (hasOpenTurn(session.events)) {
+    if (hasOpenTurn(session.snapshotEvents())) {
       this.pendingIntents.set(session, { active, narrate: true })
-      return foldLearningMode(session.events) === active ? 'cancelled' : 'queued'
+      return foldLearningMode(session.snapshotEvents()) === active ? 'cancelled' : 'queued'
     }
     // No open turn: commit now. Delete only after append succeeds so a
     // failed durable write leaves the selection retryable, not dropped.
-    if (active === foldLearningMode(session.events)) {
+    if (active === foldLearningMode(session.snapshotEvents())) {
       this.pendingIntents.delete(session)
       return 'cancelled'
     }
-    session.append('learning/mode', { active })
+    session.append('learning/mode', { active }, { ignorable: true })
     this.pendingIntents.delete(session)
     const narration = this.narration(session, active)
     if (narration !== undefined) agent.inject(narration)
@@ -170,11 +170,11 @@
     const pending = this.pendingIntents.get(session)
     if (pending === undefined) return
     const target = pending.active
-    if (target === foldLearningMode(session.events)) {
+    if (target === foldLearningMode(session.snapshotEvents())) {
       this.pendingIntents.delete(session)
       return
     }
-    session.append('learning/mode', { active: target })
+    session.append('learning/mode', { active: target }, { ignorable: true })
     // Delete only after append succeeds so a later accepted in-turn pre-step
     // can retry a failed durable write.
     this.pendingIntents.delete(session)
@@ -182,7 +182,7 @@
 
   /** Build a user-switch notice when the last logged header described the other mode. */
   private narration(session: Session, target: boolean): UserMessage | undefined {
-    const told = learningModeAtLastHeader(session.events)
+    const told = learningModeAtLastHeader(session.snapshotEvents())
     if (told === undefined || told === target) return
     const text = target
       ? 'The user switched this session to learning mode.'
@@ -190,7 +190,7 @@
     return createUserMessage({
       content: [{ type: 'text', text }],
       // The narration is already one sentence, so it is its own summary.
-      source: { kind: 'plugin', plugin: 'learn-everything', form: 'notice', summary: text },
+      source: { kind: 'learn-everything/mode', summary: text },
     })
   }
 }
--- a/src/teach.ts
+++ b/src/teach.ts
@@ -77,7 +77,7 @@
       if (agent === undefined) {
         throw new Error('teach requires a calling agent (no session to teach in)')
       }
-      if (!foldLearningMode(agent.session.events)) {
+      if (!foldLearningMode(agent.session.snapshotEvents())) {
         throw new Error('teach is only available in learning mode (run /learn)')
       }
       if (args.sections.length === 0) {
