Skip to content

Architecture: the wiki checked against the code, regrouped by area - #1911

Open
vmillet-dev wants to merge 8 commits into
app-name-cifrom
architecture-tidy
Open

vmillet-dev wants to merge 8 commits into
app-name-cifrom
architecture-tidy

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

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.

Stacked on #1908 (the last of the stack), so it sees every page the stack changed. The stack is being merged in order (#1898 is in); this one comes last, retargeted to dev/1.3.3.

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:

  • the Angular stores and components (HttpTabsStore, NotesStore.openNote, SettingsStore, …Component, directives);
  • its stylesheets and specs;
  • the Tauri commands and the WebView's limits (drag and drop, CSP, IPC);
  • service functions that are gone, and some twenty that exist but were missing;
  • issue numbers, and « used to » histories.

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:

  • Paths holds the profile alone, and SendNotKept is an engine event;
  • the gate's four states and its panels are the egui ones;
  • the library's preferences are read on each open, with no adoption of old keys;
  • fifteen keys can be moved (3 global, 11 canvas, the rail's), each stored under its own key;
  • the About menu has four panels, and reduced motion is read from the system;
  • the find bar's options are not remembered;
  • the core depends on no editing crate;
  • the footer has four variants;
  • the engine's events replace the old topics;
  • the JSON model's entry point is json::model::explore;
  • the identity tool's lists are compiled in;
  • what an upgrade still carries forward.

How it is organised now

Folders that follow the code, one commit moving them with git mv and repointing every link:

Folder Pages
(root) README.md (home), overview.md, decisions.md
core/ engine.md, libraries.md — crates/engine
interface/ frame.md, backend.md, desktop.md (new), window.md, look.md
notes/ kinds.md, cards.md, editing.md, board.md
http/ requests.md, environments-and-scripts.md, drawn.md
tools/ tools.md, identity.md (new), json.md (new)
project/ logs.md, testing.md, releasing.md, website.md

interface/desktop.md gathers crates/app and crates/platform, which were spread over the core's page. tools.md (662 lines) is cut in three.

Lighter to read

  • The home page is a map: 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.
  • Every page opens on « In short »: a few lines.
  • Facts that were paragraphs are tables: the queues, the pragmas, the gate's states, the widget kit, the movable keys, motion, the card's bands, the board's storage and gestures, the Calcul grammar, the answer's tabs, the variables' levels, each tool's rule, the JSON readers.
  • No history: what is, not how it came to be. A rejected approach stays where it would otherwise be tried again.

Every heading referenced from CLAUDE.md, the skills, the code or another page is kept, so no reference moved. CLAUDE.md changes 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.md predated the notes index: query_notes at 403 ms, where it is now some ten milliseconds. They are replaced by a fresh run of cargo 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.

⚠️ Found on the way, left as it is: import_notes does 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.
  • No code changed.

Generated by Claude Code

`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
@vmillet-dev vmillet-dev added the documentation Improvements or additions to documentation label Dec 4, 2026 — with Claude

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants