From 4c849e9ef9bdd899312073c775efe70b2807e8b9 Mon Sep 17 00:00:00 2001 From: leefer Date: Thu, 22 Oct 2026 04:14:43 +0800 Subject: [PATCH] docs: explain 29 scoped lint exceptions for HEL-762 batch 4 Co-authored-by: multica-agent --- .../src/lib/components/agent/AgentChat.svelte | 1 + .../lib/components/agent/AgentComposer.svelte | 6 ++ .../agent/AgentSessionSidebar.svelte | 1 + .../agent/WorkflowMentionMenu.svelte | 1 + .../src/lib/components/desk/StudioDesk.svelte | 2 + .../lib/components/desk/TaskModeRail.svelte | 1 + .../lib/components/generate/SlotTray.svelte | 2 + .../lib/components/generate/TakeFeed.svelte | 1 + .../src/lib/components/omni/MediaTile.svelte | 1 + .../lib/components/omni/PillPopover.svelte | 1 + .../src/lib/components/omni/PillSelect.svelte | 1 + .../WorkflowBatchImportWizard.svelte | 1 + .../workflows/WorkflowLibrary.svelte | 3 + .../lib/shot/components/ShotViewport.svelte | 2 + calliope-web/src/routes/+page.svelte | 1 + .../src/routes/canvas/[id]/+page.svelte | 1 + calliope-web/src/routes/library/+page.svelte | 1 + calliope-web/src/routes/settings/+page.svelte | 2 + docs/changelogs/2026-10-22-hel762-batch4.md | 67 +++++++++++++++++++ 19 files changed, 96 insertions(+) create mode 100644 docs/changelogs/2026-10-22-hel762-batch4.md diff --git a/calliope-web/src/lib/components/agent/AgentChat.svelte b/calliope-web/src/lib/components/agent/AgentChat.svelte index 1ae1eb66..58a2ccc8 100644 --- a/calliope-web/src/lib/components/agent/AgentChat.svelte +++ b/calliope-web/src/lib/components/agent/AgentChat.svelte @@ -61,6 +61,7 @@ /** Later tool results (wait_for_jobs) often have the finished status + paths. */ const trailJobsById = $derived.by(() => { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Each derivation rebuilds this tool-result lookup from messages; only the completed Map escapes, with no later mutation. const map = new Map(); for (const row of messages) { if (row.role !== 'tool' || !row.tool_result || typeof row.tool_result !== 'object') continue; diff --git a/calliope-web/src/lib/components/agent/AgentComposer.svelte b/calliope-web/src/lib/components/agent/AgentComposer.svelte index 606e60e1..b052e25c 100644 --- a/calliope-web/src/lib/components/agent/AgentComposer.svelte +++ b/calliope-web/src/lib/components/agent/AgentComposer.svelte @@ -76,6 +76,7 @@ let { void draftNonce; if (draftNonce === 0) return; if (!editorEl) return; + // eslint-disable-next-line svelte/no-dom-manipulating -- Template owns the empty editor shell; its user-editable subtree is imperative. Restore draft text before caret placement/focus and serialization. editorEl.textContent = draft; placeCaretAtEnd(editorEl); editorEl.focus(); @@ -161,6 +162,7 @@ let { attachments: [...attachments], }; if (payloadIsEmpty(payload)) return; + // eslint-disable-next-line svelte/no-dom-manipulating -- Template does not render editor children; after serializing text/chips, clear the user-owned subtree before onSend, preserving submit/reset behavior. if (editorEl) editorEl.innerHTML = ''; attachments = []; mentionOpen = false; @@ -291,8 +293,10 @@ let { chip.after(space); placeCaretAfter(space); } else { + // eslint-disable-next-line svelte/no-dom-manipulating -- Editor owns its children: fallback appends a noneditable workflow chip whose dataset serialize reads; keep template shell and caret logic intact. editorEl.appendChild(makeChip(wf)); const space = document.createTextNode('\u00a0'); + // eslint-disable-next-line svelte/no-dom-manipulating -- Editor-owned trailing space provides a text caret after the workflow chip; placeCaretAfter uses this exact node. editorEl.appendChild(space); placeCaretAfter(space); } @@ -327,8 +331,10 @@ let { chip.after(space); placeCaretAfter(space); } else { + // eslint-disable-next-line svelte/no-dom-manipulating -- Editor owns its children: fallback appends a noneditable skill chip whose dataset serialize reads; keep template shell and caret logic intact. editorEl.appendChild(makeSkillChip(skill)); const space = document.createTextNode('\u00a0'); + // eslint-disable-next-line svelte/no-dom-manipulating -- Editor-owned trailing space provides a text caret after the skill chip; placeCaretAfter uses this exact node. editorEl.appendChild(space); placeCaretAfter(space); } diff --git a/calliope-web/src/lib/components/agent/AgentSessionSidebar.svelte b/calliope-web/src/lib/components/agent/AgentSessionSidebar.svelte index 1c32460f..5bdd4235 100644 --- a/calliope-web/src/lib/components/agent/AgentSessionSidebar.svelte +++ b/calliope-web/src/lib/components/agent/AgentSessionSidebar.svelte @@ -28,6 +28,7 @@ const sandbox = $derived(sessions.filter((s) => s.project_id == null)); const grouped = $derived.by(() => { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Local grouping accumulator is consumed as an array in this derivation; sessions drive recomputation, not Map writes. const map = new Map(); for (const s of sessions) { if (s.project_id == null) continue; diff --git a/calliope-web/src/lib/components/agent/WorkflowMentionMenu.svelte b/calliope-web/src/lib/components/agent/WorkflowMentionMenu.svelte index 0b94f5ce..b03858ac 100644 --- a/calliope-web/src/lib/components/agent/WorkflowMentionMenu.svelte +++ b/calliope-web/src/lib/components/agent/WorkflowMentionMenu.svelte @@ -55,6 +55,7 @@ if (!open || !menuEl) return; document.body.appendChild(menuEl); return () => { + // eslint-disable-next-line svelte/no-dom-manipulating -- Template creates menu contents; this effect moves the root to body and owns portal teardown on close/unmount. Remove that moved root to avoid residue. menuEl?.remove(); }; }); diff --git a/calliope-web/src/lib/components/desk/StudioDesk.svelte b/calliope-web/src/lib/components/desk/StudioDesk.svelte index b1e307b7..287b91b5 100644 --- a/calliope-web/src/lib/components/desk/StudioDesk.svelte +++ b/calliope-web/src/lib/components/desk/StudioDesk.svelte @@ -136,6 +136,7 @@ // Full records, lazily fetched per id (selected workflow, feed jobs' // workflows, the bay's preview row) and cached until invalidated. const details = new SvelteMap(); + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Nonreactive request gate: ensureDetail reads has synchronously in the effect; reactive delete on failure would re-arm requests without a cached detail. const inflight = new Set(); async function ensureDetail(id: number): Promise { @@ -155,6 +156,7 @@ } const neededIds = $derived.by(() => { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Rebuilt from workflowId, bay selection and jobs on each derivation; this completed ID set is never mutated by consumers. const ids = new Set(); if (workflowId != null) ids.add(workflowId); if (bayOpen && bayActiveId != null) ids.add(bayActiveId); diff --git a/calliope-web/src/lib/components/desk/TaskModeRail.svelte b/calliope-web/src/lib/components/desk/TaskModeRail.svelte index 35dc443b..e5d76705 100644 --- a/calliope-web/src/lib/components/desk/TaskModeRail.svelte +++ b/calliope-web/src/lib/components/desk/TaskModeRail.svelte @@ -19,6 +19,7 @@ let { kind, metas, active, onSelect, onPickWorkflow }: Props = $props(); const modes = $derived.by(() => { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Local counting accumulator is consumed synchronously into mode rows; metas/kind drive the derivation. const counts = new Map(); for (const m of metas) { if (!m.usage) continue; diff --git a/calliope-web/src/lib/components/generate/SlotTray.svelte b/calliope-web/src/lib/components/generate/SlotTray.svelte index 4c90fd33..fe67eb77 100644 --- a/calliope-web/src/lib/components/generate/SlotTray.svelte +++ b/calliope-web/src/lib/components/generate/SlotTray.svelte @@ -116,7 +116,9 @@ /** Composer-wide drop: each file goes to the first wired slot of its kind with room. */ export function dropFiles(files: File[]) { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Per-drop allocation buffer, synchronously consumed into groupAdd calls; no collection state survives this invocation. const pending = new Map(); + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Per-drop reservation set prevents assigning two files to one slot before async upload completes; never used as render state. const taken = new Set(); let unplaced = 0; for (const f of files) { diff --git a/calliope-web/src/lib/components/generate/TakeFeed.svelte b/calliope-web/src/lib/components/generate/TakeFeed.svelte index 6f50c485..84ceee22 100644 --- a/calliope-web/src/lib/components/generate/TakeFeed.svelte +++ b/calliope-web/src/lib/components/generate/TakeFeed.svelte @@ -125,6 +125,7 @@ // Entrance bookkeeping: only takes that appear AFTER the first fill // (or come back from an undo) play the 220ms rise. // ------------------------------------------------------------------ + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Nonreactive entrance ledger read/written in the jobs effect and markEnter; keep bookkeeping outside effect dependencies, with animateIds driving classes. const seenIds = new Set(); const animateIds = new SvelteSet(); let hydrated = false; diff --git a/calliope-web/src/lib/components/omni/MediaTile.svelte b/calliope-web/src/lib/components/omni/MediaTile.svelte index 72306820..3432d1a8 100644 --- a/calliope-web/src/lib/components/omni/MediaTile.svelte +++ b/calliope-web/src/lib/components/omni/MediaTile.svelte @@ -78,6 +78,7 @@ // The same path can arrive twice (e.g. a scene clip that was also // uploaded to the playground). Duplicate keys crash the keyed each // in the picker grid, so dedupe by path first. + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Local path deduplication scratch set for one filter pass; only the filtered asset array escapes. const seen = new Set(); return assetOptions.filter((o) => { const match = diff --git a/calliope-web/src/lib/components/omni/PillPopover.svelte b/calliope-web/src/lib/components/omni/PillPopover.svelte index 41b61a05..7b6478b4 100644 --- a/calliope-web/src/lib/components/omni/PillPopover.svelte +++ b/calliope-web/src/lib/components/omni/PillPopover.svelte @@ -63,6 +63,7 @@ if (!open || !panelEl) return; document.body.appendChild(panelEl); return () => { + // eslint-disable-next-line svelte/no-dom-manipulating -- Template creates panel contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; listener cleanup stays separate. panelEl?.remove(); }; }); diff --git a/calliope-web/src/lib/components/omni/PillSelect.svelte b/calliope-web/src/lib/components/omni/PillSelect.svelte index d28b7a9d..337278a1 100644 --- a/calliope-web/src/lib/components/omni/PillSelect.svelte +++ b/calliope-web/src/lib/components/omni/PillSelect.svelte @@ -85,6 +85,7 @@ if (!open || !menuEl) return; document.body.appendChild(menuEl); return () => { + // eslint-disable-next-line svelte/no-dom-manipulating -- Template creates menu contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; selection and listener cleanup stay intact. menuEl?.remove(); }; }); diff --git a/calliope-web/src/lib/components/workflows/WorkflowBatchImportWizard.svelte b/calliope-web/src/lib/components/workflows/WorkflowBatchImportWizard.svelte index c5d3c5a8..ad03ff78 100644 --- a/calliope-web/src/lib/components/workflows/WorkflowBatchImportWizard.svelte +++ b/calliope-web/src/lib/components/workflows/WorkflowBatchImportWizard.svelte @@ -198,6 +198,7 @@ function toggleIssue(f: WorkflowConvertFileReport) { const key = rk(f); + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Mutate an isolated copy then assign expandedIssues once; rendering observes the state replacement, not intermediate Set writes. const next = new Set(expandedIssues); if (next.has(key)) next.delete(key); else next.add(key); diff --git a/calliope-web/src/lib/components/workflows/WorkflowLibrary.svelte b/calliope-web/src/lib/components/workflows/WorkflowLibrary.svelte index 10325f60..385dc1bc 100644 --- a/calliope-web/src/lib/components/workflows/WorkflowLibrary.svelte +++ b/calliope-web/src/lib/components/workflows/WorkflowLibrary.svelte @@ -235,6 +235,7 @@ ); function toggleRow(id: number, on: boolean) { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Keep copy/mutate/assign selection semantics: row toggle publishes selected only after the working copy is complete. const next = new Set(selected); if (on) next.add(id); else next.delete(id); @@ -242,6 +243,7 @@ } function toggleSelectVisible() { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Keep copy/mutate/assign selection semantics: visible rows are added/removed before publishing selected once. const next = new Set(selected); if (allVisibleSelected) { for (const r of visible) next.delete(r.id); @@ -319,6 +321,7 @@ mutationFn: (id: number) => workflows.delete(id), onSuccess: (_res, id) => { invalidateWorkflows(); + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Delete success removes the ID from a working copy, then replaces selected; preserve the existing publication boundary. const next = new Set(selected); next.delete(id); selected = next; diff --git a/calliope-web/src/lib/shot/components/ShotViewport.svelte b/calliope-web/src/lib/shot/components/ShotViewport.svelte index 5ad9aa57..778a19af 100644 --- a/calliope-web/src/lib/shot/components/ShotViewport.svelte +++ b/calliope-web/src/lib/shot/components/ShotViewport.svelte @@ -69,6 +69,7 @@ let gizmoDragging = false; ready: boolean; type: SceneObject['type']; } + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Imperative RAF scene registry; keep collection writes out of pose/tool dependencies. Scene state and figureRevision explicitly trigger solves; SvelteMap would track collection reads. const instances = new Map(); // capture-request guard: SSE may ask while a previous capture renders @@ -494,6 +495,7 @@ let exporting = false; renderer = new THREE.WebGLRenderer({ antialias: true, preserveDrawingBuffer: true }); renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)); renderer.shadowMap.enabled = true; + // eslint-disable-next-line svelte/no-dom-manipulating -- Template owns the container/toolbar; Three owns this canvas. Mount renderer output here; destroy cancels RAF, disconnects resize and disposes controls/renderer. container.appendChild(renderer.domElement); scene = new THREE.Scene(); diff --git a/calliope-web/src/routes/+page.svelte b/calliope-web/src/routes/+page.svelte index 8ad32e1a..4d68a44e 100644 --- a/calliope-web/src/routes/+page.svelte +++ b/calliope-web/src/routes/+page.svelte @@ -240,6 +240,7 @@ ); const projectTitles = $derived.by(() => { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Project-title lookup is rebuilt from allProjects each derivation; consumers only read the completed Map. const map = new Map(); for (const p of allProjects) map.set(p.id, p.title); return map; diff --git a/calliope-web/src/routes/canvas/[id]/+page.svelte b/calliope-web/src/routes/canvas/[id]/+page.svelte index 15588f09..8ff728ea 100644 --- a/calliope-web/src/routes/canvas/[id]/+page.svelte +++ b/calliope-web/src/routes/canvas/[id]/+page.svelte @@ -181,6 +181,7 @@ const scenes = $scenesQuery.data?.scenes ?? []; const jobs = $jobsQuery.data ?? []; // An artifact node is "running" while its tracked job is queued/running. + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Effect-local job lookup is built and synchronously consumed into nodes, then discarded; graph/jobs already drive the effect. const nodeRunning = new Map(); for (const n of graph.nodes) { const tracked = n.job_id != null ? jobs.find((j) => j.id === n.job_id) : undefined; diff --git a/calliope-web/src/routes/library/+page.svelte b/calliope-web/src/routes/library/+page.svelte index 9b9be646..8d9ccd2b 100644 --- a/calliope-web/src/routes/library/+page.svelte +++ b/calliope-web/src/routes/library/+page.svelte @@ -87,6 +87,7 @@ ); function toggle(path: string) { + // eslint-disable-next-line svelte/prefer-svelte-reactivity -- Selection toggles mutate a copy then replace selected; preserve one state publication after the toggle. const next = new Set(selected); if (next.has(path)) next.delete(path); else next.add(path); diff --git a/calliope-web/src/routes/settings/+page.svelte b/calliope-web/src/routes/settings/+page.svelte index 7c3b1beb..80cb7670 100644 --- a/calliope-web/src/routes/settings/+page.svelte +++ b/calliope-web/src/routes/settings/+page.svelte @@ -77,6 +77,7 @@ if (MOVED_TABS[raw]) { const destination = new SvelteURL(nav.to!.url); destination.pathname = MOVED_TABS[raw]; + // eslint-disable-next-line svelte/no-navigation-without-resolve -- Runtime target derives from afterNavigate URL and MOVED_TABS; preserve query/hash and replaceState on this legacy redirect rather than re-resolving the full target. goto(destination.pathname + destination.search + destination.hash, { replaceState: true, }); @@ -232,6 +233,7 @@ const url = pendingUrl; pendingUrl = null; discardDraft(); + // eslint-disable-next-line svelte/no-navigation-without-resolve -- Resume the pathname/query/hash captured by beforeNavigate after discard confirmation; cancellation retains the draft. Preserve this runtime target and goto options. if (url) goto(url); } diff --git a/docs/changelogs/2026-10-22-hel762-batch4.md b/docs/changelogs/2026-10-22-hel762-batch4.md new file mode 100644 index 00000000..1a01d077 --- /dev/null +++ b/docs/changelogs/2026-10-22-hel762-batch4.md @@ -0,0 +1,67 @@ +批4仅为逐处审查后保留原实现增加 29 条单行 ESLint 例外,不代表相关能力全部修复。起点 `46fd5bbc86244c349abb4196a0eb93bf54a52172`;沿用 `fix/hel-750-code-checks` / PR #5,base `feat/hel-730-management@64c1116bca1150e413ab51151bade6844f1ec914`。已读 HEL-727 架构交接、HEL-754 矩阵/优先裁定及 HEL-761 批3独立复核;不改业务、模板、CSS、规则配置、依赖、接口或用户数据。 + +## 本批新增逐位置清单(29 条) + +路径相对 `calliope-web/`,行号指添加注释后的诊断语句。各项均单独验证禁用作用域:移除该行指令后恰恢复原来一条指定规则/消息,其他诊断不变。每一文件的前后客户端/SSR编译产物经过 JS AST 去位置/注释/词法 raw 后相同,CSS 编译产物逐字相同;另以删除本批注释后源码逐字相同证明模板结构和原脚本不变。编译器会保留脚本注释,故没有宣称生成 JS 逐字相同。 + +| # | 位置 | 规则 | 原行为与保留依据 | 实际验证及边界 | +|---|---|---|---|---| +| 1 | `src/lib/components/agent/AgentChat.svelte:65` | `prefer-svelte-reactivity` | Each derivation rebuilds this tool-result lookup from messages; only the completed Map escapes, with no later mutation. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 2 | `src/lib/components/agent/AgentComposer.svelte:80` | `no-dom-manipulating` | Template owns the empty editor shell; its user-editable subtree is imperative. Restore draft text before caret placement/focus and serialization. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 3 | `src/lib/components/agent/AgentComposer.svelte:166` | `no-dom-manipulating` | Template does not render editor children; after serializing text/chips, clear the user-owned subtree before onSend, preserving submit/reset behavior. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 4 | `src/lib/components/agent/AgentComposer.svelte:297` | `no-dom-manipulating` | Editor owns its children: fallback appends a noneditable workflow chip whose dataset serialize reads; keep template shell and caret logic intact. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 5 | `src/lib/components/agent/AgentComposer.svelte:300` | `no-dom-manipulating` | Editor-owned trailing space provides a text caret after the workflow chip; placeCaretAfter uses this exact node. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 6 | `src/lib/components/agent/AgentComposer.svelte:335` | `no-dom-manipulating` | Editor owns its children: fallback appends a noneditable skill chip whose dataset serialize reads; keep template shell and caret logic intact. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 7 | `src/lib/components/agent/AgentComposer.svelte:338` | `no-dom-manipulating` | Editor-owned trailing space provides a text caret after the skill chip; placeCaretAfter uses this exact node. | 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。 | +| 8 | `src/lib/components/agent/AgentSessionSidebar.svelte:32` | `prefer-svelte-reactivity` | Local grouping accumulator is consumed as an array in this derivation; sessions drive recomputation, not Map writes. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 9 | `src/lib/components/agent/WorkflowMentionMenu.svelte:59` | `no-dom-manipulating` | Template creates menu contents; this effect moves the root to body and owns portal teardown on close/unmount. Remove that moved root to avoid residue. | 由真实编辑器驱动:body portal 定位、Esc/外点关闭、开着卸载无残留。 | +| 10 | `src/lib/components/desk/StudioDesk.svelte:140` | `prefer-svelte-reactivity` | Nonreactive request gate: ensureDetail reads has synchronously in the effect; reactive delete on failure would re-arm requests without a cached detail. | 真实创作台失败详情请求:旧/新计数一致且等待后不增长;派生 ID 保留源依赖。 | +| 11 | `src/lib/components/desk/StudioDesk.svelte:160` | `prefer-svelte-reactivity` | Rebuilt from workflowId, bay selection and jobs on each derivation; this completed ID set is never mutated by consumers. | 真实创作台失败详情请求:旧/新计数一致且等待后不增长;派生 ID 保留源依赖。 | +| 12 | `src/lib/components/desk/TaskModeRail.svelte:23` | `prefer-svelte-reactivity` | Local counting accumulator is consumed synchronously into mode rows; metas/kind drive the derivation. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 13 | `src/lib/components/generate/SlotTray.svelte:120` | `prefer-svelte-reactivity` | Per-drop allocation buffer, synchronously consumed into groupAdd calls; no collection state survives this invocation. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 14 | `src/lib/components/generate/SlotTray.svelte:122` | `prefer-svelte-reactivity` | Per-drop reservation set prevents assigning two files to one slot before async upload completes; never used as render state. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 15 | `src/lib/components/generate/TakeFeed.svelte:129` | `prefer-svelte-reactivity` | Nonreactive entrance ledger read/written in the jobs effect and markEnter; keep bookkeeping outside effect dependencies, with animateIds driving classes. | 真实组件隔离挂载:新条目入场一次,复制 jobs/markEnter 后不重播;CSS animationstart 事件探针,非像素等同比较。 | +| 16 | `src/lib/components/omni/MediaTile.svelte:82` | `prefer-svelte-reactivity` | Local path deduplication scratch set for one filter pass; only the filtered asset array escapes. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 17 | `src/lib/components/omni/PillPopover.svelte:67` | `no-dom-manipulating` | Template creates panel contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; listener cleanup stays separate. | 真实组件隔离挂载:body 定位、开关/Esc/外点、选择及开着卸载无残留。 | +| 18 | `src/lib/components/omni/PillSelect.svelte:89` | `no-dom-manipulating` | Template creates menu contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; selection and listener cleanup stay intact. | 真实组件隔离挂载:body 定位、开关/Esc/外点、选择及开着卸载无残留。 | +| 19 | `src/lib/components/workflows/WorkflowBatchImportWizard.svelte:202` | `prefer-svelte-reactivity` | Mutate an isolated copy then assign expandedIssues once; rendering observes the state replacement, not intermediate Set writes. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 20 | `src/lib/components/workflows/WorkflowLibrary.svelte:239` | `prefer-svelte-reactivity` | Keep copy/mutate/assign selection semantics: row toggle publishes selected only after the working copy is complete. | 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。 | +| 21 | `src/lib/components/workflows/WorkflowLibrary.svelte:247` | `prefer-svelte-reactivity` | Keep copy/mutate/assign selection semantics: visible rows are added/removed before publishing selected once. | 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。 | +| 22 | `src/lib/components/workflows/WorkflowLibrary.svelte:325` | `prefer-svelte-reactivity` | Delete success removes the ID from a working copy, then replaces selected; preserve the existing publication boundary. | 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。 | +| 23 | `src/lib/shot/components/ShotViewport.svelte:73` | `prefer-svelte-reactivity` | Imperative RAF scene registry; keep collection writes out of pose/tool dependencies. Scene state and figureRevision explicitly trigger solves; SvelteMap would track collection reads. | 真实 Three/WebGL 隔离挂载:cube 注册、orbit、SPA 离页、canvas 消失、controls dispose、RAF 取消停止、ResizeObserver disconnect、GL program 删除。非所有几何/纹理资源释放证明。 | +| 24 | `src/lib/shot/components/ShotViewport.svelte:499` | `no-dom-manipulating` | Template owns the container/toolbar; Three owns this canvas. Mount renderer output here; destroy cancels RAF, disconnects resize and disposes controls/renderer. | 真实 Three/WebGL 隔离挂载:cube 注册、orbit、SPA 离页、canvas 消失、controls dispose、RAF 取消停止、ResizeObserver disconnect、GL program 删除。非所有几何/纹理资源释放证明。 | +| 25 | `src/routes/+page.svelte:244` | `prefer-svelte-reactivity` | Project-title lookup is rebuilt from allProjects each derivation; consumers only read the completed Map. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 26 | `src/routes/canvas/[id]/+page.svelte:185` | `prefer-svelte-reactivity` | Effect-local job lookup is built and synchronously consumed into nodes, then discarded; graph/jobs already drive the effect. | 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。 | +| 27 | `src/routes/library/+page.svelte:91` | `prefer-svelte-reactivity` | Selection toggles mutate a copy then replace selected; preserve one state publication after the toggle. | 真实素材页:逐项选中、保留另一项、取消目标与计数;API fixture 拦截。 | +| 28 | `src/routes/settings/+page.svelte:81` | `no-navigation-without-resolve` | Runtime target derives from afterNavigate URL and MOVED_TABS; preserve query/hash and replaceState on this legacy redirect rather than re-resolving the full target. | 真实设置页:旧入口 replaceState 保重复 query/hash;离页确认/取消、草稿保留与目标恢复。守卫目标链接 click 为 DOM 模拟事件。 | +| 29 | `src/routes/settings/+page.svelte:237` | `no-navigation-without-resolve` | Resume the pathname/query/hash captured by beforeNavigate after discard confirmation; cancellation retains the draft. Preserve this runtime target and goto options. | 真实设置页:旧入口 replaceState 保重复 query/hash;离页确认/取消、草稿保留与目标恢复。守卫目标链接 click 为 DOM 模拟事件。 | + +## 原有已审例外(3 条,未改) + +- `src/lib/media/exportFrame.ts:65`:`no-control-regex`,文件名控制字符拒绝;原有指令保留。 +- `src/lib/components/ComfyDynamicForm.svelte:232`:`svelte/no-at-html-tags`,固定七种语言包 HTML 合同;未改。 +- `src/lib/components/ui/Icon.svelte:27`:`svelte/no-at-html-tags`,内置 SVG 注册表;未改。 + +这三条不是本批新增项。ESLint JSON 的 suppressedMessages 只列脚本类 suppression(前1→后30);模板指令由 Svelte 处理,不在该字段列出,不能把该字段误作全部例外总数。源码指令由原3→32。 + +## 语义边界 + +- `inflight` 的 has 在 effect 调用 ensureDetail 的同步段读取;失败不写 details,原生 Set delete 不触发重试。保留是依赖边界要求。 +- `seenIds` 是非响应入场记账;可见动画由原有 SvelteSet animateIds 驱动,不把两者混为一谈。 +- `instances` 是 RAF 使用的视图注册表,Three 对象本身不会因为换 SvelteMap 就自动深代理;风险是集合 get/has 的追踪变化。保留 shotStore、figureRevision、untrack 的真实触发边界。原 onDestroy 只保证现有控制器/renderer 等清理,不能扩称递归释放所有场景资源。 +- 7 项临时计算/分组集合以及 SlotTray 两个暂存集合只在一次计算/调用内写入;AgentChat、StudioDesk ids、首页 Map 会返回完成后的集合,消费者只读,并非所有集合都立即丢弃。 +- 四项不可变复制(导入向导1、工作流库3)及素材库1均保留 copy→mutate→assign,渲染依赖 state 整体替换。没有顺便改成原地响应集合。 +- settings 目标是框架导航回调提供的运行时路径/query/hash,不将其重新当作静态路由解析;原选项不变。此次未扩修跨 origin 特殊导航,也未修 /models 第二跳丢附加参数/hash。 +- 编辑器模板只拥有空壳,用户文本/chip 子树由编辑器管理;三个 portal 的模板内容与 imperative root 移动/清理分工不变。Three canvas 由 renderer 创建,模板只有容器和工具栏。 + +## 检查记录 + +Node v24.16.0 / npm 11.13.0。干净 `npm ci`=0;`npm run lint`=1;`npm run check`=0;`npm test`=0;`npm run build`=0。ESLint JSON 按文件/规则/消息的多重差集 31→2,恰消除导航2+响应性17+DOM10,零新增。仅余 Artboard `/assets` 导航与 ShotStagePanel 字幕各1,均留批5。check 保留1条原字幕 warning;build 原有提示保留,未改阈值或补空 track。 + +默认 Prettier 沿用原配置,不自动覆盖 `.svelte` 模板;lint 中 Prettier 的通过不能说明所有模板已符合格式。 + +浏览器脚本、fixture、实际请求流水、旧/新 JSON、截图、失败夹具记录与完整命令日志随任务附件交付。全部 API 由隔离浏览器拦截,其他 origin 中止;未启动后端、未调用真实生成/收费接口、未读取用户配置/数据。临时路由仅测试期存在,不提交。截图仅支持局部无回归,不是全站样本验收。 + +未覆盖:真实服务/SSE/付费生成,输入法/粘贴/上传,导入向导问题展开的页面点击,其他临时分组集合的独立交互,所有 WebGL 几何/材质/纹理生命周期及物理关窗。上述源码均证明本批仅增注释;不以此宣传原问题已修好。 + +不更新 PR 正文、不合并、不部署、不启动批5/HEL-751。交付后冻结本批新 head,待总管另派独立复核;回滚用 `git revert <本批提交>` 正常推送原分支。