Repository navigation
docs: синхронизировать дерево документации с dev 2.24.0 и актуализировать инварианты - #168
Merged
Merged
Conversation
…variants `main` has read 2.24.0 since the `dev`->`main` merge (PR #146), but the guide still said 2.22.9 — the one claim a reader trusts when choosing a base branch. Same paragraph now names the stable tag and the release date, and the `dev` block lists what landed after that tag without a bump (inputd/netd, FS.base per activation, client-side double click, PATH lookup for bare names, shadow ring + widget damage + opt-level/row-store, Files device labels, TinyGL PR1/PR2, terminal session stage 1) with the gate run it was verified against (850 host tests, p01-p67). Hard invariants gained the ones the post-release PRs established, each with the symptom that proves it is load-bearing: 12. inputd is the only physical-input dispatcher (no duplicate dispatch; overflow rejects the new element; boot menu drains synchronously). 13. FS.base is written on every task activation, 0 without a compat state (otherwise musl %fs:0 resolves in the previous compat task's space). 14. double click is synthesized by the client (400 ms / 4 px), never by PDP/1. 15. ordinary desktop launch needs --launch-target; ERR_UNSUPPORTED otherwise, and the demo client/flags stay test-only. 16. TinyGL: one Context per process, dense buffer (stride == w*4, w % 4 == 0), resize within capacity, static-pie INTERP empty. Historical test counts are marked as such, and the gaps section now says plainly which work is in flight and not in `dev`: USB mass storage S1, #147 default window attach, PTY/full job control, TinyGL desktop demos, SMP.
…Pre-release The root README described a console OS: no `/dev/fb0`, no compositor, no `pagh-desktop`, and the one-command demo pointed at `2.18.12-demo` — a release from the console line that the demo rule (#154) now forbids calling Latest. A reader who downloaded the current bundle got a desktop and found no section about it. What changed and why it is load-bearing: * badge/one-command now link `2.24.0-demo` and say `Pre-release`; the gif caption names its recording (2.18.12, variant A) instead of implying it is current; * new "Desktop-вариант B" section: fb0 takeover + FBIOGET_*, event0 input, memfd + MAP_SHARED, SCM_RIGHTS, vtfb1/vtinput1 session, client-side double click, Files device labels, frame-time work, TinyGL PR1/PR2 (headless), and the honest "not done" list (PTY/job control, USB storage, GPU/Wayland, touch, SMP, #147 in flight); * `apt` -> `ppkg` where the doc meant the user command (`pkg::apt*` modules stay); * host-test claim was `p01`-`p56`; it is `p01`-`p67`, and the documented run is now the measured one: 850 passed / 0 failed, dev @ 7e8c4e0, 2026-11-21; * source tree lists the modules that actually exist (inputd, session, fb_surface, memfd, desktop_dev, boot_menu, logfile, fpu, as_refs, ...) plus the rust-apps crates. The "29 numbered properties (P1-P29)" claim and the table behind it are unchanged: they describe `src/test.rs`, not `host-tests/`.
The 2.24.0 section stopped at the SCM_RIGHTS block, so every PR merged after the stable tag (#145, #148, #149, #155, #157, #158, #159, #160, #161, #162, #164, #165) was invisible in the one file that says what a version contains. Entries sit under an explicit "после stable v2.24.0" note because the version is NOT bumped here (a docs-only PR must not claim a release): each item names what changed, the user-visible symptom it fixes, and what it deliberately leaves open. The host-test number in the summary is the measured run (850/0, dev @ 7e8c4e0) instead of a number nobody re-ran.
… P67 The design doc still opened with "implemented in branch feat/terminal-kernel-session", so a reader could not tell the kernel half is in `dev` (#148) nor that the userspace half is the open PR #147 — the exact boundary the file exists to draw. It also credited the session route/surface properties to P66, which belongs to the `inputd` queue; the session property renumbered to P67 when both landed (see the header of `host-tests/src/properties/p67.rs`). Both fixed, no ABI text touched.
… boot checks Three claims in the crate map were false: the shell row still advertised the mini-Rust toolchain (removed — .rs/.pbc are rejected, cargo/rustc are the installed Linux binaries), the boot ordering said the userland is installed with `apt` (the user command is `ppkg`; modules stay `pkg::apt*`), and `selftest_lx::run` was said to run 13 checks when it calls 22. Also names the FS.base rule among the boot/spawn traps, because a reader editing `activate_task` has no other pointer from this file.
`rust-apps/README.md` called the GUI story "GUI libraries are not supported", listed two clients and described tinygl as "PR1 (build-probe)" — three statements that the merged PRs falsified (#161 client damage, #165 FFI core, and pagh-terminal, which is the second PDP/1 client as well as the consumer of the kernel terminal session). The new text is deliberately in the same shape as before: what a reader can build/run, and what is honestly missing (no compositor integration of TinyGL yet, PR4/5 only).
…y are current The P0 table and the "current profile" table sat next to each other with no dates, so a reader could not tell which number describes the tree they have (and after #164 touched the client crates, neither table describes the clients). P0 is now labelled as a historical baseline, the current profile carries its measurement date and SHA (2026-11-21, dev = dca147b), and a sentence says which later PRs are client-side, so the next person re-runs `--bench` with the same method instead of comparing apples. No number changed: they are the measurements that were actually made.
Both play a role the tooling reference did not mention at all, although they are now the ordinary way a desktop image is built and accepted: * `mkimage.py --autorun RECIPE` installs `/mnt/etc/autorun` into a COPY of the disk image with `debugfs` (bare ext2, 512-byte budget, `#`/blank lines skipped). The ordinary recipe is `rust-apps/pagh-desktop/desktop-autorun` (real `--launch-target`); without it the image boots the console shell, which reads like a regression if nobody says so. * `e2e.py desktop` is the live acceptance path (fbdev/evdev ABI, real pagh-files and pagh-terminal windows over PDP/1, launch type 13, surviving serial shell) and `--legacy-demo` is the demo-client regression only. Names, flags and failure modes are copied from the parsers, not paraphrased.
…elease The bundle section described a tarball without the top-level directory, built from the repo launcher, that creates an empty data disk — while the published asset has its own launcher and a prepared image whose autorun recipe starts the desktop. Anyone rebuilding the bundle from these lines got a console shell and no explanation. It now states the published layout, the recipe that makes the image start the desktop (`mkimage.py --autorun`), and the demo channel rule (#154): tag `-demo`, GitHub Pre-release, never Latest. The media note says which kernel the recording came from (variant A, 2.18.12) instead of implying it shows the current demo.
Both language versions still said `p01`-`p56`; the range now matches the tree (p67 is the terminal-session property). Nothing else in the section changed: the two-tier test story is still accurate.
AGENTS.md points at BRANCHING.md for the full release model, but the demo channel (#154) was documented only in AGENTS.md and RELEASING.md — a reader of the tag table would find `vX.Y.Z`/`vX.Y.Z-rc.N` and conclude a `-demo` tag is off-model. Added the tag row (bare `X.Y.Z-demo`, always GitHub Pre-release, never Latest), a release-flow step saying the release workflow does not publish demo tags so the flag is part of a manual command, and a qualifier so "new tags carry `v`" does not contradict the demo row.
…the fixed routine count Two sentences had aged: the limitations bullet still said the only in-window shell is a userspace child behind two pipes (the kernel terminal session of #148 is §11 of this very document, and #147 makes it the default), and the evidence section quoted a fixed "SELFTEST SUMMARY: 106 routines" — a number that grows with every PR and that nobody can verify from the doc. The bullet now names the real boundary (kernel session yes, PTY and per-window job control no) and the count is described as what the run prints.
The append landed on the same line as the credential gap's final sentence (the file had no trailing newline), which is exactly the kind of silent text damage a docs PR can introduce. Content is unchanged; the paragraph now starts where it should.
The README that tells a contributor where to put a property said "P1-P56" three times and listed a `#[path]`-include set from before the desktop work. The tree has p57-p67 (hardening, groups, AF_UNIX wakeup, shutdown, setuid/login, shadow, sticky dirs, network admission, blocking delivery, inputd, terminal session) and the new pure modules the kernel added (session_route, fb_surface, vtfb_abi, cmsg, input_ring, vt_abi/vt_keys, getopt/lxpath/shadow/identity_db, netstats, as_refs, cow/pat, ...). Also names lib.rs as the authoritative include list, records the two renumbering rules in force (a number is not a constant; P67 moved because P66 was taken), and matches the regression directory that actually exists.
…g paths
Both files were cited by code and READMEs while missing from the repository:
* `docs/tinygl-port-spec.md` (66 KB, v2, approved 2026-11-19) — referenced by
`rust-apps/tinygl/{README,UPSTREAM,THIRD_PARTY_NOTICES}.md`, `src/lib.rs`,
`tests/criterion6.rs` and by the render spec itself. It existed only on the unmerged
branch `docs/tinygl-port-spec` (67ba6c7), so a fresh clone could not read the
document that defines criterion 6 and the PR plan.
* `docs/desktop-render-spec.md` (v1, 2026-11-16) — referenced by
`pagh-ui/{damage,layer,shm}.rs`, `pagh-files/src/main.rs` and both crates'
`shm_e2e.rs`; it was never committed at all (untracked in one working tree).
Text is the owners' version, with the status marked where the tree has moved past it:
* tinygl spec: header now says PR1/PR2 are in `dev` (and that the stable `v2.24.0` tag
predates them), §1.3 is labelled as the `d5de8b2a` inventory with a "since then" note
(tinygl exists; the quoted rust-apps README sentence was rewritten by this PR), the
CI job count is corrected from five to four (`format` is a step inside `kernel`), and
planned paths (`rust-apps/pagh-gl-demo/`, `rust-apps/out/`) are named as plan/artifacts.
* render spec: header and the "our current path" paragraph are marked as the plan that
produced waves A–C, and `pagh-desktop/README.md` now links it as the design rationale.
No code, ABI or protocol text changed. `grep` over the whole tree now finds no
`docs/*.md` reference without a file behind it.
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.
Зачем
devушёл вперёд документации в двух направлениях: (1) stablev2.24.0уже вышел и слит вmain, аAGENTS.mdвсё ещё утверждалmain reads 2.22.9; (2) после тега вdevвошли PR #145, #148, #149, #155, #157, #158, #159, #160, #161, #162, #164, #165 — ни один из них не попал ни вCHANGELOG, ни в корневойREADME(который вообще не упоминал desktop-вариант B). Читатель, скачавший текущий demo-бандл, получал desktop и не находил про него ни строчки.PR — только документация: runtime-код, версия и
Cargo.tomlне тронуты. Всё, что нельзя подтвердить кодом/PR/релизом, оставлено как «в работе» или помечено датой/SHA.Что обновлено
Инварианты (
AGENTS.md)dev/main— обе 2.24.0 (stable-релизv2.24.0,dev→mainчерез--no-ff, PR release: merge dev into main for 2.24.0 #146); история 2.22.9 осталась историей;devпосле stablev2.24.0»: inputd/netd,FS.base, double click, PATH-поиск, рендер-оптимизации, метки Files, TinyGL PR1/PR2, terminal stage 1, USB mass storage — открытые ветки;12.
inputd— единственный диспетчер физического ввода (no-duplicate-dispatch, overflow отвергает новый элемент, boot-меню дренит синхронно);13.
FS.baseпишется на каждой активации задачи, 0 без compat-состояния (симптом[EXC #14] addr=FS.base+0,RIP=__errno_location);14. double click синтезирует клиент (400 мс / 4 px), PDP/1 его не несёт;
15. обычный запуск desktop — только
--launch-target(ERR_UNSUPPORTEDбез цели), demo-флаги только тестовые;16. TinyGL: один
Context/процесс,stride == w*4,w % 4 == 0,len == w*h,1..=4096, resize в пределах ёмкости, static-pieINTERPпуст;mainreads 2.22.9», безусловные «Host-тесты: 561/0» (теперь помечены как исторические), фиксированное число selftest-рутин;dev: USB mass storage S1 + UX-спека, привязка окна к kernel-сессии по умолчанию (terminal: attach the window to the kernel shell session by default #147), PTY/full job-control, TinyGL desktop-демо, SMP.Корневой
README.md2.24.0-demoи прямо говорят GitHub Pre-release (правило docs: demo releases must be GitHub Pre-release, never Latest #154), а не на2.18.12-demo;FBIOGET_*, event0, memfd+MAP_SHARED,SCM_RIGHTS,/dev/vtfb1+/dev/vtinput1, double click, метки Files, frame-time, TinyGL (headless), и список «чего нет»;apt→ppkgтам, где речь о пользовательской команде (модулиpkg::apt*названы явно);p01–p56→p01–p67; добавлен измеренный прогон host-тестов (850 passed / 0 failed,dev=7e8c4e07, 2026-11-21);rust-apps/.CHANGELOG.md— секция 2.24.0 больше не обрывается на SCM_RIGHTS: добавлен явно помеченный блок «после stablev2.24.0» с #145/#148/#149/#155/#157/#158/#159/#160/#161/#162/#164/#165 (что изменилось, какой симптом закрыт, что осталось открытым). Версия не бампалась.Остальные доки
docs/terminal-session.md: статус (kernel-половина вdev, kernel: per-session consoles + /dev/vtfb1 + /dev/vtinput1 (terminal window shell) #148; terminal: attach the window to the kernel shell session by default #147 в работе) и P66 → P67 (сессионное свойство переехало — P66 занят очередьюinputd);docs/desktop-b.md: ограничение про «PTY/терминал в окне» приведено к §11 (kernel-сессия есть, PTY нет), убрано фиксированноеSELFTEST SUMMARY: 106 routines;docs/DEMO.md: раскладка опубликованного архива (каталогpagh-demo-x86_64/), рецепт сборки бандла,--autorun(без него — консольный shell), правило demo⇒Pre-release, помечено, что медиа снято на 2.18.12 (вариант A);BRANCHING.md: demo-канал добавлен в модель (тегX.Y.Z-demo⇒ Pre-release, никогда Latest; workflow его не публикует);rust-apps/README.md: PR1 → PR1+PR2, TinyGL headless, третий клиентpagh-terminal, честная строка про GUI;rust-apps/pagh-ui/README.md: widget damage (copy_rect,StaticLayer, клип-awareList/Grid);rust-apps/pagh-files/README.md: инкрементальная перерисовка (snapshot-diff → damage),PAGH_DAMAGE_TRACKER=1как debug/fallback,tests/damage_incremental.rs;rust-apps/pagh-desktop/README.md: P0-таблица помечена как историческая база, текущий профиль — с датой и SHA (2026-11-21,dca147bc), сказано, что perf(desktop): widget damage + static layer for Files/Terminal (FPS lever 2) #161/perf(terminal,files): opt-level=3, one background fill, row-store canvas fills — terminal frame 3.3× faster #164 — клиентские; плюс ссылка на design rationale-спеку;tools/README.md:e2e.py desktop(живой путь, флаги,--legacy-demoтолько как регрессия) иmkimage.py --autorun(копия образа, bare ext2, бюджет 512,debugfs);src/README.md:shell/без «мини-Rust toolchain»,apt→ppkg,selftest_lx::run13 → 22 проверки,FS.baseв «Граблях»;CONTRIBUTING.md/CONTRIBUTING.en.md:p01–p56→p01–p67;host-tests/README.md:P1–P56→P1–P67(трижды), список#[path]-инклюдов приведён к крейту (session_route, fb_surface, vtfb_abi, cmsg, input_ring, vt_abi/vt_keys, getopt/lxpath/shadow/identity_db, netstats, as_refs, cow/pat, …),lib.rsобъявлен источником истины, описаны P57–P67 и фактический списокproptest-regressions/;docs/tinygl-port-spec.md+docs/desktop-render-spec.md: влиты (см. «Findings») — вместо битых ссылок вrust-apps/tinygl/**,pagh-ui/**,pagh-files/**,pagh-terminal/tests/**.Findings — закрыто в этом PR (lead review #168)
Обе «висячие» ссылки, найденные при аудите, устранены вливанием самих доков (по указанию lead review), а не переформулировкой ссылок:
docs/tinygl-port-spec.md— добавлен (66 KB, версия владельца из веткиdocs/tinygl-port-spec,67ba6c7b); шапка помечает, что PR1/PR2 уже вdev(и что stable-тегv2.24.0их не содержит), §1.3 назван инвентарём наd5de8b2aс пометкой «с тех пор», число CI-job'ов исправлено (четыре; формат — шаг внутриkernel), запланированные пути (rust-apps/pagh-gl-demo/,rust-apps/out/) названы планом/артефактом.docs/desktop-render-spec.md— добавлен (v1 от 2026-11-16, ранее untracked); шапка и параграф «our current path» помечены как план, породивший волны A–C, плюс ссылка на спеку изpagh-desktop/README.mdв разделе frame time.Проверка:
grepпо всему дереву (*.md+*.rs) больше не находит ссылок видаdocs/*.mdбез файла за ними.Координация (пропущено намеренно)
docs/desktop-server.md— открытый PR e2e: prove PDP/1 type-13 from a live, focused requester (post-stable fix) #163; не трогал.rust-apps/pagh-terminal/README.md,TERMINAL.md(+ код теста/рендера) — открытый PR terminal: attach the window to the kernel shell session by default #147; не трогал. Поэтому «терминал по умолчанию запускает свой shell-потомок через pipe'ы» описано как текущее состояниеdevс явной пометкой «привязка к kernel-сессии — terminal: attach the window to the kernel shell session by default #147 в работе», а perf(terminal,files): opt-level=3, one background fill, row-store canvas fills — terminal frame 3.3× faster #164-оптимизации терминала (row-store/one-fill/cell damage) оставлены его владельцу.Гейты
cargo fmt --all -- --check.rsнет)python3 tools/check_agents_md.py(CI jobdocs-claims)agents-doc gate: OKpython3 tools/check_agents_md.py --probeOK (every break was caught)python3 tools/host_tests.py850 passed; 0 failed(после вливания спек — снова exit 0)python3 tools/check_safety.pyOK (7 critical files)docs-claims✅static-policy✅kernel✅host-tests✅tools/build.py build [--release]локально не запускал: PR не касается кода, а CI собирает оба ядра в jobkernel(зелёный).Честные остатки
docs/demo.gif/demo.mp4) не переснимал — запись помечена как 2.18.12/вариант A; desktop-скриншоты живут вrust-apps/pagh-desktop/screenshotsи встраивать их в корневой README не стал (чтобы не дублировать медиа крейта).--bench) — вместо выдумывания новых проставил дату и SHA существующих замеров.usb,rndis,desktop) в этом окружении не гонял; утверждения в доках опираются на код + уже смерженные прогоны владельцев.pagh-gl-demo, acceptance-метрики) остаются планом, а не заявлением о готовности.BRANCHING.md/CHANGELOG.md/DEMO.mdи часть rust-apps README не имели завершающего перевода строки до PR — оставил как есть, чтобы не раздувать diff.