# Session Memory Log

- 2026-04-12 — Initialized session-memory subsystem.
- 2026-04-13 — First compile pass over `knowledge/daily/2026-04-13.md`. Created `mirror-existing-pipelines.md`, `audit-current-vs-intended.md`, `flag-inferred-content-as-preliminary.md`, `edit-multiple-matches.md`. Rebuilt `knowledge/index.md`.
- 2026-04-13 — Populated `knowledge/notes/` per session-memory-review findings. Added `editorial-notes-pattern.md`, `provenance-rule-6.md`, `pipeline-mirroring.md` — the three recurring vault principles identified in the daily log but not yet named. Linked `provenance-rule-6` reciprocally with existing `[[Preliminary Flagging]]` (wiki concept). Rebuilt `knowledge/index.md`.
- 2026-04-13 — Upgraded `scripts/rebuild_memory_index.py` to emit full `knowledge/notes/<slug>` wikilinks and a one-line hook per entry (extracted from each page's `One-sentence summary:` line, with an H1-follow fallback). Added an `## Editorial note` footer to the generated index. Regenerated `knowledge/index.md`.
- 2026-04-13 — (collapsed 4 consecutive "Touched: (none reported)" compile-pass entries — pure runtime heartbeat, no knowledge recorded. Bug fixed 2026-04-14: `compile_memory.py` now only writes to this log when a pass actually touched a knowledge page; no-op compiles are recorded in `state.json` only.)
- 2026-04-13 — Automation hardening (Priority-2, coleam00-inspired): (a) expanded `scripts/lint_memory.py` from 6 memory-only checks to 7 vault-wide checks — now covers both `memory/` and `knowledge/notes/` via `--scope`, word-based sparse floor (default 200, configurable via `--sparse-words`), LLM-judged contradictions opt-in via `--contradictions`, with backlink-exempt and broken-link-skip lists to suppress structural false positives; (b) introduced `FLUSH_OK` sentinel in `scripts/flush_memory.py` — summarizer now returns that literal token when nothing is worth persisting, and `flush_memory` skips the daily-log append entirely (empty logs beat noisy logs); (c) added `CLAUDE_INVOKED_BY` recursion guard to `scripts/postcompact_capture.py` (session-end and pre-compact already had it); (d) verified SHA-256 incremental compile and 18:00 auto-compile were already implemented in `compile_memory.py` / `flush_memory.py` — documented in `docs/AGENTS.md`.
- 2026-04-13 — Added first real Q&A entry `inbox-vs-raw-after-compile.md` (post-compile file location). Rebuilt `knowledge/index.md` — Q&A section now populated.
- 2026-04-13 — Hygiene pass: removed 15 hook-testing/empty-transcript session entries (16:04–17:13) from `daily/2026-04-13.md`; added `## Promoted to wiki` marker to `editorial-notes-pattern.md` (promoted to [[knowledge/notes/editorial-notes-pattern|Editorial Notes Pattern]]); dedupe — rewrote `pipeline-mirroring.md` as a redirect stub pointing to `mirror-existing-pipelines.md` (canonical per patterns>concepts tiebreaker). Rebuilt `knowledge/index.md`.
- 2026-04-14 — Content expansion pass on 4 memory pages (stub `pipeline-mirroring` kept as stub but explained; `edit-multiple-matches` got Variants+Prevention; `audit-current-vs-intended` got "why dating matters" + checklist; `mirror-existing-pipelines` got "when NOT to apply" + failure-mode section). Combined with 15 backlink additions, lint now reports 0 findings across all 7 checks.
- 2026-04-14 — Post-audit cleanup: cleared `flush_dedupe` of test/unknown/auto-* keys in `state.json`; bumped `compiled_daily_hashes['2026-04-13.md']` to current hash (hygiene pass removed test entries, no new material to lift). See `knowledge/log.md` for the full 5-point seam-closure pass.
- 2026-04-14 — Priority-4 scale prep: three-tier `/knowledge-lookup` strategy (DIRECT/HYBRID/QMD) with `scripts/lookup_mode.py` helper. QMD freshness check uses index-file mtime rather than `qmd status` CLI — survives the Windows cmd.exe/Git-Bash PATH split.
- 2026-04-14 — Priority-3 feature pass: added two new skills (`knowledge-qa-file-back`, `contradict-check`); rewrote `README.md` with full pipeline diagram; converted `docs/operating-model.md` `memory/↔knowledge/notes/` boundary rule into an explicit two-question table + worked examples. No changes to `knowledge/notes/` pages themselves.
- 2026-04-18 — Recorded decision `no-gitkeep-in-inbox-articles.md`: skip `.gitkeep` in `inbox/articles/` — scripts create the directory on demand at first use. Updated `knowledge/index.md`.
- 2026-04-18 — Fixed `scripts/memory_state.py` to resolve memory paths from a stable root so hooks write to one canonical location regardless of worktree. Cleaned up stale worktrees and added `scripts/cleanup_worktrees.py` for periodic hygiene. Recorded decision `centralized-memory-subsystem.md`. Updated `knowledge/index.md`.
- 2026-04-18 — Manual compile pass over 2026-04-18 daily log (private). No durable content to lift (runtime heartbeat).
- 2026-07-03 — Phase 0-4 build pass (manual). compile_memory.py rewritten with VERIFY-BEFORE-WRITE + COMPILE_AUDIT + rich title/summary snapshot. flush_memory.py upgraded to 3-tier FLUSH_MAJOR/MINOR/OK classifier. codex_memory.py now writes state.json heartbeat instead of polluting daily logs with stub blocks. lint_memory.py gained 5 OKF checks (8-12). session_start_context.py injects metacognitive knowledge-state block. New scripts: migrate_to_okf.py (53 pages migrated to OKF v0.1), user_prompt_capture.py + post_tool_capture.py (non-LLM lifecycle taggers), cognee_sync.py (graceful Cognee bridge). New skill: crystallize-playbook. New bridge: OpenCode plugin. New tests: +33. Test count 37 -> 70. CLAUDE.md rules 11-16 added.
- 2026-07-13 — Recorded the agent-native interface decision: MCP is the common read/action protocol, native integrations are thin lifecycle-event adapters, and health is delivered to agents without a human dashboard. Added the approved design and first-stage implementation plan.
- 2026-07-13 — Recorded the approved Stage 2 reliable-memory architecture after current-practice research: recoverable Markdown transactions, project checkpoint journals, manifest-verified archives, content-addressed compile plans, a SQLite rollback-journal priority queue, and evidence-backed atomic claims.
- 2026-07-15 — Completed Stage 2 reliable-memory implementation and repaired reciprocal links among its public architecture decisions. Clarified that Obsidian remains an optional viewer outside the MCP and lifecycle-adapter boundary.
- 2026-07-17 — Recorded the public decision that evidence retrieval uses disposable immutable cache generations while Markdown, Git, and project journals remain authoritative.
- 2026-07-19 — Recorded the approved product contract: LLM Wiki becomes one local-first memory, code-intelligence, and agent-control system for a single operator managing many agents and sessions, with Graphify and codebase-memory-mcp workflow replacement proven by paired benchmarks rather than feature counts.
- 2026-07-21 — Recorded the approved persistent code-intelligence kernel target while preserving corpus-generation/v2 and Evidence Graph v2 as the current implemented checkpoint until Plan A passes.
- 2026-07-22 — Superseded the one-shot consent/SCIP/publication direction after completed foundation Tasks 1-5. Approved an owned read-only LSP navigation engine, starting with production-quality Python/Pyright while retaining the existing structural Evidence Graph and 12-tool MCP boundary.
- 2026-07-23 — Recorded the bounded mutable LSP live-lease contract: `lease.json` heartbeats every 10 seconds, expires after 30 seconds, remains separate from immutable owner/failure evidence, and is removed after controlled lifecycle cleanup.
- 2026-07-24 — Qualified LSP process containment by platform: Windows Job Objects own assigned trees, POSIX process groups cover pinned Pyright descendants only while they remain in-group, and hostile `setsid()` escape remains unsupported.
- 2026-08-05 — Recorded the proposed exact V4 reliability contract after approval of its direction and implementation base; production implementation remains blocked on final architecture sign-off.
- 2026-08-05 — Activated the reviewed V4 reliability contract after the user delegated exact architecture decisions based on current-source research; implementation may proceed through TDD gates.
- 2026-08-12 — Recorded explicit approval to implement the Reliability V3 runtime database pair and offline adoption backend required by installer repair; Markdown authority, runtime roots, and the 12-tool MCP surface remain unchanged.
- 2026-08-14 — Recorded the approved bounded sibling-preimage contract for Claude and Codex configuration merges: byte-exact verification, exact LLM-Wiki ownership prefixes, simultaneous 10-file/90-day/100-MiB retention, and preservation of the newest or sole restore point.
- 2026-08-15 — Recorded the approved audit-closure architecture: retire the unsupported Cognee bridge, add one fail-closed DLP and local-only boundary, coherent Restic recovery, transactional install state under `run/install/`, native schedulers, and reuse of the existing Reliability v3 databases and MCP surface.
- 2026-08-15 — Recorded explicit approval for fenced blackboard resource claims: two bounded tables in coordinator-v3, all-or-none immediate acquisition, renewable logical leases, expiry/reclaim, exact fencing, and authoritative append-only Markdown events.
- 2026-08-16 — Recorded the exact install ownership control plane: one bounded `run/install` manifest and resumable transaction for profile, user environment, native schedulers, verified owned-fragment preimages, fail-closed recovery, rollback, and uninstall.
- 2026-08-16 — Approved managed local Cursor and Antigravity hooks, structural fragment ownership in the existing install control plane, backward-compatible install v2 updates, and one retained committed-update rollback point.
- 2026-08-16 — Implemented the approved managed IDE hook boundary and install v2 lifecycle; Cursor and Antigravity now use canonical capture adapters, structural ownership, fail-closed drift handling, latest-update rollback, uninstall restoration, and Doctor diagnostics. Audit item `OPEN-010` is closed at code level; live and clean-machine evidence remains pending.
- 2026-08-16 — Approved durable SessionEnd and PreCompact capture activation: the integration adapter publishes create-only Reliability V3 intent evidence before returning, detached work only wakes recovery, and source deletion requires immutable terminal proof.

## Editorial note
This log is vault metadata — an append-only editorial changelog of compile passes and hygiene actions over `knowledge/`, not content derived from `knowledge/raw/` or `knowledge/inbox/`. New entries are appended at the bottom by compile passes and by hand; entries are never rewritten or removed.

> **Note on daily dates:** Only `knowledge/daily/2026-04-13.md` and
> `knowledge/daily/2026-04-19.md` are shipped in the public source.
> Entries dated otherwise (e.g. 2026-04-12, 2026-04-14, 2026-04-18,
> 2026-07-03) reference private daily files that exist only in the
> installed vault (`$LLM_WIKI_ROOT`), not in the public clone.
