Repository navigation
docs: record Phase 1's tasks and the review process in the process files - #48
Merged
Merged
Conversation
The commands now carry --locked and cargo deny, as ci.yml runs them. New rules cover written grants, other editors' Vim emulation, benchmark numbers and refreshing main's baseline. Refs: T-004
shubhook
marked this pull request as ready for review
November 28, 2026 17:04
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.
Task: T-004, tasks/TEMPLATE.md (process files). Documentation refresh, Thread D1.
PRD: none
What changed
Brings
docs/plan.md,AGENTS.md,tasks/TEMPLATE.mdand.github/pull_request_template.mdup to date with the process as PRs #34 to #45 ran it. All four files were last changed on 13 October 2026. Every edit is inside Khakha's grant, quoted under "Grants". Four commits, one per file, on main at3566348.docs/plan.md(04caafe)#[ignore]lines. New paragraphs cover follow-up tasks, written grants, the council, speed targets, controlled comparisons and main's baseline.AGENTS.md(88868b3).github/workflows/ci.yml:--lockedon test, clippy and bench, andcargo deny --all-features --locked check.cargo build --workspacestays, marked as a local step with no CI step of its own. A new paragraph says how CI's bench job runs.refresh.sh. Every existing rule is unchanged.tasks/TEMPLATE.md(855e66e)Adds "Choices made and rejected", after "Crates and public interface", and "Open questions for Khakha", at the end. That matches where T-109 and T-112 put them.
.github/pull_request_template.md(cdf4ec0)Adds
$ cargo bench -p helm-benchto "Commands run", a "Grants" section after "What changed", and a "Council review" section before "Agent and model". That's where PRs #38, #41, #42 and #45 put them.Where each claim comes from
tasks/006-bench-baseline.md; the same row PR #39 proposed under "Process notes"tasks/110-amend-transactions.mdtasks/111-t108-fixes.mdtasks/112-vscode-undo-groups.mdon PR #46's brancht3/t112-vscode-undo-groups-spec, not mergedtasks/114-t109-followups.mdREADME.mdStatus (PR #43); merges of PRs #39, #41, #42, #45 ingit log origin/maintasks/105totasks/110("Choices I made, and the ones I rejected" / "Choices I rejected"),tasks/109,tasks/112on PR #46tasks/109-vim-objects.md"Open questions for Khakha"; PR #37 and PR #40 "Open questions for Khakha";tasks/112on PR #46todo!()stubs and#[ignore]d tests; the implementer only deletes the ignore linestasks/110-amend-transactions.md"The rule for the implementer"; PR #34, PR #38 commit 3tasks/111andtasks/114Goalchunk_atgrant, commitbeecec4), PR #38 (Stage 0 and follow-up grants), PR #41 (finding 4, commit3b13012), PR #42 (a6c9cff), PR #45 (grant 3, commit012a0d4)4e92574before the round finished"; T-111 (PR #41)budgets.tomlis the only gate; 5% defaultcrates/helm-bench/budgets.toml;.github/workflows/ci.ymlbenchjobci.yml(ROUNDS: 3, "each side keeps its fastest median"); PR #38 "How the numbers are aggregated"; PR #35tasks/108Performance budget;tasks/109line 200;tasks/111Performance budgetnm, "The cause is in this PR, not noise"); PR #38 (instruction counts); PR #41 (same benchmark file, twoeditor/vim.rsversions); PR #42 (x86_64 instructions compared); PR #45 ("Since nothing passed the gate, I ran no controlled comparison")main.toml,refresh.sh <full sha>, 90-day artifact, nothing reads ittasks/006-bench-baseline.md;crates/helm-bench/baselines/refresh.shheader; PR #39; PR #447dedad4; PR #39 (council slot filled by Cursor Claude Opus 5.5)--lockedandcargo deny --all-features --locked check.github/workflows/ci.yml(cargo-denyjob runsEmbarkStudios/cargo-deny-actionwithcommand: check,arguments: --all-features --locked); run locally, see "Commands run":helpand running Vim, never another editor's emulationThe gate sentence
I left out "Phase 1's gate passed on ". No merged PR description, commit message or file records Khakha ruling that the gate passed.
README.md(PR #43) says "the Phase 1 gate is under review", andgit log origin/mainhas no commit about a gate ruling. Add the sentence when Khakha rules.The T-113 row
I left out T-113. The grant asks for its crate, PRD IDs and After "from its task file", and no task file for T-113 exists on main, on any branch of
origin, or in any PR. Proposed row, to add once its task file exists, with the values from that file:T-114's "Out of scope" says Khakha asked for a follow-up task to follow Vim's forward bracket search within the 1 MiB cap. I don't know that this is T-113, so I didn't fill anything in.
On the grant's wording
The grant says T-108 to T-114 use "Choices made and rejected" and "Open questions for Khakha". In the repo, "Choices" sections are in T-105 to T-110 (
tasks/111andtasks/114have none), and "Open questions for Khakha" is intasks/109only, plus T-112 on PR #46. T-108's open questions were in PR #37's description, not its task file. The template sections are added as granted, and the citation table above names the files that do have them.Protected paths
All four files are protected (
any docs/**,any .github/**,any tasks/**,any AGENTS.mdin.github/protected-paths.txt). The protected-paths check fails until Khakha adds theapproved-protectedlabel. I haven't added or removed any label.No new dependency, no
unsafe, no code. No crate, test, benchmark,budgets.toml, workflow,docs/prd.md,docs/research.md,tasks/112-*,tasks/113-*ortasks/2NN-*file changes.Grants
Khakha's Stage 0 grant, quoted word for word as the orchestrator relayed it:
The
tasks/andREADME.mditems belong to Thread D2, and this PR doesn't touch them.Proposals outside the grant
None of these is made in this PR. Each gives the exact text I would write.
Process files
docs/plan.md"In T3 Code" item 2 would change to match: "The thread's branch becomes the task's PR. Use a draft PR until CI is green, apart from a protected-paths check that waits only on your label."tasks/(format in tasks/TEMPLATE.md). It is the whole brief, apart from Khakha's answers and grants, which an orchestrator's brief may add."docs/plan.md"In T3 Code" item 1 would get the same clause.Co-authored-by: Cursor <cursoragent@cursor.com>afterRefs:(PR bench: commit main's benchmark baseline and a script to refresh it (T-006) #39 "Process notes", PR editor: fix the open council findings on T-108 (T-111) #41 round 2). That happened on this branch too, and I rebuilt the four commits withgit commit-treebefore pushing. Proposed new last paragraph: "Refs:is the last line. If your tool appends a trailer after it, rebuild the commit without it before you push.".github/pull_request_template.md, Commands run. The grant addscargo bench -p helm-benchas written, so the block's flags still differ from AGENTS.md. Proposed block:cargo deny check --all-features --locked. With cargo-deny 0.20.2 that exits with a usage error, because--all-featuresand--lockedare options ofcargo deny, not ofcheck. Proposed:cargo deny --all-features --locked check.:helpand Vim's behaviour. If Khakha wants that as a rule too, proposed sentence after the new Vim rule: "Don't read Vim's source either."tasks/109-vim-objects.md, open question 6 (Thread D2's file). It still reads "default: unbounded", but Khakha's answer on PR editor: Vim text objects, registers, . repeat, counted inserts and :w :q :e (T-109) #42, quoted intasks/114-t109-followups.md, capped the scan at 1 MiB. D2's grant covers this; I note it only so it isn't missed.Decisions table (proposal only; I changed no row)
ci.ymlcomment abovebench-plan). Proposed: "...and each benchmark in a PR is compared with its base commit on the same runner, since shared runners are too noisy for fixed millisecond limits or for comparing against earlier runs."gpui,Cargo.lockhas nogpuientry,crates/helm-uihas only path dependencies, and no PR from editor: implement VS Code keymap and cursor motions (T-107) #34 to editor: T-114, follow up Khakha's answers on PR #42 #45 mentions GPUI. The merged work kept platform and window concerns out of the headless crates: key events becomeKeyEventinhelm-ui(tasks/106lines 156 and 243), and T-109'sRequests andSession::set_clipboardleave files, windows and the pasteboard tohelm-ui(PR editor: T-109 spec: Vim text objects, registers, repeat, counted inserts and :w :q :e #40). That fits the decision but doesn't test it. The row's "version 0.2.2 on 13 October 2026" is a dated observation. Proposed: no change now. Phase 2's firsthelm-uitask records thegpuiversion it pins and checks it builds with the pinned toolchain (rust-toolchain.toml, 1.99.0). The row is updated then if the version differs.PRD (proposal only; I changed nothing in
docs/prd.md)tests/vim_normal.rs,vim_visual.rs,vim_objects.rs,vim_registers.rs,vim_repeat.rs,vim_ex.rs,vim_t114.rs, and oracles invim_oracle.rs), with rows run through Vim 9.1. Every difference is listed incrates/helm-editor/src/vim.rs"Measured against Vim": 8 of 234 normal-mode rows in T-108 (PR editor: add T-108 spec, Vim keymap and count stubs and acceptance tests #37), 4 of 204 rows in T-109 (PR editor: T-109 spec: Vim text objects, registers, repeat, counted inserts and :w :q :e #40), five kinds of multilined/cdifference in T-111 (PR editor: fix the open council findings on T-108 (T-111) #41), and four in T-114 (PR editor: T-114, follow up Khakha's answers on PR #42 #45). Khakha kept each one. Visual-modedandcweren't measured (vim.rs, T-111). Proposed acceptance: "Helm's tables of keystroke sequences and expected buffers pass. Rows are run through Vim 9.1, and every row that differs is listed invim.rs's 'Measured against Vim' with Khakha's decision."f,t,F,T,;,,andrare in v1. Khakha put them in their own task after T-109 (answer 6, quoted in PR editor: implement Vim modes, motions, operators and counts (T-108) #38), and no task file for them exists. Proposed requirement: "Vim keymap as a mode: normal, insert, visual and visual-line; motions includingftFT;,, operators,r, counts, text objects, registers,.repeat,:w:q:e". Or, if they wait past v1, list them under "Out of scope for v1".di(with no pair took 3.95 to 8.00 ms of command time on CI, with no rendering counted (PR editor: Vim text objects, registers, . repeat, counted inserts and :w :q :e (T-109) #42,vim_objects/di_paren_no_pair_10mb). T-114 capped the scan at 1 MiB for that reason, which makes Helm differ from Vim on purpose (PR editor: T-114, follow up Khakha's answers on PR #42 #45: 754.26 µs average of the means on its first run). The cap is per cursor, so N cursors with no pair can still read N × 2 MiB in one key (PR editor: T-114, follow up Khakha's answers on PR #42 #45, council round 1, finding 4). T-108, T-109, T-111 and T-114 cite NF-1 but time only the command, astasks/108says. Proposed target: "under 5 ms average over a scripted typing run, and no single key's command over 5 ms on a 10 MB file with one cursor". Proposed CI column unchanged.budgets.tomlapplies 5% to every criterion benchmark: rope, but alsocursor/,keymap/,editor/,vim/andvim_objects/. The gate is the fastest of three medians against base on one runner. Proposed row: "NF-7 | Rope edits, offset lookups and editing commands | no benchmark more than 5% slower than the PR's base commit |criterionmicrobenchmarks, base and head on one runner, fastest of three medians, thresholds inbudgets.toml". One more data point for Khakha: in PR editor: implement Vim modes, motions, operators and counts (T-108) #38, the sameresolvecode measured +4.48% and +5.02% on two runs, so the 5% line sits near run-to-run spread for some benchmarks.Commands run
Local, macOS (aarch64), at
04caafe..cdf4ec0. Documentation only, so the brief asked for fmt and build once.cargo test,cargo clippyandcargo bench -p helm-benchwere not run locally: no Rust, Cargo or benchmark file changed. CI runs them on this PR.Outside sources
cargo deny --help(cargo-deny 0.20.2), for the flag order.EmbarkStudios/cargo-deny-action'sargumentsandcommandinputs asci.ymluses them.Otherwise the repo and the descriptions of PRs #34 to #46.
Council review
None. This PR changes documentation only, and the brief said not to run one.
Agent and model
Cursor agent in T3 Code, Claude Opus 5.5 (
claude-opus-5-5), as Thread D1's implementation sub-agent. Neither changed during the thread.