Repository navigation
Architecture: the wiki checked against the code, regrouped by area - #1911
Open
vmillet-dev wants to merge 8 commits into
Open
vmillet-dev wants to merge 8 commits into
vmillet-dev wants to merge 8 commits into
Conversation
`core/` for the engine and the libraries, `interface/` for the ui crate (the frame, the backend, the window, the look), `notes/`, `http/` and `tools/` for the features, `project/` for the logs, the tests, the releases and the site. Moved with `git mv`; every link and path to a page follows. No text changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
`core/engine.md` and `core/libraries.md` rewritten from the code as it is: each opens on what matters in a few lines, tables where a list of facts was a paragraph, and nothing of the earlier application (its stores, its components, the WebView, the issue numbers). What was wrong is corrected: `Paths` holds the profile alone, `SendNotKept` is an event, the gate's four states and its panels are the egui ones, the library's preferences are read on each open (no adoption of old keys). The binary and the desktop (`crates/app`, `crates/platform`) move to a page of their own, `interface/desktop.md`: what `main` does in order, the `Desktop` the platform answers, Linux desktop by desktop, and what `on_exit` does in order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
`interface/frame.md`, `backend.md`, `window.md` and `look.md` follow the egui code as it is. Each opens on what matters; facts that were paragraphs are tables (the queues, the widget kit, the movable keys, the motion constants, the preference pages). What described the earlier application is gone: its stores, services, stylesheets, mixins and tests, the WebView, the issue numbers. Corrected from the code: the service functions (some twenty missing, five gone), the error codes, the fifteen keys that can be moved and where each is stored, the About menu's four panels, reduced motion read from the system, the format functions, the accent's `Palette` fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
`notes/kinds.md`, `cards.md`, `editing.md` and `board.md` follow the egui code as it is. Each opens on what matters; the Calcul grammar is a table of forms and examples, the card's bands, the canvas keys, the board's storage and gestures are tables. What described the earlier application is gone: its components, stores, directives, stylesheets, the WebView's drag and drop, the issue numbers, the measurements of a DOM. Corrected from the code: the footer's four variants, the board's pan counters, the undo window, the draft created once, the find bar's options (not remembered), the canvas key table's name (also in CLAUDE.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
`http/requests.md`, `environments-and-scripts.md` and `drawn.md` follow the code as it is. The core's rules were right and stay; what described the earlier interface (its components, stores, CSS, the WebView's CSP, the issue and fork numbers) is replaced by the egui modules. Tables where a list of facts was a paragraph: the answer's tabs, the variables' levels and their colours, the workspace's pages. `drawn.md`, written for egui, is cut into sections. Corrected from the code: the engine events in place of the old topics, the script host's argument read before anything else, the console kept without a setting, the tests' host binary, the code targets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
`tools/tools.md` keeps the contract (a table of the `Tool` methods), the home and the search, adding a tool, and what each group decides in Rust, now one table a row a group of tools. The identity tool and the JSON explorer get a page each (`tools/identity.md`, `tools/json.md`), the explorer's readers a table. What was the story of how they came about (the spike, the lists beside the executable, the first country) is gone; what stays true is kept. Corrected from the code: the recents' constants and keys, the passwords' module, the UTF-16 helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
The home page is a map rather than a wall: a diagram of the process, a table « you want to… → read », the pages grouped by area with one line each, the six rules that bite, and how the pages are read and written (each opens on « In short »; they say what is, not how it came to be). The overview opens on what matters, lists the crates in a table with a diagram of their dependencies (checked against the manifests: the core depends on no editing crate), and keeps feature-first and the application's names. The logs, releasing and website pages open on « In short »; releasing loses its version history, and what an upgrade still carries forward is said as the code does it. Corrected from the code: the JSON model's entry point (also in CLAUDE.md), the decisions' range in CLAUDE.md (D1–D36), a test's file, the history list's key, the revision export held by construction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
The core's figures dated from before the notes index (`query_notes` at 403 ms, where a keystroke now reads the index in some ten). They are replaced by a run of `cargo bench -p engine --bench commands` in a Linux container, with what each group measures said: the whole-corpus read is the SQL path the index replaced, the other groups the store a service function calls. « Who holds the lock » says what holds it now: a list no longer does, the fill a slice at a time, an export or an import the longest. `import_notes` does not run on the benchmark's corpus: its export compresses past the import's hundredfold ceiling and is refused as a decompression bomb. Said in the page; the benchmark is left as it is. The rest opens on « In short » and loses its history (the earlier bridge's costs, the suite that once did not block). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #1898 (the wiki split), on the owner's review of it: check the pages against the code as it is, make the home page easier to read, organise the pages better, and drop the history. No code changes.
What was wrong
The split carried the old single document over as it was, and much of it still described the earlier application. A throwaway check lists every code name the pages cite (in backticks) and looks it up in the repository. About 550 names found nothing, among them:
HttpTabsStore,NotesStore.openNote,SettingsStore,…Component, directives);The same check now finds only false positives: dotted field paths, placeholders such as
<id>, generated folders.Real errors corrected from the code, a few of many:
Pathsholds the profile alone, andSendNotKeptis an engine event;json::model::explore;How it is organised now
Folders that follow the code, one commit moving them with
git mvand repointing every link:README.md(home),overview.md,decisions.mdcore/engine.md,libraries.md—crates/engineinterface/frame.md,backend.md,desktop.md(new),window.md,look.mdnotes/kinds.md,cards.md,editing.md,board.mdhttp/requests.md,environments-and-scripts.md,drawn.mdtools/tools.md,identity.md(new),json.md(new)project/logs.md,testing.md,releasing.md,website.mdinterface/desktop.mdgatherscrates/appandcrates/platform, which were spread over the core's page.tools.md(662 lines) is cut in three.Lighter to read
Every heading referenced from
CLAUDE.md, the skills, the code or another page is kept, so no reference moved.CLAUDE.mdchanges in three places: the decisions' range (D1–D36), the canvas key table's name, and the JSON model's entry point.Benchmarks
The figures of
project/testing.mdpredated the notes index:query_notesat 403 ms, where it is now some ten milliseconds. They are replaced by a fresh run ofcargo bench -p engine --bench commands. It ran in this Linux container (4 vCPU, Xeon at 2.3 GHz), so the figures are orders of magnitude, not a record against the earlier machine. The index and window figures, measured since the index, stay.import_notesdoes not run in the benchmarks. The corpus's export (repetitive text) compresses past the hundredfold ceiling the import allows, and is refused as a decompression bomb. The page says so. A real library compresses far less, but a very repetitive one could meet the same refusal; whether the ceiling should move is the owner's call.Checks run
node scripts/architecture-links.mjs: every name and link resolves.node --test "scripts/*.test.mjs": the architecture-links tests and the rest pass.cargo bench -p engine --bench commands(the import excepted, see above), for the testing page's figures.Generated by Claude Code