Skip to content

tasks: record answers to Phase 1's open questions - #47

Merged
shubhook merged 3 commits into
mainfrom
t3/tasks-answers-refresh
Nov 29, 2026
Merged

shubhook merged 3 commits into
mainfrom
t3/tasks-answers-refresh

Conversation

@shubhook

Copy link
Copy Markdown
Owner

Task: none (Thread D2 of the documentation refresh). Task files touched: tasks/108-vim-modes.md, tasks/109-vim-objects.md

PRD: none

What changed

Documentation only. Two commits on main at 3566348:

  1. tasks: record answers to Phase 1's open questions. In tasks/108-vim-modes.md and tasks/109-vim-objects.md, each open question whose answer is in a merged PR's description or a later task file now has the answer beside it, with its source.
  2. docs: add T-114 to README status. One line in the Status list, in the list's existing shape. That shape uses an em dash before "done", like every other line in the list.

No other line changes. No task's interface, rules, acceptance tests or budget text changes. No crate, test, benchmark, budgets.toml, workflow, docs/ file, or task file 112, 113 or 2NN is touched. No new dependency and no unsafe.

I read every task file from 006 to 114 (except 112 and 113), README.md, and the descriptions of merged PRs #37 to #45. For T-101 to T-107 I also read the descriptions of their own spec and implementation PRs (#16, #18 to #26 and #28 to #34), to look for answers given before #37.

Questions and answers

