Sync'd todo lines + handwritten todo seems to fail to sync #87

Merged
jfro merged 3 commits from fix-82-mixed-todo-sync into main 2026-11-13 11:42:28 +00:00
Owner

What changed

A page with synced todo lines plus a handwritten todo now syncs: a row of ours may go without an OCR line only when his ink there is a lone mark (1–2 strokes, under half a pitch wide together), so his notes beside our tasks still pair or hold the page; red-then-green C1, F1 and F3 fixed, precommit C21.

Red, then green

  • A page with lines we wrote plus his handwritten task, where a stray mark of his lands on one of our rows and OCR reads only his task, now pairs instead of holding with "2 task rows but 1 transcribed lines".: bash -c 'eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs'
    • fails on the base (60213ac): exit 1
    • passes on the branch (e903d24): exit 0

Checks

  • mix precommit (compile --warnings-as-errors, deps.unlock --unused, format, full test suite) passes on the #82 branch. (Upper Wolfjaw): bash -c 'eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3', exit 0
  • mix precommit passes on the #82 branch (rerun with pipefail so the exit code is precommit's own). (Upper Wolfjaw): bash -o pipefail -c 'eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3', exit 0
  • Read the Rows.texts diff and ran the full suite (1362 pass); the #82 test covers pairing, the normal case and a his-only row still mismatching. Untested: Jeremy's real page strokes. (Prover): bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs 2>&1 | tail -3', exit 0
  • mix precommit passes on the #82 branch at fcb9ef6. (Upper Wolfjaw): bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3', exit 0
  • Read the Rows.texts/mark? diff at fcb9ef6; reran the rows tests, Nye's probe82 (F1/F3 cases now pass) and the full suite (1365 pass). The row-wide mark check (≤2 strokes, <half pitch) closes the per-stroke hole, and real notes beside our task still hold or pair. Untested: real tablet pages; a very short 1–2 stroke cursive note beside our task would count as a mark (named risk). (Prover): bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs 2>&1 | tail -3', exit 0

Found and fixed

  • F1 bug: With the #82 patch, his note beside our task (OCR reads it) plus a stray mark of his on an empty row (OCR reads nothing) adds up to the his-only row count, so the note is paired with the stray mark's row and sync would create a wrong task ("by Friday") where main held the page. (fixed)
  • F3 bug: With the F1 fix (head 2cbf9d6), a note he prints beside our task (one narrow stroke per letter, about 120 px wide in all) counts as a "mark", because the check is per stroke, not per row. So the F1 case comes back: that note plus a stray dot on an empty row gets the note paired with the dot's row, and sync would create a task named after the note. On main this page is held. (fixed)

Risks

Mark threshold (1–2 strokes, half a pitch) is a heuristic tuned on synthetic strokes, not on real tablet pages; a cursive note of 1–2 short strokes beside our task would be treated as a mark. Branch is local only (fix-82-mixed-todo-sync @ fcb9ef6 in ~/work/rm-analyzer-1-6-1/rm-analyzer).

Prover

Passed (Sonnet): Read the Rows.texts/mark? diff at fcb9ef6; reran the rows tests, Nye's probe82 (F1/F3 cases now pass) and the full suite (1365 pass). The row-wide mark check (≤2 strokes, <half pitch) closes the per-stroke hole, and real notes beside our task still hold or pair. Untested: real tablet pages; a very short 1–2 stroke cursive note beside our task would count as a mark (named risk).

Every command above was run by Fortysix's Basecamp itself, on the branch named.

