Repository navigation
D127 c2 (B) — shell: the search answers in parts within D105's 100 ms on 500 meetings, the list hidden whole - #1422
Draft
kitokey-ines[bot] wants to merge 11 commits into
Draft
kitokey-ines[bot] wants to merge 11 commits into
kitokey-ines[bot] wants to merge 11 commits into
Conversation
… search timed on them (D127 criterion 2) Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a file rewritten or gone, is read ahead, and holds D105's 100 ms on 500 meetings in release (D127 criterion 2) Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arches, read again once changed, read ahead when the search or the palette opens (D127 criterion 2) Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the newest meetings read, appended until complete; DG says « Recherche… », keeps the focus, drops an answer for other words, draws 50 a group (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… held while a file is read, and the window draws each answer as it comes, read ahead from the first list (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and its checks read each group by its heading (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…en or marked one by one, and that a failing shell leaves the rows filtered by their title (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sking the shell; its rows are filtered one by one only when the shell does not answer — 1.9 s at the first word typed on 500 meetings (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kept passages answered in parts, the first passage in 52 ms cold on 500 meetings of an hour in release Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… results with its button, each language in its theme (D127 criterion 2) Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hole — the first passage in 77 ms cold, 122 MB more held for 500 hours Agent-Session: d68d8ea4-0375-44c6-98e5-667929031835 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
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.
Head: b44de2a. For the decider, in one sentence: on 500 meetings of an hour, a word typed in the sidebar's search now shows its first result in under 100 ms, cold or not (77 ms cold in the median; 1.3 s before), « Recherche… » said while the rest arrives, and a group of results draws its first 50 with a button for the others.
Deliverable: D127
Related: #1419 (the same cost elsewhere in the window; stays open).
Module
shell, exactly one, and D127's section of cycle 12 (its criterion 2 asks for the method and the figures there):src/search.rs:Corpus::found_until— a deadline, newest meetings first, every title at the first answer,complete; no lock held while a file is read;warmnewest first;src/main.rs:searchedreads for 50 ms (SEARCH_ANSWERS_WITHIN) and answers{typed, …, complete};src/words.rs:seeking(« Recherche… »),found_more(« Afficher {} de plus »);ui/window.js,ui/index.html: the answers appended,#seeking(role=status), 50 a group and a button, the list hidden whole, read-ahead at the first list drawn;tests/search_speed.rs: the shell-side measure throughsearch::Corpus(its generator and first version are D127 c2 (A) — shell: 500 meetings of an hour made for the search's measure, read whole by the shell, and the search timed on them #1421's; this branch carries them until D127 c2 (A) — shell: 500 meetings of an hour made for the search's measure, read whole by the shell, and the search timed on them #1421 merges, then main is merged in);tests/search.rs,tests/silence.rs,tests/words.rs,scripts/e2e_window.py(DG).This pull request touches a single module
Deliverable
D127, criterion 2, its second pull request (#1421 is the first: the generator and its test): « Given 500 meetings of an hour, made for the test, when a word is searched, then the first results show within the budget D105 sets for an interaction, measured on the release package; the method — a scan of the files or an index — chosen by that measure and written in D127's section ». #1400 delivered criterion 1 (D127a), #1418 criterion 3.
What it changes
role=status) at once when nothing is shown yet, and until the search is complete; each answer's new results are appended, never drawn anew, so the focus and the place stay; an answer for words replaced since is droppedConventions followed. D105's 100 ms response budget (cycle 11, amended 2026-11-20), measured by D105's method (#1034). WCAG 2.2 SC 4.1.3 Status Messages: « Recherche… » is a status, « Aucune réunion trouvée. » is said only once the search is complete. No market reference is given here: none was read and dated for this PR.
Kept: the kept passages, answered in parts. Left out: a full-text index (the measure shows the kept passages hold the budget at 500 hours), a list virtualised, ranking.
The measure (the method, never merged)
The release build in a session of its own, D105's harness from #1034 (
speed.py,speed.sh,headless.sh'sKITOKEY_SPEED) plusspeed_search.py: in the page, from the words typed to the status shown, the first passage drawn and the search complete, each plus one frame. Cold: the window just drawn, the field focused and « devis » typed at once. 5 runs, medians, 2026-12-01, AMD Ryzen AI 7 PRO 350, WebKitGTK 2.54.2, onset500v2(#1421's generator: 500 meetings of an hour, 78 MB, every line read by the shell). The probe's patch:~/.config/nstack/agents/ines/cache/d127c2/ui/probe.patch; the command:The page's thread never stalls more than 30 ms. Shell side, release,
tests/search_speed.rsunder the machine's lock: every file read at each search 414 ms (#1421); kept, 32 ms a search, 449 ms to read every file the first time, +122 MB resident for 500 hours (each line kept as written and folded).How the cold case was found: on 7db71e8/807aef52 it stayed at 1276 ms whatever the search did; the probe's diagnosis showed the page's thread stalled 1258 ms before
searchedwas even sent; timing sought()'s steps showed hiding the list's 500 rows one by one at 1.9 s in WebKitGTK and showing them again at 2.1 s. Those runs used the first set, which left two lines in three unread (#1421 fixes the generator): their figures are not kept. The same cost elsewhere in the window: #1419.Oracle
cargo test --test search: red on a stub reading every meeting (« the newest meeting first, one meeting read »: 3 read), then green; the mutant « cut = break » (titles stop at the deadline) red on « every title at the first answer », then green.i-d127c2-dg-red-7c0106a9: FAILJavascriptException … null is not an object (evaluating 's.hidden')— no status element.i-d127c2-dg-red2-e42d3881: 47 ok, 2 FAIL, both the new check — « a search hides the list whole, no row hidden or marked one by one », got[True, 4, 1](4 rows or groups hidden one by one, 1 mark), fr and en.i-d127c2-dg-green3-9cb1ae7e(found_by_what_was_said,palette_used): 72 ok, 0 FAIL.i-d127c2-dg-green4-8b23d17a(found_by_what_was_said,palette_used): 80 ok, 0 FAIL.set500v2, run by the coordinator under the machine's lock.Review budget
Contracts
Definition of Done
cargo test --locked --test search, DGcargo fmt --check,cargo clippy --locked --all-targets -- -D warnings,node --check ui/window.js,py_compilecargo test --locked, 614 passed, 0 failed, at 807aef5; no NOT RUNwords.rscommentsRisks
searchedonce: after D128c — shell: the palette lists the meetings D127 finds by what was said, its passage beneath, Entrée at the line #1414 merges, this PR makes it ask again whilecompleteis false, with its check, before it is ready.Test sheet
Verifier: to be named by the coordinator — the sheet goes in a signed comment (D305).
🤖 Generated with Claude Code