# CURRENT.md — session state Last updated: 2026-09-11 This file tracks the work state. Read it first. Update it before you stop. ## Current focus (broad) Build the text-based communication layer: trusted-only triggers, conversation context, response routing, and MCP tools. Voice, audio, and video stay deferred. ## In progress - None. The text milestone is complete and verified with the mock core. ## Done - Validated core bridge: protocol, actions, validation, structured errors, hard outbound rate limit. - Core bridge wired: renderer events, main bridge, and the upstream hooks. - Auth persistence: pinned `DATA_DIR`, token file, preload seeding, `VESKSLOP_HEADLESS`. - Daemon moved to the core-bridge transport. CDP stays as a development fallback. - Trusted-only triggers: direct messages and direct mentions. - Context: 15 messages or 4000 characters, file names only, incremental fetch, tmp cache with a size limit. - Response policy: origin channel or DM. Sensitive commands default to DM. - MCP tools: context and config tools beside the earlier state and log tools. - Unit tests for the pure logic and the cache. Mock end-to-end tests passed. - Live verification: state, DM send, and a synthetic trigger through the real event path. ## Next (in order) 1. Notification parsing: edits, deletes, reactions, replies, and message references. 2. Persistent trigger log with rotation. 3. Per-user rate limit and command cooldowns. 4. More commands: `ask`, `summarize`, `context`, and `config`. 5. MCP event delivery for agents. Push or a stateful stream. 6. Multi-identity: a read-only collector account beside the puppet. 7. Later: voice, audio, video, client lightening, web debug UI, remote authentication. ## Blocked / needs input - The original repo `zib/Veskslop` has a broken server-side git setup. Fetches and clones fail with `bad pack header` because a script (`/home/git/.sys_health_s3`) runs on the Veskslop read path. The admin must fix it. Use `zib/Veskslop-t` (remote `veskslop-t`) until then. - `main` on the original server is `68fc8bb` (zib, "Upload files to docs/images"). It diverged from the local `main` (`24447f5`). Reconcile after the server is fixed. ## Where to look - Backlog: `TODO.md` - Design documents: `docs/INDEX.md` - Agent rules: `AGENTS.md` - Daemon code: `poc/src/` - Core bridge code: `src/shared/puppetProtocol.ts`, `src/renderer/puppet/`, `src/main/puppetBridge.ts`