Task Question Answer or "still open" Source
T-006 None in the file
T-101 to T-105 None in the files
T-106 A broken chord drops the breaking key too. "Easy to change later if Khakha prefers." Still open No answer in PRs #29, #30 or #37 to #45
T-107 The 39 bindings were written from memory, not checked against VS Code's published keybindings: "check any that look off" Still open PR #32 repeats it. No answer found
T-107 WordRight stops at a line break, where VS Code's cursorWordEndRight may jump to the next word's end. Not checked against VS Code Still open No answer found
T-107 cmd-backspace deletes to smart Home, where VS Code's deleteAllLeft may differ. Not checked against VS Code Still open PR #34 (R5) flagged it for the spec again. No answer found
T-107 Performance budget: "No absolute limit is gated, but both should be far under a millisecond" Answered on PR #34: "a criterion mean strictly under 500 µs per iteration on the CI ubuntu-latest bench job. Aim for approximately 275 µs." Not recorded in the file: that would change budget text, which the grant excludes. See the proposals below PR #34, "Explicit performance acceptance (Khakha)"
T-108 Q1: the count in CommandArgs Granted. Already recorded in the file PR #38, answer 1
T-108 Q2: a wildcard arm in tests/chunk_motions.rs and tests/chunk_crossings.rs, so Vim's motions can become Motion variants Not granted: "Keep Vim's motions as command ids with a crate-private enum, as the spec says." Recorded in this PR PR #38, answer 2
T-108 Q3: de and dE at the end of the text Granted. Already recorded in the file PR #38, answer 3
T-108 Q7: keep the three vim/ targets, restate them, or drop them Keep: "Keep the three vim/ targets as ungated review aids, unchanged; report their CI means against them." Recorded in this PR PR #38, answer 7
T-108 Q7: five more benchmarks Added, gated by the 5% default only. Already recorded in the file PR #38, answer 7
T-108 Q6: which task owns f, t, F, T, ;, , and r Their own task after T-109. Already in T-108's and T-109's "Out of scope" PR #38, answer 6
T-108 Q4 (ctrl-r cursor), Q5 (cj and ck), Q8 (other differences from Vim), Q9 (open undo groups on a keymap switch), Q10 (Vim: titles). These were PR #37's questions. The task file states them as choices, not as open questions "Questions 4, 5, 8, 9 and 10: keep the spec's current choices for now." No edit needed in the task file. vim.rs still calls two of them open; see the proposals below PR #38
T-108 vim/w_b missed its target: "Khakha decides whether w_b needs more work" (PR #38's description, not the task file) Fixed by T-111. Already recorded in tasks/111-t108-fixes.md, finding 6 PR #41
T-109 Q1: CommandArgs::register and the tests/commands.rs literals Granted. Already recorded in the file PR #42 grant, quoted in the task file
T-109 Q2: T-108's pinned keymap and lists Option (a). Already recorded in the file. The stale "That leaves open question 2 open" bullet now points to the answer (this PR) PR #42 grant
T-109 Q3: request shape Default kept. Recorded in this PR PR #42 grant: "Questions 3 to 8: keep the spec's defaults."
T-109 Q4: . after a visual change Default kept: out of T-109. Recorded in this PR PR #42 grant
T-109 Q5: unnamed register and the clipboard Default kept: apart. Recorded in this PR PR #42 grant
T-109 Q6: bracket objects with no pair First the default was kept (unbounded). Then: "cap the scan at 1 MiB in each direction from the cursor, and treat a capped scan as no pair." Recorded in this PR PR #42 grant, then Khakha's answer 1 to PR #42's questions, quoted in tasks/114-t109-followups.md and PR #45
T-109 Q7: the name Session Default kept. Recorded in this PR PR #42 grant
T-109 Q8: speed targets Default kept: none. Recorded in this PR PR #42 grant
T-109 PR #42's own questions (not in the task file): the 1 GiB put limit, repeated visual bracket objects, backslash parity before a quote Keep the limit; grow to the next pair out; odd backslashes escape. Already recorded in tasks/114-t109-followups.md Khakha's answers 2 to 4 to PR #42, quoted in PR #45
T-110 None in the file ("Phase 7 decides" on streaming agent edits isn't a question for Khakha)
T-111 Finding 4: benchmark edit Granted. Already recorded in the file PR #41
T-111 Finding 7: the five multiline differences Keep all five. Already recorded in the file PR #41
T-111 Finding 8 (the transaction clone) Not a question for Khakha. Left to Stream K, as the file says
T-114 Answers 1 to 5 to PR #42's questions Already quoted and carried out in the file PR #45
T-114 Vim's forward search for a pair A follow-up task. Already recorded in "Out of scope" PR #45, grant 2

Still open

  1. T-106: whether a broken chord should keep dropping the breaking key (VS Code's behaviour) or resolve it on its own.
  2. T-107: whether the 39 bindings match VS Code's published macOS keybindings.
  3. T-107: whether WordRight at a line end should follow VS Code's cursorWordEndRight.
  4. T-107: whether cmd-backspace should follow VS Code's deleteAllLeft from column 0 of an indented line, rather than deleting to smart Home (also PR editor: implement VS Code keymap and cursor motions (T-107) #34, R5).

Proposals outside the grant

None of these is made in this PR. Each needs its own grant, since the files are crate source, an existing test file or task budget text.

  1. crates/helm-editor/src/vim.rs, lines 263 and 264. Khakha kept this choice (PR editor: add T-108 spec, Vim keymap and count stubs and acceptance tests #37 question 5, answered in PR editor: implement Vim modes, motions, operators and counts (T-108) #38). Replace "That is an open question for Khakha." with:

    Khakha kept this choice (answer 5 on PR editor: add T-108 spec, Vim keymap and count stubs and acceptance tests #37, quoted in PR editor: implement Vim modes, motions, operators and counts (T-108) #38).

  2. crates/helm-editor/src/vim.rs, line 340. Replace "are the choices this spec makes on purpose, or held for Khakha:" with:

    are the choices this spec makes on purpose. Khakha kept each one (answers 4, 5 and 8 on PR editor: add T-108 spec, Vim keymap and count stubs and acceptance tests #37, quoted in PR editor: implement Vim modes, motions, operators and counts (T-108) #38):

  3. crates/helm-editor/tests/vim_harness/mod.rs, lines 13 to 17 (PR editor: T-114, follow up Khakha's answers on PR #42 #45 also noted these were stale). Replace "[keymap] and [registry] are the only places these tests name the keymap and the registry. Open question 2 of tasks/109-vim-objects.md decides whether T-109's bindings join vim::keymap() and with_vim_commands(), or live in new functions; only these two lines would change." with:

    [keymap] and [registry] are the only places these tests name the keymap and the registry. Khakha answered open question 2 of tasks/109-vim-objects.md with option (a), so T-109's bindings joined vim::keymap() and with_vim_commands().

  4. tasks/107-vscode-keymap.md, "Performance budget". After "No absolute limit is gated, but both should be far under a millisecond.", add:

    Khakha later set an explicit acceptance on PR editor: implement VS Code keymap and cursor motions (T-107) #34: each benchmark's criterion mean strictly under 500 µs per iteration on the CI ubuntu-latest bench job, aiming for about 275 µs. The gate still checks only the 5% budget.

Grants

Khakha's Stage 0 grant for this refresh, quoted:

Grant from Khakha for the documentation refresh, 28 November 2026:

  • Thread D1 may edit docs/plan.md, AGENTS.md, tasks/TEMPLATE.md and .github/pull_request_template.md. Thread D2 may edit tasks/006-bench-baseline.md, tasks/101-.md to tasks/111-.md, tasks/114-*.md and README.md.
  • In docs/plan.md: add rows to 'First tasks' for T-006, T-110, T-111 and T-114 as done, and for T-112 and T-113 as planned, each with crate, PRD IDs and After from its task file; update the paragraph above the table so it says the table now covers Phase 1 and its follow-ups. Add a short status line under the Roadmap table: Phase 1's code is complete, with every task listed merged. [Keep the next sentence only if I have ruled on the gate:] Phase 1's gate passed on . Update 'How agents do the work' and 'In T3 Code' to describe the process as it now runs: the three-delegate council and when it applies, written grants for edits to protected files, quoted in the PR; speed targets as ungated review aids with only budgets.toml's gate; bench-compare's fastest of three medians; a controlled comparison before a regression is called noise; the committed baseline in crates/helm-bench/baselines/ and its refresh script; and the agent fallback when one hits its usage limit. Don't change the Decisions table.
  • In AGENTS.md: make the Commands section match .github/workflows/ci.yml (including cargo deny check and --locked), and add rules for written grants, not reading another editor's Vim emulation, reporting benchmark numbers (CI artifact, labelled local, mean or fastest median named), and refreshing the baseline. Keep every existing rule.
  • In tasks/TEMPLATE.md: add 'Choices made and rejected' and 'Open questions for Khakha' sections, as T-108 to T-114 use them.
  • In .github/pull_request_template.md: add cargo bench -p helm-bench to Commands run, and add 'Grants' and 'Council review' sections.
  • In tasks/ files: where an open question has an answer recorded in a merged PR's description or a later task file, mark it answered and quote or cite the answer. Don't change any task's interface, rules, acceptance tests or budget text.
  • In README.md: add T-114 to the Status list.

Anything else goes into the PR description as a proposal."

This PR uses the D2 lines: the tasks/ bullet and the README bullet.

Protected paths

This PR changes tasks/108-vim-modes.md and tasks/109-vim-objects.md, which match any tasks/** in .github/protected-paths.txt. The protected-paths check fails until Khakha adds the approved-protected label. I haven't added or removed any label. README.md isn't protected.

Council review

None. This PR changes documentation only, and the brief says not to run a council for it.

Commands run

Local, macOS (aarch64), on head da0729d. The brief asks for these two only, to show nothing else changed. CI runs the full set.

$ cargo fmt --all --check     # exit 0
$ cargo build --workspace     # exit 0
$ cargo test --workspace      # not run locally: no Rust file changed
$ cargo clippy --workspace --all-targets -- -D warnings   # not run locally: no Rust file changed
$ cargo bench -p helm-bench   # not run locally: no Rust file changed

Outside sources

None. Every answer comes from this repo's task files and the descriptions of PRs #16 to #45.

Agent and model

Cursor agent, Claude Opus 5.5 (claude-opus-5-5), as a T3 Code sub-agent (Thread D2). No change during the thread. The harness added a Co-authored-by: Cursor trailer after Refs: to both commits. Before pushing, I rebuilt them with git commit-tree so that Refs: none is the last line.

T-108: Khakha's answers 2 and 7 on PR #37, quoted in PR #38, now sit
beside the Motion-variant and speed-target questions. T-109: questions
3 to 8 are marked answered, and question 6 records the 1 MiB cap from
Khakha's answers to PR #42, which T-114 carried out.

Refs: none
@shubhook
shubhook marked this pull request as ready for review November 28, 2026 17:00
@shubhook shubhook added the approved-protected Khakha approves a change to a protected path. Agents never add or remove it. label Nov 28, 2026
@shubhook
shubhook merged commit 608813e into main Nov 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-protected Khakha approves a change to a protected path. Agents never add or remove it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant