From da60970a40d6c1b0ca5d432e3f4a75494d00b41b Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 17 Nov 2026 16:10:45 -0500 Subject: [PATCH] Comments: say what is, not what was The pending file's note on earlier versions, "document" where the context is the outline or the data directory holds a library, and the mock's expand case claiming a nearby node's handle, which only deepen reads. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab --- playwright.config.ts | 2 +- server/links/pending.ts | 3 +-- src/llm/mock.ts | 2 +- src/llm/types.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 7ff22b5..54b3079 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,7 +5,7 @@ import { defineConfig } from "@playwright/test"; // IE_E2E_PORT lets two runs go side by side. const PORT = Number(process.env.IE_E2E_PORT ?? 4760); -// Each run gets an empty data directory, so it starts from a freshly seeded document. +// Each run gets an empty data directory, so it starts from a freshly seeded library. const data = process.env.IE_E2E_DATA ?? mkdtempSync(join(tmpdir(), "ie-e2e-")); process.env.IE_E2E_DATA = data; diff --git a/server/links/pending.ts b/server/links/pending.ts index 51f373f..dcaebd4 100644 --- a/server/links/pending.ts +++ b/server/links/pending.ts @@ -9,8 +9,7 @@ * one the scan no longer finds (it was linked, or rejected and so skipped) stays as a record. * * Entries are checked against the library whenever they are read, because the text moves on: one - * whose words are gone is not listed, and one whose words moved is listed where they now are. The - * file is the one earlier versions wrote; their entries carry no determinations and read as pending. + * whose words are gone is not listed, and one whose words moved is listed where they now are. */ import { existsSync, readFileSync } from "node:fs"; import { targetKey } from "../../src/core/links"; diff --git a/src/llm/mock.ts b/src/llm/mock.ts index 580c8ce..98eea9a 100644 --- a/src/llm/mock.ts +++ b/src/llm/mock.ts @@ -18,7 +18,7 @@ function mockText(req: Req): string { if (v.form === "note") return `Mock note on “${q}” through the ${v.lens} lens. It is two sentences long.`; // Passages and new sections carry link marks ([[…]]), as a real model may: the reader never // sees them, and the app checks each before linking (the mock Wikipedia knows Octopus, - // Cephalopod and Lambda calculus; a nearby node comes with its handle). + // Cephalopod and Lambda calculus). return `Mock passage on “${q}” through the ${v.lens} lens. This is its first paragraph.\n\nThis is its second paragraph, which goes a level deeper, as far as the [[octopus]].`; } case "write": diff --git a/src/llm/types.ts b/src/llm/types.ts index a31b1c7..9e73404 100644 --- a/src/llm/types.ts +++ b/src/llm/types.ts @@ -9,7 +9,7 @@ export interface Req { task: string; /** Stable instructions. Cached. */ system: string; - /** The document as context. Stable between edits, so cached. */ + /** The outline as context. Stable between edits, so cached. */ context: string; /** The request itself. Changes every time, so it comes last. */ prompt: string;