docs: record additional worker audit outcomes

This commit is contained in:
lix-2026
2026-05-25 09:02:58 +08:00
parent a270e9c8e0
commit 8b27bd45aa
2 changed files with 11 additions and 0 deletions
@@ -329,3 +329,9 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
- 切片范围:`editor_runtime/dom_selection.rs` 新增 `block_index_from_selection()``editor_runtime/overlays.rs` 新增 `selection_bounding_rect()``viewport_dimensions()``clamp_overlay_anchor(...)``lib.rs``hovered_block_from_selection` / `slash_menu_anchor_style` 退化为调用上述 helper 的壳层编排;生成物只更新 `generated/island` 对应 `js/wasm`
- 本轮 fresh 验证:`cargo fmt --manifest-path rust/Cargo.toml --all --check``cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml``cargo build --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml --target wasm32-unknown-unknown --release``wasm-bindgen --target web --out-dir rust/spikes/leptos-tiptap-spike/generated/island --out-name mnote-leptos-tiptap-spike-island rust/spikes/leptos-tiptap-spike/target/wasm32-unknown-unknown/release/mnote_leptos_tiptap_spike.wasm`、临时当前源码服务 `MNOTE_WEB_BIND=127.0.0.1:3021 MNOTE_WEB_PUBLIC_BIND=127.0.0.1:3021 cargo run --manifest-path rust/Cargo.toml -p mnote-web``MNOTE_WEB_SMOKE_BASE_URL=http://127.0.0.1:3021 NODE_PATH=/mnt/Data1T/mnote/node_modules node scripts/task489-block-menu-delete-undo-smoke.js``MNOTE_WEB_SMOKE_BASE_URL=http://127.0.0.1:3021 NODE_PATH=/mnt/Data1T/mnote/node_modules node scripts/task488-local-attachment-link-delete-undo-smoke.js``MNOTE_WEB_SMOKE_BASE_URL=http://127.0.0.1:3021 NODE_PATH=/mnt/Data1T/mnote/node_modules node scripts/task479-local-folder-markdown-resource-lifecycle-smoke.js`
- 结果:上述命令全部通过;`task479` 确认附件生命周期、主编辑区附件缺失态、文件树打开附件和“文件名作为本地 Markdown 默认页头标题”的基线行为未被本批回归。
- 2026-05-25Batch BB 只派发 1 个只读 Reasonix worker 审计 `slash_menu_anchor_style()` 剩余 fallback 是否还有可继续外置的纯几何 helper 边界,使用独立 worktree `/mnt/Data1T/mnote-worktrees/0525-bb-worker-b-5-29-slash-fallback-readonly`run id `reasonix-2026-05-25T00-57-16-369Z-153f8ae2`,显式 `--no-memory-recall`
- Codex 已读取 Hindsight recall、`process-handoff.md/json``result.json`,并核对该 worktree 源码 `git diff --stat` 为空;worktree 中仅新增 `final.md``process-handoff.*``result.json` 等审计产物,不视为源码修改。
- 该 run 违反任务边界:worker 把 `3-20``5-29` 两个只读审计混成一份总体报告,因此不作为正式 handoff 全量采纳。
- 但主控根据其 `5-29` 线索做了本地代码复核,确认当前粒度判断基本成立:`slash_menu_anchor_style()` 已复用 `selection_bounding_rect()``clamp_overlay_anchor()`;剩余 fallback 只包含 `hovered_block_from_selection()``editor_stage_element()``content_text_left(stage_rect.width())` 和 3 行 anchor 算术,不值得再抽新的微型 helper。
- 主控本地代码证据:`hovered_block_from_selection()` 已退化为 `block_index_from_selection().and_then(block_state_from_index)` 的薄包装;`block_menu_overlay.rs` 已存在一份独立的 `content_text_left()` / 布局常量体系,若为 `slash_menu_anchor_style()` 再外置同类 helper,反而会引入第三处布局常量复制。
- 当前决定:`5-29` 暂不再围绕 `slash_menu_anchor_style()` 继续拆刀;若后续确实需要推进,应另起设计收口 `content_text_left()` / 内容列布局常量,而不是从当前 fallback 中抽 3-5 行几何包装。