Running log of problems hit during implementation, P-nnn, sorted by number. A problem gets a row here; a long one also gets its own note (P-nnn Title, from Problem Template). P-001–P-003 were logged first; numbering continued at P-032 because R-01 … R-31 were reserved for the anticipated problems in the Problem Ranking (until 2026-10-01 those were also called P-nn). Take the next free number.

Not here: the external audit’s twenty GitHub issues — they have their own page, Audit 2026-09-23 (overlaps: #13 = P-069, #17 ⊃ P-086, #19 ⊃ the rest of P-037).

IDTitleStatusPhase
P-001 Graph surface in desktop webviewWhere does the wgpu surface come from inside the desktop webview?open2 → 5
P-002 Dioxus mount point and full-height layout#main mount div broke the full-height workbenchresolved0
P-003 dioxus-workbench theme variablesDark palette override didn’t applyresolved0
P-032 Release-build observabilityNo inspector/stdout in compiled desktop builds → file log, panic hook, JS error forwarding, Diagnostics panel (Debugging and Logging)open1
P-033 WebKitGTK WebGPU flagEnable WebGPU feature via raw webkit2gtk-sys call; measure (Linux Desktop Setup)open2
P-034 Hydration mismatch from cfg! in markupFullstack SSR renders on the server; a cfg!(wasm32) placeholder showed the native text on web. Rule: no compile-time platform branches in rendered output (Milestone 1 - Implementation Log)resolved1
P-035 .gitignore ignored outside git reposignore crate defaults to require_git(true); set false so an editor behaves the same before git initresolved1
P-036 Server-function name clash#[post] fn query(.., query: Query) fails: the generated stub calls query(...) and the parameter shadows it; renamed with suffixesresolved1
P-037 Whole-document change eventsJS reported the full text per keystroke; O(n) per key. Resolved 2026-09-21 (spec 018): the view reports splices (UTF-16 offsets, old text, document order), Rust applies them to a mirror and the document takes the mirror; a 3 MB file registers a keystroke in 87 ms. Remaining O(n): the LSP didChange still sends the full text, and the document is a String (rope later)resolved2
P-038 Desktop link error -lxdodx run in packages/desktop fails at link time: muda needs libxdo.so; install xdotool (Arch) / libxdo-dev (Debian). Docs had it as optional — corrected in Linux Desktop Setupresolved1
P-039 No native folder dialog in Milestone 1By design (out of scope); now rfd (xdg-portal backend) behind WorkspaceConfig::pick_folder on desktop, wired to File → Open Folder…, Ctrl+O and the Explorer button. Requires xdg-desktop-portal + a backend on Linux (Linux Desktop Setup)resolved1
P-040 Custom title bar on an undecorated windowDecorations off; drag/resize/minimize/maximize/close via dioxus::desktop::window() callbacks passed into ui::Frame. Maximize icon doesn’t flip; Wayland resize depends on the compositorresolved (gaps noted)1
P-041 u64 through JSON loses precisionVersion(u64) hashes > 2⁵³ became floats on the BroadcastChannel path and failed to deserialize, silently killing the receiver loop. Version now serialises as a hex string; receiver loops skip bad messages instead of exitingresolved1
P-042 Moved echo check used the wrong field”ignore my own messages” keyed on from, but Moved.from is the origin, not the sender — the origin never closed its copy. SessionMessage::sender() returns to for Movedresolved1
P-043 dx serve missed a Rust changeA change in ext-api was not rebuilt by a long-running dx serve (no rebuild line in the log); restart dx when a non-rsx change seems not to applyopen (tooling)1
P-044 Cross-window drag didn’t work by handThree causes: (1) Firefox never starts an HTML5 drag unless dragstart calls dataTransfer.setData — Dioxus’s synthetic handler can’t, so a native listener on the handle now does; (2) web New Window opened a tab, and a background tab can’t be a drop target — now a popup window; (3) whether WebKitGTK delivers an HTML5 drop across two webviews of one process is unverified, so the offer now survives dragend as a “Move it here” banner in the other window (grab → release → click). Verified on web with a real mouse drag; desktop still needs a manual runresolved (fallback)1
P-045 Cross-window drag and dropFirefox “Server Not Found: wb-tab-editor-…” (unhandled tab drop navigates); desktop drag + folder sync unverified. Tab drag is now the gesture, stray drops inert, desktop seeds sources from the registry, session log + “N windows” status for diagnosisresolved (desktop confirmed by hand)1
P-046 Random element ids vs hydrationGraph panel ids derived from the random WindowId differed between server render and client; getElementById failed silently. Deterministic ids for anything an eval looks up (Milestone 2 - Implementation Log)resolved2
P-047 Eval messages lostSent-before-awaited and sent-then-returned messages are dropped; also an eval mounted from an effect that writes a signal it reads. Pattern: init handshake, park on recv until destroy, mount from onmountedresolved2
P-048 dx serve misses Rust changes (3×)Non-rsx changes to a const &str script were not rebuilt; restart dx each time (~3 min)open (tooling)2
P-049 No GL in headless Firefox; wgpu hangs without a contextProbe WebGL2/WebGPU before create(), show the reason; rendering verified only in real browsersresolved (fallback)2
P-050 wgpu 30 API driftSeveral descriptor fields/enums changed; read the registry sourceresolved2
P-051 Graph view jumped back after draggingEvery layout settle re-fit the camera, and node drags reheat the layout; dragged nodes were also unpinned and drifted. Auto-fit now only after a new graph/relayout until the user moves the view; dragged nodes stay pinnedresolved2
P-052 New side panel stole the active tabAttaching a late panel activates it; default layout lists explorer, links explicitlyresolved2
P-053 dragend missing after a workbench dropFirefox drops the tab on the workbench’s own drop zone and never fires dragend; a drop in the source window now ends the session drag tooresolved2
P-054 Typst preview compiled foreverThe preview effect read busy() reactively and set it after each compile, re-triggering itself; busy.peek()resolved3
P-055 Terminal Ctrl+clickRow index must come from .xterm-rows geometry; long paths wrap so neighbour rows are joined; xterm + headless Firefox swallow real modified clicks — the E2E dispatches a synthetic clickresolved3
P-056 dx serve restartsNon-rsx Rust changes still need a restart of dx (~2–3 min). Never pkill dx: it also kills Daniel’s own dx serve (desktop) in another shell — on 2026-09-19 that took his desktop app down while he was trying the flow editor (WebKit exit segfault, P-061 signature, at 12:14 and 12:31). The test server is now started and stopped by PID with packages/web/tests/e2e/serve.shopen (tooling)3
P-057 Websocket<String, String> in a server fnThe #[get] macro turns a bare String type parameter into str (DeserializeOwned not satisfied); wrap in a Frame(String) newtyperesolved3
P-058 LSP progress text overflowed the status barrust-analyzer’s $/progress messages are n/m: <long path>; cut at the first : in lsp::sessionresolved3
P-059 E2E fixture driftgraph.mjs saves a wiki-link to Another into Home.md; a later links-sqlite.mjs run sees one phantom too many. Restore the fixture between suites (README). Milestone 6: fixture.sh rebuilds the fixture deterministically and the regression run resets Home.md/.moonkale/ per suiteresolved3
P-060 Database internals invisible in the graph viewDaniel: the Graph tab kept showing the folder; the source picker defaulted to index and Show in Graph did not raise the Graph tab (same tile as the table editor). Opening a graph database now selects it in the picker; Show in Graph dispatches Command::ShowPanel("graph"), which the shell applies via PanelLayout::reconcile + activateresolved3
P-061 WebKitWebProcess SIGSEGV in NVIDIA EGL (desktop)Core dumps of WebKitWebProcess inside libnvidia-eglcore, called from WebKitGTK’s compositor. Pinned down (2026-09-18): the web process segfaults while tearing down a live WebGL context — every time the app exits (graceful close included: Daniel’s 13:13 dump was a build with the pagehide handler, closed 13 s after launch) or dx serve kills it for a rebuild. Not a startup crash; not the DMA-BUF renderer (the crashed process had WEBKIT_DISABLE_DMABUF_RENDERER=1); losing the context from JS doesn’t help because WebKit’s own teardown is what crashes. The process is exiting anyway, so the only effect is a 10 MB dump and a KDE crash popup per run. Fix: desktop/main.rs sets the soft RLIMIT_CORE to 0 when the NVIDIA driver is loaded (inherited by the WebKit children; MOONKALE_COREDUMPS=1 keeps dumps for real debugging). Verified: killing the dx-built app produced a dump before, none after; Daniel confirmed no KDE crash popup under dx serve (only a SIGSEGV none journal line remains, which the kernel writes regardless of the limit)resolved (confirmed)3
P-062 Graph view showed only a database’s schemaDaniel expected the actual people/cities with their relations. Databases now have Data / Schema / Query modes (Data is the default after opening one): Query::All { kinds: [Vertex] } returns nodes + relations from the source; vertices are coloured per label (node table), relations per name, with a legend in the toolbar. Vertex keys carry the label (v:Person:0:3) so the host colours without a lookupresolved3
P-063 Graph panel loads racedAdding a source re-ran the load effect before the picker switched; the slower remote index reply overwrote the trace result. Generation counter: only the newest load publishesresolved4
P-064 Agent borrowed across awaitsStreaming into &mut Agent for a whole exchange conflicts with the panel reading its audit log; an audit mirror signal + busy fence (clippy lint allowed with the rationale)resolved4
P-065 Global shortcuts need focus inside the frameThe key handler is on the frame div; Ctrl+Shift+F did nothing when body had focus. Milestone 5: a document-level listener (GLOBAL_KEYS eval in Frame) forwards Ctrl-combos whose target is the bodyresolved4
P-066 Port 8080 taken by the desktop dev serverDaniel’s dx serve (desktop) holds 8080; the web E2E suites take PORT and the test server runs on 8090. Also cleaned up leaked server-* processes from old dx runsresolved4
P-067 Mistral: unavailable models look rate-limitedModels the key cannot use (devstral-*, mistral-small-latest) return 429 “Rate limit exceeded”, not 404. mistral-code-latest / codestral-latest + mistral-embed work through the OpenAI-compatible providerresolved (noted)4
P-068 Graph nodes lost their red channelSince Milestone 2 every node looked cyan/teal regardless of kind: vertex_attr_array! packed the colour attribute at offset 12 while NodeInst pads radius to 16, so the shader read (pad, r, g, b). Spotted from Daniel’s screenshot where the legend colours and the drawn nodes disagreed. Explicit attribute offsets now; renderer rebuilt; Daniel confirmed the colours on desktopresolved (confirmed)4
P-069 terminal.run has no timeoutThe tool ends the shell after the command so the output stream closes, but an interactive command waits forever (no timer primitive on wasm without a JS dependency). Output capped at 200 KB. Follow-up: cancel button on the tool cardopen5
P-070 dx serve served a stale JS bundleAfter npm run build rewrote milkdown.js, the page kept requesting the old content-hashed asset. Restart dx after rebuilding a bundleopen (tooling)5
P-071 Hydration shows server-side settings brieflyThe Settings panel derives the LLM scope badge from env_overrides(), which the server has and the wasm client does not; the server markup stays until the first client re-render (same family as P-034)open (cosmetic)5
P-072 Desktop: last folder not reopened at launchDaniel: the key was remembered but not layout/tabs. Cause 1: nothing reopened the last folder at start — restore only ran after a manual open. Now WorkspaceConfig::reopen_last_folder (desktop true) opens recent_folders[0] after the user settings load, from the frame’s onmounted. Cause 2 (suspected, not confirmed): during my desktop runs the index build stalled at startup — but the KDE session was locked at the time and WebKit suspends invisible pages, so those runs prove nothing. Trace lines (settings: …, open_folder: …) show the sequence in the dx log. Daniel confirmed: the desktop app reopens the last folder as leftresolved (confirmed)5
P-073 dioxus-flow handle geometry lags its layout animationAfter Layout the handle positions used to validate a connection are stale for a few frames, so a drag started right away can miss; also the third palette column sat under the tile splitter at 1500 px. Blocks are placed on a 165 px grid; the E2E wires before laying out. Real fix needs a settled-layout callback from dioxus-flowopen (upstream)6
P-074 Controlled workbench layout is rendered reconciledPanelWorkspace renders a reconciled copy of the controlled signal: newly attached panels and the auto-activated document tab appear before any write to the application’s signal, so reading the front tab from the signal was stale. The phone bar reconciles with the current placements before reading or activating (as ShowPanel already did)resolved6
P-075 dioxus-flow debug warnings in the desktop logWith a flow open, dioxus-flow 0.1.2 logs Changing the props of Style {} (its document::Style { {STYLE} } re-renders) and A Copy Value created in ScopeId(…Canvas) … used in …Flow (its Canvas signals are read by the parent Flow through attach_core) on every render — 15× / 14× in Daniel’s error7.md. Both are upstream, debug-only and harmless here (no failed reads observed); the file’s abrupt end was dx’s SIGKILL relaunch after a Rust edit, not a crash. Worth an upstream report with the next dioxus-flow issue (P-073)open (upstream)6
P-076 Spawned task dropped with its componentThe Explorer’s inline field set edit = None (unmounting itself) and then spawned the create/rename; the task died with the scope and nothing happened, silently. spawn_forever for work that must outlive the component that starts itresolved7
P-077 serde(rename_all) on an enum does not rename variant fieldsThe CodeMirror bridge sent endLine for CodeActions, Rust expected end_line; the parse error ended the bridge’s recv loop so every later editor event was lost. Per-variant rename_all now, and an unreadable message is logged and skippedresolved7
P-078 Completion source never askedThe bundle’s completion source registered its resolver and forgot to call onCompletion; nothing visible failed. Found by loading the bundle in a bare HTML page (cm-test.html) — the fastest way to test the JS side without the appresolved7
P-079 Click before hydration after a form redirectAfter /login the server-rendered page is shown before the wasm hydrates; a click on Open in that window does nothing. Tests wait for networkidle; a loading hint for humans is a follow-upopen (cosmetic)7
P-080 The type-mismatch diagnostic is cargo-check’s, not rust-analyzer’sDriving rust-analyzer 1.98 directly (ra-probe.py): didOpen yields the mismatched types error from flycheck (cargo check), and didChange republishes only native diagnostics (syntax errors) — so fixing the type error does not clear the gutter until the next check, which runs on save. lsp.mjs now saves; the code panel’s Ctrl+S path sends didSave like the toolbar button (it did not before — one save_now callback for all three paths)resolved7
P-081 Long E2E batches time out under loadIn a 23-suite batch, phone and auth hit 30 s timeouts that never reproduce alone or in pairs: by then several rust-analyzer instances (from lsp/lsp2) and, for auth, a second dev server share the CPU. Both pass on rerun; treat a single timeout late in a batch as load, rerun the suite, and only then debugopen (tests)7
P-082 Firefox headless has no WebGLEven with webgl.force-enabled and software rendering prefs, headless Firefox exhausts its GL drivers; the graph renderer was never exercised by a test until Milestone 8. Chromium headless with --use-angle=swiftshader --enable-unsafe-swiftshader --ignore-gpu-blocklist provides WebGL2 (graph3d.mjs); the GL canvas cannot be read back after present, so the suite reads the label overlay and compares screenshotsresolved (tests)8
P-083 Playwright :has-text() is a substring matchlabel:has-text('Name') matched “Secret name” first and the test typed a user name into the secret field; use :text-is() for exact labelsresolved (tests)8
P-084 wgpu 30 depth-state fields are Optionsdepth_write_enabled: Some(true), depth_compare: Some(CompareFunction::LessEqual) — the docs’ examples still show plain valuesresolved8
P-085 Edits anchored on stale textMulti-edit scripts kept failing after cargo fmt reshaped the anchors; each retry cost minutes. Rule: re-read the exact lines right before editing, one file per script, and format lastopen (working rule)9
P-086 Compaction hides old renamesAfter EntityLog::compact, renames before the boundary are folded away; text_at correctly starts from the snapshot keyed by the current id, but the History panel’s key lookup for very old events relies on Event.key (carried since Milestone 8)noted9
P-087 Android WebView drops head elements from the first renderdocument::Stylesheet in a panel that is part of the first frame never reaches <head> on Android (the Explorer, Agent and Git panels were unstyled; panels mounted later were fine). Desktop and web are unaffected. Fix: moonkale_ext_api::Stylesheet — an effect that inserts the <link> itself through document::eval if it is missing, re-run when Workspace::assets_epoch bumps (the frame bumps it from onmounted). Every panel uses it nowresolved9
P-088 import() of an asset URL fails on AndroidThe renderer’s import(JS_URL) threw “base URL is about:blank because import() is called from a CORS-cross-origin script”: eval scripts on the WebView have no base URL. Fix: resolve every asset URL against document.baseURI || location.href before import() and init({ module_or_path })resolved9
P-089 WebGPU device creation never completes on the Android WebViewWebView 125 advertises navigator.gpu, requestAdapter succeeds, and create() then hangs (no error, no timeout from wgpu). Fix: the Graph panel passes prefer: "gl" when the UA is an Android WebView (Android + wv), and create(canvas, overlay, cb, prefer) → Renderer::new(.., gl_only) skips WebGPU. WebGL2 renders the graph at full speed for the vault sizes a phone holdsresolved9
P-090 sRGB surface format washes the graph out on GLOn WebGL2 the surface reported Rgba8UnormSrgb first; the shaders write linear colours, so the background came out grey and the nodes pale. Fix: Renderer::new picks the first non-sRGB format from surface.get_capabilities (falls back to the default). WebGPU on desktop/Chromium is unchanged (it already chose non-sRGB)resolved9
P-091 Graph auto-fit ran before the canvas had a sizeOn the phone the Graph tile is laid out after create() runs, so the layout settled and Camera::fit used a 1×1 canvas: scale clamped to 0.05, every node at the centre (screenshot android10). Fit fixed it by hand. Fix: resize() re-fits while auto_fit is still set (nobody has panned or zoomed), which also keeps a resized panel fittedresolved9
P-092 dx leaves stale hashed assets in the Android projectEvery dx build --platform android adds the new <name>-dxh<hash> asset to target/dx/mobile/release/android/app/app/src/main/assets without removing the previous one: after five renderer rebuilds the APK carried five graph_render_bg.wasm copies (38.8 MB instead of 23 MB). Workaround: delete that assets directory (or dx clean) before a release build; a release checklist item in Androidnoted9
P-093 Highlighting grammars live in the CodeMirror bundleThe rule “no language knowledge in JS” (JS Interop Boundary) assumed tree-sitter highlights from Rust; tree-sitter is native-only and the web client would need a server round trip per keystroke. Decision: highlighting is presentation — Lezer/legacy grammars ship in the bundle (languages.ts, +650 KB), Rust still picks the language id; symbols, links, LSP stay in Rust. The Rust-native editor (JavaScript Inventory) brings its own highlighter when it comesdecided10
P-094 onload on <img> never fires in dioxusload does not bubble, and dioxus delivers events through one delegated listener; the image viewer’s natural size stayed unknown. Fix: onmounted + an eval that awaits img.decode() and returns the size (an eval is a function body — an IIFE expression without return yields undefined, the second half of the same hour)resolved10
P-095 The per-session token showed up in the ssh terminal tabThe remote script printed MOONKALE_TOKEN? and then ran stty -echo; the desktop wrote the token as soon as it saw the prompt, the PTY still echoed, and the hex line appeared in the tab (and in the tee stream). Fix: echo off first, then the prompt, then read; the shim test’s tee output shows no token nowresolved11
P-096 dioxus::server panics without a public/ directoryserve_dioxus_application reads ./public at startup (Couldn't read public directory … No such file or directory) even when only the API is used; the uploaded server died silently until the tee output was printed. Fix: the remote script mkdir -p "$d/public" before exec; an empty directory is enough (the server then serves a default index.html and the API)resolved11
P-097 No display to run the desktop app on this machineThe only X server on :0 is sddm’s login screen (Daniel works through code-server); no Xvfb/weston. Consequence: desktop-only UI (the remote dialog) is verified by Daniel, and workspace logic behind it gets a VirtualDom harness test (ext-api/tests/remote_flow.rs: signals, spawn, phases — 1.2 s) — a pattern for later desktop-only featuresdecided11
P-098 dioxus’s server URL is a OnceLock — set_server_url after launch panicsdioxus::launch (desktop, fullstack) sets ROOT_URL to the dev-server address once; api::client::connect calling set_server_url for the SSH session panicked on the handshake thread (called Result::unwrap() on an Err value: "http://127.0.0.1:33581"), so the UI stayed at “starting the server…” — found on the real desktop once a display was available (the shim test set the URL first and never saw it). Fix: api::relay — a loopback TCP listener installed before launch as the permanent server URL, piping every connection (server functions and typed websockets alike) to the remote that is active, TLS with the WebPKI roots for https://; connect only sets the headers and the target. Unit test in relay.rs; the shim test and the desktop test install it the same wayresolved11
P-099 The desktop under my shell’s environment: Wayland protocol error 71, then a black WebKit window on X11Launched with the shell’s inherited variables the GTK Wayland backend died (“Error 71 (Protocol error) dispatching to Wayland display”); with GDK_BACKEND=x11 WebKit printed “Failed to create GBM buffer … Invalid argument” and rendered nothing (WEBKIT_DISABLE_DMABUF_RENDERER=1 renders, at +250 MB). Launching with env -i and only the session’s own variables (WAYLAND_DISPLAY, DISPLAY, XAUTHORITY, XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS) works natively on Wayland — the recipe for running the app from a script. The graph canvas looked black in those runs — not a rendering fault: P-100noted11
P-100 A big graph could not be seen whole — the zoom floor was too highThe Moonkale repository’s graph (2 851 nodes, ideal edge length 28 + 6·ln n ≈ 76 world units) spans more world units than a 0.05 minimum scale can put on a 700 px canvas, so fit clamped to 0.05 (only the middle of the graph in view — and the middle of a ring-shaped layout is empty, hence the “black” canvas of P-099) and the wheel could not zoom out further; Daniel zoomed out and hit the same floor. Fix: MIN_SCALE = 0.002 for both; the view also re-fits on every frame while the layout is still spreading, not only at settle. Verified in the desktop app: the whole graph, isolated-node ring included, fits the panelresolved11
P-101 A desktop dx serve is two gigabyte buildsA fullstack desktop app builds the client and a server binary (target/dx/moonkale/debug/web/server, 1.7 GB in debug) even though the desktop never runs that server; with debug = 2 (the default) each link is a gigabyte-plus and a feature change costs both builds — the 1 767 s Daniel saw after a pull (spec 023). Mitigation: [profile.dev] debug = "line-tables-only" + no debug info for dependencies; my own cargo runs use CARGO_TARGET_DIR=target/agent so they stop invalidating target/debug (178 GB, 2 370 incremental dirs when measured). Open: build the desktop without the server half (dioxus configuration)investigating11
P-102 Opening a markdown file in Rich mode marked it dirtyMilkdown’s parse → serialize round trip normalises bullets, escapes and blank lines and fired markdownUpdated once at load; the panel took that as an edit. Fix: the normalised text becomes the baseline after crepe.create() (reporting suppressed during load), only user edits are reported (spec 021)resolved11
P-103 The remote command goes through the host’s login shellssh host -- sh -c '<script>' is parsed by whatever shell /etc/passwd names on the host — bash, zsh, fish or nushell — and only POSIX shells understand '\''; on this machine (login shell nushell) the command did not even parse. Fix: the script travels as base64 inside the one argument every shell passes through unchanged (a single-quoted string without quotes or backslashes): sh -c 'eval "$(echo <b64> | base64 -d)"'; sh decodes and runs it with the PTY still on stdin. Verified against a real sshd with nushell as the login shellresolved11
P-104 Real ssh without -t echoed the token and let the remote server outlive the sessionWithout a remote PTY the script’s stty -echo is a no-op and the local PTY echoes what the desktop types (the token appeared in the tab, P-095 again); and killing the master ssh did not kill the remote server (no SIGHUP — it lingered after the session). Fix: -t: a remote PTY, raw mode locally, SIGHUP on close; verified with the private sshd (0 lingering processes after six sessions)resolved11
P-105 Remote port collisions when host and desktop are the same machineThe remote port was derived from the local one and landed in the ephemeral range, where a busy machine has thousands of TIME_WAIT sockets (16 000 here after a test batch): 3 of 5 sessions failed with “Address already in use”. Fix: a random port below the ephemeral range (20000–31999); a real listener there is the rare remaining case and the terminal tab shows the bind errorresolved11
P-106 “Stuck at MOONKALE_NEED_UPLOAD” in the app started by dx serveDaniel’s first real session: the host reported it had no server, and nothing happened. dx runs the app from target/dx/<app>/debug/linux/app, so server_binary()’s relative lookup found no dev server binary; the session went to Failed with only a status-bar line, while the host’s script kept waiting for the upload (up to 10 min). Fix: the lookup walks up from the executable and the cwd to the workspace root ([workspace] in Cargo.toml) and takes target/dx/web/{release,debug}/web/server; a failure is now also printed into the ssh terminal tab ([moonkale] remote session failed: …) and the master ssh is killed so the host stops waiting; the message says how to build a server binary. Verified: the release app launched from its bundle dir uploads and connects against the private sshdresolved11
P-107 Two dispatches in one tick keep only the lastWorkspace::commands is one (seq, Option<Command>) signal read by effects; show the terminal panel followed by new terminal in the same handler left the panel without a session (the second write replaced the first before any effect ran). Fix: ui::frame::open_terminal_in shows the panel, yields two renders (YieldNow, a future pending once), then dispatches NewTerminalIn. A queue on dispatch would be the general fix; noted for when a third case appearsresolved12
P-108 A task spawned from a closing dialog is cancelled with itspawn in the terminal chooser’s click handler belonged to the dialog’s scope; open.set(false) unmounted it and the delayed dispatch never ran. dioxus::core::spawn_forever for work that outlives the component that starts itresolved12
P-109 #[component] props need PartialEq — Rc<RefCell<…>> and fn-pointer structsthe macro compares every prop: NativeSession got a by-id PartialEq, AgentSessions (function pointers, one set per platform) a constant eq — comparing fn pointers is a lint for good reasonnoted12
P-110 Edits after cargo fmt silently missedtwo scripted text replacements targeted code rustfmt had reflowed in between and did nothing: the agent.on_server gate and the terminal routing each shipped once as a no-op until a browser suite showed the old behaviour. Verify a replacement changed the file (grep after), format before editingnoted12
P-111 makepkg links fail with undefined duckdb_* / ring_core_* symbolsArch’s default makepkg.conf has the lto option (-flto=auto in CFLAGS/CXXFLAGS): the C/C++ objects that DuckDB’s and ring’s build scripts compile become GCC LTO bitcode inside their static archives, which rust-lld cannot read. Fix: options=('!debug' '!lto') in packaging/arch/PKGBUILD; -bin has no build step. The same applies to any Arch package of a Rust crate with C++ dependenciesresolved13
P-112 The Rust terminal cut off its lower rows on desktopThe grid was sized from one get_client_rect at mount; when the bottom tile got its real height later, no onresize arrived in the webview, so rows (and the PTY size) stayed at the earlier, larger value and the bottom of the screen — the prompt — was outside the panel. Fix: re-measure on a 600 ms timer as well; the screen is bottom-anchored so an oversized grid drops top rows firstresolved14
P-113 Two tree-sitter runtimes cannot share a binarydioxus-code (the Rust editor) uses arborium-tree-sitter, moonkale-index used the tree-sitter crate; both declare links = "tree-sitter" and Cargo refuses (“only one package in the dependency graph may specify the same links value”). Resolution: the index uses arborium’s runtime and grammars (arborium-rust/-julia/-python, standard LanguageFns, identical node kinds — the extractors’ tests pass unchanged). Side effect worth having: the index’s parsers now compile to wasm tooresolved14
P-114 wasm link: undefined symbol: stderr from tree-sitter’s alloc.carborium’s own wasm.rs stubs malloc/free/str*/clock…; stderr and fprintf live in arborium-sysroot, which no Rust code references, so rustc never links it (an unreferenced dependency is dropped). cargo check passes, only the link fails. Fix: editors/code-native/build.rs compiles csrc/wasm_stubs.c (the two symbols) on wasm32resolved14
P-115 The lbug (LadybugDB) crate downloads its C++ library at build timeIts build script fetches liblbug-static-linux-<arch>-<variant>.tar.gz from GitHub (or builds Kuzu’s C++ with CMake, ~1 h) — fine on a developer box, impossible in the Nix sandbox and in a clean-chroot makepkg. Fix for Nix: a fixed-output derivation of the archive (flake.nix: liblbug) + LBUG_LIBRARY_DIR/LBUG_INCLUDE_DIR, which the build script honours (“external” mode). For the AUR’s clean-chroot build the same env pair would point at a source= entry with a checksum — not done yet (makepkg with network works). Nix-built GTK apps on a non-NixOS host additionally need nixGL for EGLresolved13
P-116 Connect to Server… did nothing on the phoneSame shape as P-108, missed in Milestone 12: ServerDialog set open=false and then spawned connect_server — the task belonged to the dialog’s scope and was cancelled when the dialog unmounted, so the button closed the dialog and nothing else (no request ever left the phone; the desktop had the same bug). The terminal chooser’s remember setting was lost the same way. Fix: dioxus::core::spawn_forever in both; a VirtualDom harness test (ui/tests/server_dialog.rs) records the form’s submit listener from the dom’s mutations, fires it and asserts the connect ran after the dialog closed — it fails on spawn, passes on spawn_forever. Verified on the Galaxy S10e against a LAN server (⇅ http://192.168.178.62:8443, the server’s 176-file folder next to the phone’s vault). Rule for the shell: a task started by a component that closes itself must be spawn_foreverresolved12
P-117 A memo that peeks never re-runsThe Agent panel’s folder memo read ws.sources.peek() and the render read sessions.peek(): no subscription, so the saved sessions were never listed and the first session did not render (“starting…” forever). peek is for event handlers and tasks; anything that must follow a value — memos, effects, render — reads with read()/(). Found by agents.mjsresolved15
P-118 Query::Children cannot list .moonkale/The folder source lists children through the ignore walker with hidden entries and .gitignore applied — right for the explorer, useless for the saved agent sessions under .moonkale/agent-sessions/local/. Added the ls text-query dialect (Query::Text{dialect:"ls", text: rel}): a plain read_dir, hidden included, root-jailed; Workspace::list_at uses it, other sources return nothingresolved15
P-119 On macOS, Ctrl+O/Ctrl+N acted as Cmd+O/Cmd+NEvery shortcut check was ctrl() || meta(), so Ctrl+letter — the Emacs cursor keys of every Mac text field — fired application commands. Fix: moonkale_ext_api::keys::primary (Cmd on a Mac, Ctrl elsewhere, never both) at every site, Rust and JavaScript; the Rust terminal sends control bytes for Ctrl only. Reported by a friend on a source build; fixed blind, no Mac to verify (spec 027)resolved (unverified on macOS)—
P-120 The first tagged release produced no release at allv0.1.0 (2026-09-22): Linux, Arch and Nix built, but the release job required every platform job, and three failed — so softprops/action-gh-release never ran and the repository had no release. Fixed before the tag by if: always() on the release job plus a note in the body listing the jobs that failed; the packages that did build are published regardlessresolved—
P-121 dx bundle --package-types msi nsis — “unrecognized subcommand ‘nsis‘“The flag takes one value and repeats: --package-types msi --package-types nsis. Clap read the bare nsis as a subcommand and the Windows job died before compiling anythingresolved, verified on the runner 2026-09-22 (the job now compiles)—
P-122 The macOS Intel job queued for 3 h and never startedruns-on: macos-13; GitHub retired that runner image, and a job requesting a retired label waits forever instead of failing. macos-15-intel is the Intel replacement (macos-14 stays for arm64)resolved, verified: both .dmg jobs green twice—
P-123 The Android job’s build failed with no error textdx build --platform android also builds the fullstack server binary for the host (mobile [x86_64-unknown-linux-gnu]), and that binary links WebKitGTK, GTK 3, libxdo and OpenSSL — ldd on target/dx/mobile/release/web/server lists them — because it is built from the same ui crate as the desktop app. The job installed no system libraries at all, so a *-sys build script failed early (crate ~151 of 1204), which is why the log ends mid-compile. Fix: the Linux job’s apt list plus cmake (LadybugDB compiles its C++ when the prebuilt download fails). --fullstack false does not skip that build — dx detects the crate’s default fullstack feature and builds the server anywayresolved (unverified on the runner)—
P-124 DX_BUILD_ARGS=-v — “unexpected argument ‘-v’ found”dx build spells it --verbose (and --trace); there is no short form, so the attempt to make dx print cargo’s error text killed the job before it started. Check a flag against dx <cmd> --help before putting it in CI — the same class of mistake as P-121resolved—
P-125 Windows link error: cannot open input file 'libssl.lib'dioxus-desktop depends on tungstenite with native-tls — not behind a feature — so the desktop binary needs OpenSSL, which Windows has no system copy of; the job compiled all 1081 crates and then failed at the link step (28 min wasted per run). Fix: [target.'cfg(windows)'.dependencies] openssl-sys = { features = ["vendored"] } in the desktop crate — OpenSSL is compiled from source with the perl and nasm that GitHub’s Windows runners carry. Linux and macOS keep their system OpenSSLresolved, verified on the runner 2026-09-22 (the .msi and the NSIS installer built)—
P-126 A packaged moonkale-server crashed at startup, and had no browser client to serveTwo faults found while documenting the container image. (1) dioxus-server resolves its client as public/ next to the executable and panics when the directory is missing — fine for dx serve, fatal for a distribution that puts the binary in bin/ and its data in lib/ (the tarball, the .deb, both Arch packages and the first ghcr image all shipped the binary alone). (2) packaging/build-release.sh only ran dx build --platform server, which builds the binary and leaves public/ without an index.html — so even the SSH-uploaded server never had a client. Fix: public_dir() in packages/web/src/main.rs sets DIOXUS_PUBLIC_PATH from the first layout that exists (<exe>/public, <exe>/../lib/Moonkale/public, /usr/lib/…, /usr/local/lib/…), and with none of them serves the API only with a printed warning instead of panicking; the packaging builds --platform web too and installs the client into lib/Moonkale/public (tarball, deb, both PKGBUILDs, Dockerfile). Verified end to end: the repackaged tarball’s server, started in a scratch folder with no environment variables, serves the app and Playwright opens a folder in itresolved—
P-127 The release job downloaded every package, then published noneWith if: always() the job finally ran (both macOS builds and the container succeeded this time), but its Checksums step was cd artefacts && sha256sum * — and merge-multiple: true keeps each artifact’s own directory structure, so the macOS .dmgs arrived under bundle/** and sha256sum hit a directory, exited non-zero and skipped the upload. Fix: find the known extensions, move them into a flat release/, refuse only when nothing built, then checksum and upload release/*. Rehearsed locally against a nested layout, then verified: v0.1.0 published with 11 assetsresolved—
P-128 Two .exe files and …_aarch64-arm64.dmg in the first releaseThe Windows job uploaded bundle/**/*.exe, which also matches the raw moonkale.exe (178 MB) next to the NSIS installer, so the release offered two Windows executables with no hint which to take; and a “Name by architecture” step appended -arm64/-x86_64 to .dmg names that dx had already made architecture-specific. Fix: upload *-setup.exe only, and drop the renaming. Cosmetic, but a first release is where a stranger decides whether the project is carefulresolved (applies from the next tag; the v0.1.0 assets can be deleted by hand)—
P-129 The released Linux packages do not start on ArchFound by testing the published v0.1.0 assets on this machine: libxdo.so.3 => not found. Ubuntu 24.04 (the runner) ships xdotool 3, Arch ships xdotool 4 (libxdo.so.4), and the desktop binary links it through tao/wry. That hits the tarball and the Arch package, because moonkale-bin repackaged the Ubuntu tarball rather than building on Arch. The AppImage bundles libxdo.so.3 but dies later on WebKit’s hard-coded helper path (/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/WebKitNetworkProcess, a Debian path). The .deb is right for its own distributions (Depends: libxdo3). Fix: the CI Arch job builds from source on Arch (packaging/arch/PKGBUILD, which now also builds the browser client and takes its version from the tag); the tarball and AppImage are documented as Debian/Ubuntu artefacts. A -bin package cannot work across a soname changeresolved, verified: a source build on this Arch machine links libxdo.so.4, starts, and its server serves the client; the v0.1.0 Arch package and tarball stay broken on Arch—
P-130 makepkg’s CFLAGS broke the wasm client buildAdding the browser client to packaging/arch/PKGBUILD (P-126) failed with clang: error: unsupported option '-march=' for target 'wasm32-unknown-unknown': makepkg exports Arch’s x86 CFLAGS, cc-rs hands them to clang for wasm32-unknown-unknown, and clang refuses them. Same family as P-111 (makepkg’s -flto breaking the C++ link). Fix: env -u CFLAGS -u CXXFLAGS -u CPPFLAGS -u LDFLAGS dx build --platform web. Found by building the package here before letting CI try itresolved, verified: the package builds and runs on Arch—
P-131 Every CI release APK has a different signatureThe release APK could not be installed over the app on the test phone: INSTALL_FAILED_UPDATE_INCOMPATIBLE. The phone carried a locally built APK signed with the developer’s ~/.android/debug.keystore; the runner has no such file, so Gradle generated a throwaway debug key. That repeats every run, so each release refuses to update the previous one and users must uninstall — losing the app’s private vault — on every upgrade. Not fixed yet: it needs a release keystore Daniel owns, with the JKS (base64) and its passwords as GitHub secrets and [android.signing] filled in a CI-written Dioxus.toml (the block is already stubbed in packages/mobile/Dioxus.toml). Wired up 2026-09-22: build-android.sh builds assembleRelease with -Pandroid.injected.signing.* when MOONKALE_ANDROID_KEYSTORE is set (debug otherwise) and prints the signer’s certificate; the release job decodes ANDROID_KEYSTORE_BASE64 into the runner’s temp dir and passes the three password secrets. Verified here with a throwaway key: 24.6 MB (R8 on), installs, starts on the S10e, no minification crash. Waiting on Daniel to create the real keystore and add the four secrets; the switch costs users one uninstall, and run-as cannot restore into a release build because it is not debuggable — back up first (packages/mobile/README.md)resolved in the build, awaiting the keystore—
P-132 An APK shipped as “Mobile” with the template iconbuild-android.sh patches the app label and launcher icon into the project dx generates, but Gradle caches resources per variant: the release APK built at 21:00 was correct while the debug APK from the same tree said Mobile with dx’s icon, because its merged resources dated from before the patch — and that was the APK on the phone. Fix: drop merged_manifest(s), merged_res, packaged_res and incremental before building, and read the finished APK back with aapt2 dump badging, failing unless the label is Moonkale and a launcher icon exists. The released v0.1.0 APK was checked and is correct. The structural fix — configuration instead of patching — is 029resolved—
P-133 The Arch job fetched crates for the host onlyThe first CI run of the from-source Arch package (2026-09-26) failed in build(): prepare() ran cargo fetch --locked --target <host>, build() runs offline, and dx’s cargo metadata resolves the whole lock file — failed to download android_system_properties. Local makepkg passed only because ~/.cargo already held every crate. Fix: plain cargo fetch --locked; reproduced and verified with an empty CARGO_HOMEresolved—
P-134 A clean Arch container lacks three tools the local build hadThe next three CI runs each got one step further: dx installs a missing wasm32-unknown-unknown with rustup, which Arch’s rust does not have (“No such file or directory” after an 80-minute build) → rust-wasm; arborium-sysroot compiles C for wasm32 with clang → clang; dx strips the browser client with rust-objcopy, which in Arch’s rust is a symlink to /usr/bin/llvm-objcopy from llvm (not a dependency of rust) → llvm. All three are in the container and in makedepends/prepare() checks that fail in seconds. First good package: 260927-proto. Lesson: a build that works on the developer’s machine proves nothing about a clean container; list every symlink target of the toolchain packageresolved—
P-135 dx’s web release profile is named like oursdx builds the browser client with a Cargo profile called wasm-release; the workspace’s own [profile.wasm-release] (made for the graph renderer: opt-level = "s", fat LTO, panic = "abort", strip = true) therefore also applied to the web client — which is why dx stripped it at all (P-134). Resolved 2026-10-02 (Milestone 18 phase 1): the renderer’s profile is now [profile.graph-wasm] (builds byte-identical), and the web client has its own, documented [profile.wasm-release] with the same size settings — kept on purpose, because with dx’s defaults the client grew from 46.2 to 54.9 MB (measured in Milestone 18 - Implementation Log)resolved18
P-136 Moving the web client build first shipped a server without its clientTo fail fast, build() briefly built the browser client first; dx build --platform server then rewrote public/ without index.html, and the Arch package’s moonkale-server served the API only. Found by unpacking the release; the order is back (desktop, server, web) and build() refuses to package without public/index.htmlresolved—
P-137 The keystore password check pasted the secret into the scriptkeytool -storepass "${{ secrets.… }}" puts the secret into the shell text, where $, backticks and \ are interpreted: the right password arrived changed (“keystore password was incorrect”). Fix: -storepass:env with the secret in the step’s environment, as the build step already did. (The old keystore’s password never matched either; a new keystore was made and packages/mobile/set-signing-secrets.sh sets all four secrets after checking them locally)resolved—
P-138 binstall silently installed the x86_64 dx on the arm64 macOS runnerIts 15 s check for dx-aarch64-apple-darwin.zip timed out, binstall fell back to the Intel build, and that dx aborted under Rosetta looking for /usr/local/opt/openssl@3 (exit 134). Fix: BINSTALL_MAXIMUM_RESOLUTION_TIMEOUT=120 for every job and --targets <host> on macOSresolved—
P-139 The Local graph kept the Whole layout’s positionsA neighbourhood is a subset of the whole graph, so set_graph’s incremental path (spec 017) kept every node where the Whole layout had put it — a handful of nodes scattered over the map — and its own layout then moved them, so Whole came back disturbed. Fix: set_graph_fresh for a new Local centre, stash/unstash of the Whole view (graph, positions, layout, camera) around it; graph-local.mjs checks the camera and positions come back exactlyresolved16
P-140 Milkdown writes <br /> for every empty lineremarkPreserveEmptyLinePlugin (in Milkdown’s CommonMark preset) makes the paragraph serializer emit an HTML <br /> for each empty paragraph. The wrapper now drops <br />-only lines and collapses blank runs outside fenced code (src/clean.ts, npm test); the plugin stays so old files still parseresolved16
P-141 “Loading rich editor…” foreverThe mount script waited without limit for the host element (and returned silently without it), for the bundle (a head <script>, which the first render can lose — P-087) and for crepe.create(). Every wait is bounded now, the bundle is inserted by the script if absent, and a failure shows its reason with Retry. The intermittent Linux case was not reproduced; the next occurrence names its causeresolved (cause unconfirmed)16
P-142 The Android WebView starts its own drag on a long pressThe touch-drag script passed in Chromium’s touch emulation and failed on the S10e: at ~500 ms the WebView fires contextmenu and then a native HTML5 drag of the draggable tab, which cancels the touch sequence (touchcancel); the script ended its drag and the native one dropped onto the editor text, where no dock zone was. Traced by logging events in the phone’s WebView over DevTools. Fix: while a finger holds a tab, the tab is not draggable (restored on tap, swipe, drop and cancel); verified on the phone by a long press + drag that docked Terminal below Sources. Desktop touch emulation does not reproduce the native long-press drag — a phone check is needed for anything touchresolved16
P-143 Once, on Linux, the vertical divider moved faster than the mouseSeen once by Daniel (2026-09-27), not reproducible. The workbench’s splitter ratio is start + Δpointer / span, with span measured by get_client_rect on the split’s mount handle when the drag starts; the arithmetic is scale-consistent (display at scale 1, no CSS zoom). Hypothesis, unconfirmed: a stale mount handle after a layout change measured a smaller element, making each pixel worth too much. dioxus-workbench is a crates.io dependency; nothing changed. If it comes back: note what the layout looked like just before (a panel just moved or closed?)open (observed once)16
P-144 LadybugDB’s static library cannot share a binary with Turso, HelixDB or RocksDBThe prebuilt liblbug.a is linked with +whole-archive and carries LadybugDB’s bundled zstd 1.5.7 and SimSIMD with global, unprefixed symbols; zstd-sys (from turso_core’s tantivy, HelixDB’s foyer/tantivy, librocksdb-sys) and simsimd (from turso_core) define the same ones — 184 duplicate symbols (98 zstd, 86 simsimd). Reproduced with nothing but lbug + zstd = "0.13" (173 duplicates) and lbug + simsimd = "6". First worked around with the shared liblbug (behind an off-by-default feature). Reported upstream; lbug 0.21.0 added LBUG_LOCALIZE_BUNDLED_SYMBOLS=1: after downloading the prebuilt archive its build script partially links it (ld -r) and keeps only weak, C++ (_Z*) and lbug_* symbols global (objcopy --keep-global-symbols). .cargo/config.toml sets it for the workspace; the Nix flake (which uses LBUG_LIBRARY_DIR, where the crate does not localize) runs the same recipe in its liblbug derivation. ELF only, so desktop/api enable ladybug only on Linux; macOS/Windows ship without LadybugDB. Verified: all six drivers in one debug binary, 0 global zstd/simsimd symbols left in the archive, E2E ladybug + storesresolved (Linux)17
P-145 Opening a HelixDB store read-only writes into itClient::open_reader (SlateDB underneath) writes a new main/manifest/…manifest file on every open, so a “read-only” source still changes the store: git sees it (the Sources tree marks the store modified), and a store on read-only media probably cannot be opened. Helix’s behaviour; notedopen (upstream)17
P-146 LadybugDB’s prebuilt library follows upstream’s latest releaseWithout LBUG_VERSION, the lbug build script downloads releases/latest — not the release matching the crate. The first CI run (2026-10-01) hit a 404 for liblbug-static-linux-x86_64-compat.tar.gz while v0.21.2 was being published, and the from-source fallback then failed (lbug-src/scripts/collect-single-file-header.py is missing from the published crate). Fixed: LBUG_VERSION = "0.21.0" in .cargo/config.toml, kept equal to the locked crate versionresolved18
P-147 A helper that reads a signal turned an effect into a loop of the last commandThe shell’s command effect re-runs whenever a signal it read changes, and replays the current (seq, Command) — so anything it reads besides commands must be peeked. Phase 2.4’s contributions() helper is called from that effect and, through Workspace::preferred_editor, read the settings; opening a document saves the open-documents list, so Show Settings (the last command) ran again and stole the tab (presence.mjs). Fixed with an untracked variant for effects (preferred_editor_untracked, open_node_by_id peeks) and a tracked flag on the helper. Rule: helpers shared by render and effects take a tracked flag or peekresolved18
P-148 Build output committed from packages/web/targetMy shell exported a relative CARGO_TARGET_DIR=target/agent; serve.sh inherited it and cds into packages/web before dx serve, so the E2E server built into packages/web/target/agent (15 GB). .gitignore covered only the root /target, and the next git add -A packages committed 33 949 build files into the phase 2.4 commit. Caught before pushing; the two local commits were redone without them. Fixed: packages/**/target/ ignored; serve.sh anchors a relative CARGO_TARGET_DIR at the repo root. Rule: check git diff --cached --stat before committing with -Aresolved18
P-149 Event ids came back as floats from the storeThe first store-backed entity log failed its test with invalid type: floating point 1.8458781555546439e+22, expected u128: moonkale_state::decode read every envelope into serde_json::Value first (to hand older versions to migrate), and Value has no u128 — a 128-bit EventId became an f64 and lost its low bits. Fixed: the version is read alone, the current version is decoded straight into its type, only older ones go through Value. Test: record::tests::a_u128_survives_the_envelope. A migration of a record with u128 fields would still need serde_json’s arbitrary_precisionresolved18
P-150 stores fails as the last suite of a full batchFour full batches (phases 3, 5.15, 6.3, spec 030 part 3) ended with stores timing out on a selector after ~40 suites against one dev server; alone, or on a fresh server, it passes every time. Likely the same accumulation as the 2026-10-01 observation (sources and server sessions are never dropped by the server), which stores — it opens five databases — is the first to feel. Not fixed: the server should drop sources nobody holdsopen18
P-151 Saving a setting brought the Settings tab back over the open fileSpec 030: every panel title became t!(ws, …), which reads the language from the settings signal. The shell collects panels inside the command effect with tracked: false (P-147), but the panels themselves now subscribed through t!, so changing any setting (here: the user’s name in presence.mjs) re-ran the effect, which replayed Show Settings and hid README.md. Fixed: moonkale_ext_api::workspace::untracked(…) — inside it Workspace::lang() peeks — wraps panels() on the untracked path. Rule: anything a command effect calls must not subscriberesolvedspec 030
P-152 Themes: the style element broke hydrationSpec 030 part 3: the theme stylesheet was a style { "{css}" } text node. (1) Patching its text after hydration, when a theme file arrived, crashed Dioxus’ DOM patching (textContent of undefined) — the SSR text node is not the one the client’s template expects. (2) SSR inserted a hydration marker comment (node-id4--) into the style text, so the first :root rule was invalid and the page had no default palette until a theme was chosen. Fixed: the built-in sheet is static and rendered with dangerous_inner_html (no text node, no marker); themes from files go into a separate #mk-theme-extra element that the frame fills by eval. Rule: never render dynamic text into a style (or script) elementresolvedspec 030
P-153 relay test failed once in a workspace runrelays_to_the_active_remote_and_refuses_without_one and client::connect_and_disconnect_track_the_remote share the process-global active remote; run in parallel, one saw the other’s remote. Fixed: both take client::REMOTE_TEST_LOCK; five workspace runs cleanresolvedspec 030
P-154 rich and wiki failed once in CIFirst CI run of spec 030 part 3 (run 37147264631): rich timed out clicking the Properties head of Front.md, still in Source mode (the Rich click had no effect); wiki pressed Enter on the [[Be completion and got a newline instead of [[Beta]]. Both passed in the rerun of the same commit and locally, alone and in CI’s suite order. Likely timing on the slow runner (a click before the handler is live; Enter inside CodeMirror’s completion interaction delay). Not fixed; watch for a repeatopenspec 030
P-155 A graph replaced under a held node panicked the rendererDrag::Node stored the node’s index into graph.nodes; set_graph/unstash replace the graph, and a re-query while the pointer was held (a filter, the active document, graph_epoch after a save) left the drag holding an index that was out of bounds — a panic — or, worse, silently dragged another node. Fixed independently on dev-claude (86563671, merged 2026-10-04: the drag follows its node by id or ends, the drag arms bounds-check, parse_hex refuses non-ASCII) and on dev-mistral; master’s version kept at the merge. graph3d.mjs replaces the graph mid-drag and asserts no panic — the regression test dev-mistral added (issue #12)resolved—
P-156 Opening an unparseable *.flow.json destroyed itThe flow panel parsed the document with Flow::parse(..).unwrap_or_default(): a hand-broken or truncated flow opened as an empty canvas, and the first canvas change serialised that empty flow over the file — data loss from a mere open. Flow::parse was built to return the error (“an unparseable file is an error, never an empty flow”); the panel ignored it. Fixed independently on dev-claude (2faee879, merged 2026-10-04: an error banner instead of the canvas, sync refuses to write while broken, Generate hidden, a Reload button loads the fixed file) and on dev-mistral; master’s version kept at the merge — its flow.mjs step also checks Ctrl+S cannot rewrite the broken file (issue #11)resolved—
P-157 A rebuilt graph wasm measured “no change”: dx serve serves the previous moduleStage 0’s before/after bench (bench-draw.mjs) first read identical numbers because dx serve content-hashes assets per server run: after packages/graph-render/build.sh the module URL still serves the old bytes, and a fresh browser happily measures the old binary (verified by hashing the served .js/.wasm against the tree). Fix for every later bench: restart serve.sh (or compare served bytes) after build.sh; the lesson is recorded in graph-render.md next to the stage-0 numbersresolvedspec 031
P-158 A WGSL typo parked every graph panel behind a wgpu panic — twiceshaders.wgsl is only compiled by the GPU at runtime; a let (a, b) = … tuple destructure (Rust, not WGSL) and later a duplicated NodeOut both passed cargo check and surfaced only as create_shader_module validation panics in the browser, killing every graph suite. Fix: shader_tests::shaders_validate validates the shader natively with naga — the same front end wgpu uses — parsing, validating and checking all six entry points in cargo test, where a typo now fails in secondsresolvedspec 031
P-159 The stage 0–3 review found ten defects in the graph engineClaude’s review of dev-mistral (2026-10-09, up to af3fe0d5) — the counting tests missed all of them; each fix gained a geometry or pixel test. (1) every arrowhead pointed screen-right: arrow_vs passed the rotated corner as the fragment’s shape space, and the NDC rotation mirrored the world angle — the shape now reads in the unrotated quad with the sine negated, verified by a lit-centroid check in graph-edges.mjs. (2) two-way links (a→b and b→a) drew on the same curve: the bow’s sign now flips when a > b. (3) a wire drag outlived a graph swap and panicked on the stale port index: the gesture is held by node id + port name and re-resolves every move (P-155 again). (4) the pending wire drew from an unwritten attribute slot when the segment buffer had capacity: wire start/end bumps both revisions (end_wire). (5) a shared curved edge counted its route’s bow twice in the layer rank. (6) 2D↔3D left arrowheads at their old positions (set_mode now bumps pos_rev). (7) dashes restarted on every sub-segment — SegAttr carries the cumulative arc length. (8) a touch tap (1–2 px jitter) stopped opening notes: a 4 px press dead zone gates the drag suppression. (9) a negative-bow self-loop floated two radii off its node. (10) port-anchored heads pulled back by the node radius and hid under it — the pull is the endpoint’s own size. Plus: hover no longer rebuilds the frame or the segment styles (a hover_rev/sel_rev split — hover 1.6 → 0.82 ms/frame at 100k), layer-hidden nodes keep their labels off, run-all.sh runs the three new graph suites, and build_frame_into reuses buffers with a regression testresolvedspec 031
P-160 Stage 4’s e2e traps: apply_delta’s camera contract and the dash-LOD thresholdTwo traps found while writing graph-groups.mjs. (1) “the camera survives a delta” (stage 4a) holds only for a navigated view: while auto_fit is still set (P-100), apply_delta’s warm layout re-fits the camera every frame while it runs — a collapse on a fresh view legitimately moves the picture. The suite pans once before collapsing, which is what a real user has done too. (2) The dash→solid LOD (§6) compares the screen length of one sub-segment against 6 px, not the camera scale: after an expand’s warm layout the edge is far longer than the ideal length, so a “scale < 1.2” condition still leaves dashed sub-segments. The suite zooms until the edge’s measured screen length < 40 px (≈ 8 × 5 px sub-segments) insteadresolvedspec 031
P-161 The draw bench reads 40–200 % high on a loaded machineTwo bench-draw.mjs runs during stage 5 read settle 6.57 / hover 2.79 ms/frame and 5.01 / 1.22 — a phantom regression hunt; the machine’s load average was ≈ 12 (background builds). Rerun on the settled machine: settle 4.20, hover 0.92 — the stage-5 code costs nothing on the empty path, as designed. Rule: read the bench gate only when the load average is near idle, and rerun before hunting a renderer regressionresolvedspec 031
P-162 A fragment shader may not read the camera uniform — the bind group is vertex-visibilityStage 6’s pulse first computed fract(camera.time · …) in edge_fs; wgpu panicked at pipeline creation (“Error matching ShaderStages(FRAGMENT) shader requirements against the pipeline”), killing every graph panel — the camera bind group’s layout declares ShaderStages::VERTEX only. naga’s module validation cannot catch this (it is a pipeline-interface rule, not a module one), so shader_tests::shaders_validate stayed green. Fix: the glow’s position is computed in the vertex (where the uniform lives) and passed as a varying — constant across the segment, so the fragment interpolates it unchangedresolvedspec 031
P-163 A git checkout deleted the real .secrets folderMy worktree’s .secrets is a symlink to the main checkout’s folder; .gitignore said .secrets/ (directories only), so the link was committed with ADR-0016 (07f13e69) and reached master. Fast-forwarding the main checkout to master (2026-10-09) then replaced the real, ignored .secrets/ folder with the tracked link — git treats ignored files in the way of a checkout as expendable — and the next merge, which stopped tracking the link, removed it: llm.env (the Mistral key) was gone; no snapshot, not in git. Recreated with the documented variables and an empty key; the history holds no secret (only the link’s target path). Fixed: .secrets is no longer tracked and is ignored as link or folder (.secrets, no slash). Rule: before a checkout/merge that adds tracked paths, check that none of them is an ignored path that exists (git diff --name-only --diff-filter=A HEAD <target> against git check-ignore)resolved2026-10-09
P-164 Typing in a CRLF file hangs the CodeMirror editorFound by E3 (roundtrip.mjs, 2026-10-11): the first keystroke in a file with \r\n line endings loops forever. CodeMirror normalises line breaks (\r\n counts as one position and doc.toString() joins with \n), while Rust’s mirror view_text keeps the CRLF text, so the splice length check in code-view/src/panel.rs (Spliced) always disagrees (11 CRLF lines: 117 vs 106 UTF-16 units). The resync calls setText with the CRLF text; setText (js/codemirror/src/index.ts) compares it with the LF doc.toString(), finds a difference, dispatches a change, which fires onChange with the same mismatch, and so on: the tab’s script never yields and the dev-server log fills with splice mismatch … resyncing. Applies to every file type the code editor opens, not only markdown. Fixed: the view keeps the text’s own separator (EditorState.lineSeparator), so getText and every insert are byte-exact (Enter in a CRLF file inserts \r\n); index.ts converts offsets at the boundary (toText/fromText: splices, length, wiki spans, and setText never cuts a \r\n); and the panel stops with a message after more than three resyncs in a row instead of looping. roundtrip.mjs: Source 16/16 byte-exact, strict by defaultresolvedE3
P-165 Rich mode marks six of the E3 files dirty on openroundtrip.mjs (2026-10-11): opening 02-lists, 03-tables, 04-links, 05-callouts, 07-code and 11-crlf in Rich mode shows the unsaved dot without any edit (spec 021 meant to prevent this; Norm.md in rich.mjs stays clean, so it went unnoticed). Suspected cause: the Rust effect that pushes outside changes into the view (editors/markdown/src/rich.rs) starts with last_seen empty, so on Ready it pushes the raw body back in; the view’s setText (js/milkdown/src/index.ts) stores that raw text as its baseline last, and Milkdown’s debounced markdownUpdated fires after the suppress window with the normalised serialisation, which differs from the raw baseline and is reported as an edit. Files whose re-parse serialises like the first parse are filtered by raw === prev, hence only some files. Confirmed and fixed in two halves: last_seen now starts at the body the view was mounted with, so nothing is pushed again on Ready (E3 Rich: no file dirty on open; that alone fixed the open case); and setText takes the view’s own normalised serialisation as the baseline, which also fixes the same symptom after Reload of a file changed outside (seen dirty before the fix). Test: the P-165 step in rich.mjsresolvedE3
P-166 The stage 4–6 review found two confirmed bugs and eight real candidatesClaude’s review of dev-mistral (2026-10-09, 79f95a69..35e7f41d) — all ten confirmed in the code and fixed. (1) Count-preserving deltas never reached the screen: apply_delta’s early return compared five counts; a collapse (one node out, an aggregate in) keeps them, so nothing redrew. Graph::apply_delta now returns whether it changed anything (removals that matched, inserts, replaces that differ — PartialEq on the internals); a delta re-sending identical instances redraws nothing and warms no layout. The e2e gained a pixel probe: the blue count over the canvas must drop when the blue b leaves and a grey aggregate arrives. (2) The stale-index drag was back (#12/P-155): apply_delta compacted nodes without re-homing the drag — it now calls dragged_id/keep_drag like set_graph. (3) a lone edge kept its dead partner’s bow — with_bows resets singleton groups to 0. (4) the pulse measured 3D length over a 2D phase (length(b.xyz − a.xyz) while phase/edge_len are 2D — nodes carry kind-plane z even in 2D view) — .xy now. (5) the dash and pulse LOD gates read each sub-segment (seglen), so a bowed dashed edge 40 px wide drew solid — both gate on the whole stroke’s screen length now (edge_len · scale). (6) hyperedge spokes and simplex faces reached layer-hidden nodes — both skip invisible members like the hulls. (7) a delta re-sending an existing id without pos teleported it to a fresh spiral slot — a replace without pos keeps position, depth and pin. (8) every id lookup was a linear scan (a 2 000-edge delta at 100 k nodes ≈ 4·10⁸ string compares) — one owned HashMap<String, usize> per apply_delta (nodes, edges, groups, hyperedges, simplices), and from_input builds one too. (9) focus re-derived half of Camera::fit in world-unit padding and never set the 3D orbit — factored into Camera::fit_rect, used by both. (10) the stroke-length pass ran for every edge on every layout step — gated to pulsed and dashed strokes. E2e lessons folded into the same fix: the graph overlay is smaller than the viewport (screen→world conversion must use the overlay’s own size), the canvas centre usually holds a node (a “navigation pan” from there drags the node, not the view), and a hovered node draws white — pixel probes must park the pointer off-canvas firstresolvedspec 031
P-167 A dioxus delegated-event quirk double-fired the flow panel’s first palette clickStage 7b: clicking any palette button added a second, stray block — the palette’s first button’s handler fired alongside the clicked one’s, exactly once per mount, then self-healed after the first re-render. Cause (verified in the DOM): the panel root div and the first palette button briefly shared one data-dioxus-id, so dioxus’s path-walk dispatched the click to both listeners; adding keys to the buttons changed nothing. Fix: no per-button handlers — one onclick on the palette div, the clicked button naming its kind (data-kind="lib/block"), read from web_sys::window().event().target().closest("[data-kind]") (safe: dioxus dispatches synchronously inside the native DOM listener, so the current event is still the click — runtime.handle_event runs in the listener closure, not a microtask). Needs the Window/Element/Event/EventTarget web-sys features on the crate. Probe-verified: one add per click, first or notresolvedspec 031
P-168 The fit ignored node rims — the flow blocks’ outer ports sat off the canvas, and a wire drag caught the workspace splitterStage 7b’s wiring stalled at 4 wires: Camera::fit fits Graph::fit_bounds(), which measured node centres. A flow block’s half-width (46 world units) dwarfs the fit’s 40 px pad, so the leftmost/rightmost ports landed flush at the canvas edge — a port_screen_position of 0.2 px — and the drag’s pointerdown at maxpool’s out-port hit the .wb-splitter outside the canvas instead: dragging it shrank the editor, the reflow put a palette button under the pointer mid-drag (a phantom block add), and the resized canvas shifted every later coordinate by half its width. Fix: Graph::bounds_with_rims (a rect’s half-width and half-height, a circle’s radius) used by fit_bounds; circles shift a few px at most, all fourteen graph suites re-ran green. The panel also refits only when the scene grows beyond the fitted box, so palette adds and Layout refit but wire adds and inside-view drags never move the viewport. E2e lessons: with two flow panels open, .mk-flow-reload/.mk-flow-status need :visible (the hidden tab matches first), and the explorer’s rows are .mk-tree-row[title=…]resolvedspec 031
P-169 Stage 7c’s three traps: re-entrant events, a canvas that never takes the keyboard focus, and undo that restored the document but not the canvas(1) A host cannot call back into the view from inside an event. The 7b script enriched moved by calling view.node_positions() inside onEvent — but the engine emits both moved and select while its RefCell is mutably borrowed, so the first drag-end panicked (RefCell already mutably borrowed). 7b never noticed: Layout’s harvest runs from the script’s own message loop, outside any engine callback, and no suite dragged a block. emit_select now includes the first selected node’s screen and drag-end moved carries the dragged node’s positions + screen — onEvent is a bare dioxus.send. (2) The overlay’s pointerdown prevents the default, which suppresses the browser’s focus-on-mousedown: after a canvas click the keyboard focus stayed wherever it was, and the panel’s keys (Delete, Ctrl+Z, Ctrl+S) only worked from a field’s Tab-out. The host script focuses the overlay in the capture phase (addEventListener("pointerdown", …, true), with tabindex on the overlay). (3) Undo restored the document, not the canvas: the incremental set_graph keeps survivors’ live positions, so a restored snapshot moved nothing on screen — a pinned node with an explicit pos is now the host’s to move (unpinned ones keep their live positions; the explorer’s layout still wins). E2e lesson: a floating parameter editor over a port swallows the wire drop (it is a real panel) — suites deselect before wiring gestures. Fixed: flow.mjs checks the editor’s DOM box against the engine’s screen report, undo/redo of a wire, a drag, a parameter and a delete, and that a field’s Ctrl+Z does not undo the flow; all fourteen graph suites re-ran greenresolvedspec 031
P-170 Stage 8’s bench lessons: a packed u32 attribute is slow on GL, an un-gated overlay scan costs a pass, and the whole-slot hover upload was the real cost all alongAdding a stroke grew the node appearance instance 36 → 52 B, and the 100 k hover figure doubled (0.97 → ~2.5 ms/frame). Three findings: (1) packing the stroke as an rgba8 u32 vertex attribute (40 B) made it worse (2.5-2.8 ms at low load vs 1.7 for the f32x4 form) — the GL backend’s integer attribute path is the slow one, so the slot stays Float32x4; (2) the overlay’s icon scan is a second pass over every node per frame — gated on State.has_icons (set at load, OR-ed by deltas), a 100 k graph without icons pays nothing; (3) the dominant hover cost was never the slot width: a hover restyles exactly two nodes, and the pre-stage-8 code rebuilt and re-uploaded the whole appearance buffer (5 MB at 100 k) on every one — Renderer::draw now patches the two 52 B slots (§6’s partial buffer updates, finally done), and hover landed at 0.29 ms/frame, 3× better than before the stage. Also: a stroke band must sit just inside the rim (the rim’s own alpha fade blends it with the background, reading dark), and an icon’s ink must contrast the node’s fill — a hovered node is white, so the theme’s light label ink was invisible; bright fills wear the background’s ink, dark ones the label’sresolvedspec 031
P-171 dx serve served the graph engine one build behind — the asset URL hash never recompiledStage 9’s edge-label e2e kept failing against code that was correct, and probes disagreed with themselves. The cause: the wasm/JS live in moonkale-graph-assets as build outputs, and the asset URL’s content hash is computed when that crate compiles — rebuilding the engine (build.sh writes the assets) never recompiled it, so every dx serve restart served the previous build under its old hash, both files side by side in dx’s public dir. Fix: a build.rs on the asset crate emits an FNV hash of the engine bytes into a generated file lib.rs includes — every engine rebuild now recompiles the crate, so asset! re-hashes and the URL always matches the bytes. Lessons: (1) verify the served md5 (fetch the page’s own URL), not the built file, before trusting any probe; (2) P-159’s ‘restart dx serve after build.sh’ was insufficient — the staleness survived restarts; (3) a wasm-bindgen console extern in graph-render (even one top-level import) coincided with mount-time RefCell already borrowed panics, and under panic=abort one leaked borrow poisons the state for every later call (resize/set_graph/set_theme all panic after) — instrument via a state getter or store-and-read scratch instead, and suspect the instrumentation whenever panics appear with it and not without; (4) an off-canvas pointer park never clears a hover — the overlay receives no moves there, so hover-clearing checks must leave through empty canvas spaceresolvedspec 031
P-172 A canvas graph is invisible to keyboards and screen readers — the walk, the ring and the narrationThe mapping’s own accessibility requirements (stage 10): (1) the overlay takes a tabindex the ENGINE sets, with a capture-phase pointerdown listener that focuses the canvas — the engine’s own pointerdown calls preventDefault, which suppresses the browser’s focus-on-mousedown (the 7c lesson, promoted from the flow panel’s script into the engine so every host gets it); (2) the arrows walk spatially — nearest node inside a 45° cone (FRAC_1_SQRT_2), distance weighted against angular offset, and with nothing focused the walk starts FROM node 0 so the first arrow moves (landing on node 0 itself reads as a no-op); screen up is world −y; Tab is deliberately not consumed — a canvas widget must not trap it; (3) the focus is id-keyed (survives graph swaps like the selection), drawn as a ring on the label overlay in the theme’s hover ink (the ring probe must know the node’s degree-derived radius: a 1.5 px stroke at radius+5 px is easy to miss with a wrong radius), emits focus { id }; (4) the panel narrates selection + focus via an aria-live span — small and dimmed, never display:none (which silences it) — with graph-selection/graph-selection-none in en/de/zh-CN. Graph::visible now carries the layer-visibility check (web.rs delegates), so the walk and the ring skip layer-hidden nodesresolvedspec 031
P-173 The stage 7–10 review: a web-only palette crash, a data-loss guard gone, and the Layout harvest droppedClaude’s review of 35e7f41d..8d2c1019 (2026-10-12) — three confirmed on arrival, all ten real. (1) The palette’s click handler read the clicked button from web_sys::window().event() — a wasm-only path, so the first palette click panicked on desktop and Android (the web-only e2e cannot see it); each button now carries its own handler with the kind captured, keyed, and a VirtualDom smoke test (editors/flow/tests/desktop_smoke.rs) drives the click natively. (2) to_scene indexed index[w.from_block] unchecked — a .flow.json whose wire named a deleted block parsed, then panicked on open; dangling wires skip (validate still reports them). (3) The #11 guard (P-156) was gone: the new sync always wrote to_json() into the document, so a reload of a broken file plus a stale selection plus Delete plus Ctrl+S would overwrite the user’s file — restored in sync and every mutator, with the reload clearing the selection and the toolbar disabled while broken; the e2e walks the exact scenario. (4) The Layout reply sent view.node_positions() — a JSON string — as the Moved.positions map, so the message failed to deserialise and was silently skipped (Err(Serialization) => continue): the canvas showed the layout, the document kept the old coordinates. (5) A broken spell unmounted the canvas div; on the way back the mount guard refused a second init — a blank canvas; the eval is destroyed on entering broken. (6) One fixed DOM id for every flow panel — the second split drew into the first’s canvas; ids derive from the node. (7) The event loop and the scene effect kept the library list from mount — a library enabled later refused every connect, a disabled one kept stale ports; both read ws.contrib.flow_libraries at use time. (8) Shaped nodes: the selection ring’s smoothstep(0.7, 1.0, d) sat past a pixel SDF (negative inside) — no ring; Camera::hit still tested a circle of half the width. (9) Two add_edges with the same new id in one delta both pushed — the batch’s newcomers insert their ids as they arrive, like the nodes. (10) Every edit rebuilt the scene twice (the effect and every handler pushed) — the effect is the single path; the engine clears its own gesture wire on a refused connect. Merging master also renumbered this branch’s P-163…P-169 to P-166…P-172 (master had taken the first three)resolvedspec 031
P-174 The fixes review: the shaped rim was normalised inside-outClaude’s re-review of the ten fixes (8d2c1019..b072acbc, 2026-10-12) — the #11 guard, the canvas re-mount, the per-panel ids, the fresh library reads, the edge dedup and the hit test were right; two things were not. (1) The shaped-node rim: a shape’s SDF d is 0 at the rim and negative inside, so -d grows toward the centre — the normalisation u = clamp(-d / min-extent) lit the core instead of the edge, putting a dark band through every unselected rect and diamond and a light bar through selected ones. u is inverted now (1.0 - clamp(…)): 1 at the rim, 0 at the centre, like the circle’s uv radius. graph-shapes.mjs gained pixel probes: the block’s centre must be its fill colour (selected or not — the inverted rim fails both at ~65 % green), and the selected block’s edge must light up where the unselected rim stays the darkened fill (the rim boundary is found by scanning the pixels, not computed from the camera scale). (2) The Problem Log table had blank lines before P-160/161/162/166 — a blank line ends a markdown table, so everything after the first rendered as stray paragraphs; the rows are one table again, sorted, with P-173 after P-172 (it had landed under the Conventions heading). Also: the flow e2e’s #11 step presses Ctrl+S before reading the file — without it the disk cannot change anyway, so the check passed even without the guard; and graph-pulse.mjs widened the slow-pulse margin (six pairs, the bar at ~70 % of the expected displacement — a pair that straddles a wrap or a dropped frame under-reads; the review saw 11.1 px against 12)resolvedspec 031
P-175 CI’s dx serve gave up after 20 minutes on every cold buildFrom c351f291 on (2026-10-12), every CI run that had to build the web app from scratch failed in “Start the web build” after exactly 1200 s: “no progress (the dx log stopped growing)“. The stall check from 07a02772 took a quiet dx log for a hung build, but without a terminal dx prints its banner and then nothing while cargo compiles, so a long cold build (a changed Cargo.lock gives a new cache key, and with CACHE_ON_FAILURE: false a failed run saves none) looked hung. Fix: serve.sh also counts a new file in the target dir as progress (find -newer a marker, only after a quiet minute). Checked with two fake dx shims: one silent but writing to the target dir every 10 s ran 150 s with SERVE_STALL=70; one that only sleeps failed after 76 s. The same run also failed cargo doc -D warnings: a public field’s doc linked the private Graph::with_bows; now plain coderesolved—
P-176 Mermaid diagrams with <<…>> showed “Syntax error in text” on the Quartz siteGraph-Native Model’s class diagram rendered in Obsidian (mermaid 11.13) but not on mathstruct.org (Quartz, mermaid 11.4.0). Quartz’s mermaid.inline.ts saves each diagram’s innerText and writes it back with innerHTML before rendering, so the <<trait>> annotation parsed as an HTML <trait> element that swallowed the rest of the source. Fix: write it back with textContent (site/quartz/components/scripts/mermaid.inline.ts). Checking every vault diagram with mermaid 11.4.1 and 11.13.0 also found five that failed everywhere, from unquoted labels with (…), {…} or a leading / (Platform Matrix, Milestones 4, 6, 7, 8); they are quoted now. A local Quartz build renders all 26 diagram pagesresolved—
P-177 F2 rename used a stale cursor and live preview treated front matter as a headingReview 3 (2026-10-12): rename read the four-per-second Workspace cursor rather than the exact F2 position captured in the prompt; it now uses that position while retaining the active-document guard. The CommonMark parser now enables YAML metadata blocks and keeps them as source, with regression coverage for one-key and multiple-key metadata and ordinary Setext syntax later in a note. The LSP browser suite undoes completion typing rather than deleting across the opening brace.resolved—
P-178 Unavailable Markdown language servers triggered an LSP reconnect loopReview 3 follow-up (2026-10-12): absent-entry removals still notified reactive attach effects, causing about four failed connections per second. Cleanup now writes only for existing entries. Each shared language/root gets at most three lifetime startup attempts, with 5 s and 30 s delays, including initialized crashes; app reload resets the budget. Shared startup and retry timers survive pane unmounts, and an initialize response followed immediately by EOF cannot publish a dead session. VirtualDom tests cover immediate closure, spawn/init failures, duplicate panels, remounts, crashes and stale cleanup. Two-core browser sequence files rich stores palette shell wiki passed with five LSP requests total.resolved—
P-179 Saved-tab restoration hid a freshly opened Markdown editorNEXT / review 3 follow-up (2026-10-12): two-core testing exposed delayed restoration activating saved Front.md after the user had opened Norm.md; a pending control action then waited on a hidden retained panel. Restoration now loads tabs in the background and applies saved focus only if foreground navigation has not superseded it. Explicit retained-tab activation records foreground navigation too. Markdown panels expose stable document identities; the Rich suite waits for and acts on the requested document. Seven delayed-fetch tests cover saved focus, foreground requests/selections, retained edits, tab closure and folder changes. Three consecutive files rich stores palette shell wiki rounds passed on two cores (one without tracing); Front open-to-Rich took 280/321/302 ms. The observed wiki flake also required its selected completion list to settle past CodeMirror’s 75 ms keyboard guard; the test now observes stable selection instead of pressing Enter immediately.resolved—
P-180 Long-running workspaces exhausted the LSP retry budgetNEXT item 2 (2026-10-12): five continuous healthy minutes on the same initialized connection now refill the shared language/root budget to one running attempt. The localized editor.restartLanguageServer palette command also resets it, coalesces concurrent requests, cancels obsolete generations and bounds graceful shutdown before explicit process/socket closure. Mounted and retained workspace documents reopen from canonical unsaved text; other keys are untouched. Recovery tests cover healthy and short-lived uptime, stale timers, pending/cooling/exhausted restart, duplicate views, key isolation and retained unsaved files; session/stdio tests cover failed pending requests, late initialize replies and forced child reaping. All 556 workspace tests and lint/docs/wasm/repository gates pass. Eleven two-core browser suites pass, including restart with native undo/redo and all 16 byte-exact Source round trips.resolved—
P-181 Audit 19: rename composition and snapshots, full-document LSP updatesFollow-up (2026-10-13): both rename prompts now ignore IME composition keys. CodeMirror captures text and connection when F2 opens the prompt and rejects changed snapshots, while preserving the exact F2 coordinates. Shared document updates negotiate the server’s sync kind, emitting one UTF-16 range replacement for incremental servers, a full snapshot for full-sync servers, and no change notification for disabled/absent sync. Unicode scalar and CRLF boundaries are preserved, with bare CR line coordinates handled; a four-character edit in a 3 MB line has a change payload below 200 bytes. Snapshot comparison/copy remains linear; incremental sync removes full-document JSON serialization and wire payloads for localized edits. Recovery and atomic multi-file rename coverage confirm the remaining #13 findings; UTF-16 word tests confirm #19 item 2. All 558 workspace tests and lint/docs/wasm/repository gates pass, plus native rename/review-2 and real rust-analyzer lsp/lsp2/restart/native browser suites.resolved—
P-182 Native live preview stopped after 4096 scalars / 63 constructsNEXT item 4 (2026-10-13): Markdown now indexes the full document, reuses unchanged semantic blocks and code highlights, and uses an uncapped caret/selection reveal interval. A cached sparse height index and row-only coordinate lookup support visible-window cell mapping; renderer continuation indentation never becomes document geometry. Font epochs reject stale heights, mixed-font ascents no longer invent navigation rows, production Markdown uses pixel-column movement, and CRLF syntax edits retain incremental trees. A 229 KB CRLF note with hundreds of constructs previews at five scroll checkpoints and headings 60/120/180/239, edits/saves/undoes byte-exactly and copies complete source. Two-core dev typing measured 624 ms median / 651 ms p95 versus 536 / 538 ms for the 3 MB Source reference, within the stated 25% median / 50% p95 tolerance. All 565 workspace tests, thirteen fixture suites, eleven two-core full-app suites and lint/docs/wasm/repository gates pass; all 16 Source round trips are byte-exact. The CommonMark block scan is still linear; reference definitions conservatively reparse together and large visible atomic widgets retain their complete geometry.resolved—
P-183 A flow opened from the explorer tree lost its tab on the first editFound by Mistral writing subflow.mjs (2026-10-13): open a .flow.json from the tree after the Extensions rail entry, make one edit — the model took it, the panel went to 0×0 with aria-selected="false", Extensions came back to the front. Reproduced 3/3 on master a6c2d128 and on 522a3b36 (older than P-179). Not dioxus-workbench: the shell’s command effect matched on the latest command every time it ran, and its ShowPanel branch reads workspace signals through contributions — the document turning dirty re-ran the effect, which replayed ShowPanel(extensions) from the rail click. File → New Flow was unaffected because its last command was not ShowPanel. Fixed: the effect handles each command once, by its sequence number. flow-tree-open.mjs covers it (3/3 after, 0/3 before).resolved—
P-184 A half-wired flow’s new blocks fell out of every fitGraph::fit_bounds counts only wired nodes once at least half the graph is wired, so far-away isolates cannot blow the view up (spec 031 §6). A flow’s blocks are all pinned, and a newly placed block is wired only after its pins are dragged — so the moment a flow was half wired, every later palette add fell outside the fit: the panel’s grow-refit sent its Fit, the Layout button, even a manual view.fit(), and the camera did not move, leaving the new block off-canvas and unclickable. The mtk e2e’s mechanical half caught it (the mass at y = 370 rendered below the canvas while the camera stayed at the RC’s fit — diagnosed by logging the script’s fit handler: a fit arrived and left the camera at cy = 115 with the mass’s bounds at 370). Fixed: a pinned node counts as wired in fit_bounds — it sits where a host or a user put it on purpose, so it belongs in the frame; non-pinned isolates keep the old behaviour. All sixteen graph and flow suites re-ran greenresolvedspec 031
P-185 Language-server queries surfaced transient ContentModified failuresREVIEW-4 (2026-10-13): JSON-RPC response codes are retained internally. Hover, definition, references, completion and code-action queries retry -32801 up to three times with 25/50/100 ms delays and fresh request IDs; cancellation, other errors, initialize, rename and opaque action resolution are not replayed. Regression coverage checks successful recovery, exhaustion, parameters and pending-request cleanup; the real rust-analyzer integration test passes unchanged. Master’s P-183 command replay fix is merged. Three consecutive files rich stores rounds passed on two cores (two without tracing); optional 250 ms store-click diagnostics observed stable row/tree/source identities and unobstructed targets. The reported store failure was not reproduced after the merge; no speculative UI change was made.resolved—
P-186 Explorer source and row reordering detached store click targetsREVIEW-4 follow-up (2026-10-13): nested RSX expressions hid keys from the actual source/row sibling lists. Source entries now use direct keyed components, and tree rows return direct keyed VNodes, preserving identity through source reordering and database child reordering. Directory refreshes now route by recorded source ownership; a foreign NotFound can no longer clear another source’s tree. The browser regression reproduces row detachment before the fix by reopening a folder, checks existing element identity across store opens/reordering and checks database children survive folder/database refreshes. Identity capture is synchronous at pointer-down, with no extra pre-click round trip, sleeps or forced clicks. The derived index shares the folder root ID and is excluded from ownership; a regression covers that collision plus nested directories and database roots. Three consecutive untraced files rich stores rounds pass on two cores. All 567 workspace tests, clippy, wasm, formatting and repository gates pass.resolved—
P-187 Native Markdown list and task-list markers remained plain sourceNEXT item 5 (2026-10-13): bullet, ordered, nested and task-list items render as independent source-owned replacements, with wrapped single-paragraph text and inline emphasis/code. Parent previews end before their nested children; caret/selection reveals locally and task-marker edits follow canonical CRLF save/undo/redo. Unsupported complex/link/wiki-link items retain source. Shared unchanged block keys/decorations and list fragments, indexed scalar boundaries and one collapsed-fold filter reduce per-edit allocation and repeated scans. Parser/cache tests and native pointer/layout/history/clipboard acceptance pass, as do all fourteen native fixture suites. A 246,540-byte note with 720 additional list/task items passes deep-list/headings, byte-exact CRLF save/undo and complete copy; two-core dev median/p95 are 668/706 ms versus 552/553 ms for the 3 MB Source baseline, with the existing latency bounds unchanged. All 571 workspace tests, lint/docs/wasm/minimal-feature gates and all 16 byte-exact Source round trips pass.resolved—
P-188 Native preview left Markdown and wiki links as sourceNative CommonMark inline/reference/autolinks and wiki aliases now render within paragraphs, headings and supported list/task items. Ordinary clicks reveal canonical source; Ctrl/Cmd-click follows measured glyph-specific identities, with revision/font/viewport/presentation guards. File paths retain source identity and decode once; missing files are not created. Same-note and cross-note headings use canonical unsaved text, Unicode slugs and duplicate suffixes; missing headings report status. Guarded background loads preserve foreground/unsaved documents, delayed origin edits cancel navigation, and wiki creation retains explicit .md suffixes. Web external opening is synchronous and isolated; desktop/mobile register platform openers. Wiki spans/resolution reuse stable target identities, visible rows reuse fold visibility, unchanged collapsed ranges retain the row index, and grapheme validation checks only requested endpoints. Equal-byte Unicode edits retain scalar cache identity. Unchanged run content/layout reuses geometry with current revision binding and unchanged stale-response guards; structural parser spans are checked only at delimiters. A 247,520-byte CRLF note with 480 links retains deep preview, byte-exact edit/save/undo and complete copy: two-core dev median/p95 604/635 ms versus Source 542/545 ms on the second consecutive passing run, within unchanged 25%/50% bounds. All 589 workspace tests, sixteen native browser suites, six full-app regression suites, lint/docs/wasm/minimal-feature/repository gates and all sixteen byte-exact Source round trips pass. One detached-element heading check passed three consecutive reruns.resolvedADR-0017
P-189 Native preview left standalone source images as MarkdownStandalone top-level Markdown/reference images and wiki image embeds render through the originating Source without altering canonical text. Local paths decode once; complete wiki filenames resolve within the same source through direct paths or the workspace index, then refresh metadata before loading. Shared helpers retain image-editor public reexports. A workspace cache deduplicates reads, limits concurrency to two and encoded payload to 64 MiB, keys by source/node/version (epoch for unversioned assets), and enforces 24 MiB and known-header 100 MP limits. Localized placeholders and image/decode/version transitions invalidate geometry and stale measurements. Plain click reveals paragraph source; Ctrl/Cmd-click opens assets through guarded navigation. Parser/cache/reference tests, delayed-load removal, source isolation, versions, size/decode handling, narrow/wide pointer geometry and CRLF edit/undo/copy pass. All 595 workspace tests, seventeen native browser suites, eight full-app regressions, lint/docs/wasm/minimal-feature/repository gates and sixteen byte-exact Source round trips pass. A 247,654-byte note with four image blocks retains deep preview and canonical editing/copy; two-core dev median/p95 583/615 ms versus Source 533/546 ms on the second consecutive passing run, within unchanged 25%/50% limits.resolvedADR-0017
P-190 Native preview left Markdown tables as sourceRoot pipe tables render as one source-owned replacement with aligned headers/cells, wrapped equal-column layout, inline emphasis/code and guarded ordinary/wiki links. The table extension handles escaped pipes, entities, empty cells and uneven rows; canonical ownership includes leading indentation, delimiter rows and extra source cells. HTML/Markdown-image cells and tables in list/quote containers retain source. Caret/selection or atomic pointer boundaries reveal the complete original table locally. Continuation rows use the measured table height; blank rows, exact geometry validation, shared block payloads and stale font/viewport/revision/presentation guards remain intact. Parser/cache/rebase tests, eighteen native browser suites (including composition, clipped scrolling and delayed disable), seven full-app regressions, all sixteen byte-exact Source round trips, all 599 workspace tests and lint/docs/wasm/minimal-feature/repository gates pass. A 247,853-byte CRLF note with three tables and four images passes deep preview and canonical edit/copy; two-core dev median/p95 583/627 ms versus Source 528/549 ms on the second consecutive passing run, within unchanged 25%/50% bounds. Final Firefox acceptance uses software rendering after kernel logs confirmed NVIDIA memory-allocation failures before app mounting; no other workloads were stopped.resolvedADR-0017
P-191 Native preview left inline and display math as sourceRust math parsing supplies source-owned inline replacements and fragments throughout paragraphs, headings, lists, tables and link labels, plus standalone display blocks. Code/metadata, unmatched/escaped delimiters, mixed display expressions and closing inline dollars followed by digits retain source. An isolated pinned KaTeX 0.18.7 bundle returns bounded HTML/MathML; CSS/fonts are shared with Rich through additive ext-api asset constants. Saved per-source macros are coalesced by graph epoch and refreshed with the source; configuration and TeX/output are bounded, definitions are cloned per render, trusted commands are disabled and expansions/sizing are capped. An 8 MiB/256-entry workspace cache keys source/TeX/mode/macros; stale or disposed requests cannot paint. Geometry validates opaque math identities while projecting exact canonical labels and checking surrounding text. Config/render/error/font changes invalidate measurements; independent display scrolling and measured scrollbar areas preserve source navigation. Nineteen native browser suites, nine full-app regressions including Rich and F2 rename, all sixteen byte-exact Source round trips, all 605 workspace tests, renderer tests and lint/docs/wasm/minimal-feature/repository gates pass. A 247,692-byte CRLF note retains 240 inline formulas, three display blocks, deep preview and canonical editing/copy. With server/browser constrained to two cores and software rendering, preview median/p95 254/567 ms versus Source 536/538 ms on the second consecutive passing run, within unchanged 25%/50% limits.resolvedADR-0017
P-192 Native preview left callouts as sourceRoot [!type] blockquotes render as one source-owned range with formatted/default titles, paragraphs, headings, lists/tasks, nested quotes, links/wiki links and inline math. Custom types are retained. +/- defaults and an accessible fold button change only mounted view state; body/title clicks reveal locally. Complex bodies and title spans crossing into the body retain source. Folding invalidates row geometry, hidden math produces no hit rectangles, and keyed callouts cannot inherit a different source range’s fold state. Verified on current master: 618 workspace tests; fmt, clippy, wasm, minimal code-view and public-docs gates; dependency/colour/string checks; callout fixture plus six native regressions; full-app exact CRLF save/undo/redo/copy; all eight CI browser suites on two cores; all 16 Source corpus files byte-exact. The earlier Rich image harness timeout passed on retry. The 247,882-byte long-note fixture includes deep callouts and passes unchanged limits on two cores: preview 249/279 ms median/p95 versus 3 MB Source 539/544 ms.resolvedADR-0017
P-193 Native wiki links had no hover excerptView-local native popups resolve wiki targets after a 250 ms dwell without opening tabs, creating missing notes, changing activation or editing source. Rendered aliases use validated semantic geometry; source links use actual character positions and lazy revision-cached tokens, excluding code, math, metadata, escapes and embeds. Heading/same-note targets share navigation resolution. Plain excerpts are bounded to 1200 scalars/14 lines, with advertised/post-fetch 256 KiB checks and a five-second request timeout. Origin/target/revision/epoch guards discard stale work; live unsaved target text is preferred, and closing it invalidates the cached unsaved excerpt. Pointer grace, viewport clamping, clipboard isolation and Escape focus restoration preserve editor interaction. Verified: 621 tests; fmt, clippy, wasm, minimal code-view, public docs and check scripts; native hover plus five related browser suites; full-app unopened/unsaved target and modified navigation checks; all CI browser suites plus lsp2 (stores passed after stopping an orphaned test backend holding its database lock); all 16 Source corpus files byte-exact. Two-core long-note limits remain unchanged: preview 253/282 ms median/p95 versus 3 MB Source 539/549 ms.resolvedADR-0017
P-194 Native live preview lacked front-matter propertiesAdded a collapsed Properties summary above native Markdown preview, expanding into a literal YAML draft with Apply/Cancel. A conservative leading-only recognizer and source-owned hidden prefix preserve ordinary thematic breaks and reveal canonical YAML for caret/selection/search; zero-height rows do not mount interactive source runs. Apply makes one node/revision-checked prefix transaction in shared history, preserving comments, delimiter whitespace, LF/CRLF/EOF conventions and body bytes; empty drafts remove metadata. Save applies a current draft first, stale/unsafe drafts report localized errors, and textarea clipboard/composition/local undo remain separate. Disabling preview/reload clears draft/composition state. Verified: 626 workspace tests; fmt, clippy, wasm, minimal code-view, public docs, layering/colour/string checks; native properties and five related geometry/widget/Markdown suites; all 14 full-app suites including Rich and lsp2; all 16 Source corpus files byte-exact. Native pointer checks now scroll their link target into view; long-note widget checks walk a bounded viewport to accommodate the Properties bar, with existing byte/row/latency limits unchanged. Isolated two-core dev measurements: preview 257/547 ms median/p95 versus 3 MB Source 529/534 ms. Rich remains available.resolvedADR-0017
P-195 Opening a whole drive (E:\) walked every directory to watch itReported via Daniel (2026-10-14): someone on Windows opened the entire drive E: as a folder. The Explorer lists lazily and the index stops at 5 000 files (index::walk::Limits), but the folder watcher (project-fs/src/watch.rs, Milestone 16) walked every visible directory up front and put one non-recursive watch on each, which on a drive means millions of directories, and on Windows one open handle per directory. Fixed: on Windows and macOS the root gets one native recursive watch (ReadDirectoryChangesW, FSEvents), so nothing is walked. On inotify platforms the per-directory watches have a budget (MAX_WATCHED_DIRS = 20 000); past it the walk stops and the root is not watched at all, so the source reports itself unwatched (the Sources panel’s ↻) rather than half-watched. The test a_root_with_more_directories_than_the_budget_is_not_watched covers it. Not verified on Windows here (no Windows target on the development machine; CI’s release job builds it). Still open: telling the user, when they open a drive root or their home folder, what is limited (watching, the 5 000-file index) and suggesting a subfolder (the large-roots section of Projects and Sources)resolved (the watcher); a notice for large roots open—
P-196 Native editor misses the new 60 FPS gateAdded a standalone release-labelled RAF/long-task benchmark for 5000 highlighted Rust lines, Doc preview on/off, and spec 018’s 3 MB line. It tests typing, held arrows, wheel/small deltas, scrollbar/selection drags and caret movement, and treats gestures that do not change the viewport/selection as failed interactions. The first release baseline passes every 5000-line Source interaction at p95 ~16.67 ms; preview scrolling reaches 83 ms p95 and a reveal transition stalls 117 ms. The 3 MB Source typing case reaches 233 ms p95 with previews disabled. Small horizontal deltas expose existing whole-cell scroll snapping. Revealed docs now use the normal code grid, unchanged local geometry can rebind across a reveal elsewhere, and ASCII metadata avoids full UTF-16/character-width scans. A bounded 128-scalar cursor-word display removes the 3 MB text rendering stall, while retained fractional offsets fix small horizontal scrolling. A full-sequence timeline found a 62 ms V8 garbage collection pause after scrolling. Keying the virtual list entries and grouping same-presentation ASCII cells into exact-hit-tested text runs removes the DOM churn. Unicode/tabs, wiki, caret, search and decoration boundaries stay atomic. The bounded status display now reads the engine’s own rope, preventing a Unicode panic during external-reset synchronization. The complete release web matrix passes all 21 cases, each at approximately 16.67 ms p95, with a longest frame of 33.33 ms. The manual desktop recorder observes trusted input without injecting it. The 2026-10-15 locked desktop rerun confirms both public clocks are quantized; a separately labelled calibrated-vsync check retains the strict result. Rust highlighting queries now retain unaffected spans after incremental parsing, reducing highlight p95 from about 7.5 to 2.0 ms in a matched CPU-stage profile. Full desktop repeats remain variable. Native Inspector exposed redundant synchronous resize events; pooled geometry observers and compact atomic-preview segment requests reduce that work. A complete CPU-idle-guarded post-resize run passes 20/21 calibrated cases, with one preview wheel frame at 211 ms (17 ms p95); this predates final segment compaction. Software painting/compositing costs and the remaining pause remain under investigation. Full gate compliance remains open.investigatingADR-0023; CED-R22
P-197 Code documentation had no source-owned previewAdded a separate default-off Doc preview toggle for Rust/Python/Julia, syntax recognition, atomic canonical-source reveal, text/code/list/table/link presentation, conservative literal fallbacks and per-document incremental syntax/payload caches. Normal code remains monospace with its own wrap preference. Fixed reused-document hook state through a keyed fragment. Profiling removed whole-document point scans, hidden-row coordinate queries, remounted example highlighting and revision-only height-cache invalidations. Verified 664 workspace tests, static/build/doc checks, all 40 native suites, and earlier twelve full-app suites including all three languages’ byte-exact CRLF save/history and lsp2. The 263,574-byte same-file two-core dev gate passes at Source 80/114 ms versus preview 90/91 ms median/p95 under unchanged limits. All 16 CodeMirror Source corpus files round-trip byte-exact. The release web CED-R22 frame gate passes; desktop acceptance is pending; the standalone frame harness is not in the strict run-all list.investigatingADR-0017
P-198 Rust editor accessibility and backend activationEmpty input context and Tab trapping; backend selection needed a second extension switch. Bounded canonical live context, keyboard focus mode/link/hover paths, actual browser/AT-SPI checks and one-setting activation are implemented. Default stays CodeMirror pending desktop/Android acceptance.resolvedWP-03 M5
P-199 Ladybug prebuilt metadata writes a read-only registryThe archive downloads into Cargo OUT_DIR, but its downloader then writes registry-local env metadata, returns failure and falls back to source/CMake. A normal retry reuses the complete archive and retains symbol localization; upstream metadata destination remains open.openWP-03 M5 build evidence
P-200 Lazy syntactic content identitiesDefault-off explicit Rust/Julia/Python normalization, canonical recursive components, exact-input freshness and bounded memory/optional persistent caches; conservative syntax failures remain explicit.resolved (experimental v1)WP-66
P-201 Workspace settings “not saved: version conflict” on the first start with a state storeSeen on Android (2026-10-15) and reproduced in a test: the one-off layout migration saves the folder’s .moonkale/settings.json twice in quick succession. The saves overlapped: the second expected a version the first had replaced (the error), and in other interleavings the older snapshot overwrote the newer change or, through the folder source’s (mtime, len) versions, replaced only part of the file. Writes of the folder settings file now never overlap (a gate in SettingsState: a save during a write asks for one more run), each run builds the text from the current state and writes against the version it just read, and an unchanged file is not rewritten. Test: ext-api/tests/state_layout_overlap.rs.resolved—
P-202 Lossless edits must conserve syntax tokensError-free parses could lose code after an EOF-comment move. The default-off Rust planner now preserves function count and the complete terminal token inventory, rejects unsafe placements, validates names and checks final output size.resolvedWP-67 slice 1
P-203 Nested browser fixtures cannot load in rust-analyzerFixtures under target inherited Moonkale’s workspace and failed Cargo metadata, so lsp2 never received diagnostics. Generated fixture manifests now include an empty workspace table; assertions/timeouts unchanged.resolvedWP-67 verification

| P-204 Structural proposals must retain document identity | A syntax hash alone cannot guard editor history, close/reopen, source replacement or source-version changes. Bounded Workspace proposals now check these identities and revisions, preserve previews on conflict and use ordinary undo/save paths. | resolved | WP-67 slice 2 |

| P-205 Graph previews must reject stale asynchronous results | Experimental graph reviews use snapshot-bound handles, request generations and non-mutating document validation. Stale work cannot apply; conflicts retain previews and require fresh selection/recomputation. | resolved | WP-67 slice 3 |

| P-206 Save completion must acknowledge submitted text | A save could acknowledge edits made after its source write began and incorrectly clear dirty state. Completion now records the submitted snapshot and its character count; newer edits stay dirty. | resolved | WP-67 integration |

| P-207 CodeMirror external edits must preserve UTF-16 boundaries | The common-prefix/suffix replacement could emit a lone surrogate for supplementary-plane identifier changes. External diffs now widen over whole UTF-16 pairs, in addition to CRLF, and remain isolated undo entries. | resolved | WP-67 integration |

| P-208 Graph rename must refuse incomplete file subsets | Reference-aware graph Rename accepts complete single-file LSP plans and refuses multi-file plans in full. Resolver inputs and connection versions stay guarded through preview and Apply. | resolved | WP-67 slice 4 |

| P-209 CI startup stalls must retain evidence | CI now keeps per-attempt startup logs/process diagnostics and permits one inactivity-only retry inside the original deadline. Owned process-group cleanup covers compiler/server descendants; compiler failures and process exits do not retry. Original tooling-stage stall remains unproven. | resolved (recovery/evidence) | WP-26 |

| P-210 Multi-document rename needs coordinated history | Two-pass complete same-folder rename plans stage all buffers, coordinate marked native/CodeMirror history and save explicitly per file with partial-success results. Newer edits block all-file undo; history probes and menu/keyboard commands guard CodeMirror dispatch, including remounts and held input. | resolved (experimental) | WP-67 slice 5 | | P-211 Preview row queries and folding repeated full text work | Typing in the Rust editor’s Markdown preview was slow on long documents (live-preview-long: 234 ms per keystroke on master, 534 ms after the WP-69 toolbar exposed more rows, against Source at 73 ms). Row lookups rescanned rope text per token, folding reparsed the whole text, and highlighting reparsed on every append. Now one line-start table per presentation pass, row-only boundary queries, a bounded per-thread folding parse cache, provisional measured Markdown row heights, and reuse of highlight captures for plain ASCII appends at the end of an unhighlighted line; 83 ms against 73 in a dev build. Typing mid-document still reparses highlighting in full. | resolved | WP-69 |

| P-212 Markdown offset iterator can panic | The first CI math fuzz crash reaches production Markdown offset iterators. NUL/vertical-tab/form-feed inputs now retain plain source before parser construction on all profiles; unwind builds discard complete failed parses. Original and minimized inputs cover production entry points. 216 code-view and five agent tests pass with the supported registry-write bypass; browser gates remain due; upstream #1129 remains open. Root cause fixed: a vendored pulldown-cmark 0.13.4 with upstream’s one-hunk fix (#1129) until 0.13.5. | resolved | WP-47 | | P-213 A clean Windows machine cannot build the desktop app without LLVM and Perl | First Windows source build (a friend’s Windows 10 PC, 2026-10-17): the portable crates and moonkale-remote --lib pass, but cargo test --workspace and dx serve stop in librocksdb-sys’s build script — bindgen finds no libclang.dll. moonkale-desktop (and moonkale-server’s kv feature) enable moonkale-sources-kv with rocksdb unconditionally. CI and the Windows release job pass only because GitHub’s windows-latest image ships LLVM. With LLVM installed the build then stops in openssl-sys (vendored on Windows, P-125): OpenSSL’s Configure needs a native Perl (Strawberry Perl). Documented in Install (install LLVM, set LIBCLANG_PATH, install Strawberry Perl); dropping OpenSSL on Windows depends on P-125, and making RocksDB an optional desktop feature would change what the Windows build opens and is left open | documented | — | | P-214 On Windows the window opened under a top taskbar and taller than the screen | First Windows GUI run (2026-10-17, 1920×1080 at 125 %, taskbar docked at the top): the undecorated window opened at y = 0 and 1400×900 logical, so our own title bar sat under the taskbar (no drag, no double-click) and the status bar ran off the bottom. fit_to_work_area (desktop main.rs) now moves and shrinks each new window into its monitor’s work area (MonitorFromWindow/GetMonitorInfoW); the clamp is fit_rect, unit-tested on Linux; the Windows call type-checks against tao for MSVC. Confirmed on the Windows PC (2026-10-17): fitted (128, 0, 1896, 1102) into (0, 38, 1920, 1080); title bar reachable and draggable, status bar visible | resolved | — | | P-215 The palettes and dialogs drew without a background | Found on Windows (2026-10-17) through the WebView2 devtools: Ctrl+P and Ctrl+Shift+P are children of .mk-frame, outside .wb-shell, and the --wb-* variables were only declared on .wb-shell/.wb-workspace — background: var(--wb-surface) resolved to nothing, so the list was drawn transparently over the editor. Not Windows-specific. theme::builtin_css now declares them on .mk-frame too; unit test; confirmed on Windows (both palettes solid). The CodeMirror find bar is a separate problem (P-219) | resolved | spec 030 | | P-216 An oversized graph canvas panicked the renderer | Found on Windows (2026-10-17): a restored graph tab measured 1750×27197 device px before layout; Surface::configure panicked past the 16384 texture limit and every later call hit RefCell already borrowed. fit_texture clamps the surface to the device’s max_texture_dimension_2d (and zero to one). Confirmed on Windows: a restored graph tab renders, no panic. Why the canvas measured 27197 px is not known | resolved | spec 031 | | P-217 Minimise and restore brought another tab to the front | Windows (2026-10-17): Graph was replaced by the last document after a tiny minimised viewport switched phone/wide layouts. Fixed 2026-10-22: shell document activation is a navigation edge retained outside the remounted workbench; each layout keeps its active tabs. Ignore viewport dimensions below 100 px, and observe both resize and media-query changes. VirtualDom checks Graph and Search selections across two round trips; browser responsive-tabs checks the real shell. Packaged Linux/WebKit desktop retains Graph across 1600 → 420 → 1600 px output resizing. Windows minimise/restore recheck remains | fixed locally; Windows recheck | — | | P-218 Rich view resolved relative images against the app, not the folder | Windows (2026-10-17): README image requested from the app origin and failed. Fixed 2026-10-22: display-only Milkdown image node views ask Rust for source-backed data URLs through the existing native-preview source jail, byte/pixel limits, freshness checks and bounded cache. Original Markdown destinations survive editing/save; escaping and remote paths receive no URL. Browser rich-images checks a percent-encoded subfolder image (240 × 80), blocked destinations and saved paths. Packaged Linux/WebKit desktop also displays the 240 × 80 subfolder SVG. Windows recheck remains | fixed locally; Windows recheck | — | | P-219 The CodeMirror find bar is unstyled | Windows (2026-10-17): native inputs/buttons/checkboxes and English in the German UI. Fixed 2026-10-22: search controls use shell colour tokens and EditorState phrases from en/de/zh-CN locale tables; generated bundle rebuilt from TypeScript. Browser codemirror-search opens the actual German panel, checks input/button styling and selects a match. Packaged Linux/WebKit desktop shows the same styled German controls. Windows recheck remains | fixed locally; Windows recheck | — | | P-220 graph-rename sometimes waits in vain for rust-analyzer’s first diagnostic | CI browser structural edits, twice on 2026-10-18 (runs 39081507412 on a docs-only commit and 39126973008): the first step times out after 120 s on .cm-lint-marker-error (CodeMirror) — rust-analyzer never published the expected error. The commit before passed with the same toolchain, and the rerun of 39126973008 passed: flaky, cause unknown (a cold rust-analyzer on a shared runner, or a lost first publishDiagnostics). If it recurs, log the LSP traffic of that step | open | — | | P-221 The release web client failed to bundle on Rust 1.99 | Release 261019-proto (2026-10-19): the Linux and Arch jobs stopped at wasm-bindgen error: the __wasm_bindgen_unstable custom section is missing, but the module still contains wasm-bindgen shims; Windows, macOS, Android and Nix (no web client) built. Reproduced locally with 1.99.1 and not with 1.98.1 (same wasm-bindgen 0.2.128): strip = true in [profile.wasm-release] makes dx strip everything, which now includes that section. strip = "debuginfo" builds on 1.99.1; the module is the same size (49.2 MB vs 49.3 MB). CI never builds the release web client, so nothing caught it before a tag | resolved | — | | P-222 The desktop graph panel drew nothing (WebKitGTK 2.54) | Found in the Sophia desktop check (2026-10-21): the graph toolbar said 5106 nodes · 6915 edges · gl, but the canvas stayed empty, for folders too, on Daniel’s NVIDIA desktop and on the headless display. Chromium and MiniBrowser (WebKitGTK 2.54.1) drew the web build. The cause is dioxus-desktop’s Wayland workaround: it sets WEBKIT_DISABLE_DMABUF_RENDERER=1 and GDK_BACKEND=x11 for WebKit’s children, and since WebKitGTK 2.54 (installed 2026-10-08) a WebGL canvas stays blank with the DMA-BUF renderer off (the headless app with only that variable draws nothing; without it, it draws). Native Wayland with the DMA-BUF renderer then failed on NVIDIA with GTK’s “Error 71 (Protocol error)”; __NV_DISABLE_EXPLICIT_SYNC=1 avoids it. Fix: desktop/main.rs turns the workaround off (with_disable_dma_buf_on_wayland(false)) and sets __NV_DISABLE_EXPLICIT_SYNC=1 on Wayland when the NVIDIA driver is loaded; MOONKALE_WEBKIT_X11=1 restores the old behaviour. Verified: LinearAlgebra’s 5106 nodes and the 100 000-node store draw on Daniel’s desktop, the m2root fixture on the headless display | resolved | 16 | | P-223 Zoomed far out, dragging the graph moves a node instead of panning | Daniel, 100 000-node Sophia store (2026-10-21): far out, nearly every point of the canvas is within a node’s pick radius, so a drag picks a node and moves it. Panning is only possible between nodes. Candidates: a pick radius that shrinks with the drawn node size, or a press that pans when the node is smaller than a few pixels; fixed 2026-10-22: overview dots below 3 CSS px radius stay clickable but drag the camera, with projected 3D/shape sizes respected. Dense 10k-node pointer regression fails the old wasm and passes the rebuilt engine; normal node dragging remains covered | resolved | 16 | | P-224 The 100 000-node graph takes about 15 s to appear | Measured 2026-10-22 on a copied store, actual desktop desktop,sophia, private 1920×1080 Wayland/WebKit/Mesa software GL, bench lock + both slots: initial query-to-first-draw 6.78 → 2.54 s, five warm loads median 5.70 → 2.63 s, worst 5.93 → 2.69 s; graph visible in a compositor screenshot at 2.7 s. Initial source query 3.89 → 1.39 s, payload 96 → 93 ms, eval handoff 2.26 → 0.72 s, stringify 14 → 0 ms, engine parse/build/fit/layout/draw 518 → 341 ms (layout now follows the first draw). Actual panel JSON is 14.2 MB; 50 MB was the whole source result. Fixes: watcher snapshots log tail instead of replaying history, edge ids reused, duplicate in-flight reads coalesced with freshness guards, development query optimization, JSON-string eval transport, no property clones and draw before layout. Isolated browser engine median 309 → 114 ms; graph-startup checks pixels and the zero-step first frame. Full method/raw artifact names in packages/graph-render/graph-render.md. Original 15 s not reproduced here; physical NVIDIA/KDE recheck remains | fixed locally; desktop recheck | 16 |

| P-225 Native FPS recorder misclassifies idle cadence and input | Upper-envelope idle calibration, backend-independent arrow traversal evidence and actual small document scroll movements; timing thresholds unchanged, no-op wheel attempts still fail. Precise paired-callback scheduling cause and hardware rerun remain open. | resolved (accounting) | WP-02 | | P-226 Real desktop FPS host undo report | Real compositor Ctrl+Z works in a fresh private-display FPS host, including while recording; add canonical-text/input observations and OS regression. Cause (2026-10-22): Daniel’s KDE session had the US layout (~/.config/kxkbrc LayoutList=us, system layout de) on a German keyboard, so the key labelled Z sent Y and Ctrl+“Z” was redo. With the session on de, Ctrl+Z undoes (checked in Kate). Not an editor bug. | resolved | WP-02 |

| P-227 Flow code generation could not replace an existing file | Second Generate retained the old RC-only circuit.jl: the flow panel used a listing metadata version instead of its fetched content version. It now uses fetched text/version together and refuses failed fetches. The MTK second-generation golden is the browser regression (2026-10-23). | resolved | WP-05 |

| P-228 Pulse browser measurement counted wraps as forward motion | The pulse suite compared maxima of absolute peak movement in separate screenshots, counting phase wraps as speed. It now samples both edges in shared frames, rejects wrap/boundary pairs and checks median forward velocities against declared speeds. Renderer pulse behavior is unchanged (2026-10-23). | resolved | WP-04 | | P-229 Sophia full graph traversal can exhaust its worker stack | Increasing All to materialise a complete coarse snapshot reached a worker stack overflow on the P-224 copied store. Coarse navigation now reads namespace/name/definition-ID/indexed-reference metadata, without decoding terms; 199,257 nodes → 2 representatives in 3.68 s cold / 1.81–1.83 s warm. Original full traversal: fixed upstream in Sophia bed1e02e (Calls without term recursion, edges de-duplicated by set): all(2 000 000) on a gen100000 copy, 199 256 nodes / 739 273 edges in 2.6 s release. | resolved | WP-06 | | P-230 macOS watch tests see the fixture’s own writes | CI Portable macos-14 (advisory) failed twice in 25 master runs on project-fs watch tests: run 39889363844 an_unknown_position_asks_for_a_reset_and_an_idle_poll_returns_empty (the idle poll returned 2 paths, the fixture’s src/main.rs and README.md) and run 39483652408 ignores_hidden_gitignored_and_temporary_files. FSEvents delivered the fixture’s writes after the watcher had started. Fix: the test fixture waits 1.5 s on macOS before the source opens. Linux and Windows unchanged | resolved | — | | P-231 Sophia folder replay loses generic memberships | ADR-0029 history replay finds live generic names/members differing from fresh stores; Sophia v0.1.0 subtracts duplicate old member digests without the deduplication used for new contributions. Fixed in Sophia 77f5c1c9; both replays clean | resolved | — |

| P-232 Sophia capped graph reads scan namespace metadata | All(1000) spends seconds in Sophia namespace discovery: discarded Contains edges trigger repeated metadata scans; debug/release profile and upstream request prepared | resolved (Sophia v0.1.2) | — | | P-233 Structural edits need index nodes in the graph | Sophia selections resolve to unique index targets by native key or file/span/input; structural edits and rename pass on the default cache graph with both editors | resolved | 2026-10-28 |

| P-234 Guarded futures overflow the wasm stack | WP-57 inline future wrappers crash Chromium on structural Preview. Shared heap pinning bounds task/resource/event wrappers; a large-future regression fails the old guards. | resolved | WP-57 |

| P-235 Focus restoration needs the retained panel | Closing Graph can reveal Settings while its editor opener remains hidden. Restoration activates the saved panel through the workbench and then focuses its control, after pending command focus. | resolved | WP-64 |

| P-236 Overview confirmation can lose focus | Repeated smoke runs expose an overview dirty-close dialog without focus; Escape can close the whole overview. Explicit mounted-button focus and input-side Escape cancellation fix it; five overview repetitions, three full smoke sweeps and all gates pass. | resolved | WP-26/60 |

| P-237 Literal pathspecs break stash cleanup | Git 2.56.0 global literal mode leaves stashed untracked files on disk. Typed stash commands now preserve Git’s internal pathspec mode; real-CLI regression. | resolved | WP-52 |

| P-238 Sophia patches need the fetched rendering | A moved reference reprints to a hash without changing Sophia’s edited-name token. Source versions now identify the fetched rendering, with bounded retained patch bases and raw-token checks; old-buffer saves can warn successfully. | resolved | SR-150 |

Conventions

  • Status: open · investigating · decided · resolved · wontfix.
  • Link the ADR if the resolution became a decision.
  • Include measurements, not adjectives (“30 fps at 50k nodes on WebGL2”, not “slow”).

P-239 — Unstaging leaves an empty staged diff in front

Status: fixed in contributor worktree; ten consecutive 6× CPU-throttled browser runs pass · Related: Version Control Requirements, WP-52

Problem

CI failed twice at git-everyday’s partial-new-file stage. Git’s index was already empty but the Changes list had not finished refreshing. The test clicked the first filename, still the staged entry, and kept an empty staged diff in front. The screenshot is target/ci-evidence/git-everyday-fail.png. The full smoke run under native rebuild load also exposed Create branch racing its initial reflog fetch: an empty commit state could be submitted before the select populated. Commit actions now disable while no commit is selected, and the test explicitly selects the intended full tip identity before creation.

Options

Keep empty staged tabs and only fix the test, or retire staged views when their index entry disappears and also wait for exact status/diff mode in the test.

Decision

Retire the obsolete staged view during status refresh. Open diff tabs through the workspace’s interned show_panel path. Status rows and diff roots expose file/mode attributes; the browser test waits for the intended status row, mode, content and enabled action. MOONKALE_CPU_THROTTLE=6 exercises slow UI timing.

Lesson

A disk-state assertion does not mean the UI has finished its asynchronous refresh.

P-240 — Flow code generation hid a stale write refusal

Status: fixed and validated in contributor worktree (workspace gates and flow browser journey) · Related: Shared Work, SW-20, WP-49

Problem

The text-write audit found that flow codegen fetched the correct content version (P-227) but treated any successful Source::apply response as success. Sources may return Applied containing a per-operation Refused, including Conflict. The file remained safe, but the UI could claim generation succeeded after refusal.

Decision

Inspect Applied::first_error before acknowledging the generated file, matching normal saves, workspace replacement, settings and history writes. The existing error path now displays the stale version or other refusal.

Lesson

The outer transport result and the per-operation result both matter for sources whose transactions explicitly permit partial success.

P-241 — Standalone fuzz and application builds need separate target directories

Status: procedure corrected · Related: How to Write Tests, WP-49 validation

Problem and measurements

The documented stable parser test command reused target/agent for the standalone fuzz workspace. Its 28 parser tests passed, but the following application workspace build rejected the graph-render headless example: Event implemented a different serde_core::Serialize instance from the one its caller expected (the same package version/path with different feature contexts). The graph crate emits native cdylib/rlib artifacts that can collide across those workspace builds.

Decision

Give the standalone workspace its own absolute target/agent-fuzz directory, including fuzz runs. The application keeps target/agent; neither is shared with another worktree. Corrected the test guide commands. Recovery needed only cargo clean -p moonkale-graph-render in the application environment; the full workspace tests then passed. No graph-render source or committed engine wasm changed. Evidence: target/next41-fuzz-tests.log, the initial failure in target/next41-gates-clean.log, and target/next41-workspace-final.log.

Lesson

Separate workspaces can require separate target directories even within one agent’s worktree, especially for packages that emit a cdylib as well as an rlib.

P-242 — Sharing announcement test outruns remote position (2026-10-30)

Status: resolved · P-242 Sharing announcement test outruns remote position

At 6× CDP CPU throttling, sharing.mjs requests a second announcement before the receiver necessarily has the moved caret. Its fixed 120 ms sleep is replaced by a wait for the named remote member’s changed position; all waits have step labels. The request-only announcement and off-wire assertions remain. Ten 6× suite runs passed; production coalescing and mount readiness were reviewed separately.

P-243 — Plot step 2 review findings (2026-11-18)

Status: resolved before merge · P-243 Plot step 2 review findings

Codex’s review of agy’s WP-40 step 2 found a spec source.path that opened an outside database through a link in the folder, a GROUP BY captured by a source column named b, composite keys choosing the wrong bar categories, and finite ranges overflowing hi - lo; Mistral’s probes added bar sums overflowing f64. All reproduced by failing tests on SQLite, DuckDB and Turso, fixed, tests kept.