Tasks write actions for the UI port: move, reorder, rename, version, bulk move, delete, duplicate (on the executor) #894

Closed
kayg wants to merge 4 commits from feat/tasks-actions into dev
Owner

W1/W2 follow-up plan

The accepted Tasks decisions require a per-device LIFO sequence of returned undo steps. The client owns that sequence; the server validates each job's author and returns the affected/skipped task ids so a same-line edit from another device can be reported without discarding unrelated reversals. tasks.set-status, tasks.set-status-many, move and move-many must all return usable undo steps.

tasks.delete will remove the task note and its owning checkbox/session relationship lines through one bounded exact-byte plan. Its durable restore record keeps each source note id, path, exact removed text, target bindings and nearby anchors. Undo and Trash Restore use that same record: resolve by note id, restore by block id then nearest surviving line, and fall back to the end of today's daily note with a notice if the source is gone. Existing plain links and session prose stay intact.

Size, cost and limits

  • Undo conflict handling: M, bounded by the action's changed notes and exact splices; it does not scan the Home or add work to typing/list reads.
  • Delete and Restore: L, at most 1,024 notes and the existing 64 MiB action image cap. Candidate sources come from the task/link index. Restore anchor lookup is limited to removed lines and indexed note bytes; it runs only on Restore/Undo.
  • Keep the existing note and splice caps, journal replay, author checks, and byte-preservation rules. No bundle or perf budget changes are part of this plan.
failure effect detection recovery test
another device changes one affected task line only that line's undo is skipped with a notice; unrelated steps still reverse stable task/block identity and current line bytes preserve the newer line and return skipped ids cross-device same-line and unrelated-line undo tests
source note is renamed or an anchor moved restore could land at a stale path note id plus block/neighbor anchors resolve id, then nearest surviving anchor rename and moved-anchor restore tests
source note was deleted no original destination remains source id absent from the live index append to today's daily note and report the destination deleted-source fallback test
task/source changes during delete planning no half-delete room version and exact pre-image guards return conflict; caller refreshes and retries stale-version preservation test
crash or repeated request during delete/restore line or task note could be duplicated durable plan, job receipt and line identity replay the same job and step keys crash-point and duplicate-restore tests
action exceeds note/byte cap partial graph would be visible cap check before admission reject before any write 1,024-note and 64 MiB cap tests

The gates remain Rust on dev-01 plus fresh Notes-save, typing and Tasks-list ABAB against dev. No READY is posted until those gates and the required UI gates for any UI slice pass.

Rework after review 76844 (recommendation c)

This rework follows the independent review 76844 (2 P1, 6 P2, 4 P3) and the plan in #808: every task note write goes through the one exact-byte executor that is already on dev (crates/notes/src/write_executor/). Work is in two steps.

Step 1a: shipped (gates and perf in the comments)

action what it writes undo
version on tasks.list / tasks.get rows nothing –
tasks.move ONE executor transaction: status, completed, scheduled and the owning checkbox lines on exact bytes, then the rank tasks.undo {job} (recorded inverse bytes), then tasks.reorder {restore}
tasks.move-many ONE executor transaction for every task that plans; a stale or unplannable task is skipped before anything is written tasks.undo {job}
tasks.undo (new) submits the recorded inverse splices of your own committed move as a new transaction; refuses whole if any note it touched or read changed since – (a repeat replays its receipt)
tasks.reorder one row in order.db, a whole group the first time tasks.reorder {restore}
tasks.update { title } notes.rename_task job, title sent alone notes.undo {job}
tasks.delete (1b) the task note to the Trash as ONE exact executor transaction, lines stay notes.restore {id}
tasks.duplicate (1b) a new note only: todo, fresh block ids; refused with subtasks tasks.delete of the copy
finding fix test
P1-1, P1-2, P2-4 delete.rs, duplicate.rs, lines.rs deleted, actions removed from the contract – (rebuilt in 1b)
P2-1 status+When not atomic, replay can't finish status::plan_targets plans both as one splice set; status_action::execute submits one plan; a retry replays the recorded plan review_76844_p2_1_status_and_when_are_one_transaction
P2-2 undo re-renders, not exact tasks.undo = recorded inverse bytes; moves accept only someday/todo review_76844_p2_2_undo_restores_exact_bytes, undo_refuses_after_a_later_edit_and_writes_nothing
P2-3 When-only edit unguarded goes through the same executor path (version + full pre-image) review_76844_p2_3_date_only_move_refuses_a_changed_note
P2-5 rank/group unchecked, between can loop ranks: 1–256 of the 62 digits, never ending in 0; between bounded and returns None; forward drags check the task, its neighbours and order against the task index group (new optional today/group_by/group_tag) review_76844_p2_5_bad_ranks_are_refused_and_between_always_ends, review_76844_p2_5_reorder_refuses_bad_ranks_and_other_groups, order_and_restore_name_each_task_once
P2-6 mixed line endings a note mixing LF and CRLF that would change is refused (its room keeps one ending, so the executor can't place it byte-exact); nothing is written review_76844_p2_6_mixed_line_endings_refuse_and_keep_bytes
P3-1 rename by status: key Notes::rename_task only for ids the tasks index lists; other notes keep the H1 rename review_76844_p3_rename_is_for_tasks_only_and_alone
P3-2 title + keys as two steps title must be sent alone same test
P3-3, P3-4 went away with delete/duplicate –

Decisions

  • Hand-typed unquoted dates (scheduled: 2026-10-20) are opaque leaves for the strict writer, which won't replace them. That move refuses with "edit in source mode" and keeps every byte (a_hand_typed_unquoted_date_refuses_and_keeps_bytes). Dates Calternal writes are quoted and move fine. Widening the strict grammar is a Calendar/Tasks decision.
  • The strict writer JSON-quotes the keys it changes ("status": "todo"). This is existing B1 behavior on dev; undo restores the old spelling exactly.
  • Moves no longer stamp last edited. tz is still accepted. This matches tasks.set-status.
  • Rank and file stay two steps. The executor still refuses rank participants (#808), so a move's rank is written after its file transaction, and its undo is a second step.

Step 1b: shipped (interim delete + duplicate; gates 76937, perf 76971)

Delete = Trash the task note as an executor participant; leave its lines. The offline executor already places a removal as a journaled, recoverable rename that keeps the displaced inode (recovery.rs::finish_inner). The Home layer refuses post: None today, so 1b adds a Trash participant there:

  • room/executor.rs: imaging a post: None note checks the pre-image and binding as today. The image is marked trash (serde default, so old records still load).
  • Payload::validate: a Trash image has no update, and its state equals the pre-state.
  • Publication (after COMMIT, replayed by recovery until published):
    • Trash/<id>.md is a hard link to the retained inode (exact bytes, no copy), plus <id>.json. Both steps are idempotent.
    • links::remember runs for the departed path.
    • The room closes, as after Cmd::Trash.
    • The index row is forgotten, and deleted goes into the same record_once batch.
    • History is kept.
  • Undo is notes.restore {id}, the existing Trash restore job: it brings back the same id and the exact bytes. A strict executor inverse needs Home creation, which is step 2.
  • Owning lines stay and read as "in Trash" (ADR 0066).

Sizes: one participant, O(note bytes) to image; placement is O(1) renames.

failure effect detection recovery test
task changed after the client read refused before PREPARE, nothing written version + ExpectedRoom + full pre-image refetch stale-edit delete test
typing during placement can't land room lease – lease test
outside edit races placement rolled back, displaced bytes kept executor displaced-bytes check recovery rollback crash/race test
crash before COMMIT file back from evidence journal Prepared rollback crash-point matrix
crash after COMMIT, before publication Trash entry missing for a while; note stays blocked published = false recovery publishes (idempotent) crash-point matrix
Trash slot occupied by other bytes publication pending, note blocked, reported existing occupied check manual occupied-slot test

Duplicate = new note only. Nothing existing is written, so it needs no executor participant:

  • read the source note (version-checked);
  • refuse if the shared parsed view finds an owning task link in the body;
  • re-key every block id across the whole body;
  • set status: todo and drop completed;
  • create it through tasks.create's path, with an id derived from the key.

Undo is notes.undo of that create job.

Step 2: full version (after 1b)

  • Delete also removes clean owning lines, with #799's parsed extent (the blank-line + indented-paragraph case) and #798's owner classification, as exact splices in the same executor transaction.
  • Duplicate gets #798's block-ID re-keying, so no subtask ever has two owners.
  • Tests: every reviewer probe from #798 and #799 carried over, plus a test per P1/P2 scenario of 76844. Then #798 and #799 get a "superseded" comment.

Gates

Exact commands and results are posted as comments, never committed:

  • cargo fmt --all -- --check
  • cargo clippy -p calternal-tasks -p calternal-notes -p calternal-engine -p calternal --all-targets -- -D warnings
  • cargo test -p calternal-tasks, -p calternal-engine, -p calternal-notes
  • cargo test -p calternal contract and node apps/web/scripts/action-types.mjs --check
  • perf: tasks-write-bench on a perf VM under perf-lock (gate: tasks.reorder_ack p95 ≤ 15 ms)

Never merge.

🤖 Generated with Claude Code

## W1/W2 follow-up plan The accepted Tasks decisions require a per-device LIFO sequence of returned undo steps. The client owns that sequence; the server validates each job's author and returns the affected/skipped task ids so a same-line edit from another device can be reported without discarding unrelated reversals. `tasks.set-status`, `tasks.set-status-many`, move and move-many must all return usable undo steps. `tasks.delete` will remove the task note and its owning checkbox/session relationship lines through one bounded exact-byte plan. Its durable restore record keeps each source note id, path, exact removed text, target bindings and nearby anchors. Undo and Trash Restore use that same record: resolve by note id, restore by block id then nearest surviving line, and fall back to the end of today's daily note with a notice if the source is gone. Existing plain links and session prose stay intact. ### Size, cost and limits - Undo conflict handling: **M**, bounded by the action's changed notes and exact splices; it does not scan the Home or add work to typing/list reads. - Delete and Restore: **L**, at most 1,024 notes and the existing 64 MiB action image cap. Candidate sources come from the task/link index. Restore anchor lookup is limited to removed lines and indexed note bytes; it runs only on Restore/Undo. - Keep the existing note and splice caps, journal replay, author checks, and byte-preservation rules. No bundle or perf budget changes are part of this plan. | failure | effect | detection | recovery | test | | --- | --- | --- | --- | --- | | another device changes one affected task line | only that line's undo is skipped with a notice; unrelated steps still reverse | stable task/block identity and current line bytes | preserve the newer line and return skipped ids | cross-device same-line and unrelated-line undo tests | | source note is renamed or an anchor moved | restore could land at a stale path | note id plus block/neighbor anchors | resolve id, then nearest surviving anchor | rename and moved-anchor restore tests | | source note was deleted | no original destination remains | source id absent from the live index | append to today's daily note and report the destination | deleted-source fallback test | | task/source changes during delete planning | no half-delete | room version and exact pre-image guards | return conflict; caller refreshes and retries | stale-version preservation test | | crash or repeated request during delete/restore | line or task note could be duplicated | durable plan, job receipt and line identity | replay the same job and step keys | crash-point and duplicate-restore tests | | action exceeds note/byte cap | partial graph would be visible | cap check before admission | reject before any write | 1,024-note and 64 MiB cap tests | The gates remain Rust on dev-01 plus fresh Notes-save, typing and Tasks-list ABAB against dev. No READY is posted until those gates and the required UI gates for any UI slice pass. ## Rework after review 76844 (recommendation c) This rework follows the independent review [76844](https://git.kayg.org/kayg/calternal/pulls/894#issuecomment-76844) (2 P1, 6 P2, 4 P3) and the plan in #808: every task note write goes through the one exact-byte executor that is already on dev (`crates/notes/src/write_executor/`). Work is in two steps. ### Step 1a: shipped (gates and perf in the comments) | action | what it writes | undo | |---|---|---| | `version` on `tasks.list` / `tasks.get` rows | nothing | – | | `tasks.move` | ONE executor transaction: `status`, `completed`, `scheduled` and the owning checkbox lines on exact bytes, then the rank | `tasks.undo {job}` (recorded inverse bytes), then `tasks.reorder {restore}` | | `tasks.move-many` | ONE executor transaction for every task that plans; a stale or unplannable task is `skipped` before anything is written | `tasks.undo {job}` | | `tasks.undo` (new) | submits the recorded inverse splices of your own committed move as a new transaction; refuses whole if any note it touched or read changed since | – (a repeat replays its receipt) | | `tasks.reorder` | one row in `order.db`, a whole group the first time | `tasks.reorder {restore}` | | `tasks.update { title }` | `notes.rename_task` job, title sent alone | `notes.undo {job}` | | `tasks.delete` (1b) | the task note to the Trash as ONE exact executor transaction, lines stay | `notes.restore {id}` | | `tasks.duplicate` (1b) | a new note only: todo, fresh block ids; refused with subtasks | `tasks.delete` of the copy | | finding | fix | test | |---|---|---| | P1-1, P1-2, P2-4 | `delete.rs`, `duplicate.rs`, `lines.rs` deleted, actions removed from the contract | – (rebuilt in 1b) | | P2-1 status+When not atomic, replay can't finish | `status::plan_targets` plans both as one splice set; `status_action::execute` submits one plan; a retry replays the recorded plan | `review_76844_p2_1_status_and_when_are_one_transaction` | | P2-2 undo re-renders, not exact | `tasks.undo` = recorded inverse bytes; moves accept only `someday`/`todo` | `review_76844_p2_2_undo_restores_exact_bytes`, `undo_refuses_after_a_later_edit_and_writes_nothing` | | P2-3 When-only edit unguarded | goes through the same executor path (version + full pre-image) | `review_76844_p2_3_date_only_move_refuses_a_changed_note` | | P2-5 rank/group unchecked, `between` can loop | ranks: 1–256 of the 62 digits, never ending in `0`; `between` bounded and returns `None`; forward drags check the task, its neighbours and `order` against the task index group (new optional `today`/`group_by`/`group_tag`) | `review_76844_p2_5_bad_ranks_are_refused_and_between_always_ends`, `review_76844_p2_5_reorder_refuses_bad_ranks_and_other_groups`, `order_and_restore_name_each_task_once` | | P2-6 mixed line endings | a note mixing LF and CRLF that would change is refused (its room keeps one ending, so the executor can't place it byte-exact); nothing is written | `review_76844_p2_6_mixed_line_endings_refuse_and_keep_bytes` | | P3-1 rename by `status:` key | `Notes::rename_task` only for ids the tasks index lists; other notes keep the H1 rename | `review_76844_p3_rename_is_for_tasks_only_and_alone` | | P3-2 title + keys as two steps | `title` must be sent alone | same test | | P3-3, P3-4 | went away with delete/duplicate | – | **Decisions** - **Hand-typed unquoted dates** (`scheduled: 2026-10-20`) are opaque leaves for the strict writer, which won't replace them. That move refuses with "edit in source mode" and keeps every byte (`a_hand_typed_unquoted_date_refuses_and_keeps_bytes`). Dates Calternal writes are quoted and move fine. Widening the strict grammar is a Calendar/Tasks decision. - **The strict writer JSON-quotes the keys it changes** (`"status": "todo"`). This is existing B1 behavior on dev; undo restores the old spelling exactly. - **Moves no longer stamp `last edited`.** `tz` is still accepted. This matches `tasks.set-status`. - **Rank and file stay two steps.** The executor still refuses rank participants (#808), so a move's rank is written after its file transaction, and its undo is a second step. ### Step 1b: shipped (interim delete + duplicate; gates 76937, perf 76971) **Delete = Trash the task note as an executor participant; leave its lines.** The offline executor already places a removal as a journaled, recoverable rename that keeps the displaced inode (`recovery.rs::finish_inner`). The Home layer refuses `post: None` today, so 1b adds a Trash participant there: - `room/executor.rs`: imaging a `post: None` note checks the pre-image and binding as today. The image is marked `trash` (serde default, so old records still load). - `Payload::validate`: a Trash image has no update, and its state equals the pre-state. - Publication (after COMMIT, replayed by recovery until `published`): - `Trash/<id>.md` is a hard link to the retained inode (exact bytes, no copy), plus `<id>.json`. Both steps are idempotent. - `links::remember` runs for the departed path. - The room closes, as after `Cmd::Trash`. - The index row is forgotten, and `deleted` goes into the same `record_once` batch. - History is kept. - Undo is `notes.restore {id}`, the existing Trash restore job: it brings back the same id and the exact bytes. A strict executor inverse needs Home creation, which is step 2. - Owning lines stay and read as "in Trash" (ADR 0066). Sizes: one participant, O(note bytes) to image; placement is O(1) renames. | failure | effect | detection | recovery | test | |---|---|---|---|---| | task changed after the client read | refused before PREPARE, nothing written | version + `ExpectedRoom` + full pre-image | refetch | stale-edit delete test | | typing during placement | can't land | room lease | – | lease test | | outside edit races placement | rolled back, displaced bytes kept | executor displaced-bytes check | recovery rollback | crash/race test | | crash before COMMIT | file back from evidence | journal `Prepared` | rollback | crash-point matrix | | crash after COMMIT, before publication | Trash entry missing for a while; note stays blocked | `published = false` | recovery publishes (idempotent) | crash-point matrix | | Trash slot occupied by other bytes | publication pending, note blocked, reported | existing occupied check | manual | occupied-slot test | **Duplicate = new note only.** Nothing existing is written, so it needs no executor participant: - read the source note (version-checked); - refuse if the shared parsed view finds an owning task link in the body; - re-key every block id across the whole body; - set `status: todo` and drop `completed`; - create it through `tasks.create`'s path, with an id derived from the key. Undo is `notes.undo` of that create job. ### Step 2: full version (after 1b) - **Delete** also removes clean owning lines, with #799's parsed extent (the blank-line + indented-paragraph case) and #798's owner classification, as exact splices in the same executor transaction. - **Duplicate** gets #798's block-ID re-keying, so no subtask ever has two owners. - **Tests:** every reviewer probe from #798 and #799 carried over, plus a test per P1/P2 scenario of 76844. Then #798 and #799 get a "superseded" comment. ### Gates Exact commands and results are posted as comments, never committed: - `cargo fmt --all -- --check` - `cargo clippy -p calternal-tasks -p calternal-notes -p calternal-engine -p calternal --all-targets -- -D warnings` - `cargo test -p calternal-tasks`, `-p calternal-engine`, `-p calternal-notes` - `cargo test -p calternal contract` and `node apps/web/scripts/action-types.mjs --check` - perf: `tasks-write-bench` on a perf VM under `perf-lock` (gate: `tasks.reorder_ack` p95 ≤ 15 ms) Never merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tasks: action tests
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
fcd89a7f02
Author
Owner

Gates at 3928a30e (dev-01, Nix shell, through ~/bin/slot)

gate command result
fmt cargo fmt --all --check pass
clippy cargo clippy --workspace --all-targets -j4 -- -D warnings pass (0 errors; first run found 5, fixed)
tasks tests cargo test -j4 -p calternal-tasks 89 passed, 0 failed (14 new in actions_tests + reorder/tests)
notes / calternal / engine cargo test -j4 -p calternal-tasks -p calternal-notes -p calternal -p calternal-engine (run at the previous head 54a92182, only clippy-only edits since) notes 547 passed, tasks 89, rest ok; 0 failed
contract cargo test -j4 -p calternal contract_matches_the_server pass (contracts/actions.json regenerated: +6 actions, tasks.update gains title)
web types node apps/web/scripts/action-types.mjs --check pass (actions.gen.ts regenerated, committed)

New tests cover: row version equals notes.get's and a tick with it works with no notes.get; rename (title, heading, file, links, undo, no H1 added, bad titles); reorder (one row, no file written, replay, group without ranks, stale undo refused); move (stale refused with bytes unchanged, only the date line changes, clear, undo, Someday ↔ day, placement + undo); move-many (per-item results, a stale item skipped, undo); delete (exact bytes, Trash, replay, undo byte for byte, odd lines left, last line without newline); duplicate (copy bytes, history cleared, line inserted, replay, undo, task with no line).

Findings while testing (fixed in the PR): the status executor refuses when the room has unflushed bytes, so tasks.move saves the room first; last edited stamps on flush change the version, so the version handed back for Undo is read after the flush.

## Gates at `3928a30e` (dev-01, Nix shell, through `~/bin/slot`) | gate | command | result | |---|---|---| | fmt | `cargo fmt --all --check` | pass | | clippy | `cargo clippy --workspace --all-targets -j4 -- -D warnings` | pass (0 errors; first run found 5, fixed) | | tasks tests | `cargo test -j4 -p calternal-tasks` | 89 passed, 0 failed (14 new in `actions_tests` + `reorder/tests`) | | notes / calternal / engine | `cargo test -j4 -p calternal-tasks -p calternal-notes -p calternal -p calternal-engine` (run at the previous head `54a92182`, only clippy-only edits since) | notes 547 passed, tasks 89, rest ok; 0 failed | | contract | `cargo test -j4 -p calternal contract_matches_the_server` | pass (`contracts/actions.json` regenerated: +6 actions, `tasks.update` gains `title`) | | web types | `node apps/web/scripts/action-types.mjs --check` | pass (`actions.gen.ts` regenerated, committed) | New tests cover: row `version` equals `notes.get`'s and a tick with it works with no `notes.get`; rename (title, heading, file, links, undo, no H1 added, bad titles); reorder (one row, no file written, replay, group without ranks, stale undo refused); move (stale refused with bytes unchanged, only the date line changes, clear, undo, Someday ↔ day, placement + undo); move-many (per-item results, a stale item skipped, undo); delete (exact bytes, Trash, replay, undo byte for byte, odd lines left, last line without newline); duplicate (copy bytes, history cleared, line inserted, replay, undo, task with no line). Findings while testing (fixed in the PR): the status executor refuses when the room has unflushed bytes, so `tasks.move` saves the room first; `last edited` stamps on flush change the version, so the version handed back for Undo is read after the flush.
Author
Owner

Perf: tasks.list with version, 10k notes + 10k tasks (perf-01, under perf-lock)

tasks-bench --notes 10k --runs 3, release binaries built on dev-01 (cargo build --release --locked -p calternal-perf --bin tasks-bench), relayed through the control host, sha256 checked on both ends. base = origin/dev 41f2efa3 (51eb4a22…), branch = 3928a30e (ce183533…). Alternated base, branch, base, branch in one session, same fixture Home. 200 tasks.list calls per list per run; the lists go through the real engine, so they include the version lookup.

list (n=200 rows, p50 / p95 ms) base run 1 base run 2 branch run 1 branch run 2
anytime 1.80 / 2.05 1.82 / 2.02 2.10 / 2.39 2.10 / 2.69
today 2.38 / 2.68 2.23 / 2.48 2.55 / 2.88 2.57 / 2.90
upcoming 2.23 / 2.49 2.27 / 2.57 2.52 / 2.78 2.49 / 2.83
someday 1.75 / 1.92 1.86 / 2.29 2.11 / 2.62 2.07 / 2.47
tag 2.21 / 2.66 2.26 / 3.56 2.52 / 3.01 2.44 / 2.83
today_by_priority 2.17 / 2.83 2.26 / 2.80 2.39 / 2.63 2.37 / 2.69

Cost of version: about +0.2 to +0.35 ms at p50 (≈ +10–18 %) for a 200-row page (one updates_by_note lookup per row in one blocking call). Every list stays under 3.1 ms p95 here. GATE tasks.list, tasks.counts and tasks.describe: PASS in all four runs. These are the bench's own gates, so the task's "no regression beyond the gate" holds.

Not caused by this PR, same on base: GATE cold.index growth <= 10% FAILS in all four runs (base +19.8 % / +17.7 %, branch +18.9 % / +20.2 %: the tasks pass costs ~19 % of cold indexing, unchanged). GATE tasks.update FAILED once on base (run 2) and once on branch (run 2) and passed the other two; it is flaky on this VM, with no code path of this PR in it.

Not measured here: the new write actions (move, reorder, delete, duplicate) have no bench yet; ADR 0066 lists tasks.reorder_ack ≤ 15 ms p95 with no file written, which reorder_moves_one_row… asserts functionally (no file written) but does not time. Timing belongs on the perf VM in a follow-up.

Raw outputs are kept on perf-01 at ~/perf/ta-keep/; the seeded Home and the binaries were removed.

## Perf: `tasks.list` with `version`, 10k notes + 10k tasks (perf-01, under `perf-lock`) `tasks-bench --notes 10k --runs 3`, release binaries built on dev-01 (`cargo build --release --locked -p calternal-perf --bin tasks-bench`), relayed through the control host, sha256 checked on both ends. **base** = `origin/dev` `41f2efa3` (`51eb4a22…`), **branch** = `3928a30e` (`ce183533…`). Alternated base, branch, base, branch in one session, same fixture Home. 200 `tasks.list` calls per list per run; the lists go through the real engine, so they include the version lookup. | list (n=200 rows, p50 / p95 ms) | base run 1 | base run 2 | branch run 1 | branch run 2 | |---|---|---|---|---| | anytime | 1.80 / 2.05 | 1.82 / 2.02 | 2.10 / 2.39 | 2.10 / 2.69 | | today | 2.38 / 2.68 | 2.23 / 2.48 | 2.55 / 2.88 | 2.57 / 2.90 | | upcoming | 2.23 / 2.49 | 2.27 / 2.57 | 2.52 / 2.78 | 2.49 / 2.83 | | someday | 1.75 / 1.92 | 1.86 / 2.29 | 2.11 / 2.62 | 2.07 / 2.47 | | tag | 2.21 / 2.66 | 2.26 / 3.56 | 2.52 / 3.01 | 2.44 / 2.83 | | today_by_priority | 2.17 / 2.83 | 2.26 / 2.80 | 2.39 / 2.63 | 2.37 / 2.69 | Cost of `version`: about **+0.2 to +0.35 ms at p50** (≈ +10–18 %) for a 200-row page (one `updates_by_note` lookup per row in one blocking call). Every list stays under 3.1 ms p95 here. `GATE tasks.list`, `tasks.counts` and `tasks.describe`: PASS in all four runs. These are the bench's own gates, so the task's "no regression beyond the gate" holds. Not caused by this PR, same on base: `GATE cold.index growth <= 10%` FAILS in all four runs (base +19.8 % / +17.7 %, branch +18.9 % / +20.2 %: the tasks pass costs ~19 % of cold indexing, unchanged). `GATE tasks.update` FAILED once on base (run 2) and once on branch (run 2) and passed the other two; it is flaky on this VM, with no code path of this PR in it. Not measured here: the new write actions (`move`, `reorder`, `delete`, `duplicate`) have no bench yet; ADR 0066 lists `tasks.reorder_ack` ≤ 15 ms p95 with no file written, which `reorder_moves_one_row…` asserts functionally (no file written) but does not time. Timing belongs on the perf VM in a follow-up. Raw outputs are kept on perf-01 at `~/perf/ta-keep/`; the seeded Home and the binaries were removed.
Author
Owner

Independent review: #894 against the B1–B3 failure history (#798, #799, #801)

Verdict: (c) merge the best of both. Keep #894's API, version, reorder and status-only move. Drop its delete, duplicate and line-scanner code (delete.rs, duplicate.rs, lines.rs), and rebuild those on the shared Home executor, using the planner rules and probes from #798 and #799. Then close #798 and #799. 2 P1, 6 P2, 4 P3.

I reviewed head 3928a30e against origin/dev 41f2efa3, including every review comment on #798, #799 and #801. This is a code-reading review only. Nothing was built or run, because the control host is read-only and no VM probes were run, so the scenarios below are not reproduced. Items marked plausible depend on paths I read on dev but did not trace end to end.

Key context. #798, #799 and #801 were put on hold for the same reason: #808 (0066-tasks-writes-v2) says every task write must be a pure exact-splice planner run by ONE journaled executor. That executor and B1 v2 are already on dev (BM5: #809, #814, #812; crates/notes/src/write_executor/, docs/plans/tasks-v2-set-status.md). #894's status step uses that executor. Everything else in #894 (When edits, delete, duplicate, rename) goes through the old room and bulk path. That is the path the v2 decision replaced, and where most of the earlier failures came from.

1. The earlier failure cases, one by one

earlier failure (where it was found) #894 where / why
Exact-byte guard ends before placement: save ingests outside bytes and retries (#801 r1 P1, #799 r1 P1, #798 r3 P2) same delete and duplicate source edits use rename::edit_step → bulk Step::Edit → EditKind::Patch{base}. room/edit.rs:129–160 forks the note at base and merges; it does not refuse. The When edit in move is a room Props edit. Only the status part goes through the executor.
Insertion-only edit on a changed source still reports success (#798 r1 P1-3) same duplicate.rs:119–139 inserts at b.end with base = the snapshot version. If the source changed, the insert is merged in, with no check. See P1-1.
Trash step has no task-snapshot guard (#798 r2 P1-1) same delete.rs:54–60 checks the version, then reads up to 64 source notes and waits for the job lock. delete.rs:87 Step::Trash{note} carries no expected bytes.
Delete removes ordinary reference bullets (#798 r1 P1-1) not present lines::block removes only the exact checkbox + single link-child shape. Anything else is left in place and counted.
Block IDs on continuation lines copied (#798 r1 P1-2) worse the duplicate copies the whole body unchanged (duplicate.rs:112). Every block ID is copied, not just ones on continuation lines. See P1-2.
A child-line marker hides the owner, so a second owner appears (#798 r2 P1-2) same class, different route the copied body keeps every owning subtask line (- [ ] sub ^id + - [Sub](<…>)), so each subtask gets a second owner. See P1-2.
Undo restores a removal that never happened (#798 r3 P1) not present bulk/undo.rs::plan plans only steps that have a result. Move and reorder undo is built only from changes that were actually made.
Undo drops the expected bytes; no refusal on intervening change (#801 r1 P1-2, #798 r3 P2) same for delete, duplicate and rename notes.undo on a bulk job merges with later typing, and only the deleted-span guard runs. Move undo does refuse (it is version-checked) but is not exact. See P2-2.
Delete undo rewrites link spelling (#798 r1 P1-4) not present the inverse restores the captured text exactly as it was
Mixed LF/CRLF normalized, so undo isn't byte-exact (#799 r1 P2) same path (plausible) delete and duplicate source edits are saved by the room's save path, which re-encodes the whole file in the majority newline style
YAML guard bypass: interior quotes, comments, flow values (#798 r1 P2, #801 r1) same class When (move), title (rename.rs:203) and the duplicate's properties use the lenient notes::props writer. Only the index's broken flag refuses. B1 v2 uses the strict writer. To be fair, tasks.update on dev already writes scheduled this way.
Custom checkbox marks overwritten (#801 r1 P2) not present status goes through B1 v2, which refuses custom marks
Missed continuation IDs in move collision/link retargeting; last copy lost between files (#799 r1 P1-1/2) not applicable #894 moves only properties and never moves lines between notes. That is a real simplification.
Rank writes: stale revision, mismatched group (#799 design) partly restore has an expect check, but a forward reorder never checks that the task belongs to group, and rank values from the client are not checked. See P2-5.

2. Findings

P1-1: delete and duplicate write to changed notes instead of refusing

The PR's failure table says "a note changed under a delete / copy plan → job fails, nothing deleted". The code doesn't do that.

  • Source notes. delete.rs:68–86 and duplicate.rs:119–139 build Step::Edit{base: snapshot.version}. room/edit.rs:129–160 applies the Patch to a fork at base and merges it into the current text.
    • Scenario: Daily.md is at v10 with - [ ] Call Bob ^aaaa… and its link child. A delete is planned. Before its step runs, a phone appends before 5pm to that checkbox line (v11). The merged removal deletes the v10 characters and leaves before 5pm behind as a stray fragment on the next line. The job reports done.
    • The source notes carry no client version and no expected bytes at all.
  • Task note. Step::Trash has no snapshot guard. If the task's status or description is edited after the delete.rs:54 check, the note is still trashed and the action reports done. Same as #798 r2 P1-1.
  • Fix: don't patch the old path. Each source removal or insertion should become an exact splice with expected bytes, and the task note's Trash should be a guarded participant, all in one executor transaction (#808). That gives refusal, crash recovery and recorded-inverse undo in one place.

P1-2: duplicate copies every block identity and every owning subtask line

duplicate.rs:99–112 changes only six properties and keeps the body "exactly".

  • Scenario: a task body with - [ ] Draft outline ^aaaaaaaaaaaaaaaa, followed by the link child - [Outline](<Tasks/Outline.md>).
    • After duplicating, two notes carry ^aaaa…, so a #^aaaa… link has two targets.
    • Outline now has a second owning line, which breaks the one-owner rule (ADR 0068).
  • This is #798 r1 P1-2 and r2 P1-2 again, and broader.
  • Fix: re-key every block ID across the whole parsed body. Strip owning task links from the copy or convert them to plain checkboxes. Otherwise refuse before creating anything. #798's continuation-ID and relationship code, plus its probes review_r1_duplicate_multiline_block_id_is_fresh and review_r2_relationship_marker_retains_owner, are the starting point.

P2-1: a move with both a When change and a status change is not atomic, and a replay after a crash can't finish it

  • moves.rs:186–200 commits the status through the executor (key {key}:status). Then moves.rs:210–220 does a separate room Props edit.
  • If the process crashes between the two, a Someday task dropped on 11-05 ends up todo with no date, so it shows in Anytime.
  • The engine retries with the same key. one() now sees the status already matches, so change_status = None. It falls to moves.rs:202–208 with the old version and returns block_changed. The half-done move is reported as a failure, and no undo is returned.
  • move-many (moves.rs:313) has the same problem: items moved before the crash come back skipped, and their undo steps are lost.
  • A refused or failed Props edit after the status commit gives the same result without any crash.
  • Fix: plan status, scheduled and completed as one exact-splice set for the task note, and submit it as one executor transaction. tasks::status::plan already composes property splices with the strict writer; add the When leaf. A replay then loads the recorded plan.

P2-2: move's undo is not exact

  • moves.rs:231–237 undoes by moving forward again ("move back").
  • Move.status accepts all five statuses (moves.rs:54), even though the docs say someday/todo. Moving done → todo clears completed, and moving back to done stamps a new completed time.
  • scheduled is restored from the index value (now(), moves.rs:110–125), not from the raw bytes:
    • quoting or a date-time spelling is re-rendered;
    • a removed key comes back at the end of the frontmatter;
    • a stale index row would restore the wrong date (plausible).
  • The move-back step and the tasks.reorder{restore} step are separate actions with no all-or-nothing rule.
  • Fix: use a recorded inverse from the executor. Until Home undo is enabled, at least restrict status to someday/todo and store the raw scheduled and completed lines in the undo input.

P2-3: a When-only move checks the version, then edits without a guard

moves.rs:202–220 compares notes.get().version, then sends a Props edit with no base. An edit that lands between the two is overwritten at the key level, on the lenient writer. It needs the same fix as P2-1.

P2-4: lines::block gets the block's extent wrong

  • lines.rs:104–110 looks only at line+2.
  • Scenario: the link child is followed by a blank line, then a paragraph indented 4 spaces. That paragraph belongs to the link bullet in CommonMark. Delete removes the two lines and leaves the paragraph, which then becomes an indented code block at the top level.
  • This is the same "who owns this extent" class as #799 r1 P1-2. It is also a third, hand-written line scanner next to the shared parsed view (#805) that B1 v2 uses.
  • Fix: take the extent from the shared parsed view and refuse if anything is left over.

P2-5: tasks.reorder accepts any rank and group from the client

  • restore (reorder.rs:192–215) writes client-supplied rank strings with no charset or length check. Unknown bytes read as digit 0.
  • Once a rank ends in 0, between() (reorder.rs:246–268) never terminates.
    • Scenario: restore task X to rank "0" (with expect = its current rank), then reorder Y with before: X. between("", Some("0")) pushes '0' forever.
    • Memory grows without limit inside a BEGIN IMMEDIATE transaction on a blocking thread, and every other reorder for that Home waits.
  • The forward path never checks that the task is in group. order ids are not checked to be tasks in that group, so ranks are stored for arbitrary strings.
  • Fix:
    • accept ranks only from the 62-digit set, at most 256 bytes (as #799 did), not ending in 0;
    • bound the loop in between;
    • check the group with the task index (#799's projected-membership check);
    • require order to be exactly the group's current members.

P2-6: mixed line endings (plausible, same as #799 r1 P2)

Delete and duplicate source edits are saved through the room. A note with both LF and CRLF line endings comes back normalized, so untouched bytes change and undo can't restore them. Refuse such notes before writing, or let the executor's byte-exact placement handle it.

P3

  1. rename.rs:52 now switches to the task-title path for any note with a status: key (for example a project note with status: active). Such a note gains a title: key it never had. Use the task index instead (is this id an indexed task?).
  2. tasks.update with a title does the property edit and the rename as two steps (lib.rs update handler). If the rename fails, the first edit stays applied and no undo is returned.
  3. After a delete or duplicate whose job failed and was undone, a replay with the same key finds the job row (delete.rs:41–44) and returns Ok{state:"failed", undo:[…]} instead of the original block_changed.
  4. Duplicate undo runs the line removal first, then Delete{if_version}. If the copy was edited since, the delete refuses and the undo is left half done. That is safe, but it is reported as done.

3. Access, idempotency, big-O

  • Access is fine. Every path resolves through the caller's own index (update::target) and notes.enter(caller.user). A foreign id is not_found. Shared-note permissions are correctly listed as out of scope.
  • Idempotency. It is fine for complete replays (the engine stores results, and job and copy ids derive from the key). Partial replays fail as described in P2-1 and P3-3.
  • Big-O. The PR's numbers check out. version costs one MAX(seq) index lookup per row, and the perf comment shows about +0.3 ms at p50 for a 200-row page. Reorder is O(1) rows (O(G ≤ 2000) the first time). Delete and duplicate plan in O(source bytes), with at most 64 owners. The only unbounded cost is the between loop in P2-5.

4. Recommendation: (c), with the exact pieces

Keep from #894 (land once fixed):

  • version on rows: versions.rs, History::versions, and its wiring into tasks.list and tasks.get;
  • tasks.reorder and OrderDb::edit, with P2-5 fixed;
  • the tasks.move and tasks.move-many API and answer shapes;
  • status-only move through the executor;
  • the contract and type entries the UI port needs;
  • the title rename, with P3-1 and P3-2 fixed.

Rework in #894:

  • the When+status move becomes one executor transaction, which fixes P2-1 to P2-3;
  • move-many builds on it.

Drop from #894:

  • delete.rs, duplicate.rs and lines.rs, i.e. everything built on bulk Step::Edit/Trash.

Rebuild delete and duplicate as v2 planners on the executor (#808's B3), using:

  • from #798: owner and relationship classification (strip structural markers; remove only owning checkbox lines and relationship bullets), the full-extent block-ID re-key for duplicate, the YAML refusal corpus, and all review_r1_*, review_r2_* and review_r3_* probes as permanent regressions;
  • from #799: the pulldown-cmark subtree extent, full-extent marker enumeration, the rank length cap and the group-membership refusal, and its six review799_* probes.
    • #799's physical cross-note line move isn't needed by the UI port. Leave it until it can be built as a v2 planner.

Interim, if the UI port can't wait for B3 v2:

  • Delete = Trash the task note as a guarded executor participant and leave the owning lines. ADR 0066 already makes them read as "in Trash", and this removes all the line-editing risk.
  • Duplicate = new note only. Re-key every block ID and refuse if the body holds owning task links.

Then close #798 and #799. Keep their branches until the probes are ported. #801 is already superseded by #812.

No code pushed, nothing merged.

## Independent review: #894 against the B1–B3 failure history (#798, #799, #801) **Verdict: (c) merge the best of both.** Keep #894's API, `version`, reorder and status-only move. Drop its delete, duplicate and line-scanner code (`delete.rs`, `duplicate.rs`, `lines.rs`), and rebuild those on the shared Home executor, using the planner rules and probes from #798 and #799. Then close #798 and #799. **2 P1, 6 P2, 4 P3.** I reviewed head `3928a30e` against `origin/dev` `41f2efa3`, including every review comment on #798, #799 and #801. This is a code-reading review only. Nothing was built or run, because the control host is read-only and no VM probes were run, so the scenarios below are not reproduced. Items marked *plausible* depend on paths I read on dev but did not trace end to end. **Key context.** #798, #799 and #801 were put on hold for the same reason: [#808](https://git.kayg.org/kayg/calternal/pulls/808) (`0066-tasks-writes-v2`) says every task write must be a pure exact-splice planner run by ONE journaled executor. That executor and B1 v2 are already on dev (BM5: #809, #814, #812; `crates/notes/src/write_executor/`, `docs/plans/tasks-v2-set-status.md`). #894's status step uses that executor. Everything else in #894 (When edits, delete, duplicate, rename) goes through the old room and `bulk` path. That is the path the v2 decision replaced, and where most of the earlier failures came from. ### 1. The earlier failure cases, one by one | earlier failure (where it was found) | #894 | where / why | |---|---|---| | Exact-byte guard ends before placement: save ingests outside bytes and retries (#801 r1 P1, #799 r1 P1, #798 r3 P2) | **same** | delete and duplicate source edits use `rename::edit_step` → `bulk` `Step::Edit` → `EditKind::Patch{base}`. `room/edit.rs:129–160` forks the note at `base` and **merges**; it does not refuse. The When edit in move is a room `Props` edit. Only the status part goes through the executor. | | Insertion-only edit on a changed source still reports success (#798 r1 P1-3) | **same** | `duplicate.rs:119–139` inserts at `b.end` with base = the snapshot version. If the source changed, the insert is merged in, with no check. See P1-1. | | Trash step has no task-snapshot guard (#798 r2 P1-1) | **same** | `delete.rs:54–60` checks the version, then reads up to 64 source notes and waits for the job lock. `delete.rs:87` `Step::Trash{note}` carries no expected bytes. | | Delete removes ordinary reference bullets (#798 r1 P1-1) | not present | `lines::block` removes only the exact checkbox + single link-child shape. Anything else is left in place and counted. | | Block IDs on continuation lines copied (#798 r1 P1-2) | **worse** | the duplicate copies the whole body unchanged (`duplicate.rs:112`). **Every** block ID is copied, not just ones on continuation lines. See P1-2. | | A child-line marker hides the owner, so a second owner appears (#798 r2 P1-2) | **same class, different route** | the copied body keeps every owning subtask line (`- [ ] sub ^id` + `- [Sub](<…>)`), so each subtask gets a second owner. See P1-2. | | Undo restores a removal that never happened (#798 r3 P1) | not present | `bulk/undo.rs::plan` plans only steps that have a result. Move and reorder undo is built only from changes that were actually made. | | Undo drops the expected bytes; no refusal on intervening change (#801 r1 P1-2, #798 r3 P2) | **same** for delete, duplicate and rename | `notes.undo` on a bulk job merges with later typing, and only the deleted-span guard runs. Move undo does refuse (it is version-checked) but is not exact. See P2-2. | | Delete undo rewrites link spelling (#798 r1 P1-4) | not present | the inverse restores the captured text exactly as it was | | Mixed LF/CRLF normalized, so undo isn't byte-exact (#799 r1 P2) | **same path** (*plausible*) | delete and duplicate source edits are saved by the room's save path, which re-encodes the whole file in the majority newline style | | YAML guard bypass: interior quotes, comments, flow values (#798 r1 P2, #801 r1) | **same class** | When (move), title (`rename.rs:203`) and the duplicate's properties use the lenient `notes::props` writer. Only the index's `broken` flag refuses. B1 v2 uses the strict writer. To be fair, `tasks.update` on dev already writes `scheduled` this way. | | Custom checkbox marks overwritten (#801 r1 P2) | not present | status goes through B1 v2, which refuses custom marks | | Missed continuation IDs in move collision/link retargeting; last copy lost between files (#799 r1 P1-1/2) | not applicable | #894 moves only properties and never moves lines between notes. That is a real simplification. | | Rank writes: stale revision, mismatched group (#799 design) | **partly** | restore has an `expect` check, but a forward reorder never checks that the task belongs to `group`, and rank values from the client are not checked. See P2-5. | ### 2. Findings #### P1-1: delete and duplicate write to changed notes instead of refusing The PR's failure table says "a note changed under a delete / copy plan → job fails, nothing deleted". The code doesn't do that. - **Source notes.** `delete.rs:68–86` and `duplicate.rs:119–139` build `Step::Edit{base: snapshot.version}`. `room/edit.rs:129–160` applies the Patch to a fork at `base` and merges it into the current text. - Scenario: Daily.md is at v10 with `- [ ] Call Bob ^aaaa…` and its link child. A delete is planned. Before its step runs, a phone appends ` before 5pm` to that checkbox line (v11). The merged removal deletes the v10 characters and leaves ` before 5pm` behind as a stray fragment on the next line. The job reports `done`. - The source notes carry no client version and no expected bytes at all. - **Task note.** `Step::Trash` has no snapshot guard. If the task's status or description is edited after the `delete.rs:54` check, the note is still trashed and the action reports `done`. Same as #798 r2 P1-1. - **Fix:** don't patch the old path. Each source removal or insertion should become an exact splice with expected bytes, and the task note's Trash should be a guarded participant, all in one executor transaction (#808). That gives refusal, crash recovery and recorded-inverse undo in one place. #### P1-2: duplicate copies every block identity and every owning subtask line `duplicate.rs:99–112` changes only six properties and keeps the body "exactly". - Scenario: a task body with `- [ ] Draft outline ^aaaaaaaaaaaaaaaa`, followed by the link child `- [Outline](<Tasks/Outline.md>)`. - After duplicating, two notes carry `^aaaa…`, so a `#^aaaa…` link has two targets. - Outline now has a second owning line, which breaks the one-owner rule (ADR 0068). - This is #798 r1 P1-2 and r2 P1-2 again, and broader. - **Fix:** re-key every block ID across the whole parsed body. Strip owning task links from the copy or convert them to plain checkboxes. Otherwise refuse before creating anything. #798's continuation-ID and relationship code, plus its probes `review_r1_duplicate_multiline_block_id_is_fresh` and `review_r2_relationship_marker_retains_owner`, are the starting point. #### P2-1: a move with both a When change and a status change is not atomic, and a replay after a crash can't finish it - `moves.rs:186–200` commits the status through the executor (key `{key}:status`). Then `moves.rs:210–220` does a separate room `Props` edit. - If the process crashes between the two, a Someday task dropped on 11-05 ends up `todo` with no date, so it shows in Anytime. - The engine retries with the same key. `one()` now sees the status already matches, so `change_status = None`. It falls to `moves.rs:202–208` with the old version and returns `block_changed`. The half-done move is reported as a failure, and no undo is returned. - `move-many` (`moves.rs:313`) has the same problem: items moved before the crash come back `skipped`, and their undo steps are lost. - A refused or failed Props edit after the status commit gives the same result without any crash. - **Fix:** plan status, `scheduled` and `completed` as one exact-splice set for the task note, and submit it as one executor transaction. `tasks::status::plan` already composes property splices with the strict writer; add the When leaf. A replay then loads the recorded plan. #### P2-2: move's undo is not exact - `moves.rs:231–237` undoes by moving forward again ("move back"). - `Move.status` accepts all five statuses (`moves.rs:54`), even though the docs say someday/todo. Moving done → todo clears `completed`, and moving back to done stamps a **new** `completed` time. - `scheduled` is restored from the index value (`now()`, `moves.rs:110–125`), not from the raw bytes: - quoting or a date-time spelling is re-rendered; - a removed key comes back at the end of the frontmatter; - a stale index row would restore the wrong date (*plausible*). - The move-back step and the `tasks.reorder{restore}` step are separate actions with no all-or-nothing rule. - **Fix:** use a recorded inverse from the executor. Until Home undo is enabled, at least restrict `status` to someday/todo and store the raw `scheduled` and `completed` lines in the undo input. #### P2-3: a When-only move checks the version, then edits without a guard `moves.rs:202–220` compares `notes.get().version`, then sends a `Props` edit with no base. An edit that lands between the two is overwritten at the key level, on the lenient writer. It needs the same fix as P2-1. #### P2-4: `lines::block` gets the block's extent wrong - `lines.rs:104–110` looks only at line+2. - Scenario: the link child is followed by a blank line, then a paragraph indented 4 spaces. That paragraph belongs to the link bullet in CommonMark. Delete removes the two lines and leaves the paragraph, which then becomes an indented code block at the top level. - This is the same "who owns this extent" class as #799 r1 P1-2. It is also a third, hand-written line scanner next to the shared parsed view (#805) that B1 v2 uses. - **Fix:** take the extent from the shared parsed view and refuse if anything is left over. #### P2-5: `tasks.reorder` accepts any rank and group from the client - `restore` (`reorder.rs:192–215`) writes client-supplied `rank` strings with no charset or length check. Unknown bytes read as digit 0. - Once a rank ends in `0`, `between()` (`reorder.rs:246–268`) never terminates. - Scenario: restore task X to rank `"0"` (with `expect` = its current rank), then reorder Y with `before: X`. `between("", Some("0"))` pushes `'0'` forever. - Memory grows without limit inside a `BEGIN IMMEDIATE` transaction on a blocking thread, and every other reorder for that Home waits. - The forward path never checks that the task is in `group`. `order` ids are not checked to be tasks in that group, so ranks are stored for arbitrary strings. - **Fix:** - accept ranks only from the 62-digit set, at most 256 bytes (as #799 did), not ending in `0`; - bound the loop in `between`; - check the group with the task index (#799's projected-membership check); - require `order` to be exactly the group's current members. #### P2-6: mixed line endings (*plausible*, same as #799 r1 P2) Delete and duplicate source edits are saved through the room. A note with both LF and CRLF line endings comes back normalized, so untouched bytes change and undo can't restore them. Refuse such notes before writing, or let the executor's byte-exact placement handle it. #### P3 1. `rename.rs:52` now switches to the task-title path for **any** note with a `status:` key (for example a project note with `status: active`). Such a note gains a `title:` key it never had. Use the task index instead (is this id an indexed task?). 2. `tasks.update` with a title does the property edit and the rename as two steps (`lib.rs` update handler). If the rename fails, the first edit stays applied and no undo is returned. 3. After a delete or duplicate whose job failed and was undone, a replay with the same key finds the job row (`delete.rs:41–44`) and returns `Ok{state:"failed", undo:[…]}` instead of the original `block_changed`. 4. Duplicate undo runs the line removal first, then `Delete{if_version}`. If the copy was edited since, the delete refuses and the undo is left half done. That is safe, but it is reported as done. ### 3. Access, idempotency, big-O - **Access is fine.** Every path resolves through the caller's own index (`update::target`) and `notes.enter(caller.user)`. A foreign id is `not_found`. Shared-note permissions are correctly listed as out of scope. - **Idempotency.** It is fine for complete replays (the engine stores results, and job and copy ids derive from the key). Partial replays fail as described in P2-1 and P3-3. - **Big-O.** The PR's numbers check out. `version` costs one `MAX(seq)` index lookup per row, and the perf comment shows about +0.3 ms at p50 for a 200-row page. Reorder is O(1) rows (O(G ≤ 2000) the first time). Delete and duplicate plan in O(source bytes), with at most 64 owners. The only unbounded cost is the `between` loop in P2-5. ### 4. Recommendation: (c), with the exact pieces **Keep from #894** (land once fixed): - `version` on rows: `versions.rs`, `History::versions`, and its wiring into `tasks.list` and `tasks.get`; - `tasks.reorder` and `OrderDb::edit`, with P2-5 fixed; - the `tasks.move` and `tasks.move-many` API and answer shapes; - status-only move through the executor; - the contract and type entries the UI port needs; - the title rename, with P3-1 and P3-2 fixed. **Rework in #894:** - the When+status move becomes one executor transaction, which fixes P2-1 to P2-3; - move-many builds on it. **Drop from #894:** - `delete.rs`, `duplicate.rs` and `lines.rs`, i.e. everything built on `bulk` `Step::Edit`/`Trash`. **Rebuild delete and duplicate as v2 planners on the executor** (#808's B3), using: - **from #798:** owner and relationship classification (strip structural markers; remove only owning checkbox lines and relationship bullets), the full-extent block-ID re-key for duplicate, the YAML refusal corpus, and **all** `review_r1_*`, `review_r2_*` and `review_r3_*` probes as permanent regressions; - **from #799:** the pulldown-cmark subtree extent, full-extent marker enumeration, the rank length cap and the group-membership refusal, and its six `review799_*` probes. - #799's physical cross-note line move isn't needed by the UI port. Leave it until it can be built as a v2 planner. **Interim, if the UI port can't wait for B3 v2:** - Delete = Trash the task note as a guarded executor participant and leave the owning lines. ADR 0066 already makes them read as "in Trash", and this removes all the line-editing risk. - Duplicate = new note only. Re-key every block ID and refuse if the body holds owning task links. **Then close #798 and #799.** Keep their branches until the probes are ported. #801 is already superseded by #812. No code pushed, nothing merged.
kayg changed title from Tasks write actions for the UI port: move, reorder, delete, duplicate, rename, version, bulk move to Tasks write actions for the UI port: move, reorder, rename, version, bulk move. Delete and duplicate are being rebuilt on the executor. 2026-11-03 12:24:55 +00:00
Author
Owner

Gates: steps 1a + 1b on head 5f158246

Run on calternal-dev-01-compute02, in a Nix devshell, through ~/bin/slot.

gate command result
fmt cargo fmt --all -- --check OK
clippy cargo clippy -j4 -p calternal-tasks -p calternal-notes -p calternal-engine -p calternal -p calternal-perf --all-targets -- -D warnings exit 0, no warnings
contract UPDATE_CONTRACTS=1 cargo test -j4 -p calternal contract (regenerated and committed in 5f158246), then cargo test -j4 -p calternal contract_matches_the_server 1 passed
web types node apps/web/scripts/action-types.mjs --check OK
tasks cargo test -j4 -p calternal-tasks 98 passed, 0 failed
engine cargo test -j4 -p calternal-engine 20 passed, 1 ignored
notes cargo test -j4 -p calternal-notes 547 passed, 6 ignored

New probes for review 76844, all passing:

  • P1-1 review_76844_p1_1_delete_refuses_a_changed_task, delete_trashes_through_the_executor_and_restores_exact_bytes
  • P1-2 review_76844_p1_2_duplicate_rekeys_ids_and_refuses_subtasks, duplicate::tests::rekey_replaces_every_block_id_the_same_way_and_nothing_else
  • P2-1 review_76844_p2_1_status_and_when_are_one_transaction
  • P2-2 review_76844_p2_2_undo_restores_exact_bytes, undo_refuses_after_a_later_edit_and_writes_nothing
  • P2-3 review_76844_p2_3_date_only_move_refuses_a_changed_note
  • P2-5 review_76844_p2_5_bad_ranks_are_refused_and_between_always_ends, review_76844_p2_5_reorder_refuses_bad_ranks_and_other_groups, order_and_restore_name_each_task_once
  • P2-6 review_76844_p2_6_mixed_line_endings_refuse_and_keep_bytes
  • P3 review_76844_p3_rename_is_for_tasks_only_and_alone
  • strict writer limit a_hand_typed_unquoted_date_refuses_and_keeps_bytes

Not yet covered: a crash-point matrix for the new Trash participant (crash at Placed / Committed / HistoryInstalled / BatchPublished / PublicationRecorded, then recovery). The executor's own placement and recovery tests cover the removal itself. The Trash publication is idempotent by construction (link-or-verify plus details-if-missing), but no crash test drives it yet. It's the first item of step 2.

## Gates: steps 1a + 1b on head `5f158246` Run on `calternal-dev-01-compute02`, in a Nix devshell, through `~/bin/slot`. | gate | command | result | |---|---|---| | fmt | `cargo fmt --all -- --check` | OK | | clippy | `cargo clippy -j4 -p calternal-tasks -p calternal-notes -p calternal-engine -p calternal -p calternal-perf --all-targets -- -D warnings` | exit 0, no warnings | | contract | `UPDATE_CONTRACTS=1 cargo test -j4 -p calternal contract` (regenerated and committed in `5f158246`), then `cargo test -j4 -p calternal contract_matches_the_server` | 1 passed | | web types | `node apps/web/scripts/action-types.mjs --check` | OK | | tasks | `cargo test -j4 -p calternal-tasks` | **98 passed**, 0 failed | | engine | `cargo test -j4 -p calternal-engine` | 20 passed, 1 ignored | | notes | `cargo test -j4 -p calternal-notes` | **547 passed**, 6 ignored | New probes for review 76844, all passing: - **P1-1** `review_76844_p1_1_delete_refuses_a_changed_task`, `delete_trashes_through_the_executor_and_restores_exact_bytes` - **P1-2** `review_76844_p1_2_duplicate_rekeys_ids_and_refuses_subtasks`, `duplicate::tests::rekey_replaces_every_block_id_the_same_way_and_nothing_else` - **P2-1** `review_76844_p2_1_status_and_when_are_one_transaction` - **P2-2** `review_76844_p2_2_undo_restores_exact_bytes`, `undo_refuses_after_a_later_edit_and_writes_nothing` - **P2-3** `review_76844_p2_3_date_only_move_refuses_a_changed_note` - **P2-5** `review_76844_p2_5_bad_ranks_are_refused_and_between_always_ends`, `review_76844_p2_5_reorder_refuses_bad_ranks_and_other_groups`, `order_and_restore_name_each_task_once` - **P2-6** `review_76844_p2_6_mixed_line_endings_refuse_and_keep_bytes` - **P3** `review_76844_p3_rename_is_for_tasks_only_and_alone` - **strict writer limit** `a_hand_typed_unquoted_date_refuses_and_keeps_bytes` **Not yet covered:** a crash-point matrix for the new Trash participant (crash at Placed / Committed / HistoryInstalled / BatchPublished / PublicationRecorded, then recovery). The executor's own placement and recovery tests cover the removal itself. The Trash publication is idempotent by construction (link-or-verify plus details-if-missing), but no crash test drives it yet. It's the first item of step 2.
Author
Owner

Perf: write actions on perf-01, under perf-lock

Setup: release binaries built on dev-01 at cac156dd (cargo build --release --locked -p calternal-perf --bin tasks-write-bench), relayed through the control host. sha256 matched on both ends: 82a5ce20…. The fixture is a tasks-bench --notes 10k Home (10k notes + 10k task notes). Command: tasks-write-bench --base data/base-10000 --state state-w --n 200.

Everything goes through the real action pipeline and is timed until the answer. Every move is undone, every delete restored, and every copy deleted.

measure n p50 ms p95 ms max ms
tasks.reorder (one drag, 809-task group) 200 11.31 12.72 32.63
tasks.move When only (1 note) 200 281 481 535
tasks.move Someday → day (status + When + owner line, 2 notes) 200 824 1107 1145
tasks.undo (exact inverse) 400 569 1219 1296
tasks.move-many 50 tasks 4 2466 2468 2513
tasks.move-many 50 undo 4 2450 2530 2581
baseline tasks.set-status (B1, already on dev) 200 1695 1948 2004
tasks.delete (Trash through the executor) 100 2005 2099 2110
tasks.duplicate (new note only) 100 26.8 44.0 47.9

Gates

  • tasks.reorder_ack p95 12.72 ms ≤ 15 ms (ADR 0066): PASS. First ranking of the group (order sent): 34 ms.
  • The executor-based writes are far over the 40 ms write budget: move, undo, move-many and delete. So is tasks.set-status on dev, which uses the same shared executor and is slower than a move here. The cost is in the shared Home write executor, not in these adapters. Getting the executor near budget is its own perf task; I haven't changed the executor's speed in this PR.
  • duplicate doesn't touch the executor: p95 44 ms.

Other findings

  • 400 first moves were refused, then retried: list rows carry version: 0 for a note never opened, and notes.get opens it at a higher version. The client has to read the row again once. This was already the case before this PR.
  • 100 set-status/delete calls were refused once with changed note inventory, while the index caught up after the 50-task move-many, and went through on retry. This is B1's existing ExpectedInventory guard. Under load, a client sees a spurious block_changed and must retry.

The raw outputs (write4.out, plus earlier write2.out) stay on perf-01 at ~/perf/t894/. The seeded Home and state have been removed.

## Perf: write actions on perf-01, under `perf-lock` **Setup:** release binaries built on dev-01 at `cac156dd` (`cargo build --release --locked -p calternal-perf --bin tasks-write-bench`), relayed through the control host. sha256 matched on both ends: `82a5ce20…`. The fixture is a `tasks-bench --notes 10k` Home (10k notes + 10k task notes). Command: `tasks-write-bench --base data/base-10000 --state state-w --n 200`. Everything goes through the real action pipeline and is timed until the answer. Every move is undone, every delete restored, and every copy deleted. | measure | n | p50 ms | p95 ms | max ms | |---|---|---|---|---| | `tasks.reorder` (one drag, 809-task group) | 200 | 11.31 | **12.72** | 32.63 | | `tasks.move` When only (1 note) | 200 | 281 | 481 | 535 | | `tasks.move` Someday → day (status + When + owner line, 2 notes) | 200 | 824 | 1107 | 1145 | | `tasks.undo` (exact inverse) | 400 | 569 | 1219 | 1296 | | `tasks.move-many` 50 tasks | 4 | 2466 | 2468 | 2513 | | `tasks.move-many` 50 undo | 4 | 2450 | 2530 | 2581 | | **baseline** `tasks.set-status` (B1, already on dev) | 200 | 1695 | 1948 | 2004 | | `tasks.delete` (Trash through the executor) | 100 | 2005 | 2099 | 2110 | | `tasks.duplicate` (new note only) | 100 | 26.8 | 44.0 | 47.9 | **Gates** - **`tasks.reorder_ack` p95 12.72 ms ≤ 15 ms (ADR 0066): PASS.** First ranking of the group (`order` sent): 34 ms. - **The executor-based writes are far over the 40 ms write budget**: move, undo, move-many and delete. So is `tasks.set-status` on dev, which uses the same shared executor and is slower than a move here. The cost is in the shared Home write executor, not in these adapters. Getting the executor near budget is its own perf task; I haven't changed the executor's speed in this PR. - `duplicate` doesn't touch the executor: p95 44 ms. **Other findings** - 400 first moves were refused, then retried: list rows carry `version: 0` for a note never opened, and `notes.get` opens it at a higher version. The client has to read the row again once. This was already the case before this PR. - 100 set-status/delete calls were refused once with `changed note inventory`, while the index caught up after the 50-task move-many, and went through on retry. This is B1's existing `ExpectedInventory` guard. Under load, a client sees a spurious `block_changed` and must retry. The raw outputs (`write4.out`, plus earlier `write2.out`) stay on perf-01 at `~/perf/t894/`. The seeded Home and state have been removed.
kayg changed title from Tasks write actions for the UI port: move, reorder, rename, version, bulk move. Delete and duplicate are being rebuilt on the executor. to Tasks write actions for the UI port: move, reorder, rename, version, bulk move, delete, duplicate (on the executor) 2026-11-03 13:31:21 +00:00
Author
Owner

Rebasing onto the executor hot-path fix (#898)

#898 (perf/executor-hot-path, into dev) fixes the executor cost and the two spurious refusals this PR's bench found. Writes no longer reread the whole journal, the recovery sweep is skipped when nothing is in flight, and placement syncs are batched. No guard is weakened; the plan and failure table are in #898. Rebased onto #898, this branch passes the notes, tasks and engine tests. The bench numbers are in #898.

A worked rebase of this PR's head cac156dd is pushed as scratch/executor-on-894 (never to be merged; it shows the resolution). To rebase:

  1. git rebase origin/perf/executor-hot-path (or onto dev once #898 lands). The conflicts are in crates/tasks/src/lib.rs (keep both pub mod owners; and pub mod reorder;) and crates/tasks/src/status_action.rs (keep your execute/plan_one shape and apply the steps below).
  2. Inventory guard: in plan_one, replace the global epoch (home.note_write_inventory(), Requirement::ExpectedInventory { epoch }) with crate::owners::read(&db.meta(), &folded) for each target that has owners. Plan from those rows. Push Requirement::ExpectedOwners { digest: crate::owners::digest(&owners) }, return crate::owners::probe(owners.into_keys().collect()) with the plan, and submit with home.execute_note_write_probed(plan, Some(probe)). A move without owners gets the empty digest and always matches.
  3. Versions: versions::of becomes home.row_versions(ids). Unopened notes get a negative file token instead of 0. Replace every i.version != snap.version or snap.version != m.version with !home.version_matches(&id, sent, snap.version).await? (plan_one, moves.rs, and trash_exact in delete).
  4. Journal reads: NoteWriteExecutor::read_records is gone. In committed_note_write, use NoteWriteExecutor::read_record(&notes, &journal, &home, &key), which reads one record file, not all of them.
  5. undo::inverse still takes the old epoch. The inverse's bytes are exact, so the probe has no owner rows to re-read; either drop the epoch or scope it to the inverse's notes. That's your call; #898 leaves it alone.

🤖 Generated with Claude Code

## Rebasing onto the executor hot-path fix (#898) #898 (`perf/executor-hot-path`, into dev) fixes the executor cost and the two spurious refusals this PR's bench found. Writes no longer reread the whole journal, the recovery sweep is skipped when nothing is in flight, and placement syncs are batched. No guard is weakened; the plan and failure table are in #898. Rebased onto #898, this branch passes the notes, tasks and engine tests. The bench numbers are in #898. A worked rebase of this PR's head cac156dd is pushed as `scratch/executor-on-894` (never to be merged; it shows the resolution). To rebase: 1. `git rebase origin/perf/executor-hot-path` (or onto dev once #898 lands). The conflicts are in `crates/tasks/src/lib.rs` (keep both `pub mod owners;` and `pub mod reorder;`) and `crates/tasks/src/status_action.rs` (keep your `execute`/`plan_one` shape and apply the steps below). 2. **Inventory guard:** in `plan_one`, replace the global epoch (`home.note_write_inventory()`, `Requirement::ExpectedInventory { epoch }`) with `crate::owners::read(&db.meta(), &folded)` for each target that has owners. Plan from those rows. Push `Requirement::ExpectedOwners { digest: crate::owners::digest(&owners) }`, return `crate::owners::probe(owners.into_keys().collect())` with the plan, and submit with `home.execute_note_write_probed(plan, Some(probe))`. A move without owners gets the empty digest and always matches. 3. **Versions:** `versions::of` becomes `home.row_versions(ids)`. Unopened notes get a negative file token instead of 0. Replace every `i.version != snap.version` or `snap.version != m.version` with `!home.version_matches(&id, sent, snap.version).await?` (`plan_one`, `moves.rs`, and `trash_exact` in delete). 4. **Journal reads:** `NoteWriteExecutor::read_records` is gone. In `committed_note_write`, use `NoteWriteExecutor::read_record(&notes, &journal, &home, &key)`, which reads one record file, not all of them. 5. `undo::inverse` still takes the old epoch. The inverse's bytes are exact, so the probe has no owner rows to re-read; either drop the epoch or scope it to the inverse's notes. That's your call; #898 leaves it alone. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Keeper proposal after reading #798, #799, #894 and all their review comments: gate #894 (cac156dd68c222da099343628a75abfa97a75504), the replacement following review 76844, rather than revive the held bulk/room implementations. #798 round 3 explicitly requires stop-and-simplify; #799 is held for the same executor design. Propose closing #798/#799 as superseded only after recording the missing promotion/physical-line-move scope and preserving/porting their review probes. Do not close #894 as a duplicate: it carries the reviewed replacement API and the executor rework. Neither earlier PR is approved for merge. No PR closed or merged. I will merge current dev into #894, run fresh gates, add crash/retry regressions and report remaining scope explicitly.

Keeper proposal after reading #798, #799, #894 and all their review comments: gate #894 (`cac156dd68c222da099343628a75abfa97a75504`), the replacement following review 76844, rather than revive the held bulk/room implementations. #798 round 3 explicitly requires stop-and-simplify; #799 is held for the same executor design. Propose closing #798/#799 as superseded only after recording the missing promotion/physical-line-move scope and preserving/porting their review probes. Do not close #894 as a duplicate: it carries the reviewed replacement API and the executor rework. Neither earlier PR is approved for merge. No PR closed or merged. I will merge current dev into #894, run fresh gates, add crash/retry regressions and report remaining scope explicitly.
Author
Owner

Crash/retry gate plan for current-dev qualification: keep one executor, no new write framework. Reproduced on 7cd0854aa: SIGKILL at Placed(0) followed by the original Someday-to-day move returns operation key reused with different request or author. Cause: the fingerprint includes a derived target based on the current status, which recovery already changed. Fix 72ef8de87 fingerprints requested fields and enters replay even when the effective status is already satisfied. Cost remains O(request bytes), no new durable writes. New tests cover Placed/Committed/HistoryInstalled/BatchPublished/PublicationRecorded, exact inverse bytes, and one indexed task; delete covers the same five publication boundaries, plus a duplicate crash before the engine receipt.

failure effect detection recovery gate
move crashes after placement changed derived request original-key retry regression (RED observed) load original recorded plan from stable request five crash phases
delete crashes during Trash publication live/Trash views can differ until recovery raw Trash bytes + index lookup existing executor recovery, original-key retry five crash phases
duplicate crashes after file creation rekeyed text may differ on retry real process kill before action receipt preserve one copy and its identities duplicate crash regression

Per-field stale checks (#919) are an unresolved gate dependency: #928 is open and explicitly provides only an opt-in shared helper; Tasks does not yet opt in. No claim that whole-note versions satisfy this gate. The pending Tasks UI stack also still calls the old update/set-status actions, so its specs alone cannot cover move/reorder/delete. Added a browser-protocol regression spec on #894 for those actions, alongside the scratch UI integration matrix. No merge or close.

Crash/retry gate plan for current-dev qualification: keep one executor, no new write framework. Reproduced on `7cd0854aa`: SIGKILL at `Placed(0)` followed by the original Someday-to-day move returns `operation key reused with different request or author`. Cause: the fingerprint includes a derived target based on the current status, which recovery already changed. Fix `72ef8de87` fingerprints requested fields and enters replay even when the effective status is already satisfied. Cost remains O(request bytes), no new durable writes. New tests cover Placed/Committed/HistoryInstalled/BatchPublished/PublicationRecorded, exact inverse bytes, and one indexed task; delete covers the same five publication boundaries, plus a duplicate crash before the engine receipt. | failure | effect | detection | recovery | gate | |---|---|---|---|---| | move crashes after placement | changed derived request | original-key retry regression (RED observed) | load original recorded plan from stable request | five crash phases | | delete crashes during Trash publication | live/Trash views can differ until recovery | raw Trash bytes + index lookup | existing executor recovery, original-key retry | five crash phases | | duplicate crashes after file creation | rekeyed text may differ on retry | real process kill before action receipt | preserve one copy and its identities | duplicate crash regression | Per-field stale checks (#919) are an unresolved gate dependency: #928 is open and explicitly provides only an opt-in shared helper; Tasks does not yet opt in. No claim that whole-note versions satisfy this gate. The pending Tasks UI stack also still calls the old update/set-status actions, so its specs alone cannot cover move/reorder/delete. Added a browser-protocol regression spec on #894 for those actions, alongside the scratch UI integration matrix. No merge or close.
Author
Owner

qualification update at head 2255752cc against dev 02cdf87897c18486cd7856a487896019b3eb470d (still current):

gate result
dev merge clean merge f4031f5a9, pushed
crash/retry RED: original move retry and duplicate-marker retry failed; GREEN: 5 tests pass after 72ef8de87 and f0b98e5be; move/delete cover five executor boundaries
browser action protocol 4/4 Chromium on dev-01, 4/4 WebKit on dev-02, at 1440/390, no retries
pending Tasks UI stack initial Chromium 70 pass / 11 skip / 1 fail; WebKit 69 / 11 / 2; candidate repeat-10 passes; dev repeat qualification still finishing
web svelte-check 0 errors / 16 existing warnings; 109/109 unit tests pass
Rust fmt/clippy pass on fixed Rust source; full workspace still running using private TMPDIR after the shared /tmp inode exhaustion
first paint BLOCKED: JS dev raw/gzip/brotli 840859/280629/238200 bytes; candidate 840940/280660/238309, deltas +81/+31/+109. CSS identical. A compact lookup experiment was reverted because it did not pass the flat gate.
per-field stale BLOCKED: #919 helper is still open in #928; Tasks only has whole-note version checks, which do not satisfy base/after per-field sequencing
perf queued behind shared perf-01 lock since 05:29 IST; no measurement claimed. Both-lock ABAB and control script/binaries prepared, hashes checked

browser spec explicitly covers protocol, not pending UI wiring: the UI stack still calls update/set-status. Notes intentionally excludes task rows, so its route is not a task editor. promotion and physical line moves remain missing scope compared with the older PRs. #894 is not GREEN. no merge or close.

qualification update at head `2255752cc` against dev `02cdf87897c18486cd7856a487896019b3eb470d` (still current): | gate | result | |---|---| | dev merge | clean merge `f4031f5a9`, pushed | | crash/retry | RED: original move retry and duplicate-marker retry failed; GREEN: 5 tests pass after `72ef8de87` and `f0b98e5be`; move/delete cover five executor boundaries | | browser action protocol | 4/4 Chromium on dev-01, 4/4 WebKit on dev-02, at 1440/390, no retries | | pending Tasks UI stack | initial Chromium 70 pass / 11 skip / 1 fail; WebKit 69 / 11 / 2; candidate repeat-10 passes; dev repeat qualification still finishing | | web | svelte-check 0 errors / 16 existing warnings; 109/109 unit tests pass | | Rust | fmt/clippy pass on fixed Rust source; full workspace still running using private TMPDIR after the shared /tmp inode exhaustion | | first paint | BLOCKED: JS dev raw/gzip/brotli 840859/280629/238200 bytes; candidate 840940/280660/238309, deltas +81/+31/+109. CSS identical. A compact lookup experiment was reverted because it did not pass the flat gate. | | per-field stale | BLOCKED: #919 helper is still open in #928; Tasks only has whole-note version checks, which do not satisfy base/after per-field sequencing | | perf | queued behind shared perf-01 lock since 05:29 IST; no measurement claimed. Both-lock ABAB and control script/binaries prepared, hashes checked | browser spec explicitly covers protocol, not pending UI wiring: the UI stack still calls update/set-status. Notes intentionally excludes task rows, so its route is not a task editor. promotion and physical line moves remain missing scope compared with the older PRs. #894 is not GREEN. no merge or close.
Author
Owner

reorder perf follow-up plan after the first locked RED result (p95 20.90 ms > 15 ms, 809-task group): OrderDb::edit currently opens a new SQLite connection, sets WAL, runs schema setup and closes it for every drag. keep one lazy writer connection per user, separate from the existing read-only connection. bound: one connection per already-open user; one write transaction still owns the whole rank plan and commit, with SQLite IMMEDIATE preserving cross-process exclusion. no schema or wire change. if open/setup fails, leave the cached slot empty and retry on the next action; if commit fails, return the error as before. validate with existing rank/restore/group tests and the same locked reorder fixture, then requalify Rust. #898 does not modify order.rs, so this does not duplicate its executor redesign.

reorder perf follow-up plan after the first locked RED result (p95 20.90 ms > 15 ms, 809-task group): `OrderDb::edit` currently opens a new SQLite connection, sets WAL, runs schema setup and closes it for every drag. keep one lazy writer connection per user, separate from the existing read-only connection. bound: one connection per already-open user; one write transaction still owns the whole rank plan and commit, with SQLite IMMEDIATE preserving cross-process exclusion. no schema or wire change. if open/setup fails, leave the cached slot empty and retry on the next action; if commit fails, return the error as before. validate with existing rank/restore/group tests and the same locked reorder fixture, then requalify Rust. #898 does not modify order.rs, so this does not duplicate its executor redesign.
Author
Owner

qualification continues at 57516bcbf (dev remains pinned to 02cdf8789). fixed two original retry failures, then fixed the newly found legacy-record checksum regression in 7b56b2ab6: omitting false Image.trash preserves version-one checksums. the existing ExpectedOwners compatibility tests were RED (2 failures) and now GREEN (3/3 including corrupt-record refusal). move/delete/duplicate recovery regression runner is GREEN (3 parent regressions across 11 kill windows, plus 2 helpers).

fresh Chromium and WebKit action-protocol matrices on this head: 4/4 each at 1440/390. fmt, workspace/all-target clippy with warnings denied and targeted reorder tests pass. full workspace run is still active on dev-01 in tasks-894-workspace-v3.service, log ~/tasks-894-workspace-v3.log; the older workspace run was superseded and is not a pass.

both shared perf locks were acquired in order at 05:53 IST and remain held. corrected tick ABAB (identical benchmark source built against dev and the PR), 100 accepted transitions per round, 50 counted retries, zero final refusals:

p95 ms dev A1 PR B1 dev A2 PR B2 ABAB delta dev control delta
tick including retries 396.469 396.293 417.524 404.340 -1.64% +1.84%

the initial tick mode without retries was discarded: it refused the actual transitions and mostly timed no-op resets. b4e6a3f10 fixes that harness bias. first reorder batch was RED at 20.90 ms p95; 57516bcbf reuses the writer connection. the first fixed batch is GREEN at 5.41 ms for the same 809-task group; second batch pending.

the first notes ABAB (3 warm runs per round) is not flat: sync.save_ack p95 +63.41%, storm.typing +6.32%, storm.save_ack -5.25%; save control -32.97%, typing control -0.14%. a 5-run-per-round repeat is queued using the final server binary; both results will be reported. final candidate server sha256 909e1c1c02df5f8306e60afa81e55dd8a073750e8bb1dddabef9008c7115b625; corrected final action benchmark 9bce45e23d0ffe5f54b7c79d70cdd0bb5ebe9602b9023b344bc4be1dfbfac896.

active perf-01 units: tasks-894-perf-hold, tasks-894-reorder-fixed, tasks-894-notes-final; perf-02: tasks-894-perf-hold. tick comparison finished. reports are under ~/perf/tasks-894/reports/. both holders will be stopped as soon as measurements finish. still BLOCKED on first-paint bytes (+81 raw/+31 gzip/+109 brotli) and per-field stale opt-in (#919/#928), independently of pending perf/workspace results. no merge or close.

qualification continues at `57516bcbf` (dev remains pinned to `02cdf8789`). fixed two original retry failures, then fixed the newly found legacy-record checksum regression in `7b56b2ab6`: omitting false `Image.trash` preserves version-one checksums. the existing ExpectedOwners compatibility tests were RED (2 failures) and now GREEN (3/3 including corrupt-record refusal). move/delete/duplicate recovery regression runner is GREEN (3 parent regressions across 11 kill windows, plus 2 helpers). fresh Chromium and WebKit action-protocol matrices on this head: 4/4 each at 1440/390. fmt, workspace/all-target clippy with warnings denied and targeted reorder tests pass. full workspace run is still active on dev-01 in `tasks-894-workspace-v3.service`, log `~/tasks-894-workspace-v3.log`; the older workspace run was superseded and is not a pass. both shared perf locks were acquired in order at 05:53 IST and remain held. corrected tick ABAB (identical benchmark source built against dev and the PR), 100 accepted transitions per round, 50 counted retries, zero final refusals: | p95 ms | dev A1 | PR B1 | dev A2 | PR B2 | ABAB delta | dev control delta | |---|---:|---:|---:|---:|---:|---:| | tick including retries | 396.469 | 396.293 | 417.524 | 404.340 | -1.64% | +1.84% | the initial tick mode without retries was discarded: it refused the actual transitions and mostly timed no-op resets. `b4e6a3f10` fixes that harness bias. first reorder batch was RED at 20.90 ms p95; `57516bcbf` reuses the writer connection. the first fixed batch is GREEN at 5.41 ms for the same 809-task group; second batch pending. the first notes ABAB (3 warm runs per round) is not flat: sync.save_ack p95 +63.41%, storm.typing +6.32%, storm.save_ack -5.25%; save control -32.97%, typing control -0.14%. a 5-run-per-round repeat is queued using the final server binary; both results will be reported. final candidate server sha256 `909e1c1c02df5f8306e60afa81e55dd8a073750e8bb1dddabef9008c7115b625`; corrected final action benchmark `9bce45e23d0ffe5f54b7c79d70cdd0bb5ebe9602b9023b344bc4be1dfbfac896`. active perf-01 units: `tasks-894-perf-hold`, `tasks-894-reorder-fixed`, `tasks-894-notes-final`; perf-02: `tasks-894-perf-hold`. tick comparison finished. reports are under `~/perf/tasks-894/reports/`. both holders will be stopped as soon as measurements finish. still BLOCKED on first-paint bytes (+81 raw/+31 gzip/+109 brotli) and per-field stale opt-in (#919/#928), independently of pending perf/workspace results. no merge or close.
Author
Owner

final gate report: blocked

head bf08566987f9211d23920074d8f6694da1ee48d5, merged current dev 258f3eac8a8fc925eeb5c57a9df2a4b68b44e365. no pr was merged or closed.

gate result evidence / limit
dev merge and push pass clean merge; final head above
fmt / clippy -D warnings pass repeated at final head on dev-01
cargo test --workspace pass complete v3 run, including doctests; identical final rust tree
crash retry correctness pass red first, then 3 parent regressions across 11 kill windows; 5/5 runner tests including helpers
old executor records pass checksum compatibility failed first; 3/3 fixture tests pass after fix
chromium, 1440 + 390 pass tasks-actions + picker-lazy: 8/8 on dev-01
webkit, 1440 + 390 pass same specs: 8/8 on dev-02
web unit / svelte-check pass 109/109 tests; 0 errors, 16 existing warnings
first-paint brotli bytes pass 230948 → 230826, -122 b; raw +81 b, gzip +25 b; css identical
tick perf pass corrected common harness, abab -1.64%; dev control +1.84%
reorder perf pass 809-task group, 50 drags: p95 5.413 / 5.296 ms, both ≤15 ms
notes perf flatness blocked save / typing regressions below; under budget is insufficient
touched list paths flatness blocked mixed deltas below; baseline also fails first-touch / cold growth budgets
per-field stale check blocked #919 contract and shared helper #928 remain dependencies; whole-note versions do not satisfy this gate
full old b2/b3 scope held promotion and physical-line move scope still need disposition
review approval pending review discussion carried by comments; no formal approval returned by reviews api

the retry tests kill a real child process. move and delete cover placed(0), committed, history installed, batch published and publication recorded. delete checks exact trash bytes and restore. duplicate covers durable copy before receipt and checks one copy with stable marker identities. fixes include replay fingerprint stability, deterministic duplicate block ids, old journal checksum compatibility, and a lazy persistent reorder writer connection. each change was committed and pushed separately.

rust commands, through nix and ~/bin/slot on dev-01:

cargo fmt --all -- --check
cargo clippy --workspace --all-targets -j4 -- -D warnings
cargo test -p calternal-tasks -j4 reorder -- --nocapture
cargo test --workspace -j4 --no-fail-fast

workspace v3 ran at 57516bcbf4165307cc9cf60518e21eebe4ba413c; its crates tree and cargo/flake files are identical to final head. fmt/clippy were repeated at final head. dev's old 02cdf87897c18486cd7856a487896019b3eb470d and current 258f3eac8 also have identical rust/cargo/flake inputs. crates tree ids: dev 8d3da72182449fb35b5d9c68e190a36541cbd195, candidate 6734c40ad1e7acefe8e5c462a06922fd2d895ef7. the final merge adds frontend lazy autocomplete only. perf binaries were built before that merge and are backend-source-equivalent, not newly built at final head.

browser commands, in apps/web under nix and ~/bin/slot, with CALTERNAL_BIN pointing to the worktree debug server:

bunx playwright test e2e/tasks-actions.spec.ts e2e/picker-lazy.spec.ts --project=chromium-1440 --project=chromium-390 --workers=1 --retries=0
bunx playwright test e2e/tasks-actions.spec.ts e2e/picker-lazy.spec.ts --project=webkit-1440 --project=webkit-390 --workers=1 --retries=0

frozen bun install, web check/unit tests and bun run build && node scripts/bundle-size.mjs dist --json also ran under nix/slot. current repository first-paint gate measures brotli. final dev/pr raw js 812596/812677, gzip 271284/271309, brotli 230948/230826. css raw/gzip/brotli 102659/21043/18383 on both.

the pending ui stack was separately probed on scratch integration 9b54b7a8a, not the merge candidate: chromium 70 pass / 11 skip / 1 initial failure; webkit 69 / 11 / 2. composer and board failures did not reproduce in repeat-10 on either candidate or dev, so the brief's flake rule applies. tracked in #964 and #979. that stack still uses update/set-status; passing browser protocol cases does not claim move/reorder/delete ui wiring exists.

perf: both shared locks held together, perf-01 acquired first; measurement on perf-01; fresh 10k-note/task fixtures, abab and dev-vs-dev control in the same session. all binaries verified by sha256. all jobs stopped, locks released and seeded data removed. raw reports, exact shell scripts and binary fingerprints are attached.

corrected tick (--existing-only --n 50): each round has 100 accepted transitions, 50 retries and zero final refusals, including retry cost. p95 dev a1/a2 396.469/417.524 ms; candidate b1/b2 396.293/404.340 ms. means 406.996 → 400.317 ms, -1.64%; control 410.277 → 417.830 ms, +1.84%. old tick reports without v2 timed mostly no-ops and are excluded from the verdict.

new action endpoints are absent on dev, so these are absolute measurements, with delta n/a. tasks-write-bench --n 50, two fresh fixtures:

action p95 ms run 1 run 2 mean
reorder 5.413 5.296 5.354
move when 158.017 158.883 158.450
someday to day 314.136 344.840 329.488
delete 735.806 727.341 731.573
duplicate 33.316 31.274 32.295
undo 347.722 360.100 353.911
50-task batch 1401.510 1338.667 1370.088

action timing is answered-attempt latency; logs separately report 100 version refetches and 50 late retries, zero final refusals. common tick above includes retry cost. before the persistent writer fix, reorder was 20.90/12.44 ms; fixed results pass twice.

final notes abab uses identical common calternal-perf harness: --sizes 10k --runs 5 --cold-runs 1 --idle-secs 0 --storm-edits 10000 --storm-clients 4 --seed 1. p95 means of a1/a2 and b1/b2:

path dev ms pr ms delta dev control delta
storm.save_ack 10.0609 13.6584 +35.76% -2.02%
storm.typing 2.2192 2.6098 +17.60% +2.18%
sync.durable_write 23.6342 26.7960 +13.38% +11.54%
sync.round_trip .3457 .3518 +1.76% -2.04%
sync.save_ack 4.8470 5.1320 +5.88% +5.48%
uploads.save_ack 8.5694 11.3508 +32.46% -8.13%

earlier 3-warm-run results are retained separately, not pooled: sync.save_ack +63.41%, storm.typing +6.32%, storm.save_ack -5.25%. neither run establishes flat notes. #898 already owns executor hot-path redesign; this report does not merge or duplicate that work.

additional touched list/version path, tasks-bench --notes 10000 --runs 3, 200 list samples and 2340 warm writes per round:

path dev ms pr ms delta dev control delta
anytime 2.4562 2.4123 -1.79% -7.73%
anytime child-tag 3.0350 3.2677 +7.66% -30.14%
counts .3352 .3281 -2.12% -34.54%
someday 2.5628 2.4607 -3.98% -3.88%
tag 2.8994 3.1500 +8.64% -3.27%
today 3.0782 3.1047 +.86% -.06%
today priority 2.8763 2.7965 -2.77% -10.18%
untracked 1.7239 1.3958 -19.03% -40.68%
upcoming 2.9519 2.9988 +1.59% -5.11%
update first touch 56.5777 57.5108 +1.65% -.86%
update warm 16.1256 15.5086 -3.83% -8.66%
describe .0378 .0360 -4.78% +.26%
describe + rows .0791 .0724 -8.55% -1.62%

all six list harness rounds exit 1 because first-touch update exceeds 40 ms and cold-index growth exceeds 10%, also on dev. these are complete measurement reports, not harness crashes or candidate-only failures.

keeper proposal: keep #894, which carries the reviewed executor replacement from review comment 76844. #798's round-three discussion explicitly requested simplification and #799 was held for the same redesign. conditionally close #798 (f1600ed05109566241d1daa19c91be1d2b81ed1c) and #799 (7656894724bc5689f4ae3807665c703c455107bd) as superseded only after their review probes and missing promotion/physical-line-move scope have been preserved or explicitly resolved. do not close #894 as the duplicate. proposals were posted on all three; no closure or merge performed.

evidence archive

final gate report: **blocked** head `bf08566987f9211d23920074d8f6694da1ee48d5`, merged current dev `258f3eac8a8fc925eeb5c57a9df2a4b68b44e365`. no pr was merged or closed. | gate | result | evidence / limit | |---|---|---| | dev merge and push | pass | clean merge; final head above | | fmt / clippy -D warnings | pass | repeated at final head on dev-01 | | cargo test --workspace | pass | complete v3 run, including doctests; identical final rust tree | | crash retry correctness | pass | red first, then 3 parent regressions across 11 kill windows; 5/5 runner tests including helpers | | old executor records | pass | checksum compatibility failed first; 3/3 fixture tests pass after fix | | chromium, 1440 + 390 | pass | tasks-actions + picker-lazy: 8/8 on dev-01 | | webkit, 1440 + 390 | pass | same specs: 8/8 on dev-02 | | web unit / svelte-check | pass | 109/109 tests; 0 errors, 16 existing warnings | | first-paint brotli bytes | pass | 230948 → 230826, -122 b; raw +81 b, gzip +25 b; css identical | | tick perf | pass | corrected common harness, abab -1.64%; dev control +1.84% | | reorder perf | pass | 809-task group, 50 drags: p95 5.413 / 5.296 ms, both ≤15 ms | | notes perf flatness | **blocked** | save / typing regressions below; under budget is insufficient | | touched list paths flatness | **blocked** | mixed deltas below; baseline also fails first-touch / cold growth budgets | | per-field stale check | **blocked** | #919 contract and shared helper #928 remain dependencies; whole-note versions do not satisfy this gate | | full old b2/b3 scope | **held** | promotion and physical-line move scope still need disposition | | review approval | pending | review discussion carried by comments; no formal approval returned by reviews api | the retry tests kill a real child process. move and delete cover placed(0), committed, history installed, batch published and publication recorded. delete checks exact trash bytes and restore. duplicate covers durable copy before receipt and checks one copy with stable marker identities. fixes include replay fingerprint stability, deterministic duplicate block ids, old journal checksum compatibility, and a lazy persistent reorder writer connection. each change was committed and pushed separately. rust commands, through nix and ~/bin/slot on dev-01: ```sh cargo fmt --all -- --check cargo clippy --workspace --all-targets -j4 -- -D warnings cargo test -p calternal-tasks -j4 reorder -- --nocapture cargo test --workspace -j4 --no-fail-fast ``` workspace v3 ran at `57516bcbf4165307cc9cf60518e21eebe4ba413c`; its crates tree and cargo/flake files are identical to final head. fmt/clippy were repeated at final head. dev's old `02cdf87897c18486cd7856a487896019b3eb470d` and current `258f3eac8` also have identical rust/cargo/flake inputs. crates tree ids: dev `8d3da72182449fb35b5d9c68e190a36541cbd195`, candidate `6734c40ad1e7acefe8e5c462a06922fd2d895ef7`. the final merge adds frontend lazy autocomplete only. perf binaries were built before that merge and are backend-source-equivalent, not newly built at final head. browser commands, in apps/web under nix and ~/bin/slot, with CALTERNAL_BIN pointing to the worktree debug server: ```sh bunx playwright test e2e/tasks-actions.spec.ts e2e/picker-lazy.spec.ts --project=chromium-1440 --project=chromium-390 --workers=1 --retries=0 bunx playwright test e2e/tasks-actions.spec.ts e2e/picker-lazy.spec.ts --project=webkit-1440 --project=webkit-390 --workers=1 --retries=0 ``` frozen bun install, web check/unit tests and `bun run build && node scripts/bundle-size.mjs dist --json` also ran under nix/slot. current repository first-paint gate measures brotli. final dev/pr raw js 812596/812677, gzip 271284/271309, brotli 230948/230826. css raw/gzip/brotli 102659/21043/18383 on both. the pending ui stack was separately probed on scratch integration `9b54b7a8a`, not the merge candidate: chromium 70 pass / 11 skip / 1 initial failure; webkit 69 / 11 / 2. composer and board failures did not reproduce in repeat-10 on either candidate or dev, so the brief's flake rule applies. tracked in #964 and #979. that stack still uses update/set-status; passing browser protocol cases does not claim move/reorder/delete ui wiring exists. perf: both shared locks held together, perf-01 acquired first; measurement on perf-01; fresh 10k-note/task fixtures, abab and dev-vs-dev control in the same session. all binaries verified by sha256. all jobs stopped, locks released and seeded data removed. raw reports, exact shell scripts and binary fingerprints are attached. corrected tick (`--existing-only --n 50`): each round has 100 accepted transitions, 50 retries and zero final refusals, including retry cost. p95 dev a1/a2 396.469/417.524 ms; candidate b1/b2 396.293/404.340 ms. means 406.996 → 400.317 ms, **-1.64%**; control 410.277 → 417.830 ms, **+1.84%**. old tick reports without `v2` timed mostly no-ops and are excluded from the verdict. new action endpoints are absent on dev, so these are absolute measurements, with delta n/a. `tasks-write-bench --n 50`, two fresh fixtures: | action p95 ms | run 1 | run 2 | mean | |---|---:|---:|---:| | reorder | 5.413 | 5.296 | 5.354 | | move when | 158.017 | 158.883 | 158.450 | | someday to day | 314.136 | 344.840 | 329.488 | | delete | 735.806 | 727.341 | 731.573 | | duplicate | 33.316 | 31.274 | 32.295 | | undo | 347.722 | 360.100 | 353.911 | | 50-task batch | 1401.510 | 1338.667 | 1370.088 | action timing is answered-attempt latency; logs separately report 100 version refetches and 50 late retries, zero final refusals. common tick above includes retry cost. before the persistent writer fix, reorder was 20.90/12.44 ms; fixed results pass twice. final notes abab uses identical common `calternal-perf` harness: `--sizes 10k --runs 5 --cold-runs 1 --idle-secs 0 --storm-edits 10000 --storm-clients 4 --seed 1`. p95 means of a1/a2 and b1/b2: | path | dev ms | pr ms | delta | dev control delta | |---|---:|---:|---:|---:| | storm.save_ack | 10.0609 | 13.6584 | **+35.76%** | -2.02% | | storm.typing | 2.2192 | 2.6098 | **+17.60%** | +2.18% | | sync.durable_write | 23.6342 | 26.7960 | +13.38% | +11.54% | | sync.round_trip | .3457 | .3518 | +1.76% | -2.04% | | sync.save_ack | 4.8470 | 5.1320 | +5.88% | +5.48% | | uploads.save_ack | 8.5694 | 11.3508 | +32.46% | -8.13% | earlier 3-warm-run results are retained separately, not pooled: sync.save_ack +63.41%, storm.typing +6.32%, storm.save_ack -5.25%. neither run establishes flat notes. #898 already owns executor hot-path redesign; this report does not merge or duplicate that work. additional touched list/version path, `tasks-bench --notes 10000 --runs 3`, 200 list samples and 2340 warm writes per round: | path | dev ms | pr ms | delta | dev control delta | |---|---:|---:|---:|---:| | anytime | 2.4562 | 2.4123 | -1.79% | -7.73% | | anytime child-tag | 3.0350 | 3.2677 | +7.66% | -30.14% | | counts | .3352 | .3281 | -2.12% | -34.54% | | someday | 2.5628 | 2.4607 | -3.98% | -3.88% | | tag | 2.8994 | 3.1500 | +8.64% | -3.27% | | today | 3.0782 | 3.1047 | +.86% | -.06% | | today priority | 2.8763 | 2.7965 | -2.77% | -10.18% | | untracked | 1.7239 | 1.3958 | -19.03% | -40.68% | | upcoming | 2.9519 | 2.9988 | +1.59% | -5.11% | | update first touch | 56.5777 | 57.5108 | +1.65% | -.86% | | update warm | 16.1256 | 15.5086 | -3.83% | -8.66% | | describe | .0378 | .0360 | -4.78% | +.26% | | describe + rows | .0791 | .0724 | -8.55% | -1.62% | all six list harness rounds exit 1 because first-touch update exceeds 40 ms and cold-index growth exceeds 10%, also on dev. these are complete measurement reports, not harness crashes or candidate-only failures. keeper proposal: keep **#894**, which carries the reviewed executor replacement from review comment 76844. #798's round-three discussion explicitly requested simplification and #799 was held for the same redesign. conditionally close #798 (`f1600ed05109566241d1daa19c91be1d2b81ed1c`) and #799 (`7656894724bc5689f4ae3807665c703c455107bd`) as superseded only after their review probes and missing promotion/physical-line-move scope have been preserved or explicitly resolved. do not close #894 as the duplicate. proposals were posted on all three; no closure or merge performed. [evidence archive](https://git.kayg.org/attachments/48ee4b2d-0f18-45b2-a584-d4210f1adbd4)
Author
Owner

Orchestrator status: WebKit specs are pending: std VMs paused; no new jobs will start on dev-02 or the Mac while the pause is active. Chromium specs will run on dev-01. Perf work is waiting for the current perf-01 lock and the maintainer CPU pin; post-pin comparisons will use a fresh ABAB session and same-session dev-vs-dev control.

Orchestrator status: WebKit specs are `pending: std VMs paused`; no new jobs will start on dev-02 or the Mac while the pause is active. Chromium specs will run on dev-01. Perf work is waiting for the current perf-01 lock and the maintainer CPU pin; post-pin comparisons will use a fresh ABAB session and same-session dev-vs-dev control.
Author
Owner

Gate update: WebKit pending: std VMs paused. No dev-02 or Mac job has been started. Tasks and Notes Chromium is queued on dev-01 behind daily-train-1108; the fresh perf ABAB has not started while the train is active. I will post the post-pin comparison after it completes.

Gate update: WebKit pending: std VMs paused. No dev-02 or Mac job has been started. Tasks and Notes Chromium is queued on dev-01 behind daily-train-1108; the fresh perf ABAB has not started while the train is active. I will post the post-pin comparison after it completes.
Author
Owner

Rebased onto origin/dev 31972329b0; new head 02e226874e. Resolved conflicts while retaining the current-dev Sharing and Notes mutation names, the caller-aware executor path, and the existing first-sync guard. Rust gates are running on dev-01 through ~/bin/slot; fresh performance and bundle measurements remain pending. Not READY yet.

Rebased onto origin/dev 31972329b0691183dbda982d6f0c765139ad3368; new head 02e226874e03a9a1dea30005ca95e840873df5c8. Resolved conflicts while retaining the current-dev Sharing and Notes mutation names, the caller-aware executor path, and the existing first-sync guard. Rust gates are running on dev-01 through ~/bin/slot; fresh performance and bundle measurements remain pending. Not READY yet.
Author
Owner

BLOCKED, not READY. Source review at 02e226874e03a9a1dea30005ca95e840873df5c8 confirms three contract gaps before the remaining gates:

  • tasks.undo only accepts move and move-many jobs, and currently refuses the whole inverse when any touched/read note changed. The W1 decision requires the device's reverse-order undo behavior and a same-line edit from another device to skip only that affected step with a notice.
  • tasks.delete leaves the owning checkbox line in place and returns notes.restore. W2 plus ADR 0066 require the lines to leave with the task and to return at the nearest surviving anchor, or in today's daily note with a notice if the original note is gone.
  • tasks.set-status and tasks.set-status-many still describe Home undo as gated, despite the accepted undo-everything decision.

No gate pass is claimed. The dev-01 Rust job is still queued behind occupied slots, with no Rust command result yet. Fresh Notes save, typing and Tasks list ABAB plus the bundle gate remain pending. I will keep #887 downstream until these are resolved and verified.

**BLOCKED, not READY.** Source review at `02e226874e03a9a1dea30005ca95e840873df5c8` confirms three contract gaps before the remaining gates: - `tasks.undo` only accepts move and move-many jobs, and currently refuses the whole inverse when any touched/read note changed. The W1 decision requires the device's reverse-order undo behavior and a same-line edit from another device to skip only that affected step with a notice. - `tasks.delete` leaves the owning checkbox line in place and returns `notes.restore`. W2 plus ADR 0066 require the lines to leave with the task and to return at the nearest surviving anchor, or in today's daily note with a notice if the original note is gone. - `tasks.set-status` and `tasks.set-status-many` still describe Home undo as gated, despite the accepted undo-everything decision. No gate pass is claimed. The dev-01 Rust job is still queued behind occupied slots, with no Rust command result yet. Fresh Notes save, typing and Tasks list ABAB plus the bundle gate remain pending. I will keep #887 downstream until these are resolved and verified.
Author
Owner

Status: BLOCKED, not READY. Head is now 7b5ff29df4a67db645e229ae28c8c911e8854124. I pushed the delete/restore regression expectation first: deleting must remove the owning checkbox and relationship line; Undo must restore the source note byte for byte.

The existing Rust gate is still running against the previous 02e226874e03a9a1dea30005ca95e840873df5c8 worktree. It has completed cargo test -p calternal-tasks (107 passed, 0 failed) and is continuing; this does not validate the new test. I will wait for that run, then run the new test through ~/bin/slot to confirm the expected failure before implementation. The W1/W2 plan is now at the top of the PR description. Fresh perf and bundle gates remain pending.

**Status: BLOCKED, not READY.** Head is now `7b5ff29df4a67db645e229ae28c8c911e8854124`. I pushed the delete/restore regression expectation first: deleting must remove the owning checkbox and relationship line; Undo must restore the source note byte for byte. The existing Rust gate is still running against the previous `02e226874e03a9a1dea30005ca95e840873df5c8` worktree. It has completed `cargo test -p calternal-tasks` (107 passed, 0 failed) and is continuing; this does not validate the new test. I will wait for that run, then run the new test through `~/bin/slot` to confirm the expected failure before implementation. The W1/W2 plan is now at the top of the PR description. Fresh perf and bundle gates remain pending.
Author
Owner

#894 update (11 Nov): rebased onto current origin/dev 1a14e9f10f9776c0002e3be8a38bcf77670537f5 without conflicts. New head: c7534513eba069387fc6a3bfcca574de8d7f9f1d. The source delete/restore implementation is pushed. A focused diagnostic is still queued on dev-01 against the pre-rebase head and will not count as final-head evidence. Rust gates, fresh Notes save/typing/Tasks-list ABAB and bundle qualification remain pending; #894 stays BLOCKED.

#894 update (11 Nov): rebased onto current `origin/dev` `1a14e9f10f9776c0002e3be8a38bcf77670537f5` without conflicts. New head: `c7534513eba069387fc6a3bfcca574de8d7f9f1d`. The source delete/restore implementation is pushed. A focused diagnostic is still queued on dev-01 against the pre-rebase head and will not count as final-head evidence. Rust gates, fresh Notes save/typing/Tasks-list ABAB and bundle qualification remain pending; #894 stays BLOCKED.
Author
Owner

#894 current-head update (11 Nov)

Head 78f00ffada25b4e38f6fd3dbeafd5b010db6e404 adds the missing direct calternal-markdown-view dependency to calternal-notes, used by the source-link restore helper in crates/notes/src/trash.rs.

The first current-head focused delete and contract test jobs both stopped at compile time with E0433 for that undeclared crate, before either assertion ran. The focused delete regression is queued again on dev-01 through ~/bin/slot. Contract verification, Rust gates, bundle qualification, and fresh save/typing/Tasks-list ABAB are still pending. #894 remains BLOCKED; no gate pass is claimed.

#894 current-head update (11 Nov) Head `78f00ffada25b4e38f6fd3dbeafd5b010db6e404` adds the missing direct `calternal-markdown-view` dependency to `calternal-notes`, used by the source-link restore helper in `crates/notes/src/trash.rs`. The first current-head focused delete and contract test jobs both stopped at compile time with `E0433` for that undeclared crate, before either assertion ran. The focused delete regression is queued again on dev-01 through `~/bin/slot`. Contract verification, Rust gates, bundle qualification, and fresh save/typing/Tasks-list ABAB are still pending. #894 remains BLOCKED; no gate pass is claimed.
Author
Owner

#894 progress update (11 November)

Head 0f0b93f3a6c34de55b607700b91f13fa45756a4b fixes the compile error found by the current-head focused delete retest: trash.rs now formats the replacement while the label borrows the source, then moves the exact source bytes into the splice. The first retest at 78f00ff failed at compile time with E0505 before assertions.

The focused delete test is queued again on dev-01 through ~/bin/slot:

cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4

No gate pass is claimed. Contract verification, full Rust gates, web checks/e2e, bundle qualification, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier storm.save_ack p95 +35.76% and storm.typing +17.60% results remain unwaived; #894 is still BLOCKED.

#894 progress update (11 November) Head `0f0b93f3a6c34de55b607700b91f13fa45756a4b` fixes the compile error found by the current-head focused delete retest: `trash.rs` now formats the replacement while the label borrows the source, then moves the exact source bytes into the splice. The first retest at `78f00ff` failed at compile time with E0505 before assertions. The focused delete test is queued again on dev-01 through `~/bin/slot`: ```sh cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4 ``` No gate pass is claimed. Contract verification, full Rust gates, web checks/e2e, bundle qualification, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier `storm.save_ack` p95 `+35.76%` and `storm.typing` `+17.60%` results remain unwaived; #894 is still BLOCKED.
Author
Owner

#894 progress update (11 November)

The retest at 0f0b93f passed the Trash borrow fix and then found a second compile issue: tasks.delete hashes retained bytes without a direct blake3 dependency, and the file has an unused ErrorCode import. Head baa497b4624598b72cce38e5e0e0d1c39cbea1f4 declares the dependency and removes that import.

The focused delete regression is queued again on dev-01 through ~/bin/slot:

cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4

No gate pass is claimed. Contract verification, full Rust gates, web checks/e2e, bundle qualification, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier storm.save_ack p95 +35.76% and storm.typing +17.60% results remain unwaived; #894 is still BLOCKED.

#894 progress update (11 November) The retest at `0f0b93f` passed the Trash borrow fix and then found a second compile issue: `tasks.delete` hashes retained bytes without a direct `blake3` dependency, and the file has an unused `ErrorCode` import. Head `baa497b4624598b72cce38e5e0e0d1c39cbea1f4` declares the dependency and removes that import. The focused delete regression is queued again on dev-01 through `~/bin/slot`: ```sh cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4 ``` No gate pass is claimed. Contract verification, full Rust gates, web checks/e2e, bundle qualification, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier `storm.save_ack` p95 `+35.76%` and `storm.typing` `+17.60%` results remain unwaived; #894 is still BLOCKED.
Author
Owner

#894 progress update (11 November)

The follow-up retest had not acquired a dev-01 slot when static inspection found the new direct blake3 dependency missing from Cargo.lock. Head 53bb45c1e8 now includes the lockfile edge as well as the manifest dependency and the import cleanup. The focused delete regression has been queued again on dev-01 through ~/bin/slot:

cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4

No gate pass is claimed. Full Rust, web/e2e, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier save and typing regressions remain unwaived; #894 is still BLOCKED.

#894 progress update (11 November) The follow-up retest had not acquired a dev-01 slot when static inspection found the new direct blake3 dependency missing from Cargo.lock. Head 53bb45c1e8836786e357f06509385132fd1f2902 now includes the lockfile edge as well as the manifest dependency and the import cleanup. The focused delete regression has been queued again on dev-01 through ~/bin/slot: cargo test -p calternal-tasks actions_tests::delete_removes_owner_extent_but_keeps_session_prose --lib --locked -j4 No gate pass is claimed. Full Rust, web/e2e, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier save and typing regressions remain unwaived; #894 is still BLOCKED.
Author
Owner

#894 resumed progress (11 November)

Head 7710842e44 adds a regression for undo after another device inserts an unrelated line before an owning checkbox. The focused test is still queued on dev-01 through ~/bin/slot behind the active train; no result is available yet. A separate earlier focused delete test remains queued on its existing worktree, which has a pre-existing flake.nix edit; that worktree is untouched.

No gate pass is claimed. Rust, web/e2e, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier storm.save_ack +35.76% and storm.typing +17.60% regressions are still unwaived. #894 remains BLOCKED.

#894 resumed progress (11 November) Head 7710842e44f1de4355799491d9f6398ed6fcbf30 adds a regression for undo after another device inserts an unrelated line before an owning checkbox. The focused test is still queued on dev-01 through ~/bin/slot behind the active train; no result is available yet. A separate earlier focused delete test remains queued on its existing worktree, which has a pre-existing flake.nix edit; that worktree is untouched. No gate pass is claimed. Rust, web/e2e, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. The earlier storm.save_ack +35.76% and storm.typing +17.60% regressions are still unwaived. #894 remains BLOCKED.
Author
Owner

#894 progress (11 November)

Head 882c901dc6 adds a same-line external-edit regression. The branch is up to date with latest origin/dev (merge base 7d6774e44c; no rebase conflicts). The existing unrelated-line undo check and focused delete check remain active on dev-01 behind train-1112a; the new undo boundary tests are queued through ~/bin/slot. No gate result is claimed yet. The earlier Notes-save +35.76% and typing +17.60% deltas remain unwaived.

#894 progress (11 November) Head 882c901dc65479bbcd36f4c83706c6ef4d83f2cf adds a same-line external-edit regression. The branch is up to date with latest origin/dev (merge base 7d6774e44c200a5a5fe0c514b92ecaf3b29bda95; no rebase conflicts). The existing unrelated-line undo check and focused delete check remain active on dev-01 behind train-1112a; the new undo boundary tests are queued through ~/bin/slot. No gate result is claimed yet. The earlier Notes-save +35.76% and typing +17.60% deltas remain unwaived.
Author
Owner

Progress update (12 November) — BLOCKED, not READY

Head: 5300c7ab0545a4819145a357d132fcc38dc58569; fetched origin/dev be968d9df0c759d4200c50d8d8396990cd43338f is already an ancestor, so rebase is an up-to-date no-op.

The earlier unit at 9aa3acd auto-collected after cargo fmt --all -- --check failed; it did not run tests. The format fix is now pushed. On this head, cargo fmt --all -- --check passes, then the focused W1 regression fails:

cargo test -p calternal-tasks status_action::tests::undo_skips_changed_task_line_and_reverses_other_batch_items --lib --locked -j4

It returns BlockChanged: recorded task line changed instead of undoing the unaffected batch item and reporting the skipped task ID. I am implementing that per-task behavior next. No gate pass is claimed. The prior Notes-save +35.76% and typing +17.60% remain unwaived; full Rust, contract, web/e2e, contrast, bundle, and fresh ABAB gates are pending.

## Progress update (12 November) — BLOCKED, not READY Head: `5300c7ab0545a4819145a357d132fcc38dc58569`; fetched `origin/dev` `be968d9df0c759d4200c50d8d8396990cd43338f` is already an ancestor, so rebase is an up-to-date no-op. The earlier unit at `9aa3acd` auto-collected after `cargo fmt --all -- --check` failed; it did not run tests. The format fix is now pushed. On this head, `cargo fmt --all -- --check` passes, then the focused W1 regression fails: ```sh cargo test -p calternal-tasks status_action::tests::undo_skips_changed_task_line_and_reverses_other_batch_items --lib --locked -j4 ``` It returns `BlockChanged: recorded task line changed` instead of undoing the unaffected batch item and reporting the skipped task ID. I am implementing that per-task behavior next. No gate pass is claimed. The prior Notes-save `+35.76%` and typing `+17.60%` remain unwaived; full Rust, contract, web/e2e, contrast, bundle, and fresh ABAB gates are pending.
Author
Owner

Resumed gate status (12 November, 17:52 IST) — BLOCKED, not READY

Head 5e44041200c0627462a3716880480f361042a4e0; fetched origin/dev be968d9df0c759d4200c50d8d8396990cd43338f is an ancestor, so rebasing was an up-to-date no-op with no conflicts.

The prior focused undo run had already finished before reconnect. Its retained log ends with 18 passed and 0 failed; this is not the full Rust gate set. No current #894 service remains running.

I could not resume dev-01 gates: three timeout 60 netbird ssh claude@calternal-dev-01-compute02 attempts failed by 17:52 IST (the first timed out; the next two returned “no route to host”). No test command started on those retries and no source changes were made. I will continue when that host is reachable.

The earlier Notes-save +35.76% and typing +17.60% results remain unwaived. Fresh controlled ABAB, full Rust, contract, web/e2e, full suite per project, contrast and bundle gates are pending. No budgets were raised.

## Resumed gate status (12 November, 17:52 IST) — BLOCKED, not READY Head `5e44041200c0627462a3716880480f361042a4e0`; fetched `origin/dev` `be968d9df0c759d4200c50d8d8396990cd43338f` is an ancestor, so rebasing was an up-to-date no-op with no conflicts. The prior focused undo run had already finished before reconnect. Its retained log ends with 18 passed and 0 failed; this is not the full Rust gate set. No current #894 service remains running. I could not resume dev-01 gates: three `timeout 60 netbird ssh claude@calternal-dev-01-compute02` attempts failed by 17:52 IST (the first timed out; the next two returned “no route to host”). No test command started on those retries and no source changes were made. I will continue when that host is reachable. The earlier Notes-save `+35.76%` and typing `+17.60%` results remain unwaived. Fresh controlled ABAB, full Rust, contract, web/e2e, full suite per project, contrast and bundle gates are pending. No budgets were raised.
Author
Owner

Progress update (12 November) — BLOCKED, not READY

Current head: d79b03083 (fix(tasks): remove unused undo test snapshot). This removes the unused daily_before binding seen in the retained test compile output, which would trip clippy -D warnings. It is a one-line test-only cleanup; no behavior or budget changed. origin/dev remains an ancestor of the branch.

The prior focused undo run at parent 5e440412 ended with 18 passed and 0 failed, but does not validate this new head or the full Rust gates. Dev-01 still reports NetBird Connecting; three SSH attempts through 17:52 IST failed (timeout, then two no route to host errors). No current-head gate started on dev-01. I will rerun after connectivity returns.

The earlier Notes-save +35.76% and typing +17.60% remain unwaived. Full Rust/contract, web checks and unit tests, targeted e2e, full suite per project, contrast, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. No budgets were raised.

## Progress update (12 November) — BLOCKED, not READY Current head: `d79b03083` (`fix(tasks): remove unused undo test snapshot`). This removes the unused `daily_before` binding seen in the retained test compile output, which would trip `clippy -D warnings`. It is a one-line test-only cleanup; no behavior or budget changed. `origin/dev` remains an ancestor of the branch. The prior focused undo run at parent `5e440412` ended with 18 passed and 0 failed, but does not validate this new head or the full Rust gates. Dev-01 still reports NetBird `Connecting`; three SSH attempts through 17:52 IST failed (timeout, then two `no route to host` errors). No current-head gate started on dev-01. I will rerun after connectivity returns. The earlier Notes-save `+35.76%` and typing `+17.60%` remain unwaived. Full Rust/contract, web checks and unit tests, targeted e2e, full suite per project, contrast, bundle, and fresh Notes-save/typing/Tasks-list ABAB remain pending. No budgets were raised.
Author
Owner

Resume state (12 November)

  • Current head is d79b030830a5513c9436ffdfb0ad0d022043dc78. Fetched origin/dev is be968d9df0c759d4200c50d8d8396990cd43338f; it is already an ancestor, so the rebase is up to date with no conflicts.
  • Reattached the existing dev-01 worktree tasks894-final-head-20261112 to this head. There was no active #894 process in that tree. The active train-1112b container build on dev-01 and NFA WebKit suites on dev-02 were left running.
  • Current-head Rust/contract gates are running as tasks894-rust-gates-20261112-ws1.service through ~/bin/slot. Scratch log: /tmp/tasks894-rust.MzrVp5/run.log; exit file: /tmp/tasks894-rust.MzrVp5/exit. No gate result is claimed yet.
  • The perf FIFO is occupied by att-lazy-gate1, nfa-1a-smoke, and tables-typing-diag-r4; no ticket or lock has been taken because binaries are not staged. Mac bench lock is free; the existing Safari session was left untouched.
  • The earlier Notes-save +35.76% and typing +17.60% results remain unwaived.
## Resume state (12 November) - Current head is `d79b030830a5513c9436ffdfb0ad0d022043dc78`. Fetched `origin/dev` is `be968d9df0c759d4200c50d8d8396990cd43338f`; it is already an ancestor, so the rebase is up to date with no conflicts. - Reattached the existing dev-01 worktree `tasks894-final-head-20261112` to this head. There was no active #894 process in that tree. The active `train-1112b` container build on dev-01 and NFA WebKit suites on dev-02 were left running. - Current-head Rust/contract gates are running as `tasks894-rust-gates-20261112-ws1.service` through `~/bin/slot`. Scratch log: `/tmp/tasks894-rust.MzrVp5/run.log`; exit file: `/tmp/tasks894-rust.MzrVp5/exit`. No gate result is claimed yet. - The perf FIFO is occupied by `att-lazy-gate1`, `nfa-1a-smoke`, and `tables-typing-diag-r4`; no ticket or lock has been taken because binaries are not staged. Mac bench lock is free; the existing Safari session was left untouched. - The earlier Notes-save `+35.76%` and typing `+17.60%` results remain unwaived.
Author
Owner

Dev-01 post-reboot check (12 November)

The host reports boot at 13:32 local CET; the #894 gate unit started at 13:47 CET, after that boot, and is still active. It has not passed ~/bin/slot yet: the only live Rust command found is the daily train's cargo test --workspace --locked -j4, and the #894 unit is waiting behind it. I did not restart the active unit.

No current-head Rust command or assertion output has run, so there is no partial gate result to keep or discard. The older focused undo run was on parent 5e440412, not this head, and is not counted. No perf turn or measurement was started.

The current log copy and all future #894 logs/fixtures are under the existing worktree's ignored target/ directory: /home/claude/Developer/Worktrees/tasks894-final-head-20261112/target/tasks894-resume-20261112.6t5hm4/rust-gates.log. A live mirror unit is active while the current gate writes its original log. Train and NFA jobs were left running.

## Dev-01 post-reboot check (12 November) The host reports boot at 13:32 local CET; the #894 gate unit started at 13:47 CET, after that boot, and is still active. It has not passed `~/bin/slot` yet: the only live Rust command found is the daily train's `cargo test --workspace --locked -j4`, and the #894 unit is waiting behind it. I did not restart the active unit. No current-head Rust command or assertion output has run, so there is no partial gate result to keep or discard. The older focused undo run was on parent `5e440412`, not this head, and is not counted. No perf turn or measurement was started. The current log copy and all future #894 logs/fixtures are under the existing worktree's ignored `target/` directory: `/home/claude/Developer/Worktrees/tasks894-final-head-20261112/target/tasks894-resume-20261112.6t5hm4/rust-gates.log`. A live mirror unit is active while the current gate writes its original log. Train and NFA jobs were left running.
Author
Owner

Outage recovery (12 November)

The dev-01 unit reported as waiting in the earlier update did not survive the 13:32 UTC reboot. There is no active #894 unit or job now, so I am not treating that run as a pass; any output from a run spanning the outage is discarded.

A post-reboot Rust workspace run on head 2320f172f268047b9b4b5ff5104f902d5f9a3c5e failed in the calternal and fix_tz_live targets because its long TMPDIR left the helper without an admin socket. I will requeue it through ~/bin/slot with a short temp path under the surviving Worktrees.

Post-reboot release binaries for #894 and dev completed and both SHA256 manifests verify. Fixture data was regenerated under the #894 worktree; the fixture-seed timings run on dev-01 are not performance evidence. No ABAB measurement or gate pass is claimed. #894 remains BLOCKED.

## Outage recovery (12 November) The dev-01 unit reported as waiting in the earlier update did not survive the 13:32 UTC reboot. There is no active #894 unit or job now, so I am not treating that run as a pass; any output from a run spanning the outage is discarded. A post-reboot Rust workspace run on head `2320f172f268047b9b4b5ff5104f902d5f9a3c5e` failed in the `calternal` and `fix_tz_live` targets because its long `TMPDIR` left the helper without an admin socket. I will requeue it through `~/bin/slot` with a short temp path under the surviving Worktrees. Post-reboot release binaries for #894 and dev completed and both SHA256 manifests verify. Fixture data was regenerated under the #894 worktree; the fixture-seed timings run on dev-01 are not performance evidence. No ABAB measurement or gate pass is claimed. #894 remains BLOCKED.
Author
Owner

Post-reboot gate status (12 November 2026)

Head: 2320f172f268047b9b4b5ff5104f902d5f9a3c5e, based on fetched origin/dev 7747f0490e107391060ebd228dc71a856da28282.

  • Reattached the post-boot Rust/contract unit through ~/bin/slot; it is still running. No Rust pass is claimed yet. Pre-outage and tmpfs-path results are excluded.
  • tasks-actions.spec.ts: 2/2 passed on each main project (chromium-1440, chromium-390, webkit-1440, webkit-390).
  • Svelte-check: 0 errors, 19 warnings. Vitest: 27 files / 261 tests passed.
  • Bundle gate currently reports web.bundle.chunk.press at 7.876 KiB against the unchanged 7.86 KiB cap. A same-head-on-dev comparison is running to identify whether #894 changed it; no budget was raised.
  • Notes-save, typing, and Tasks-list ABAB has not started. Perf-01 and perf-02 remain occupied by other lanes. The prior save +35.76% and typing +17.60% deltas remain unwaived.
  • Full Playwright suites, contrast, fresh controlled perf, and the final bundle verdict remain pending.

Verdict: BLOCKED, pending the remaining gates and resolution of any PR-caused regression.

## Post-reboot gate status (12 November 2026) Head: `2320f172f268047b9b4b5ff5104f902d5f9a3c5e`, based on fetched `origin/dev` `7747f0490e107391060ebd228dc71a856da28282`. - Reattached the post-boot Rust/contract unit through `~/bin/slot`; it is still running. No Rust pass is claimed yet. Pre-outage and tmpfs-path results are excluded. - `tasks-actions.spec.ts`: 2/2 passed on each main project (chromium-1440, chromium-390, webkit-1440, webkit-390). - Svelte-check: 0 errors, 19 warnings. Vitest: 27 files / 261 tests passed. - Bundle gate currently reports `web.bundle.chunk.press` at 7.876 KiB against the unchanged 7.86 KiB cap. A same-head-on-dev comparison is running to identify whether #894 changed it; no budget was raised. - Notes-save, typing, and Tasks-list ABAB has not started. Perf-01 and perf-02 remain occupied by other lanes. The prior save +35.76% and typing +17.60% deltas remain unwaived. - Full Playwright suites, contrast, fresh controlled perf, and the final bundle verdict remain pending. **Verdict: BLOCKED**, pending the remaining gates and resolution of any PR-caused regression.
Author
Owner

Bundle comparison and dev-01 reattach update (13 November 2026)

Head remains 2320f172f268047b9b4b5ff5104f902d5f9a3c5e.

The same perf/web.sh --bundle-only --gate on the current origin/dev worktree passed. On #894, the unchanged gate reports:

Metric origin/dev #894 Delta
web.bundle.chunk.press 7.844 KiB 7.876 KiB +0.032 KiB; #894 is 0.016 KiB over the 7.86 KiB cap
web.bundle.tasks_js_brotli 12.631 KiB 12.634 KiB +0.003 KiB
web.bundle.total_js_brotli 535.108 KiB 535.102 KiB −0.006 KiB

No budgets were changed. The #894 bundle gate is currently red; the small measured growth is reported for kayg's review. A second #894 bundle build was started to confirm repeatability.

NetBird now reports dev-01 as Connecting and SSH returns no route. I cannot yet query the Rust unit's current state, so its result is unverified. It was observed active in the workspace test phase before the connection dropped; I have not restarted it. No READY is claimed.

## Bundle comparison and dev-01 reattach update (13 November 2026) Head remains `2320f172f268047b9b4b5ff5104f902d5f9a3c5e`. The same `perf/web.sh --bundle-only --gate` on the current `origin/dev` worktree passed. On #894, the unchanged gate reports: | Metric | origin/dev | #894 | Delta | |---|---:|---:|---:| | `web.bundle.chunk.press` | 7.844 KiB | 7.876 KiB | +0.032 KiB; #894 is 0.016 KiB over the 7.86 KiB cap | | `web.bundle.tasks_js_brotli` | 12.631 KiB | 12.634 KiB | +0.003 KiB | | `web.bundle.total_js_brotli` | 535.108 KiB | 535.102 KiB | −0.006 KiB | No budgets were changed. The #894 bundle gate is currently red; the small measured growth is reported for kayg's review. A second #894 bundle build was started to confirm repeatability. NetBird now reports dev-01 as Connecting and SSH returns no route. I cannot yet query the Rust unit's current state, so its result is unverified. It was observed active in the workspace test phase before the connection dropped; I have not restarted it. No READY is claimed.
Author
Owner

Bundle gate and same-build dev comparison (13 November 2026)

Head: c56dbfdf448ae7be5cd0b1c63465a07ce43e3516. Base: 7747f0490e107391060ebd228dc71a856da28282.

On dev-01, through ~/bin/slot, ran bun install --frozen-lockfile, node apps/web/scripts/action-types.mjs --check, then PERF_WORK=<worktree target> PERF_OUT=<worktree target> bash perf/web.sh --bundle-only --gate. Both action-contract check and bundle gate passed with the existing budgets.

Brotli metric dev #894 delta
web.bundle.chunk.press 7.844 KiB 7.851 KiB +0.007 KiB
web.bundle.first_js_brotli 223.749 KiB 223.693 KiB -0.056 KiB
web.bundle.plugins_js_brotli 37.848 KiB 37.948 KiB +0.100 KiB
web.bundle.tasks_js_brotli 12.631 KiB 12.630 KiB -0.001 KiB
web.bundle.total_js_brotli 535.108 KiB 535.317 KiB +0.209 KiB

The press and total remain within their existing caps, but total JS grows by 0.209 KiB against dev. This growth still needs kayg's OK before READY. No budgets were raised.

## Bundle gate and same-build dev comparison (13 November 2026) Head: `c56dbfdf448ae7be5cd0b1c63465a07ce43e3516`. Base: `7747f0490e107391060ebd228dc71a856da28282`. On dev-01, through `~/bin/slot`, ran `bun install --frozen-lockfile`, `node apps/web/scripts/action-types.mjs --check`, then `PERF_WORK=<worktree target> PERF_OUT=<worktree target> bash perf/web.sh --bundle-only --gate`. Both action-contract check and bundle gate passed with the existing budgets. | Brotli metric | dev | #894 | delta | |---|---:|---:|---:| | `web.bundle.chunk.press` | 7.844 KiB | 7.851 KiB | +0.007 KiB | | `web.bundle.first_js_brotli` | 223.749 KiB | 223.693 KiB | -0.056 KiB | | `web.bundle.plugins_js_brotli` | 37.848 KiB | 37.948 KiB | +0.100 KiB | | `web.bundle.tasks_js_brotli` | 12.631 KiB | 12.630 KiB | -0.001 KiB | | `web.bundle.total_js_brotli` | 535.108 KiB | 535.317 KiB | +0.209 KiB | The press and total remain within their existing caps, but total JS grows by 0.209 KiB against dev. This growth still needs kayg's OK before READY. No budgets were raised.
Author
Owner

Bundle growth approval needed before READY

The post-boot c56 bundle gate is within the existing caps and passed without budget changes. Against dev, first JS is 223.693 vs 223.749 KiB (-0.056), Tasks JS is 12.630 vs 12.631 KiB (-0.001), and total JS is 535.317 vs 535.108 KiB (+0.209). Please reply OK if this measured total-JS growth is acceptable. I will keep the current budgets and leave #894 non-READY until that approval arrives.

## Bundle growth approval needed before READY The post-boot c56 bundle gate is within the existing caps and passed without budget changes. Against dev, first JS is 223.693 vs 223.749 KiB (-0.056), Tasks JS is 12.630 vs 12.631 KiB (-0.001), and total JS is 535.317 vs 535.108 KiB (+0.209). Please reply `OK` if this measured total-JS growth is acceptable. I will keep the current budgets and leave #894 non-READY until that approval arrives.
Author
Owner

Tasks stack handover — 13 Nov 2026

Active order and pushed heads

Order PR Branch / head Diff size State
1 #894 feat/tasks-actions @ c8bac8aee4c8c6e0edecf5ec0c95f5582d2c4ef0 +115,885 / -5,528, 928 files BLOCKED
2 #1027 port/tasks-matrix @ 43d4edd51940fd7cce315123847e792ddd5d4cb1 +244 / -12, 8 files BLOCKED

Both refs were pushed; pushes reported up to date. #894 is based on current origin/dev 7747f0490e107391060ebd228dc71a856da28282 (rebase was a no-op). #1027's merge base with that dev head is 4906cdb114f001ee75e917524070b6d5cf51af1f; it has not been rebased onto #894.

Resolved inventory: #808 is closed as a covered write-plan proposal; #798 and #799 are superseded by the #808/#894 direction; #887, #888, #889, #893, and #957 are merged. The dependency inventory is in issue #1105. No merges were performed here.

#894 current-head gates

Passing on c8bac8a: Rust fmt, clippy, workspace, contract, action-types and server-build gates (all exit 0); Svelte-check (0 errors, 19 warnings); Vitest (27 files / 261 tests); targeted tasks-actions (2/2 in each of Chromium/WebKit at 1440/390); repeated pane transition (100/100 each engine); contrast (10/10); bundle caps; and full WebKit 1440 (603 passed, 667 skipped) and 390 (1,045 passed, 225 skipped). Full Chromium 390 passed (1,052 passed, 218 skipped).

Full Chromium 1440 is red: 607 passed, 662 skipped, 1 failed. e2e/missing-links.spec.ts:156 failed at line 181 after “Create a new note”: the textbox did not contain the expected title (the assertion’s actual text ended in -1sh7xr. And more). This is outside the Tasks action spec, but it fails the required full-suite gate. Triage it on the next host: apply the flaky-test rule (repeat-each=10 on train and dev); if it reproduces, fix it; otherwise open a stability issue.

Bundle is within existing caps, with no budget change: first JS 223.693 vs dev 223.749 KiB (-0.056); Tasks JS 12.630 vs 12.631 KiB (-0.001); total JS 535.317 vs 535.108 KiB (+0.209). Kayg’s explicit OK to the measured total-JS growth is still required before READY. The latest #894 comment asks for it.

Perf is still blocked

There is no fresh controlled ABAB for current head c8bac8a. The earlier confirmed Notes-save +35.76% and typing +17.60% regressions remain unwaived.

The latest retained run is older head 2320f172, under /home/claude/Developer/Worktrees/tasks894-perf-20261113/target/perf-abab-2320/. It is not acceptance evidence: it has no dev-vs-dev control and its task runs failed tasks.update and cold-index growth gates. Provisional A1/B1/A2/B2 per-run p95 medians were save ACK 14.8→15.8 ms (+6.8%), typing 2.895→3.015 s (+4.1%); Tasks-list p95 also rose: Anytime 2.01→2.64 ms (+31%), Today 2.69→3.50 ms (+30%), Someday 2.19→2.80 ms (+28%), Upcoming 2.95→3.26 ms (+10%). Do not accept or waive these older results.

#1027 current state

The latest PR evidence is from 9 Nov at the unchanged 43d4edd head: tasks-matrix reported 3 passing tests; the older Board/card/tick group reported 34 passes per engine. Its screenshots are Chromium-only (2x, light/dark, 1440/390); they are not real Safari or iPhone Simulator shots. The prior bundle report measured 13.15 KiB against 12.69 KiB and noted 0.09 KiB idle-screen jitter. These are pre-rebase results, not a current READY gate. The layout was previously reported as lazy and outside typing/open-note paths; no current-head perf evidence exists.

Exact next steps

  1. Triage the single full Chromium 1440 failure as above.
  2. Get Kayg’s OK to the measured +0.209 KiB total-JS growth; do not raise budgets.
  3. Fix the unwaived save/typing regression and run a new current-head Notes-save, typing and Tasks-list ABAB with the dev-vs-dev control and bounds in docs/perf/comparing.md. Stage and SHA-verify binaries before taking a perf turn; run the save-soak arms required by that doc. Keep #894 BLOCKED until all of this passes.
  4. Only after #894 is READY, rebase #1027 on that READY head, run its current-head UI gates (targeted and full suites split by project, contrast, bundle, and any applicable perf checks), then capture real Safari and iPhone Simulator comparisons against review/calendar-2. Add the shots to the #1027 Forgejo comment. Do not wait for a merge; do not merge.

Scripts and harnesses

  • dev-01 worktree: /home/claude/Developer/Worktrees/tasks894-c56-20261113. Run the Rust gates with cd ~/Developer/Worktrees/tasks894-c56-20261113 && bash target/tasks894-recovery-c8-20261113/run-rust-gates.sh; run Chromium gates similarly with bash target/tasks894-recovery-c8-20261113/run-chromium-gates.sh. These scripts call ~/bin/slot internally. Logs and per-gate exit files are under target/tasks894-recovery-c8-20261113/e2e/.
  • dev-02 worktree: /home/cua/Developer/Worktrees/tasks894-c56-20261113. Run WebKit gates with cd ~/Developer/Worktrees/tasks894-c56-20261113 && bash target/tasks894-recovery-c8-20261113/run-webkit-gates-r2.sh; it also uses ~/bin/slot. Logs are under target/tasks894-recovery-c8-20261113/e2e-r2/.
  • Perf protocol: docs/perf/comparing.md, harness sources under perf/; the measurement binaries are calternal-perf and tasks-bench. Build on dev-01 through ~/bin/slot nix develop -c cargo build -j4 --release --locked -p calternal -p calternal-perf, relay via the control host and verify SHA256 on both perf VMs. On perf-01 use ~/bin/perf-turn <lane-name> <command...>; the command must take perf-02’s ~/bin/perf-lock after perf-01’s turn lock. For task-list samples, the old command shape was tasks-bench --data <fixture> --state <run-state> --notes 10000 --runs 3. Do not rerun the stale start-perf-turn.sh / run-after-lock.sh under target/perf-abab-2320/: they use the old head, omit control bounds and wait on an old go file.
  • UI reference: the approved mockup preview is https://preview.calternal.cloud/calendar-2/review.html. The brief’s deploy command runs scripts/preview-deploy.sh review/calendar-2 calendar-2 from the dev-02 ~/Developer/Worktrees/preview-deploy worktree. Capture product shots on the Mac host (lume@calternal-macos-01-std) in real Safari and iPhone Simulator, then attach only in Forgejo comments.

Lane shutdown

The two Tasks e2e units exited; no Tasks unit or process remains on dev-01/dev-02 and their slots are free. No Tasks perf lock remains; I removed our dead tasks894-abab-2320 FIFO ticket. The Mac benchmark lock is absent. A separate mail1011-326e3-20261113 lane still holds the shared perf locks on perf-01/perf-02; it was left untouched.

## Tasks stack handover — 13 Nov 2026 ### Active order and pushed heads | Order | PR | Branch / head | Diff size | State | |---|---|---|---:|---| | 1 | #894 | `feat/tasks-actions` @ `c8bac8aee4c8c6e0edecf5ec0c95f5582d2c4ef0` | +115,885 / -5,528, 928 files | **BLOCKED** | | 2 | #1027 | `port/tasks-matrix` @ `43d4edd51940fd7cce315123847e792ddd5d4cb1` | +244 / -12, 8 files | **BLOCKED** | Both refs were pushed; pushes reported up to date. #894 is based on current `origin/dev` `7747f0490e107391060ebd228dc71a856da28282` (rebase was a no-op). #1027's merge base with that dev head is `4906cdb114f001ee75e917524070b6d5cf51af1f`; it has not been rebased onto #894. Resolved inventory: #808 is closed as a covered write-plan proposal; #798 and #799 are superseded by the #808/#894 direction; #887, #888, #889, #893, and #957 are merged. The dependency inventory is in [issue #1105](https://git.kayg.org/kayg/calternal/issues/1105). No merges were performed here. ### #894 current-head gates Passing on `c8bac8a`: Rust fmt, clippy, workspace, contract, action-types and server-build gates (all exit 0); Svelte-check (0 errors, 19 warnings); Vitest (27 files / 261 tests); targeted `tasks-actions` (2/2 in each of Chromium/WebKit at 1440/390); repeated pane transition (100/100 each engine); contrast (10/10); bundle caps; and full WebKit 1440 (603 passed, 667 skipped) and 390 (1,045 passed, 225 skipped). Full Chromium 390 passed (1,052 passed, 218 skipped). **Full Chromium 1440 is red:** 607 passed, 662 skipped, 1 failed. `e2e/missing-links.spec.ts:156` failed at line 181 after “Create a new note”: the textbox did not contain the expected title (the assertion’s actual text ended in `-1sh7xr. And more`). This is outside the Tasks action spec, but it fails the required full-suite gate. Triage it on the next host: apply the flaky-test rule (repeat-each=10 on train and dev); if it reproduces, fix it; otherwise open a stability issue. Bundle is within existing caps, with no budget change: first JS 223.693 vs dev 223.749 KiB (-0.056); Tasks JS 12.630 vs 12.631 KiB (-0.001); total JS 535.317 vs 535.108 KiB (+0.209). Kayg’s explicit OK to the measured total-JS growth is still required before READY. The latest #894 comment asks for it. ### Perf is still blocked There is no fresh controlled ABAB for current head `c8bac8a`. The earlier confirmed Notes-save `+35.76%` and typing `+17.60%` regressions remain unwaived. The latest retained run is older head `2320f172`, under `/home/claude/Developer/Worktrees/tasks894-perf-20261113/target/perf-abab-2320/`. It is not acceptance evidence: it has no dev-vs-dev control and its task runs failed `tasks.update` and cold-index growth gates. Provisional A1/B1/A2/B2 per-run p95 medians were save ACK 14.8→15.8 ms (+6.8%), typing 2.895→3.015 s (+4.1%); Tasks-list p95 also rose: Anytime 2.01→2.64 ms (+31%), Today 2.69→3.50 ms (+30%), Someday 2.19→2.80 ms (+28%), Upcoming 2.95→3.26 ms (+10%). Do not accept or waive these older results. ### #1027 current state The latest PR evidence is from 9 Nov at the unchanged `43d4edd` head: `tasks-matrix` reported 3 passing tests; the older Board/card/tick group reported 34 passes per engine. Its screenshots are Chromium-only (2x, light/dark, 1440/390); they are not real Safari or iPhone Simulator shots. The prior bundle report measured 13.15 KiB against 12.69 KiB and noted 0.09 KiB idle-screen jitter. These are pre-rebase results, not a current READY gate. The layout was previously reported as lazy and outside typing/open-note paths; no current-head perf evidence exists. ### Exact next steps 1. Triage the single full Chromium 1440 failure as above. 2. Get Kayg’s OK to the measured +0.209 KiB total-JS growth; do not raise budgets. 3. Fix the unwaived save/typing regression and run a new current-head Notes-save, typing and Tasks-list ABAB with the dev-vs-dev control and bounds in `docs/perf/comparing.md`. Stage and SHA-verify binaries before taking a perf turn; run the save-soak arms required by that doc. Keep #894 BLOCKED until all of this passes. 4. Only after #894 is READY, rebase #1027 on that READY head, run its current-head UI gates (targeted and full suites split by project, contrast, bundle, and any applicable perf checks), then capture real Safari and iPhone Simulator comparisons against `review/calendar-2`. Add the shots to the #1027 Forgejo comment. Do not wait for a merge; do not merge. ### Scripts and harnesses - **dev-01** worktree: `/home/claude/Developer/Worktrees/tasks894-c56-20261113`. Run the Rust gates with `cd ~/Developer/Worktrees/tasks894-c56-20261113 && bash target/tasks894-recovery-c8-20261113/run-rust-gates.sh`; run Chromium gates similarly with `bash target/tasks894-recovery-c8-20261113/run-chromium-gates.sh`. These scripts call `~/bin/slot` internally. Logs and per-gate exit files are under `target/tasks894-recovery-c8-20261113/e2e/`. - **dev-02** worktree: `/home/cua/Developer/Worktrees/tasks894-c56-20261113`. Run WebKit gates with `cd ~/Developer/Worktrees/tasks894-c56-20261113 && bash target/tasks894-recovery-c8-20261113/run-webkit-gates-r2.sh`; it also uses `~/bin/slot`. Logs are under `target/tasks894-recovery-c8-20261113/e2e-r2/`. - **Perf** protocol: `docs/perf/comparing.md`, harness sources under `perf/`; the measurement binaries are `calternal-perf` and `tasks-bench`. Build on dev-01 through `~/bin/slot nix develop -c cargo build -j4 --release --locked -p calternal -p calternal-perf`, relay via the control host and verify SHA256 on both perf VMs. On perf-01 use `~/bin/perf-turn <lane-name> <command...>`; the command must take perf-02’s `~/bin/perf-lock` after perf-01’s turn lock. For task-list samples, the old command shape was `tasks-bench --data <fixture> --state <run-state> --notes 10000 --runs 3`. Do not rerun the stale `start-perf-turn.sh` / `run-after-lock.sh` under `target/perf-abab-2320/`: they use the old head, omit control bounds and wait on an old `go` file. - **UI reference:** the approved mockup preview is `https://preview.calternal.cloud/calendar-2/review.html`. The brief’s deploy command runs `scripts/preview-deploy.sh review/calendar-2 calendar-2` from the dev-02 `~/Developer/Worktrees/preview-deploy` worktree. Capture product shots on the Mac host (`lume@calternal-macos-01-std`) in real Safari and iPhone Simulator, then attach only in Forgejo comments. ### Lane shutdown The two Tasks e2e units exited; no Tasks unit or process remains on dev-01/dev-02 and their slots are free. No Tasks perf lock remains; I removed our dead `tasks894-abab-2320` FIFO ticket. The Mac benchmark lock is absent. A separate `mail1011-326e3-20261113` lane still holds the shared perf locks on perf-01/perf-02; it was left untouched.
Author
Owner

#894 lane 14 Nov: dev merged, list fix, gates (perf turn queued)

Head 76e79ea8a = c8bac8aee + merge of origin/dev 796d80cba (88d4b7ff2) + 2 commits:

  • 1cd330e4a tasks: read list row versions in one batched statement, same hop. tasks.list / tasks.get filled each row's version with one history statement per row (200 per list) plus a second blocking hop and Home enter. Now it's one json_each statement (one probe of the existing updates_by_note (note, seq) index per row: O(k log n), never a scan), run inside the list's own blocking read. New unit test versions_are_each_notes_newest_seq_in_one_batch.
  • 76e79ea8a rustfmt.

Bundle: kayg OK'd the +0.209 KiB total-JS growth on 14 Nov, so it no longer blocks. Same numbers on this head, no budget changes: first JS 223.693 KiB (≤ 240), Tasks JS 12.630 (≤ 20), total JS 535.317 (≤ 545.32).

What #894 adds to Notes save and typing (static profile)

Nothing runs per save or per keystroke. The task describer (crates/tasks/src/index.rs) is unchanged, and describer::Note has no version, so saves still do task work only through the existing describe step. Everything #894 adds to crates/notes is reached only through executor transactions (room/executor.rs Trash image, write_executor/{plan,home}.rs Trash publish and task restore anchors, meta.rs executor publish removes), Trash/Restore (trash.rs, ops.rs) or rename (rename.rs). room/actor.rs changes only the ExecutorLease arm. No new fsync, index write or contract validation on notes.save or the room flush. The only hot-path addition was the per-row version read on list reads, fixed above. The perf turn below measures this.

Gates (dev-01 x86 = Chromium, dev-02 = WebKit; all through ~/bin/slot)

Gate Command Result
fmt cargo fmt --all -- --check pass (76e79ea)
clippy cargo clippy --workspace --all-targets -j4 -- -D warnings pass
workspace TMPDIR=<short mktemp> cargo test --workspace --locked -j4 --no-fail-fast all pass except 1 first-run flake: auth counter_concurrent_mutations_drift_and_restart, 10/10 on #894 and 10/10 on dev → #1119 (no auth changes here). An earlier run with a long TMPDIR failed 3 admin socket tests with SUN_LEN (environment)
contract cargo test -p calternal contract_matches_the_server pass
action-types node apps/web/scripts/action-types.mjs --check pass
server-build cargo build --locked -j4 -p calternal pass
svelte-check bun run check 0 errors, 19 warnings
vitest CI=1 bun run test 27 files / 261 tests pass
bundle perf/web.sh --bundle-only --gate pass
tasks-actions playwright test e2e/tasks-actions.spec.ts --workers=1 --retries=0 2/2 on chromium-1440, chromium-390, webkit-1440, webkit-390
pane-transition … e2e/pane-transition.spec.ts --repeat-each=10 100/100 chromium-390 and webkit-390 (spec skips at 1440 by design)

Flaky rule, --repeat-each=10 --workers=1 --retries=0, chromium-1440: #894 10/10 passed; dev 796d80cba 1 failed / 9 passed with the same symptom (the editor still shows the linking note -rukw1w. And more after “Create a new note”). Not #894's; it doesn't block. Stability fix tracked in #1118 (likely the assertion reads the outgoing editor during the pane switch).

Perf

Binaries (release, dev-01) staged on perf-01 and sha256-verified on both ends:
calternal br c273f7fa… / dev cd5ebd7a…, calternal-perf br 419e0850… / dev 9fbe8a5d…, tasks-bench br b7ee58ec… / dev b1a915f2….
FIFO ticket tasks894 taken at 01:34 (perf-01 clock), 6 lanes ahead. Session: calternal-perf --sizes 10k --runs 3 × 12 arms (dev, br, ctl rotating, ctl = dev again), tasks-bench --notes 10000 --runs 3 × 12 arms, then 12 more calternal-perf arms, ≤ 82 min, both perf locks held. Results will follow here. Still BLOCKED until then.

## #894 lane 14 Nov: dev merged, list fix, gates (perf turn queued) **Head `76e79ea8a`** = `c8bac8aee` + merge of `origin/dev` `796d80cba` (`88d4b7ff2`) + 2 commits: - `1cd330e4a` **tasks: read list row versions in one batched statement, same hop.** `tasks.list` / `tasks.get` filled each row's `version` with one history statement per row (200 per list) plus a second blocking hop and Home `enter`. Now it's one `json_each` statement (one probe of the existing `updates_by_note (note, seq)` index per row: O(k log n), never a scan), run inside the list's own blocking read. New unit test `versions_are_each_notes_newest_seq_in_one_batch`. - `76e79ea8a` rustfmt. **Bundle:** kayg OK'd the +0.209 KiB total-JS growth on 14 Nov, so it no longer blocks. Same numbers on this head, no budget changes: first JS 223.693 KiB (≤ 240), Tasks JS 12.630 (≤ 20), total JS 535.317 (≤ 545.32). ### What #894 adds to Notes save and typing (static profile) Nothing runs per save or per keystroke. The task describer (`crates/tasks/src/index.rs`) is unchanged, and `describer::Note` has no version, so saves still do task work only through the existing describe step. Everything #894 adds to `crates/notes` is reached only through executor transactions (`room/executor.rs` Trash image, `write_executor/{plan,home}.rs` Trash publish and task restore anchors, `meta.rs` executor publish removes), Trash/Restore (`trash.rs`, `ops.rs`) or rename (`rename.rs`). `room/actor.rs` changes only the `ExecutorLease` arm. No new fsync, index write or contract validation on `notes.save` or the room flush. The only hot-path addition was the per-row version read on list reads, fixed above. The perf turn below measures this. ### Gates (dev-01 x86 = Chromium, dev-02 = WebKit; all through `~/bin/slot`) | Gate | Command | Result | |---|---|---| | fmt | `cargo fmt --all -- --check` | pass (76e79ea) | | clippy | `cargo clippy --workspace --all-targets -j4 -- -D warnings` | pass | | workspace | `TMPDIR=<short mktemp> cargo test --workspace --locked -j4 --no-fail-fast` | all pass except 1 first-run flake: auth `counter_concurrent_mutations_drift_and_restart`, 10/10 on #894 and 10/10 on dev → **#1119** (no auth changes here). An earlier run with a long TMPDIR failed 3 admin socket tests with `SUN_LEN` (environment) | | contract | `cargo test -p calternal contract_matches_the_server` | pass | | action-types | `node apps/web/scripts/action-types.mjs --check` | pass | | server-build | `cargo build --locked -j4 -p calternal` | pass | | svelte-check | `bun run check` | 0 errors, 19 warnings | | vitest | `CI=1 bun run test` | 27 files / 261 tests pass | | bundle | `perf/web.sh --bundle-only --gate` | pass | | tasks-actions | `playwright test e2e/tasks-actions.spec.ts --workers=1 --retries=0` | 2/2 on chromium-1440, chromium-390, webkit-1440, webkit-390 | | pane-transition | `… e2e/pane-transition.spec.ts --repeat-each=10` | 100/100 chromium-390 and webkit-390 (spec skips at 1440 by design) | ### missing-links.spec.ts:156 (the full chromium-1440 failure) Flaky rule, `--repeat-each=10 --workers=1 --retries=0`, chromium-1440: **#894 10/10 passed; dev `796d80cba` 1 failed / 9 passed** with the same symptom (the editor still shows the linking note `-rukw1w. And more` after “Create a new note”). Not #894's; it doesn't block. Stability fix tracked in **#1118** (likely the assertion reads the outgoing editor during the pane switch). ### Perf Binaries (release, dev-01) staged on perf-01 and sha256-verified on both ends: `calternal` br `c273f7fa…` / dev `cd5ebd7a…`, `calternal-perf` br `419e0850…` / dev `9fbe8a5d…`, `tasks-bench` br `b7ee58ec…` / dev `b1a915f2…`. FIFO ticket `tasks894` taken at 01:34 (perf-01 clock), 6 lanes ahead. Session: `calternal-perf --sizes 10k --runs 3` × 12 arms (dev, br, ctl rotating, ctl = dev again), `tasks-bench --notes 10000 --runs 3` × 12 arms, then 12 more `calternal-perf` arms, ≤ 82 min, both perf locks held. Results will follow here. **Still BLOCKED until then.**
Author
Owner

Perf round 1 on 76e79ea8a (perf-01, 14 Nov 06:12–06:52 CET, both perf locks)

Session: ~/bin/perf-turn tasks894, perf-02's lock held by a perf-lock unit for the whole run. Arms rotate dev br ctl br ctl dev ctl dev br br dev ctl (ctl = the same dev binaries again: the control). Two rounds of calternal-perf --sizes 10k --runs 3 --cold-runs 0 --idle-secs 0 (8 arms per label, 3 warm runs each) around one round of tasks-bench --notes 10000 --runs 3 (4 arms per label, 200 samples per list per arm). Values are the median of per-arm values. "paired" = median of each arm against its adjacent dev arm. calternal-perf JSON has no p99, so p50/p95/max are shown; max is judged by range (comparing.md), not in the verdict.

Notes save and typing: at or below dev. sync.save_ack p95 −12.3% (control −18.4%), storm.save_ack p95 −3.8% (control −2.9%), storm.typing −1.4% (control −0.3%). The old +35.76% save / +17.60% typing regressions don't reproduce.

Tasks lists: still over. p50 +3…5% on anytime, someday, tag, today, today_by_priority and anytime_by_child_tag, with the control at about −1%: the batched per-row version read still cost ~70–100 µs per list. → fixed in 32c474fe1 (below), re-measuring.

Also over the unpaired control, on paths #894 does not touch: sync.durable_write p50 +1.3% vs +0.6% (+0.3 ms of 24.5 ms; paired +0.4% vs +0.2%), open.api_get p95 +19.9% vs +10.1% (paired +15.3% vs control +33.4%, so within control when paired). Round 2 re-measures both.

Full table
metric stat arms d/b/c dev #894 ctl #894 vs dev ctl vs dev paired #894 paired ctl within control
sync.save_ack p50 8/8/8 3.756 3.729 3.732 -0.7% -0.6% -0.8% -3.1% ok
sync.save_ack p95 8/8/8 6.795 5.957 5.546 -12.3% -18.4% -13.4% -17.6% ok
sync.save_ack max 8/8/8 100.214 45.901 106.907 -54.2% +6.7% -53.0% -2.5% ok
storm.save_ack p50 8/8/8 7.421 7.317 7.420 -1.4% -0.0% -1.2% -0.8% ok
storm.save_ack p95 8/8/8 15.144 14.575 14.698 -3.8% -2.9% -6.1% -2.4% ok
storm.save_ack max 8/8/8 46.092 42.588 44.268 -7.6% -4.0% -4.5% -0.2% ok
storm.typing p50 8/8/8 2.816 2.773 2.804 -1.5% -0.4% -1.7% +0.8% ok
storm.typing p95 8/8/8 2.871 2.831 2.862 -1.4% -0.3% -1.0% -1.1% ok
storm.typing max 8/8/8 2.871 2.831 2.862 -1.4% -0.3% -1.0% -1.1% ok
sync.durable_write p50 8/8/8 24.511 24.831 24.654 +1.3% +0.6% +0.4% +0.2% over
sync.durable_write p95 8/8/8 35.763 31.481 31.270 -12.0% -12.6% -10.6% -9.2% ok
sync.durable_write max 8/8/8 56.384 58.086 58.222 +3.0% +3.3% +5.3% +4.7% ok
sync.round_trip p50 8/8/8 0.221 0.219 0.219 -1.2% -1.3% -1.2% +0.6% ok
sync.round_trip p95 8/8/8 0.345 0.342 0.343 -0.7% -0.7% -0.8% +0.8% ok
sync.round_trip max 8/8/8 18.059 1.963 9.353 -89.1% -48.2% -81.5% -49.3% ok
uploads.save_ack p50 8/8/8 4.829 4.833 4.786 +0.1% -0.9% +0.1% +1.4% ok
uploads.save_ack p95 8/8/8 10.389 10.283 10.183 -1.0% -2.0% +0.4% +1.1% ok
uploads.save_ack max 8/8/8 30.666 28.904 31.709 -5.7% +3.4% +2.2% +4.6% ok
open.note p50 8/8/8 0.731 0.713 0.727 -2.4% -0.5% -2.4% -0.7% ok
open.note p95 8/8/8 1.344 1.376 1.423 +2.4% +5.9% -1.3% +1.2% ok
open.note max 8/8/8 37.812 36.627 40.703 -3.1% +7.6% -8.3% +16.1% ok
open.api_get p50 8/8/8 3.959 3.946 3.973 -0.3% +0.4% -0.8% +0.1% ok
open.api_get p95 8/8/8 10.097 12.108 11.114 +19.9% +10.1% +15.3% +33.4% over
open.api_get max 8/8/8 47.166 42.179 41.775 -10.6% -11.4% -8.1% -3.2% ok
home.page p50 8/8/8 0.786 0.735 0.725 -6.5% -7.7% -5.0% -4.6% ok
home.page p95 8/8/8 2.456 2.651 1.347 +7.9% -45.2% +2.0% -35.4% ok
home.page max 8/8/8 4.628 4.785 4.610 +3.4% -0.4% +14.2% -8.8% over
search.query p50 8/8/8 1.521 1.572 1.452 +3.3% -4.5% +1.4% -0.4% ok
search.query p95 8/8/8 4.096 4.025 3.991 -1.7% -2.6% -1.5% -2.2% ok
search.query max 8/8/8 34.802 34.417 35.064 -1.1% +0.8% -1.2% -1.1% ok
trash.delete p50 8/8/8 63.896 63.524 73.937 -0.6% +15.7% -0.6% +14.7% ok
trash.delete p95 8/8/8 103.124 104.694 99.569 +1.5% -3.4% -0.8% -3.4% ok
trash.delete max 8/8/8 140.350 140.727 131.094 +0.3% -6.6% -0.8% -4.9% ok
trash.restore p50 8/8/8 65.402 62.960 64.279 -3.7% -1.7% -2.6% -0.7% ok
trash.restore p95 8/8/8 115.209 115.044 113.838 -0.1% -1.2% -0.6% -2.5% ok
trash.restore max 8/8/8 147.584 132.180 129.693 -10.4% -12.1% -5.1% -9.4% ok
tasks.anytime p50 4/4/4 1.860 1.915 1.830 +3.0% -1.6% +3.5% -1.1% over
tasks.anytime p95 4/4/4 2.230 2.180 2.150 -2.2% -3.6% -2.0% -1.4% ok
tasks.anytime p99 4/4/4 2.460 2.485 2.525 +1.0% +2.6% +0.4% +7.2% ok
tasks.anytime_by_child_tag p50 4/4/4 2.255 2.375 2.250 +5.3% -0.2% +5.6% +1.4% over
tasks.anytime_by_child_tag p95 4/4/4 2.630 2.715 2.690 +3.2% +2.3% +5.1% +2.3% over
tasks.anytime_by_child_tag p99 4/4/4 2.900 2.915 2.890 +0.5% -0.3% +3.2% -0.2% over
tasks.counts p50 4/4/4 0.265 0.265 0.255 +0.0% -3.8% +1.9% -1.9% ok
tasks.counts p95 4/4/4 0.310 0.320 0.285 +3.2% -8.1% +3.1% -6.8% ok
tasks.counts p99 4/4/4 0.345 0.350 0.300 +1.4% -13.0% +1.5% -13.4% ok
tasks.someday p50 4/4/4 1.840 1.930 1.815 +4.9% -1.4% +4.9% -1.4% over
tasks.someday p95 4/4/4 2.200 2.255 2.075 +2.5% -5.7% +2.5% -5.7% ok
tasks.someday p99 4/4/4 3.125 4.565 2.240 +46.1% -28.3% +56.6% -9.2% over
tasks.tag p50 4/4/4 2.255 2.325 2.240 +3.1% -0.7% +3.3% -3.6% over
tasks.tag p95 4/4/4 2.710 2.610 2.555 -3.7% -5.7% -0.3% -10.5% ok
tasks.tag p99 4/4/4 3.125 2.690 2.705 -13.9% -13.4% -7.5% -15.7% ok
tasks.today p50 4/4/4 2.285 2.350 2.255 +2.8% -1.3% +2.9% -0.2% over
tasks.today p95 4/4/4 2.600 2.665 2.525 +2.5% -2.9% +2.0% -2.2% ok
tasks.today p99 4/4/4 2.805 3.020 2.735 +7.7% -2.5% +1.6% -1.0% over
tasks.today_by_priority p50 4/4/4 2.175 2.265 2.195 +4.1% +0.9% +3.2% -0.2% over
tasks.today_by_priority p95 4/4/4 2.560 2.590 2.730 +1.2% +6.6% +0.4% +2.4% ok
tasks.today_by_priority p99 4/4/4 2.850 2.855 3.045 +0.2% +6.8% +1.6% +2.5% ok
tasks.untracked p50 4/4/4 1.245 1.245 1.295 +0.0% +4.0% +0.4% +4.5% ok
tasks.untracked p95 4/4/4 1.435 1.395 1.420 -2.8% -1.0% +1.1% +4.3% ok
tasks.untracked p99 4/4/4 1.675 1.475 1.495 -11.9% -10.7% -1.2% +1.6% ok
tasks.upcoming p50 4/4/4 2.380 2.385 2.295 +0.2% -3.6% +0.1% -0.4% ok
tasks.upcoming p95 4/4/4 2.880 2.680 2.675 -6.9% -7.1% -8.0% -1.1% ok
tasks.upcoming p99 4/4/4 3.185 2.810 3.085 -11.8% -3.1% -13.8% +0.6% ok

OVER CONTROL (p50/p95/p99): sync.durable_write p50, open.api_get p95, tasks.anytime p50, tasks.anytime_by_child_tag p50, tasks.anytime_by_child_tag p95, tasks.anytime_by_child_tag p99, tasks.someday p50, tasks.someday p99, tasks.tag p50, tasks.today p50, tasks.today p99, tasks.today_by_priority p50

Fix: list rows carry no version (32c474fe1, contract 9db7c845d)

Nothing reads version from list rows: the UI calls notes.get before each action (apps/web/src/tasks/status.ts). So tasks.list goes back to dev's exact read (no history access), tasks.get keeps version (one index probe), and the action input docs now say to send the version from tasks.get or notes.get. Test renamed to get_carries_the_version_notes_get_reports_and_rows_do_not (asserts list rows have no version). Contract and actions.gen.ts regenerated (UPDATE_CONTRACTS=1 cargo test -p calternal contract_matches_the_server, node apps/web/scripts/action-types.mjs): description text only.

Gates on 32c474fe1: fmt, clippy (--workspace --all-targets -D warnings), cargo test -p calternal-tasks -p calternal-notes --no-fail-fast all pass. New calternal 38e4a254…, tasks-bench b94d15ae… (calternal-perf unchanged) staged on perf-01 and sha256-verified; round 2 queued (5 ahead). Final-head e2e running.

## Perf round 1 on `76e79ea8a` (perf-01, 14 Nov 06:12–06:52 CET, both perf locks) Session: `~/bin/perf-turn tasks894`, perf-02's lock held by a `perf-lock` unit for the whole run. Arms rotate `dev br ctl br ctl dev ctl dev br br dev ctl` (ctl = the same dev binaries again: the control). Two rounds of `calternal-perf --sizes 10k --runs 3 --cold-runs 0 --idle-secs 0` (8 arms per label, 3 warm runs each) around one round of `tasks-bench --notes 10000 --runs 3` (4 arms per label, 200 samples per list per arm). Values are the median of per-arm values. "paired" = median of each arm against its adjacent dev arm. `calternal-perf` JSON has no p99, so p50/p95/max are shown; `max` is judged by range (comparing.md), not in the verdict. **Notes save and typing: at or below dev.** `sync.save_ack` p95 −12.3% (control −18.4%), `storm.save_ack` p95 −3.8% (control −2.9%), `storm.typing` −1.4% (control −0.3%). The old +35.76% save / +17.60% typing regressions don't reproduce. **Tasks lists: still over.** p50 +3…5% on anytime, someday, tag, today, today_by_priority and anytime_by_child_tag, with the control at about −1%: the batched per-row version read still cost ~70–100 µs per list. → fixed in `32c474fe1` (below), re-measuring. Also over the unpaired control, on paths #894 does not touch: `sync.durable_write` p50 +1.3% vs +0.6% (+0.3 ms of 24.5 ms; paired +0.4% vs +0.2%), `open.api_get` p95 +19.9% vs +10.1% (paired +15.3% vs control +33.4%, so within control when paired). Round 2 re-measures both. <details><summary>Full table</summary> | metric | stat | arms d/b/c | dev | #894 | ctl | #894 vs dev | ctl vs dev | paired #894 | paired ctl | within control | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---| | `sync.save_ack` | p50 | 8/8/8 | 3.756 | 3.729 | 3.732 | -0.7% | -0.6% | -0.8% | -3.1% | ok | | `sync.save_ack` | p95 | 8/8/8 | 6.795 | 5.957 | 5.546 | -12.3% | -18.4% | -13.4% | -17.6% | ok | | `sync.save_ack` | max | 8/8/8 | 100.214 | 45.901 | 106.907 | -54.2% | +6.7% | -53.0% | -2.5% | ok | | `storm.save_ack` | p50 | 8/8/8 | 7.421 | 7.317 | 7.420 | -1.4% | -0.0% | -1.2% | -0.8% | ok | | `storm.save_ack` | p95 | 8/8/8 | 15.144 | 14.575 | 14.698 | -3.8% | -2.9% | -6.1% | -2.4% | ok | | `storm.save_ack` | max | 8/8/8 | 46.092 | 42.588 | 44.268 | -7.6% | -4.0% | -4.5% | -0.2% | ok | | `storm.typing` | p50 | 8/8/8 | 2.816 | 2.773 | 2.804 | -1.5% | -0.4% | -1.7% | +0.8% | ok | | `storm.typing` | p95 | 8/8/8 | 2.871 | 2.831 | 2.862 | -1.4% | -0.3% | -1.0% | -1.1% | ok | | `storm.typing` | max | 8/8/8 | 2.871 | 2.831 | 2.862 | -1.4% | -0.3% | -1.0% | -1.1% | ok | | `sync.durable_write` | p50 | 8/8/8 | 24.511 | 24.831 | 24.654 | +1.3% | +0.6% | +0.4% | +0.2% | **over** | | `sync.durable_write` | p95 | 8/8/8 | 35.763 | 31.481 | 31.270 | -12.0% | -12.6% | -10.6% | -9.2% | ok | | `sync.durable_write` | max | 8/8/8 | 56.384 | 58.086 | 58.222 | +3.0% | +3.3% | +5.3% | +4.7% | ok | | `sync.round_trip` | p50 | 8/8/8 | 0.221 | 0.219 | 0.219 | -1.2% | -1.3% | -1.2% | +0.6% | ok | | `sync.round_trip` | p95 | 8/8/8 | 0.345 | 0.342 | 0.343 | -0.7% | -0.7% | -0.8% | +0.8% | ok | | `sync.round_trip` | max | 8/8/8 | 18.059 | 1.963 | 9.353 | -89.1% | -48.2% | -81.5% | -49.3% | ok | | `uploads.save_ack` | p50 | 8/8/8 | 4.829 | 4.833 | 4.786 | +0.1% | -0.9% | +0.1% | +1.4% | ok | | `uploads.save_ack` | p95 | 8/8/8 | 10.389 | 10.283 | 10.183 | -1.0% | -2.0% | +0.4% | +1.1% | ok | | `uploads.save_ack` | max | 8/8/8 | 30.666 | 28.904 | 31.709 | -5.7% | +3.4% | +2.2% | +4.6% | ok | | `open.note` | p50 | 8/8/8 | 0.731 | 0.713 | 0.727 | -2.4% | -0.5% | -2.4% | -0.7% | ok | | `open.note` | p95 | 8/8/8 | 1.344 | 1.376 | 1.423 | +2.4% | +5.9% | -1.3% | +1.2% | ok | | `open.note` | max | 8/8/8 | 37.812 | 36.627 | 40.703 | -3.1% | +7.6% | -8.3% | +16.1% | ok | | `open.api_get` | p50 | 8/8/8 | 3.959 | 3.946 | 3.973 | -0.3% | +0.4% | -0.8% | +0.1% | ok | | `open.api_get` | p95 | 8/8/8 | 10.097 | 12.108 | 11.114 | +19.9% | +10.1% | +15.3% | +33.4% | **over** | | `open.api_get` | max | 8/8/8 | 47.166 | 42.179 | 41.775 | -10.6% | -11.4% | -8.1% | -3.2% | ok | | `home.page` | p50 | 8/8/8 | 0.786 | 0.735 | 0.725 | -6.5% | -7.7% | -5.0% | -4.6% | ok | | `home.page` | p95 | 8/8/8 | 2.456 | 2.651 | 1.347 | +7.9% | -45.2% | +2.0% | -35.4% | ok | | `home.page` | max | 8/8/8 | 4.628 | 4.785 | 4.610 | +3.4% | -0.4% | +14.2% | -8.8% | **over** | | `search.query` | p50 | 8/8/8 | 1.521 | 1.572 | 1.452 | +3.3% | -4.5% | +1.4% | -0.4% | ok | | `search.query` | p95 | 8/8/8 | 4.096 | 4.025 | 3.991 | -1.7% | -2.6% | -1.5% | -2.2% | ok | | `search.query` | max | 8/8/8 | 34.802 | 34.417 | 35.064 | -1.1% | +0.8% | -1.2% | -1.1% | ok | | `trash.delete` | p50 | 8/8/8 | 63.896 | 63.524 | 73.937 | -0.6% | +15.7% | -0.6% | +14.7% | ok | | `trash.delete` | p95 | 8/8/8 | 103.124 | 104.694 | 99.569 | +1.5% | -3.4% | -0.8% | -3.4% | ok | | `trash.delete` | max | 8/8/8 | 140.350 | 140.727 | 131.094 | +0.3% | -6.6% | -0.8% | -4.9% | ok | | `trash.restore` | p50 | 8/8/8 | 65.402 | 62.960 | 64.279 | -3.7% | -1.7% | -2.6% | -0.7% | ok | | `trash.restore` | p95 | 8/8/8 | 115.209 | 115.044 | 113.838 | -0.1% | -1.2% | -0.6% | -2.5% | ok | | `trash.restore` | max | 8/8/8 | 147.584 | 132.180 | 129.693 | -10.4% | -12.1% | -5.1% | -9.4% | ok | | `tasks.anytime` | p50 | 4/4/4 | 1.860 | 1.915 | 1.830 | +3.0% | -1.6% | +3.5% | -1.1% | **over** | | `tasks.anytime` | p95 | 4/4/4 | 2.230 | 2.180 | 2.150 | -2.2% | -3.6% | -2.0% | -1.4% | ok | | `tasks.anytime` | p99 | 4/4/4 | 2.460 | 2.485 | 2.525 | +1.0% | +2.6% | +0.4% | +7.2% | ok | | `tasks.anytime_by_child_tag` | p50 | 4/4/4 | 2.255 | 2.375 | 2.250 | +5.3% | -0.2% | +5.6% | +1.4% | **over** | | `tasks.anytime_by_child_tag` | p95 | 4/4/4 | 2.630 | 2.715 | 2.690 | +3.2% | +2.3% | +5.1% | +2.3% | **over** | | `tasks.anytime_by_child_tag` | p99 | 4/4/4 | 2.900 | 2.915 | 2.890 | +0.5% | -0.3% | +3.2% | -0.2% | **over** | | `tasks.counts` | p50 | 4/4/4 | 0.265 | 0.265 | 0.255 | +0.0% | -3.8% | +1.9% | -1.9% | ok | | `tasks.counts` | p95 | 4/4/4 | 0.310 | 0.320 | 0.285 | +3.2% | -8.1% | +3.1% | -6.8% | ok | | `tasks.counts` | p99 | 4/4/4 | 0.345 | 0.350 | 0.300 | +1.4% | -13.0% | +1.5% | -13.4% | ok | | `tasks.someday` | p50 | 4/4/4 | 1.840 | 1.930 | 1.815 | +4.9% | -1.4% | +4.9% | -1.4% | **over** | | `tasks.someday` | p95 | 4/4/4 | 2.200 | 2.255 | 2.075 | +2.5% | -5.7% | +2.5% | -5.7% | ok | | `tasks.someday` | p99 | 4/4/4 | 3.125 | 4.565 | 2.240 | +46.1% | -28.3% | +56.6% | -9.2% | **over** | | `tasks.tag` | p50 | 4/4/4 | 2.255 | 2.325 | 2.240 | +3.1% | -0.7% | +3.3% | -3.6% | **over** | | `tasks.tag` | p95 | 4/4/4 | 2.710 | 2.610 | 2.555 | -3.7% | -5.7% | -0.3% | -10.5% | ok | | `tasks.tag` | p99 | 4/4/4 | 3.125 | 2.690 | 2.705 | -13.9% | -13.4% | -7.5% | -15.7% | ok | | `tasks.today` | p50 | 4/4/4 | 2.285 | 2.350 | 2.255 | +2.8% | -1.3% | +2.9% | -0.2% | **over** | | `tasks.today` | p95 | 4/4/4 | 2.600 | 2.665 | 2.525 | +2.5% | -2.9% | +2.0% | -2.2% | ok | | `tasks.today` | p99 | 4/4/4 | 2.805 | 3.020 | 2.735 | +7.7% | -2.5% | +1.6% | -1.0% | **over** | | `tasks.today_by_priority` | p50 | 4/4/4 | 2.175 | 2.265 | 2.195 | +4.1% | +0.9% | +3.2% | -0.2% | **over** | | `tasks.today_by_priority` | p95 | 4/4/4 | 2.560 | 2.590 | 2.730 | +1.2% | +6.6% | +0.4% | +2.4% | ok | | `tasks.today_by_priority` | p99 | 4/4/4 | 2.850 | 2.855 | 3.045 | +0.2% | +6.8% | +1.6% | +2.5% | ok | | `tasks.untracked` | p50 | 4/4/4 | 1.245 | 1.245 | 1.295 | +0.0% | +4.0% | +0.4% | +4.5% | ok | | `tasks.untracked` | p95 | 4/4/4 | 1.435 | 1.395 | 1.420 | -2.8% | -1.0% | +1.1% | +4.3% | ok | | `tasks.untracked` | p99 | 4/4/4 | 1.675 | 1.475 | 1.495 | -11.9% | -10.7% | -1.2% | +1.6% | ok | | `tasks.upcoming` | p50 | 4/4/4 | 2.380 | 2.385 | 2.295 | +0.2% | -3.6% | +0.1% | -0.4% | ok | | `tasks.upcoming` | p95 | 4/4/4 | 2.880 | 2.680 | 2.675 | -6.9% | -7.1% | -8.0% | -1.1% | ok | | `tasks.upcoming` | p99 | 4/4/4 | 3.185 | 2.810 | 3.085 | -11.8% | -3.1% | -13.8% | +0.6% | ok | OVER CONTROL (p50/p95/p99): sync.durable_write p50, open.api_get p95, tasks.anytime p50, tasks.anytime_by_child_tag p50, tasks.anytime_by_child_tag p95, tasks.anytime_by_child_tag p99, tasks.someday p50, tasks.someday p99, tasks.tag p50, tasks.today p50, tasks.today p99, tasks.today_by_priority p50 </details> ### Fix: list rows carry no version (`32c474fe1`, contract `9db7c845d`) Nothing reads `version` from list rows: the UI calls `notes.get` before each action (`apps/web/src/tasks/status.ts`). So `tasks.list` goes back to dev's exact read (no history access), `tasks.get` keeps `version` (one index probe), and the action input docs now say to send the version from `tasks.get` or `notes.get`. Test renamed to `get_carries_the_version_notes_get_reports_and_rows_do_not` (asserts list rows have no `version`). Contract and `actions.gen.ts` regenerated (`UPDATE_CONTRACTS=1 cargo test -p calternal contract_matches_the_server`, `node apps/web/scripts/action-types.mjs`): description text only. Gates on `32c474fe1`: fmt, clippy (`--workspace --all-targets -D warnings`), `cargo test -p calternal-tasks -p calternal-notes --no-fail-fast` all pass. New `calternal` `38e4a254…`, `tasks-bench` `b94d15ae…` (calternal-perf unchanged) staged on perf-01 and sha256-verified; round 2 queued (5 ahead). Final-head e2e running.
Author
Owner

Perf round 2 on 32c474fe1 / 9db7c845d (perf-01, 14 Nov 09:34–10:14 CET, both perf locks)

Same session shape as round 1; branch binaries calternal 38e4a254…, tasks-bench b94d15ae… (sha256-verified on perf-01).

  • Tasks lists: the p50 regression is gone. anytime −0.3%, today −1.3%, someday −1.9%, tag 0.0%, upcoming −1.1%, today_by_priority −0.5%, anytime_by_child_tag −4.7% (round 1 on 76e79ea8a: +3…5%). The list read is now dev's exact read.
  • Single-session noise flips signs on untouched paths: sync.save_ack p95 was −12.3% in round 1 and is +10.3% here (control −9.3%), with identical save-path source; search.query p50 +8.5% (#894 has no search changes); tasks.counts / tasks.untracked tails (code unchanged by #894) at 0.25–1.4 ms on 4 arms.

The preamble's gate is pooled ABAB × 3 sessions, so I'm not calling READY on one session of the final binaries. Round 3 on the same binaries is queued (tasks894 ticket, 3 ahead). The verdict will pool rounds 2+3 for everything, plus round 1 for the Notes save/typing metrics (same save-path source in all three).

Gates on final head 9db7c845d: contract, action-types --check, svelte-check (0 errors), vitest 27/261, bundle (first 223.693 / Tasks 12.630 / total 535.317 KiB, kayg-approved), full cargo test --workspace --no-fail-fast (rc 0, 131 suites ok), tasks-actions 2/2 and pane-transition 100/100 (390) on chromium-1440/390 and webkit-1440/390.

Round 2 table
metric stat arms d/b/c dev #894 ctl #894 vs dev ctl vs dev paired #894 paired ctl within control
sync.save_ack p50 8/8/8 3.751 3.740 3.716 -0.3% -0.9% -0.7% -0.5% ok
sync.save_ack p95 8/8/8 5.913 6.525 5.363 +10.3% -9.3% +8.9% -7.2% over
sync.save_ack max 8/8/8 108.351 75.065 113.042 -30.7% +4.3% -28.8% +0.3% ok
storm.save_ack p50 8/8/8 7.401 7.345 7.405 -0.7% +0.1% -1.0% -0.0% ok
storm.save_ack p95 8/8/8 15.143 14.793 14.022 -2.3% -7.4% -6.1% -9.4% ok
storm.save_ack max 8/8/8 42.723 42.069 45.095 -1.5% +5.6% +1.5% +0.2% ok
storm.typing p50 8/8/8 2.776 2.781 2.774 +0.2% -0.1% -0.1% -0.5% over
storm.typing p95 8/8/8 2.852 2.804 2.829 -1.7% -0.8% -2.2% -2.4% ok
storm.typing max 8/8/8 2.852 2.804 2.829 -1.7% -0.8% -2.2% -2.4% ok
sync.durable_write p50 8/8/8 24.810 24.582 24.405 -0.9% -1.6% -0.6% -1.3% ok
sync.durable_write p95 8/8/8 32.441 34.584 32.919 +6.6% +1.5% +3.6% +10.9% over
sync.durable_write max 8/8/8 57.085 58.095 58.421 +1.8% +2.3% -4.2% +2.8% ok
sync.round_trip p50 8/8/8 0.222 0.220 0.219 -0.8% -1.5% -0.4% -2.4% ok
sync.round_trip p95 8/8/8 0.348 0.345 0.346 -0.6% -0.4% -0.5% -2.3% ok
sync.round_trip max 8/8/8 28.096 11.293 19.582 -59.8% -30.3% -38.7% -28.9% ok
uploads.save_ack p50 8/8/8 4.810 4.790 4.748 -0.4% -1.3% -0.5% -0.8% ok
uploads.save_ack p95 8/8/8 9.815 9.797 10.268 -0.2% +4.6% -3.5% -0.1% ok
uploads.save_ack max 8/8/8 30.404 31.386 37.269 +3.2% +22.6% +2.4% +13.2% ok
open.note p50 8/8/8 0.741 0.723 0.731 -2.5% -1.4% -0.1% -1.1% ok
open.note p95 8/8/8 1.265 1.296 1.341 +2.5% +6.0% +3.6% +1.7% ok
open.note max 8/8/8 37.120 35.069 38.538 -5.5% +3.8% -8.7% -8.5% ok
open.api_get p50 8/8/8 3.951 3.987 4.095 +0.9% +3.7% -1.0% +3.0% ok
open.api_get p95 8/8/8 7.699 8.818 10.230 +14.5% +32.9% +2.9% +14.5% ok
open.api_get max 8/8/8 42.147 42.573 45.749 +1.0% +8.5% -0.2% +11.2% ok
home.page p50 8/8/8 0.742 0.718 0.744 -3.3% +0.2% -4.6% +0.2% ok
home.page p95 8/8/8 1.752 1.572 1.517 -10.3% -13.4% -9.2% +11.3% ok
home.page max 8/8/8 5.014 5.160 4.854 +2.9% -3.2% +13.2% -2.6% ok
search.query p50 8/8/8 1.503 1.631 1.492 +8.5% -0.7% +9.1% -1.9% over
search.query p95 8/8/8 4.072 4.073 3.959 +0.0% -2.8% +1.0% -3.7% ok
search.query max 8/8/8 34.711 38.832 34.960 +11.9% +0.7% +12.4% +0.7% over
trash.delete p50 8/8/8 70.934 65.815 65.832 -7.2% -7.2% -8.5% -5.6% ok
trash.delete p95 8/8/8 105.321 105.145 106.610 -0.2% +1.2% -1.9% +7.8% ok
trash.delete max 8/8/8 141.527 143.464 143.502 +1.4% +1.4% +1.4% +7.9% ok
trash.restore p50 8/8/8 66.578 65.452 64.628 -1.7% -2.9% -0.1% -3.1% ok
trash.restore p95 8/8/8 113.817 110.592 110.698 -2.8% -2.7% -2.9% -2.6% ok
trash.restore max 8/8/8 135.689 146.946 132.802 +8.3% -2.1% -0.9% +0.5% over
tasks.anytime p50 4/4/4 1.815 1.810 1.830 -0.3% +0.8% +0.0% +0.3% ok
tasks.anytime p95 4/4/4 2.135 2.155 2.115 +0.9% -0.9% +1.2% +0.0% ok
tasks.anytime p99 4/4/4 2.230 2.420 2.290 +8.5% +2.7% +13.6% +7.3% over
tasks.anytime_by_child_tag p50 4/4/4 2.360 2.250 2.285 -4.7% -3.2% -4.3% -2.8% ok
tasks.anytime_by_child_tag p95 4/4/4 2.985 2.700 2.740 -9.5% -8.2% -10.5% -6.5% ok
tasks.anytime_by_child_tag p99 4/4/4 3.235 3.040 3.085 -6.0% -4.6% -6.6% -5.1% ok
tasks.counts p50 4/4/4 0.250 0.255 0.255 +2.0% +2.0% +4.0% -3.2% ok
tasks.counts p95 4/4/4 0.275 0.315 0.285 +14.5% +3.6% +16.7% -6.7% over
tasks.counts p99 4/4/4 0.305 0.355 0.310 +16.4% +1.6% +24.6% -17.0% over
tasks.someday p50 4/4/4 1.805 1.770 1.790 -1.9% -0.8% -1.7% -0.6% ok
tasks.someday p95 4/4/4 2.080 2.005 2.100 -3.6% +1.0% -3.6% -0.7% ok
tasks.someday p99 4/4/4 2.215 2.120 2.230 -4.3% +0.7% -2.9% +1.2% ok
tasks.tag p50 4/4/4 2.215 2.215 2.210 +0.0% -0.2% -0.0% -0.5% ok
tasks.tag p95 4/4/4 2.505 2.630 2.550 +5.0% +1.8% +4.7% +0.8% over
tasks.tag p99 4/4/4 2.605 2.805 3.040 +7.7% +16.7% +3.9% +13.3% ok
tasks.today p50 4/4/4 2.285 2.255 2.225 -1.3% -2.6% -1.1% -2.0% ok
tasks.today p95 4/4/4 2.625 2.575 2.565 -1.9% -2.3% -2.8% -2.0% ok
tasks.today p99 4/4/4 3.085 2.800 2.720 -9.2% -11.8% -7.8% -4.9% ok
tasks.today_by_priority p50 4/4/4 2.140 2.130 2.160 -0.5% +0.9% -0.7% +1.2% ok
tasks.today_by_priority p95 4/4/4 2.455 2.395 2.690 -2.4% +9.6% -2.4% +10.8% ok
tasks.today_by_priority p99 4/4/4 2.585 2.620 3.035 +1.4% +17.4% +2.7% +17.2% ok
tasks.untracked p50 4/4/4 1.270 1.255 1.270 -1.2% +0.0% -1.2% -5.6% ok
tasks.untracked p95 4/4/4 1.375 1.415 1.405 +2.9% +2.2% +3.3% -9.6% over
tasks.untracked p99 4/4/4 1.460 1.550 1.645 +6.2% +12.7% +8.1% -12.8% ok
tasks.upcoming p50 4/4/4 2.325 2.300 2.265 -1.1% -2.6% -1.3% -1.3% ok
tasks.upcoming p95 4/4/4 2.800 2.645 2.635 -5.5% -5.9% -1.4% -2.2% ok
tasks.upcoming p99 4/4/4 3.110 2.910 3.065 -6.4% -1.4% +0.3% +5.2% ok

OVER CONTROL (p50/p95/p99): sync.save_ack p95, storm.typing p50, sync.durable_write p95, search.query p50, tasks.anytime p99, tasks.counts p95, tasks.counts p99, tasks.tag p95, tasks.untracked p95

## Perf round 2 on `32c474fe1` / `9db7c845d` (perf-01, 14 Nov 09:34–10:14 CET, both perf locks) Same session shape as round 1; branch binaries `calternal` `38e4a254…`, `tasks-bench` `b94d15ae…` (sha256-verified on perf-01). - **Tasks lists: the p50 regression is gone.** anytime −0.3%, today −1.3%, someday −1.9%, tag 0.0%, upcoming −1.1%, today_by_priority −0.5%, anytime_by_child_tag −4.7% (round 1 on `76e79ea8a`: +3…5%). The list read is now dev's exact read. - **Single-session noise flips signs on untouched paths:** `sync.save_ack` p95 was −12.3% in round 1 and is +10.3% here (control −9.3%), with identical save-path source; `search.query` p50 +8.5% (#894 has no search changes); `tasks.counts` / `tasks.untracked` tails (code unchanged by #894) at 0.25–1.4 ms on 4 arms. The preamble's gate is pooled ABAB × 3 sessions, so I'm not calling READY on one session of the final binaries. **Round 3 on the same binaries is queued** (`tasks894` ticket, 3 ahead). The verdict will pool rounds 2+3 for everything, plus round 1 for the Notes save/typing metrics (same save-path source in all three). Gates on final head `9db7c845d`: contract, action-types `--check`, svelte-check (0 errors), vitest 27/261, bundle (first 223.693 / Tasks 12.630 / total 535.317 KiB, kayg-approved), full `cargo test --workspace --no-fail-fast` (rc 0, 131 suites ok), tasks-actions 2/2 and pane-transition 100/100 (390) on chromium-1440/390 and webkit-1440/390. <details><summary>Round 2 table</summary> | metric | stat | arms d/b/c | dev | #894 | ctl | #894 vs dev | ctl vs dev | paired #894 | paired ctl | within control | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---| | `sync.save_ack` | p50 | 8/8/8 | 3.751 | 3.740 | 3.716 | -0.3% | -0.9% | -0.7% | -0.5% | ok | | `sync.save_ack` | p95 | 8/8/8 | 5.913 | 6.525 | 5.363 | +10.3% | -9.3% | +8.9% | -7.2% | **over** | | `sync.save_ack` | max | 8/8/8 | 108.351 | 75.065 | 113.042 | -30.7% | +4.3% | -28.8% | +0.3% | ok | | `storm.save_ack` | p50 | 8/8/8 | 7.401 | 7.345 | 7.405 | -0.7% | +0.1% | -1.0% | -0.0% | ok | | `storm.save_ack` | p95 | 8/8/8 | 15.143 | 14.793 | 14.022 | -2.3% | -7.4% | -6.1% | -9.4% | ok | | `storm.save_ack` | max | 8/8/8 | 42.723 | 42.069 | 45.095 | -1.5% | +5.6% | +1.5% | +0.2% | ok | | `storm.typing` | p50 | 8/8/8 | 2.776 | 2.781 | 2.774 | +0.2% | -0.1% | -0.1% | -0.5% | **over** | | `storm.typing` | p95 | 8/8/8 | 2.852 | 2.804 | 2.829 | -1.7% | -0.8% | -2.2% | -2.4% | ok | | `storm.typing` | max | 8/8/8 | 2.852 | 2.804 | 2.829 | -1.7% | -0.8% | -2.2% | -2.4% | ok | | `sync.durable_write` | p50 | 8/8/8 | 24.810 | 24.582 | 24.405 | -0.9% | -1.6% | -0.6% | -1.3% | ok | | `sync.durable_write` | p95 | 8/8/8 | 32.441 | 34.584 | 32.919 | +6.6% | +1.5% | +3.6% | +10.9% | **over** | | `sync.durable_write` | max | 8/8/8 | 57.085 | 58.095 | 58.421 | +1.8% | +2.3% | -4.2% | +2.8% | ok | | `sync.round_trip` | p50 | 8/8/8 | 0.222 | 0.220 | 0.219 | -0.8% | -1.5% | -0.4% | -2.4% | ok | | `sync.round_trip` | p95 | 8/8/8 | 0.348 | 0.345 | 0.346 | -0.6% | -0.4% | -0.5% | -2.3% | ok | | `sync.round_trip` | max | 8/8/8 | 28.096 | 11.293 | 19.582 | -59.8% | -30.3% | -38.7% | -28.9% | ok | | `uploads.save_ack` | p50 | 8/8/8 | 4.810 | 4.790 | 4.748 | -0.4% | -1.3% | -0.5% | -0.8% | ok | | `uploads.save_ack` | p95 | 8/8/8 | 9.815 | 9.797 | 10.268 | -0.2% | +4.6% | -3.5% | -0.1% | ok | | `uploads.save_ack` | max | 8/8/8 | 30.404 | 31.386 | 37.269 | +3.2% | +22.6% | +2.4% | +13.2% | ok | | `open.note` | p50 | 8/8/8 | 0.741 | 0.723 | 0.731 | -2.5% | -1.4% | -0.1% | -1.1% | ok | | `open.note` | p95 | 8/8/8 | 1.265 | 1.296 | 1.341 | +2.5% | +6.0% | +3.6% | +1.7% | ok | | `open.note` | max | 8/8/8 | 37.120 | 35.069 | 38.538 | -5.5% | +3.8% | -8.7% | -8.5% | ok | | `open.api_get` | p50 | 8/8/8 | 3.951 | 3.987 | 4.095 | +0.9% | +3.7% | -1.0% | +3.0% | ok | | `open.api_get` | p95 | 8/8/8 | 7.699 | 8.818 | 10.230 | +14.5% | +32.9% | +2.9% | +14.5% | ok | | `open.api_get` | max | 8/8/8 | 42.147 | 42.573 | 45.749 | +1.0% | +8.5% | -0.2% | +11.2% | ok | | `home.page` | p50 | 8/8/8 | 0.742 | 0.718 | 0.744 | -3.3% | +0.2% | -4.6% | +0.2% | ok | | `home.page` | p95 | 8/8/8 | 1.752 | 1.572 | 1.517 | -10.3% | -13.4% | -9.2% | +11.3% | ok | | `home.page` | max | 8/8/8 | 5.014 | 5.160 | 4.854 | +2.9% | -3.2% | +13.2% | -2.6% | ok | | `search.query` | p50 | 8/8/8 | 1.503 | 1.631 | 1.492 | +8.5% | -0.7% | +9.1% | -1.9% | **over** | | `search.query` | p95 | 8/8/8 | 4.072 | 4.073 | 3.959 | +0.0% | -2.8% | +1.0% | -3.7% | ok | | `search.query` | max | 8/8/8 | 34.711 | 38.832 | 34.960 | +11.9% | +0.7% | +12.4% | +0.7% | **over** | | `trash.delete` | p50 | 8/8/8 | 70.934 | 65.815 | 65.832 | -7.2% | -7.2% | -8.5% | -5.6% | ok | | `trash.delete` | p95 | 8/8/8 | 105.321 | 105.145 | 106.610 | -0.2% | +1.2% | -1.9% | +7.8% | ok | | `trash.delete` | max | 8/8/8 | 141.527 | 143.464 | 143.502 | +1.4% | +1.4% | +1.4% | +7.9% | ok | | `trash.restore` | p50 | 8/8/8 | 66.578 | 65.452 | 64.628 | -1.7% | -2.9% | -0.1% | -3.1% | ok | | `trash.restore` | p95 | 8/8/8 | 113.817 | 110.592 | 110.698 | -2.8% | -2.7% | -2.9% | -2.6% | ok | | `trash.restore` | max | 8/8/8 | 135.689 | 146.946 | 132.802 | +8.3% | -2.1% | -0.9% | +0.5% | **over** | | `tasks.anytime` | p50 | 4/4/4 | 1.815 | 1.810 | 1.830 | -0.3% | +0.8% | +0.0% | +0.3% | ok | | `tasks.anytime` | p95 | 4/4/4 | 2.135 | 2.155 | 2.115 | +0.9% | -0.9% | +1.2% | +0.0% | ok | | `tasks.anytime` | p99 | 4/4/4 | 2.230 | 2.420 | 2.290 | +8.5% | +2.7% | +13.6% | +7.3% | **over** | | `tasks.anytime_by_child_tag` | p50 | 4/4/4 | 2.360 | 2.250 | 2.285 | -4.7% | -3.2% | -4.3% | -2.8% | ok | | `tasks.anytime_by_child_tag` | p95 | 4/4/4 | 2.985 | 2.700 | 2.740 | -9.5% | -8.2% | -10.5% | -6.5% | ok | | `tasks.anytime_by_child_tag` | p99 | 4/4/4 | 3.235 | 3.040 | 3.085 | -6.0% | -4.6% | -6.6% | -5.1% | ok | | `tasks.counts` | p50 | 4/4/4 | 0.250 | 0.255 | 0.255 | +2.0% | +2.0% | +4.0% | -3.2% | ok | | `tasks.counts` | p95 | 4/4/4 | 0.275 | 0.315 | 0.285 | +14.5% | +3.6% | +16.7% | -6.7% | **over** | | `tasks.counts` | p99 | 4/4/4 | 0.305 | 0.355 | 0.310 | +16.4% | +1.6% | +24.6% | -17.0% | **over** | | `tasks.someday` | p50 | 4/4/4 | 1.805 | 1.770 | 1.790 | -1.9% | -0.8% | -1.7% | -0.6% | ok | | `tasks.someday` | p95 | 4/4/4 | 2.080 | 2.005 | 2.100 | -3.6% | +1.0% | -3.6% | -0.7% | ok | | `tasks.someday` | p99 | 4/4/4 | 2.215 | 2.120 | 2.230 | -4.3% | +0.7% | -2.9% | +1.2% | ok | | `tasks.tag` | p50 | 4/4/4 | 2.215 | 2.215 | 2.210 | +0.0% | -0.2% | -0.0% | -0.5% | ok | | `tasks.tag` | p95 | 4/4/4 | 2.505 | 2.630 | 2.550 | +5.0% | +1.8% | +4.7% | +0.8% | **over** | | `tasks.tag` | p99 | 4/4/4 | 2.605 | 2.805 | 3.040 | +7.7% | +16.7% | +3.9% | +13.3% | ok | | `tasks.today` | p50 | 4/4/4 | 2.285 | 2.255 | 2.225 | -1.3% | -2.6% | -1.1% | -2.0% | ok | | `tasks.today` | p95 | 4/4/4 | 2.625 | 2.575 | 2.565 | -1.9% | -2.3% | -2.8% | -2.0% | ok | | `tasks.today` | p99 | 4/4/4 | 3.085 | 2.800 | 2.720 | -9.2% | -11.8% | -7.8% | -4.9% | ok | | `tasks.today_by_priority` | p50 | 4/4/4 | 2.140 | 2.130 | 2.160 | -0.5% | +0.9% | -0.7% | +1.2% | ok | | `tasks.today_by_priority` | p95 | 4/4/4 | 2.455 | 2.395 | 2.690 | -2.4% | +9.6% | -2.4% | +10.8% | ok | | `tasks.today_by_priority` | p99 | 4/4/4 | 2.585 | 2.620 | 3.035 | +1.4% | +17.4% | +2.7% | +17.2% | ok | | `tasks.untracked` | p50 | 4/4/4 | 1.270 | 1.255 | 1.270 | -1.2% | +0.0% | -1.2% | -5.6% | ok | | `tasks.untracked` | p95 | 4/4/4 | 1.375 | 1.415 | 1.405 | +2.9% | +2.2% | +3.3% | -9.6% | **over** | | `tasks.untracked` | p99 | 4/4/4 | 1.460 | 1.550 | 1.645 | +6.2% | +12.7% | +8.1% | -12.8% | ok | | `tasks.upcoming` | p50 | 4/4/4 | 2.325 | 2.300 | 2.265 | -1.1% | -2.6% | -1.3% | -1.3% | ok | | `tasks.upcoming` | p95 | 4/4/4 | 2.800 | 2.645 | 2.635 | -5.5% | -5.9% | -1.4% | -2.2% | ok | | `tasks.upcoming` | p99 | 4/4/4 | 3.110 | 2.910 | 3.065 | -6.4% | -1.4% | +0.3% | +5.2% | ok | OVER CONTROL (p50/p95/p99): sync.save_ack p95, storm.typing p50, sync.durable_write p95, search.query p50, tasks.anytime p99, tasks.counts p95, tasks.counts p99, tasks.tag p95, tasks.untracked p95 </details>
Author
Owner

Perf round 3 + pooled verdict: still BLOCKED (head 9db7c845d)

Round 3: perf-01, 14 Nov 12:04–12:45 CET, same staged binaries as round 2 (sha256-verified), both perf locks. Pooled = rounds 2+3 (final binaries, 16 cp arms / 8 tasks-bench arms per label). For the Notes save path, rounds 1+2+3 are also pooled, because the save-path source is identical in all three.

Passes (at or below dev, or within the dev-vs-dev control)

  • Typing: storm.typing p50 −0.4%, p95 −2.9% (pooled r2+r3).
  • Storm saves: storm.save_ack p50 −0.2%, p95 −3.1%. uploads.save_ack −0.7% / −4.6%.
  • Tasks lists: the +3…5% p50 regression from 76e79ea8a is gone. List rows now read exactly what dev reads (32c474fe1).
  • Save ACK pooled over all 3 sessions: sync.save_ack p50 +0.1% (control −0.1%), p95 +0.3% (control −8.7%).

Not at or below dev (why this is not READY)

metric r1 r2 r3 pooled r2+r3 (paired) control r2+r3
search.query p50 +3.3% +8.5% +7.2% +8.6% (+7.1%) −0.7%
sync.save_ack p95 −12.3% +10.3% +11.4% +8.5% (+8.9%) −6.3%
tasks.today p50 +2.8% −1.3% +9.2% n/a ±2%
  • search.query p50 is consistently higher (~+0.12 ms on 1.5 ms) across all three sessions. #894 changes no search or engine code: calternal-notes is only a dev-dependency of crates/search, and crates/engine gains only match arms in classify_action. So this is binary layout or something I haven't found. Either way it's a measured delta, and I can't call it noise.
  • sync.save_ack p95 flips sign between sessions with identical save-path source. dev-vs-ctl (the same binary) also moves up to 18% between sessions. The rotation dev br ctl br ctl dev ctl dev br br dev ctl always puts dev first in a round (coldest cache), so position bias is the same size as the effect. Pooled over 3 sessions it's flat, but the 2 sessions on the final binary both read ~+10%.

Suggested next step (not done here, needs another ~2.5 h FIFO slot)

  1. Layout control for search: build dev 796d80cba with one inert change in crates/tasks (or #894 minus crates/notes) and run it as the "br" arm. If search.query moves the same way, it's layout, not #894.
  2. Balanced rotation: start each round with ctl, put dev and br in mirrored positions, and use --runs 5 so save ACK p95 comes from more samples.

Not merged. #1027 stays untouched until #894 is READY.

Pooled r2+r3 table
metric stat arms d/b/c dev #894 ctl #894 vs dev ctl vs dev paired #894 paired ctl within control
sync.save_ack p50 16/16/16 3.751 3.800 3.781 +1.3% +0.8% +0.4% -0.2% over
sync.save_ack p95 16/16/16 5.793 6.284 5.430 +8.5% -6.3% +8.9% -3.7% over
sync.save_ack max 16/16/16 111.152 91.150 114.587 -18.0% +3.1% -21.3% +1.3% ok
storm.save_ack p50 16/16/16 7.436 7.421 7.427 -0.2% -0.1% -0.9% -0.0% ok
storm.save_ack p95 16/16/16 15.340 14.861 14.352 -3.1% -6.4% -3.3% -8.5% ok
storm.save_ack max 16/16/16 42.723 43.937 47.719 +2.8% +11.7% +1.5% +7.1% ok
storm.typing p50 16/16/16 2.814 2.803 2.812 -0.4% -0.1% -0.8% -1.2% ok
storm.typing p95 16/16/16 2.933 2.847 2.862 -2.9% -2.4% -2.4% -2.0% ok
storm.typing max 16/16/16 2.933 2.847 2.862 -2.9% -2.4% -2.4% -2.0% ok
sync.durable_write p50 16/16/16 24.767 24.867 24.745 +0.4% -0.1% +0.3% -0.9% over
sync.durable_write p95 16/16/16 34.336 32.745 31.791 -4.6% -7.4% -4.9% -0.5% ok
sync.durable_write max 16/16/16 58.503 58.168 57.469 -0.6% -1.8% -2.1% +0.5% ok
sync.round_trip p50 16/16/16 0.224 0.225 0.223 +0.6% -0.3% +0.9% -1.2% over
sync.round_trip p95 16/16/16 0.355 0.360 0.351 +1.5% -1.2% -1.3% -2.3% over
sync.round_trip max 16/16/16 27.722 8.442 21.397 -69.5% -22.8% -41.7% -25.1% ok
uploads.save_ack p50 16/16/16 4.858 4.825 4.818 -0.7% -0.8% -0.5% -0.7% ok
uploads.save_ack p95 16/16/16 10.279 9.802 10.451 -4.6% +1.7% -5.0% +2.5% ok
uploads.save_ack max 16/16/16 32.151 32.126 37.157 -0.1% +15.6% +3.1% +9.0% ok
open.note p50 16/16/16 0.741 0.739 0.747 -0.3% +0.8% +1.3% -0.6% ok
open.note p95 16/16/16 1.338 1.296 1.482 -3.1% +10.7% -1.2% +4.8% ok
open.note max 16/16/16 36.901 35.069 39.746 -5.0% +7.7% -9.5% +1.7% ok
open.api_get p50 16/16/16 4.053 4.015 4.229 -0.9% +4.3% -1.0% +2.2% ok
open.api_get p95 16/16/16 8.218 10.590 10.230 +28.9% +24.5% +9.0% +4.4% over
open.api_get max 16/16/16 42.673 44.311 45.749 +3.8% +7.2% +1.9% +8.0% ok
home.page p50 16/16/16 0.766 0.733 0.745 -4.3% -2.7% -3.7% +0.4% ok
home.page p95 16/16/16 1.608 1.626 1.828 +1.2% +13.7% +2.3% +11.3% ok
home.page max 16/16/16 5.269 5.160 4.544 -2.1% -13.8% -5.7% -7.6% ok
search.query p50 16/16/16 1.498 1.626 1.488 +8.6% -0.7% +7.1% -1.6% over
search.query p95 16/16/16 4.072 4.118 3.985 +1.1% -2.1% +2.0% -0.5% ok
search.query max 16/16/16 35.098 38.886 35.182 +10.8% +0.2% +11.9% +1.0% over
trash.delete p50 16/16/16 69.815 64.953 66.605 -7.0% -4.6% -8.5% -3.7% ok
trash.delete p95 16/16/16 107.784 104.149 106.610 -3.4% -1.1% -4.1% +5.3% ok
trash.delete max 16/16/16 147.594 145.677 151.314 -1.3% +2.5% -2.0% +7.5% ok
trash.restore p50 16/16/16 66.578 66.154 64.927 -0.6% -2.5% -1.4% -1.9% ok
trash.restore p95 16/16/16 116.306 113.404 113.117 -2.5% -2.7% -2.6% -2.1% ok
trash.restore max 16/16/16 139.581 134.687 132.802 -3.5% -4.9% -6.5% +0.7% ok
tasks.anytime p50 8/8/8 1.850 1.815 1.820 -1.9% -1.6% -0.0% -2.2% ok
tasks.anytime p95 8/8/8 2.245 2.120 2.150 -5.6% -4.2% -4.9% -2.5% ok
tasks.anytime p99 8/8/8 2.360 2.380 2.385 +0.8% +1.1% +3.2% -0.6% ok
tasks.anytime_by_child_tag p50 8/8/8 2.320 2.260 2.285 -2.6% -1.5% -0.9% -0.2% ok
tasks.anytime_by_child_tag p95 8/8/8 2.890 2.655 2.740 -8.1% -5.2% -7.7% -2.4% ok
tasks.anytime_by_child_tag p99 8/8/8 3.180 2.925 3.045 -8.0% -4.2% -9.9% -4.2% ok
tasks.counts p50 8/8/8 0.255 0.255 0.255 +0.0% +0.0% +0.0% +0.0% ok
tasks.counts p95 8/8/8 0.290 0.305 0.290 +5.2% -0.0% +7.1% -0.1% over
tasks.counts p99 8/8/8 0.315 0.335 0.310 +6.3% -1.6% +6.6% -1.7% over
tasks.someday p50 8/8/8 1.815 1.830 1.805 +0.8% -0.6% -0.3% +0.0% over
tasks.someday p95 8/8/8 2.090 2.060 2.100 -1.4% +0.5% -1.5% -0.7% ok
tasks.someday p99 8/8/8 3.000 2.315 2.310 -22.8% -23.0% -2.9% +1.2% ok
tasks.tag p50 8/8/8 2.240 2.250 2.225 +0.4% -0.7% -0.7% -0.9% ok
tasks.tag p95 8/8/8 2.555 2.600 2.550 +1.8% -0.2% -1.2% +0.8% over
tasks.tag p99 8/8/8 2.790 2.805 3.040 +0.5% +9.0% -1.2% +6.1% ok
tasks.today p50 8/8/8 2.290 2.290 2.265 +0.0% -1.1% -0.4% -0.9% ok
tasks.today p95 8/8/8 2.700 2.735 2.575 +1.3% -4.6% -2.6% -2.3% ok
tasks.today p99 8/8/8 3.090 3.090 2.785 +0.0% -9.9% -3.5% -6.9% ok
tasks.today_by_priority p50 8/8/8 2.180 2.215 2.160 +1.6% -0.9% +0.9% +0.5% over
tasks.today_by_priority p95 8/8/8 2.510 2.535 2.580 +1.0% +2.8% -2.4% +5.1% ok
tasks.today_by_priority p99 8/8/8 2.735 2.720 2.960 -0.5% +8.2% -2.1% +10.9% ok
tasks.untracked p50 8/8/8 1.285 1.265 1.275 -1.6% -0.8% -0.4% -1.2% ok
tasks.untracked p95 8/8/8 1.405 1.395 1.405 -0.7% +0.0% +2.5% -1.7% ok
tasks.untracked p99 8/8/8 1.490 1.565 1.575 +5.0% +5.7% +8.1% -4.1% ok
tasks.upcoming p50 8/8/8 2.345 2.310 2.280 -1.5% -2.8% -1.3% -3.0% ok
tasks.upcoming p95 8/8/8 2.835 2.655 2.635 -6.3% -7.1% -7.9% -7.6% ok
tasks.upcoming p99 8/8/8 3.155 3.030 3.020 -4.0% -4.3% -8.4% -4.5% ok

OVER CONTROL (p50/p95/p99): sync.save_ack p50, sync.save_ack p95, sync.durable_write p50, sync.round_trip p50, sync.round_trip p95, open.api_get p95, search.query p50, tasks.counts p95, tasks.counts p99, tasks.someday p50, tasks.tag p95, tasks.today_by_priority p50

Round 3 table
metric stat arms d/b/c dev #894 ctl #894 vs dev ctl vs dev paired #894 paired ctl within control
sync.save_ack p50 8/8/8 3.752 3.845 3.818 +2.5% +1.8% +0.6% +1.5% over
sync.save_ack p95 8/8/8 5.392 6.004 5.486 +11.4% +1.8% +11.5% -0.7% over
sync.save_ack max 8/8/8 119.437 110.010 118.206 -7.9% -1.0% -13.7% +2.3% ok
storm.save_ack p50 8/8/8 7.492 7.426 7.468 -0.9% -0.3% -0.7% +0.1% ok
storm.save_ack p95 8/8/8 15.365 15.047 14.405 -2.1% -6.2% -2.6% -8.1% ok
storm.save_ack max 8/8/8 41.190 48.487 48.539 +17.7% +17.8% +14.3% +15.1% ok
storm.typing p50 8/8/8 2.858 2.816 2.831 -1.5% -1.0% -1.3% -1.8% ok
storm.typing p95 8/8/8 2.956 2.878 2.902 -2.6% -1.8% -2.4% -2.0% ok
storm.typing max 8/8/8 2.956 2.878 2.902 -2.6% -1.8% -2.4% -2.0% ok
sync.durable_write p50 8/8/8 24.748 25.022 24.948 +1.1% +0.8% +1.6% +0.3% over
sync.durable_write p95 8/8/8 35.559 31.008 31.666 -12.8% -10.9% -12.8% -2.8% ok
sync.durable_write max 8/8/8 58.991 58.595 56.775 -0.7% -3.8% -1.3% -1.2% ok
sync.round_trip p50 8/8/8 0.235 0.238 0.231 +1.0% -1.9% +2.9% +1.9% ok
sync.round_trip p95 8/8/8 0.371 0.372 0.377 +0.2% +1.5% -2.4% -1.8% ok
sync.round_trip max 8/8/8 27.722 5.929 23.754 -78.6% -14.3% -41.7% -23.1% ok
uploads.save_ack p50 8/8/8 4.960 4.894 4.946 -1.3% -0.3% -0.4% -0.4% ok
uploads.save_ack p95 8/8/8 10.591 9.817 10.977 -7.3% +3.7% -6.8% +6.5% ok
uploads.save_ack max 8/8/8 33.290 32.126 37.157 -3.5% +11.6% +3.1% +1.7% ok
open.note p50 8/8/8 0.737 0.748 0.781 +1.5% +6.0% +2.1% +6.9% ok
open.note p95 8/8/8 1.413 1.313 1.543 -7.0% +9.2% -5.5% +8.9% ok
open.note max 8/8/8 36.716 35.582 40.697 -3.1% +10.8% -10.8% +9.3% ok
open.api_get p50 8/8/8 4.214 4.093 4.319 -2.9% +2.5% -0.1% -0.1% ok
open.api_get p95 8/8/8 8.950 13.766 10.059 +53.8% +12.4% +15.2% +4.4% over
open.api_get max 8/8/8 43.970 45.320 44.923 +3.1% +2.2% +2.0% +1.1% over
home.page p50 8/8/8 0.775 0.742 0.748 -4.2% -3.5% -2.2% +1.5% ok
home.page p95 8/8/8 1.216 1.729 1.832 +42.2% +50.7% +17.6% +34.6% ok
home.page max 8/8/8 6.054 5.095 4.464 -15.8% -26.3% -12.5% -18.2% ok
search.query p50 8/8/8 1.476 1.583 1.472 +7.2% -0.3% +4.3% -1.5% over
search.query p95 8/8/8 4.047 4.134 3.985 +2.2% -1.5% +2.4% +0.5% over
search.query max 8/8/8 35.643 38.943 35.386 +9.3% -0.7% +11.0% +2.5% over
trash.delete p50 8/8/8 69.412 64.551 75.529 -7.0% +8.8% -7.7% -3.7% ok
trash.delete p95 8/8/8 107.784 102.952 106.827 -4.5% -0.9% -4.7% +1.7% ok
trash.delete max 8/8/8 172.740 151.818 173.056 -12.1% +0.2% -5.3% +6.9% ok
trash.restore p50 8/8/8 67.264 66.154 67.920 -1.6% +1.0% -2.2% +2.1% ok
trash.restore p95 8/8/8 117.663 115.092 114.626 -2.2% -2.6% -2.0% -1.3% ok
trash.restore max 8/8/8 143.083 132.846 133.168 -7.2% -6.9% -7.7% +1.1% ok
tasks.anytime p50 4/4/4 1.905 1.850 1.820 -2.9% -4.5% -2.8% -5.7% ok
tasks.anytime p95 4/4/4 2.285 2.055 2.150 -10.1% -5.9% -10.0% -5.9% ok
tasks.anytime p99 4/4/4 2.465 2.190 2.415 -11.2% -2.0% -13.6% -6.7% ok
tasks.anytime_by_child_tag p50 4/4/4 2.320 2.300 2.290 -0.9% -1.3% -0.9% -0.2% ok
tasks.anytime_by_child_tag p95 4/4/4 2.750 2.640 2.760 -4.0% +0.4% -2.5% -1.7% ok
tasks.anytime_by_child_tag p99 4/4/4 3.110 2.795 2.980 -10.1% -4.2% -11.2% -4.2% ok
tasks.counts p50 4/4/4 0.260 0.255 0.255 -1.9% -1.9% -1.9% +0.0% ok
tasks.counts p95 4/4/4 0.300 0.300 0.300 +0.0% +0.0% -1.6% -0.1% ok
tasks.counts p99 4/4/4 0.325 0.320 0.335 -1.5% +3.1% -1.3% +1.3% ok
tasks.someday p50 4/4/4 1.825 1.860 1.830 +1.9% +0.3% +1.9% +1.1% over
tasks.someday p95 4/4/4 2.090 2.125 2.255 +1.7% +7.9% +1.0% +10.3% ok
tasks.someday p99 4/4/4 3.840 3.530 3.190 -8.1% -16.9% -10.0% -15.6% ok
tasks.tag p50 4/4/4 2.290 2.270 2.245 -0.9% -2.0% -1.3% -1.5% ok
tasks.tag p95 4/4/4 2.650 2.600 2.605 -1.9% -1.7% -2.5% -1.7% ok
tasks.tag p99 4/4/4 2.930 2.805 2.980 -4.3% +1.7% -6.6% +3.6% ok
tasks.today p50 4/4/4 2.330 2.545 2.335 +9.2% +0.2% +7.7% +2.6% over
tasks.today p95 4/4/4 3.115 3.070 2.725 -1.4% -12.5% +1.7% -9.4% ok
tasks.today p99 4/4/4 3.555 3.430 2.925 -3.5% -17.7% -1.7% -15.2% ok
tasks.today_by_priority p50 4/4/4 2.205 2.235 2.175 +1.4% -1.4% +1.4% -0.9% ok
tasks.today_by_priority p95 4/4/4 2.600 2.615 2.580 +0.6% -0.8% -1.1% -6.2% ok
tasks.today_by_priority p99 4/4/4 2.890 2.830 2.960 -2.1% +2.4% -2.1% -1.9% ok
tasks.untracked p50 4/4/4 1.295 1.285 1.295 -0.8% +0.0% +0.4% -0.8% ok
tasks.untracked p95 4/4/4 1.435 1.395 1.420 -2.8% -1.0% -1.3% -1.7% ok
tasks.untracked p99 4/4/4 1.560 1.590 1.495 +1.9% -4.2% +3.0% -4.1% ok
tasks.upcoming p50 4/4/4 2.450 2.425 2.340 -1.0% -4.5% -3.9% -5.6% ok
tasks.upcoming p95 4/4/4 3.445 2.990 2.725 -13.2% -20.9% -13.5% -8.9% ok
tasks.upcoming p99 4/4/4 3.730 3.425 3.000 -8.2% -19.6% -11.0% -10.1% ok

OVER CONTROL (p50/p95/p99): sync.save_ack p50, sync.save_ack p95, sync.durable_write p50, open.api_get p95, search.query p50, search.query p95, tasks.someday p50, tasks.today p50

## Perf round 3 + pooled verdict: **still BLOCKED** (head `9db7c845d`) Round 3: perf-01, 14 Nov 12:04–12:45 CET, same staged binaries as round 2 (sha256-verified), both perf locks. Pooled = rounds 2+3 (final binaries, 16 cp arms / 8 tasks-bench arms per label). For the Notes save path, rounds 1+2+3 are also pooled, because the save-path source is identical in all three. ### Passes (at or below dev, or within the dev-vs-dev control) - **Typing:** `storm.typing` p50 −0.4%, p95 −2.9% (pooled r2+r3). - **Storm saves:** `storm.save_ack` p50 −0.2%, p95 −3.1%. `uploads.save_ack` −0.7% / −4.6%. - **Tasks lists:** the +3…5% p50 regression from `76e79ea8a` is gone. List rows now read exactly what dev reads (`32c474fe1`). - **Save ACK pooled over all 3 sessions:** `sync.save_ack` p50 +0.1% (control −0.1%), p95 +0.3% (control −8.7%). ### Not at or below dev (why this is not READY) | metric | r1 | r2 | r3 | pooled r2+r3 (paired) | control r2+r3 | |---|---:|---:|---:|---:|---:| | `search.query` p50 | +3.3% | +8.5% | +7.2% | +8.6% (+7.1%) | −0.7% | | `sync.save_ack` p95 | −12.3% | +10.3% | +11.4% | +8.5% (+8.9%) | −6.3% | | `tasks.today` p50 | +2.8% | −1.3% | +9.2% | n/a | ±2% | - `search.query` p50 is consistently higher (~+0.12 ms on 1.5 ms) across all three sessions. #894 changes no search or engine code: `calternal-notes` is only a dev-dependency of `crates/search`, and `crates/engine` gains only match arms in `classify_action`. So this is binary layout or something I haven't found. Either way it's a measured delta, and I can't call it noise. - `sync.save_ack` p95 flips sign between sessions with identical save-path source. dev-vs-ctl (the same binary) also moves up to 18% between sessions. The rotation `dev br ctl br ctl dev ctl dev br br dev ctl` always puts `dev` first in a round (coldest cache), so position bias is the same size as the effect. Pooled over 3 sessions it's flat, but the 2 sessions on the final binary both read ~+10%. ### Suggested next step (not done here, needs another ~2.5 h FIFO slot) 1. **Layout control for search:** build dev `796d80cba` with one inert change in `crates/tasks` (or #894 minus `crates/notes`) and run it as the "br" arm. If `search.query` moves the same way, it's layout, not #894. 2. **Balanced rotation:** start each round with `ctl`, put `dev` and `br` in mirrored positions, and use `--runs 5` so save ACK p95 comes from more samples. Not merged. #1027 stays untouched until #894 is READY. <details><summary>Pooled r2+r3 table</summary> | metric | stat | arms d/b/c | dev | #894 | ctl | #894 vs dev | ctl vs dev | paired #894 | paired ctl | within control | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---| | `sync.save_ack` | p50 | 16/16/16 | 3.751 | 3.800 | 3.781 | +1.3% | +0.8% | +0.4% | -0.2% | **over** | | `sync.save_ack` | p95 | 16/16/16 | 5.793 | 6.284 | 5.430 | +8.5% | -6.3% | +8.9% | -3.7% | **over** | | `sync.save_ack` | max | 16/16/16 | 111.152 | 91.150 | 114.587 | -18.0% | +3.1% | -21.3% | +1.3% | ok | | `storm.save_ack` | p50 | 16/16/16 | 7.436 | 7.421 | 7.427 | -0.2% | -0.1% | -0.9% | -0.0% | ok | | `storm.save_ack` | p95 | 16/16/16 | 15.340 | 14.861 | 14.352 | -3.1% | -6.4% | -3.3% | -8.5% | ok | | `storm.save_ack` | max | 16/16/16 | 42.723 | 43.937 | 47.719 | +2.8% | +11.7% | +1.5% | +7.1% | ok | | `storm.typing` | p50 | 16/16/16 | 2.814 | 2.803 | 2.812 | -0.4% | -0.1% | -0.8% | -1.2% | ok | | `storm.typing` | p95 | 16/16/16 | 2.933 | 2.847 | 2.862 | -2.9% | -2.4% | -2.4% | -2.0% | ok | | `storm.typing` | max | 16/16/16 | 2.933 | 2.847 | 2.862 | -2.9% | -2.4% | -2.4% | -2.0% | ok | | `sync.durable_write` | p50 | 16/16/16 | 24.767 | 24.867 | 24.745 | +0.4% | -0.1% | +0.3% | -0.9% | **over** | | `sync.durable_write` | p95 | 16/16/16 | 34.336 | 32.745 | 31.791 | -4.6% | -7.4% | -4.9% | -0.5% | ok | | `sync.durable_write` | max | 16/16/16 | 58.503 | 58.168 | 57.469 | -0.6% | -1.8% | -2.1% | +0.5% | ok | | `sync.round_trip` | p50 | 16/16/16 | 0.224 | 0.225 | 0.223 | +0.6% | -0.3% | +0.9% | -1.2% | **over** | | `sync.round_trip` | p95 | 16/16/16 | 0.355 | 0.360 | 0.351 | +1.5% | -1.2% | -1.3% | -2.3% | **over** | | `sync.round_trip` | max | 16/16/16 | 27.722 | 8.442 | 21.397 | -69.5% | -22.8% | -41.7% | -25.1% | ok | | `uploads.save_ack` | p50 | 16/16/16 | 4.858 | 4.825 | 4.818 | -0.7% | -0.8% | -0.5% | -0.7% | ok | | `uploads.save_ack` | p95 | 16/16/16 | 10.279 | 9.802 | 10.451 | -4.6% | +1.7% | -5.0% | +2.5% | ok | | `uploads.save_ack` | max | 16/16/16 | 32.151 | 32.126 | 37.157 | -0.1% | +15.6% | +3.1% | +9.0% | ok | | `open.note` | p50 | 16/16/16 | 0.741 | 0.739 | 0.747 | -0.3% | +0.8% | +1.3% | -0.6% | ok | | `open.note` | p95 | 16/16/16 | 1.338 | 1.296 | 1.482 | -3.1% | +10.7% | -1.2% | +4.8% | ok | | `open.note` | max | 16/16/16 | 36.901 | 35.069 | 39.746 | -5.0% | +7.7% | -9.5% | +1.7% | ok | | `open.api_get` | p50 | 16/16/16 | 4.053 | 4.015 | 4.229 | -0.9% | +4.3% | -1.0% | +2.2% | ok | | `open.api_get` | p95 | 16/16/16 | 8.218 | 10.590 | 10.230 | +28.9% | +24.5% | +9.0% | +4.4% | **over** | | `open.api_get` | max | 16/16/16 | 42.673 | 44.311 | 45.749 | +3.8% | +7.2% | +1.9% | +8.0% | ok | | `home.page` | p50 | 16/16/16 | 0.766 | 0.733 | 0.745 | -4.3% | -2.7% | -3.7% | +0.4% | ok | | `home.page` | p95 | 16/16/16 | 1.608 | 1.626 | 1.828 | +1.2% | +13.7% | +2.3% | +11.3% | ok | | `home.page` | max | 16/16/16 | 5.269 | 5.160 | 4.544 | -2.1% | -13.8% | -5.7% | -7.6% | ok | | `search.query` | p50 | 16/16/16 | 1.498 | 1.626 | 1.488 | +8.6% | -0.7% | +7.1% | -1.6% | **over** | | `search.query` | p95 | 16/16/16 | 4.072 | 4.118 | 3.985 | +1.1% | -2.1% | +2.0% | -0.5% | ok | | `search.query` | max | 16/16/16 | 35.098 | 38.886 | 35.182 | +10.8% | +0.2% | +11.9% | +1.0% | **over** | | `trash.delete` | p50 | 16/16/16 | 69.815 | 64.953 | 66.605 | -7.0% | -4.6% | -8.5% | -3.7% | ok | | `trash.delete` | p95 | 16/16/16 | 107.784 | 104.149 | 106.610 | -3.4% | -1.1% | -4.1% | +5.3% | ok | | `trash.delete` | max | 16/16/16 | 147.594 | 145.677 | 151.314 | -1.3% | +2.5% | -2.0% | +7.5% | ok | | `trash.restore` | p50 | 16/16/16 | 66.578 | 66.154 | 64.927 | -0.6% | -2.5% | -1.4% | -1.9% | ok | | `trash.restore` | p95 | 16/16/16 | 116.306 | 113.404 | 113.117 | -2.5% | -2.7% | -2.6% | -2.1% | ok | | `trash.restore` | max | 16/16/16 | 139.581 | 134.687 | 132.802 | -3.5% | -4.9% | -6.5% | +0.7% | ok | | `tasks.anytime` | p50 | 8/8/8 | 1.850 | 1.815 | 1.820 | -1.9% | -1.6% | -0.0% | -2.2% | ok | | `tasks.anytime` | p95 | 8/8/8 | 2.245 | 2.120 | 2.150 | -5.6% | -4.2% | -4.9% | -2.5% | ok | | `tasks.anytime` | p99 | 8/8/8 | 2.360 | 2.380 | 2.385 | +0.8% | +1.1% | +3.2% | -0.6% | ok | | `tasks.anytime_by_child_tag` | p50 | 8/8/8 | 2.320 | 2.260 | 2.285 | -2.6% | -1.5% | -0.9% | -0.2% | ok | | `tasks.anytime_by_child_tag` | p95 | 8/8/8 | 2.890 | 2.655 | 2.740 | -8.1% | -5.2% | -7.7% | -2.4% | ok | | `tasks.anytime_by_child_tag` | p99 | 8/8/8 | 3.180 | 2.925 | 3.045 | -8.0% | -4.2% | -9.9% | -4.2% | ok | | `tasks.counts` | p50 | 8/8/8 | 0.255 | 0.255 | 0.255 | +0.0% | +0.0% | +0.0% | +0.0% | ok | | `tasks.counts` | p95 | 8/8/8 | 0.290 | 0.305 | 0.290 | +5.2% | -0.0% | +7.1% | -0.1% | **over** | | `tasks.counts` | p99 | 8/8/8 | 0.315 | 0.335 | 0.310 | +6.3% | -1.6% | +6.6% | -1.7% | **over** | | `tasks.someday` | p50 | 8/8/8 | 1.815 | 1.830 | 1.805 | +0.8% | -0.6% | -0.3% | +0.0% | **over** | | `tasks.someday` | p95 | 8/8/8 | 2.090 | 2.060 | 2.100 | -1.4% | +0.5% | -1.5% | -0.7% | ok | | `tasks.someday` | p99 | 8/8/8 | 3.000 | 2.315 | 2.310 | -22.8% | -23.0% | -2.9% | +1.2% | ok | | `tasks.tag` | p50 | 8/8/8 | 2.240 | 2.250 | 2.225 | +0.4% | -0.7% | -0.7% | -0.9% | ok | | `tasks.tag` | p95 | 8/8/8 | 2.555 | 2.600 | 2.550 | +1.8% | -0.2% | -1.2% | +0.8% | **over** | | `tasks.tag` | p99 | 8/8/8 | 2.790 | 2.805 | 3.040 | +0.5% | +9.0% | -1.2% | +6.1% | ok | | `tasks.today` | p50 | 8/8/8 | 2.290 | 2.290 | 2.265 | +0.0% | -1.1% | -0.4% | -0.9% | ok | | `tasks.today` | p95 | 8/8/8 | 2.700 | 2.735 | 2.575 | +1.3% | -4.6% | -2.6% | -2.3% | ok | | `tasks.today` | p99 | 8/8/8 | 3.090 | 3.090 | 2.785 | +0.0% | -9.9% | -3.5% | -6.9% | ok | | `tasks.today_by_priority` | p50 | 8/8/8 | 2.180 | 2.215 | 2.160 | +1.6% | -0.9% | +0.9% | +0.5% | **over** | | `tasks.today_by_priority` | p95 | 8/8/8 | 2.510 | 2.535 | 2.580 | +1.0% | +2.8% | -2.4% | +5.1% | ok | | `tasks.today_by_priority` | p99 | 8/8/8 | 2.735 | 2.720 | 2.960 | -0.5% | +8.2% | -2.1% | +10.9% | ok | | `tasks.untracked` | p50 | 8/8/8 | 1.285 | 1.265 | 1.275 | -1.6% | -0.8% | -0.4% | -1.2% | ok | | `tasks.untracked` | p95 | 8/8/8 | 1.405 | 1.395 | 1.405 | -0.7% | +0.0% | +2.5% | -1.7% | ok | | `tasks.untracked` | p99 | 8/8/8 | 1.490 | 1.565 | 1.575 | +5.0% | +5.7% | +8.1% | -4.1% | ok | | `tasks.upcoming` | p50 | 8/8/8 | 2.345 | 2.310 | 2.280 | -1.5% | -2.8% | -1.3% | -3.0% | ok | | `tasks.upcoming` | p95 | 8/8/8 | 2.835 | 2.655 | 2.635 | -6.3% | -7.1% | -7.9% | -7.6% | ok | | `tasks.upcoming` | p99 | 8/8/8 | 3.155 | 3.030 | 3.020 | -4.0% | -4.3% | -8.4% | -4.5% | ok | OVER CONTROL (p50/p95/p99): sync.save_ack p50, sync.save_ack p95, sync.durable_write p50, sync.round_trip p50, sync.round_trip p95, open.api_get p95, search.query p50, tasks.counts p95, tasks.counts p99, tasks.someday p50, tasks.tag p95, tasks.today_by_priority p50 </details> <details><summary>Round 3 table</summary> | metric | stat | arms d/b/c | dev | #894 | ctl | #894 vs dev | ctl vs dev | paired #894 | paired ctl | within control | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---| | `sync.save_ack` | p50 | 8/8/8 | 3.752 | 3.845 | 3.818 | +2.5% | +1.8% | +0.6% | +1.5% | **over** | | `sync.save_ack` | p95 | 8/8/8 | 5.392 | 6.004 | 5.486 | +11.4% | +1.8% | +11.5% | -0.7% | **over** | | `sync.save_ack` | max | 8/8/8 | 119.437 | 110.010 | 118.206 | -7.9% | -1.0% | -13.7% | +2.3% | ok | | `storm.save_ack` | p50 | 8/8/8 | 7.492 | 7.426 | 7.468 | -0.9% | -0.3% | -0.7% | +0.1% | ok | | `storm.save_ack` | p95 | 8/8/8 | 15.365 | 15.047 | 14.405 | -2.1% | -6.2% | -2.6% | -8.1% | ok | | `storm.save_ack` | max | 8/8/8 | 41.190 | 48.487 | 48.539 | +17.7% | +17.8% | +14.3% | +15.1% | ok | | `storm.typing` | p50 | 8/8/8 | 2.858 | 2.816 | 2.831 | -1.5% | -1.0% | -1.3% | -1.8% | ok | | `storm.typing` | p95 | 8/8/8 | 2.956 | 2.878 | 2.902 | -2.6% | -1.8% | -2.4% | -2.0% | ok | | `storm.typing` | max | 8/8/8 | 2.956 | 2.878 | 2.902 | -2.6% | -1.8% | -2.4% | -2.0% | ok | | `sync.durable_write` | p50 | 8/8/8 | 24.748 | 25.022 | 24.948 | +1.1% | +0.8% | +1.6% | +0.3% | **over** | | `sync.durable_write` | p95 | 8/8/8 | 35.559 | 31.008 | 31.666 | -12.8% | -10.9% | -12.8% | -2.8% | ok | | `sync.durable_write` | max | 8/8/8 | 58.991 | 58.595 | 56.775 | -0.7% | -3.8% | -1.3% | -1.2% | ok | | `sync.round_trip` | p50 | 8/8/8 | 0.235 | 0.238 | 0.231 | +1.0% | -1.9% | +2.9% | +1.9% | ok | | `sync.round_trip` | p95 | 8/8/8 | 0.371 | 0.372 | 0.377 | +0.2% | +1.5% | -2.4% | -1.8% | ok | | `sync.round_trip` | max | 8/8/8 | 27.722 | 5.929 | 23.754 | -78.6% | -14.3% | -41.7% | -23.1% | ok | | `uploads.save_ack` | p50 | 8/8/8 | 4.960 | 4.894 | 4.946 | -1.3% | -0.3% | -0.4% | -0.4% | ok | | `uploads.save_ack` | p95 | 8/8/8 | 10.591 | 9.817 | 10.977 | -7.3% | +3.7% | -6.8% | +6.5% | ok | | `uploads.save_ack` | max | 8/8/8 | 33.290 | 32.126 | 37.157 | -3.5% | +11.6% | +3.1% | +1.7% | ok | | `open.note` | p50 | 8/8/8 | 0.737 | 0.748 | 0.781 | +1.5% | +6.0% | +2.1% | +6.9% | ok | | `open.note` | p95 | 8/8/8 | 1.413 | 1.313 | 1.543 | -7.0% | +9.2% | -5.5% | +8.9% | ok | | `open.note` | max | 8/8/8 | 36.716 | 35.582 | 40.697 | -3.1% | +10.8% | -10.8% | +9.3% | ok | | `open.api_get` | p50 | 8/8/8 | 4.214 | 4.093 | 4.319 | -2.9% | +2.5% | -0.1% | -0.1% | ok | | `open.api_get` | p95 | 8/8/8 | 8.950 | 13.766 | 10.059 | +53.8% | +12.4% | +15.2% | +4.4% | **over** | | `open.api_get` | max | 8/8/8 | 43.970 | 45.320 | 44.923 | +3.1% | +2.2% | +2.0% | +1.1% | **over** | | `home.page` | p50 | 8/8/8 | 0.775 | 0.742 | 0.748 | -4.2% | -3.5% | -2.2% | +1.5% | ok | | `home.page` | p95 | 8/8/8 | 1.216 | 1.729 | 1.832 | +42.2% | +50.7% | +17.6% | +34.6% | ok | | `home.page` | max | 8/8/8 | 6.054 | 5.095 | 4.464 | -15.8% | -26.3% | -12.5% | -18.2% | ok | | `search.query` | p50 | 8/8/8 | 1.476 | 1.583 | 1.472 | +7.2% | -0.3% | +4.3% | -1.5% | **over** | | `search.query` | p95 | 8/8/8 | 4.047 | 4.134 | 3.985 | +2.2% | -1.5% | +2.4% | +0.5% | **over** | | `search.query` | max | 8/8/8 | 35.643 | 38.943 | 35.386 | +9.3% | -0.7% | +11.0% | +2.5% | **over** | | `trash.delete` | p50 | 8/8/8 | 69.412 | 64.551 | 75.529 | -7.0% | +8.8% | -7.7% | -3.7% | ok | | `trash.delete` | p95 | 8/8/8 | 107.784 | 102.952 | 106.827 | -4.5% | -0.9% | -4.7% | +1.7% | ok | | `trash.delete` | max | 8/8/8 | 172.740 | 151.818 | 173.056 | -12.1% | +0.2% | -5.3% | +6.9% | ok | | `trash.restore` | p50 | 8/8/8 | 67.264 | 66.154 | 67.920 | -1.6% | +1.0% | -2.2% | +2.1% | ok | | `trash.restore` | p95 | 8/8/8 | 117.663 | 115.092 | 114.626 | -2.2% | -2.6% | -2.0% | -1.3% | ok | | `trash.restore` | max | 8/8/8 | 143.083 | 132.846 | 133.168 | -7.2% | -6.9% | -7.7% | +1.1% | ok | | `tasks.anytime` | p50 | 4/4/4 | 1.905 | 1.850 | 1.820 | -2.9% | -4.5% | -2.8% | -5.7% | ok | | `tasks.anytime` | p95 | 4/4/4 | 2.285 | 2.055 | 2.150 | -10.1% | -5.9% | -10.0% | -5.9% | ok | | `tasks.anytime` | p99 | 4/4/4 | 2.465 | 2.190 | 2.415 | -11.2% | -2.0% | -13.6% | -6.7% | ok | | `tasks.anytime_by_child_tag` | p50 | 4/4/4 | 2.320 | 2.300 | 2.290 | -0.9% | -1.3% | -0.9% | -0.2% | ok | | `tasks.anytime_by_child_tag` | p95 | 4/4/4 | 2.750 | 2.640 | 2.760 | -4.0% | +0.4% | -2.5% | -1.7% | ok | | `tasks.anytime_by_child_tag` | p99 | 4/4/4 | 3.110 | 2.795 | 2.980 | -10.1% | -4.2% | -11.2% | -4.2% | ok | | `tasks.counts` | p50 | 4/4/4 | 0.260 | 0.255 | 0.255 | -1.9% | -1.9% | -1.9% | +0.0% | ok | | `tasks.counts` | p95 | 4/4/4 | 0.300 | 0.300 | 0.300 | +0.0% | +0.0% | -1.6% | -0.1% | ok | | `tasks.counts` | p99 | 4/4/4 | 0.325 | 0.320 | 0.335 | -1.5% | +3.1% | -1.3% | +1.3% | ok | | `tasks.someday` | p50 | 4/4/4 | 1.825 | 1.860 | 1.830 | +1.9% | +0.3% | +1.9% | +1.1% | **over** | | `tasks.someday` | p95 | 4/4/4 | 2.090 | 2.125 | 2.255 | +1.7% | +7.9% | +1.0% | +10.3% | ok | | `tasks.someday` | p99 | 4/4/4 | 3.840 | 3.530 | 3.190 | -8.1% | -16.9% | -10.0% | -15.6% | ok | | `tasks.tag` | p50 | 4/4/4 | 2.290 | 2.270 | 2.245 | -0.9% | -2.0% | -1.3% | -1.5% | ok | | `tasks.tag` | p95 | 4/4/4 | 2.650 | 2.600 | 2.605 | -1.9% | -1.7% | -2.5% | -1.7% | ok | | `tasks.tag` | p99 | 4/4/4 | 2.930 | 2.805 | 2.980 | -4.3% | +1.7% | -6.6% | +3.6% | ok | | `tasks.today` | p50 | 4/4/4 | 2.330 | 2.545 | 2.335 | +9.2% | +0.2% | +7.7% | +2.6% | **over** | | `tasks.today` | p95 | 4/4/4 | 3.115 | 3.070 | 2.725 | -1.4% | -12.5% | +1.7% | -9.4% | ok | | `tasks.today` | p99 | 4/4/4 | 3.555 | 3.430 | 2.925 | -3.5% | -17.7% | -1.7% | -15.2% | ok | | `tasks.today_by_priority` | p50 | 4/4/4 | 2.205 | 2.235 | 2.175 | +1.4% | -1.4% | +1.4% | -0.9% | ok | | `tasks.today_by_priority` | p95 | 4/4/4 | 2.600 | 2.615 | 2.580 | +0.6% | -0.8% | -1.1% | -6.2% | ok | | `tasks.today_by_priority` | p99 | 4/4/4 | 2.890 | 2.830 | 2.960 | -2.1% | +2.4% | -2.1% | -1.9% | ok | | `tasks.untracked` | p50 | 4/4/4 | 1.295 | 1.285 | 1.295 | -0.8% | +0.0% | +0.4% | -0.8% | ok | | `tasks.untracked` | p95 | 4/4/4 | 1.435 | 1.395 | 1.420 | -2.8% | -1.0% | -1.3% | -1.7% | ok | | `tasks.untracked` | p99 | 4/4/4 | 1.560 | 1.590 | 1.495 | +1.9% | -4.2% | +3.0% | -4.1% | ok | | `tasks.upcoming` | p50 | 4/4/4 | 2.450 | 2.425 | 2.340 | -1.0% | -4.5% | -3.9% | -5.6% | ok | | `tasks.upcoming` | p95 | 4/4/4 | 3.445 | 2.990 | 2.725 | -13.2% | -20.9% | -13.5% | -8.9% | ok | | `tasks.upcoming` | p99 | 4/4/4 | 3.730 | 3.425 | 3.000 | -8.2% | -19.6% | -11.0% | -10.1% | ok | OVER CONTROL (p50/p95/p99): sync.save_ack p50, sync.save_ack p95, sync.durable_write p50, open.api_get p95, search.query p50, search.query p95, tasks.someday p50, tasks.today p50 </details>
Author
Owner

#894 turn A on the new comparator (#1130): the search.query +8.6% and the sync.save_ack p95 flips don't reproduce. They're order and noise effects.

Asked by the orchestrator: mirrored arm order, a dev + inert-change layout arm, and confirmation in a second turn. All three are now in #1130.

Arms. All arms were built by me on dev-01 in fresh worktrees with the same toolchain, relayed through hd01 and sha256-checked on both ends.

Arm Source calternal sha256 Size
dev, dev2 merge base 796d80cba (dev2 is a byte copy) c3e9a68f… 32,795,648
inert 796d80cba + perf/inert-patch.py --seed 1 --functions 5700 fd617d16… 34,128,128
cand #894 9db7c845d 737e2eee… 34,113,648
  • The inert patch adds 5,700 never-run functions in crates/tasks, reached only behind black_box(false) from TasksPlugin::new. That's the same crate and about the same size growth as #894, so fat LTO reshuffles the layout in a similar way.
  • One harness for every arm: calternal-perf 2b5bf648… from 796d80cba.

Turn A. ~/bin/perf-turn sound-comparator on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn.

  • Measured 14:08–15:15 CET, 14 Nov.
  • Command: perf/vm/paired-turn.sh --order mirrored --seed 894 --warmup, each arm calternal-perf --sizes 10k --runs 3 --cold-runs 0 (full scenario set, as the #894 lane ran it).
  • 12 rounds, 48 arms plus the warm-up, all exit 0. Round 1's order was cand dev inert dev2, round 2 its mirror.

Comparator. python3 perf/compare.py tA/layout.json --layout inert --hot sync.,storm.,uploads.,trash.,open.

  • Exact: 4,096 sign flips. Westfall–Young max-T, α = 5% per family.
  • 60 cells; 1 was skipped because of a zero value.
Null block tA: dev2 vs dev (two-sided)                                      n=60 >1.05:6 <0.95:3 minp=0.316
      search.query p50 ratio 1.0115 U95 1.0643 MDE 7.9% p 1.0000
      sync.save_ack p50 ratio 1.0040 U95 1.0131 MDE 1.4% p 1.0000
      sync.save_ack p95 ratio 1.1119 U95 1.2547 MDE 19.7% p 0.9951
Layout block: inert vs dev (two-sided, information: how much an inert chang n=60 >1.05:10 <0.95:3 minp=0.259
      search.query p50 ratio 1.0069 U95 1.0611 MDE 8.1% p 1.0000
      sync.save_ack p50 ratio 1.0418 U95 1.0808 MDE 5.6% p 0.9521
      sync.save_ack p95 ratio 1.1887 U95 1.3539 MDE 21.4% p 0.7983
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=30 >1.05:2 <0.95:1 minp=0.363
      sync.save_ack p50 ratio 1.0066 U95 1.0176 MDE 1.6% p 0.9539
      sync.save_ack p95 ratio 1.0022 U95 1.0859 MDE 12.7% p 1.0000
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=30 >1.05:0 <0.95:4 minp=0.884
      sync.save_ack p50 ratio 0.9663 U95 1.0024 MDE 5.6% p 1.0000
      sync.save_ack p95 ratio 0.8432 U95 0.9784 MDE 24.8% p 1.0000
Candidate, smoke: cand vs dev (one-sided, slower = flagged)                 n=30 >1.05:3 <0.95:1 minp=0.516
      search.query p50 ratio 1.0121 U95 1.0579 MDE 6.8% p 0.9990
Candidate, smoke: cand vs layout arm inert (one-sided)                      n=30 >1.05:1 <0.95:3 minp=0.242
      search.query p50 ratio 1.0052 U95 1.0520 MDE 7.0% p 0.9978

What this says about the two lane findings:

  • search.query p50:
    • #894 vs dev ×1.012 (upper 95% ×1.058, MDE 6.8%).
    • #894 vs inert ×1.005.
    • dev2 vs dev (the same binary) ×1.012.
    • The lane's +8.6% came from a rotation that always ran dev first. With mirrored order, #894 is as far from dev as dev is from itself.
  • sync.save_ack p95:
    • #894 vs dev ×1.002.
    • dev2 vs dev ×1.112, and inert vs dev ×1.19.
    • The tail moves ±10–20% between identical binaries, so the lane's −12%/+11% swings are noise. p50 is ×1.007 (upper 95% ×1.018, MDE 1.6%).
  • Layout effect is real but small here: inert vs dev has 10 of 60 cells above ×1.05, against 6 for dev2 vs dev. No layout cell reaches significance (smallest adjusted p 0.26).
  • Exact mirror-pair check (--pairs, 6 units, 64 flips): 0 flags.

Turn A verdict: no regression against dev or the layout arm on any hot or smoke cell. One hot cell is unresolved: open.long_note (single-shot per run, MDE 65%; its ratio is 0.83).

Turn B (tasks-bench, same four arms, mirrored) is running now. The #894 verdict follows when B is in.

### #894 turn A on the new comparator (#1130): the `search.query` +8.6% and the `sync.save_ack` p95 flips don't reproduce. They're order and noise effects. Asked by the orchestrator: mirrored arm order, a dev + inert-change layout arm, and confirmation in a second turn. All three are now in #1130. **Arms.** All arms were built by me on dev-01 in fresh worktrees with the same toolchain, relayed through hd01 and sha256-checked on both ends. | Arm | Source | `calternal` sha256 | Size | |---|---|---|---:| | dev, dev2 | merge base `796d80cba` (dev2 is a byte copy) | `c3e9a68f…` | 32,795,648 | | inert | `796d80cba` + `perf/inert-patch.py --seed 1 --functions 5700` | `fd617d16…` | 34,128,128 | | cand | #894 `9db7c845d` | `737e2eee…` | 34,113,648 | - The inert patch adds 5,700 never-run functions in `crates/tasks`, reached only behind `black_box(false)` from `TasksPlugin::new`. That's the same crate and about the same size growth as #894, so fat LTO reshuffles the layout in a similar way. - One harness for every arm: `calternal-perf` `2b5bf648…` from `796d80cba`. **Turn A.** `~/bin/perf-turn sound-comparator` on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn. - Measured 14:08–15:15 CET, 14 Nov. - Command: `perf/vm/paired-turn.sh --order mirrored --seed 894 --warmup`, each arm `calternal-perf --sizes 10k --runs 3 --cold-runs 0` (full scenario set, as the #894 lane ran it). - 12 rounds, 48 arms plus the warm-up, all exit 0. Round 1's order was `cand dev inert dev2`, round 2 its mirror. **Comparator.** `python3 perf/compare.py tA/layout.json --layout inert --hot sync.,storm.,uploads.,trash.,open.` - Exact: 4,096 sign flips. Westfall–Young max-T, α = 5% per family. - 60 cells; 1 was skipped because of a zero value. ``` Null block tA: dev2 vs dev (two-sided) n=60 >1.05:6 <0.95:3 minp=0.316 search.query p50 ratio 1.0115 U95 1.0643 MDE 7.9% p 1.0000 sync.save_ack p50 ratio 1.0040 U95 1.0131 MDE 1.4% p 1.0000 sync.save_ack p95 ratio 1.1119 U95 1.2547 MDE 19.7% p 0.9951 Layout block: inert vs dev (two-sided, information: how much an inert chang n=60 >1.05:10 <0.95:3 minp=0.259 search.query p50 ratio 1.0069 U95 1.0611 MDE 8.1% p 1.0000 sync.save_ack p50 ratio 1.0418 U95 1.0808 MDE 5.6% p 0.9521 sync.save_ack p95 ratio 1.1887 U95 1.3539 MDE 21.4% p 0.7983 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=30 >1.05:2 <0.95:1 minp=0.363 sync.save_ack p50 ratio 1.0066 U95 1.0176 MDE 1.6% p 0.9539 sync.save_ack p95 ratio 1.0022 U95 1.0859 MDE 12.7% p 1.0000 Candidate, hot paths: cand vs layout arm inert (one-sided) n=30 >1.05:0 <0.95:4 minp=0.884 sync.save_ack p50 ratio 0.9663 U95 1.0024 MDE 5.6% p 1.0000 sync.save_ack p95 ratio 0.8432 U95 0.9784 MDE 24.8% p 1.0000 Candidate, smoke: cand vs dev (one-sided, slower = flagged) n=30 >1.05:3 <0.95:1 minp=0.516 search.query p50 ratio 1.0121 U95 1.0579 MDE 6.8% p 0.9990 Candidate, smoke: cand vs layout arm inert (one-sided) n=30 >1.05:1 <0.95:3 minp=0.242 search.query p50 ratio 1.0052 U95 1.0520 MDE 7.0% p 0.9978 ``` **What this says about the two lane findings:** - **`search.query` p50:** - #894 vs dev ×1.012 (upper 95% ×1.058, MDE 6.8%). - #894 vs inert ×1.005. - dev2 vs dev (the same binary) ×1.012. - The lane's +8.6% came from a rotation that always ran dev first. With mirrored order, #894 is as far from dev as dev is from itself. - **`sync.save_ack` p95:** - #894 vs dev ×1.002. - dev2 vs dev ×1.112, and inert vs dev ×1.19. - The tail moves ±10–20% between identical binaries, so the lane's −12%/+11% swings are noise. p50 is ×1.007 (upper 95% ×1.018, MDE 1.6%). - **Layout effect is real but small here:** inert vs dev has 10 of 60 cells above ×1.05, against 6 for dev2 vs dev. No layout cell reaches significance (smallest adjusted p 0.26). - **Exact mirror-pair check** (`--pairs`, 6 units, 64 flips): 0 flags. **Turn A verdict: no regression** against dev or the layout arm on any hot or smoke cell. One hot cell is unresolved: `open.long_note` (single-shot per run, MDE 65%; its ratio is 0.83). Turn B (`tasks-bench`, same four arms, mirrored) is running now. The #894 verdict follows when B is in.
Author
Owner

#894 turn B (tasks-bench): VOID by the null-block rule, to be re-run. #894 itself has 0 flags.

Turn. ~/bin/perf-turn sound-comparator on perf-01 (no FRONT; behind nf3oh-p1), with perf-02's lock held by a unit on hd01.

  • Measured 16:52–18:08 CET, 14 Nov.
  • Driver: perf/vm/paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8942 --warmup.
  • 30 rounds, 120 arms, no failed arm.
  • Every arm, dev's included, failed tasks-bench's own budget gates (tasks.update p95 > 40 ms, cold growth > 10%). They are kept as measured runs (#1130 e61888a13).
  • An earlier attempt at 16:34 stopped on the warm-up for that reason, before any measured round.

Binaries (sha256 on both ends), tasks-bench per arm because it links the code it measures:

Arm sha256
dev = dev2 (796d80cba) 20b21dea…
inert (796d80cba + inert padding) 691ade05…
cand (9db7c845d) 16532627…

Comparator. compare.py tB/layout.json --layout inert --hot tasks., 41 cells, 10,000 random flips.

Null block tB: dev2 vs dev (two-sided)                                      n=41 >1.05:2 <0.95:0 minp=0.050
      tasks.anytime p99 ratio 1.0509 U95 1.1168 MDE 9.6% p 0.9822
      tasks.cold_tasks value ratio 0.9832 U95 0.9918 MDE 1.3% p 0.0495
      tasks.counts p95 ratio 1.0146 U95 1.0564 MDE 6.3% p 0.9999
      tasks.counts p99 ratio 1.0138 U95 1.0686 MDE 8.2% p 0.9999
      tasks.today p50 ratio 0.9870 U95 1.0054 MDE 2.8% p 0.9933
      tasks.write_warm p50 ratio 0.9971 U95 1.0053 MDE 1.3% p 0.9999
      tasks.write_warm p95 ratio 0.9644 U95 1.0160 MDE 8.1% p 0.9933
Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:0 <0.95:3 minp=0.221
      tasks.anytime p99 ratio 1.0213 U95 1.0753 MDE 8.0% p 1.0000
      tasks.cold_tasks value ratio 0.9974 U95 1.0204 MDE 3.5% p 1.0000
      tasks.counts p95 ratio 1.0037 U95 1.0416 MDE 5.7% p 1.0000
      tasks.counts p99 ratio 1.0353 U95 1.1354 MDE 14.9% p 1.0000
      tasks.today p50 ratio 0.9903 U95 1.0045 MDE 2.2% p 0.9968
      tasks.write_warm p50 ratio 0.9946 U95 1.0041 MDE 1.4% p 0.9993
      tasks.write_warm p95 ratio 0.9657 U95 1.0159 MDE 7.9% p 0.9968
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=41 >1.05:0 <0.95:1 minp=0.124
      tasks.anytime p99 ratio 1.0353 U95 1.0881 MDE 7.8% p 0.9071
      tasks.cold_tasks value ratio 0.9909 U95 1.0001 MDE 1.4% p 1.0000
      tasks.counts p95 ratio 1.0037 U95 1.0414 MDE 5.7% p 0.9993
      tasks.counts p99 ratio 1.0470 U95 1.1542 MDE 15.8% p 0.9781
      tasks.today p50 ratio 0.9853 U95 1.0057 MDE 3.1% p 1.0000
      tasks.write_warm p50 ratio 0.9981 U95 1.0073 MDE 1.4% p 1.0000
      tasks.write_warm p95 ratio 0.9791 U95 1.0260 MDE 7.3% p 1.0000
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=41 >1.05:1 <0.95:0 minp=0.777
      tasks.anytime p99 ratio 1.0136 U95 1.0786 MDE 9.8% p 0.9917
      tasks.cold_tasks value ratio 0.9936 U95 1.0136 MDE 3.0% p 0.9995
      tasks.counts p95 ratio 1.0000 U95 1.0403 MDE 6.1% p 0.9950
      tasks.counts p99 ratio 1.0113 U95 1.1414 MDE 19.9% p 0.9933
      tasks.today p50 ratio 0.9950 U95 1.0131 MDE 2.8% p 0.9995
      tasks.write_warm p50 ratio 1.0035 U95 1.0110 MDE 1.1% p 0.9712
      tasks.write_warm p95 ratio 1.0139 U95 1.0423 MDE 4.2% p 0.9702

Reading:

  • Null block: tasks.cold_tasks dev2 vs dev ×0.983, adjusted p 0.0495. That's just under α = 0.05 on one cell of 41, and it's the ~1-in-20 void rate the design accepts. The rule says void and re-run, so I don't use this turn for the verdict.
  • #894, for the record:
    • No cell flagged against dev (smallest adjusted p 0.12) or against the inert arm (0.78).
    • tasks.today p50 ×0.985 (upper 95% ×1.006, MDE 3.1%). The lane's r3 +9.2% doesn't reproduce.
    • tasks.counts p95 ×1.004, p99 ×1.047 (MDE 16%). tasks.write_warm p50 ×0.998 (MDE 1.4%).
  • Re-run: queued after the second #1117 turn. My lane holds one ticket at a time, and I'm still behind Notes Float.
### #894 turn B (`tasks-bench`): **VOID by the null-block rule**, to be re-run. #894 itself has 0 flags. **Turn.** `~/bin/perf-turn sound-comparator` on perf-01 (no FRONT; behind `nf3oh-p1`), with perf-02's lock held by a unit on hd01. - Measured 16:52–18:08 CET, 14 Nov. - Driver: `perf/vm/paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8942 --warmup`. - 30 rounds, 120 arms, no failed arm. - Every arm, dev's included, failed `tasks-bench`'s own budget gates (`tasks.update` p95 > 40 ms, cold growth > 10%). They are kept as measured runs (#1130 `e61888a13`). - An earlier attempt at 16:34 stopped on the warm-up for that reason, before any measured round. **Binaries** (sha256 on both ends), `tasks-bench` per arm because it links the code it measures: | Arm | sha256 | |---|---| | dev = dev2 (`796d80cba`) | `20b21dea…` | | inert (`796d80cba` + inert padding) | `691ade05…` | | cand (`9db7c845d`) | `16532627…` | **Comparator.** `compare.py tB/layout.json --layout inert --hot tasks.`, 41 cells, 10,000 random flips. ``` Null block tB: dev2 vs dev (two-sided) n=41 >1.05:2 <0.95:0 minp=0.050 tasks.anytime p99 ratio 1.0509 U95 1.1168 MDE 9.6% p 0.9822 tasks.cold_tasks value ratio 0.9832 U95 0.9918 MDE 1.3% p 0.0495 tasks.counts p95 ratio 1.0146 U95 1.0564 MDE 6.3% p 0.9999 tasks.counts p99 ratio 1.0138 U95 1.0686 MDE 8.2% p 0.9999 tasks.today p50 ratio 0.9870 U95 1.0054 MDE 2.8% p 0.9933 tasks.write_warm p50 ratio 0.9971 U95 1.0053 MDE 1.3% p 0.9999 tasks.write_warm p95 ratio 0.9644 U95 1.0160 MDE 8.1% p 0.9933 Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:0 <0.95:3 minp=0.221 tasks.anytime p99 ratio 1.0213 U95 1.0753 MDE 8.0% p 1.0000 tasks.cold_tasks value ratio 0.9974 U95 1.0204 MDE 3.5% p 1.0000 tasks.counts p95 ratio 1.0037 U95 1.0416 MDE 5.7% p 1.0000 tasks.counts p99 ratio 1.0353 U95 1.1354 MDE 14.9% p 1.0000 tasks.today p50 ratio 0.9903 U95 1.0045 MDE 2.2% p 0.9968 tasks.write_warm p50 ratio 0.9946 U95 1.0041 MDE 1.4% p 0.9993 tasks.write_warm p95 ratio 0.9657 U95 1.0159 MDE 7.9% p 0.9968 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=41 >1.05:0 <0.95:1 minp=0.124 tasks.anytime p99 ratio 1.0353 U95 1.0881 MDE 7.8% p 0.9071 tasks.cold_tasks value ratio 0.9909 U95 1.0001 MDE 1.4% p 1.0000 tasks.counts p95 ratio 1.0037 U95 1.0414 MDE 5.7% p 0.9993 tasks.counts p99 ratio 1.0470 U95 1.1542 MDE 15.8% p 0.9781 tasks.today p50 ratio 0.9853 U95 1.0057 MDE 3.1% p 1.0000 tasks.write_warm p50 ratio 0.9981 U95 1.0073 MDE 1.4% p 1.0000 tasks.write_warm p95 ratio 0.9791 U95 1.0260 MDE 7.3% p 1.0000 Candidate, hot paths: cand vs layout arm inert (one-sided) n=41 >1.05:1 <0.95:0 minp=0.777 tasks.anytime p99 ratio 1.0136 U95 1.0786 MDE 9.8% p 0.9917 tasks.cold_tasks value ratio 0.9936 U95 1.0136 MDE 3.0% p 0.9995 tasks.counts p95 ratio 1.0000 U95 1.0403 MDE 6.1% p 0.9950 tasks.counts p99 ratio 1.0113 U95 1.1414 MDE 19.9% p 0.9933 tasks.today p50 ratio 0.9950 U95 1.0131 MDE 2.8% p 0.9995 tasks.write_warm p50 ratio 1.0035 U95 1.0110 MDE 1.1% p 0.9712 tasks.write_warm p95 ratio 1.0139 U95 1.0423 MDE 4.2% p 0.9702 ``` **Reading:** - **Null block:** `tasks.cold_tasks` dev2 vs dev ×0.983, adjusted p 0.0495. That's just under α = 0.05 on one cell of 41, and it's the ~1-in-20 void rate the design accepts. The rule says void and re-run, so I don't use this turn for the verdict. - **#894, for the record:** - No cell flagged against dev (smallest adjusted p 0.12) or against the inert arm (0.78). - `tasks.today` p50 ×0.985 (upper 95% ×1.006, MDE 3.1%). The lane's r3 +9.2% doesn't reproduce. - `tasks.counts` p95 ×1.004, p99 ×1.047 (MDE 16%). `tasks.write_warm` p50 ×0.998 (MDE 1.4%). - **Re-run:** queued after the second #1117 turn. My lane holds one ticket at a time, and I'm still behind Notes Float.
Author
Owner

#894 perf verdict on the new comparator: no regression found. search.query and sync.save_ack were artefacts; tasks.describe p95/p99 is a dev-arm/layout effect, not #894's code.

Turn C (tasks-bench, re-run of void turn B). ~/bin/perf-turn sound-comparator on perf-01, behind Notes Float tickets, no FRONT. perf-02's lock was held by a unit on hd01.

  • Measured 20:36–21:53 CET, 14 Nov.
  • paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8943 --warmup.
  • Arms: dev, dev2, inert, cand (binaries as in turn B, sha256-checked).
  • 28 rounds, 0 failed arms. Every arm, dev's included, fails tasks-bench's own tasks.update and cold-growth budgets; those runs are kept.

Command: compare.py tC/layout.json --layout inert --hot tasks.. 41 cells, 10,000 flips. Exit 0 (PASS). The null block passes (smallest adjusted p 0.059).

Null block tC: dev2 vs dev (two-sided)                                      n=41 >1.05:2 <0.95:0 minp=0.059
      tasks.cold_tasks value ratio 1.0210 U95 1.0377 MDE 2.5% p 0.5635
      tasks.counts p95 ratio 1.0313 U95 1.0954 MDE 9.5% p 0.9997
      tasks.describe p95 ratio 1.0182 U95 1.0323 MDE 2.1% p 0.5242
      tasks.describe p99 ratio 1.0426 U95 1.0653 MDE 3.3% p 0.0589
      tasks.today p50 ratio 1.0068 U95 1.0312 MDE 3.7% p 1.0000
      tasks.write_warm p50 ratio 1.0336 U95 1.1016 MDE 10.0% p 0.9996
      tasks.write_warm p95 ratio 1.0287 U95 1.1095 MDE 12.0% p 0.9999
Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:4 <0.95:2 minp=0.000
      tasks.cold_tasks value ratio 1.0169 U95 1.0270 MDE 1.5% p 0.1532
      tasks.counts p95 ratio 1.0017 U95 1.0370 MDE 5.3% p 1.0000
      tasks.describe p95 ratio 1.0385 U95 1.0504 MDE 1.7% p 0.0003
      tasks.describe p99 ratio 1.0552 U95 1.0729 MDE 2.5% p 0.0005
      tasks.today p50 ratio 0.9895 U95 1.0115 MDE 3.4% p 0.9997
      tasks.write_warm p50 ratio 1.0341 U95 1.0942 MDE 8.9% p 0.9995
      tasks.write_warm p95 ratio 1.0795 U95 1.1593 MDE 11.3% p 0.8209
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=41 >1.05:0 <0.95:0 minp=0.002
      tasks.cold_tasks value ratio 1.0087 U95 1.0202 MDE 1.7% p 0.8799
      tasks.counts p95 ratio 0.9689 U95 1.0129 MDE 6.9% p 0.9999
      tasks.describe p95 ratio 1.0356 U95 1.0499 MDE 2.1% p 0.0024
      tasks.describe p99 ratio 1.0407 U95 1.0636 MDE 3.3% p 0.0475
      tasks.today p50 ratio 0.9995 U95 1.0206 MDE 3.2% p 0.9995
      tasks.write_warm p50 ratio 0.9901 U95 1.0027 MDE 1.9% p 0.9999
      tasks.write_warm p95 ratio 1.0004 U95 1.0412 MDE 6.2% p 0.9994
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=41 >1.05:1 <0.95:5 minp=0.740
      tasks.cold_tasks value ratio 0.9919 U95 1.0054 MDE 2.1% p 1.0000
      tasks.counts p95 ratio 0.9672 U95 1.0178 MDE 8.0% p 1.0000
      tasks.describe p95 ratio 0.9972 U95 1.0097 MDE 1.9% p 1.0000
      tasks.describe p99 ratio 0.9863 U95 1.0106 MDE 3.7% p 1.0000
      tasks.today p50 ratio 1.0101 U95 1.0308 MDE 3.1% p 0.9731
      tasks.write_warm p50 ratio 0.9574 U95 1.0111 MDE 8.5% p 1.0000
      tasks.write_warm p95 ratio 0.9267 U95 0.9867 MDE 9.9% p 1.0000

(Per cell, the four rows are: dev2 vs dev, inert vs dev, #894 vs dev, #894 vs inert.)

tasks.describe p95/p99, the one interesting finding:

  • #894 vs dev is ×1.036/×1.041 (adjusted p 0.002/0.048), so it's flagged against dev.
  • Against the inert arm it's ×0.997/×0.986, not flagged. The rule calls it layout, not code.
  • More precisely, every arm is slower than dev there: inert ×1.039/×1.055, and even dev2 (byte-identical to dev) ×1.018/×1.043. Turn B showed the same pattern.
  • The asymmetry was in my driver: its warm-up ran only the first arm, dev. That's now fixed: the warm-up runs every arm in random order (#1130 64e805159).
  • #894 doesn't touch the describe pass (crates/tasks/src/index.rs and notes/describer.rs are unchanged against 796d80cba).

#894 verdict across valid turns:

Suite Turn Null block #894 flagged (vs dev AND vs inert) Result
calternal-perf 10k, all scenarios A (12 rounds) pass 0 / 60 pass; open.long_note unresolved (MDE 65%, ratio ×0.83)
tasks-bench 10k B (30 rounds) void (tasks.cold_tasks p 0.0495) — excluded
tasks-bench 10k C (28 rounds) pass 0 / 41 pass
  • The lane's open items:
    • search.query p50 +8.6%: ×1.012 here, which is dev2-vs-dev's own size (×1.012). It was a dev-first rotation artefact.
    • sync.save_ack p95 ±11%: ×1.002 here, while dev2 vs dev moves ×1.11. It's tail noise.
    • tasks.today p50 +9.2% (lane r3): ×1.000 here (turn C), ×0.985 (turn B).
  • Nothing to confirm: no valid turn has a code-attributable flag, so no confirmation turn is needed.
  • Decision on open.long_note: it's one long-note open per server run. Pooling a second turn A would only bring its MDE from 65% to about 46%. Resolving it needs a harness change (more long-note opens per run), not more turns. I'm recording it as a harness gap, not a blocker; its point estimate is 17% faster.

Perf gate for #894: PASS under #1130's method. Not merged; the orchestrator decides.

### #894 perf verdict on the new comparator: **no regression found**. `search.query` and `sync.save_ack` were artefacts; `tasks.describe` p95/p99 is a dev-arm/layout effect, not #894's code. **Turn C (`tasks-bench`, re-run of void turn B).** `~/bin/perf-turn sound-comparator` on perf-01, behind Notes Float tickets, no FRONT. perf-02's lock was held by a unit on hd01. - Measured 20:36–21:53 CET, 14 Nov. - `paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8943 --warmup`. - Arms: dev, dev2, inert, cand (binaries as in turn B, sha256-checked). - 28 rounds, 0 failed arms. Every arm, dev's included, fails `tasks-bench`'s own `tasks.update` and cold-growth budgets; those runs are kept. Command: `compare.py tC/layout.json --layout inert --hot tasks.`. 41 cells, 10,000 flips. **Exit 0 (PASS).** The null block passes (smallest adjusted p 0.059). ``` Null block tC: dev2 vs dev (two-sided) n=41 >1.05:2 <0.95:0 minp=0.059 tasks.cold_tasks value ratio 1.0210 U95 1.0377 MDE 2.5% p 0.5635 tasks.counts p95 ratio 1.0313 U95 1.0954 MDE 9.5% p 0.9997 tasks.describe p95 ratio 1.0182 U95 1.0323 MDE 2.1% p 0.5242 tasks.describe p99 ratio 1.0426 U95 1.0653 MDE 3.3% p 0.0589 tasks.today p50 ratio 1.0068 U95 1.0312 MDE 3.7% p 1.0000 tasks.write_warm p50 ratio 1.0336 U95 1.1016 MDE 10.0% p 0.9996 tasks.write_warm p95 ratio 1.0287 U95 1.1095 MDE 12.0% p 0.9999 Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:4 <0.95:2 minp=0.000 tasks.cold_tasks value ratio 1.0169 U95 1.0270 MDE 1.5% p 0.1532 tasks.counts p95 ratio 1.0017 U95 1.0370 MDE 5.3% p 1.0000 tasks.describe p95 ratio 1.0385 U95 1.0504 MDE 1.7% p 0.0003 tasks.describe p99 ratio 1.0552 U95 1.0729 MDE 2.5% p 0.0005 tasks.today p50 ratio 0.9895 U95 1.0115 MDE 3.4% p 0.9997 tasks.write_warm p50 ratio 1.0341 U95 1.0942 MDE 8.9% p 0.9995 tasks.write_warm p95 ratio 1.0795 U95 1.1593 MDE 11.3% p 0.8209 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=41 >1.05:0 <0.95:0 minp=0.002 tasks.cold_tasks value ratio 1.0087 U95 1.0202 MDE 1.7% p 0.8799 tasks.counts p95 ratio 0.9689 U95 1.0129 MDE 6.9% p 0.9999 tasks.describe p95 ratio 1.0356 U95 1.0499 MDE 2.1% p 0.0024 tasks.describe p99 ratio 1.0407 U95 1.0636 MDE 3.3% p 0.0475 tasks.today p50 ratio 0.9995 U95 1.0206 MDE 3.2% p 0.9995 tasks.write_warm p50 ratio 0.9901 U95 1.0027 MDE 1.9% p 0.9999 tasks.write_warm p95 ratio 1.0004 U95 1.0412 MDE 6.2% p 0.9994 Candidate, hot paths: cand vs layout arm inert (one-sided) n=41 >1.05:1 <0.95:5 minp=0.740 tasks.cold_tasks value ratio 0.9919 U95 1.0054 MDE 2.1% p 1.0000 tasks.counts p95 ratio 0.9672 U95 1.0178 MDE 8.0% p 1.0000 tasks.describe p95 ratio 0.9972 U95 1.0097 MDE 1.9% p 1.0000 tasks.describe p99 ratio 0.9863 U95 1.0106 MDE 3.7% p 1.0000 tasks.today p50 ratio 1.0101 U95 1.0308 MDE 3.1% p 0.9731 tasks.write_warm p50 ratio 0.9574 U95 1.0111 MDE 8.5% p 1.0000 tasks.write_warm p95 ratio 0.9267 U95 0.9867 MDE 9.9% p 1.0000 ``` (Per cell, the four rows are: dev2 vs dev, inert vs dev, #894 vs dev, #894 vs inert.) **`tasks.describe` p95/p99, the one interesting finding:** - #894 vs dev is ×1.036/×1.041 (adjusted p 0.002/0.048), so it's flagged against dev. - Against the inert arm it's ×0.997/×0.986, not flagged. The rule calls it **layout, not code**. - More precisely, **every** arm is slower than `dev` there: inert ×1.039/×1.055, and even dev2 (byte-identical to dev) ×1.018/×1.043. Turn B showed the same pattern. - The asymmetry was in my driver: its warm-up ran only the first arm, `dev`. That's now fixed: the warm-up runs every arm in random order (#1130 `64e805159`). - #894 doesn't touch the describe pass (`crates/tasks/src/index.rs` and `notes/describer.rs` are unchanged against `796d80cba`). **#894 verdict across valid turns:** | Suite | Turn | Null block | #894 flagged (vs dev AND vs inert) | Result | |---|---|---|---|---| | `calternal-perf` 10k, all scenarios | A (12 rounds) | pass | 0 / 60 | pass; `open.long_note` unresolved (MDE 65%, ratio ×0.83) | | `tasks-bench` 10k | B (30 rounds) | **void** (`tasks.cold_tasks` p 0.0495) | — | excluded | | `tasks-bench` 10k | C (28 rounds) | pass | 0 / 41 | **pass** | - **The lane's open items:** - `search.query` p50 +8.6%: ×1.012 here, which is dev2-vs-dev's own size (×1.012). It was a dev-first rotation artefact. - `sync.save_ack` p95 ±11%: ×1.002 here, while dev2 vs dev moves ×1.11. It's tail noise. - `tasks.today` p50 +9.2% (lane r3): ×1.000 here (turn C), ×0.985 (turn B). - **Nothing to confirm:** no valid turn has a code-attributable flag, so no confirmation turn is needed. - **Decision on `open.long_note`:** it's one long-note open per server run. Pooling a second turn A would only bring its MDE from 65% to about 46%. Resolving it needs a harness change (more long-note opens per run), not more turns. I'm recording it as a harness gap, not a blocker; its point estimate is 17% faster. **Perf gate for #894: PASS under #1130's method.** Not merged; the orchestrator decides.
Author
Owner

Merge of origin/dev (6c50dd99c) into feat/tasks-actions: gates on 7f0f64df9

git merge --no-ff origin/dev had no conflicts (no hand edits). Pushed as 7f0f64df9. Every tasks.* action in the code (counts, create, delete, duplicate, get, list, move, move-many, reorder, set-status, set-status-many, undo, untracked, update) is in crates/engine/src/capabilities.rs; no new classification was needed.

Server built from the merged head on each host (dev-01 x86, dev-02 aarch64). Slots via ~/bin/slot; waited for the daily-1115 train lock first.

Gate Command Result
fmt cargo fmt --all -- --check pass
clippy cargo clippy --workspace --all-targets -j4 --locked -- -D warnings pass
tests cargo test --workspace -j4 --locked --no-fail-fast pass (1939 passed, 0 failed)
markdown/tasks contract cargo test -p calternal-markdown-view + -p calternal-tasks create_tests:: pass
capability isolation cargo test -p calternal every_registered_action_and_direct_route_has_a_capability_classification pass
action types node apps/web/scripts/action-types.mjs --check pass
svelte-check (apps/web) bun run --cwd apps/web check 0 errors, 19 warnings
svelte-check (packages/editor) bun run --cwd packages/editor check FAIL, inherited from dev: 11 TS errors, all in tables tests (embeds.test.ts, tables-{cell-update,parser,update}.test.ts: type-only import, Annotation.of). git diff origin/dev HEAD -- packages/editor is empty, so this branch adds nothing. Needs a fix on dev (Tables lane).
vitest editor 663, ui primitives 70, apps/web 272 all pass
lint bun run --cwd apps/web lint pass
bundle perf/web.sh --bundle-only --gate pass
Playwright chromium-1440 (dev-01) tasks-actions, pane-transition, tasks-* 54 passed, 10 skipped
Playwright chromium-390 (dev-01) same 52 passed, 12 skipped
contrast project (dev-01) tasks-contrast.spec.ts 1 passed
Playwright webkit-1440 (dev-02) same specs 54 passed, 10 skipped
Playwright webkit-390 (dev-02) same specs 52 passed, 12 skipped

Perf: no new run. The merge was conflict-free with no resolution edits, so the branch's own diff against dev is the one gated in the #1130 comparator run (search.query x1.012, save_ack p95 x1.002); the dev-side changes (attachments, Tables, CardDAV crates, #1141) were gated on dev. Nothing in the save, typing, search or tasks paths changed beyond the merge itself.

Not merged. Open risk: the packages/editor check failure above (dev, not this PR); CI's Typecheck step runs it, so dev's CI should show it too.

## Merge of origin/dev (6c50dd99c) into feat/tasks-actions: gates on 7f0f64df9 `git merge --no-ff origin/dev` had **no conflicts** (no hand edits). Pushed as **7f0f64df9**. Every `tasks.*` action in the code (counts, create, delete, duplicate, get, list, move, move-many, reorder, set-status, set-status-many, undo, untracked, update) is in `crates/engine/src/capabilities.rs`; no new classification was needed. Server built from the merged head on each host (dev-01 x86, dev-02 aarch64). Slots via `~/bin/slot`; waited for the daily-1115 train lock first. | Gate | Command | Result | |---|---|---| | fmt | `cargo fmt --all -- --check` | pass | | clippy | `cargo clippy --workspace --all-targets -j4 --locked -- -D warnings` | pass | | tests | `cargo test --workspace -j4 --locked --no-fail-fast` | pass (1939 passed, 0 failed) | | markdown/tasks contract | `cargo test -p calternal-markdown-view` + `-p calternal-tasks create_tests::` | pass | | capability isolation | `cargo test -p calternal every_registered_action_and_direct_route_has_a_capability_classification` | pass | | action types | `node apps/web/scripts/action-types.mjs --check` | pass | | svelte-check (apps/web) | `bun run --cwd apps/web check` | 0 errors, 19 warnings | | svelte-check (packages/editor) | `bun run --cwd packages/editor check` | **FAIL, inherited from dev**: 11 TS errors, all in tables tests (`embeds.test.ts`, `tables-{cell-update,parser,update}.test.ts`: type-only import, `Annotation.of`). `git diff origin/dev HEAD -- packages/editor` is empty, so this branch adds nothing. Needs a fix on dev (Tables lane). | | vitest | editor 663, ui primitives 70, apps/web 272 | all pass | | lint | `bun run --cwd apps/web lint` | pass | | bundle | `perf/web.sh --bundle-only --gate` | pass | | Playwright chromium-1440 (dev-01) | `tasks-actions`, `pane-transition`, `tasks-*` | 54 passed, 10 skipped | | Playwright chromium-390 (dev-01) | same | 52 passed, 12 skipped | | contrast project (dev-01) | `tasks-contrast.spec.ts` | 1 passed | | Playwright webkit-1440 (dev-02) | same specs | 54 passed, 10 skipped | | Playwright webkit-390 (dev-02) | same specs | 52 passed, 12 skipped | Perf: **no new run.** The merge was conflict-free with no resolution edits, so the branch's own diff against dev is the one gated in the #1130 comparator run (search.query x1.012, save_ack p95 x1.002); the dev-side changes (attachments, Tables, CardDAV crates, #1141) were gated on dev. Nothing in the save, typing, search or tasks paths changed beyond the merge itself. Not merged. Open risk: the packages/editor check failure above (dev, not this PR); CI's Typecheck step runs it, so dev's CI should show it too.
Author
Owner

Merged into dev with --no-ff by the orchestrator (perf pass under #1130; functional gates on the merged head). #1027 (Matrix) can now rebase onto dev. Closing.

Merged into `dev` with `--no-ff` by the orchestrator (perf pass under #1130; functional gates on the merged head). #1027 (Matrix) can now rebase onto dev. Closing.
kayg closed this pull request 2026-11-15 02:33:01 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!894
No description provided.