## What changed A page with synced todo lines plus a handwritten todo now syncs: a row of ours may go without an OCR line only when his ink there is a lone mark (1–2 strokes, under half a pitch wide together), so his notes beside our tasks still pair or hold the page; red-then-green C1, F1 and F3 fixed, precommit C21. ## Red, then green - A page with lines we wrote plus his handwritten task, where a stray mark of his lands on one of our rows and OCR reads only his task, now pairs instead of holding with "2 task rows but 1 transcribed lines".: `bash -c 'eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs'` - fails on the base (60213ac): exit 1 - passes on the branch (e903d24): exit 0 ## Checks - mix precommit (compile --warnings-as-errors, deps.unlock --unused, format, full test suite) passes on the #82 branch. (Upper Wolfjaw): `bash -c 'eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3'`, exit 0 - mix precommit passes on the #82 branch (rerun with pipefail so the exit code is precommit's own). (Upper Wolfjaw): `bash -o pipefail -c 'eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3'`, exit 0 - Read the Rows.texts diff and ran the full suite (1362 pass); the #82 test covers pairing, the normal case and a his-only row still mismatching. Untested: Jeremy's real page strokes. (Prover): `bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs 2>&1 | tail -3'`, exit 0 - mix precommit passes on the #82 branch at fcb9ef6. (Upper Wolfjaw): `bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3'`, exit 0 - Read the Rows.texts/mark? diff at fcb9ef6; reran the rows tests, Nye's probe82 (F1/F3 cases now pass) and the full suite (1365 pass). The row-wide mark check (≤2 strokes, <half pitch) closes the per-stroke hole, and real notes beside our task still hold or pair. Untested: real tablet pages; a very short 1–2 stroke cursive note beside our task would count as a mark (named risk). (Prover): `bash -o pipefail -c 'export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/remarkable/lines/rows_test.exs 2>&1 | tail -3'`, exit 0 ## Found and fixed - F1 bug: With the #82 patch, his note beside our task (OCR reads it) plus a stray mark of his on an empty row (OCR reads nothing) adds up to the his-only row count, so the note is paired with the stray mark's row and sync would create a wrong task ("by Friday") where main held the page. (fixed) - F3 bug: With the F1 fix (head 2cbf9d6), a note he prints beside our task (one narrow stroke per letter, about 120 px wide in all) counts as a "mark", because the check is per stroke, not per row. So the F1 case comes back: that note plus a stray dot on an empty row gets the note paired with the dot's row, and sync would create a task named after the note. On main this page is held. (fixed) ## Risks Mark threshold (1–2 strokes, half a pitch) is a heuristic tuned on synthetic strokes, not on real tablet pages; a cursive note of 1–2 short strokes beside our task would be treated as a mark. Branch is local only (fix-82-mixed-todo-sync @ fcb9ef6 in ~/work/rm-analyzer-1-6-1/rm-analyzer). ## Prover Passed (Sonnet): Read the Rows.texts/mark? diff at fcb9ef6; reran the rows tests, Nye's probe82 (F1/F3 cases now pass) and the full suite (1365 pass). The row-wide mark check (≤2 strokes, <half pitch) closes the per-stroke hole, and real notes beside our task still hold or pair. Untested: real tablet pages; a very short 1–2 stroke cursive note beside our task would count as a mark (named risk). Every command above was run by Fortysix's Basecamp itself, on the branch named.
jfro added this to the v1.6.1 milestone 2026-11-13 03:08:35 +00:00
OCR never sees our layer, so his stray mark on a row holding a line we
wrote (an i-dot, a tick out of its box) is often no line at all, and the
page was held: "2 task rows but 1 transcribed lines". When the lines
match his rows alone, pair those; our rows get no read (Diff drops one
there anyway, N24).

Closes #82
Only a row with a line of ours and a mere mark of his (every stroke under
half a pitch wide) may go without a line; real writing of his there still
pairs or holds the page (F1 on #82).

Refs #82
fix(todos): a mark is the row's whole ink, not each stroke
All checks were successful
CI / test (pull_request) Successful in 2m19s
fcb9ef687c
Printed handwriting lifts the pen per letter, so a note beside our task is
many narrow strokes. A row's writing is now a mark only when it's one or
two strokes whose ink together is under half a pitch wide (F3 on #82).

Refs #82
jfro merged commit 93fc65962a into main 2026-11-13 11:42:28 +00:00
jfro deleted branch fix-82-mixed-todo-sync 2026-11-13 11:42:28 +00:00
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
jfro/rm-analyzer!87
No description provided.